/*
 Theme Name:   AirPro Divi Child
 Theme URI:    https://airpro.co
 Description:  AirPro custom Divi child theme - matches Webflow design
 Author:       AirPro
 Author URI:   https://airpro.co
 Template:     Divi
 Version:      1.0.0
 Text Domain:  airpro
*/

/* ============================================
   DESIGN SYSTEM - AirPro
   Colors extracted from Webflow site
   ============================================ */

:root {
  /* Primary colors */
  --ap-dark: #1a1a2e;
  --ap-black: #000000;
  --ap-white: #ffffff;
  --ap-green: #2d6a4f;
  --ap-green-dark: #1b4332;
  --ap-green-light: #40916c;

  /* Neutral palette */
  --ap-gray-50: #f8f9fa;
  --ap-gray-100: #f1f3f5;
  --ap-gray-200: #e9ecef;
  --ap-gray-300: #dee2e6;
  --ap-gray-400: #ced4da;
  --ap-gray-500: #adb5bd;
  --ap-gray-600: #6c757d;
  --ap-gray-700: #495057;
  --ap-gray-800: #343a40;
  --ap-gray-900: #212529;

  /* Typography */
  --ap-font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ap-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --ap-section-padding: 100px 0;
  --ap-section-padding-mobile: 60px 0;

  /* Border radius */
  --ap-radius-sm: 8px;
  --ap-radius-md: 12px;
  --ap-radius-lg: 16px;
  --ap-radius-xl: 24px;
}


/* ============================================
   GLOBAL RESETS & BASE
   ============================================ */

body,
#page-container,
.et_pb_section,
#main-content {
  background-color: var(--ap-white) !important;
}

body {
  font-family: var(--ap-font-body);
  color: var(--ap-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.et_pb_module_header,
.et_pb_toggle_title {
  font-family: var(--ap-font-heading);
  color: var(--ap-dark);
  font-weight: 700;
  line-height: 1.15;
}

p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ap-gray-700);
}

a {
  color: var(--ap-green);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--ap-green-dark);
}


/* ============================================
   HEADER / NAV
   ============================================ */

#main-header,
#main-header .container {
  background-color: var(--ap-white) !important;
}

#main-header {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  -webkit-transition: all 0.4s ease;
  transition: all 0.4s ease;
}

/* Fixed header shrink */
.et-fixed-header #main-header {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Logo */
#logo {
  max-height: 45px;
  width: auto;
}

.et-fixed-header #logo {
  max-height: 38px;
}

/* Nav links */
#top-menu li a {
  font-family: var(--ap-font-body);
  font-size: 14px !important;
  font-weight: 500;
  color: var(--ap-dark) !important;
  letter-spacing: 0.01em;
  padding-bottom: 0 !important;
  text-transform: none;
}

#top-menu li a:hover {
  color: var(--ap-green) !important;
  opacity: 1 !important;
}

/* Active nav item */
#top-menu li.current-menu-item a,
#top-menu li.current_page_item a {
  color: var(--ap-green) !important;
}

/* Dropdown menus */
#top-menu li ul.sub-menu {
  background-color: var(--ap-white);
  border: 1px solid var(--ap-gray-200);
  border-radius: var(--ap-radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 8px 0;
}

#top-menu li ul.sub-menu li a {
  font-size: 13px !important;
  padding: 8px 20px !important;
}

/* CTA button in nav */
.ap-nav-cta a,
#top-menu li.ap-nav-cta a {
  background-color: var(--ap-green) !important;
  color: var(--ap-white) !important;
  padding: 10px 24px !important;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px !important;
  transition: all 0.3s ease;
}

.ap-nav-cta a:hover,
#top-menu li.ap-nav-cta a:hover {
  background-color: var(--ap-green-dark) !important;
  transform: translateY(-1px);
}


/* ============================================
   BUTTONS (global)
   ============================================ */

.et_pb_button,
.et_pb_button:after {
  font-family: var(--ap-font-body) !important;
}

.et_pb_button {
  background-color: var(--ap-green) !important;
  color: var(--ap-white) !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 14px 32px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  text-transform: none !important;
  transition: all 0.3s ease !important;
}

.et_pb_button:hover {
  background-color: var(--ap-green-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 106, 79, 0.3);
}

.et_pb_button:after {
  display: none !important;
}

/* Secondary/outline button */
.ap-btn-outline .et_pb_button {
  background-color: transparent !important;
  color: var(--ap-green) !important;
  border: 2px solid var(--ap-green) !important;
}

.ap-btn-outline .et_pb_button:hover {
  background-color: var(--ap-green) !important;
  color: var(--ap-white) !important;
}

/* White button (for dark backgrounds) */
.ap-btn-white .et_pb_button {
  background-color: var(--ap-white) !important;
  color: var(--ap-green) !important;
}

.ap-btn-white .et_pb_button:hover {
  background-color: var(--ap-gray-100) !important;
}


/* ============================================
   SECTION STYLES
   ============================================ */

/* White section (default) */
.ap-section-white {
  background-color: var(--ap-white) !important;
}

/* Light gray section */
.ap-section-light {
  background-color: var(--ap-gray-50) !important;
}

/* Dark section */
.ap-section-dark {
  background-color: var(--ap-dark) !important;
}

.ap-section-dark h1,
.ap-section-dark h2,
.ap-section-dark h3,
.ap-section-dark h4,
.ap-section-dark p,
.ap-section-dark .et_pb_module_header {
  color: var(--ap-white) !important;
}

/* Section label (small uppercase text above headings) */
.ap-section-label,
.ap-section-label .et_pb_text_inner {
  font-size: 13px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
  color: var(--ap-green) !important;
  margin-bottom: 12px !important;
}


/* ============================================
   HERO SECTION
   ============================================ */

.ap-hero {
  padding: 80px 0 60px !important;
  position: relative;
  overflow: hidden;
}

.ap-hero h1 {
  font-size: 52px !important;
  line-height: 1.1 !important;
  font-weight: 700 !important;
  margin-bottom: 20px !important;
}

.ap-hero p {
  font-size: 18px !important;
  color: var(--ap-gray-600) !important;
  max-width: 540px;
}

/* Hero image grid (5 images in a mosaic) */
.ap-hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 200px);
  gap: 12px;
}

.ap-hero-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--ap-radius-md);
}


/* ============================================
   CLIENT LOGO MARQUEE
   ============================================ */

.ap-logo-marquee {
  padding: 40px 0 !important;
  border-top: 1px solid var(--ap-gray-200);
  border-bottom: 1px solid var(--ap-gray-200);
  overflow: hidden;
}

.ap-logo-track {
  display: flex;
  animation: marquee 40s linear infinite;
  gap: 60px;
  align-items: center;
}

.ap-logo-track img {
  height: 36px;
  width: auto;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.ap-logo-track img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ============================================
   STATS SECTION (40 Years, 100%, 3X, 42%)
   ============================================ */

.ap-stats-section {
  padding: var(--ap-section-padding) !important;
}

.ap-stat-number {
  font-size: 56px !important;
  font-weight: 800 !important;
  color: var(--ap-dark) !important;
  line-height: 1 !important;
  margin-bottom: 8px !important;
}

.ap-stat-label {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--ap-dark) !important;
  margin-bottom: 8px !important;
}

.ap-stat-desc {
  font-size: 14px !important;
  color: var(--ap-gray-600) !important;
  line-height: 1.6 !important;
}


/* ============================================
   CTA BANNER (Call 24/7)
   ============================================ */

.ap-cta-banner {
  background-color: var(--ap-green) !important;
  padding: 60px 0 !important;
  text-align: center;
}

.ap-cta-banner h2 {
  color: var(--ap-white) !important;
  font-size: 36px !important;
}

.ap-cta-banner p {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 18px !important;
}

.ap-phone-number {
  font-size: 42px !important;
  font-weight: 800 !important;
  color: var(--ap-white) !important;
  letter-spacing: -0.02em;
}

.ap-phone-number a {
  color: var(--ap-white) !important;
  text-decoration: none;
}


/* ============================================
   SOLUTIONS CARDS (Government / Commercial)
   ============================================ */

.ap-solution-card {
  border-radius: var(--ap-radius-lg) !important;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ap-solution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.ap-solution-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.ap-solution-card-content {
  padding: 32px;
}

.ap-solution-card h3 {
  font-size: 24px !important;
  margin-bottom: 12px !important;
}


/* ============================================
   SERVICE TABS / SERVICE CARDS
   ============================================ */

/* Tab-style service selector */
.ap-service-tabs .et_pb_tab {
  font-family: var(--ap-font-body) !important;
}

.ap-service-tabs .et_pb_tabs_controls li {
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
}

.ap-service-tabs .et_pb_tabs_controls li.et_pb_tab_active {
  background-color: var(--ap-green) !important;
  color: var(--ap-white);
  border-radius: 50px;
}

/* Service cards (icon + title + description) */
.ap-service-card {
  background: var(--ap-white);
  border: 1px solid var(--ap-gray-200);
  border-radius: var(--ap-radius-md);
  padding: 32px;
  transition: all 0.3s ease;
}

.ap-service-card:hover {
  border-color: var(--ap-green);
  box-shadow: 0 4px 16px rgba(45, 106, 79, 0.08);
  transform: translateY(-2px);
}

.ap-service-card .et_pb_main_blurb_image {
  margin-bottom: 20px !important;
}

.ap-service-card .et_pb_main_blurb_image img {
  width: 48px !important;
  height: 48px !important;
}

.ap-service-card .et_pb_module_header {
  font-size: 18px !important;
  font-weight: 600 !important;
  margin-bottom: 10px !important;
}

.ap-service-card .et_pb_blurb_description {
  font-size: 14px !important;
  color: var(--ap-gray-600) !important;
  line-height: 1.6 !important;
}


/* ============================================
   TESTIMONIALS
   ============================================ */

.ap-testimonial {
  background: var(--ap-gray-50);
  border-radius: var(--ap-radius-lg);
  padding: 40px !important;
  text-align: left;
}

.ap-testimonial-stars {
  margin-bottom: 16px;
}

.ap-testimonial-stars img {
  height: 20px;
  width: auto;
}

.ap-testimonial .et_pb_testimonial_description {
  font-size: 16px !important;
  line-height: 1.7 !important;
  color: var(--ap-dark) !important;
  font-style: normal !important;
}

.ap-testimonial .et_pb_testimonial_portrait {
  border: 3px solid var(--ap-green) !important;
  width: 56px !important;
  height: 56px !important;
}


/* ============================================
   HOW WE WORK (3-step process)
   ============================================ */

.ap-step-card {
  text-align: center;
}

.ap-step-card img {
  border-radius: var(--ap-radius-lg);
  margin-bottom: 24px;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.ap-step-card h4 {
  font-size: 18px !important;
  font-weight: 600 !important;
  margin-bottom: 8px !important;
}

.ap-step-card p {
  font-size: 14px !important;
  color: var(--ap-gray-600) !important;
}


/* ============================================
   CERTIFICATIONS GRID
   ============================================ */

.ap-certs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: center;
}

.ap-certs-grid img {
  height: 70px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.ap-certs-grid img:hover {
  opacity: 1;
}


/* ============================================
   BLOG / NEWS CARDS
   ============================================ */

.ap-blog-card {
  border-radius: var(--ap-radius-lg) !important;
  overflow: hidden;
  border: 1px solid var(--ap-gray-200);
  transition: all 0.3s ease;
}

.ap-blog-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.ap-blog-card .et_pb_image_wrap img {
  height: 220px;
  object-fit: cover;
  width: 100%;
}

.ap-blog-card .et_pb_post_content {
  padding: 24px;
}

.ap-blog-card h3 {
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}


/* ============================================
   CONTACT FORM
   ============================================ */

.ap-contact-form input[type="text"],
.ap-contact-form input[type="email"],
.ap-contact-form input[type="tel"],
.ap-contact-form textarea,
.et_pb_contact_form input,
.et_pb_contact_form textarea {
  background-color: var(--ap-gray-50) !important;
  border: 1px solid var(--ap-gray-200) !important;
  border-radius: var(--ap-radius-sm) !important;
  padding: 14px 18px !important;
  font-family: var(--ap-font-body) !important;
  font-size: 15px !important;
  color: var(--ap-dark) !important;
  transition: border-color 0.3s ease;
}

.ap-contact-form input:focus,
.ap-contact-form textarea:focus,
.et_pb_contact_form input:focus,
.et_pb_contact_form textarea:focus {
  border-color: var(--ap-green) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.ap-contact-form .et_pb_contact_submit {
  background-color: var(--ap-green) !important;
  border-radius: 50px !important;
  padding: 14px 40px !important;
  font-weight: 600 !important;
  width: 100%;
}


/* ============================================
   FOOTER
   ============================================ */

#main-footer,
.et-l--footer {
  background-color: var(--ap-dark) !important;
}

#main-footer .et_pb_text_inner,
#main-footer p,
#main-footer .et_pb_widget li a,
.et-l--footer p {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 14px !important;
}

#main-footer h4,
.et-l--footer h4 {
  color: var(--ap-white) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px !important;
}

#main-footer a,
.et-l--footer a {
  color: rgba(255, 255, 255, 0.7) !important;
  transition: color 0.3s ease;
}

#main-footer a:hover,
.et-l--footer a:hover {
  color: var(--ap-white) !important;
}

#footer-bottom {
  background-color: rgba(0, 0, 0, 0.2) !important;
}

#footer-info {
  color: rgba(255, 255, 255, 0.4) !important;
  font-size: 13px !important;
}


/* ============================================
   TEAM SECTION
   ============================================ */

.ap-team-card {
  text-align: center;
}

.ap-team-card img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
}

.ap-team-card h3 {
  font-size: 20px !important;
  margin-bottom: 4px !important;
}

.ap-team-card .ap-team-role {
  font-size: 14px;
  color: var(--ap-gray-600);
}


/* ============================================
   PAGE HEADERS (inner pages)
   ============================================ */

.ap-page-header {
  padding: 80px 0 60px !important;
  position: relative;
}

.ap-page-header h1 {
  font-size: 44px !important;
  line-height: 1.15 !important;
  max-width: 700px;
}

.ap-page-header p {
  font-size: 17px !important;
  color: var(--ap-gray-600) !important;
  max-width: 600px;
}

.ap-page-header-image img {
  border-radius: var(--ap-radius-xl);
  width: 100%;
  height: 400px;
  object-fit: cover;
}


/* ============================================
   WHY CHOOSE US SECTION
   ============================================ */

.ap-why-us {
  display: flex;
  align-items: center;
  gap: 60px;
}

.ap-why-us-image img {
  border-radius: var(--ap-radius-xl);
  width: 100%;
  height: auto;
}

.ap-why-us-content h2 {
  font-size: 36px !important;
  margin-bottom: 20px !important;
}

.ap-why-us-content p {
  font-size: 16px !important;
  margin-bottom: 16px !important;
}


/* ============================================
   SERVICE AREA MAP SECTION
   ============================================ */

.ap-service-area {
  background-color: var(--ap-gray-50) !important;
  padding: var(--ap-section-padding) !important;
  text-align: center;
}


/* ============================================
   INDUSTRIES WE SERVE (list style)
   ============================================ */

.ap-industries-list {
  list-style: none;
  padding: 0;
}

.ap-industries-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--ap-gray-200);
  font-size: 16px;
  font-weight: 500;
  color: var(--ap-dark);
}

.ap-industries-list li:last-child {
  border-bottom: none;
}


/* ============================================
   UTILITY CLASSES
   ============================================ */

.ap-text-center { text-align: center; }
.ap-text-green { color: var(--ap-green) !important; }
.ap-text-white { color: var(--ap-white) !important; }
.ap-text-gray { color: var(--ap-gray-600) !important; }
.ap-mt-0 { margin-top: 0 !important; }
.ap-mb-0 { margin-bottom: 0 !important; }
.ap-mb-sm { margin-bottom: 12px !important; }
.ap-mb-md { margin-bottom: 24px !important; }
.ap-mb-lg { margin-bottom: 48px !important; }
.ap-rounded { border-radius: var(--ap-radius-md); }
.ap-rounded-lg { border-radius: var(--ap-radius-lg); }
.ap-shadow { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06); }
.ap-shadow-lg { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); }


/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 980px) {
  .ap-hero h1 {
    font-size: 36px !important;
  }

  .ap-page-header h1 {
    font-size: 32px !important;
  }

  .ap-stat-number {
    font-size: 40px !important;
  }

  .ap-phone-number {
    font-size: 32px !important;
  }

  .ap-cta-banner h2 {
    font-size: 28px !important;
  }

  .ap-hero-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 160px);
  }
}

@media (max-width: 767px) {
  .ap-hero h1 {
    font-size: 30px !important;
  }

  .ap-page-header h1 {
    font-size: 28px !important;
  }

  .ap-stat-number {
    font-size: 36px !important;
  }

  .ap-phone-number {
    font-size: 26px !important;
  }

  .ap-hero-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 140px 140px;
  }

  .ap-solution-card img {
    height: 200px;
  }

  .ap-certs-grid img {
    height: 50px;
  }

  .ap-logo-track img {
    height: 28px;
  }

  .ap-logo-track {
    gap: 40px;
  }
}


/* ============================================
   DIVI OVERRIDES (clean up Divi defaults)
   ============================================ */

/* Remove Divi's default bottom margins on modules */
.et_pb_module {
  margin-bottom: 0;
}

/* Remove Divi's gutter width issues */
.et_pb_row {
  max-width: 1200px;
}

/* Remove default Divi section padding if using custom */
.et_pb_section.ap-section-white,
.et_pb_section.ap-section-light,
.et_pb_section.ap-section-dark {
  padding: var(--ap-section-padding);
}

/* Remove Divi blurb default styles */
.et_pb_blurb .et_pb_blurb_content {
  max-width: none;
}

/* Fix Divi testimonial module portrait */
.et_pb_testimonial_portrait {
  border-radius: 50%;
}

/* Remove Divi default link underlines */
.et_pb_text_inner a {
  text-decoration: none;
}

/* Clean up Divi toggle/accordion */
.et_pb_toggle {
  border: 1px solid var(--ap-gray-200) !important;
  border-radius: var(--ap-radius-sm) !important;
  margin-bottom: 8px !important;
}

.et_pb_toggle_title {
  font-size: 16px !important;
  font-weight: 600 !important;
  padding: 18px 24px !important;
}
