/*
  All Clean — design system
  Vanilla CSS. Custom properties + modern layout (grid/flex/clamp).
  Light theme only, deliberately — see DECISIONS.md for why the
  prefers-color-scheme dark block was removed.
*/

/* ---------- Fonts (self-hosted, variable) ---------- */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/manrope-variable-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/manrope-variable-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/manrope-variable-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F;
}

/* ---------- Design tokens ---------- */
:root {
  /* primary — Royal Blue theme (owner-specified palette). #1e40af/#1e3a8a are
     the owner's exact "Primary"/"Primary Dark" values; -900 is Slate Navy
     (#0f172a, owner's footer/dark-text color) reused as the deepest surface;
     -500/-400/-100/-050 are interpolated to fill out the same ramp. */
  --color-primary-900: #0f172a;
  --color-primary-700: #1e3a8a;
  --color-primary-600: #1e40af;
  --color-primary-500: #2563eb;
  --color-primary-400: #60a5fa;
  --color-primary-100: #dbeafe;
  --color-primary-050: #eff6ff;

  /* accent — CTA buttons + active elements. Owner asked for vibrant cyan-blue
     #0ea5e9 (sky-500) here, but white text on that exact value only clears
     2.77:1 (fails WCAG AA even for large bold text) — see DECISIONS.md. Kept
     #0ea5e9 as -400 for non-text decorative/active-state use (it IS the
     requested hex, just not for text-bearing surfaces), and darkened the
     actual button fill to sky-700/sky-800 so CTA text stays readable. The
     WhatsApp button is unaffected — it's still literal WhatsApp brand green,
     never driven by this token. */
  --color-accent-600: #075985;
  --color-accent-500: #0369a1;
  --color-accent-400: #0ea5e9;
  --color-accent-100: #e0f2fe;

  /* brand palette — decorative use ONLY: gradients, hero/final-cta backgrounds,
     icon badges. Never body text, never every button at once. Each has a
     "-glyph" tone (WCAG AA on its own "-100" pale tint) for small icon use.
     Monochromatic blue family (sky -> royal -> navy) per the owner's later
     request — replaces the earlier red/yellow/green trio, see DECISIONS.md. */
  --color-brand-sky: #0ea5e9;
  --color-brand-sky-glyph: #0369a1;
  --color-brand-sky-100: #e0f2fe;
  --color-brand-blue: #2563eb;
  --color-brand-blue-glyph: #1d4ed8;
  --color-brand-blue-100: #dbeafe;
  --color-brand-navy: #1e3a8a;
  --color-brand-navy-glyph: #1e3a8a;
  --color-brand-navy-100: #e0e7ff;

  /* Diagonal sky -> royal blue -> navy, for hero/final-cta/dividers only. */
  --gradient-brand: linear-gradient(135deg, var(--color-brand-sky) 0%, var(--color-brand-blue) 50%, var(--color-brand-navy) 100%);
  /* Dark wash composited under white text on the gradient — tuned so even the
     lightest stop (sky) still clears 4.5:1 for white text, see DECISIONS.md. */
  --gradient-overlay: linear-gradient(rgba(15, 15, 25, 0.42), rgba(15, 15, 25, 0.42));

  /* standalone rating-star color — gold reads as "rating" to users far more
     reliably than blue would, so it's deliberately outside the brand trio. */
  --color-rating-star: #b45309;

  /* neutrals — cool slate, owner-specified: bg #f8fafc, card border #e2e8f0,
     dark text #0f172a, muted #64748b (Royal Blue theme, see DECISIONS.md). */
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-muted: #f1f5f9;
  --color-border: #e2e8f0;
  --color-text: #0f172a;
  --color-text-muted: #64748b;
  --color-text-on-primary: #ffffff;
  --color-text-on-accent: #ffffff;

  --color-success: #0d9488;
  --color-danger: #c02626;
  --color-warning-bg: #fff4cc;
  --color-warning-text: #665400;
  --color-warning-border: #e8d27a;

  --font-sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  --fs-body: 17px;
  --fs-small: 0.9rem;
  --fs-h1: clamp(2rem, 5vw, 3.5rem);
  --fs-h2: clamp(1.6rem, 3.4vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 2.2vw, 1.6rem);
  --lh-body: 1.6;
  --lh-heading: 1.2;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(20, 30, 28, 0.06), 0 1px 1px rgba(20, 30, 28, 0.04);
  --shadow-md: 0 8px 24px rgba(20, 30, 28, 0.08);
  --shadow-lg: 0 16px 48px rgba(20, 30, 28, 0.12);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;

  --container-max: 1180px;
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;

  --header-height: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@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;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
/* Soft ambient glow behind the whole page — first in the DOM so it paints
   behind header/main/footer (all z-index:auto or higher), no negative
   z-index needed. Static, not animated, so prefers-reduced-motion is moot. */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(560px circle at 12% -8%, #e0f2fe 0%, transparent 62%),
    radial-gradient(480px circle at 108% 18%, #d0e8ff 0%, transparent 58%),
    radial-gradient(620px circle at 45% 118%, #e0f2fe 0%, transparent 60%);
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { line-height: var(--lh-heading); font-weight: 700; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
button { font-family: inherit; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #1e3a8a;
  color: #fff;
  padding: var(--space-3) var(--space-4);
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--color-primary-500);
  outline-offset: 2px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
section { padding-block: var(--space-8); }
.section-head {
  max-width: 640px;
  margin-bottom: var(--space-6);
}
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  color: var(--color-primary-600);
  font-weight: 700;
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.section-head p { color: var(--color-text-muted); margin-top: var(--space-3); font-size: 1.05rem; }
.bg-muted { background: var(--color-primary-050); }

.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.6rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-accent {
  background: var(--color-accent-500);
  color: var(--color-text-on-accent);
  box-shadow: var(--shadow-md);
}
.btn-accent:hover { background: var(--color-accent-600); }
.btn-primary {
  background: #1e3a8a;
  color: #fff;
}
.btn-primary:hover { background: #0f172a; }
.btn-outline {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}
.btn-outline:hover { border-color: var(--color-primary-500); color: var(--color-primary-700); }
.btn-whatsapp {
  background: #25d366;
  color: #0f172a;
}
.btn-whatsapp:hover { background: #1fb857; }
.btn-block { width: 100%; }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.9rem; }
.btn-lg { padding: 1.25rem 2.25rem; font-size: 1.2rem; gap: var(--space-3); box-shadow: var(--shadow-lg); }
.btn-lg svg { width: 26px; height: 26px; }

/* ---------- Header ---------- */
.site-header__segment {
  background: var(--color-primary-900);
}
.segment-switch {
  display: flex;
  gap: 2px;
  padding-block: 6px;
}
.segment-switch__option {
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.segment-switch__option:hover { color: #fff; }
.segment-switch__option.is-active {
  background: var(--color-accent-500);
  color: #fff;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: color-mix(in srgb, var(--color-surface) 92%, transparent);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
  /* min-height, not height: if the row ever can't fit and wraps, the box
     grows to match instead of clipping/overlapping page content — see
     DECISIONS.md for the sticky-header bug this guards against. */
  min-height: var(--header-height);
}
.site-header__inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  padding-block: var(--space-2);
}
.logo { display: flex; align-items: center; }
.logo__image { height: 44px; width: auto; border-radius: 8px; }
.main-nav { display: none; }
.main-nav ul { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.main-nav a { font-weight: 600; color: var(--color-text); transition: color var(--transition-fast); }
.main-nav a:hover { color: var(--color-primary-700); }
.header-actions { display: flex; align-items: center; gap: var(--space-3); }
.header-actions__phone {
  display: none;
  font-weight: 700;
  color: var(--color-primary-900);
}
.lang-switch { position: relative; }
.lang-switch__button {
  display: flex; align-items: center; gap: var(--space-1);
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.8rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.lang-switch__list {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  min-width: 140px;
}
.lang-switch:hover .lang-switch__list,
.lang-switch:focus-within .lang-switch__list { display: block; }
.lang-switch__list a {
  display: flex; justify-content: space-between; gap: var(--space-2);
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
}
.lang-switch__list a:hover { background: var(--color-primary-050); }
.nav-toggle {
  display: inline-flex;
  background: none; border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
}
/* Mobile slide-over drawer — .main-nav is toggled to .is-open by ui.js;
   below 900px it's an off-canvas panel instead of the always-hidden default. */
@media (max-width: 899px) {
  .main-nav {
    display: block;
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 84vw);
    background: var(--color-surface);
    box-shadow: var(--shadow-lg);
    padding: calc(var(--header-height) + var(--space-5)) var(--space-5) var(--space-5);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    z-index: 700;
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: var(--space-4); }
  .main-nav a { font-size: 1.1rem; }
  .nav-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 650;
  }
  .nav-backdrop.is-open { display: block; }
}
@media (min-width: 900px) {
  .main-nav { display: block; }
  .header-actions__phone { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* ---------- Demo banner (section 19.4) ---------- */
.demo-banner {
  background: var(--color-warning-bg);
  color: var(--color-warning-text);
  border-bottom: 1px solid var(--color-warning-border);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  padding: var(--space-2) var(--space-4);
}

/* ---------- Hero ---------- */
.hero {
  padding-block: var(--space-7) var(--space-8);
  overflow: hidden;
  background: var(--gradient-overlay), var(--gradient-brand);
}
.hero__inner {
  display: grid;
  gap: var(--space-7);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.1fr 0.9fr; }
}
.location-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-accent-100);
  color: var(--color-accent-500);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-4);
}
.hero__title { color: #fff; }
.hero__subtitle { margin-top: var(--space-4); font-size: 1.15rem; color: rgba(255, 255, 255, 0.9); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.hero .btn-accent { background: #fff; color: #0f172a; }
.hero .btn-accent:hover { background: #fff; opacity: 0.9; }
.hero__secondary-link {
  display: inline-block;
  margin-top: var(--space-4);
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  font-weight: 600;
}
.hero__secondary-link:hover { color: #fff; }
.trust-markers { display: flex; flex-wrap: wrap; gap: var(--space-5); margin-top: var(--space-5); }
.trust-marker { display: flex; align-items: center; gap: var(--space-2); font-weight: 600; font-size: 0.95rem; color: #fff; }
.trust-marker svg { color: #fff; flex-shrink: 0; }
.hero__media {
  aspect-ratio: 4 / 3;
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  padding: 8px;
}
.hero__media img { border-radius: calc(var(--radius-xl) - 4px); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* Decorative hero illustration (replaces a photo — see DECISIONS.md) */
.hero__bubbles { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.hero__bubbles svg { max-width: 420px; }
.hero__bubble { animation: bubble-float 6s ease-in-out infinite; }
.hero__bubble:nth-child(2) { animation-delay: -1.5s; }
.hero__bubble:nth-child(3) { animation-delay: -3s; }
.hero__bubble:nth-child(4) { animation-delay: -4.5s; }
@keyframes bubble-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__bubble { animation: none; }
}

/* ---------- Stats strip (below hero) ---------- */
.stats-strip { padding-block: var(--space-6); }
.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
}
.stat-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-accent-100);
  color: var(--color-accent-500);
  margin-bottom: var(--space-3);
}
.stat-card h3 { font-size: 1rem; }
.stat-card p { color: var(--color-text-muted); font-size: 0.9rem; margin-top: var(--space-1); }

/* ---------- Cards: services ---------- */
.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.service-card__icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-primary-100);
  color: var(--color-primary-700);
  display: flex; align-items: center; justify-content: center;
}
/* Cycle the 4 brand colors through the icon badges only — small, controlled
   accents rather than a whole loud card, see DECISIONS.md. */
.service-card:nth-of-type(3n+1) .service-card__icon { background: var(--color-brand-sky-100); color: var(--color-brand-sky-glyph); }
.service-card:nth-of-type(3n+2) .service-card__icon { background: var(--color-brand-blue-100); color: var(--color-brand-blue-glyph); }
.service-card:nth-of-type(3n+3) .service-card__icon { background: var(--color-brand-navy-100); color: var(--color-brand-navy-glyph); }
.service-card__price { color: var(--color-accent-600); font-weight: 700; }
.service-card__desc { color: var(--color-text-muted); font-size: 0.95rem; flex-grow: 1; }
.service-card__link { font-weight: 700; color: var(--color-primary-700); display: inline-flex; align-items: center; gap: var(--space-1); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #1e3a8a;
  color: #fff;
  font-weight: 800;
  margin-bottom: var(--space-3);
}

/* ---------- Why us ---------- */
.why-card { display: flex; gap: var(--space-4); padding: var(--space-4) 0; border-bottom: 1px solid var(--color-border); }
.why-card:last-child { border-bottom: none; }
.why-card__icon {
  color: var(--color-primary-600);
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-primary-100);
  display: flex; align-items: center; justify-content: center;
}
.why-card:nth-of-type(3n+1) .why-card__icon { background: var(--color-brand-sky-100); color: var(--color-brand-sky-glyph); }
.why-card:nth-of-type(3n+2) .why-card__icon { background: var(--color-brand-blue-100); color: var(--color-brand-blue-glyph); }
.why-card:nth-of-type(3n+3) .why-card__icon { background: var(--color-brand-navy-100); color: var(--color-brand-navy-glyph); }
.why-card h3 { font-size: 1.05rem; margin-bottom: var(--space-1); }
.why-card p { color: var(--color-text-muted); font-size: 0.95rem; }

/* ---------- Reviews ---------- */
.reviews-track {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-3);
  -webkit-overflow-scrolling: touch;
}
.review-card {
  scroll-snap-align: start;
  flex: 0 0 min(320px, 85vw);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.review-card__stars { color: var(--color-rating-star); letter-spacing: 2px; }
.review-card__text { color: var(--color-text); font-size: 0.97rem; flex-grow: 1; }
.review-card__author { display: flex; align-items: center; gap: var(--space-3); }
.review-card__avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--color-primary-100); color: var(--color-primary-700);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.review-card__meta { font-size: 0.85rem; color: var(--color-text-muted); }
.review-card__badge {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-warning-text);
  background: var(--color-warning-bg);
  border: 1px solid var(--color-warning-border);
  border-radius: var(--radius-pill);
  padding: 0.15rem 0.6rem;
}

/* ---------- Price table ---------- */
.price-table { width: 100%; border-collapse: collapse; background: var(--color-surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.price-table th, .price-table td { text-align: left; padding: var(--space-4); border-bottom: 1px solid var(--color-border); }
.price-table th { background: var(--color-primary-050); color: var(--color-primary-900); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.03em; }
.price-table tr:last-child td { border-bottom: none; }
.price-table__note { margin-top: var(--space-3); color: var(--color-text-muted); font-size: 0.9rem; }
.table-scroll { overflow-x: auto; }

/* ---------- Package cards + addons grid (fixed pricing, no calculator) ---------- */
.package-card {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  text-align: center;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.package-card:hover { border-color: var(--color-accent-500); box-shadow: var(--shadow-md); }
.package-card__price { font-size: 1.4rem; font-weight: 800; color: var(--color-accent-500); }
.package-card__desc { color: var(--color-text-muted); font-size: 0.92rem; flex-grow: 1; margin-bottom: var(--space-3); }

.info-banner {
  background: var(--color-accent-100);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-top: var(--space-6);
  display: grid;
  gap: var(--space-2);
  color: var(--color-primary-900);
}
.info-banner p { margin: 0; }
.info-banner a { color: var(--color-accent-500); font-weight: 700; text-decoration: underline; }

.addon-chip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-2);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  /* grid items default to min-width:auto, which lets a long label+price
     force this box wider than its grid track — min-width:0 plus wrapping
     keeps it inside the column instead of overflowing, see DECISIONS.md */
  min-width: 0;
}
.addon-chip__icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--color-accent-100);
  color: var(--color-accent-500);
  display: flex; align-items: center; justify-content: center;
}
.addon-chip__label { font-weight: 600; font-size: 0.9rem; flex-grow: 1; min-width: 0; overflow-wrap: break-word; }
.addon-chip__price { font-size: 0.85rem; color: var(--color-text-muted); white-space: nowrap; margin-left: auto; }

/* ---------- Work gallery (tabbed, real photos only) ---------- */
.gallery-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  margin-bottom: var(--space-6);
}
.gallery-tabs__btn {
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.gallery-tabs__btn:hover { border-color: var(--color-accent-500); color: var(--color-text); }
.gallery-tabs__btn.is-active {
  background: var(--color-accent-500);
  border-color: var(--color-accent-500);
  color: #fff;
}
.gallery-tabs__panel { display: none; }
.gallery-tabs__panel.is-active { display: block; }
.gallery-photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.gallery-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-5) 0;
  font-weight: 700;
  font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-primary-600);
  transition: transform var(--transition-base);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item__body { padding-bottom: var(--space-5); color: var(--color-text-muted); max-width: 68ch; }

/* ---------- Districts ---------- */
.district-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  font-weight: 700;
  display: flex; align-items: center; justify-content: space-between;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
.district-card:hover { border-color: var(--color-primary-500); color: var(--color-primary-700); }

/* ---------- Calculator ---------- */
.calculator {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
}
.calc-field { margin-bottom: var(--space-6); }
.calc-field > label, .calc-field__label {
  display: block;
  font-weight: 700;
  margin-bottom: var(--space-3);
}
.calc-radio-group { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.calc-radio-card {
  position: relative;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  cursor: pointer;
  text-align: center;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.calc-radio-card input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.calc-radio-card:has(input:checked) { border-color: var(--color-primary-600); background: var(--color-primary-050); }
.calc-radio-card:has(input:focus-visible) { outline: 3px solid var(--color-primary-500); outline-offset: 2px; }
.calc-radio-card__title { font-weight: 700; font-size: 0.95rem; }
.calc-radio-card__hint { font-size: 0.8rem; color: var(--color-text-muted); margin-top: 2px; }

.calc-range-row { display: flex; align-items: center; gap: var(--space-4); }
input[type="range"] { flex-grow: 1; accent-color: var(--color-primary-600); height: 6px; }
.calc-number {
  width: 90px;
  padding: 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  text-align: center;
  font-weight: 700;
}
.calc-stepper { display: inline-flex; align-items: center; gap: var(--space-2); }
.calc-stepper button {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: 1.1rem;
  cursor: pointer;
}
.calc-stepper button:hover { border-color: var(--color-primary-500); }
.calc-stepper output { min-width: 24px; text-align: center; font-weight: 700; }

.calc-addons { display: grid; gap: var(--space-3); }
.calc-addon {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
}
.calc-addon__label { display: flex; align-items: center; gap: var(--space-3); font-weight: 600; }
.calc-addon__price { color: var(--color-text-muted); font-size: 0.85rem; }

.calc-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  font-weight: 600;
}

.calc-result {
  background: #0f172a;
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  position: sticky;
  top: calc(var(--header-height) + var(--space-4));
}
.calc-result__label { font-size: 0.9rem; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.04em; }
.calc-result__price { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-block: var(--space-2); }
.calc-result__meta { opacity: 0.85; font-size: 0.95rem; }
.calc-result__savings {
  margin-top: var(--space-4);
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  font-size: 0.9rem;
}
.calc-result .btn-accent { width: 100%; margin-top: var(--space-5); }
.calc-grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 960px) {
  .calc-grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
}

/* ---------- Forms ---------- */
.form-field { margin-bottom: var(--space-4); }
.form-field label { display: block; font-weight: 700; margin-bottom: var(--space-2); font-size: 0.92rem; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  border-color: var(--color-primary-500);
}
.form-field--error input, .form-field--error textarea { border-color: var(--color-danger); }
.form-field__error { color: var(--color-danger); font-size: 0.85rem; margin-top: var(--space-1); }
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.85rem; color: var(--color-text-muted); margin-top: var(--space-3); }
.form-status { margin-top: var(--space-4); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); font-weight: 600; display: none; }
.form-status--success { display: block; background: color-mix(in srgb, var(--color-success) 12%, transparent); color: var(--color-success); }
.form-status--error { display: block; background: color-mix(in srgb, var(--color-danger) 12%, transparent); color: var(--color-danger); }

/* ---------- Final CTA ---------- */
.final-cta {
  background: var(--gradient-overlay), var(--gradient-brand);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: var(--space-7);
  text-align: center;
}
.final-cta h2 { color: #fff; }
.final-cta p { color: rgba(255,255,255,0.85); margin-top: var(--space-3); }
.final-cta__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.final-cta .btn-accent { background: #fff; color: #0f172a; }
.final-cta .btn-accent:hover { background: #fff; opacity: 0.9; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0f172a;
  color: rgba(255,255,255,0.85);
  padding-block: var(--space-7);
  margin-top: var(--space-8);
  border-top: 4px solid;
  border-image: var(--gradient-brand) 1;
}
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer-grid h4 { color: #fff; font-size: 0.95rem; margin-bottom: var(--space-3); }
.footer-grid ul { display: grid; gap: var(--space-2); font-size: 0.9rem; }
.footer-bottom {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex; flex-wrap: wrap; gap: var(--space-3);
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.social-icons { display: flex; gap: var(--space-3); }
.social-icons a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Floating WhatsApp + mobile bottom bar ---------- */
.float-whatsapp {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  width: 72px; height: 72px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 600;
  transition: transform var(--transition-fast);
  animation: whatsapp-pulse 2.6s ease-in-out infinite;
}
.float-whatsapp svg { width: 34px; height: 34px; }
.float-whatsapp:hover { transform: scale(1.06); animation-play-state: paused; }
@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: var(--shadow-lg), 0 0 0 0 rgba(37, 211, 102, 0.55); }
  50% { box-shadow: var(--shadow-lg), 0 0 0 14px rgba(37, 211, 102, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .float-whatsapp { animation: none; }
}

.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 600;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
  transform: translateY(100%);
  transition: transform var(--transition-base);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.mobile-bar.is-visible { transform: translateY(0); }
.mobile-bar a, .mobile-bar button {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: var(--space-4) var(--space-2);
  font-size: 0.9rem;
  font-weight: 800;
  border: none;
  background: none;
  color: var(--color-text);
  border-right: 1px solid var(--color-border);
}
.mobile-bar a:last-child, .mobile-bar button:last-child { border-right: none; }
.mobile-bar a:nth-child(2) { color: var(--color-accent-500); }
@media (min-width: 900px) {
  .mobile-bar { display: none; }
}
body.has-mobile-bar { padding-bottom: 82px; }
@media (min-width: 900px) {
  body.has-mobile-bar { padding-bottom: 0; }
}

/* ---------- Exit-intent popup (desktop only, see ui.js) ---------- */
.exit-popup {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.exit-popup[hidden] { display: none; }
.exit-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}
.exit-popup__card {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-6);
  max-width: 380px;
  width: min(380px, 90vw);
  text-align: center;
  animation: exit-popup-in 220ms ease;
}
@keyframes exit-popup-in {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .exit-popup__card { animation: none; }
}
.exit-popup__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--color-text-muted);
}
.exit-popup__close svg { transform: rotate(45deg); }
.exit-popup__card h3 { margin-bottom: var(--space-2); }
.exit-popup__card p { color: var(--color-text-muted); margin-bottom: var(--space-5); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 0.85rem; color: var(--color-text-muted); padding-block: var(--space-4); }
.breadcrumbs a:hover { color: var(--color-primary-700); }
.breadcrumbs li { display: inline; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-inline: var(--space-2); }

/* ---------- Checklists ---------- */
.checklist { display: grid; gap: var(--space-2); }
.checklist li { display: flex; gap: var(--space-2); align-items: flex-start; }
.checklist--yes li::before { content: "✓"; color: var(--color-success); font-weight: 800; flex-shrink: 0; }
.checklist--no li::before { content: "–"; color: var(--color-text-muted); font-weight: 800; flex-shrink: 0; }

/* ---------- Blog ---------- */
.blog-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.blog-card__body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); flex-grow: 1; }
.blog-card__date { font-size: 0.8rem; color: var(--color-text-muted); }
.blog-card__desc { color: var(--color-text-muted); font-size: 0.92rem; flex-grow: 1; }
.article { max-width: 72ch; margin-inline: auto; }
.article h2 { margin-top: var(--space-7); margin-bottom: var(--space-3); }
.article h3 { margin-top: var(--space-6); margin-bottom: var(--space-2); }
.article p { margin-bottom: var(--space-4); }
.article ul, .article ol { margin-bottom: var(--space-4); padding-left: 1.4rem; list-style: disc; }
.article ol { list-style: decimal; }
.article a { color: var(--color-primary-700); text-decoration: underline; }
.article__meta { color: var(--color-text-muted); font-size: 0.9rem; margin-bottom: var(--space-6); }

/* ---------- Fade-in on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 300ms ease, transform 300ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 404 ---------- */
.error-page { text-align: center; padding-block: var(--space-8); }
.error-page__code { font-size: clamp(3rem, 10vw, 6rem); font-weight: 800; color: var(--color-primary-100); }

@media (max-width: 599px) {
  section { padding-block: var(--space-6); }
  .calc-result { position: static; }
}
