/* ==========================================================================
   CarFixer.ae — Shared stylesheet
   Structure:
     1. Design tokens
     2. Base & typography
     3. Layout helpers
     4. Buttons & links
     5. Header & navigation
     6. Hero / page banners
     7. Sections & cards
     8. App promotion & phone mockup
     9. FAQ accordion
    10. Forms
    11. Legal / prose pages
    12. Footer
    13. Floating controls, cookie banner, toasts
    14. Animations
    15. Responsive breakpoints
   ========================================================================== */

/* 1. Design tokens ------------------------------------------------------- */
:root {
  --navy: #071e49;
  --navy-700: #0b2a63;
  --navy-800: #081f4f;
  --navy-900: #04122e;
  --red: #ff1738;          /* Brand accent — decorative use, large text */
  --red-strong: #e0102d;   /* Accessible red for buttons / small text on white */
  --white: #ffffff;
  --charcoal: #1d2330;
  --gray: #5a6474;
  --gray-300: #d5dae3;
  --gray-200: #e6e9ef;
  --gray-100: #f3f5f9;
  --whatsapp: #25d366;
  --whatsapp-dark: #128c4b;

  --font-heading: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(7, 30, 73, 0.06);
  --shadow: 0 12px 32px rgba(7, 30, 73, 0.10);
  --shadow-lg: 0 24px 60px rgba(7, 30, 73, 0.18);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --section-pad: clamp(64px, 9vw, 112px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 2. Base & typography --------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--white);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

p { margin: 0 0 1em; }

a { color: var(--red-strong); text-underline-offset: 3px; }
a:hover { color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 1000;
  padding: 10px 18px;
  background: var(--red-strong);
  color: var(--white);
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; color: var(--white); }

.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;
}

/* Visible marker for content the client must confirm before launch.
   Search the codebase for "placeholder" to find every instance. */
.placeholder {
  background: #fff4c2;
  color: #5c4500;
  padding: 0 4px;
  border-radius: 4px;
  font-weight: 600;
}

/* 3. Layout helpers ------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-pad); }
.section--alt { background: var(--gray-100); }
.section--navy {
  background: radial-gradient(1200px 500px at 85% -10%, rgba(255, 23, 56, 0.18), transparent 60%),
              linear-gradient(160deg, var(--navy-700), var(--navy-900));
  color: rgba(255, 255, 255, 0.86);
}
.section--navy h2,
.section--navy h3 { color: var(--white); }

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
}
.section-head p { color: var(--gray); font-size: 1.075rem; }
.section--navy .section-head p { color: rgba(255, 255, 255, 0.78); }
.section-head--left { margin-inline: 0; text-align: left; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-strong);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: var(--red);
}
.section--navy .eyebrow,
.hero .eyebrow,
.page-banner .eyebrow { color: #ff5a71; }

.grid { display: grid; gap: clamp(20px, 2.5vw, 28px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.text-center { text-align: center; }
.mt-lg { margin-top: clamp(32px, 4vw, 48px); }

/* 4. Buttons & links ----------------------------------------------------- */
.btn {
  --btn-bg: var(--red-strong);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 26px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 2px solid var(--btn-bg);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(224, 16, 45, 0.32);
}
.btn:active { transform: translateY(0); }

.btn--outline-light {
  --btn-fg: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn--outline-light:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.btn--outline {
  --btn-fg: var(--navy);
  background: transparent;
  border-color: var(--navy);
}
.btn--outline:hover {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn--navy { --btn-bg: var(--navy); }
.btn--navy:hover { box-shadow: 0 10px 24px rgba(7, 30, 73, 0.35); }

.btn--whatsapp { --btn-bg: var(--whatsapp-dark); }
.btn--whatsapp:hover { box-shadow: 0 10px 24px rgba(18, 140, 75, 0.35); }

.btn--sm { min-height: 42px; padding: 8px 18px; font-size: 0.92rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--red-strong);
  text-decoration: none;
}
.link-arrow i { transition: transform 0.25s var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }

/* Google Play badge-style button */
.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 22px 10px 18px;
  color: var(--white);
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.play-btn i { font-size: 1.6rem; }
.play-btn span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.play-btn small { font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; }
.play-btn strong { font-family: var(--font-heading); font-size: 1.15rem; }
.play-btn:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35); }
/* Shown while the Play Store URL is not configured (see js/config.js) */
.play-btn.is-pending { cursor: default; opacity: 0.8; }
.play-btn.is-pending:hover { transform: none; box-shadow: none; }

.app-note {
  margin-top: 12px;
  font-size: 0.9rem;
  color: inherit;
  opacity: 0.85;
}

/* 5. Header & navigation ------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 30, 73, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.3s, background-color 0.3s;
}
@supports (backdrop-filter: blur(10px)) {
  .site-header { background: rgba(7, 30, 73, 0.9); backdrop-filter: blur(12px); }
}
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(4, 18, 46, 0.35); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img { width: 52px; height: 52px; border-radius: 12px; }
.brand-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--white);
  text-transform: uppercase;
}
.brand-name span { color: var(--red); }
.brand-name small {
  font-size: 0.7em;
  font-style: normal;
  font-weight: 600;
  text-transform: none;
  opacity: 0.7;
}

.primary-nav { display: flex; align-items: center; gap: 28px; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-family: var(--font-heading);
  font-size: 0.97rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  background: none;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-link:hover,
.nav-link.is-active { color: var(--white); }
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }
.nav-link .fa-chevron-down { font-size: 0.7rem; transition: transform 0.25s; }

/* Services dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  min-width: 290px;
  padding: 10px;
  list-style: none;
  margin: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.22s, transform 0.22s var(--ease), visibility 0.22s;
}
.dropdown::before { /* hover bridge between trigger and menu */
  content: "";
  position: absolute;
  inset: -12px 0 auto 0;
  height: 12px;
}
.has-dropdown.is-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.has-dropdown.is-open .fa-chevron-down { transform: rotate(180deg); }
.dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--charcoal);
  text-decoration: none;
  border-radius: 10px;
  transition: background-color 0.2s, color 0.2s;
}
.dropdown a i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--red-strong);
  background: rgba(255, 23, 56, 0.08);
  border-radius: 9px;
}
.dropdown a:hover,
.dropdown a:focus-visible { background: var(--gray-100); color: var(--navy); }
.dropdown .dropdown-all {
  margin-top: 6px;
  border-top: 1px solid var(--gray-200);
  border-radius: 0 0 10px 10px;
  color: var(--red-strong);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(4, 18, 46, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.nav-backdrop.is-visible { opacity: 1; visibility: visible; }

/* 6. Hero / page banners -------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.86);
  background-color: var(--navy);
  background-image:
    radial-gradient(900px 520px at 78% 40%, rgba(31, 78, 170, 0.55), transparent 65%),
    radial-gradient(700px 400px at 100% 100%, rgba(255, 23, 56, 0.22), transparent 60%),
    url("../assets/images/hero-bg.svg"),
    linear-gradient(165deg, #0a2862 0%, var(--navy) 45%, var(--navy-900) 100%);
  background-size: auto, auto, cover, auto;
  background-position: center, center, center bottom, center;
  background-repeat: no-repeat;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  padding-block: clamp(64px, 9vw, 120px);
}
.hero h1 { color: var(--white); margin-bottom: 0.45em; }
.hero h1 .accent { color: var(--red); }
.hero-lead {
  max-width: 560px;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 32px;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points i { color: var(--red); }

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 500px;
  width: 100%;
  justify-self: center;
}
.hero-visual::before { /* glow ring */
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 23, 56, 0.22), transparent 62%);
  filter: blur(10px);
}
.hero-visual img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 71%);
  mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 71%);
}
.hero-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--white);
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
}
.hero-chip i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--red-strong);
}
.hero-chip--wa i { background: var(--whatsapp-dark); }
.hero-chip--1 { top: 12%; left: -2%; }
.hero-chip--2 { top: 48%; right: -4%; }
.hero-chip--3 { bottom: 10%; left: 6%; }

@media (prefers-reduced-motion: no-preference) {
  .hero-chip { animation: float 6s ease-in-out infinite; }
  .hero-chip--2 { animation-delay: -2s; }
  .hero-chip--3 { animation-delay: -4s; }
}

/* Inner page banner */
.page-banner {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 96px);
  color: rgba(255, 255, 255, 0.82);
  background-color: var(--navy);
  background-image:
    radial-gradient(800px 400px at 90% 0%, rgba(255, 23, 56, 0.2), transparent 60%),
    url("../assets/images/hero-bg.svg"),
    linear-gradient(165deg, #0a2862, var(--navy-900));
  background-size: auto, cover, auto;
  background-position: center, center bottom, center;
  background-repeat: no-repeat;
}
.page-banner h1 { color: var(--white); margin-bottom: 0.35em; }
.page-banner p { max-width: 680px; font-size: 1.1rem; margin: 0; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  font-size: 0.9rem;
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  opacity: 0.5;
}
.breadcrumb a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--white); font-weight: 600; }

/* 7. Sections & cards ---------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(24px, 3vw, 32px);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card p { color: var(--gray); }
.card .link-arrow { margin-top: auto; }

.icon-badge {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-bottom: 22px;
  font-size: 1.5rem;
  color: var(--white);
  background: linear-gradient(140deg, var(--navy-700), var(--navy));
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(7, 30, 73, 0.22);
  transition: background 0.35s, transform 0.35s var(--ease);
}
.card:hover .icon-badge {
  background: linear-gradient(140deg, var(--red), var(--red-strong));
  transform: rotate(-6deg) scale(1.05);
}

/* Service card accent bar */
.service-card::before {
  content: "";
  position: absolute;
  left: 32px;
  right: 32px;
  top: 0;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
}
.service-card:hover::before { transform: scaleX(1); }

.card--cta {
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
  border-color: transparent;
}
.card--cta h3 { color: var(--white); }
.card--cta p { color: rgba(255, 255, 255, 0.78); }
.card--cta .icon-badge { background: var(--red-strong); }

/* Feature (Why choose us) */
.feature {
  display: flex;
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s, transform 0.3s var(--ease);
}
.feature:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-4px); }
.feature .icon-badge {
  width: 52px;
  height: 52px;
  margin: 0;
  font-size: 1.25rem;
  background: var(--red-strong);
  box-shadow: none;
}
.feature h3 { margin-bottom: 6px; font-size: 1.12rem; }
.feature p { margin: 0; color: rgba(255, 255, 255, 0.76); font-size: 0.97rem; }

/* How it works steps */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: clamp(20px, 2.5vw, 28px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.step {
  position: relative;
  padding: 32px 26px 28px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  text-align: center;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--gray-200);
}
.step .icon-badge { margin-inline: auto; }
.step p { color: var(--gray); margin: 0; }

/* Service area */
.area-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-lg);
  color: rgba(255, 255, 255, 0.86);
  background:
    url("../assets/images/map-pattern.svg") right -40px center / 360px no-repeat,
    linear-gradient(150deg, var(--navy-700), var(--navy-900));
}
.area-card h3 { color: var(--white); font-size: 1.6rem; }
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}
.area-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.area-list .is-confirmed { background: var(--red-strong); border-color: var(--red-strong); color: var(--white); }

.check-list { list-style: none; margin: 0 0 1.4em; padding: 0; }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.check-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  color: var(--white);
  background: var(--red-strong);
  border-radius: 50%;
}

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--radius-lg);
  color: rgba(255, 255, 255, 0.86);
  background:
    radial-gradient(500px 300px at 100% 0%, rgba(255, 23, 56, 0.35), transparent 60%),
    linear-gradient(150deg, var(--navy-700), var(--navy-900));
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: var(--white); margin-bottom: 0.3em; }
.cta-band p { margin: 0; font-size: 1.08rem; }

/* About page */
.media-panel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.4;
}
.media-panel img { width: 100%; height: 100%; object-fit: cover; }
.media-panel figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 14px 18px;
  font-weight: 600;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-sm);
}

.value-card h3 { display: flex; align-items: center; gap: 12px; }
.value-card h3 i { color: var(--red-strong); }

/* Service details page */
.service-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}
.service-nav {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 14px;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
}
.service-nav h2 {
  margin: 8px 12px 12px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
}
.service-nav ul { list-style: none; margin: 0; padding: 0; }
.service-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
  border-radius: 12px;
  transition: background-color 0.2s, color 0.2s;
}
.service-nav a i { width: 20px; text-align: center; color: var(--red-strong); }
.service-nav a:hover { background: var(--white); }
.service-nav a.is-active { background: var(--navy); color: var(--white); }
.service-nav a.is-active i { color: var(--red); }

.service-detail { scroll-margin-top: calc(var(--header-h) + 24px); }
.service-detail + .service-detail {
  margin-top: 56px;
  padding-top: 56px;
  border-top: 1px solid var(--gray-200);
}
/* When JS is active, show one service at a time */
.js .service-details-list.is-tabbed .service-detail { display: none; }
.js .service-details-list.is-tabbed .service-detail.is-active { display: block; margin-top: 0; padding-top: 0; border-top: 0; }

.service-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: clamp(24px, 3vw, 32px);
  margin-bottom: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
}
.service-hero .icon-badge { margin: 0; width: 72px; height: 72px; font-size: 1.9rem; background: var(--red-strong); }
.service-hero h2 { margin: 0; color: var(--white); font-size: clamp(1.5rem, 3vw, 2.1rem); }
.service-hero p { margin: 4px 0 0; color: rgba(255, 255, 255, 0.78); }

.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; margin: 24px 0 32px; }
.detail-box { padding: 24px; border-radius: var(--radius); background: var(--gray-100); }
.detail-box h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.detail-box h3 i { color: var(--red-strong); }
.detail-box .check-list { margin: 0; }

/* Notice boxes */
.notice {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  margin-bottom: 28px;
  font-size: 0.97rem;
  color: #5c4500;
  background: #fff8db;
  border: 1px solid #f3dc8a;
  border-radius: var(--radius);
}
.notice i { margin-top: 4px; color: #a37a00; }
.notice p:last-child { margin: 0; }

/* Contact cards */
.contact-card { align-items: flex-start; }
.contact-card .contact-value {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  word-break: break-word;
}
.contact-card .btn { margin-top: auto; }

/* 8. App promotion & phone mockup --------------------------------------- */
.app-section .split { align-items: center; }
.app-features { list-style: none; margin: 24px 0 32px; padding: 0; display: grid; gap: 14px; }
.app-features li { display: flex; gap: 14px; align-items: flex-start; }
.app-features i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
.app-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }

.qr-box {
  display: none; /* revealed by JS only when a valid Play Store URL is configured */
  align-items: center;
  gap: 14px;
  padding: 10px 16px 10px 10px;
  background: var(--white);
  border-radius: var(--radius);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
}
.qr-box.is-visible { display: inline-flex; }
.qr-box .qr-code { width: 92px; height: 92px; }
.qr-box .qr-code img,
.qr-box .qr-code canvas { width: 92px !important; height: 92px !important; }

.phone-stage { position: relative; display: flex; justify-content: center; gap: 24px; }
.phone {
  position: relative;
  width: min(280px, 72vw);
  aspect-ratio: 9 / 19;
  padding: 12px;
  background: linear-gradient(160deg, #1b2335, #05080f);
  border-radius: 44px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}
.phone::before { /* camera notch */
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  width: 82px;
  height: 22px;
  transform: translateX(-50%);
  background: #05080f;
  border-radius: 999px;
  z-index: 2;
}
.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 34px;
  background: linear-gradient(170deg, #0b2a63, var(--navy-900));
}
.phone-screen > img { width: 100%; height: 100%; object-fit: cover; }
.phone-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}
.phone-placeholder img { width: 62%; border-radius: 18px; }
.phone--back {
  position: absolute;
  width: min(230px, 58vw);
  transform: translate(46%, 12%) rotate(8deg);
  opacity: 0.55;
  z-index: -1;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 20px;
}
.screenshot-slot {
  display: grid;
  place-items: center;
  aspect-ratio: 9 / 18;
  padding: 20px;
  text-align: center;
  color: var(--gray);
  font-size: 0.92rem;
  border: 2px dashed var(--gray-300);
  border-radius: 28px;
  background: var(--white);
}
.screenshot-slot i { display: block; font-size: 1.8rem; margin-bottom: 10px; color: var(--gray-300); }

/* 9. FAQ accordion ------------------------------------------------------- */
.faq-list { max-width: 860px; margin-inline: auto; display: grid; gap: 14px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  transition: box-shadow 0.3s, border-color 0.3s;
}
.faq-item.is-open { border-color: transparent; box-shadow: var(--shadow); }
.faq-item h3 { margin: 0; font-size: 1.05rem; }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 22px;
  font: inherit;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  text-align: left;
  background: none;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}
.faq-icon {
  position: relative;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--gray-100);
  transition: background-color 0.3s, transform 0.3s var(--ease);
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), background-color 0.3s;
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item.is-open .faq-icon { background: var(--red-strong); transform: rotate(180deg); }
.faq-item.is-open .faq-icon::before,
.faq-item.is-open .faq-icon::after { background: var(--white); }
.faq-item.is-open .faq-icon::after { transform: rotate(0deg); }

.faq-answer {
  overflow: hidden;
  transition: height 0.35s var(--ease);
}
.faq-answer-inner { padding: 0 22px 22px; color: var(--gray); }
.faq-answer-inner p:last-child { margin-bottom: 0; }
.faq-answer[hidden] { display: none; }

.faq-group + .faq-group { margin-top: 48px; }
.faq-group > h2 { max-width: 860px; margin: 0 auto 18px; font-size: 1.4rem; }

/* 10. Forms -------------------------------------------------------------- */
.form-card {
  padding: clamp(24px, 4vw, 40px);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-weight: 700; font-size: 0.95rem; color: var(--navy); }
.form-field .req { color: var(--red-strong); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  font: inherit;
  color: var(--charcoal);
  background: var(--gray-100);
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(7, 30, 73, 0.12);
}
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea { border-color: var(--red-strong); background: #fff6f7; }
.field-error {
  display: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--red-strong);
}
.has-error .field-error { display: flex; gap: 6px; align-items: center; }
.field-hint { font-size: 0.85rem; color: var(--gray); }

.checkbox-field { flex-direction: row; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.checkbox-field input {
  width: 22px;
  height: 22px;
  min-height: 0;
  margin: 2px 0 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--red-strong);
}
.checkbox-field label { flex: 1; font-weight: 500; color: var(--charcoal); min-width: 0; }
.checkbox-field .field-error { flex-basis: 100%; }

.form-status {
  display: none;
  gap: 12px;
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: var(--radius);
  font-weight: 500;
}
.form-status.is-visible { display: flex; }
.form-status i { margin-top: 4px; }
.form-status--success { background: #e8f8ef; color: #0d5c33; border: 1px solid #a7e0bf; }
.form-status--error { background: #fff0f2; color: #8c0b1f; border: 1px solid #f7b8c2; }
.form-status--info { background: #eef3fc; color: var(--navy); border: 1px solid #c4d3ef; }
.form-status .btn-row { margin-top: 12px; }

.btn[disabled] { opacity: 0.65; cursor: progress; transform: none; box-shadow: none; }

/* Honeypot spam trap */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 11. Legal / prose pages ----------------------------------------------- */
.prose-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 20px;
  background: var(--gray-100);
  border-radius: var(--radius);
  font-size: 0.94rem;
}
.toc h2 { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray); margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin-bottom: 8px; }
.toc a { color: var(--charcoal); text-decoration: none; }
.toc a:hover { color: var(--red-strong); text-decoration: underline; }

.prose { max-width: 780px; }
.prose h2 { font-size: clamp(1.35rem, 2.4vw, 1.65rem); margin-top: 2em; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.45em; }
.prose .updated { color: var(--gray); font-size: 0.95rem; }

.table-wrap { overflow-x: auto; margin: 1.2em 0 1.6em; border-radius: var(--radius-sm); border: 1px solid var(--gray-200); }
.table-wrap table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 0.95rem; }
.table-wrap th,
.table-wrap td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--gray-200); }
.table-wrap th { background: var(--gray-100); color: var(--navy); font-family: var(--font-heading); }
.table-wrap tr:last-child td { border-bottom: 0; }

/* 404 */
.error-page {
  min-height: calc(100vh - var(--header-h) - 200px);
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: var(--section-pad);
}
.error-code {
  font-family: var(--font-heading);
  font-size: clamp(6rem, 22vw, 11rem);
  font-weight: 800;
  line-height: 1;
  color: var(--navy);
  letter-spacing: -0.04em;
}
.error-code span { color: var(--red); }
.error-page p { max-width: 520px; margin-inline: auto; color: var(--gray); font-size: 1.08rem; }
.error-page .btn-row { justify-content: center; margin-top: 28px; }

/* 12. Footer ------------------------------------------------------------- */
.site-footer {
  color: rgba(255, 255, 255, 0.74);
  background: var(--navy-900);
  font-size: 0.96rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr;
  gap: clamp(28px, 4vw, 48px);
  padding-block: clamp(56px, 7vw, 80px) 40px;
}
.footer-brand p { margin: 18px 0 22px; max-width: 340px; }
.site-footer h2 {
  margin-bottom: 18px;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a,
.footer-contact a {
  color: rgba(255, 255, 255, 0.74);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
}
.footer-links a:hover { color: var(--white); padding-left: 4px; }
.footer-contact { list-style: none; margin: 0 0 22px; padding: 0; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; }
.footer-contact i { margin-top: 5px; width: 18px; color: var(--red); }
.footer-contact a:hover { color: var(--white); }
.footer-contact small { display: block; font-size: 0.8rem; opacity: 0.7; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }
.footer-bottom a { color: rgba(255, 255, 255, 0.74); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom .link-button {
  padding: 0;
  font: inherit;
  color: rgba(255, 255, 255, 0.74);
  background: none;
  border: 0;
  cursor: pointer;
}
.footer-bottom .link-button:hover { color: var(--white); text-decoration: underline; }
.site-footer .play-btn { min-height: 52px; }

/* 13. Floating controls, cookie banner ---------------------------------- */
.whatsapp-float {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 80;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: var(--white);
  background: var(--whatsapp);
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(18, 140, 75, 0.4);
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), bottom 0.3s var(--ease);
}
.whatsapp-float::after { /* soft pulse ring */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--whatsapp);
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .whatsapp-float::after { animation: pulse 2.8s ease-out infinite; }
}
.whatsapp-float:hover {
  color: var(--white);
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 14px 32px rgba(18, 140, 75, 0.5);
}
.whatsapp-float .wa-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--navy);
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease);
}
.whatsapp-float:hover .wa-tooltip,
.whatsapp-float:focus-visible .wa-tooltip { opacity: 1; transform: translateX(0); }

/* Raise floating buttons above the cookie banner when it is shown */
body.has-cookie-banner .whatsapp-float,
body.has-cookie-banner .scroll-top { bottom: calc(var(--cookie-banner-h, 0px) + 20px); }

.scroll-top {
  position: fixed;
  right: max(28px, env(safe-area-inset-right));
  bottom: 92px;
  z-index: 79;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s, background-color 0.2s;
}
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--red-strong); }
body.has-cookie-banner .scroll-top { bottom: calc(var(--cookie-banner-h, 0px) + 92px); }

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 120;
  max-width: 760px;
  margin-inline: auto;
  padding: 22px 24px;
  color: var(--charcoal);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(4, 18, 46, 0.3);
  border: 1px solid var(--gray-200);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { font-size: 1.15rem; margin-bottom: 6px; }
.cookie-banner p { font-size: 0.94rem; color: var(--gray); margin-bottom: 14px; }
.cookie-options { display: grid; gap: 10px; margin-bottom: 16px; }
.cookie-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  background: var(--gray-100);
  border-radius: 12px;
  font-size: 0.92rem;
}
.cookie-option input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--red-strong); flex-shrink: 0; }
.cookie-option strong { display: block; color: var(--navy); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* 14. Animations --------------------------------------------------------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Reveal-on-scroll (only applied when JS adds .js to <html>) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: var(--reveal-delay, 0s);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }

  /* Lazy image fade-in */
  .js img[loading="lazy"] { opacity: 0; transition: opacity 0.6s var(--ease); }
  .js img[loading="lazy"].is-loaded { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 15. Responsive breakpoints -------------------------------------------- */
.nav-link,
.header-cta { white-space: nowrap; }

@media (max-width: 1240px) {
  .nav-link { padding-inline: 10px; }
  .primary-nav { gap: 16px; }
  .brand-name small { display: none; }
}

@media (max-width: 1100px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* Tablet & mobile: off-canvas navigation */
@media (max-width: 1100px) {
  :root { --header-h: 68px; }

  /* backdrop-filter would trap the fixed drawer inside the header box */
  .site-header { backdrop-filter: none; background: rgba(7, 30, 73, 0.98); }
  .nav-toggle { display: grid; position: relative; z-index: 120; }

  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 110;
    width: min(360px, 88vw);
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: calc(var(--header-h) + 12px) 20px 28px;
    overflow-y: auto;
    background: var(--navy-900);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.35);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 0.35s var(--ease), visibility 0.35s;
  }
  .primary-nav.is-open { transform: translateX(0); visibility: visible; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 14px 12px;
    font-size: 1.05rem;
    border-radius: 10px;
  }
  .nav-link::after { display: none; }
  .nav-link.is-active { background: rgba(255, 255, 255, 0.08); }
  .nav-link.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    border-radius: 3px;
    background: var(--red);
  }

  .dropdown {
    position: static;
    min-width: 0;
    padding: 0 0 0 8px;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .dropdown::before { display: none; }
  .has-dropdown.is-open .dropdown { display: block; transform: none; }
  .dropdown a { color: rgba(255, 255, 255, 0.82); padding: 10px 12px; }
  .dropdown a i { background: rgba(255, 255, 255, 0.08); color: var(--red); }
  .dropdown a:hover,
  .dropdown a:focus-visible { background: rgba(255, 255, 255, 0.06); color: var(--white); }
  .dropdown .dropdown-all { border-top-color: rgba(255, 255, 255, 0.1); color: #ff6b80; }

  .header-cta { width: 100%; }

  .hero-inner,
  .split { grid-template-columns: 1fr; }
  .hero-inner { text-align: left; }
  .hero-visual { max-width: 400px; }
  .app-section .phone-stage { order: -1; }

  .service-layout,
  .prose-layout { grid-template-columns: minmax(0, 1fr); }
  .service-nav,
  .toc { position: static; }
  .service-nav ul {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }
  .service-nav a { white-space: nowrap; background: var(--white); }

  .cta-band { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 0.98rem; }
  .brand img { width: 44px; height: 44px; }
  .brand-name { font-size: 1.2rem; }
  .brand-name small { display: none; }

  .btn-row .btn { flex: 1 1 100%; }
  .hero-chip { font-size: 0.8rem; padding: 8px 12px; }
  .hero-chip i { width: 26px; height: 26px; }
  .hero-chip--1 { left: 0; }
  .hero-chip--2 { right: 0; }

  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }

  .service-hero { flex-direction: column; align-items: flex-start; }
  .phone--back { display: none; }

  /* Keep the floating button clear of form controls and footer links */
  .whatsapp-float { width: 54px; height: 54px; font-size: 1.75rem; right: 14px; bottom: 14px; }
  .scroll-top { right: 19px; bottom: 80px; }
  .site-footer { padding-bottom: 76px; }
  .contact-form-section { padding-bottom: calc(var(--section-pad) + 40px); }
}

@media (max-width: 360px) {
  .brand-name { display: none; }
  .play-btn { width: 100%; justify-content: center; }
}

@media (min-width: 1600px) {
  :root { --container: 1320px; }
}

@media print {
  .site-header, .whatsapp-float, .scroll-top, .cookie-banner, .site-footer, .nav-backdrop { display: none !important; }
  body { color: #000; }
  .page-banner { background: none; color: #000; padding: 0 0 20px; }
  .page-banner h1 { color: #000; }
}
