/* Cook's Air Conditioning & Heating Specialists
   Design direction: ice-blue (cooling) + warm red/orange (heating) duality,
   clean modern sans headings, crisp/professional. Mobile-first.
   2026-07-29: palette values below aligned to the real cooksair.com brand
   colors (navy #202285/#141655 primary, red #df1b22 accent from their
   logo) — see NOTES.md "Branding update" for details. Variable names/roles
   (ice-* = cooling family, warm-* = heating/CTA family) unchanged. */

:root {
  --ice-50: #f4f4f9;
  --ice-100: #dedeed;
  --ice-300: #9b9cc8;
  --ice-500: #6e6fb0;
  --ice-700: #202285;
  --ice-900: #141655;

  --warm-300: #ef8d90;
  --warm-500: #e43d43;
  --warm-600: #df1b22;
  --warm-700: #b7161c;

  --ink: #142b33;
  --ink-soft: #45636b;
  --paper: #ffffff;
  --paper-tint: #f5fbfd;
  --line: #dcecf1;

  --font-head: 'Sora', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius: 14px;
  --shadow: 0 12px 30px -14px rgba(20, 22, 85, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--ink-900, var(--ink));
}

p { margin: 0 0 14px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.txt-cool { color: var(--ice-700); }
.txt-warm { color: var(--warm-600); }

/* ---------- Header ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  box-shadow: 0 1px 0 var(--line);
}

.header-top {
  background: var(--ice-900);
  color: var(--ice-100);
  font-size: 13px;
  padding: 6px 20px;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.header-top a { color: var(--ice-100); font-weight: 600; }
.rating-pill { color: var(--warm-300); font-weight: 600; }

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.logo {
  height: 40px;
  max-height: 40px;
  width: auto;
  max-width: 44vw;
  display: block;
}

.brand-mark {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  overflow: hidden;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  box-shadow: var(--shadow);
}

.brand-mark span,
.owner-badge span {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mark-cool { background: linear-gradient(160deg, var(--ice-500), var(--ice-700)); color: #fff; }
.mark-warm { background: linear-gradient(160deg, var(--warm-500), var(--warm-700)); color: #fff; }

.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.25;
  white-space: nowrap;
}

.brand-text small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  color: var(--ink-soft);
}

nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  display: none;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  color: var(--ink-soft);
}

.nav-link:hover { background: var(--paper-tint); color: var(--ice-700); }

.call-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--warm-600);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  min-height: 44px;
  box-shadow: var(--shadow);
}

.call-btn:hover { background: var(--warm-700); }
.call-text { display: none; }

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 20px;
  cursor: pointer;
  color: var(--ice-900);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  padding: 14px 20px;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--ice-900);
  isolation: isolate;
}

.hero-cool,
.hero-warm {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-cool {
  background:
    radial-gradient(ellipse at 15% 20%, rgba(110, 111, 176, 0.55), transparent 55%),
    linear-gradient(135deg, var(--ice-900), #0a2833 60%);
}

.hero-warm {
  background: radial-gradient(ellipse at 90% 100%, rgba(223, 27, 34, 0.45), transparent 50%);
}

.hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 56px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero-copy .eyebrow {
  display: inline-block;
  color: var(--ice-300);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero-copy h1 {
  color: #fff;
  font-size: clamp(30px, 6vw, 46px);
  margin-bottom: 16px;
}

.hero-copy p {
  color: var(--ice-100);
  font-size: 17px;
  max-width: 54ch;
  margin-bottom: 24px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
}

.btn-primary {
  background: var(--warm-600);
  color: #fff;
  box-shadow: 0 14px 30px -10px rgba(223, 27, 34, 0.6);
}

.btn-primary:hover { background: var(--warm-700); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); }

.rating-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  max-width: 340px;
}

.stars { color: var(--warm-500); font-size: 18px; letter-spacing: 2px; }

.score {
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 800;
  color: var(--ice-900);
  line-height: 1;
  margin: 6px 0 2px;
}

.count { color: var(--ink-soft); font-size: 14px; margin-bottom: 16px; }

.divider-line {
  height: 1px;
  background: var(--line);
  margin: 14px 0;
}

.fact-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 6px 0;
  color: var(--ink-soft);
}

.fact-row strong { color: var(--ink); }

/* ---------- Trust strip ---------- */

.trust-strip {
  background: var(--paper-tint);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.trust-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  color: var(--ice-700);
}

/* ---------- Section shell ---------- */

section { padding: 56px 0; }

.section-head {
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-head .eyebrow {
  display: inline-block;
  background: var(--ice-100);
  color: var(--ice-700);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-head h2 { font-size: clamp(24px, 4vw, 32px); }
.section-head p { color: var(--ink-soft); }

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  border-top: 4px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card-cool { border-top-color: var(--ice-500); }
.card-warm { border-top-color: var(--warm-500); }

.service-card .icon { font-size: 26px; margin-bottom: 10px; }
.service-card h3 { font-size: 17px; margin-bottom: 8px; }
.service-card p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 0; }

/* ---------- Owner banner ---------- */

.owner-banner {
  background: linear-gradient(120deg, var(--ice-900) 0%, var(--ice-700) 55%, var(--warm-700) 100%);
  color: #fff;
  padding: 48px 0;
}

.owner-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.owner-badge {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 24px;
  box-shadow: var(--shadow);
}

.owner-banner h2 { color: #fff; font-size: clamp(22px, 3.5vw, 28px); }
.owner-banner p { color: rgba(255, 255, 255, 0.88); max-width: 68ch; }

/* ---------- About / reviews ---------- */

.about-section { background: var(--paper-tint); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  font-weight: 500;
  color: var(--ink);
}

.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: -1px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--ice-100);
  color: var(--ice-700);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Testimonial carousel (React island) */

.tc-wrap {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--warm-500);
}

.tc-quote p {
  font-size: 18px;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 14px;
}

.tc-quote footer {
  font-size: 14px;
  font-weight: 700;
  color: var(--ice-700);
}

.tc-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.tc-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper-tint);
  font-size: 20px;
  cursor: pointer;
  color: var(--ice-700);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tc-btn:hover { background: var(--ice-100); }

.tc-dots {
  display: flex;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.tc-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: var(--line);
  cursor: pointer;
  padding: 0;
}

.tc-dot-active { background: var(--warm-500); }

/* ---------- Service area ---------- */

.area-section { text-align: center; }

.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.area-chip {
  background: var(--ice-50);
  border: 1px solid var(--ice-100);
  color: var(--ice-700);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 999px;
}

/* ---------- Contact ---------- */

.contact-section { background: var(--paper-tint); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.contact-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.contact-card .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  flex-wrap: wrap;
}

.contact-card .row:last-child { border-bottom: none; }
.contact-card .k { color: var(--ink-soft); font-weight: 600; }
.contact-card a { color: var(--ice-700); font-weight: 700; }

.contact-form {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 13.5px;
  margin-bottom: 6px;
  color: var(--ink);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 16px;
  font-family: var(--font-body);
  min-height: 44px;
  background: var(--paper-tint);
}

.contact-form textarea { min-height: 100px; resize: vertical; }

.contact-form button {
  min-height: 48px;
  border: none;
  border-radius: 999px;
  background: var(--warm-600);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.contact-form button:hover { background: var(--warm-700); }

.map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Footer ---------- */

footer {
  background: var(--ice-900);
  color: var(--ice-100);
  text-align: center;
  padding: 36px 20px;
  font-size: 14px;
}

footer .brand {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  margin-bottom: 8px;
}

.footer-logo {
  height: 48px;
  margin: 0 auto 12px;
}

.foot-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.foot-links a {
  font-weight: 600;
  color: var(--ice-100);
  padding: 8px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.foot-links a:hover { color: var(--warm-300); }

.foot-copy { margin-top: 14px; color: rgba(255,255,255,0.55); font-size: 12.5px; }

/* ================= Tablet (768px+) ================= */

@media (min-width: 768px) {
  .nav-link { display: inline-flex; align-items: center; min-height: 44px; }
  .menu-toggle { display: none; }
  .mobile-menu { display: none !important; }
  .call-text { display: inline; }

  .hero-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 72px 20px 80px;
  }

  .hero-copy { flex: 1.2; }
  .rating-card { flex: none; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .about-grid { grid-template-columns: 1.1fr 1fr; align-items: start; }

  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }

  .owner-grid { flex-direction: row; align-items: flex-start; }
}

/* ================= Desktop (1024px+) ================= */

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .header-inner { padding: 16px 20px; }
}
