/* =================================================================
   Instant Heating and Air — Site Styles
   Brand: Navy #143C5E, Orange #EC8A23
   Mobile-first, accessible, Core-Web-Vitals-conscious
   ================================================================= */

:root {
  --navy: #143C5E;
  --navy-2: #0B2436;
  --orange: #EC8A23;
  --orange-2: #D0751A;
  --orange-dk: #A85E10;
  --sand: #F6F1E8;
  --ink: #0B2436;
  --mute: #4A5B6B;
  --line: #E3E8EE;
  --success: #2E8B57;
  --alert: #C0392B;
  --white: #ffffff;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 1px 2px rgba(11,36,54,.04), 0 8px 24px -12px rgba(11,36,54,.15);
  --shadow-lg: 0 30px 60px -30px rgba(20,60,94,.35);
  --container: 1200px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background: #fff;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--orange); }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4, h5 {
  font-family: 'Barlow Condensed', 'Oswald', 'Arial Narrow', Impact, sans-serif;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  text-transform: uppercase;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p { margin: 0 0 1em; }

/* Layout */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.section { padding: 70px 0; }
@media (max-width: 640px) { .section { padding: 48px 0; } }

.sec-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.eyebrow { display: inline-block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }
.sec-head p { color: var(--mute); font-size: 1.0625rem; }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 26px; border-radius: var(--radius);
  font-weight: 800; font-size: 0.875rem; letter-spacing: 0.04em;
  text-transform: uppercase; text-decoration: none; text-align: center;
  border: 2px solid transparent; transition: transform .12s, box-shadow .12s, background .12s, color .12s;
}
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 4px 0 var(--orange-2); }
.btn-orange:hover { background: var(--orange-2); color: #fff; transform: translateY(2px); box-shadow: 0 2px 0 var(--orange-2); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-white { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-white:hover { background: #fff; color: var(--navy); }
.btn-white { background: #fff; color: var(--navy); }

/* Skip link */
.skip-link { position: absolute; top: -40px; left: 0; background: var(--orange); color: #fff; padding: 8px 16px; z-index: 1000; text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 0; color: #fff; }

/* Top bar */
.topbar { background: var(--navy-2); color: #dbe7f0; font-size: 0.8125rem; padding: 8px 0; }
.topbar .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar .pill { background: var(--orange); color: #fff; padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; margin-right: 6px; }
.topbar-right { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* Live Phoenix temperature pill — shared visual */
.temp-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.temp-chip[hidden] { display: none !important; }
.temp-chip .temp-icon { flex-shrink: 0; }

/* Dark variant (navy topbar) */
.temp-chip-dark {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #dbe7f0;
  margin-right: 4px;
}
.temp-chip-dark.temp-hot {
  background: rgba(236,138,35,0.22);
  border-color: rgba(236,138,35,0.45);
  color: #ffd9a8;
}
.temp-chip-dark.temp-cold {
  background: rgba(135,180,230,0.18);
  border-color: rgba(135,180,230,0.4);
  color: #b6d6f5;
}

/* Light variant (white header — mobile only) */
.temp-chip-light {
  background: var(--sand);
  border: 1px solid var(--line);
  color: var(--navy);
  flex-shrink: 0;
}
.temp-chip-light.temp-hot {
  background: rgba(236,138,35,0.14);
  border-color: rgba(236,138,35,0.4);
  color: var(--orange-dk);
}
.temp-chip-light.temp-cold {
  background: rgba(20,60,94,0.08);
  border-color: rgba(20,60,94,0.25);
  color: var(--navy);
}

/* Show dark chip on desktop only; light chip on mobile only */
@media (max-width: 640px) {
  .temp-chip-dark { display: none !important; }
  .topbar .lic { display: none; }
  .topbar .row { justify-content: center; gap: 8px; }
  .temp-chip { font-size: 0.66rem; }
}
@media (min-width: 641px) {
  .temp-chip-light { display: none !important; }
}

/* Header / nav */
.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header .row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; }
.header-left { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1 1 auto; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 180px; height: auto; }
.cta-quote { padding: 10px 16px; font-size: 0.8125rem; white-space: nowrap; flex-shrink: 0; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.9375rem; font-weight: 600; padding: 8px 2px; }
.nav a:hover { color: var(--orange); }
.nav .btn { padding: 10px 18px; font-size: 0.8125rem; }
.menu-toggle { display: none; background: var(--navy); color: #fff; border: none; padding: 10px 12px; border-radius: 6px; font-size: 1.25rem; line-height: 1; flex-shrink: 0; }

@media (max-width: 960px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 20px; gap: 8px; box-shadow: var(--shadow-card); border-bottom: 1px solid var(--line); align-items: stretch; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a:last-child { border-bottom: none; }
  .menu-toggle { display: inline-block; }
  .brand img { width: 150px; }
}
@media (max-width: 540px) {
  .header .row { padding: 10px 0; gap: 8px; }
  .header-left { gap: 8px; }
  .brand img { width: 120px; }
  .cta-quote { padding: 8px 12px; font-size: 0.72rem; letter-spacing: 0.02em; }
  .menu-toggle { padding: 8px 10px; font-size: 1.125rem; }
}
@media (max-width: 380px) {
  .brand img { width: 100px; }
  .cta-quote { padding: 7px 10px; font-size: 0.68rem; }
}

/* Hero */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 80% 20%, rgba(236,138,35,.22), transparent 60%),
    linear-gradient(160deg, #0f2f4a 0%, #143C5E 55%, #0B2436 100%);
  color: #fff; padding: 80px 0 96px; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 300'><g fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1.2'><path d='M0,240 Q200,140 400,200 T800,170'/><path d='M0,260 Q200,160 400,220 T800,190'/><path d='M0,280 Q200,180 400,240 T800,210'/></g></svg>") bottom/cover no-repeat;
}
.hero .row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.hero .badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); padding: 6px 14px; border-radius: 999px; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 18px; color: #fff; }
.hero h1 { color: #fff; font-size: clamp(2.25rem, 6.2vw, 4.25rem); margin-bottom: 16px; }
.hero h1 .o { color: var(--orange); }
.hero p.lead { font-size: 1.0625rem; color: #c9d7e3; max-width: 520px; margin: 0 0 26px; }
.hero .ctas { display: flex; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.hero .trust { display: flex; gap: 22px; flex-wrap: wrap; font-size: 0.78rem; color: #b7c8d7; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }
.hero .trust span::before { content: "✓"; color: var(--orange); margin-right: 6px; font-weight: 900; }
.hero .card { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-lg); }
.hero .card h4 { color: var(--navy); font-size: 1.375rem; margin-bottom: 6px; text-transform: none; font-family: 'Barlow Condensed', sans-serif; }
.hero .card p { font-size: 0.875rem; color: var(--mute); margin: 0 0 14px; }
.hero .card label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--navy); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
.hero .card input, .hero .card select, .hero .card textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; margin-bottom: 10px; background: #fafbfc; color: var(--ink); }
.hero .card .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero .card button { width: 100%; }
.hero .rating { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 0.75rem; color: var(--mute); }
.stars { color: var(--orange); letter-spacing: 2px; }

/* Hero with embedded quote tool — flagship layout */
.hero-quote { padding: 56px 0 64px; }
.hero-quote-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr); gap: 40px; align-items: start; position: relative; z-index: 1; }
.hero-quote .hero-text { padding-top: 8px; }
.hero-quote .hero-text h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); margin-bottom: 16px; }
.hero-quote .hero-text .lead { font-size: 1.0625rem; max-width: none; }
.hero-quote .hero-phone { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 24px 0 22px; }
.hero-quote .hero-phone-note { color: #b7c8d7; font-size: 0.8125rem; }
.hero-quote .trust { font-size: 0.7rem; }
.hero-quote-frame { position: relative; }
.quote-frame-label { display: inline-flex; align-items: center; gap: 8px; background: var(--orange); color: #fff; padding: 6px 14px; border-radius: 999px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; box-shadow: 0 4px 14px -4px rgba(236,138,35,0.6); }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,0.6); animation: dot-pulse 1.8s ease-in-out infinite; }
@keyframes dot-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.6); } 50% { box-shadow: 0 0 0 6px rgba(255,255,255,0); } }

/* Embedded quote tool — common card */
.quote-wrap { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.quote-wrap iframe { width: 100%; height: 820px; border: 0; display: block; background: #fff; }
.quote-wrap-hero iframe { height: 720px; }

@media (max-width: 1024px) {
  .hero-quote-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-quote .hero-text { padding-top: 0; }
  .quote-wrap-hero iframe { height: 760px; }
}
@media (max-width: 640px) {
  .hero-quote { padding: 40px 0 48px; }
  .quote-wrap-hero iframe { height: 720px; }
  .quote-wrap iframe { height: 720px; }
}

.quote-fallback { text-align: center; margin-top: 14px; font-size: 0.8125rem; color: var(--mute); }
.quote-fallback a { color: var(--orange); font-weight: 600; text-decoration: none; }
.quote-fallback a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .hero { padding: 56px 0 64px; }
  .hero .row { grid-template-columns: 1fr; gap: 28px; }
}

/* Trust strip */
.trustbar { background: var(--sand); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; }
.trustbar .row { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 20px; }
.trustbar .item { display: flex; align-items: center; gap: 10px; color: var(--navy); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.trustbar .item .ic { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 0.8rem; }

/* Why us 3-up */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
.card-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; transition: transform .2s, box-shadow .2s; }
.card-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.card-item .ic { width: 56px; height: 56px; border-radius: 12px; background: linear-gradient(135deg, #FCE3C7, #fff); display: grid; place-items: center; margin-bottom: 18px; border: 1px solid var(--line); font-size: 1.75rem; }
.card-item h3 { color: var(--navy); margin-bottom: 10px; }
.card-item p { color: var(--mute); font-size: 0.9375rem; margin: 0; }

/* Services grid */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: 1fr; } }
@media (min-width: 640px) and (max-width: 900px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
.svc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s; text-decoration: none; color: inherit; display: block; }
.svc-card::before { content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--orange); transform: scaleY(0); transform-origin: top; transition: transform .2s; }
.svc-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.svc-card:hover::before { transform: scaleY(1); }
.svc-card .ic { width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--navy); color: var(--orange); display: grid; place-items: center; margin-bottom: 16px; font-size: 1.5rem; }
.svc-card h3 { color: var(--navy); margin-bottom: 8px; }
.svc-card p { color: var(--mute); font-size: 0.9375rem; margin: 0 0 14px; }
.svc-card .more { color: var(--orange); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; }

/* Photo-backed service card — image at 'contain' so the FULL photo is visible.
   Solid navy fills the area around the image; gradient overlay sits on top. */
.svc-card-photo {
  background-color: var(--navy-2);
  color: #fff;
  border-color: transparent;
  min-height: 340px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.svc-card-photo::before { background: var(--orange); }
.svc-card-photo .ic {
  background: rgba(255,255,255,0.97);
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(0,0,0,0.45);
}
.svc-card-photo h3 {
  color: #ffffff;
  font-size: 1.5rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.95), 0 1px 0 rgba(0,0,0,0.95);
  margin-top: auto;
}
.svc-card-photo p {
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.95), 0 1px 0 rgba(0,0,0,0.85);
  font-weight: 500;
  margin-bottom: 14px;
}
.svc-card-photo .more {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  text-shadow: none;
  font-size: 0.78rem;
  align-self: flex-start;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.svc-card-photo:hover { transform: translateY(-3px); box-shadow: 0 14px 32px -10px rgba(11,36,54,0.55); }
.svc-card-photo:hover .more { background: var(--orange-2); }

.section-sand { background: var(--sand); }

/* Comfort Club band */
.club { background: linear-gradient(100deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 64px 0; position: relative; overflow: hidden; }
.club::before { content: "$18"; position: absolute; right: -40px; top: -30px; font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 18rem; color: rgba(236,138,35,.08); line-height: 0.8; }
.club .row { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; align-items: center; position: relative; z-index: 1; }
.club h2 { color: #fff; }
.club h2 .o { color: var(--orange); }
.club p { color: #c9d7e3; font-size: 1rem; max-width: 520px; }
.club ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.club ul li { font-size: 0.875rem; color: #dbe7f0; padding-left: 20px; position: relative; }
.club ul li::before { content: "✓"; color: var(--orange); position: absolute; left: 0; font-weight: 900; }
@media (max-width: 768px) { .club .row { grid-template-columns: 1fr; } .club ul { grid-template-columns: 1fr; } }

/* Reviews */
.rev { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; height: 100%; }
.rev .stars { font-size: 1.05rem; margin-bottom: 10px; }
.rev blockquote { margin: 0 0 14px; font-size: 0.9375rem; color: var(--ink); font-style: italic; }
.rev cite { font-style: normal; color: var(--mute); font-size: 0.8125rem; font-weight: 600; display: block; }
.rev cite b { color: var(--navy); }

/* Reviews carousel — auto-rotating, swipeable, scroll-snap */
.reviews-carousel { position: relative; padding: 0 4px; }
.reviews-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0 16px;
  align-items: stretch;  /* equal-height cards */
}
.reviews-track::-webkit-scrollbar { display: none; }
.reviews-track > .rev {
  scroll-snap-align: start;
  flex: 0 0 calc(33.333% - 14px);
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.reviews-track > .rev blockquote { flex: 1 1 auto; }  /* push cite to bottom for even alignment */
@media (max-width: 900px) { .reviews-track > .rev { flex: 0 0 calc(50% - 10px); } }
@media (max-width: 600px) { .reviews-track > .rev { flex: 0 0 calc(100% - 4px); } }

.rev-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid var(--line);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  font-family: inherit;
  color: var(--navy);
  box-shadow: var(--shadow-card);
  display: grid;
  place-items: center;
  z-index: 2;
  line-height: 1;
  padding: 0 0 4px 0;
  transition: background 0.15s, transform 0.15s;
}
.rev-arrow:hover { background: var(--navy); color: #fff; transform: translateY(-50%) scale(1.05); }
.rev-prev { left: -22px; }
.rev-next { right: -22px; }
@media (max-width: 600px) {
  .rev-prev, .rev-next { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reviews-track { scroll-behavior: auto; }
}

/* Service-area interactive map (Leaflet) — scales with viewport */
.service-map {
  position: relative;
  width: 100%;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
#service-map {
  width: 100%;
  aspect-ratio: 16 / 9;       /* scales proportionally with width */
  min-height: 360px;          /* don't go too short on narrow phones */
  max-height: 760px;          /* don't get absurdly tall on huge monitors */
  background: #eef1f5;
}
.service-map iframe {         /* legacy fallback if iframe is ever used here again */
  display: block;
  width: 100%;
  height: 480px;
  border: 0;
}
/* Older browsers without aspect-ratio fallback to explicit heights */
@supports not (aspect-ratio: 1) {
  #service-map { height: 520px; }
  @media (min-width: 1024px) { #service-map { height: 600px; } }
  @media (min-width: 1400px) { #service-map { height: 700px; } }
  @media (max-width: 640px) { #service-map { height: 380px; } }
}

/* Service area chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip { background: #fff; border: 1px solid var(--line); padding: 10px 18px; border-radius: 999px; font-size: 0.875rem; font-weight: 600; color: var(--navy); text-decoration: none; }
.chip:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Brands logo wall */
.brands { display: flex; flex-wrap: wrap; gap: 28px 36px; justify-content: center; align-items: center; max-width: 980px; margin: 0 auto; }
.brands .brand-chip { background: var(--sand); border: 1px solid var(--line); padding: 10px 18px; border-radius: 6px; color: var(--mute); font-weight: 700; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.03em; }
.brand-logo-wrap { display: inline-flex; align-items: center; justify-content: center; height: 60px; min-width: 110px; padding: 6px 10px; }
.brand-logo {
  max-height: 100%;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}
.brand-logo-wrap:hover .brand-logo {
  transform: scale(1.06);
}
@media (max-width: 600px) {
  .brands { gap: 20px 24px; }
  .brand-logo-wrap { height: 48px; min-width: 88px; }
  .brand-logo { max-width: 130px; }
}

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; padding: 18px 20px; }
.faq summary { font-weight: 700; color: var(--navy); cursor: pointer; font-size: 1rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 1.5rem; font-weight: 800; flex-shrink: 0; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--mute); font-size: 0.9375rem; margin: 12px 0 0; }

/* CTA band */
.finalcta { background: radial-gradient(600px 300px at 20% 30%, rgba(236,138,35,.25), transparent 60%), var(--navy); color: #fff; padding: 72px 0; text-align: center; }
.finalcta h2 { color: #fff; }
.finalcta h2 .o { color: var(--orange); }
.finalcta p { color: #c9d7e3; max-width: 560px; margin: 0 auto 22px; }
.finalcta .ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.finalcta .lic-line { font-size: 0.75rem; color: #90a3b4; letter-spacing: 0.08em; text-transform: uppercase; }

/* Footer */
footer { background: var(--navy-2); color: #9db0c0; padding: 56px 0 24px; font-size: 0.9375rem; }
footer .row { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 30px; }
footer h4 { color: #fff; font-size: 0.875rem; letter-spacing: 0.1em; margin-bottom: 14px; }
footer a { color: #9db0c0; text-decoration: none; display: block; padding: 3px 0; }
footer a:hover { color: var(--orange); }
footer .brand-footer img { width: 200px; filter: brightness(0) invert(1); }
footer .brand-footer p { font-size: 0.8125rem; margin: 10px 0 12px; }
footer .brand-footer .lic { font-size: 0.72rem; color: #6f8395; letter-spacing: 0.08em; text-transform: uppercase; }
footer .social { display: flex; gap: 12px; margin-top: 12px; }
footer .social a { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.06); color: #fff; padding: 0; transition: background .2s; }
footer .social a:hover { background: var(--orange); color: #fff; }
footer .base { border-top: 1px solid rgba(255,255,255,.08); margin-top: 36px; padding-top: 18px; display: flex; justify-content: space-between; font-size: 0.75rem; color: #6f8395; flex-wrap: wrap; gap: 10px; }
@media (max-width: 900px) { footer .row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { footer .row { grid-template-columns: 1fr; } }

/* ---- Breadcrumbs + service page ---- */
.crumbs { background: var(--sand); padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.875rem; color: var(--mute); }
.crumbs a { color: var(--navy); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--orange); }
.crumbs b { color: var(--navy); }

.svc-hero { padding: 56px 0 40px; }
.svc-hero .row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.svc-hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); margin-bottom: 14px; }
.svc-hero h1 .o { color: var(--orange); }
.svc-hero .intro { font-size: 1.0625rem; color: var(--mute); margin-bottom: 22px; }
.svc-hero .kv { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 24px; }
.svc-hero .kv .i { background: var(--sand); border-radius: var(--radius); padding: 14px; border-left: 4px solid var(--orange); }
.svc-hero .kv .i b { display: block; color: var(--navy); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
.svc-hero .kv .i span { color: var(--mute); font-size: 0.9375rem; }
.svc-hero .side { background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 28px; position: sticky; top: 100px; }
.svc-hero .side h4 { color: #fff; font-size: 1.375rem; margin-bottom: 6px; font-family: 'Barlow Condensed', sans-serif; text-transform: none; }
.svc-hero .side p { color: #c9d7e3; font-size: 0.875rem; margin-bottom: 14px; }
.svc-hero .side .price { font-family: 'Barlow Condensed', sans-serif; font-size: 2.75rem; color: var(--orange); line-height: 1; font-weight: 800; margin-bottom: 6px; }
.svc-hero .side small { color: #a8b9c9; font-size: 0.75rem; display: block; margin-bottom: 16px; }
.svc-hero .side .btn { width: 100%; }
.svc-hero .side .btn.btn-outline-white { margin-top: 8px; }
@media (max-width: 900px) { .svc-hero .row { grid-template-columns: 1fr; } .svc-hero .side { position: static; } .svc-hero .kv { grid-template-columns: 1fr; } }

/* Process 4-step */
.process { background: var(--sand); padding: 64px 0; }
.process .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.step .n { font-family: 'Barlow Condensed', sans-serif; font-size: 3.75rem; color: var(--orange); line-height: 0.8; font-weight: 800; opacity: 0.85; }
.step h3 { color: var(--navy); margin: 6px 0 6px; font-size: 1.25rem; }
.step p { margin: 0; color: var(--mute); font-size: 0.875rem; }
@media (max-width: 900px) { .process .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .process .grid { grid-template-columns: 1fr; } }

/* Two-col list (included / signs) */
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 1100px; margin: 0 auto; }
.twocol h2 { font-size: 2rem; color: var(--navy); margin-bottom: 16px; }
.checklist { list-style: none; padding: 0; margin: 0; color: var(--ink); font-size: 1rem; line-height: 1.8; }
.checklist li { padding-left: 26px; position: relative; }
.checklist li::before { content: "✓"; color: var(--orange); position: absolute; left: 0; font-weight: 900; }
@media (max-width: 900px) { .twocol { grid-template-columns: 1fr; gap: 32px; } }

/* Prose for blog */
.prose { max-width: 720px; margin: 0 auto; font-size: 1.0625rem; }
.prose h2 { margin-top: 2em; color: var(--navy); font-size: 1.75rem; }
.prose h3 { margin-top: 1.5em; color: var(--navy); font-size: 1.25rem; }
.prose p { color: var(--ink); }
.prose ul { padding-left: 1.4em; color: var(--ink); }
.prose li { margin-bottom: 0.4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 0.9375rem; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--sand); color: var(--navy); font-weight: 700; }
.prose a { color: var(--orange); font-weight: 600; }

/* Page banner — rooftop photo background, used by .page-head and .svc-hero
   Image is referenced via image-set so browsers can pick the right format,
   and Chrome supports CSS background-image lazy-loading via content-visibility. */
.page-head, .svc-hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(11,36,54,0.82) 0%, rgba(20,60,94,0.62) 60%, rgba(11,36,54,0.78) 100%),
    url('../img/rooftop-banner.jpg') center/cover no-repeat;
  background-color: var(--navy);  /* solid color shows instantly while photo loads */
  background-attachment: scroll;
  color: #fff;
  border-bottom: none;
  content-visibility: auto;
  contain-intrinsic-size: 240px;
}
.page-head .container, .svc-hero .container { position: relative; z-index: 1; }

/* Page head (about, contact, financing, blog, etc.) */
.page-head { padding: 70px 0 60px; }
.page-head h1 { color: #fff; margin-bottom: 10px; }
.page-head p { color: #d8e3ec; max-width: 720px; font-size: 1.0625rem; }
.page-head .eyebrow { color: #FFC78F; }

/* Svc-hero — service detail and service-area pages — overrides for photo bg */
.svc-hero h1 { color: #fff; }
.svc-hero h1 .o { color: var(--orange); }
.svc-hero .intro { color: #d8e3ec; }
.svc-hero .eyebrow { color: #FFC78F; }
.svc-hero .kv .i { background: rgba(255,255,255,0.97); border-left-color: var(--orange); backdrop-filter: blur(2px); }
.svc-hero .kv .i b { color: var(--navy); }
.svc-hero .kv .i span { color: var(--mute); }

/* Related links */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.related a { background: #fff; border: 1px solid var(--line); padding: 18px; border-radius: var(--radius); text-decoration: none; color: var(--navy); font-weight: 700; display: block; }
.related a:hover { border-color: var(--orange); color: var(--orange); }
@media (max-width: 780px) { .related { grid-template-columns: 1fr; } }

/* === Modal === */
.modal { position: fixed; inset: 0; z-index: 1000; display: none; }
.modal[aria-hidden="false"] { display: block; animation: modal-fade .18s ease-out; }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
.modal-backdrop { position: fixed; inset: 0; background: rgba(11,36,54,0.7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); cursor: pointer; }
.modal-dialog { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: calc(100% - 32px); max-width: 560px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: var(--radius-lg); box-shadow: 0 40px 80px rgba(0,0,0,0.4); padding: 36px 28px 24px; }
.modal-close { position: absolute; top: 8px; right: 12px; background: none; border: none; font-size: 2rem; line-height: 1; color: var(--mute); cursor: pointer; width: 40px; height: 40px; border-radius: 50%; padding: 0; display: grid; place-items: center; }
.modal-close:hover { background: var(--sand); color: var(--navy); }
.modal-success { text-align: center; padding: 12px 0 4px; }
.modal-success-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--success); color: #fff; font-size: 1.75rem; display: grid; place-items: center; margin: 0 auto 18px; font-weight: 800; }
.modal-success h3 { color: var(--navy); font-size: 1.625rem; margin-bottom: 12px; text-transform: none; font-family: 'Barlow Condensed', sans-serif; letter-spacing: 0; }
.modal-success p { color: var(--mute); margin-bottom: 14px; font-size: 0.9375rem; }
.modal-success p a { color: var(--orange); font-weight: 600; }
.modal-success .btn { margin-top: 8px; padding: 12px 32px; }
body.modal-open { overflow: hidden; }
@media (max-width: 540px) {
  .modal-dialog { padding: 32px 18px 20px; max-height: 92vh; }
  .modal-close { top: 4px; right: 6px; }
}

/* Comfort Club signup form (lives inside the modal — no card chrome of its own) */
.club-signup { color: var(--ink); text-align: left; }
.club-signup h3 { color: var(--navy); text-transform: none; font-size: 1.625rem; margin-bottom: 18px; text-align: center; font-family: 'Barlow Condensed', sans-serif; letter-spacing: 0; }
.club-signup .cc-field { margin-bottom: 12px; }
.club-signup label { display: block; font-size: 0.72rem; font-weight: 700; color: var(--navy); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
.club-signup .cc-optional { color: var(--mute); font-weight: 500; text-transform: none; letter-spacing: 0; }
.club-signup input, .club-signup select, .club-signup textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: #fafbfc; color: var(--ink); }
.club-signup input:focus, .club-signup select:focus, .club-signup textarea:focus { background: #fff; border-color: var(--orange); }
.club-signup .cc-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.club-signup textarea { resize: vertical; min-height: 60px; }
.club-signup .cc-submit { width: 100%; margin-top: 6px; padding: 14px; font-size: 0.9375rem; }
.club-signup .cc-foot { font-size: 0.75rem; color: var(--mute); margin: 12px 0 0; text-align: center; }
@media (max-width: 540px) {
  .club-signup .cc-row2 { grid-template-columns: 1fr; }
  .club-signup { padding: 22px 20px; }
}

/* Forms */
form.standard input, form.standard select, form.standard textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; margin-bottom: 14px; background: #fff;
}
form.standard label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 4px; font-size: 0.875rem; }
form.standard textarea { min-height: 120px; resize: vertical; }

/* Utility */
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* Focus accessibility */
a:focus-visible, button:focus-visible, [role="button"]:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px;
}
