/* ==========================================================================
   All About Air and Heat Refrigeration — brand layer (2026-08)
   --------------------------------------------------------------------------
   Loaded AFTER d8eaa8d8-styles.css, which still owns the component contract
   (.card, .btn, .section, .grid ...). This file re-tokenises that system to the
   LOGO's own palette and adds the pieces the redesign introduces. Removing the
   one <link> in views/web/header.tpl.php reverts the site to the old look.

   The palette is sampled from the logo art, not invented:
     snowflake + "AIR"  -> ice / air blue      (cooling)
     sun + rays         -> sun / sunlight      (heating, and the primary CTA)
     "HEAT"             -> heat red            (urgency, emergencies)
     wordmark plate     -> navy                (chrome, type)
   The logo reads cool-on-the-left to warm-on-the-right; that sweep is reused
   as the "comfort rail", the 4px seam on the chat card and the footer.
   ========================================================================== */

:root {
  /* brand — sampled from the logo */
  --navy:      #0a2240;
  --navy-2:    #123256;
  --navy-deep: #06182e;
  --air:       #1f6fd0;   /* the blue in "AIR" */
  --ice:       #7dd3fc;   /* the snowflake */
  --heat:      #e02128;   /* the red in "HEAT" */
  --sun:       #f7a01c;   /* the sun */
  --yellow:    #ffc400;   /* sun highlight — primary CTA */
  --gold:      #f0a000;

  /* neutrals — cool-tinted so white space sits on the "air" side */
  --ink:    #0e1b2b;
  --muted:  #55637a;
  --line:   #dbe6f2;
  --paper:  #ffffff;
  --soft:   #f1f6fc;

  --shadow:     0 18px 44px rgba(10, 34, 64, 0.13);
  --shadow-sm:  0 8px 20px rgba(10, 34, 64, 0.09);
  --radius:     14px;
  --radius-sm:  10px;

  /* type */
  --display: "Archivo Black", "Arial Black", Impact, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --data: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* the logo's cool -> warm sweep, as a reusable seam */
  --comfort-rail: linear-gradient(90deg, var(--ice) 0%, var(--air) 26%, #ffffff 50%, var(--sun) 74%, var(--heat) 100%);
}

/* ── type ───────────────────────────────────────────────────────────────── */

body { font-family: var(--body); color: var(--ink); }

h1, h2, h3,
.section-title,
.hero-copy h1 {
  font-family: var(--display);
  font-weight: 400;              /* Archivo Black ships one weight */
  letter-spacing: -0.015em;
}
.section-title { color: var(--navy); line-height: 1.04; }
.card h3 { font-family: var(--display); font-size: 1.12rem; letter-spacing: -0.01em; }

/* Eyebrows, chips and hard data read like a work order / gauge readout. */
.section-eyebrow,
.crumb,
.topbar-item,
.emergency-note,
.experience-badge span,
.stat span {
  font-family: var(--data);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.section-eyebrow { color: var(--air); }
.section-lead { color: var(--muted); font-size: 1.06rem; line-height: 1.7; }

/* ── chrome ─────────────────────────────────────────────────────────────── */

.topbar { color: #fff; background: var(--navy-deep); }
.topbar a { color: #fff; }
.emergency-note { color: var(--yellow); }

.site-header {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(10, 34, 64, 0.06);
}
.nav-links a {
  font-weight: 700;
  color: var(--navy);
  border-radius: 999px;
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--air); }
.nav-links a.active { color: var(--air); }

/* ── buttons ────────────────────────────────────────────────────────────── */

.btn {
  color: var(--navy);
  background: linear-gradient(180deg, var(--yellow) 0%, var(--sun) 100%);
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 22px rgba(247, 160, 28, 0.32);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover, .btn:focus-visible { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 14px 28px rgba(247, 160, 28, 0.4); }
.btn:active { transform: translateY(0); }

.btn-outline {
  color: #fff;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow: none;
}
.btn-outline:hover, .btn-outline:focus-visible { background: rgba(255, 255, 255, 0.12); border-color: #fff; filter: none; }

.btn-dark {
  color: #fff;
  background: var(--navy);
  border: 0;
  box-shadow: 0 10px 22px rgba(10, 34, 64, 0.26);
}
.btn-dark:hover, .btn-dark:focus-visible { background: var(--navy-2); filter: none; }

/* Emergency actions borrow the "HEAT" red — used sparingly, never for nav. */
.btn-heat {
  color: #fff;
  background: var(--heat);
  box-shadow: 0 10px 22px rgba(224, 33, 40, 0.3);
}
.btn-heat:hover, .btn-heat:focus-visible { background: #c51b21; filter: none; }

/* ── surfaces ───────────────────────────────────────────────────────────── */

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.service-card { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.service-card:hover { transform: translateY(-3px); border-color: var(--air); box-shadow: var(--shadow); }
.card-link { color: var(--air); font-weight: 800; }
.section-link { color: var(--air); font-weight: 800; }
.section-soft { background: var(--soft); }

.feature-icon { color: var(--air); background: rgba(31, 111, 208, 0.1); border-radius: 12px; }

.check-list li::before,
.plain-list li::before { color: var(--air); }

/* ── Google reviews carousel — 3 cards per slide ───────────────────────────
   One .review-slide (a .grid.grid-3 of cards) is shown at a time; JS in
   main.js swaps which slide carries .is-active every ~5.5s, same pace on
   desktop and mobile. Prev/next + dots always available, pauses on hover. */
.review-slider { position: relative; }
.review-slide { display: none; }
.review-slide.is-active { display: grid; }

.review-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; box-shadow: var(--shadow-sm); color: var(--navy);
  font-size: 15px; cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.review-nav:hover { background: var(--soft); box-shadow: var(--shadow); transform: translateY(-50%) scale(1.06); }
.review-prev { left: -22px; }
.review-next { right: -22px; }

.review-dots { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.review-dot {
  width: 9px; height: 9px; border-radius: 50%; padding: 0; border: 0;
  background: var(--line); cursor: pointer; transition: background .18s ease, transform .18s ease;
}
.review-dot.is-active { background: var(--air); transform: scale(1.3); }

.review-card { display: flex; flex-direction: column; gap: 12px; }
.review-card-top { display: flex; align-items: center; gap: 10px; }
.review-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: var(--air); color: #fff; font-family: var(--display);
  font-size: .78rem; letter-spacing: .02em;
  display: flex; align-items: center; justify-content: center;
}
.review-meta { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.review-name { font-weight: 800; font-size: .92rem; color: var(--navy); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.review-when { font-size: .74rem; color: var(--muted); margin-top: 2px; }
.review-stars { display: flex; gap: 1px; }
.rstar { font-size: 1rem; color: var(--line); line-height: 1; }
.rstar--on { color: var(--gold); }
.review-card p { font-size: .9rem; color: var(--muted); line-height: 1.6; margin: 0; }

@media (max-width: 860px) {
  .review-slide { grid-template-columns: 1fr; }
  .review-nav { display: none; }
}

/* ── hero ───────────────────────────────────────────────────────────────── */
/* The logo's composition, abstracted: cool glow low-left, sun glow top-right. */

.hero { background: var(--navy); }
.hero::before {
  background:
    radial-gradient(900px 520px at 88% -6%, rgba(247, 160, 28, 0.34) 0%, rgba(247, 160, 28, 0) 62%),
    radial-gradient(760px 460px at 4% 104%, rgba(125, 211, 252, 0.26) 0%, rgba(125, 211, 252, 0) 60%),
    linear-gradient(90deg, rgba(6, 24, 46, 0.96) 0%, rgba(6, 24, 46, 0.9) 42%, rgba(6, 24, 46, 0.62) 72%, rgba(6, 24, 46, 0.5) 100%);
}
.hero-copy h1 { font-size: clamp(1.6rem, 2.6vw, 2.35rem); line-height: 1.12; }
.hero-copy .crumb { color: var(--ice); }
.hero-copy .hero-services {
  margin: 10px 0 0;
  font-family: var(--data);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ice);
}
.hero-services-heat { color: var(--heat); }

/* ── the comfort rail: the logo's cool->warm sweep as a seam ────────────── */

.comfort-rail { height: 4px; background: var(--comfort-rail); }

/* ── hero chat: "How can we help?" ──────────────────────────────────────── */

.hero-chat {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(3, 12, 24, 0.42);
}
.hero-chat::before {                    /* the rail, seam #1 of 2 on the page */
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--comfort-rail);
  content: "";
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--line);
}
.chat-avatar {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  object-fit: contain;
  background: var(--soft);
  border-radius: 50%;
}
.chat-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.34rem;
  line-height: 1.15;
}
.chat-head p { margin: 3px 0 0; color: var(--muted); font-size: 0.92rem; }
.chat-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--data);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #127a3f;
}
.chat-status::before {
  width: 8px; height: 8px;
  background: #18a957;
  border-radius: 50%;
  content: "";
}
.chat-body { padding: 18px 22px 22px; }
.chat-prompt { margin: 0 0 12px; color: var(--ink); font-weight: 700; }

.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.chat-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  color: var(--navy);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background .14s ease, border-color .14s ease, transform .14s ease;
}
.chat-chip:hover, .chat-chip:focus-visible { background: #fff; border-color: var(--air); transform: translateY(-1px); }
.chat-chip[aria-pressed="true"] { color: #fff; background: var(--air); border-color: var(--air); }
.chat-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--air); }
.chat-chip.is-warm .dot { background: var(--heat); }
.chat-chip.is-cool .dot { background: var(--ice); }
.chat-chip.is-comm .dot { background: var(--navy); }

.chat-field { margin: 0 0 12px; }
.chat-field label {
  display: block;
  margin: 0 0 6px;
  color: var(--navy);
  font-family: var(--data);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.chat-field input,
.chat-field textarea,
.chat-field select {
  width: 100%;
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
}
.chat-field textarea { min-height: 84px; resize: vertical; }
.chat-field input:focus,
.chat-field textarea:focus,
.chat-field select:focus {
  outline: 3px solid rgba(31, 111, 208, 0.28);
  border-color: var(--air);
  outline-offset: 1px;
}
.chat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chat-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 4px; }
.chat-actions .btn { width: 100%; }
.chat-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}
.chat-note strong { color: var(--navy); }
.chat-callout {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(224, 33, 40, 0.07);
  border: 1px solid rgba(224, 33, 40, 0.22);
  border-radius: var(--radius-sm);
  color: var(--navy);
  font-size: 0.9rem;
}
.chat-callout a { color: var(--heat); font-weight: 800; white-space: nowrap; }

/* Progressive enhancement: with JS the intake runs one step at a time. With JS
   off, every step is visible and the form submits normally — the page never
   depends on the script to be usable. */
.js .chat-step[hidden] { display: none; }
.chat-progress {
  display: flex;
  gap: 5px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}
.chat-progress li {
  flex: 1;
  height: 4px;
  background: var(--line);
  border-radius: 999px;
}
.chat-progress li.is-done { background: var(--air); }
.chat-back {
  padding: 0;
  color: var(--muted);
  background: none;
  border: 0;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.chat-back:hover { color: var(--navy); }

/* the assistant's replies as the intake progresses */
.chat-log { margin: 0 0 14px; padding: 0; list-style: none; }
.chat-log li {
  max-width: 92%;
  margin: 0 0 8px;
  padding: 10px 14px;
  font-size: 0.94rem;
  line-height: 1.5;
  border-radius: 14px;
}
.chat-log .from-us { color: var(--navy); background: var(--soft); border-bottom-left-radius: 4px; }
.chat-log .from-you {
  margin-left: auto;
  color: #fff;
  background: var(--air);
  border-bottom-right-radius: 4px;
}

/* ── emergency strip ────────────────────────────────────────────────────── */

.heat-strip { color: #fff; background: var(--heat); }
.heat-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  text-align: center;
}
.heat-strip strong { font-family: var(--display); font-size: 1.05rem; letter-spacing: -0.01em; }
.heat-strip span { font-family: var(--data); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.heat-strip a { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-weight: 800; }

/* ── footer ─────────────────────────────────────────────────────────────── */

.site-footer { background: var(--navy-deep); border-top: 0; }
.site-footer::before { display: block; height: 4px; background: var(--comfort-rail); content: ""; }
.site-footer a:hover { color: var(--ice); }
.cta-strip { background: var(--navy); }

/* ── quality floor ──────────────────────────────────────────────────────── */

a:focus-visible,
button:focus-visible,
summary:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--ice);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .service-card:hover, .btn:hover { transform: none; }
}

@media (max-width: 860px) {
  .chat-grid { grid-template-columns: 1fr; }
  .hero-chat { margin-top: 26px; }
}

/* ── home hero layout ───────────────────────────────────────────────────── */
/* The chat needs more room than the review carousel it replaced (that grid was
   capped at 360px and the intake has paired fields), so widen the right column. */

.home-hero .hero-content {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 436px);
  align-items: center;
}
.hero-chat { width: 100%; justify-self: end; max-width: 436px; }

.hero-trust-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 14px 20px;
  margin: 26px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  list-style: none;
}
.hero-trust-list li { display: flex; flex-direction: column; gap: 2px; }
.hero-trust-list strong {
  color: #fff;
  font-family: var(--display);
  font-weight: 400;  /* Archivo Black ships one weight — <strong>'s default bold gets faux-bolded (blurry) otherwise */
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.hero-trust-list span {
  color: rgba(255, 255, 255, 0.74);
  font-family: var(--data);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 991px) {
  .home-hero .hero-content { grid-template-columns: 1fr; row-gap: 26px; }
  .hero-chat { justify-self: stretch; max-width: none; }
}

/* Keep headline contrast on small screens, where the copy sits over the photo
   rather than beside it. */
@media (max-width: 767px) {
  .hero::before {
    background:
      radial-gradient(600px 380px at 92% -10%, rgba(247, 160, 28, 0.3) 0%, rgba(247, 160, 28, 0) 62%),
      linear-gradient(180deg, rgba(6, 24, 46, 0.9) 0%, rgba(6, 24, 46, 0.95) 58%, rgba(6, 24, 46, 0.97) 100%);
  }

  /* Eyebrow reads a touch large and sits too tight on the headline at this
     width — scale it down and give the H1 more breathing room. */
  .hero-copy .crumb {
    font-size: 0.66rem;
    margin: 0 0 14px;
  }

  .hero-copy .hero-services {
    font-size: 0.7rem;
  }
}

/* ── chat card: win the specificity fight with .hero ─────────────────────── */
/* The card is inside <section class="hero">, which sets color:#fff and styles
   `.hero p` at hero scale. Those (0,1,1) selectors beat single-class rules, so
   the card's text was rendering white-on-white at headline size. Every text rule
   below is scoped to .hero-chat to take precedence. */

.hero-chat { color: var(--ink); }
.hero-chat p,
.hero-chat li,
.hero-chat label,
.hero-chat input,
.hero-chat select,
.hero-chat textarea { color: var(--ink); }

.hero-chat .chat-head h2 { color: var(--navy); font-size: 1.3rem; line-height: 1.15; }
.hero-chat .chat-head p  { margin: 3px 0 0; color: var(--muted); font-size: 0.92rem; line-height: 1.45; }

.hero-chat .chat-status {
  margin: 0 0 12px;
  color: #127a3f;
  font-family: var(--data);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}
.hero-chat .chat-prompt {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}
.hero-chat .chat-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}
.hero-chat .chat-callout { color: var(--navy); font-size: 0.9rem; line-height: 1.45; }
.hero-chat .chat-field label {
  color: var(--navy);
  font-size: 0.7rem;
  line-height: 1.3;
}
.hero-chat .chat-chip { font-size: 0.92rem; line-height: 1.25; }

/* ── chips: stack cleanly on a phone ────────────────────────────────────── */
/* Flex-wrap leaves a ragged right edge when the labels are different lengths.
   Two columns would wrap the longer labels onto a second line at this width, so
   below 560px each chip gets its own full-width row: aligned, and easier to hit. */

@media (max-width: 560px) {
  .chat-chips {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .chat-chips li { display: block; }
  .chat-chip { width: 100%; justify-content: flex-start; padding: 12px 14px; }
  .hero-chat .chat-head h2 { font-size: 1.2rem; }
}
