/* ===========================================================
   NIKKY READY MIX CONCRETE INC. — Design System
   Palette sampled from the company logo (Texas navy + red +
   chrome) per ui-ux-pro-max "Hero-Centric" pattern.
   Fonts: Bebas Neue (display) + Source Sans 3 (body).
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  /* ---- Color tokens (light, default) ---- */
  --color-navy-950: #0a1526;
  --color-navy-900: #0f2144;
  --color-navy-800: #16305f;
  --color-navy-700: #1f3f7a;
  --color-navy-600: #2c5299;

  --color-red-800: #7a1315;
  --color-red-700: #9c1a1e;
  --color-red-600: #c41230;
  --color-red-500: #dc2f3e;

  --color-chrome-100: #f2f4f7;
  --color-chrome-200: #e3e7ed;
  --color-chrome-300: #c7cbd1;
  --color-chrome-500: #8b929c;

  --color-background: #f7f8fa;
  --color-surface: #ffffff;
  --color-foreground: #181c22;
  --color-muted-foreground: #4b5563;
  --color-border: #e2e5eb;

  --color-primary: var(--color-navy-900);
  --color-on-primary: #ffffff;
  --color-accent: var(--color-red-600);
  --color-on-accent: #ffffff;

  --color-success: #1b7a3d;
  --color-focus-ring: #2c5299;
  --color-brand-ink: var(--color-navy-900);

  /* ---- Type scale ---- */
  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 1.875rem;
  --text-3xl: 2.5rem;
  --text-4xl: 3.25rem;
  --text-5xl: 4.25rem;

  --leading-tight: 1.15;
  --leading-normal: 1.55;

  /* ---- Spacing scale (marketing density: mid/spacious) ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 3rem;
  --space-9: 4rem;
  --space-10: 5.5rem;
  --space-11: 7.5rem;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(10, 21, 38, 0.08);
  --shadow-md: 0 6px 20px rgba(10, 21, 38, 0.12);
  --shadow-lg: 0 18px 45px rgba(10, 21, 38, 0.22);

  --container-max: 1180px;
  --transition-fast: 160ms ease;
  --transition-base: 240ms ease;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-background: #0b1220;
    --color-surface: #121b2e;
    --color-foreground: #eef1f6;
    --color-muted-foreground: #aab3c2;
    --color-border: #223050;
    --color-chrome-100: #1a2438;
    --color-chrome-200: #24314c;
    --color-brand-ink: #ffffff;
  }
}
:root[data-theme="dark"] {
  --color-background: #0b1220;
  --color-surface: #121b2e;
  --color-foreground: #eef1f6;
  --color-muted-foreground: #aab3c2;
  --color-border: #223050;
  --color-chrome-100: #1a2438;
  --color-chrome-200: #24314c;
  --color-brand-ink: #ffffff;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
/* Defensive default so any bare icon SVG never renders at its raw
   intrinsic size; explicit rules elsewhere (.card-icon svg, .btn svg,
   etc.) are more specific and still win. */
svg { width: 20px; height: 20px; flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  line-height: var(--leading-tight);
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); }
p { margin: 0 0 var(--space-4); color: var(--color-muted-foreground); }
p:last-child { margin-bottom: 0; }

/* Mobile type scale — the desktop sizes above (h1 at 4.25rem/68px, h2 at
   2.5rem/40px) were never reduced for small screens, so on a ~390px-wide
   phone every heading wrapped to many lines and stacked into huge blocks
   (a hero h1 alone could run 600px+ tall). Scale headings down so text
   fits the viewport instead of towering over it. */
@media (max-width: 640px) {
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-lg); }
}

/* Visible focus states everywhere — accessibility priority 1 */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--color-focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-navy-900);
  color: #fff;
  padding: var(--space-3) var(--space-5);
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
@media (min-width: 768px) {
  .container { padding-inline: var(--space-6); }
}

section { padding-block: var(--space-9); }
.section-tight { padding-block: var(--space-8); }
.section-dark {
  background: var(--color-navy-950);
  color: #fff;
}
.section-dark p { color: var(--color-chrome-300); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-muted { background: var(--color-chrome-100); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  font-size: var(--text-sm);
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-7);
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-6);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: var(--text-base);
  border: 2px solid transparent;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}
.btn svg { flex-shrink: 0; width: 20px; height: 20px; }
.btn-primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--color-red-700); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-outline-navy {
  background: transparent;
  border-color: var(--color-brand-ink);
  color: var(--color-brand-ink);
}
.btn-outline-navy:hover { background: var(--color-navy-900); color: #fff; }
.btn-block { width: 100%; }
.btn-lg { min-height: 56px; padding: 0 var(--space-7); font-size: var(--text-lg); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 21, 38, 0.96);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  /* Note: intentionally no backdrop-filter here — it would make this
     header the containing block for the fixed-position mobile nav
     panel inside it, breaking the panel's full-viewport height. */
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: #fff;
}
.brand img { height: 52px; width: auto; }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.03em;
}
.brand-text span {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--color-chrome-300);
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.main-nav ul {
  display: flex;
  gap: var(--space-4);
  flex-wrap: nowrap;
}
.main-nav a {
  color: var(--color-chrome-200);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  padding: var(--space-2) var(--space-1);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--color-accent);
}
.header-cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.lang-switch {
  display: flex; align-items: center; gap: 4px;
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.04em;
}
.lang-switch a { color: var(--color-chrome-400, var(--color-chrome-300)); padding: 2px; }
.lang-switch a.is-active { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.lang-switch span { color: var(--color-chrome-400, var(--color-chrome-300)); }
.main-nav .lang-switch { display: none; }
.header-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  color: #fff;
  font-weight: 700;
  font-size: var(--text-sm);
  min-width: 44px;
  min-height: 44px;
  white-space: nowrap;
}
.header-phone svg { width: 18px; height: 18px; color: var(--color-accent); }
.header-social {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  flex-shrink: 0;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}
.header-social:hover { background: var(--color-accent); border-color: var(--color-accent); }
.header-social svg { width: 17px; height: 17px; }
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  padding: var(--space-2);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 1140px) {
  .main-nav { position: fixed; top: 64px; right: 0; bottom: 0; left: 0; background: var(--color-navy-950); flex-direction: column; align-items: stretch; padding: var(--space-6) var(--space-5); transform: translateX(100%); transition: transform var(--transition-base); overflow-y: auto; z-index: 150; }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .main-nav a { display: block; padding: var(--space-4) var(--space-2); font-size: var(--text-lg); }
  .header-cta .btn-primary { display: none; }
  .header-phone-text { display: none; }
  .main-nav .mobile-only-cta { display: flex; margin-top: var(--space-5); }
  .nav-toggle { display: inline-flex; }
  .header-cta .lang-switch { display: none; }
  .main-nav .lang-switch { display: flex; margin-top: var(--space-5); font-size: var(--text-sm); }
}
@media (min-width: 1141px) {
  .mobile-only-cta { display: none; }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  color: #fff;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: center;
  background-color: var(--color-navy-950);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(8,15,28,0.94) 15%, rgba(8,15,28,0.72) 55%, rgba(15,33,68,0.55) 100%);
}
/* .hero is display:flex, and a flex item with no explicit width sizes to
   its own content (fit-content) rather than filling the row — harmless
   when text is short, but longer Spanish copy can push that fit-content
   width past the viewport on mobile. width: 100% keeps it filling the
   section regardless of content length; the desktop rule below still caps
   it with max-width. */
.hero-inner { position: relative; z-index: 1; padding-block: var(--space-9); width: 100%; }
/* Desktop: pull the hero text block toward the left edge of the section
   instead of sitting inside the fully centered container, which reads
   as too far right/floaty against the full-bleed photo. */
@media (min-width: 860px) {
  .hero-inner {
    max-width: 900px;
    margin-inline: 0;
    padding-inline: var(--space-7);
  }
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(196,18,48,0.15);
  border: 1px solid rgba(196,18,48,0.5);
  color: #ff8a93;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  font-size: var(--text-sm);
  margin-bottom: var(--space-5);
}
.hero h1 { max-width: 16ch; margin-bottom: var(--space-5); }
.hero-lead { font-size: var(--text-lg); color: #fff; max-width: 52ch; margin-bottom: var(--space-6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-bottom: var(--space-7); }
.hero-stats { display: flex; flex-wrap: wrap; gap: var(--space-7); border-top: 1px solid rgba(255,255,255,0.15); padding-top: var(--space-6); }
.hero-stat strong { display: block; font-family: var(--font-display); font-size: var(--text-3xl); color: #fff; }
.hero-stat span { font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-chrome-300); }

/* Mobile: the desktop hero (min-height up to 88vh) forces the background
   photo to scale up well past its native resolution on tall, narrow phone
   viewports (object-fit: cover on a 1360x1020 source), which reads as an
   oversized, pixelated block above the fold. Cap it much shorter so the
   image scales less and the fold reaches real content sooner. */
@media (max-width: 640px) {
  .hero { min-height: min(70vh, 560px); }
  .hero-inner { padding-block: var(--space-7); }
  .hero h1 { font-size: 2rem; line-height: 1.15; max-width: none; }
  .hero-lead { font-size: var(--text-base); }
  .hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-4); }
  .hero-stat strong { font-size: var(--text-xl); }
}

/* ---- Page hero (interior pages) ---- */
.page-hero {
  position: relative;
  color: #fff;
  background: var(--color-navy-950);
  padding-block: var(--space-9);
  overflow: hidden;
}
.page-hero-media { position: absolute; inset: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,15,28,0.55), rgba(8,15,28,0.94));
}
.page-hero-inner { position: relative; z-index: 1; }
.breadcrumb { display: flex; gap: var(--space-2); align-items: center; font-size: var(--text-sm); color: var(--color-chrome-300); margin-bottom: var(--space-4); }
.breadcrumb a:hover { color: #fff; }
.page-hero p.hero-lead { margin-bottom: 0; color: #fff; }

/* ---- Cards / grids ---- */
/* minmax(0, 1fr) rather than a bare 1fr everywhere below: grid items get an
   implicit min-width: auto (= their content's min-content size) unless
   overridden, so a wide, unshrinkable descendant anywhere in a column (e.g.
   a table with min-width) silently forces the whole column — and on the
   1-column mobile layout, the whole page — wider than the viewport. Since
   html/body use overflow-x: hidden, that overflow doesn't even show up as
   a scrollbar; content just gets clipped. minmax(0, 1fr) caps the track's
   automatic minimum at 0 instead, which is the standard fix. */
.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr));} }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--color-chrome-300); }
.card-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: var(--radius-md);
  background: var(--color-navy-900);
  color: #fff;
  margin-bottom: var(--space-4);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: var(--space-2); }

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-6);
}
@media (max-width: 860px) { .feature-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .feature-strip { grid-template-columns: minmax(0, 1fr); } }
.feature-item { display: flex; gap: var(--space-4); align-items: flex-start; }
.feature-item .card-icon { flex-shrink: 0; margin-bottom: 0; background: var(--color-red-600); }
.feature-item h4 { font-family: var(--font-display); font-size: var(--text-lg); margin: 0 0 var(--space-1); letter-spacing: 0.02em; }
.feature-item p { font-size: var(--text-sm); margin: 0; }

.price-display { font-size: var(--text-3xl); }
@media (max-width: 400px) { .price-display { font-size: var(--text-2xl); } }

.badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: var(--color-chrome-100); border: 1px solid var(--color-border);
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-full);
  font-size: var(--text-sm); font-weight: 600;
}
.badge svg { width: 16px; height: 16px; color: var(--color-accent); }

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, var(--color-navy-900), var(--color-navy-950));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.cta-banner h2 { margin-bottom: var(--space-2); }
.cta-banner p { color: var(--color-chrome-300); margin: 0; }
.cta-actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }

/* ---- Star rating / reviews ---- */
.stars { display: inline-flex; gap: 2px; color: #f5b301; }
.stars svg { width: 18px; height: 18px; }
.review-badge {
  display: inline-flex; align-items: center; gap: var(--space-3);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-full);
  color: #fff;
}
.review-badge strong { font-family: var(--font-display); font-size: var(--text-lg); letter-spacing: 0.02em; }
.review-badge .g-icon { width: 22px; height: 22px; }
/* Light-background variant — used on white/light sections (e.g. Contact
   page) where the default white-on-translucent styling above would be
   low-contrast and hard to read. */
.review-badge.on-light {
  background: var(--color-chrome-100);
  border-color: var(--color-border);
  color: var(--color-foreground);
}

/* ---- Reviews carousel ---- */
.reviews-carousel { overflow: hidden; }
.reviews-track {
  display: flex; gap: var(--space-6);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: var(--space-2);
  scrollbar-width: none;
}
.reviews-track::-webkit-scrollbar { display: none; }
.review-card {
  scroll-snap-align: start;
  flex: 0 0 min(420px, 88vw);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.review-card .stars { margin-bottom: var(--space-4); }
.review-quote { font-size: var(--text-base); flex-grow: 1; margin-bottom: var(--space-5); }
.review-author { display: flex; flex-direction: column; }
.review-author strong { font-family: var(--font-display); letter-spacing: 0.02em; }
.review-author span { font-size: var(--text-xs); color: var(--color-muted-foreground); }
.carousel-controls {
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-5); margin-top: var(--space-6);
}
.carousel-btn {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: var(--radius-full);
  background: var(--color-navy-900); color: #fff; border: none; flex-shrink: 0;
  transition: background var(--transition-fast);
}
.carousel-btn:hover { background: var(--color-navy-800, var(--color-navy-900)); }
.carousel-btn svg { width: 18px; height: 18px; }
.icon-flip { transform: scaleX(-1); }

/* Google "G" icon used inside review badges/links */
.g-icon { width: 20px; height: 20px; flex-shrink: 0; }

/* "Read more reviews on Google" text link below the review grid */
.review-link {
  display: inline-flex; align-items: center; gap: var(--space-2);
  color: var(--color-navy-900);
  font-weight: 600; font-size: var(--text-sm);
  text-decoration: underline; text-underline-offset: 3px;
  transition: color var(--transition-fast);
}
.review-link:hover { color: var(--color-accent); }

/* ---- Footer ---- */
.site-footer {
  background: var(--color-navy-950);
  color: var(--color-chrome-300);
  padding-block: var(--space-9) var(--space-6);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr);
  gap: var(--space-7);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.footer-social { display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.social-link {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: var(--radius-full);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}
.social-link:hover { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.social-link svg { width: 19px; height: 19px; }
.footer-brand { display: flex; gap: var(--space-3); align-items: center; margin-bottom: var(--space-4); }
.footer-brand img { height: 44px; }
.footer-brand strong { color: #fff; font-family: var(--font-display); font-size: var(--text-lg); letter-spacing: 0.03em; }
.site-footer h4 { color: #fff; font-family: var(--font-display); font-size: var(--text-base); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--space-4); }
.site-footer ul li { margin-bottom: var(--space-3); }
.site-footer a:hover { color: #fff; }
.footer-contact li { display: flex; gap: var(--space-3); align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--color-accent); flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--space-6); gap: var(--space-4); flex-wrap: wrap;
  font-size: var(--text-xs);
}
.footer-bottom a { text-decoration: underline; text-underline-offset: 2px; }
.footer-credit {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: var(--text-xs);
  opacity: 0.7;
  text-align: center;
}

/* ---- Sticky mobile call bar ---- */
.mobile-call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none;
  background: var(--color-red-600);
  color: #fff;
}
.mobile-call-bar a {
  display: flex; align-items: center; justify-content: center; gap: var(--space-3);
  padding: var(--space-4); font-weight: 700; font-size: var(--text-base);
}
.mobile-call-bar svg { width: 20px; height: 20px; }
@media (max-width: 640px) {
  .mobile-call-bar { display: block; }
  body { padding-bottom: 60px; }
}

/* ---- Floating WhatsApp button ---- */
.whatsapp-float {
  position: fixed;
  right: var(--space-6);
  bottom: var(--space-6);
  z-index: 120;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  background: #25D366;
  color: #fff;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 18px rgba(0,0,0,0.28);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 8px 22px rgba(0,0,0,0.34); }
.whatsapp-float svg { width: 30px; height: 30px; }
@media (max-width: 640px) {
  .whatsapp-float { right: var(--space-4); bottom: 76px; width: 50px; height: 50px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}

/* ---- Tables ---- */
.price-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--color-border); }
table.price-table { width: 100%; border-collapse: collapse; min-width: 480px; background: var(--color-surface); }
.price-table th, .price-table td { padding: var(--space-4) var(--space-5); text-align: left; border-bottom: 1px solid var(--color-border); }
.price-table th { background: var(--color-navy-900); color: #fff; font-family: var(--font-display); letter-spacing: 0.05em; font-weight: 400; font-size: var(--text-sm); text-transform: uppercase; }
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:hover td { background: var(--color-chrome-100); }
.price-table td.price-cell { font-weight: 700; color: var(--color-brand-ink); font-size: var(--text-lg); }

/* ---- Forms ---- */
.form-field { margin-bottom: var(--space-5); }
.form-field label { display: block; font-weight: 700; font-size: var(--text-sm); margin-bottom: var(--space-2); }
.form-field .hint { display: block; font-size: var(--text-xs); color: var(--color-muted-foreground); margin-top: var(--space-2); font-weight: 400; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; min-height: 48px; padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
  font: inherit; font-size: var(--text-base); background: var(--color-surface); color: var(--color-foreground);
}
.form-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%234b5563'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.293l3.71-4.06a.75.75 0 111.08 1.04l-4.25 4.65a.75.75 0 01-1.08 0l-4.25-4.65a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-field textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
@media (max-width: 640px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.form-error { color: var(--color-red-700); font-size: var(--text-xs); margin-top: var(--space-2); display: none; font-weight: 600; }
.form-field.invalid input, .form-field.invalid select, .form-field.invalid textarea { border-color: var(--color-red-600); }
.form-field.invalid .form-error { display: block; }
.form-field-checkbox { background: var(--color-chrome-100); border-radius: var(--radius-md); padding: var(--space-4); }
.checkbox-label { display: flex !important; align-items: flex-start; gap: var(--space-3); font-weight: 400 !important; font-size: var(--text-sm) !important; cursor: pointer; }
.checkbox-label input[type="checkbox"] { width: 20px; min-height: 0; height: 20px; flex-shrink: 0; margin-top: 2px; accent-color: var(--color-navy-900); }
.form-field-checkbox.invalid { outline: 1.5px solid var(--color-red-600); }

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Reveal-on-scroll (subtle, per motion tier "Subtle").
   Default state is fully visible so content never disappears if JS fails
   to load; the pre-hidden state only applies once main.js confirms it is
   running (html.js, set synchronously before first paint). */
.reveal { opacity: 1; transform: none; transition: opacity 500ms ease, transform 500ms ease; }
html.js .reveal { opacity: 0; transform: translateY(16px); }
html.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Language gate (root index.html) ---- */
.gate-body { margin: 0; background: var(--color-navy-950); }
.gate {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding: var(--space-6);
}
.gate-media { position: absolute; inset: 0; z-index: 0; }
.gate-media img { width: 100%; height: 100%; object-fit: cover; }
.gate-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,15,28,0.88), rgba(8,15,28,0.96));
}
.gate-inner {
  position: relative; z-index: 1;
  max-width: 560px; width: 100%;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.gate-logo {
  width: 220px; height: auto; object-fit: contain;
  margin-bottom: var(--space-6);
  filter: drop-shadow(0 12px 28px rgba(0,0,0,0.45));
}
.gate-title {
  color: #fff; font-size: var(--text-2xl); letter-spacing: 0.04em;
  margin-bottom: var(--space-3);
}
.gate-lead { color: var(--color-chrome-300); margin-bottom: var(--space-8); }
.gate-choices {
  display: flex; gap: var(--space-5); width: 100%;
  margin-bottom: var(--space-7);
}
@media (max-width: 560px) { .gate-choices { flex-direction: column; } }
.gate-choice {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-2);
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}
.gate-choice:hover, .gate-choice:focus-visible {
  background: var(--color-red-600);
  border-color: var(--color-red-600);
  transform: translateY(-2px);
}
.gate-choice-lang {
  color: #fff; font-family: var(--font-display); font-size: var(--text-xl); letter-spacing: 0.04em;
}
.gate-choice-sub { color: var(--color-chrome-300); font-size: var(--text-sm); }
.gate-choice:hover .gate-choice-sub, .gate-choice:focus-visible .gate-choice-sub { color: rgba(255,255,255,0.85); }
.gate-phone {
  display: inline-flex; align-items: center; gap: var(--space-2);
  color: #fff; font-weight: 700; letter-spacing: 0.02em;
}
.gate-phone svg { width: 18px; height: 18px; color: var(--color-accent); }

/* ---- Legal / policy pages ---- */
.policy-intro {
  max-width: 68ch;
  font-size: var(--text-lg);
  color: var(--color-foreground);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid var(--color-border);
}
.policy-body { max-width: 68ch; }
.policy-section { margin-bottom: var(--space-8); }
.policy-section:last-child { margin-bottom: 0; }
.policy-section h2 { font-size: var(--text-2xl); margin-bottom: var(--space-4); }
.policy-list {
  list-style: disc;
  padding-left: var(--space-6);
  margin: 0 0 var(--space-4);
  color: var(--color-muted-foreground);
}
.policy-list li { margin-bottom: var(--space-3); }
.policy-list li:last-child { margin-bottom: 0; }
.policy-contact { margin-top: var(--space-4); }
.gate-phone:hover { color: #fff; }
