/* =========================================================================
   LDSchool LTD — site styles (mobile first)
   ========================================================================= */

:root {
  /* Brand */
  --red: #d71f26;
  --red-deep: #a8151b;
  --red-soft: #ff5c61;          /* red for small text on dark backgrounds */
  --red-tint: #fdecec;

  /* Neutrals */
  --ink-900: #0d1116;
  --ink-800: #11151b;
  --ink-700: #171c24;
  --ink-600: #202733;
  --ink-500: #2c3542;
  --paper: #f7f5f2;
  --paper-2: #efebe6;
  --white: #ffffff;
  --text: #171c24;
  --text-muted: #555e6b;
  --on-dark: #f3f4f6;
  --on-dark-muted: #a9b1bd;
  --line: #e4dfd8;
  --line-dark: rgba(255, 255, 255, 0.09);

  /* Type */
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Shape & depth */
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(13, 17, 22, 0.06), 0 2px 8px rgba(13, 17, 22, 0.05);
  --shadow: 0 2px 6px rgba(13, 17, 22, 0.05), 0 12px 32px -8px rgba(13, 17, 22, 0.14);
  --shadow-lg: 0 4px 10px rgba(13, 17, 22, 0.06), 0 30px 60px -20px rgba(13, 17, 22, 0.32);
  --shadow-red: 0 10px 30px -10px rgba(215, 31, 38, 0.6);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 68px;
  --gutter: 20px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 8.5vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 5.5vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code { font-size: 0.9em; background: var(--paper-2); padding: 0.1em 0.4em; border-radius: 6px; }

.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;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--white); color: var(--ink-900); padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.section-dark :focus-visible, .page-hero :focus-visible, .hero :focus-visible,
.site-header :focus-visible, .mobile-menu :focus-visible, .site-footer :focus-visible, .cta-card :focus-visible { outline-color: var(--white); }

.icon { width: 1.25em; height: 1.25em; flex: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 860px; }
.center { text-align: center; margin-top: 40px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; letter-spacing: -0.005em;
  border-radius: 999px; border: 1.5px solid transparent; text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn .icon { width: 1.2em; height: 1.2em; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary { background: var(--red); color: var(--white); box-shadow: var(--shadow-red); }
.btn-primary:hover { background: #e2262d; box-shadow: 0 16px 36px -12px rgba(215, 31, 38, 0.75); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); color: var(--white); border-color: rgba(255, 255, 255, 0.22); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.4); }
.btn-ghost .icon:last-child { transition: transform 0.25s var(--ease); }
.btn-ghost:hover .icon:last-child { transform: translateX(3px); }
.btn-ghost-wa { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.22); box-shadow: none; }
.btn-outline { background: var(--white); color: var(--ink-800); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: var(--ink-800); }
.btn-soft { background: var(--ink-800); box-shadow: none; }
.btn-soft:hover { background: var(--red); box-shadow: var(--shadow-red); }
.btn-sm { min-height: 46px; padding: 0 20px; font-size: 0.95rem; }
.btn-lg { min-height: 58px; padding: 0 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.actions .btn { flex: 1 1 auto; }
@media (min-width: 560px) { .actions .btn { flex: 0 0 auto; } }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none; color: var(--ink-800);
  padding: 6px 0;
}
.text-link .icon { width: 1.05em; height: 1.05em; transition: transform 0.25s var(--ease); }
.text-link:hover { color: var(--red); }
.text-link:hover .icon:last-child { transform: translateX(3px); }
.text-link-wa { color: var(--red-deep); }
.text-link-wa:hover .icon { transform: none; }

/* ---------- Eyebrows & heads ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--red-deep); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.section-dark .eyebrow, .page-hero .eyebrow, .hero .eyebrow, .cta-card .eyebrow { color: var(--red-soft); }

.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { color: var(--text-muted); font-size: 1.1rem; line-height: 1.6; }
.section-dark .section-head p { color: var(--on-dark-muted); }
.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; max-width: none; }
.section-head-row > div:first-child { max-width: 640px; }
/* Phones: stack the heading above the arrows. Side-by-side flex here made iPhone Safari draw the intro line over itself. */
@media (max-width: 767px) {
  .section-head-row { display: block; }
  .section-head-row .carousel-nav { margin-top: 20px; }
}
.section-head-row > div:first-child { flex: 1 1 320px; min-width: 0; }

.lead { font-size: 1.15rem; color: var(--on-dark-muted); max-width: 60ch; }
.lead-dark { font-size: 1.1rem; color: var(--text-muted); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; position: relative; }
.section-tint { background: var(--paper-2); }
.section-dark {
  background: var(--ink-800); color: var(--on-dark); overflow: hidden; isolation: isolate;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.section-dark + .section-dark { border-radius: 0; }
.section-dark + .section:not(.section-dark) { margin-top: -28px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--paper); z-index: 1; }

.glow {
  position: absolute; z-index: -1; pointer-events: none;
  width: 900px; height: 900px; border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 31, 38, 0.38) 0%, rgba(215, 31, 38, 0.1) 35%, transparent 65%);
  top: -420px; right: -380px; filter: blur(10px);
}
.glow-left { left: -500px; right: auto; top: 10%; opacity: 0.6; }
.glow-right { right: -520px; top: 0; opacity: 0.7; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 17, 22, 0.78);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
  color: var(--white);
}
.site-header.is-scrolled { background: rgba(13, 17, 22, 0.92); border-bottom-color: var(--line-dark); box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.5); }
.header-inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }

.brand { text-decoration: none; display: inline-flex; flex: none; }
/* "Driving school" is centred on "LDSchool" alone: LTD sits outside the box, and each line gives back its trailing letter-spacing */
.wordmark { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; }
.wm-top { font-family: var(--font-head); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.035em; color: var(--white); display: flex; align-items: flex-start; position: relative; margin-right: 0.035em; }
.wm-red { color: var(--red); }
.wm-ltd { position: absolute; left: 100%; top: 2px; color: var(--red); font-size: 0.42em; letter-spacing: 0.04em; margin-left: 3px; }
.wm-sub { font-family: var(--font-head); font-weight: 600; font-size: 0.56rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--on-dark-muted); margin-top: 5px; margin-right: -0.34em; }

.main-nav { display: none; margin-left: auto; }
.main-nav ul { display: flex; gap: 2px; }
.nav-link {
  display: block; padding: 8px 12px; border-radius: 999px;
  font-size: 0.92rem; font-weight: 500; color: var(--on-dark-muted); text-decoration: none; white-space: nowrap;
  transition: color 0.2s, background-color 0.2s;
}
.nav-link:hover { color: var(--white); background: rgba(255, 255, 255, 0.06); }
.nav-link[aria-current="page"] { color: var(--white); background: rgba(255, 255, 255, 0.1); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-wa { display: none; }
.header-actions .social-header { display: none; }

.menu-toggle {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line-dark); cursor: pointer;
}
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-close { display: block; }
.menu-open, .menu-close { line-height: 0; }

.mobile-menu {
  /* Sits outside the header: its blur effect would otherwise squash this to the header height on iPhone */
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: var(--ink-900); padding: 20px var(--gutter) 32px; overflow-y: auto;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  opacity: 0; transform: translateY(-8px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-link {
  display: block; padding: 14px 4px; font-family: var(--font-head); font-size: 1.5rem; font-weight: 700;
  color: var(--white); text-decoration: none; border-bottom: 1px solid var(--line-dark); letter-spacing: -0.02em;
}
.mobile-link[aria-current="page"] { color: var(--red-soft); }
.mobile-menu-foot { display: grid; gap: 12px; }
.mobile-menu-foot .social { justify-content: center; margin-top: 8px; }
body.menu-open { overflow: hidden; }
body.menu-open .float-wa { display: none; }

@media (min-width: 1100px) {
  .main-nav { display: block; }
  .menu-toggle, .mobile-menu { display: none !important; }
  .header-actions { margin-left: 8px; }
  .header-wa { display: inline-flex; }
}
@media (min-width: 1280px) { .header-actions .social-header { display: flex; } }

/* ---------- Social ---------- */
.social { display: flex; gap: 8px; }
.social a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  color: var(--on-dark-muted); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-dark);
  transition: color 0.2s, background-color 0.2s, transform 0.25s var(--ease);
}
.social a:hover { color: var(--white); background: var(--red); transform: translateY(-2px); }
.social .icon { width: 18px; height: 18px; }
.social-header a { width: 36px; height: 36px; }
.social-header .icon { width: 16px; height: 16px; }

/* ---------- Phone line ---------- */
.phone-line { margin-top: 22px; }
.hero-visual .phone-line { margin-top: 44px; text-align: center; }
.phone-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; text-decoration: none; letter-spacing: -0.01em;
}
.phone-link .icon { color: var(--red); }
.phone-link:hover { color: var(--red); }
.phone-note { font-size: 0.92rem; color: var(--text-muted); margin: 4px 0 0; }
.on-dark .phone-link { color: var(--white); }
.on-dark .phone-link .icon { color: var(--red-soft); }
.on-dark .phone-link:hover { color: var(--red-soft); }
.on-dark .phone-note { color: var(--on-dark-muted); }

/* ---------- Home hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(120% 80% at 0% 0%, #1b222c 0%, var(--ink-800) 45%, var(--ink-900) 100%);
  color: var(--on-dark); padding: 48px 0 120px;
  margin-top: calc(-1 * var(--header-h)); padding-top: calc(var(--header-h) + 48px);
}
.hero h1 { color: var(--white); }
.hero h1 .accent {
  display: block;
  background: linear-gradient(92deg, #ff4a50 0%, var(--red) 60%, #ff7a5c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-road {
  position: absolute; inset: auto 0 0 0; height: 140px; z-index: -1; opacity: 0.35;
  background:
    linear-gradient(to top, rgba(13, 17, 22, 1), transparent),
    repeating-linear-gradient(90deg, transparent 0 60px, rgba(255, 255, 255, 0.25) 60px 110px) center 70% / 100% 3px no-repeat;
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero-visual { position: relative; max-width: 640px; margin: 0 auto; width: 100%; }
.hero-photo {
  border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--line-dark);
  transform: rotate(1.5deg);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero-cards { display: grid; gap: 12px; margin-top: 28px; }
@media (min-width: 540px) { .hero-cards { grid-template-columns: 1fr 1fr; } }
.float-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.96); color: var(--text); box-shadow: var(--shadow-lg);
  font-size: 0.85rem; line-height: 1.35;
}
.float-card strong { display: block; font-family: var(--font-head); font-size: 0.95rem; }
.float-card span:not(.float-icon) { color: var(--text-muted); }
.float-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--red-tint); color: var(--red); flex: none; }

@media (min-width: 960px) {
  .hero { padding-bottom: 150px; padding-top: calc(var(--header-h) + 72px); }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .hero-visual { margin-top: 44px; }
}

/* ---------- Highlights (overlaps hero) ---------- */
.highlights-wrap { position: relative; z-index: 2; margin-top: -72px; }
.highlights {
  display: grid; gap: 1px; background: var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.highlights li { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; padding: 20px; background: var(--white); }
.highlights strong { display: block; font-family: var(--font-head); font-size: 1rem; line-height: 1.3; }
.highlights span:not(.h-icon) { font-size: 0.9rem; color: var(--text-muted); }
.h-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--red-tint); color: var(--red); flex: none; }
@media (min-width: 600px) { .highlights { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .highlights { grid-template-columns: repeat(4, 1fr); } .highlights li { padding: 26px 24px; } }

/* ---------- Service cards (home) ---------- */
.service-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .service-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .service-grid { grid-template-columns: repeat(4, 1fr); } }
.service-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-img { aspect-ratio: 16 / 10.5; overflow: hidden; background: var(--ink-700); }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.service-card:hover .service-img img { transform: scale(1.05); }
.service-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.service-body p { color: var(--text-muted); font-size: 0.97rem; }
.service-links { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-top: 8px; border-top: 1px solid var(--line); }

/* ---------- Manual / automatic ---------- */
.trans-grid { display: grid; gap: 24px; }
@media (min-width: 880px) { .trans-grid { grid-template-columns: 1fr 1fr; } }
.trans-card {
  display: grid; grid-template-columns: 1fr; background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.trans-img { aspect-ratio: 16 / 9; background: var(--ink-700); }
.trans-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.trans-body { padding: 26px; }
@media (min-width: 520px) {
  .trans-card { grid-template-columns: 0.8fr 1.2fr; }
  .trans-img { aspect-ratio: auto; min-height: 100%; }
}
.check-list { display: grid; gap: 10px; margin-bottom: 22px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.98rem; }
.check-list .icon { color: var(--white); background: var(--red); border-radius: 50%; padding: 3px; width: 22px; height: 22px; margin-top: 2px; stroke-width: 2.6; }
.dot-list { display: grid; gap: 10px; }
.dot-list li { position: relative; padding-left: 20px; font-size: 0.98rem; }
.dot-list li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--red); }

/* ---------- Why choose ---------- */
.reason-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .reason-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .reason-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.reason {
  padding: 26px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line-dark);
  transition: transform 0.35s var(--ease), border-color 0.35s, background-color 0.35s;
}
.reason:hover { transform: translateY(-4px); border-color: rgba(255, 92, 97, 0.35); }
.reason h3 { color: var(--white); margin-top: 18px; }
.reason p { color: var(--on-dark-muted); font-size: 0.97rem; margin: 0; }
.r-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(140deg, var(--red), var(--red-deep)); color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(215, 31, 38, 0.8);
}

/* ---------- Reviews ---------- */
.reviews-section { overflow: hidden; }
.carousel-nav { display: flex; gap: 10px; }
.round-btn {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.25s var(--ease);
}
.round-btn:hover { background: var(--ink-800); color: var(--white); transform: translateY(-2px); }
.carousel-toggle .icon:last-child, .carousel-toggle.is-paused .icon:first-child { display: none; }
.carousel-toggle.is-paused .icon:last-child { display: block; }
.round-btn:disabled { opacity: 0.4; cursor: default; transform: none; background: var(--white); color: inherit; }
.carousel {
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 8px 0 28px; outline-offset: -3px;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel-track {
  display: flex; gap: 18px; width: max-content;
  padding: 0 max(var(--gutter), calc((100vw - 1200px) / 2 + var(--gutter)));
}
.review {
  scroll-snap-align: center; width: min(84vw, 380px); flex: none;
  display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow);
  position: relative;
}
@media (min-width: 700px) { .review { scroll-snap-align: start; } }
.review-quote { color: var(--red); opacity: 0.9; }
.review-quote .icon { width: 34px; height: 34px; }
.review blockquote { margin: 14px 0 22px; font-size: 1.02rem; line-height: 1.6; flex: 1; }
.review blockquote p { margin: 0; }
.review-by { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.review-by strong { display: block; font-family: var(--font-head); font-size: 0.95rem; }
.review-by span:not(.avatar) { font-size: 0.85rem; color: var(--text-muted); }
.avatar {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: linear-gradient(140deg, var(--ink-600), var(--ink-800)); color: var(--white);
  font-family: var(--font-head); font-weight: 700;
}

/* ---------- Free courses + video ---------- */
.free-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .free-grid { grid-template-columns: 0.9fr 1.1fr; gap: 64px; } }
.free-section p:not(.eyebrow):not(.lead) { color: var(--on-dark-muted); }
.free-section h2 { color: var(--white); }
.video {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: var(--ink-900); box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--line-dark);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-btn { all: unset; position: absolute; inset: 0; cursor: pointer; display: block; }
.video-btn img { width: 100%; height: 100%; object-fit: cover; opacity: 0.82; transition: opacity 0.3s, transform 0.6s var(--ease); }
.video-btn:hover img { opacity: 1; transform: scale(1.03); }
.video-btn:focus-visible { outline: 3px solid var(--white); outline-offset: -6px; border-radius: var(--radius); }
.video-play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%;
  background: var(--red); color: var(--white); box-shadow: 0 0 0 10px rgba(215, 31, 38, 0.25), var(--shadow-red);
  transition: transform 0.3s var(--ease);
}
.video-play .icon { width: 30px; height: 30px; margin-left: 4px; }
.video-btn:hover .video-play { transform: scale(1.08); }
.video-empty { display: grid; place-items: center; text-align: center; color: var(--on-dark-muted); background: linear-gradient(140deg, var(--ink-700), var(--ink-900)); }
.video-empty .icon { width: 40px; height: 40px; margin: 0 auto 8px; color: var(--red-soft); }
.video-empty p { margin: 0; font-weight: 600; font-size: 0.95rem; }
.video-caption { margin-top: 16px; font-size: 0.95rem; }
.video-caption strong { color: var(--white); }

.video-grid { display: grid; gap: 24px; }
@media (min-width: 640px) { .video-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }
.video-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.video-card .video { border-radius: 0; box-shadow: none; }
.video-card-body { padding: 20px 22px 24px; }
.video-card-body p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* ---------- Areas ---------- */
.areas-block { display: grid; gap: 28px; align-items: center; }
.areas-block p:not(.eyebrow) { color: var(--text-muted); }
@media (min-width: 900px) { .areas-block { grid-template-columns: 0.9fr 1.1fr; gap: 56px; } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line); font-weight: 600; font-size: 0.95rem; box-shadow: var(--shadow-sm);
}
.chips .icon { width: 16px; height: 16px; color: var(--red); }
.chips .chip-muted { background: transparent; box-shadow: none; border-style: dashed; color: var(--text-muted); font-weight: 500; }
.chips-sm li { padding: 6px 12px; font-size: 0.88rem; }

/* ---------- CTA band ---------- */
.cta-section { padding-top: 40px; }
.cta-card {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 48px 24px; border-radius: var(--radius-lg); text-align: center;
  background: linear-gradient(160deg, var(--ink-700) 0%, var(--ink-900) 100%); color: var(--on-dark);
  box-shadow: var(--shadow-lg);
}
.cta-card h2 { color: var(--white); max-width: 720px; margin-left: auto; margin-right: auto; }
.cta-card > p { color: var(--on-dark-muted); max-width: 600px; margin: 0 auto; font-size: 1.08rem; }
.cta-card .actions { justify-content: center; }
.cta-card .eyebrow { justify-content: center; }
.cta-glow {
  position: absolute; z-index: -1; inset: auto -20% -60% -20%; height: 120%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(215, 31, 38, 0.45), transparent 70%);
}
@media (min-width: 768px) { .cta-card { padding: 72px 48px; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + 56px) 0 96px;
  background: radial-gradient(120% 90% at 0% 0%, #1b222c 0%, var(--ink-800) 50%, var(--ink-900) 100%);
  color: var(--on-dark);
}
.page-hero h1 { color: var(--white); font-size: clamp(2.1rem, 7vw, 3.6rem); }
.page-hero + .section { margin-top: -40px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--paper); z-index: 1; }
.page-hero-sm { padding-bottom: 80px; }
.page-hero-full { min-height: 80vh; display: flex; align-items: center; }
@media (min-width: 960px) { .page-hero { padding-top: calc(var(--header-h) + 88px); padding-bottom: 120px; } }

/* ---------- Services page ---------- */
.service-list { display: grid; gap: 40px; }
.service-row {
  display: grid; background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.service-row-img { position: relative; aspect-ratio: 16 / 10; background: var(--ink-700); }
.service-row-img img { width: 100%; height: 100%; object-fit: cover; }
.service-num {
  position: absolute; left: 18px; top: 18px; padding: 6px 14px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 800; font-size: 0.95rem; letter-spacing: 0.05em;
  background: rgba(13, 17, 22, 0.75); color: var(--white); backdrop-filter: blur(6px);
}
.service-row-body { padding: 28px 24px 32px; }
.list-title { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--red-deep); margin-bottom: 14px; }
.two-lists { display: grid; gap: 26px; margin: 26px 0 28px; }
@media (min-width: 640px) { .two-lists { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) {
  .service-row { grid-template-columns: 0.85fr 1.15fr; }
  .service-row-img { aspect-ratio: auto; min-height: 100%; }
  .service-row:nth-child(even) .service-row-img { order: 2; }
  .service-row-body { padding: 44px 44px 44px; }
}

/* ---------- Prices ---------- */
.price-intro, .feature-panel, .contact-main {
  display: grid; gap: 20px; padding: 30px 24px; border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.price-intro p:not(.eyebrow), .feature-panel p:not(.eyebrow), .contact-main p:not(.eyebrow) { color: var(--text-muted); }
@media (min-width: 760px) {
  .price-intro, .feature-panel { grid-template-columns: auto 1fr; gap: 32px; padding: 44px; }
}
.pi-icon, .fp-icon {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px;
  background: linear-gradient(140deg, var(--red), var(--red-deep)); color: var(--white); box-shadow: var(--shadow-red);
}
.pi-icon .icon, .fp-icon .icon { width: 30px; height: 30px; }
.price-grid { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 860px) { .price-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.price-card {
  position: relative; display: flex; flex-direction: column; padding: 30px 26px;
  border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.price-card p { color: var(--text-muted); font-size: 0.97rem; }
.price-card .btn { margin-top: auto; }
.price-tag { font-family: var(--font-head); font-weight: 800; font-size: 0.85rem !important; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-800) !important; margin: 8px 0 22px; }
.price-card-featured { background: var(--ink-800); color: var(--on-dark); border-color: var(--ink-800); box-shadow: var(--shadow-lg); }
.price-card-featured h3 { color: var(--white); }
.price-card-featured p { color: var(--on-dark-muted); }
.price-card-featured .price-tag { color: var(--white) !important; }
.price-card-featured :focus-visible { outline-color: var(--white); }
.badge {
  position: absolute; top: -13px; left: 26px; padding: 5px 12px; border-radius: 999px;
  background: var(--red); color: var(--white); font-family: var(--font-head); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em;
}
.price-card h3 { font-size: 1.15rem; }
.price-amount { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.6rem, 6vw, 3.2rem); line-height: 1; letter-spacing: -0.02em; color: var(--ink-900) !important; margin-top: 16px; }
.price-unit { font-size: 0.9rem !important; margin: 6px 0 22px; }
.price-card .check-list { margin-bottom: 0; padding-top: 20px; border-top: 1px solid var(--line); }
.price-card-featured .price-amount { color: var(--white) !important; }
.price-card-featured .check-list { border-top-color: var(--line-dark); }
.price-footnote { margin-top: 28px; text-align: center; color: var(--text-muted); }
.video-more { margin-top: 48px; text-align: center; }
.video-more p { color: var(--text-muted); margin-bottom: 18px; }
.rules-grid { display: grid; gap: 16px; }
@media (min-width: 860px) { .rules-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.rule-card { padding: 28px 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.rule-card h3 { font-size: 1.1rem; margin: 16px 0 8px; }
.rule-card p { color: var(--text-muted); }
.assurances { display: grid; gap: 12px; margin-top: 32px; }
.assurances li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.assurances .icon { color: var(--red); }
@media (min-width: 860px) { .assurances { grid-template-columns: repeat(3, 1fr); justify-items: center; } }

/* ---------- About ---------- */
.story-grid { display: grid; gap: 48px; align-items: center; }
.story-copy p:not(.eyebrow) { color: var(--text-muted); }
@media (min-width: 960px) { .story-grid { grid-template-columns: 1.1fr 0.9fr; gap: 72px; } }
.story-visual { position: relative; }
.story-photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3 / 4; box-shadow: var(--shadow-lg); background: var(--ink-700); }
.story-photo img { width: 100%; height: 100%; object-fit: cover; }
.stats {
  position: relative; margin: -48px 16px 0; display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.stats li { padding: 18px 10px; text-align: center; }
.stats li + li { border-left: 1px solid var(--line); }
.stats strong { display: block; font-family: var(--font-head); font-size: clamp(1rem, 3.6vw, 1.3rem); line-height: 1.2; }
.stats span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); font-weight: 600; }
.team-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } }
.team-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.team-card img { aspect-ratio: 5 / 6; object-fit: cover; width: 100%; }
.team-card h3 { margin: 18px 20px 4px; }
.team-card p { margin: 0 20px 20px; color: var(--text-muted); font-size: 0.95rem; }
.placeholder-box {
  display: flex; gap: 16px; align-items: flex-start; padding: 24px; border-radius: var(--radius);
  border: 2px dashed #cfc7bd; background: var(--white); color: var(--text-muted);
}
.placeholder-box p { margin: 0; }
.ph-icon { color: var(--red); }
.ph-icon .icon { width: 32px; height: 32px; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq {
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: box-shadow 0.3s, border-color 0.3s;
  interpolate-size: allow-keywords;
}
.faq[open] { box-shadow: var(--shadow); border-color: #d8d1c8; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em;
  border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq-icon {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: var(--paper-2); color: var(--ink-800); transition: transform 0.35s var(--ease), background-color 0.2s, color 0.2s;
}
.faq-icon .icon { width: 18px; height: 18px; }
.faq[open] .faq-icon { transform: rotate(45deg); background: var(--red); color: var(--white); }
.faq::details-content { block-size: 0; overflow: clip; transition: block-size 0.4s var(--ease), content-visibility 0.4s allow-discrete; }
.faq[open]::details-content { block-size: auto; }
.faq-body { padding: 0 22px 22px; color: var(--text-muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 32px; } .contact-main { padding: 44px; position: sticky; top: calc(var(--header-h) + 24px); } }
.contact-main .pi-icon { margin-bottom: 4px; }
.contact-main h2 { margin-bottom: 0; }
.small-note { font-size: 0.88rem; color: var(--text-muted); margin: 8px 0 0; }
.contact-cards { display: grid; gap: 16px; }
.info-card {
  display: flex; gap: 16px; align-items: flex-start; padding: 24px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.info-card h3 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--red-deep); margin-bottom: 6px; }
.info-card p { color: var(--text-muted); margin-bottom: 10px; }
.info-big { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--ink-800) !important; text-decoration: none; margin-bottom: 6px !important; }
a.info-big:hover { color: var(--red) !important; }
.info-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--red-tint); color: var(--red); flex: none; }
.steps { display: grid; gap: 16px; counter-reset: none; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.step p { color: var(--text-muted); margin: 0; }
.step-num { display: inline-block; font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; letter-spacing: -0.04em; color: var(--red); line-height: 1; margin-bottom: 14px; }
.ready {
  display: grid; gap: 20px; align-items: center; margin-top: 32px; padding: 30px 26px; border-radius: var(--radius-lg);
  background: var(--ink-800); color: var(--on-dark); box-shadow: var(--shadow-lg);
}
.ready h2 { color: var(--white); font-size: clamp(1.4rem, 4vw, 1.9rem); margin-bottom: 6px; }
.ready p { color: var(--on-dark-muted); margin: 0; }
.ready :focus-visible { outline-color: var(--white); }
@media (min-width: 760px) { .ready { grid-template-columns: 1fr auto; padding: 36px 44px; } }

/* ---------- Legal ---------- */
.legal h2 { font-size: 1.35rem; margin-top: 36px; }
.legal p { color: #3d4550; }
.draft-banner {
  padding: 16px 20px; border-radius: var(--radius-sm); background: #fff4e5; border: 1px solid #f3c98b; color: #6b4300;
}
.legal-cta { margin-top: 40px; padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.legal-cta h2 { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: var(--on-dark-muted); padding: 72px 0 110px; font-size: 0.95rem; margin-top: 40px; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.3fr 0.7fr 1fr; gap: 56px; } .site-footer { padding-bottom: 40px; } }
.footer-brand p { margin: 20px 0 22px; max-width: 42ch; }
.footer-brand .social { margin-top: 22px; }
.footer-title { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--white); margin: 0 0 16px; }
.footer-title:not(:first-child) { margin-top: 28px; }
.footer-links { display: grid; gap: 4px; }
.footer-links a, .footer-contact a, .footer-bottom a { text-decoration: none; transition: color 0.2s; }
.footer-links a { display: inline-block; padding: 5px 0; }
.footer-links a:hover, .footer-contact a:hover, .footer-bottom a:hover { color: var(--white); }
.footer-contact { display: grid; gap: 10px; }
.footer-contact li { display: flex; align-items: center; gap: 10px; }
.footer-contact .icon { color: var(--red-soft); width: 18px; height: 18px; }
.footer-contact .footer-address { align-items: flex-start; }
.footer-address .icon { margin-top: 3px; flex: none; }
.footer-address address { font-style: normal; line-height: 1.55; }
.footer-note { margin: 12px 0 0; font-size: 0.88rem; }
.footer-areas { margin: 0; line-height: 1.8; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 0.85rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; gap: 20px; }

/* ---------- Floating WhatsApp ---------- */
.float-wa {
  position: fixed; z-index: 40; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px 0 18px;
  border-radius: 999px; background: #1fae54; color: var(--white); text-decoration: none;
  font-family: var(--font-head); font-weight: 700; font-size: 0.98rem;
  box-shadow: 0 14px 30px -10px rgba(10, 80, 40, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  transition: transform 0.3s var(--ease), opacity 0.3s, box-shadow 0.3s;
}
.float-wa .icon { width: 24px; height: 24px; }
.float-wa:hover { transform: translateY(-3px); }
.float-wa:focus-visible { outline-color: var(--ink-900); }
.float-wa.is-hidden { opacity: 0; transform: translateY(20px); pointer-events: none; }
@media (min-width: 860px) { .float-wa { right: 24px; bottom: 24px; } }

/* ---------- Scroll reveal (only when JavaScript is running) ---------- */
.js .reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: calc(var(--d, 0) * 70ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
/* The top of the page animates in straight away, without waiting for scrolling. */
.js .hero .reveal, .js .page-hero .reveal { opacity: 1; transform: none; transition: none; animation: rise 0.7s var(--ease) both; animation-delay: calc(var(--d, 0) * 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Respect "reduce motion" ---------- */
@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; transition-delay: 0s !important;
  }
  .js .reveal, .js .hero .reveal, .js .page-hero .reveal { opacity: 1; transform: none; animation: none; }
  .hero-photo { transform: none; }
}

/* ---------- Larger screens: more breathing room ---------- */
@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 76px; }
  .section { padding: 112px 0; }
  .section-head { margin-bottom: 56px; }
}
