/* ============================================================
   Air One & Beyond Heating & Cooling, Inc. — Stylesheet
   ============================================================ */

:root {
  --navy:        #0b2545;
  --navy-2:      #13315c;
  --blue:        #2e7dd2;
  --blue-light:  #eaf3fc;
  --accent:      #ff6b35;   /* warm "heat" accent */
  --accent-dark: #e25420;
  --ink:         #1a2333;
  --muted:       #5a6678;
  --line:        #e3e8ef;
  --bg:          #ffffff;
  --bg-alt:      #f5f8fc;
  --white:       #ffffff;
  --radius:      14px;
  --radius-sm:   10px;
  --shadow:      0 10px 30px rgba(11, 37, 69, 0.08);
  --shadow-lg:   0 20px 50px rgba(11, 37, 69, 0.15);
  --maxw:        1160px;
  --font:        "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display:     "Poppins", var(--font);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; color: var(--navy); }

/* Section scroll offset so sticky header doesn't cover anchors */
section[id] { scroll-margin-top: 90px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 12px 22px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 18px rgba(255,107,53,0.32); }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { background: transparent; color: var(--navy); border-color: rgba(11,37,69,0.18); }
.btn--ghost:hover { border-color: var(--navy); }
.btn--light { background: #fff; color: var(--navy); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn--outline-light:hover { background: rgba(255,255,255,0.12); }
.btn--lg { padding: 15px 30px; font-size: 1.05rem; }
.btn--block { width: 100%; }

.eyebrow {
  display: inline-block;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ---------- Topbar ---------- */
.topbar {
  background: var(--navy);
  color: #d7e3f4;
  font-size: 0.86rem;
}
.topbar__inner { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.topbar__contact { display: flex; align-items: center; gap: 10px; }
.topbar__contact a:hover { color: #fff; }
.topbar__sep { opacity: 0.4; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}
.header.scrolled { box-shadow: var(--shadow); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.brand { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-size: 1.35rem; font-weight: 800; color: var(--navy); }
.brand__icon { font-size: 1.4rem; }
.brand__text strong { color: var(--blue); font-weight: 800; }
.brand--light, .brand--light .brand__text { color: #fff; }
.brand--light .brand__text strong { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav__link { font-weight: 500; color: var(--ink); position: relative; }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--accent); transition: width 0.22s ease;
}
.nav__link:hover { color: var(--blue); }
.nav__link:hover::after { width: 100%; }
.nav__cta { margin-left: 6px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 3px; transition: 0.25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(46,125,210,0.25), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, #1c3f70 100%);
  color: #fff;
  padding: 78px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 50px; align-items: center; }
.hero .eyebrow { color: #7fb4ec; }
.hero__title { font-size: clamp(2.1rem, 4.6vw, 3.5rem); color: #fff; margin-bottom: 18px; }
.hero__subtitle { font-size: 1.12rem; color: #cdd9ec; max-width: 540px; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero__actions .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.4); }
.hero__actions .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.hero__badges { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; color: #cdd9ec; font-size: 0.92rem; }

.hero__card {
  background: #fff;
  color: var(--ink);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.hero__card h3 { font-size: 1.35rem; margin-bottom: 4px; }
.hero__card > p { color: var(--muted); margin-bottom: 18px; font-size: 0.95rem; }
.quick-form { display: flex; flex-direction: column; gap: 12px; }
.quick-form input, .quick-form select,
.contact__form input, .contact__form select, .contact__form textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 0.97rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.quick-form input:focus, .quick-form select:focus,
.contact__form input:focus, .contact__form select:focus, .contact__form textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(46,125,210,0.15);
}
.quick-form__note { font-size: 0.78rem; color: var(--muted); text-align: center; }

.form-success {
  margin-top: 14px;
  background: #e9f8ee;
  color: #1b7a3d;
  border: 1px solid #bfe8cd;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.92rem;
}

/* ---------- Trust strip ---------- */
.trust { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.trust__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 34px 0; text-align: center; }
.trust__item strong { display: block; font-family: var(--display); font-size: 2rem; color: var(--blue); }
.trust__item span { color: var(--muted); font-size: 0.92rem; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section--alt {
  background-color: var(--bg-alt);
  background-image: radial-gradient(rgba(46,125,210,0.05) 1.4px, transparent 1.4px);
  background-size: 24px 24px;
}
.section__head { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.section__head--left { text-align: left; margin: 0 0 36px; }
.section__head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 14px; }
.section__head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Grid + cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }

.service { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service__icon {
  width: 60px; height: 60px; border-radius: 16px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, var(--blue) 0%, var(--navy) 100%);
  box-shadow: 0 10px 22px rgba(46,125,210,0.30);
  margin-bottom: 18px; transition: transform 0.25s ease;
}
.service__icon svg { width: 30px; height: 30px; }
.service h3 { font-size: 1.22rem; margin-bottom: 8px; }
.service p { color: var(--muted); }

/* ---------- Why us ---------- */
.why__inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 50px; align-items: center; }
.why__media {
  position: relative; min-height: 360px; border-radius: 18px; overflow: hidden;
  background:
    radial-gradient(600px 280px at 78% 16%, rgba(255,209,102,0.22), transparent 60%),
    linear-gradient(160deg, #2e7dd2 0%, #13315c 70%, #0b2545 100%);
  box-shadow: var(--shadow-lg);
}
.why__badge { background: #fff; border-radius: 16px; padding: 26px 30px; text-align: center; box-shadow: var(--shadow); }
.why__badge-num { display: block; font-family: var(--display); font-size: 2.6rem; color: var(--accent); font-weight: 800; }
.why__badge-label { color: var(--muted); font-size: 0.92rem; }
.why__content h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 22px; }

.feature-list { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list span {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--blue-light); color: var(--blue); font-weight: 700;
  display: grid; place-items: center; font-size: 0.85rem; margin-top: 3px;
}
.feature-list strong { color: var(--navy); }

/* ---------- About ---------- */
.about__inner { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 50px; align-items: start; }
.about__content h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 18px; }
.about__content p { color: var(--muted); margin-bottom: 16px; }
.about__stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 26px; }
.about__stats strong { display: block; font-family: var(--display); color: var(--blue); font-size: 1.15rem; }
.about__stats span { color: var(--muted); font-size: 0.9rem; }

.about__areas h3 { margin-bottom: 8px; }
.about__areas > p { color: var(--muted); font-size: 0.95rem; margin-bottom: 14px; }
.areas { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-bottom: 16px; }
.areas li { position: relative; padding-left: 20px; color: var(--ink); font-size: 0.95rem; }
.areas li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.areas__note { font-size: 0.9rem; color: var(--muted); }
.areas__note a { color: var(--blue); font-weight: 600; }

/* ---------- Reviews ---------- */
.review { display: flex; flex-direction: column; gap: 12px; }
.review .stars { color: #f5a623; letter-spacing: 2px; }
.review p { color: var(--ink); font-style: italic; }
.review footer { color: var(--muted); font-weight: 600; font-style: normal; font-size: 0.92rem; }
.review__src { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 20px; background: var(--blue-light); color: var(--blue); font-size: 0.72rem; font-weight: 600; }

/* ---------- CTA banner ---------- */
.cta-banner { background: linear-gradient(120deg, var(--accent) 0%, var(--accent-dark) 100%); color: #fff; padding: 54px 0; }
.cta-banner__inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.cta-banner h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 6px; }
.cta-banner p { color: rgba(255,255,255,0.92); }
.cta-banner__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- FAQ ---------- */
.faq__inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 46px; align-items: start; }
.faq__list { display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 20px; box-shadow: var(--shadow); }
.faq-item summary {
  list-style: none; cursor: pointer; font-family: var(--display); font-weight: 600;
  color: var(--navy); padding: 16px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--accent); transition: transform 0.2s ease; line-height: 1; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); padding: 0 0 18px; }

/* ---------- Contact ---------- */
.contact__inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: start; }
.contact__info h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 16px; }
.contact__info > p { color: var(--muted); margin-bottom: 26px; }
.contact__details { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.contact__details li { display: flex; gap: 14px; align-items: flex-start; }
.contact__details span:first-child { font-size: 1.3rem; }
.contact__details strong { display: block; color: var(--navy); }
.contact__details a { color: var(--blue); }
.contact__details div { display: flex; flex-direction: column; }

.contact__form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.error { color: #d23b3b; font-size: 0.8rem; min-height: 1em; }
.field input.invalid, .field select.invalid, .field textarea.invalid { border-color: #d23b3b; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #c3d1e6; padding: 56px 0 0; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; }
.footer__brand p { margin-top: 14px; color: #9fb2cf; font-size: 0.92rem; max-width: 280px; }
.footer__col h4 { color: #fff; margin-bottom: 14px; font-size: 1rem; }
.footer__col a, .footer__col span { display: block; color: #9fb2cf; margin-bottom: 9px; font-size: 0.92rem; }
.footer__col a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 18px 0; }
.footer__bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 0.82rem; color: #8499b8; }

/* ---------- Floating call button ---------- */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 1.5rem;
  display: none; place-items: center;
  box-shadow: 0 10px 24px rgba(255,107,53,0.45);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,107,53,0.5); }
  70% { box-shadow: 0 0 0 16px rgba(255,107,53,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,107,53,0); }
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Coded graphics & visual polish ---------- */
.hero__inner { position: relative; z-index: 2; }
.hero__art { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 80px; z-index: 1; }
.flake { position: absolute; color: #bcd6f5; opacity: 0.45; animation: floaty 7s ease-in-out infinite; }
.flake svg { display: block; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(25deg); }
}
@media (prefers-reduced-motion: reduce) {
  .flake { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.hero__title .hl {
  background: linear-gradient(90deg, #ffd166, #ff8a3d);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.service { position: relative; overflow: hidden; }
.service::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--accent));
  transform: scaleX(0); transform-origin: left; transition: transform 0.28s ease;
}
.service:hover::before { transform: scaleX(1); }
.service:hover .service__icon { transform: translateY(-2px) rotate(-6deg) scale(1.06); }

.why__illustration { position: absolute; inset: 0; width: 100%; height: 100%; }

/* SVG parts rotate/scale around their own centers */
.ac-fan, .sun-rays, .sun-core, .anim-sun { transform-box: fill-box; transform-origin: center; }

/* Continuous looping motion (hand-coded CSS — no library) */
.ac-fan   { animation: ab-spin 3.2s linear infinite; }
.sun-rays { animation: ab-spin 42s linear infinite; }
.sun-core { animation: ab-sun-pulse 3.6s ease-in-out infinite; }
.cool-air > *:nth-child(1) { animation: ab-cool 2.6s ease-in-out infinite; }
.cool-air > *:nth-child(2) { animation: ab-cool 2.6s ease-in-out 0.5s infinite; }

@keyframes ab-spin { to { transform: rotate(360deg); } }
@keyframes ab-sun-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes ab-cool {
  0%, 100% { opacity: 0.35; transform: translateY(2px); }
  50% { opacity: 0.9; transform: translateY(-9px); }
}

/* Scroll-triggered entrance — fires when the section reveals (.visible added by
   script.js). Parts stay visible if JS never runs, so it degrades gracefully. */
.why__media.visible .anim-house { animation: ab-enter-up 0.7s ease-out both; }
.why__media.visible .anim-ac    { animation: ab-enter-right 0.7s ease-out 0.15s both; }
.why__media.visible .anim-sun   { animation: ab-enter-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both; }

@keyframes ab-enter-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ab-enter-right { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: translateX(0); } }
@keyframes ab-enter-pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }
.why__badge { position: absolute; left: 20px; bottom: 20px; margin: 0; z-index: 2; }

.btn--primary { background: linear-gradient(135deg, #ff7a45 0%, var(--accent-dark) 100%); }

/* ---------- Accessibility & interaction (UI/UX Pro Max guidelines) ---------- */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible { outline-offset: 3px; }
a, button, summary, input, select, textarea, label { touch-action: manipulation; }
@media (max-width: 760px) {
  .footer__col a { min-height: 40px; display: flex; align-items: center; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .why__inner, .about__inner, .faq__inner, .contact__inner { grid-template-columns: 1fr; gap: 36px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .topbar__contact a:last-child, .topbar__sep { display: none; }

  .nav {
    position: fixed; inset: 70px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 10px 22px 22px; box-shadow: var(--shadow-lg);
    transform: translateY(-130%); transition: transform 0.3s ease; visibility: hidden;
  }
  .nav.open { transform: translateY(0); visibility: visible; }
  .nav__link { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav__cta { margin: 14px 0 0; }
  .nav-toggle { display: flex; }

  .grid--3 { grid-template-columns: 1fr; }
  .trust__inner { grid-template-columns: 1fr 1fr; gap: 26px 12px; }
  .field-row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .fab { display: grid; }
  .section { padding: 60px 0; }
  .cta-banner__inner { flex-direction: column; text-align: center; align-items: center; }
}
