/* =================================================================
   Villa Air Cooling & Heating — site styles
   Palette pulled from the brand emblem: deep navy + brushed gold
   ================================================================= */

:root {
  --navy:        #22335c;
  --navy-deep:   #172444;
  --navy-tint:   #33477a;
  --gold:        #cfb379;
  --gold-soft:   #e6cf9f;
  --cream:       #f6f1e6;
  --paper:       #ffffff;
  --ink:         #1b1f27;
  --muted:       #5c6270;
  --line:        #e4ded1;

  --container:   1160px;
  --radius:      14px;
  --radius-sm:   9px;
  --shadow:      0 18px 40px -18px rgba(15, 24, 48, 0.28);
  --shadow-sm:   0 8px 22px -12px rgba(15, 24, 48, 0.30);

  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.35rem; letter-spacing: 0.03em; }

p { color: var(--ink); }

.skip-link {
  position: absolute;
  left: 8px; top: -60px;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 999;
  transition: top .2s ease;
}
.skip-link:focus { top: 8px; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.2rem);
}

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: rgba(255, 255, 255, 0.82); }

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}
.section--navy .eyebrow { color: var(--gold-soft); }

.section-head { max-width: 640px; margin-bottom: 2.6rem; }
.section-head p { margin-top: 0.9rem; color: var(--muted); }
.section--navy .section-head p { color: rgba(255, 255, 255, 0.8); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 1.02rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--gold); color: var(--navy-deep); }
.btn--primary:hover { background: var(--gold-soft); }
.btn--ghost { border-color: currentColor; color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-tint); }
.btn--block { width: 100%; }

/* ---------- top bar ---------- */
.topbar {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.86rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 40px;
  padding-block: 0.35rem;
}
.topbar a { text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar__list { display: flex; gap: 1.4rem; list-style: none; padding: 0; }
.topbar__list li { display: flex; align-items: center; gap: 0.4rem; }
.topbar__list svg { width: 15px; height: 15px; color: var(--gold); flex: none; }
.topbar__phone { font-weight: 600; color: #fff; letter-spacing: 0.02em; }
@media (max-width: 720px) {
  .topbar__list li:not(.topbar__phone-li) { display: none; }
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 78px;
}
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 40px; width: auto; }
.brand:focus-visible { outline-offset: 6px; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
}
.main-nav a {
  display: block;
  text-decoration: none;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 500;
  font-size: 1.02rem;
  color: var(--navy);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  transition: background-color .15s ease, color .15s ease;
}
.main-nav a:hover { background: var(--cream); }
.main-nav a[aria-current="page"] { color: var(--gold); }
/* the in-menu CTA is only for the collapsed mobile menu */
.main-nav > ul > li:last-child { display: none; }

.header-actions { display: flex; align-items: center; gap: 0.8rem; flex: none; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--navy);
  margin-inline: auto;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after  { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: rotate(-45deg) translateY(-1px); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .header-actions .btn { display: none; }
  .main-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.6rem clamp(1.1rem, 4vw, 2.2rem) 1.4rem; }
  .main-nav a { padding: 0.85rem 0.6rem; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.15rem; }
  .main-nav li:last-child a { border-bottom: 0; }
  .main-nav > ul > li:last-child { display: block; }
  .main-nav .btn { display: inline-flex; width: 100%; margin-top: 0.9rem; }
}

/* ---------- hero ---------- */
.hero {
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
  gap: clamp(2rem, 5vw, 4rem);
}
.hero__copy { padding-block: clamp(3.2rem, 7vw, 5.5rem); align-self: center; min-width: 0; }
.hero__copy h1 { color: #fff; margin-top: 1.2rem; }
.hero__copy h1 span { color: var(--gold); }
.hero__copy p { color: rgba(255, 255, 255, 0.82); font-size: 1.1rem; margin-top: 1.3rem; max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  list-style: none;
  padding-left: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.8);
}
.hero__trust li { display: flex; align-items: center; gap: 0.5rem; }
.hero__trust svg { width: 18px; height: 18px; color: var(--gold); flex: none; }

.hero__media { position: relative; min-height: 340px; }
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--navy) 0%, rgba(34, 51, 92, 0.35) 32%, rgba(34, 51, 92, 0) 60%);
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: 0; }
  .hero__media { min-height: 300px; order: -1; }
  .hero__media::after { background: linear-gradient(0deg, var(--navy) 0%, rgba(34, 51, 92, 0) 55%); }
  .hero__copy { padding-block: 2.6rem 3.2rem; }
}

/* ---------- generic bits ---------- */
.lead { font-size: 1.15rem; color: var(--muted); }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }

.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* ---------- cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.card--link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  border-color: var(--gold);
}
.card__icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--navy);
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 0.5rem; letter-spacing: 0.02em; }
.card p { color: var(--muted); font-size: 0.97rem; }
.card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}
.card__more svg { width: 16px; height: 16px; transition: transform .15s ease; }
.card--link:hover .card__more svg { transform: translateX(3px); }

/* ---------- stats ---------- */
.call-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 1.6rem;
  text-align: center;
}
.call-banner__label {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-soft);
}
.call-banner__phone {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  line-height: 1.1;
}
.call-banner__phone:hover { color: var(--gold-soft); }

.area-strip { text-align: center; }
.area-strip h2 { font-size: 1rem; letter-spacing: 0.12em; margin-bottom: 0.5rem; }
.area-strip p { font-size: 0.88rem; color: var(--muted); max-width: 70ch; margin-inline: auto; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; text-align: center; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat__label { margin-top: 0.5rem; font-size: 0.92rem; color: rgba(255,255,255,0.75); text-transform: uppercase; letter-spacing: 0.12em; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; } }

/* ---------- split feature ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split--flip .split__media { order: 2; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.split__media--tall img { aspect-ratio: 4 / 5; }
.split ul { list-style: none; padding: 0; margin-top: 1.4rem; display: grid; gap: 0.85rem; }
.split li { display: flex; gap: 0.7rem; align-items: flex-start; }
.split li svg { width: 22px; height: 22px; color: var(--gold); flex: none; margin-top: 2px; }
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
}

/* ---------- checklist / area list ---------- */
.pill-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.7rem; }
.pill-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pill-list svg { width: 15px; height: 15px; color: var(--gold); }
.section--navy .pill-list li { background: var(--navy-tint); border-color: rgba(255,255,255,0.15); color: #fff; }

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1.4rem; grid-template-columns: repeat(3, 1fr); }
.step { position: relative; padding-left: 3.6rem; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: -4px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
}
.step h3 { margin-bottom: 0.35rem; }
.step p { color: var(--muted); font-size: 0.96rem; }
.section--navy .step p { color: rgba(255,255,255,0.8); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* ---------- testimonials ---------- */
.quote {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.quote p { font-size: 1.05rem; }
.quote__author { margin-top: 1rem; font-weight: 600; font-size: 0.95rem; }
.quote__meta { color: var(--muted); font-size: 0.88rem; }
.stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 0.7rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--gold); color: var(--navy-deep); }
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: clamp(2.2rem, 5vw, 3rem);
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--navy-deep); }
.cta-band p { color: rgba(15, 24, 48, 0.8); margin-top: 0.3rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin-inline: auto; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
}
.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.6rem;
  line-height: 1;
  color: var(--gold);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 0.8rem; color: var(--muted); }

/* ---------- page hero (interior) ---------- */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding-block: clamp(3rem, 7vw, 4.6rem);
}
.page-hero h1 { color: #fff; margin-top: 0.9rem; }
.page-hero p { color: rgba(255,255,255,0.82); margin-top: 1rem; max-width: 55ch; font-size: 1.08rem; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: #fff; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.field { display: grid; gap: 0.4rem; margin-bottom: 1.1rem; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field input,
.field select,
.field textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.9rem;
  background: #fff;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.6rem; }
.form-status { margin-top: 1rem; font-weight: 600; }
.form-status[data-state="ok"] { color: #1f7a3d; }
.form-status[data-state="error"] { color: #b3261e; }

.info-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.8rem;
}
.info-card h3 { color: #fff; }
.info-list { list-style: none; padding: 0; margin-top: 1rem; display: grid; gap: 1rem; }
.info-list li { display: flex; gap: 0.8rem; align-items: flex-start; }
.info-list svg { width: 20px; height: 20px; color: var(--gold); flex: none; margin-top: 3px; }
.info-list a { text-decoration: none; }
.info-list a:hover { color: var(--gold-soft); }

.map-embed {
  margin-top: 1.4rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.72);
  padding-block: clamp(3rem, 6vw, 4.2rem) 1.5rem;
  font-size: 0.94rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.2rem;
}
.site-footer img { height: 34px; margin-bottom: 1rem; }
.site-footer p { color: rgba(255, 255, 255, 0.85); }
.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 0.6rem; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; color: var(--gold); flex: none; margin-top: 4px; }
.footer-bottom {
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- misc ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
