/* ==========================================================
   Gravity Automotive Solutions — one-page site
   ========================================================== */

:root {
  /* Brand (from logo) */
  --red: #e3141c;
  --red-dark: #b80f16;
  --blue: #3aa6f0;
  --blue-deep: #0d4f86;
  --steel: #a9b0b8;

  /* Neutrals */
  --ink: #0b0e13;
  --ink-2: #11161d;
  --ink-3: #1a212b;
  --line-dark: rgba(255, 255, 255, 0.09);
  --paper: #f4f5f7;
  --white: #ffffff;
  --text: #1b2029;
  --muted: #5b6573;
  --muted-light: #9aa3af;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 50px -20px rgba(11, 14, 19, 0.35);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;

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

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.05vw, 17px);
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.005em;
  margin: 0 0 0.4em;
  text-transform: uppercase;
}
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.6rem); }
p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--dark { background: var(--ink); color: var(--white); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--muted);
  max-width: 60ch;
}
.section--dark .lead { color: var(--muted-light); }

.section-head { margin-bottom: clamp(36px, 5vw, 60px); max-width: 760px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.35); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--ink-3); }
.btn--white { background: var(--white); color: var(--blue-deep); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 1rem; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.header.is-scrolled {
  background: rgba(11, 14, 19, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line-dark);
}
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}
.brand img { width: 44px; height: auto; }
.brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  letter-spacing: 0.06em;
  line-height: 1.05;
  text-transform: uppercase;
}
.brand small {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--muted-light);
  font-weight: 500;
  margin-top: 3px;
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-phone {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  margin-right: 6px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 920px);
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(58, 166, 240, 0.18), transparent 60%),
    radial-gradient(50% 60% at 10% 90%, rgba(227, 20, 28, 0.16), transparent 60%),
    linear-gradient(180deg, #0b0e13 0%, #0f141b 100%);
}
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(80% 80% at 60% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(80% 80% at 60% 40%, #000 30%, transparent 80%);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(3.4rem, 9vw, 7.4rem);
  line-height: 0.9;
  margin-bottom: 0.25em;
}
.hero h1 .accent { color: var(--red); display: block; }
.hero__sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: #c9d0d8;
  max-width: 34em;
  margin-bottom: 32px;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
}
.trust__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  line-height: 1.3;
  color: #c9d0d8;
}
.trust__item strong { display: block; color: var(--white); font-size: 1rem; }
.trust__icon {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-dark);
  color: var(--blue);
}
.trust__icon svg { width: 22px; height: 22px; }
.stars { color: #fbbc04; letter-spacing: 2px; }

/* Diagnostic scope visual */
.scope {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #141a22, #0c1016);
  border: 1px solid var(--line-dark);
  padding: 22px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.scope__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--muted-light);
  margin-bottom: 14px;
}
.scope__live { display: inline-flex; align-items: center; gap: 8px; color: #ffb020; transition: color 0.3s ease; }
.scope__live.is-found { color: #59e39b; }
.scope__live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  animation: pulse 1.6s ease-in-out infinite;
}
.scope__screen {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  background:
    linear-gradient(rgba(58, 166, 240, 0.09) 1px, transparent 1px) 0 0 / 100% 12.5%,
    linear-gradient(90deg, rgba(58, 166, 240, 0.09) 1px, transparent 1px) 0 0 / 10% 100%,
    #070a0e;
  overflow: hidden;
}
.scope__screen svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.wave {
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wave--a { stroke: var(--blue); filter: drop-shadow(0 0 6px rgba(58, 166, 240, 0.7)); }
.wave--b { stroke: var(--red); filter: drop-shadow(0 0 6px rgba(227, 20, 28, 0.7)); }
/* Waveforms are drawn twice as wide as the screen and scroll forever */
.wave-track { animation: scroll-wave 5s linear infinite; }
.wave-track--b { animation-duration: 3.2s; }
.scope__sweep {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: linear-gradient(transparent, rgba(89, 227, 155, 0.9), transparent);
  box-shadow: 0 0 14px 2px rgba(89, 227, 155, 0.35);
  animation: sweep 2.6s ease-in-out infinite alternate;
}
.scope__readout b { transition: color 0.3s ease; }
.scope__readout .scanning { color: #ffb020; }
.scope__readout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.scope__readout div {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-light);
}
.scope__readout b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--white);
}
.scope__readout .ok { color: #59e39b; }
.scope__badge {
  position: absolute;
  right: 22px;
  top: -18px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transform: rotate(-3deg);
}

@keyframes scroll-wave { to { transform: translateX(-400px); } }
@keyframes sweep { from { left: 0; } to { left: calc(100% - 2px); } }
@keyframes pulse { 50% { opacity: 0.35; } }

/* ---------- Image placeholders (swap for real photos / Higgsfield images) ---------- */
.ph {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 30% 20%, rgba(58, 166, 240, 0.25), transparent 70%),
    radial-gradient(60% 60% at 80% 90%, rgba(227, 20, 28, 0.22), transparent 70%),
    linear-gradient(150deg, #1d2530, #0d1117);
  display: flex;
  align-items: flex-end;
  min-height: 260px;
}
.ph::after {
  content: attr(data-label);
  margin: 16px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #dfe4ea;
  font-size: 0.78rem;
  line-height: 1.35;
  border: 1px dashed rgba(255, 255, 255, 0.25);
}
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph:has(img)::after { display: none; }
.ph--ac img { object-position: 60% 35%; }
.ph--andre img { object-position: 50% 20%; }

/* ---------- Test, Don't Guess ---------- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.compare__card {
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3.5vw, 40px);
  background: var(--white);
  box-shadow: var(--shadow);
  position: relative;
}
.compare__card--bad { background: #e9ebef; box-shadow: none; }
.compare__card--good { background: var(--ink); color: var(--white); }
.compare__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
  background: rgba(11, 14, 19, 0.08);
  color: var(--muted);
}
.compare__card--good .compare__tag { background: var(--red); color: var(--white); }
.steps { list-style: none; margin: 22px 0 0; padding: 0; counter-reset: s; }
.steps li {
  counter-increment: s;
  position: relative;
  padding: 0 0 18px 50px;
  min-height: 34px;
}
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: -2px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  background: rgba(11, 14, 19, 0.1);
  color: var(--muted);
}
.compare__card--good .steps li::before { background: rgba(58, 166, 240, 0.16); color: var(--blue); }
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 36px;
  bottom: 2px;
  width: 2px;
  background: rgba(11, 14, 19, 0.1);
}
.compare__card--good .steps li:not(:last-child)::after { background: rgba(58, 166, 240, 0.2); }
.compare__card--bad .steps li { color: var(--muted); }
.steps .strike { text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.compare__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(11, 14, 19, 0.12);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.compare__card--good .compare__total { border-color: var(--line-dark); }
.compare__total b { font-size: 1.6rem; }
.compare__card--bad .compare__total b { color: var(--red); }
.compare__card--good .compare__total b { color: #59e39b; }

.story {
  margin-top: 22px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius-lg);
  border: 2px dashed rgba(11, 14, 19, 0.14);
}
.story__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: var(--white);
}
.story__icon svg { width: 30px; height: 30px; }
.story p { margin: 0; font-size: 1.05rem; }

/* ---------- A/C ---------- */
.ac {
  position: relative;
  background:
    radial-gradient(80% 90% at 100% 0%, rgba(255, 255, 255, 0.18), transparent 60%),
    linear-gradient(140deg, #0a3a66 0%, #0f5c9c 55%, #2a95e0 100%);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.ac::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 520px;
  height: 520px;
  z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M50 6v88M12 28l76 44M12 72l76-44'/%3E%3Cpath d='M40 10l10 8 10-8M40 90l10-8 10 8M10 40l12-2-2-12M90 60l-12 2 2 12M10 60l12 2-2 12M90 40l-12-2 2-12'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.08;
}
.ac .eyebrow { color: #bfe3ff; }
.ac .lead { color: #d6ecff; }
.ac__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.refrigerants {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 30px 0;
}
.refrigerant {
  border-radius: var(--radius);
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.refrigerant b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  line-height: 1;
  margin-bottom: 6px;
}
.refrigerant span { font-size: 0.92rem; color: #d6ecff; }
.checklist { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: #bfe3ff; }
.ac .ph { min-height: 420px; }

/* ---------- Services ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid rgba(11, 14, 19, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(227, 20, 28, 0.08);
  color: var(--red);
  margin-bottom: 18px;
}
.service__icon svg { width: 28px; height: 28px; }
.service--blue .service__icon { background: rgba(58, 166, 240, 0.12); color: #1683cf; }
.service p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.services__feature {
  grid-column: span 2;
  grid-row: span 2;
  margin: 0;
  min-height: 420px;
}
.services__feature img { object-position: 50% 50%; }
.services__feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 45%, rgba(11, 14, 19, 0.85));
}
.services__feature figcaption {
  position: relative;
  z-index: 2;
  padding: clamp(20px, 3vw, 32px);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--white);
}
.services__feature figcaption span { display: block; color: var(--red); }

/* ---------- Warranty ---------- */
.warranty__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.usmap {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  padding: clamp(20px, 3vw, 32px);
}
.usmap svg { width: 100%; height: auto; display: block; }
.usmap__dot { fill: var(--blue); }
.usmap__home { fill: var(--red); }
.usmap__route {
  fill: none;
  stroke: var(--red);
  stroke-width: 2.5;
  stroke-dasharray: 6 7;
  animation: dash 30s linear infinite;
}
@keyframes dash { to { stroke-dashoffset: -400; } }
.usmap__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--muted-light);
}
.usmap__legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.fact {
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-dark);
}
.fact b { display: block; font-family: var(--font-display); font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.04em; }
.fact span { font-size: 0.9rem; color: var(--muted-light); }

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.about .ph { min-height: 520px; }
.creds { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.creds li {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(11, 14, 19, 0.06);
}
.creds .ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--white);
}
.creds .ic svg { width: 24px; height: 24px; }
.creds b { display: block; line-height: 1.25; }
.creds span { font-size: 0.9rem; color: var(--muted); }

/* ---------- Reviews ---------- */
.rating {
  display: grid;
  grid-template-columns: 0.8fr 2fr;
  gap: 18px;
  align-items: stretch;
}
.rating__score {
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  background: linear-gradient(160deg, #1a212b, #0f141b);
  border: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.rating__score b {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 8vw, 6rem);
  line-height: 0.9;
  margin-top: 14px;
}
.rating__score p { color: var(--muted-light); margin: 4px 0 18px; }
.stars--lg { font-size: 1.5rem; letter-spacing: 4px; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review {
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.review { display: flex; flex-direction: column; gap: 16px; }
.review blockquote { margin: 0; flex: 1; color: #d3d9e0; font-size: 1rem; line-height: 1.6; }
.review__who { display: flex; align-items: center; gap: 12px; font-size: 0.85rem; color: var(--muted-light); line-height: 1.3; }
.review__who b { display: block; color: var(--white); font-size: 0.95rem; }
.review__avatar {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink-3);
  color: var(--white);
  font-weight: 700;
}
.rating__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.g-badge { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--white); }
.g-badge svg { width: 24px; height: 24px; }

/* ---------- Visit / Book ---------- */
.visit__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}
.panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 40px);
  box-shadow: var(--shadow);
}
.book-options { display: grid; gap: 12px; margin: 24px 0 30px; }
.book-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(11, 14, 19, 0.1);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.book-option:hover { border-color: var(--red); transform: translateX(3px); }
.book-option .ic {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: var(--white);
}
.book-option .ic svg { width: 22px; height: 22px; }
.book-option b { display: block; font-size: 1.05rem; }
.book-option span { color: var(--muted); font-size: 0.9rem; }

.form { display: grid; gap: 12px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form label { display: grid; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.form input,
.form textarea,
.form select {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid rgba(11, 14, 19, 0.16);
  background: var(--paper);
}
.form textarea { min-height: 110px; resize: vertical; }
.form input:focus,
.form textarea:focus,
.form select:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent; }
.form .btn { justify-self: start; margin-top: 6px; }
.form__note { font-size: 0.8rem; color: var(--muted); margin: 0; }
.form__note.is-ok { font-size: 0.95rem; font-weight: 600; color: #1f8a4c; }
.form__note.is-error { font-size: 0.95rem; font-weight: 600; color: var(--red); }
.form__note a { color: inherit; }
.form__opt { font-weight: 400; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }

.map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 300px;
  background: var(--ink-3);
  box-shadow: var(--shadow);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.visit__side { display: grid; gap: 22px; grid-template-rows: 1fr auto; }

.hours { width: 100%; border-collapse: collapse; margin-top: 8px; }
.hours td { padding: 9px 0; border-bottom: 1px solid rgba(11, 14, 19, 0.08); }
.hours td:last-child { text-align: right; font-weight: 600; }
.hours tr.is-today td { color: var(--red); }
.hours tr.is-closed td:last-child { color: var(--muted); font-weight: 500; }
.open-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: #e9ebef;
  color: var(--muted);
}
.open-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.open-status.is-open { background: #e3f8ec; color: #11834a; }
.address { display: flex; gap: 14px; align-items: flex-start; margin: 18px 0; }
.address svg { width: 24px; height: 24px; color: var(--red); flex: none; margin-top: 2px; }
.address p { margin: 0; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--muted-light);
  padding: 64px 0 calc(32px + env(safe-area-inset-bottom));
  font-size: 0.92rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-dark);
}
.footer h4 {
  font-family: var(--font-display);
  color: var(--white);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 1rem;
  margin: 0 0 14px;
}
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-dark);
  color: var(--white);
  transition: background 0.2s ease;
}
.socials a:hover { background: var(--red); }
.socials svg { width: 20px; height: 20px; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.82rem;
}

/* ---------- Mobile call bar ---------- */
.callbar {
  display: none;
  position: fixed;
  inset: auto 0 0;
  z-index: 60;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(11, 14, 19, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-dark);
  transform: translateY(110%);
  transition: transform 0.3s ease;
}
.callbar.is-visible { transform: none; }
.callbar .btn { flex: 1; min-height: 48px; padding: 0 12px; font-size: 1.05rem; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 55;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background 0.2s ease;
}
.to-top svg { width: 22px; height: 22px; }
.to-top:hover { background: var(--red-dark); }
.to-top:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Legal page ---------- */
.legal { padding: calc(var(--header-h) + 60px) 0 90px; }
.legal .wrap { max-width: 800px; }
.legal h1 { font-size: clamp(2.6rem, 6vw, 4rem); }
.legal h2 { font-size: 1.6rem; margin-top: 2em; }
.legal p, .legal li { color: var(--muted); }
.header--solid { background: var(--ink); }

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .scope { max-width: 620px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .services__feature { grid-row: auto; min-height: 360px; }
  .services .service:last-child { grid-column: span 2; }
  .rating { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .compare,
  .ac__grid,
  .warranty__grid,
  .about__grid,
  .visit__grid { grid-template-columns: 1fr; }
  .ac .ph { min-height: 300px; order: -1; }
  .about .ph { min-height: 380px; }
  .header-phone { display: none; }
}

@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .brand img { width: 38px; }
  .hero { padding-bottom: 64px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .trust { gap: 16px; }
  .trust__item { flex: 1 1 100%; }
  .scope__readout b { font-size: 1.1rem; }
  .services, .reviews { grid-template-columns: 1fr; }
  .services__feature { grid-column: auto; min-height: 280px; }
  .services .service:last-child { grid-column: auto; }
  .refrigerants, .facts, .form__row { grid-template-columns: 1fr; }
  .story { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .callbar { display: flex; }
  .to-top { width: 44px; height: 44px; right: 14px; bottom: calc(82px + env(safe-area-inset-bottom)); }
  .header .btn--sm { display: none; }
  .form .btn { justify-self: stretch; }
}

/* Phones in landscape: short viewport */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 24px); padding-bottom: 48px; }
  .hero__inner { grid-template-columns: 1.2fr 0.8fr; gap: 28px; }
  .hero h1 { font-size: clamp(2.6rem, 7vw, 4rem); }
  .hero__sub { margin-bottom: 20px; }
  .trust { margin-top: 24px; padding-top: 18px; }
  .scope__readout, .scope__badge { display: none; }
  .callbar { display: flex; }
  .footer { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .scope__sweep { display: none; }
  .reveal { opacity: 1; transform: none; }
}
