/* ============================================================
   Comfy Climate AC — shared stylesheet
   Palette: cool teal/cyan base (the relief) + warm ember accent
   (reserved for primary CTAs, echoing heat/heating).
   ============================================================ */

:root {
  /* color */
  --ink: #0F2A32;
  --teal: #0E3A45;
  --teal-deep: #0A2C35;
  --cyan: #1597A8;
  --cyan-bright: #1FB0C2;
  --cyan-soft: #DCEEF1;
  --ember: #FF6A3D;
  --ember-deep: #E8521F;
  --bg: #F5F8F9;
  --surface: #FFFFFF;
  --line: #D7E3E6;
  --muted: #56707A;
  --gradient: linear-gradient(90deg, #1597A8 0%, #5DC2B6 38%, #FFC15E 72%, #FF6A3D 100%);

  /* type */
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;

  /* layout */
  --maxw: 1160px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px -24px rgba(10, 44, 53, 0.45);
  --shadow-sm: 0 6px 20px -12px rgba(10, 44, 53, 0.4);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.4em;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p { margin: 0 0 1rem; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--teal); }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cyan);
  margin: 0 0 0.8rem;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* gradient signature rule */
.spectrum {
  height: 4px;
  width: 64px;
  border-radius: 4px;
  background: var(--gradient);
  border: 0;
  margin: 0 0 1.4rem;
}
.center .spectrum, .spectrum.center { margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ember); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--ember-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-ghost:hover { background: var(--teal); color: #fff; }
.btn-light { background: #fff; color: var(--teal); }
.btn-light:hover { background: var(--cyan-soft); color: var(--teal); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 248, 249, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; color: var(--teal); white-space: nowrap; }
.brand:hover { color: var(--teal); }
.brand .dot {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--gradient);
  display: inline-block;
  box-shadow: inset 0 0 0 5px var(--bg);
}
.nav-links { display: flex; align-items: center; gap: 16px; list-style: none; margin: 0 26px 0 30px; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: 0.88rem; white-space: nowrap; }
.nav-links a:hover { color: var(--cyan); }
.nav-cta { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.nav-phone { font-family: var(--font-display); font-weight: 700; color: var(--teal); white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--teal); margin: 5px 0; transition: 0.2s; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 92px) 0 clamp(40px, 6vw, 72px); }
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(1100px 500px at 78% -10%, rgba(21, 151, 168, 0.16), transparent 60%),
    radial-gradient(700px 400px at 100% 120%, rgba(255, 106, 61, 0.10), transparent 55%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero h1 span { color: var(--cyan); }
.hero .lead { margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 1.8rem; }
.trust-strip { display: flex; flex-wrap: wrap; gap: 18px; font-size: 0.92rem; color: var(--muted); }
.trust-strip span { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.trust-strip .check { color: var(--cyan); font-weight: 800; }

/* thermostat dial — the signature element */
.dial-wrap { display: flex; justify-content: center; }
.dial {
  position: relative;
  width: min(300px, 72vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    conic-gradient(from 135deg, var(--cyan) 0deg, #5DC2B6 70deg, #FFC15E 150deg, var(--ember) 200deg, rgba(215,227,230,0.5) 200deg 360deg);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}
.dial::before {
  content: "";
  position: absolute; inset: 18px;
  border-radius: 50%;
  background: var(--surface);
}
.dial-inner { position: relative; text-align: center; }
.dial-temp { font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 9vw, 4.4rem); color: var(--teal); line-height: 1; }
.dial-temp sup { font-size: 0.4em; top: -1.1em; }
.dial-label { text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.72rem; font-weight: 700; color: var(--cyan); margin-top: 6px; }
.dial-sub { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }

/* ---------- quote/lead form card ---------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 38px);
  box-shadow: var(--shadow);
}
.form-card h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8em 0.9em;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid rgba(21, 151, 168, 0.25);
  border-color: var(--cyan);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: 0.82rem; color: var(--muted); margin: 10px 0 0; text-align: center; }
.hp { position: absolute; left: -9999px; }

/* ---------- service / card grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--cyan-soft); color: var(--teal);
  font-size: 1.4rem; margin-bottom: 16px;
}
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--muted); margin-bottom: 0.8rem; }
.card a.more { font-weight: 700; font-size: 0.92rem; }

/* dark band */
.band-dark { background: var(--teal-deep); color: #EAF4F5; }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .lead { color: #AEC9CE; }
.band-dark .eyebrow { color: var(--cyan-bright); }

/* feature list */
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.features li { display: flex; gap: 14px; align-items: flex-start; }
.features .mk {
  flex: none; width: 34px; height: 34px; border-radius: 9px;
  background: rgba(31, 176, 194, 0.16); color: var(--cyan-bright);
  display: grid; place-items: center; font-weight: 800;
}
.band-dark .features strong { color: #fff; }
.features p { margin: 0; color: var(--muted); }
.band-dark .features p { color: #AEC9CE; }

/* process steps */
.steps { counter-reset: step; display: grid; gap: 24px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step .num {
  flex: none; counter-increment: step;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gradient); color: #fff;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700;
}
.step .num::before { content: counter(step); }

/* reviews */
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.review .stars { color: #F5A623; letter-spacing: 2px; margin-bottom: 10px; }
.review p { font-size: 1.02rem; color: var(--ink); }
.review .who { font-weight: 700; color: var(--teal); margin: 0; }
.review .where { color: var(--muted); font-size: 0.88rem; }

/* areas */
.area-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 18px 0 0; }
.area-list li { background: var(--cyan-soft); color: var(--teal); font-weight: 600; padding: 8px 16px; border-radius: 999px; font-size: 0.92rem; }
.area-list li a { color: inherit; text-decoration: none; display: block; }
.area-list li:has(a):hover { background: #d4e7ea; }
.area-list li a:hover { text-decoration: underline; }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 320px; box-shadow: var(--shadow-sm); }
.map-placeholder { min-height: 320px; background: var(--cyan-soft); display: grid; place-items: center; color: var(--teal); font-weight: 600; text-align: center; padding: 20px; }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--teal);
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cyan); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* final cta */
.cta-band { background: var(--teal); color: #fff; border-radius: clamp(20px, 4vw, 32px); padding: clamp(36px, 6vw, 64px); text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--gradient); }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: #BCD6DA; margin: 0 auto 1.6rem; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* page hero (interior) */
.page-hero { background: var(--teal-deep); color: #fff; padding: clamp(48px, 7vw, 84px) 0; position: relative; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--gradient); }
.page-hero h1 { color: #fff; }
.page-hero .crumb { color: #9FBEC4; font-size: 0.88rem; margin-bottom: 12px; }
.page-hero .crumb a { color: #9FBEC4; }
.page-hero .lead { color: #C5DCE0; }
.page-hero .hero-actions { margin-top: 1.6rem; }

/* prose */
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.1em; }
.prose li { margin-bottom: 0.5em; }
.split { display: grid; grid-template-columns: 1.4fr 0.9fr; gap: 48px; align-items: start; }
.aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); position: sticky; top: 96px; }

/* ---------- footer ---------- */
.site-footer { background: var(--teal-deep); color: #BCD6DA; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: #BCD6DA; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 40px; padding-top: 20px; font-size: 0.85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* floating mobile call/text bar */
.call-fab {
  position: fixed; bottom: 18px; left: 18px; right: 18px; z-index: 60;
  display: none; gap: 10px;
}
.call-fab a {
  flex: 1;
  display: flex; justify-content: center; align-items: center; gap: 8px;
  color: #fff; font-weight: 700;
  padding: 0.95em; border-radius: 999px; box-shadow: var(--shadow);
}
.call-fab .fab-call { background: var(--ember); }
.call-fab .fab-text { background: var(--teal); }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .nav-phone { display: none; }
}
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .dial-wrap { order: -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links, .nav-phone { display: none; }
  .brand { font-size: 1.02rem; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--surface);
    border-bottom: 1px solid var(--line); padding: 8px 24px 16px;
  }
  .nav.open .nav-links li { width: 100%; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .call-fab { display: flex; }
  body { padding-bottom: 84px; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav { gap: 10px; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn { font-size: 0.68rem; padding: 0.22em 0.6em; border-width: 1.5px; }
}

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

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

/* ============ real-photo + penguin branding additions ============ */
.brand img.mark, .footer-brand img.mark {
  width: 42px; height: 42px; border-radius: 50%;
  box-shadow: 0 2px 8px -2px rgba(10,44,53,.5);
}
.footer-brand img.mark { width: 40px; height: 40px; }

/* hero photo + playful badge */
.hero-photo { position: relative; }
.hero-photo > img {
  width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow); object-fit: cover; aspect-ratio: 4/3;
}
.badge-float {
  position: absolute; right: -14px; bottom: -14px;
  width: 122px; height: 122px; border-radius: 50%;
  background: var(--surface); box-shadow: var(--shadow);
  display: grid; place-items: center; text-align: center;
  border: 3px solid #fff;
}
.badge-float .t { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; color: var(--teal); line-height: 1; }
.badge-float .t sup { font-size: .45em; top: -.9em; }
.badge-float .l { text-transform: uppercase; letter-spacing: .16em; font-size: .58rem; font-weight: 700; color: var(--cyan); margin-top: 3px; }
.badge-pop {
  position: absolute; left: -12px; top: -12px; width: 64px; height: 64px;
  border-radius: 50%; box-shadow: var(--shadow-sm); border: 3px solid #fff;
}

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--surface); border: 1px solid var(--line); }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform .3s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { padding: 12px 14px; font-size: .9rem; color: var(--muted); font-weight: 600; }

/* photo band (van / trust) */
.photo-band { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.photo-band .stack { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.photo-band .stack img { width: 100%; border-radius: var(--radius); aspect-ratio: 1/1; object-fit: cover; box-shadow: var(--shadow-sm); }
.photo-band .stack img.tall { grid-row: span 2; aspect-ratio: auto; height: 100%; }

/* service page inline image */
.service-photo { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-sm); margin: 0 0 8px; aspect-ratio: 16/10; object-fit: cover; }

@media (max-width: 940px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .photo-band { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .badge-float { width: 92px; height: 92px; right: 8px; bottom: -10px; }
  .badge-float .t { font-size: 1.4rem; }
}
