/*
Theme Name: Empire Air Service
Theme URI: https://webhostrocket.com
Author: WebHost Rocket
Author URI: https://webhostrocket.com
Theme Design by: Chris Miller
Description: A custom-built WordPress theme developed exclusively for Empire Air Service. Designed for clarity, trust, local SEO authority, and performance. Built from the ground up with a lightweight architecture, mobile-first responsiveness, and no unnecessary bloat.
Version: 1.0.0
License: Proprietary
License URI: https://webhostrocket.com
Text Domain: empire-air-service
*/




/* ============================================================
   BEGIN: GLOBAL RESET & BASE
============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #0f172a;
  background-color: #ffffff;
}

/* ============================================================
   END: GLOBAL RESET & BASE
============================================================ */


/* ============================================================
   BEGIN: BRAND VARIABLES
============================================================ */

:root {
  --brand-blue: #9bbcf8;
  --brand-blue-dark: #1e40af;
  --brand-red: #b91c1c;
  --brand-red-dark: #991b1b;
  --brand-white: #ffffff;
  --brand-text: #0f172a;
  --brand-border: #e5e7eb;
  --brand-blue-light: #9bbcf8;
  --brand-section-bg: #9bbcf8;

}

/* ============================================================
   SECTION BACKGROUND — LOGO LIGHT BLUE
============================================================ */

.ac-hero { background-color: #f8fafc; }
.ac-service-area { background-color: #f1f5f9; }
.ac-services-hero { background-color: #f8fafc; }
.ac-services-cta { background-color: #f1f5f9; }
.ac-about-hero { background-color: #f8fafc; }
.ac-about-legal { background-color: #f1f5f9; }
.ac-contact-hero { background-color: #f8fafc; }
.ac-contact-area { background-color: #f1f5f9; }

/* ============================================================
   END: BRAND VARIABLES
============================================================ */



/* =====================================
   HEADER SPACING & STRUCTURE
===================================== */

.ac-site-header {
  width: 100%;
  background-color: var(--brand-white);
  border-bottom: 1px solid var(--brand-border);
}

.ac-header-container {
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between; /* LOCK layout */
  position: relative; /* anchor for mobile menu */
}





/* =====================================
   HEADER (BRANDED)
===================================== */

.ac-site-logo {
  font-weight: 700;
  color: var(--brand-blue);
  white-space: nowrap;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ac-mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

/* =====================================
   FORCE WORDPRESS LOGO SCALING
===================================== */

.ac-site-logo img,
.custom-logo {
  max-height: 85px !important;
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  display: block;
}

.ac-site-logo .custom-logo {
  max-height: 85px;
  width: auto;
  height: auto;
  display: block;
}


/* =====================================
   PRIMARY NAVIGATION (DESKTOP)
===================================== */

.ac-primary-nav {
  margin-left: auto;
}

.ac-nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.ac-nav-menu li {
  margin: 0;
  white-space: nowrap;
}

.ac-nav-menu a {
  text-decoration: none;
  font-weight: 500;
  color: var(--brand-text);
}

.ac-nav-menu a:hover {
  color: var(--brand-blue);
}

.ac-nav-menu .nav-cta > a {
  background: var(--brand-red);
  color: #fff;
  padding: 0.65rem 1.25rem;
  border-radius: 4px;
  font-weight: 600;
}

.ac-nav-menu .nav-cta > a:hover {
  background: var(--brand-red-dark);
}



/* =====================================
   MOBILE NAVIGATION (BASE)
===================================== */

.ac-mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;              /* RIGHT aligned */
  width: auto;
  min-width: 220px;
  background-color: #ffffff;
  border: 1px solid var(--brand-border);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  padding: 1rem;
  z-index: 999;
}

.ac-mobile-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* RIGHT align items */
  gap: 1rem;
}

.ac-mobile-menu li {
  width: 100%;
  text-align: right;
}

.ac-mobile-menu a {
  display: block;
  width: 100%;
}



/* =====================================
   RESPONSIVE — NAV VISIBILITY
   (single source of truth)
===================================== */

/* MOBILE */
@media (max-width: 768px) {

  /* Desktop menu OFF */
  .ac-site-header .ac-primary-nav {
    display: none !important;
  }

  /* Hamburger ON — stays locked right */
  .ac-site-header .ac-mobile-menu-toggle {
    display: block !important;
    margin-left: auto;
    position: relative;
    z-index: 1000;
  }

  /* Mobile nav CLOSED */
  .ac-site-header .ac-mobile-nav {
    display: none !important;
  }

  /* Mobile nav OPEN */
  .ac-site-header .ac-mobile-nav.is-open {
    display: block !important;
  }
}

/* DESKTOP */
@media (min-width: 769px) {

  .ac-site-header .ac-primary-nav {
    display: block !important;
  }

  .ac-site-header .ac-mobile-menu-toggle,
  .ac-site-header .ac-mobile-nav {
    display: none !important;
  }
}




/* ============================================================
   BEGIN: GLOBAL LAYOUT UTILITIES
============================================================ */

.ac-container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.ac-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.ac-center {
  text-align: center;
}

.ac-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.ac-col {
  flex: 1 1 0;
}

@media (max-width: 768px) {

  .ac-row {
    flex-direction: column;
  }

}




/* ============================================================
   END: GLOBAL LAYOUT UTILITIES
============================================================ */

/* =====================================
   GLOBAL IMAGE OVERLAY SYSTEM
===================================== */

.ac-image-overlay {
  position: relative;
  overflow: hidden;
}

.ac-image-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(155, 188, 248, 0.35);
  pointer-events: none;
}

/* =====================================
   END: GLOBAL IMAGE OVERLAY SYSTEM
===================================== */




/* ============================================================
   BEGIN: TYPOGRAPHY
============================================================ */

h1, h2, h3, h4 {
  margin-top: 0;
  line-height: 1.25;
  font-weight: 600;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

/* ============================================================
   END: TYPOGRAPHY
============================================================ */


/* ============================================================
   BEGIN: BUTTONS (BRANDED)
============================================================ */

.ac-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Prevent phone number from breaking mid-number */
.ac-btn-phone {
  white-space: nowrap;
}


.ac-btn-primary {
  background-color: var(--brand-red);
  color: var(--brand-white);
}

.ac-btn-primary:hover {
  background-color: var(--brand-red-dark);
}

.ac-btn-secondary {
  background-color: white;
  color: var(--brand-blue);
  border: 2px solid var(--brand-blue);
}

.ac-btn-secondary:hover {
  background-color: var(--brand-blue);
  color: var(--brand-white);
}

/* ============================================================
   END: BUTTONS (BRANDED)
============================================================ */



/* ============================================================
   BEGIN: HERO SECTION
============================================================ */

.ac-hero {
  background-color: #9bbcf8;
}

.ac-hero .ac-row {
  align-items: center;
}

.ac-cta-group {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.ac-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
}

.ac-hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(155, 188, 248, 0.65); /* brand blue */
  z-index: 1;
}


.ac-col-hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.ac-hero h1,
.ac-hero p {
  color: #ffffff;
}

/* ============================================================
   END: HERO SECTION
============================================================ */






/* ============================================================
   BEGIN: SERVICES OVERVIEW
============================================================ */

.ac-services-overview .ac-service-cards {
  margin-top: 2rem;
}

.ac-service-card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 1.5rem;
  border-radius: 6px;
}

/* ============================================================
   END: SERVICES OVERVIEW
============================================================ */


/* ============================================================
   SPLIT FEATURE SECTIONS (FLOATING CARD)
   — Desktop alternation, mobile stacked
============================================================ */

.ac-split-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.ac-split-image {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.ac-split-image img {
  width: 100%;
  height: auto;
  display: block;
}

.ac-split-card {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 6px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* ======================================
   DESKTOP: Flip WHY CHOOSE ONLY
====================================== */

@media (min-width: 769px) {

  #why-choose-us .ac-split-image {
    order: 2;
  }

  #why-choose-us .ac-split-card {
    order: 1;
  }

}

/* ======================================
   MOBILE: Stack normally (no flips)
====================================== */

@media (max-width: 768px) {

  .ac-split-container {
    grid-template-columns: 1fr;
  }

}



/* ============================================================
   FINANCING FEATURE — BACKGROUND IMAGE WITH NATURAL FADE
============================================================ */

.ac-financing-panel {
  background-color: #f8fafc;
  padding: 0;
}

.ac-financing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}

.ac-financing-image {
  position: relative;
  overflow: hidden;
}

.ac-financing-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  display: block;
  background-color: #f8fafc;
}

/* Fade overlay */
.ac-financing-fade {
  position: absolute;
  top: 0;
  right: 0;
  width: 35%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(248, 250, 252, 0) 0%,
    rgba(248, 250, 252, 1) 100%
  );
}

.ac-financing-content {
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ac-financing-subhead {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

/* ============================================================
   MOBILE — STACKED, NO FADE
============================================================ */

@media (max-width: 768px) {

  .ac-financing-grid {
    grid-template-columns: 1fr;
  }

  .ac-financing-image {
    max-height: 300px;
  }

  .ac-financing-image img {
    object-fit: contain;
    object-position: center;
  }

  .ac-financing-fade {
    display: none;
  }

  .ac-financing-content {
    padding: 2.5rem 1.5rem;
  }

}

/* Financing section CTA — constrain width */
.ac-financing-content .ac-btn {
  align-self: flex-start;
}



/* ============================================================
   END: FINANCING FEATURE SECTION (FULL BACKGROUND + RIGHT FADE)
============================================================ */


/* ============================================================
   BEGIN: FAQ PREVIEW
============================================================ */

.ac-faq-list {
  list-style: disc;
  padding-left: 1.5rem;
  margin-top: 1.5rem;
}

/* ============================================================
   END: FAQ PREVIEW
============================================================ */


/* ============================================================
   BEGIN: SERVICE AREA
============================================================ */

.ac-service-area {
  background-color: #9bbcf8;
}

/* ============================================================
   END: SERVICE AREA
============================================================ */


/* ============================================================
   BEGIN: FOOTER (BRANDED)
============================================================ */

.ac-site-footer {
  background-color: #14134c;
  color: #ffffff;
}

.ac-site-footer a {
  color: #ffffff;
  text-decoration: underline;
}

/* ============================================================
   END: FOOTER (BRANDED)
============================================================ */

/* ============================================================
   BEGIN: STICKY FOOTER LAYOUT (FIXED)
============================================================ */

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ac-site-main {
  flex: 1 0 auto;
}

.ac-site-footer {
  flex-shrink: 0;
}

/* ============================================================
   END: STICKY FOOTER LAYOUT (FIXED)
============================================================ */






/* ============================================================
   BEGIN: SERVICES PAGE
============================================================ */

/* Base spacing */
.ac-services-list {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* -----------------------------
   SERVICE GROUP WRAPPER
----------------------------- */

.ac-service-group {
  margin-bottom: 6rem;
}

/* ============================================================
   SERVICE FEATURE — FULL-WIDTH IMAGE WITH NATURAL FADE
   (MATCHES FINANCING PATTERN EXACTLY)
============================================================ */

.ac-service-panel {
  background-color: #f8fafc;
  padding: 0;
  margin-bottom: 3rem;

  /* FORCE FULL WIDTH */
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* Banner height — authoritative */
.ac-service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 430px;
}

/* IMAGE COLUMN */
.ac-service-image {
  position: relative;
  overflow: hidden;
  height: 430px;
}

/* 🔑 KEY FIX IS HERE */
.ac-service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;              /* CHANGED from contain */
  object-position: left center;
  display: block;
  background-color: #f8fafc;
  
}

/* Fade overlay — now fades IMAGE, not empty space */
.ac-service-fade {
  position: absolute;
  top: 0;
  right: 0;
  width: 35%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(248, 250, 252, 0) 0%,
    rgba(248, 250, 252, 1) 100%
  );
}

/* CONTENT COLUMN */
.ac-service-content {
  height: 430px;
  padding: 2.25rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 720px;
}

.ac-service-content h2 {
  margin-top: 0;
  margin-bottom: 0;
}

/* ============================================================
   SERVICE BLOCKS (TEXT)
============================================================ */

.ac-services-list .ac-service-block {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.ac-services-list .ac-service-block h3 {
  margin-bottom: 0.5rem;
}

.ac-services-list .ac-service-block p {
  margin-bottom: 1rem;
}

/* ============================================================
   MOBILE — STACKED, NO FADE
============================================================ */

@media (max-width: 768px) {

  .ac-service-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .ac-service-image {
    height: 260px;
  }

  .ac-service-image img {
    height: 260px;
    object-fit: cover;
    object-position: center;
  }

  .ac-service-fade {
    display: none;
  }

  .ac-service-content {
    height: auto;
    padding: 2.5rem 1.5rem;
  }

}

/* ============================================================
   FINANCING & CTA (UNCHANGED)
============================================================ */

.ac-financing {
  background-color: #9bbcf8;
}

.ac-financing h2,
.ac-financing p {
  color: #14134c;
}

.ac-financing,
.ac-services-cta {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.ac-services-cta {
  background-color: transparent;
}

/* Services Hero background */
.ac-section.ac-services-hero {
  background-color: #9bbcf8;
}

/* ============================================================
   END: SERVICES PAGE
============================================================ */








/* ============================================================
   BEGIN: ABOUT PAGE
============================================================ */

.ac-about-hero {
  background-color: #9bbcf8;
}

.ac-about-hero h1 {
  margin-bottom: 1rem;
}

.ac-about-hero p {
  max-width: 800px;
}

.ac-about-company p {
  max-width: 800px;
}

.ac-about-credentials {
  background-color: #ffffff;
}

.ac-about-legal {
  background-color: #9bbcf8;
}

.ac-about-legal p {
  max-width: 800px;
}

/* ============================================================
   END: ABOUT PAGE
============================================================ */


/* ============================================================
   BEGIN: CONTACT PAGE
============================================================ */

.ac-contact-hero {
  background-color: #9bbcf8;
}

.ac-contact-hero h1 {
  margin-bottom: 1rem;
}

.ac-contact-hero p {
  max-width: 700px;
}

/* Service Area */
.ac-contact-area {
  background-color: #9bbcf8;
}

.ac-contact-area p {
  max-width: 800px;
}


/* ============================================================
   BEGIN: CONTACT FORM (SERVICE REQUEST)
============================================================ */

.ac-contact-request {
  background-color: #ffffff;
}

.ac-contact-form {
  max-width: 600px;
  margin-top: 2rem;
}

.ac-contact-form p {
  margin-bottom: 1.25rem;
}

.ac-contact-form label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.35rem;
}

.ac-contact-form input[type="text"],
.ac-contact-form input[type="tel"],
.ac-contact-form input[type="email"],
.ac-contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--brand-border);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}

.ac-contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.ac-contact-form input:focus,
.ac-contact-form textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
}

/* Submit button spacing */
.ac-contact-form button {
  margin-top: 0.5rem;
}

/* Success message */
.ac-form-success {
  background-color: #e6f0ff;
  border: 1px solid #9bbcf8;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  border-radius: 4px;
  font-weight: 600;
}

/* ============================================================
   END: CONTACT FORM (SERVICE REQUEST)
============================================================ */


/* ============================================================
   END: CONTACT PAGE
============================================================ */



/* ============================================================
   BEGIN: FINANCING & HEARTH WIDGETS
============================================================ */

/* Financing section stays WHITE and constrained */
#ac-financing {
  background-color: #ffffff;
}

/* Space between headline/text and widgets */
#ac-financing h2 {
  margin-bottom: 0.75rem;
}

#ac-financing p {
  max-width: 800px;
  margin-bottom: 2rem;
}

/* Two-column financing layout */
#ac-financing .ac-row {
  align-items: flex-start;
}

/* Individual financing columns */
#ac-financing .ac-col {
  width: 100%;
}

/* Calculator + form wrappers */
#hearth-calculator,
#ac-financing-form {
  margin-top: 1rem;
}

/* Force Hearth iframes to behave */
#hearth-widget_calculator_v1,
#hearth-lead-capture-widget {
  width: 100%;
  max-width: 100%;
  border: none;
  display: block;
}

/* Prevent iframe internal padding from breaking layout */
#hearth-widget_calculator_v1,
#hearth-lead-capture-widget,
#hearth-widget_calculator_v1 *,
#hearth-lead-capture-widget * {
  box-sizing: border-box;
}

/* Mobile stacking */
@media (max-width: 768px) {

  #ac-financing .ac-row {
    flex-direction: column;
  }

  #ac-financing .ac-col {
    margin-bottom: 2rem;
  }

}

/* ============================================================
   END: FINANCING & HEARTH WIDGETS
============================================================ */
