/* ============================================================
   CareMax Plumbing Solutions — Design System
   Flat · border-driven · navy #141034 / sky #51ADE5 / white
   ============================================================ */

:root {
  --navy: #141034;
  --navy-2: #1c1650;
  --blue: #51ade5;
  --blue-hover: #74c0ec;
  --blue-dark: #3a92c9;
  --tint: #eaf5fc;
  --white: #ffffff;
  --ink: #141034;
  --muted: #57557a;
  --muted-light: rgba(255, 255, 255, 0.72);
  --line: #e2e1ef;
  --line-strong: #c9c8e0;
  --line-navy: rgba(255, 255, 255, 0.16);
  --wa: #22c15e;
  --radius: 14px;
  --radius-sm: 9px;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
.hero-grid > *, .split > *, .pd-grid > *, .article-wrap > * { min-width: 0; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 22px; }

/* ---------- Icons ---------- */
.icon { width: 22px; height: 22px; flex: none; }
.icon-xs { width: 15px; height: 15px; }
.icon-sm { width: 18px; height: 18px; }
.icon-lg { width: 30px; height: 30px; }
.icon-xl { width: 42px; height: 42px; }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 14px;
}
.eyebrow-light { color: var(--blue); }
.eyebrow a { color: inherit; }
.eyebrow a:hover { text-decoration: underline; }

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 700;
  max-width: 18ch;
}
.section-sub { color: var(--muted); max-width: 56ch; margin-top: 14px; font-size: 1.03rem; }
.section-navy .section-sub, .section-navy p { color: var(--muted-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.22s var(--ease), color 0.22s var(--ease),
    border-color 0.22s var(--ease), transform 0.22s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: var(--navy); }
.btn-primary:hover { background: var(--blue-hover); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.4); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); }
.btn-outline-navy { border-color: var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }
.btn-sm { padding: 9px 16px; font-size: 0.86rem; }
.btn-block { width: 100%; white-space: normal; }

/* ---------- Header ---------- */
.topbar { background: var(--navy); color: var(--muted-light); font-size: 0.8rem; }
.topbar-inner { display: flex; align-items: center; gap: 26px; height: 36px; }
.topbar-item { display: inline-flex; align-items: center; gap: 7px; }
.topbar-item .icon-xs { color: var(--blue); }
.topbar-call { margin-left: auto; color: var(--white); }
.topbar-call strong { color: var(--blue); font-weight: 600; }
.topbar-call:hover strong { text-decoration: underline; }

.site-header {
  position: sticky;
  top: -36px; /* topbar scrolls away, main nav stays pinned */
  z-index: 100;
  background: var(--white);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.25s;
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-logo {
  display: block;
  height: 60px;
  width: auto;
  border-radius: 8px;
}
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.brand-sub {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blue-dark);
}
.brand-light .brand-name { color: var(--white); }
.brand-light .brand-sub { color: var(--blue); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > li > a:not(.btn) {
  display: block;
  padding: 9px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links > li > a:not(.btn):hover { color: var(--blue-dark); background: var(--tint); }
.nav-links > li > a.active { color: var(--blue-dark); font-weight: 600; }
.nav-links > li > a.active::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  margin-top: 2px;
}
.nav-cta-li { margin-left: 10px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px;
  color: var(--navy);
  cursor: pointer;
}
.nav-toggle .menu-close { display: none; }
.nav-toggle[aria-expanded="true"] .menu-open { display: none; }
.nav-toggle[aria-expanded="true"] .menu-close { display: block; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--white); position: relative; }

/* ---------- hero background slider (8 slides, 8s each, 64s loop) ---------- */
.hero-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; animation: 64s linear infinite;
}
.hero-bg img:nth-child(1) { animation-name: hbZoomIn;    animation-delay: 0s; }
.hero-bg img:nth-child(2) { animation-name: hbZoomOut;   animation-delay: 8s; }
.hero-bg img:nth-child(3) { animation-name: hbPanLeft;   animation-delay: 16s; }
.hero-bg img:nth-child(4) { animation-name: hbPanRight;  animation-delay: 24s; }
.hero-bg img:nth-child(5) { animation-name: hbPanUp;     animation-delay: 32s; }
.hero-bg img:nth-child(6) { animation-name: hbPanDown;   animation-delay: 40s; }
.hero-bg img:nth-child(7) { animation-name: hbDiagonal;  animation-delay: 48s; }
.hero-bg img:nth-child(8) { animation-name: hbDrift;     animation-delay: 56s; }
.hero-veil { position: absolute; inset: 0; background: rgba(20, 16, 52, 0.78); }
.hero-grid { position: relative; z-index: 1; }
.hero .ticker { position: relative; z-index: 1; }

/* each keyframe: fade in 0-3% (~2s), hold to 12.5% (8s), crossfade out by 15.5% */
@keyframes hbZoomIn {
  0%    { opacity: 0; transform: scale(1.04); }
  3%    { opacity: 1; }
  12.5% { opacity: 1; transform: scale(1.16); }
  15.5%, 100% { opacity: 0; transform: scale(1.17); }
}
@keyframes hbZoomOut {
  0%    { opacity: 0; transform: scale(1.18); }
  3%    { opacity: 1; }
  12.5% { opacity: 1; transform: scale(1.05); }
  15.5%, 100% { opacity: 0; transform: scale(1.04); }
}
@keyframes hbPanLeft {
  0%    { opacity: 0; transform: scale(1.12) translateX(2.5%); }
  3%    { opacity: 1; }
  12.5% { opacity: 1; transform: scale(1.12) translateX(-2.5%); }
  15.5%, 100% { opacity: 0; transform: scale(1.12) translateX(-3%); }
}
@keyframes hbPanRight {
  0%    { opacity: 0; transform: scale(1.12) translateX(-2.5%); }
  3%    { opacity: 1; }
  12.5% { opacity: 1; transform: scale(1.12) translateX(2.5%); }
  15.5%, 100% { opacity: 0; transform: scale(1.12) translateX(3%); }
}
@keyframes hbPanUp {
  0%    { opacity: 0; transform: scale(1.12) translateY(2.5%); }
  3%    { opacity: 1; }
  12.5% { opacity: 1; transform: scale(1.12) translateY(-2.5%); }
  15.5%, 100% { opacity: 0; transform: scale(1.12) translateY(-3%); }
}
@keyframes hbPanDown {
  0%    { opacity: 0; transform: scale(1.12) translateY(-2.5%); }
  3%    { opacity: 1; }
  12.5% { opacity: 1; transform: scale(1.12) translateY(2.5%); }
  15.5%, 100% { opacity: 0; transform: scale(1.12) translateY(3%); }
}
@keyframes hbDiagonal {
  0%    { opacity: 0; transform: scale(1.12) translate(2%, 2%); }
  3%    { opacity: 1; }
  12.5% { opacity: 1; transform: scale(1.12) translate(-2%, -2%); }
  15.5%, 100% { opacity: 0; transform: scale(1.12) translate(-2.5%, -2.5%); }
}
@keyframes hbDrift {
  0%    { opacity: 0; transform: scale(1.05) translateX(-2%); }
  3%    { opacity: 1; }
  12.5% { opacity: 1; transform: scale(1.15) translateX(1%); }
  15.5%, 100% { opacity: 0; transform: scale(1.16) translateX(1.2%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg img { animation: none; }
  .hero-bg img:first-child { opacity: 1; }
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 60px;
  align-items: center;
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(56px, 7vw, 90px);
}
.hero-title {
  font-size: clamp(2.5rem, 5.6vw, 4.3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 13ch;
}
.hero-title em { font-style: normal; color: var(--blue); }
.hero-sub {
  color: var(--muted-light);
  font-size: 1.08rem;
  max-width: 46ch;
  margin-top: 20px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line-navy);
  font-size: 0.9rem;
  color: var(--muted-light);
}
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .icon-xs { color: var(--blue); }
.hero-center { justify-content: center; }

.hero-panel { border: 1px solid var(--line-navy); border-radius: var(--radius); overflow: hidden; }
.blueprint { width: 100%; height: auto; display: block; background: var(--navy-2); }
.hero-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-navy);
}
.hero-legend li {
  padding: 13px 16px;
  font-size: 0.78rem;
  color: var(--muted-light);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-legend li + li { border-left: 1px solid var(--line-navy); }
.hero-legend b {
  color: var(--blue);
  font-family: var(--font-display);
  border: 1px solid var(--blue);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  flex: none;
}

/* ---------- Ticker ---------- */
.ticker {
  background: var(--blue);
  color: var(--navy);
  overflow: hidden;
  border-top: 1px solid var(--line-navy);
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  padding: 13px 0;
  animation: ticker 30s linear infinite;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker-track i { font-style: normal; font-size: 1.3rem; line-height: 0; }
@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 8vw, 108px) 0; }
.section-tint { background: var(--tint); }
.section-navy { background: var(--navy); color: var(--white); }
.section-head { margin-bottom: 48px; }
.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.section-head-row .btn { margin-bottom: 4px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  --ph-img: none;
  --ph-pos: center;
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  padding: clamp(54px, 7vw, 92px) 0;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ph-img) var(--ph-pos) / cover no-repeat;
}
.page-hero::after { content: ""; position: absolute; inset: 0; background: rgba(20, 16, 52, 0.8); }
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 20ch;
}
.page-hero-sub { color: var(--muted-light); max-width: 56ch; margin-top: 16px; font-size: 1.05rem; }
.page-hero .hero-actions { margin-top: 28px; }
.page-hero-sm { padding: clamp(30px, 4vw, 48px) 0; }
.page-hero-tall { padding: clamp(80px, 12vw, 150px) 0; }

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px 26px;
  transition: background 0.28s var(--ease), border-color 0.28s var(--ease);
}
.service-num {
  position: absolute;
  top: 24px;
  right: 26px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--line-strong);
  transition: color 0.28s;
}
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  color: var(--blue-dark);
  transition: inherit;
}
.service-card h3 { font-size: 1.18rem; font-weight: 600; padding-right: 30px; }
.service-card p { font-size: 0.92rem; color: var(--muted); flex: 1; transition: color 0.28s; }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue-dark);
  transition: color 0.28s, gap 0.28s;
}
.service-card:hover { background: var(--navy); border-color: var(--navy); }
.service-card:hover h3 { color: var(--white); }
.service-card:hover p { color: var(--muted-light); }
.service-card:hover .service-num { color: rgba(255, 255, 255, 0.35); }
.service-card:hover .service-icon { border-color: var(--line-navy); color: var(--blue); }
.service-card:hover .service-link { color: var(--blue); gap: 12px; }

/* service cards with photo backgrounds — flat navy veil keeps text legible */
.service-card--media { overflow: hidden; background: var(--navy); border-color: rgba(255, 255, 255, 0.14); }
.service-card-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform 0.6s var(--ease);
}
.service-card-veil { position: absolute; inset: 0; background: rgba(20, 16, 52, 0.84); transition: background 0.28s; }
.service-card--media > *:not(.service-card-img):not(.service-card-veil) { position: relative; z-index: 1; }
.service-card--media h3 { color: var(--white); }
.service-card--media p { color: var(--muted-light); }
.service-card--media .service-num { color: rgba(255, 255, 255, 0.35); }
.service-card--media .service-icon { border-color: rgba(255, 255, 255, 0.28); color: var(--blue); }
.service-card--media .service-link { color: var(--blue); }
.service-card--media:hover { background: var(--navy); border-color: rgba(255, 255, 255, 0.3); }
.service-card--media:hover .service-card-veil { background: rgba(20, 16, 52, 0.72); }
.service-card--media:hover .service-card-img { transform: scale(1.05); }

.service-card-cta { background: var(--navy); border-color: var(--navy); justify-content: center; }
.service-card-cta h3 { color: var(--white); font-size: 1.3rem; }
.service-card-cta p { color: var(--muted-light); }
.service-card-cta .service-num { color: rgba(255, 255, 255, 0.35); }
.service-card-cta .service-link { color: var(--blue); }
.service-card-cta:hover { background: var(--navy-2); border-color: var(--navy-2); }
.service-card-cta:hover .service-link { gap: 12px; }

/* ---------- Products ---------- */
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 38px; }
.chip {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 20px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  color: var(--navy);
  transition: all 0.2s var(--ease);
}
.chip:hover { border-color: var(--navy); }
.chip-active { background: var(--navy); border-color: var(--navy); color: var(--white); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.product-card:hover { border-color: var(--navy); transform: translateY(-4px); }
.product-art {
  position: relative;
  display: block;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  aspect-ratio: 4 / 3;
}
.product-art img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
}
.product-body { display: flex; flex-direction: column; gap: 7px; padding: 18px 18px 20px; flex: 1; }
.product-cat {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-dark);
}
.product-name { font-size: 1.04rem; font-weight: 600; line-height: 1.3; }
.product-name a:hover { color: var(--blue-dark); }
.product-price {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.product-actions { margin-top: auto; display: flex; flex-direction: column; gap: 9px; }
.product-actions .btn { padding: 11px 16px; font-size: 0.88rem; }
.product-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s, gap 0.2s;
}
.wa-short { display: none; }
.product-more:hover { color: var(--navy); gap: 10px; }
.grid-note { margin-top: 34px; color: var(--muted); font-size: 0.95rem; }
.grid-note a { color: var(--blue-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Product detail ---------- */
.pd-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  align-items: start;
}
.pd-art {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  aspect-ratio: 4 / 3;
}
.pd-art img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }
.pd-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-top: 8px; }
.pd-blurb { color: var(--muted); margin-top: 14px; }
.pd-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin: 22px 0 4px;
}
.pd-price span { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.pd-label { font-size: 0.85rem; font-weight: 600; margin: 16px 0 10px; }
.variant-row { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 24px; }
.variant {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  transition: all 0.2s var(--ease);
}
.variant small { font-family: var(--font-body); font-size: 0.72rem; font-weight: 500; color: var(--muted); }
.variant:hover { border-color: var(--navy); }
.variant-active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.variant-active small { color: var(--muted-light); }
.pd-note { font-size: 0.84rem; color: var(--muted); margin: 12px 0 26px; display: flex; align-items: center; gap: 7px; }
.pd-note .icon-xs { color: var(--wa); }
.pd-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.pd-strip > div { display: flex; flex-direction: column; gap: 7px; font-size: 0.82rem; font-weight: 500; color: var(--navy); }
.pd-strip .icon-sm { color: var(--blue-dark); }

/* ---------- Why us / stats ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.why-card {
  border: 1px solid var(--line-navy);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: background 0.25s var(--ease);
}
.why-card:hover { background: var(--navy-2); }
.why-grid-light .why-card { border-color: var(--line); background: var(--white); }
.why-grid-light .why-card:hover { border-color: var(--navy); background: var(--white); }
.why-grid-light .why-card p { color: var(--muted); }
.why-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue);
  display: block;
  margin-bottom: 16px;
}
.why-card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.why-card p { font-size: 0.93rem; color: var(--muted-light); }

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 52px;
  padding-top: 44px;
  border-top: 1px solid var(--line-navy);
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.02em;
}
.stat span { font-size: 0.88rem; color: var(--muted-light); }
.stat-light b { color: var(--blue); font-size: 2rem; }
.stat-light { padding-bottom: 18px; }
.stat-light:last-child { padding-bottom: 0; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  counter-reset: step;
}
.step {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  background: var(--white);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--blue);
  color: var(--blue-dark);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 18px;
}
.step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.step p { font-size: 0.9rem; color: var(--muted); }

/* ---------- Projects ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.projects-grid-wide .project-card p { color: var(--muted); font-size: 0.92rem; }
.project-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
a.project-card { display: block; color: var(--ink); text-decoration: none; }
a.project-card:hover h3 { color: var(--blue-dark); }
.project-card:hover { border-color: var(--navy); transform: translateY(-4px); }
.project-art { background: var(--navy); aspect-ratio: 10 / 7; overflow: hidden; }
.project-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform 0.4s var(--ease); }
.project-card:hover .project-art img { transform: scale(1.04); }
.project-body { padding: 20px 22px 24px; }
.project-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-dark);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
}
.project-body h3 { font-size: 1.12rem; margin-bottom: 8px; }
.project-body > p { font-size: 0.9rem; }
.project-loc {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 12px;
}
.project-loc .icon-xs { color: var(--blue-dark); }

/* ---------- Project detail page ---------- */
.prj-art {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
}
.prj-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.prj-loc { display: inline-flex; align-items: center; gap: 7px; font-size: 0.88rem; color: var(--muted); margin-bottom: 14px; }
.prj-loc .icon-xs { color: var(--blue-dark); }
.prj-scope { margin-top: 26px; padding: 24px 26px; }
.prj-scope h3 { font-size: 1.05rem; margin-bottom: 14px; }
.prj-scope .service-link { margin-top: 14px; }

/* featured badge + project media gallery */
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.project-tag-featured {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--blue-dark); border-color: var(--blue); background: var(--tint);
}
.prj-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.prj-media {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  margin: 0;
}
.prj-media img,
.prj-media video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 30%;
  background: var(--navy);
}
.prj-media figcaption {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 10px 14px;
  background: var(--white);
  border-top: 1px solid var(--line);
}

/* ---------- Google reviews ---------- */
.g-score { display: flex; align-items: center; gap: 14px; flex: none; }
.g-mark { width: 34px; height: 34px; }
.g-score-text { display: flex; flex-direction: column; line-height: 1.2; }
.g-score-text b { font-family: var(--font-display); font-size: 1.5rem; color: var(--navy); }
.g-score-text i { font-style: normal; font-size: 0.78rem; color: var(--muted); }
.review-stars { color: #f2a93b; font-size: 0.72rem; letter-spacing: 2px; }
.reviews-marquee {
  overflow: hidden;
  width: 100%;
  /* soft edge fade so the loop reads as continuous */
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}
.reviews-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
  width: max-content;
  animation: reviewsLoop 110s linear infinite;
}
.reviews-marquee:hover .reviews-track,
.reviews-marquee:focus-within .reviews-track { animation-play-state: paused; }
@keyframes reviewsLoop { to { transform: translateX(-50%); } }
.review-row {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  width: min(500px, 86vw);
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.review-row:hover { border-color: var(--blue-dark); }
.review-ava { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; border: 1.5px solid var(--line-strong); }
.review-who { flex: none; width: 150px; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.review-who b { font-family: var(--font-display); font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.review-tag {
  flex: none;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--blue-dark);
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
  white-space: nowrap;
}
.review-text { flex-basis: 100%; font-size: 0.9rem; line-height: 1.6; color: var(--muted); }
.review-when { flex: none; margin-left: auto; font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.reviews-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }

/* ---------- Blog ---------- */
.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.posts-grid-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.post-card:hover { border-color: var(--navy); transform: translateY(-4px); }
.post-img { display: block; aspect-ratio: 5 / 3; background: var(--tint); border-bottom: 1px solid var(--line); overflow: hidden; }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.post-card:hover .post-img img { transform: scale(1.04); }
.post-body { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 26px; flex: 1; }
.post-num {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
}
.post-cat {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-dark);
}
.post-card h3 { font-size: 1.14rem; font-weight: 600; line-height: 1.3; padding-right: 24px; }
.post-card p { font-size: 0.9rem; color: var(--muted); flex: 1; }
.post-meta { font-size: 0.8rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.post-meta-light { color: var(--muted-light); border: 0; margin-top: 18px; font-size: 0.9rem; }

/* ---------- Article ---------- */
.article-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 70px;
  align-items: start;
}
.article { max-width: 68ch; overflow-wrap: break-word; }
.article p { margin-bottom: 20px; color: #33324f; }
.article h2 { font-size: 1.5rem; margin: 38px 0 14px; }
.article-list { margin: 0 0 24px; }
.article-cta {
  margin-top: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  background: var(--tint);
}
.article-cta h3 { font-size: 1.3rem; }
.article-cta p { color: var(--muted); margin: 8px 0 20px; }
.article-side { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 14px; }
.article-side h4 { font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-dark); margin-bottom: 4px; }
.side-post {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  transition: border-color 0.2s;
}
.side-post:hover { border-color: var(--navy); }
.side-post b { font-size: 0.92rem; line-height: 1.35; }
.side-post .post-meta { border: 0; padding: 0; }

/* ---------- Tick list ---------- */
.tick-list { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.tick-list li { display: flex; align-items: flex-start; gap: 11px; font-size: 0.96rem; }
.tick-list .icon-xs { color: var(--wa); margin-top: 4px; }

/* ---------- Split / panels ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.split-side { display: flex; flex-direction: column; gap: 22px; }
.service-photo {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 7 / 5;
  background: var(--tint);
}
.service-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.article-hero {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 34px;
  aspect-ratio: 8 / 5;
}
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.section-flush-top { padding-top: clamp(40px, 5vw, 64px); }
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px;
  background: var(--white);
}
.panel-navy {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 110px;
}
.panel-navy .service-icon { border-color: var(--line-navy); color: var(--blue); }
.panel-navy h3 { font-size: 1.35rem; font-weight: 600; }
.panel-note { font-size: 0.82rem; color: var(--muted-light); border-top: 1px solid var(--line-navy); padding-top: 16px; }
.panel-title { font-size: 1.5rem; margin-bottom: 22px; }
.about-panel { gap: 8px; }

/* ---------- Forms ---------- */
.quote-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.83rem; font-weight: 600; }
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 15px;
  width: 100%;
  transition: border-color 0.2s;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23141034' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}
.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-note { font-size: 0.82rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-cards { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color 0.2s, background 0.2s;
}
.contact-card:hover { border-color: var(--navy); background: var(--tint); }
.contact-card .icon-lg { color: var(--blue-dark); }
.contact-card > span { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 0.92rem; color: var(--muted); overflow-wrap: anywhere; }
.contact-card > span b { font-family: var(--font-display); color: var(--navy); font-size: 1rem; }
.contact-card > .icon-xs { color: var(--muted); }
.contact-info { margin-top: 22px; display: flex; flex-direction: column; gap: 16px; }
.contact-info p { display: flex; gap: 13px; align-items: flex-start; font-size: 0.94rem; }
.contact-info .icon-sm { color: var(--blue-dark); margin-top: 3px; }
.contact-info .btn { align-self: flex-start; margin-top: 4px; }

/* ---------- Socials ---------- */
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-navy);
  border-radius: 10px;
  color: var(--muted-light);
  transition: all 0.2s var(--ease);
}
.socials a:hover { background: var(--blue); border-color: var(--blue); color: var(--navy); }
.socials a .icon { width: 19px; height: 19px; }
.socials-dark a { border-color: var(--line-strong); color: var(--navy); }
.socials-dark a:hover { color: var(--navy); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--blue); color: var(--navy); }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: clamp(48px, 6vw, 72px);
}
.cta-title { font-size: clamp(1.8rem, 3.8vw, 2.7rem); }
.cta-sub { color: rgba(20, 16, 52, 0.78); max-width: 44ch; margin-top: 10px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .eyebrow-light { color: var(--navy); opacity: 0.75; }

/* ---------- Flash / thanks ---------- */
.flash {
  margin-top: 18px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
}
.flash-error { background: #fdecec; color: #a02c2c; border: 1px solid #f3c9c9; }
.thanks { text-align: center; display: flex; flex-direction: column; align-items: center; }
.thanks-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  color: var(--blue);
  margin-bottom: 26px;
}
.thanks h1 { max-width: 18ch; }
.thanks .page-hero-sub { margin-left: auto; margin-right: auto; }
.inline-light { color: var(--blue); }
.inline-light:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--muted-light); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 44px;
  padding-top: clamp(52px, 6vw, 76px);
  padding-bottom: 48px;
}
.footer-tag { font-size: 0.92rem; margin-top: 16px; max-width: 30ch; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col a, .footer-hours {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  padding: 5px 0;
  color: var(--muted-light);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--blue); }
.footer-col .icon-xs { color: var(--blue); flex: none; }
.footer-bar { border-top: 1px solid var(--line-navy); }
.footer-bar-inner {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 20px;
  padding-bottom: 22px;
  font-size: 0.82rem;
}

/* ---------- Floaters ---------- */
.floaters {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.floater {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: var(--white);
  transition: transform 0.22s var(--ease);
}
.floater:hover { transform: translateY(-3px); }
.floater-call { background: var(--navy); border: 1.5px solid var(--line-navy); }
.floater-wa { background: #25d366; }
.floater-wa:hover { transform: scale(1.08); }
.floater .icon { width: 26px; height: 26px; }
.floater-tip {
  position: absolute;
  right: 68px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: var(--navy);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s var(--ease);
}
.floater:hover .floater-tip { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ---------- Photo bands & galleries ---------- */
.photo-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.photo-band figure { aspect-ratio: 4 / 3; overflow: hidden; }
.photo-band figure + figure { border-left: 1px solid var(--line); }
.photo-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.photo-band figure:hover img { transform: scale(1.05); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.gallery-grid figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--navy);
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Scroll reveal ---------- */
.reveal-init { opacity: 0; transform: translateY(22px); }
.reveal-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-grid { gap: 44px; }
}

@media (max-width: 920px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid, .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-row { gap: 30px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prj-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-tag, .review-when { display: none; }
  .review-who { width: 120px; }
  .review-row { gap: 12px; padding: 12px 14px; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .panel-navy { position: static; }
  .article-wrap { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .article-side { position: static; }
  .pd-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .pd-grid > * { min-width: 0; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }
}

@media (max-width: 840px) {
  .topbar-inner { gap: 16px; }
  .topbar-item:first-child { display: none; }
  .topbar-hours { display: none; }
  .topbar-call { margin-left: 0; }

  .nav-toggle { display: inline-flex; position: relative; z-index: 95; }
  .brand { position: relative; z-index: 95; }
  .nav-links {
    position: fixed;
    inset: 0;
    top: 0;
    z-index: -1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    background: var(--navy);
    padding: 90px 26px 40px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; z-index: 90; }
  .nav-links > li { width: 100%; }
  .nav-links > li > a:not(.btn) {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 7vw, 2.4rem);
    font-weight: 600;
    color: var(--white);
    padding: 10px 0;
    border-bottom: 1px solid var(--line-navy);
    border-radius: 0;
  }
  .nav-links > li > a:not(.btn):hover { background: none; color: var(--blue); }
  .nav-links > li > a.active { color: var(--blue); }
  .nav-links > li > a.active::after { display: none; }
  .nav-cta-li { margin: 18px 0 0; }
  .nav-cta { width: 100%; }
  body.nav-open { overflow: hidden; }
  .site-header:has(.nav-links.open),
  .site-header:has(.nav-links.open) .nav { background: var(--navy); border-color: var(--line-navy); }
  .site-header:has(.nav-links.open) .topbar { background: var(--navy); }
  .site-header:has(.nav-links.open) .brand-name { color: var(--white); }
  .site-header:has(.nav-links.open) .nav-toggle { border-color: var(--line-navy); color: var(--white); }

  .hero-grid { grid-template-columns: minmax(0, 1fr); padding-top: 48px; }
  .hero-panel { max-width: 560px; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  .container-flush-m { padding: 0 10px; }
  .section-head { margin-bottom: 30px; }
  .services-grid, .projects-grid, .posts-grid, .why-grid { gap: 14px; }
  .service-card { padding: 22px 20px 20px; gap: 10px; }
  .service-num { top: 18px; right: 20px; }
  .service-icon { width: 48px; height: 48px; }
  .why-card { padding: 24px 20px; }
  .why-num { margin-bottom: 12px; }
  .project-body { padding: 16px 16px 18px; }
  .post-body { padding: 16px 18px 18px; gap: 8px; }
  .post-card h3 { padding-right: 16px; }
  .contact-card { padding: 14px 16px; gap: 14px; }
  .panel { padding: 24px 20px; }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-art img { padding: 10px; }
  .product-body { padding: 12px 12px 14px; gap: 6px; }
  .product-cat { font-size: 0.62rem; letter-spacing: 0.1em; }
  .product-name {
    font-size: 0.86rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .product-price { font-size: 0.92rem; }
  .product-actions { gap: 7px; }
  .product-actions .btn { padding: 9px 10px; font-size: 0.78rem; gap: 6px; }
  .wa-full { display: none; }
  .wa-short { display: inline; }
  .product-more { font-size: 0.78rem; }
  .badge { font-size: 0.6rem; padding: 4px 9px; top: 8px; left: 8px; }
  .services-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .projects-grid, .posts-grid, .posts-grid-wide { grid-template-columns: minmax(0, 1fr); }
  .photo-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-band figure:nth-child(3) { border-left: 0; }
  .photo-band figure:nth-child(n+3) { border-top: 1px solid var(--line); }
  .gallery-grid, .prj-gallery { grid-template-columns: minmax(0, 1fr); }
  .quote-form { grid-template-columns: minmax(0, 1fr); }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 0; padding: 12px 12px; font-size: 0.88rem; gap: 7px; min-width: 0; white-space: normal; }
  .reviews-actions { gap: 10px; flex-wrap: nowrap; }
  .reviews-actions .btn { flex: 1 1 0; padding: 12px 10px; font-size: 0.84rem; gap: 7px; min-width: 0; white-space: normal; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1; min-width: 0; white-space: normal; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .pd-strip { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .variant-row { gap: 8px; }
  .variant { flex: 1 1 30%; padding: 10px 8px; }
  .pd-strip { gap: 10px; }
  .pd-strip > div { font-size: 0.76rem; }
  .floaters { right: 14px; bottom: 14px; }
  .floater { width: 52px; height: 52px; }
  .floater-tip { display: none; }
}

@media (max-width: 420px) {
  .container-flush-m { padding: 0 8px; }
  .products-grid { gap: 8px; }
  .product-body { padding: 10px 10px 12px; }
  .product-actions .btn { font-size: 0.74rem; padding: 8px 6px; }
  .product-name { font-size: 0.82rem; }
  .brand-logo { height: 48px; }
  .hero-actions .btn { font-size: 0.82rem; padding: 11px 8px; gap: 6px; }
  .reviews-actions .btn { font-size: 0.76rem; padding: 11px 8px; gap: 5px; }
  .review-ava { width: 34px; height: 34px; }
  .review-who { width: 96px; }
  .review-who b { font-size: 0.82rem; }
}

@media (prefers-reduced-motion: reduce) {
  .reviews-track { animation: none; }
  .reviews-marquee { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
  .review-row.dup { display: none; }
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .reveal-init { opacity: 1; transform: none; }
  * { transition-duration: 0.01ms !important; }
}
