/* =========================================================
   Hesed Rabbonny Driving School: landing page (Pinterest-style)
   ========================================================= */
:root {
  --red: #e60023;
  --red-dark: #ad081b;
  --ink: #1c1a17;
  --ink-2: #5f5b54;
  --paper: #f7f4ee;
  --paper-2: #efe9df;
  --card: #ffffff;
  --line: rgba(28, 26, 23, 0.1);
  --accent: #f4c9b8;          /* changes with hero topic */
  --radius-lg: 32px;
  --radius: 20px;
  --shadow: 0 20px 50px -20px rgba(28, 26, 23, 0.35);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
h2 em { font-style: italic; font-weight: 500; color: var(--red); }
h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
:focus-visible { outline: 3px solid #0074e8; outline-offset: 3px; border-radius: 8px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-2); margin: 0 0 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; transform: translateY(-2px); }
.btn--ghost { background: var(--paper-2); }
.btn--ghost:hover { background: #e5ddd0; }
.btn--link { padding: 12px 6px; font-weight: 600; color: var(--ink); }
.btn--link:hover { color: var(--red); }
.btn--lg { padding: 16px 28px; font-size: 1.05rem; }
.btn--sm { padding: 9px 16px; font-size: 0.88rem; }
.btn--block { width: 100%; padding: 14px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.9);
  display: grid; place-items: center; font-size: 1.3rem; line-height: 1;
  box-shadow: 0 4px 14px rgba(0,0,0,.15); transition: transform .2s var(--ease);
}
.icon-btn:hover { transform: scale(1.08); }
#play { font-size: .75rem; letter-spacing: -2px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 238, 0.75);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  transition: box-shadow .3s, background .3s;
}
.nav.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(0,0,0,.25); background: rgba(247,244,238,.92); }
.nav__inner { max-width: var(--max); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--serif); font-weight: 700; font-size: 1.35rem; color: var(--red); }
.brand__mark { width: 30px; height: 30px; }
.brand--light { color: #fff; }
.nav__links { display: flex; gap: 6px; }
.nav__links a { padding: 8px 14px; border-radius: 999px; font-weight: 500; color: var(--ink-2); transition: background .2s, color .2s; }
.nav__links a:hover { background: var(--paper-2); color: var(--ink); }
.nav__actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.nav__burger { display: none; width: 42px; height: 42px; border-radius: 50%; position: relative; }
.nav__burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.nav__burger span:first-child { top: 16px; } .nav__burger span:last-child { top: 24px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto; padding: 56px 24px 72px;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
  min-height: min(calc(100vh - 72px), 860px);
}
.hero__title { font-size: clamp(2.8rem, 6.4vw, 5.6rem); }
.rotator { display: block; color: var(--red); font-style: italic; font-weight: 500; min-height: 1.1em; }
.rotator__word { display: inline-block; transition: transform .55s var(--ease), opacity .45s, filter .45s; }
.rotator__word.is-out { transform: translateY(40%); opacity: 0; filter: blur(6px); }
.hero__lead { font-size: 1.15rem; color: var(--ink-2); max-width: 30em; margin: 24px 0 28px; }

.search {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border-radius: 999px; padding: 6px 6px 6px 18px;
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -16px rgba(0,0,0,.3);
  max-width: 480px; transition: box-shadow .2s;
}
.search:focus-within { box-shadow: 0 0 0 3px rgba(230,0,35,.25), 0 12px 30px -16px rgba(0,0,0,.3); }
.search svg { width: 20px; height: 20px; color: var(--ink-2); flex: none; }
.search input { flex: 1; border: 0; outline: 0; font: inherit; background: transparent; min-width: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 32px; }
.chip {
  position: relative; overflow: hidden;
  padding: 9px 16px; border-radius: 999px; background: var(--paper-2);
  font-size: .9rem; font-weight: 500; color: var(--ink-2);
  transition: background .25s, color .25s;
}
.chip:hover { color: var(--ink); }
.chip[aria-selected="true"] { background: var(--ink); color: #fff; }
.chip__progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--red); }
.chip[aria-selected="true"] .chip__progress { animation: progress var(--dur, 4500ms) linear forwards; }
.hero.is-paused .chip__progress { animation-play-state: paused; }
@keyframes progress { to { width: 100%; } }

.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.hero__stage { position: relative; aspect-ratio: 1 / 1.05; max-width: 560px; justify-self: center; width: 100%; }
.blob {
  position: absolute; inset: 8% 4% 4% 10%;
  background: var(--accent); border-radius: 42% 58% 55% 45% / 48% 40% 60% 52%;
  transition: background .8s var(--ease);
  animation: morph 14s ease-in-out infinite;
}
@keyframes morph {
  50% { border-radius: 58% 42% 40% 60% / 40% 58% 42% 60%; transform: rotate(8deg) scale(1.03); }
}
.card {
  position: absolute; margin: 0; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); background: var(--paper-2);
  transition: transform .8s var(--ease), opacity .5s;
}
.card img { width: 100%; height: 100%; object-fit: cover; }
.card--front { width: 54%; aspect-ratio: 3/4; left: 6%; top: 12%; transform: rotate(-5deg); z-index: 2; }
.card--back  { width: 46%; aspect-ratio: 3/4; right: 4%; top: 30%; transform: rotate(6deg); }
.hero__stage.is-swapping .card--front { transform: rotate(-12deg) translate(-12%, 6%) scale(.92); opacity: 0; }
.hero__stage.is-swapping .card--back { transform: rotate(14deg) translate(12%, 8%) scale(.92); opacity: 0; }

.float-pill, .float-tag {
  position: absolute; z-index: 3; background: var(--card); border-radius: 999px;
  padding: 10px 16px; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow);
  animation: bob 5s ease-in-out infinite;
}
.float-pill { right: 6%; top: 10%; }
.float-pill__icon { color: var(--red); }
.float-tag { left: 0; bottom: 10%; animation-delay: -2.5s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: var(--paper); overflow: hidden; padding: 18px 0; transform: rotate(-1.2deg); margin: 0 -2vw; }
.marquee__track { display: flex; gap: 36px; width: max-content; animation: scroll 40s linear infinite; font-family: var(--serif); font-style: italic; font-size: 1.6rem; }
.marquee__track span:nth-child(even) { color: var(--red); font-style: normal; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { position: relative; }
.section-head { max-width: var(--max); margin: 0 auto 48px; padding: 0 24px; text-align: center; }
.section-head__sub { color: var(--ink-2); font-size: 1.1rem; max-width: 36em; margin: 18px auto 0; }

.discover { padding: 120px 0 60px; }
.feature {
  max-width: var(--max); margin: 0 auto 96px; padding: 0 24px;
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center;
}
.feature:nth-of-type(even) { grid-template-columns: 1.15fr 0.85fr; }
.feature:nth-of-type(even) .feature__text { order: 2; }
.feature__text p { color: var(--ink-2); font-size: 1.1rem; margin: 16px 0 28px; max-width: 26em; }
.step { display: inline-block; font-family: var(--serif); font-size: 1rem; font-weight: 700; color: var(--red); border: 1.5px solid currentColor; border-radius: 999px; padding: 2px 12px; margin-bottom: 18px; }

/* search collage */
.collage--search {
  position: relative; aspect-ratio: 1.15 / 1;
  background: #fffd92; border-radius: var(--radius-lg); overflow: hidden;
}
.collage--search .c { position: absolute; object-fit: cover; border-radius: 26px; box-shadow: var(--shadow); transition: transform .9s var(--ease), opacity .9s; }
.c1 { width: 22%; aspect-ratio: .82; top: 6%; right: 8%; }
.c2 { width: 25%; aspect-ratio: .72; top: 28%; left: 6%; }
.c3 { width: 34%; aspect-ratio: .65; top: 12%; left: 34%; }
.c4 { width: 20%; aspect-ratio: .64; bottom: 6%; right: 12%; }
.feature--search:not(.is-in) .c { opacity: 0; transform: translateY(30px) scale(.94); }
.feature--search.is-in .c2 { transition-delay: .1s; } .feature--search.is-in .c3 { transition-delay: .2s; } .feature--search.is-in .c4 { transition-delay: .3s; }
.type-pill {
  position: absolute; left: 22%; top: 52%; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  background: #fff; padding: 16px 24px; border-radius: 999px;
  font-weight: 700; color: #6e0f3c; font-size: clamp(.9rem, 1.6vw, 1.25rem);
  box-shadow: var(--shadow); min-width: 55%;
}
.type-pill svg { width: 22px; height: 22px; color: var(--ink); }
.caret { width: 2px; height: 1.2em; background: #6e0f3c; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* save bento */
.bento {
  display: grid; gap: 14px; padding: 18px;
  grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr);
  background: #ccf6e3; border-radius: var(--radius-lg); aspect-ratio: 1.15 / 1;
}
.tile { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 24px -14px rgba(0,0,0,.4); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile:hover img { transform: scale(1.06); }
.tile > span {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  color: #fff; font-weight: 600; font-size: .9rem; line-height: 1.2;
  text-shadow: 0 1px 12px rgba(0,0,0,.6);
}
.tile--hero { grid-column: 1 / 3; grid-row: 1 / 3; }
.tile--hero::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.tile__body { position: absolute; left: 18px; bottom: 18px; right: 18px; z-index: 1; color: #fff; }
.tile__body strong { display: block; font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 2rem); line-height: 1.05; margin-bottom: 10px; }
.mini { display: flex; gap: 6px; }
.mini img { width: 48px; height: 64px; border-radius: 10px; object-fit: cover; border: 2px solid rgba(255,255,255,.8); }
.bento .tile:nth-child(4) { grid-column: 1 / 2; }
.bento .tile:nth-child(5) { grid-column: 2 / 4; }
.bento .tile:nth-child(2) { grid-row: 1 / 2; }

/* shop */
.shop { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1.04 / 1; background: #ffe2eb; }
.shop__bg { width: 100%; height: 100%; object-fit: cover; transition: transform 6s linear; }
.feature--shop.is-in .shop__bg { transform: scale(1.06); }
.creator { position: absolute; left: 8%; bottom: 8%; display: flex; align-items: flex-end; gap: 16px; }
.creator__pin { position: relative; width: clamp(110px, 14vw, 180px); aspect-ratio: .56; }
.creator__pin > img:first-child { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); }
.creator__avatar { position: absolute; left: -18px; bottom: -18px; width: 56px; height: 56px; border-radius: 50%; border: 3px solid #fff; object-fit: cover; }
.creator__meta { color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.5); display: flex; flex-direction: column; }
.creator__meta strong { font-size: 1.1rem; }
.shop__tag { position: absolute; top: 7%; right: 7%; background: #fff; color: #c32f00; font-weight: 700; padding: 10px 18px; border-radius: 999px; box-shadow: var(--shadow); animation: bob 5s ease-in-out infinite; }

/* ---------- Tools tabs ---------- */
.tools { padding: 100px 0; background: var(--card); border-radius: 48px 48px 0 0; }
.tabs { max-width: var(--max); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.tabs__list { display: flex; flex-direction: column; gap: 10px; }
.tabs__list [role="tab"] {
  position: relative; overflow: hidden; text-align: left;
  padding: 22px 24px; border-radius: var(--radius);
  transition: background .25s; display: flex; flex-direction: column; gap: 4px;
}
.tabs__list [role="tab"] strong { font-family: var(--serif); font-size: 1.35rem; }
.tabs__list [role="tab"] span { color: var(--ink-2); }
.tabs__list [role="tab"]:hover { background: var(--paper); }
.tabs__list [role="tab"][aria-selected="true"] { background: var(--paper); }
.tabs__list .bar { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--red); transform: scaleY(0); transform-origin: top; }
.tabs__list [aria-selected="true"] .bar { animation: barfill 6s linear forwards; }
.tabs.is-paused .bar { animation-play-state: paused; }
@keyframes barfill { to { transform: scaleY(1); } }
.tabs__panel { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1; background: var(--paper); }
.tabs__panel img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, transform .6s var(--ease); }
.tabs__panel img.is-fading { opacity: 0; transform: scale(1.03); }

/* ---------- Boards slider ---------- */
.boards { padding: 100px 24px; background: linear-gradient(180deg, var(--card), var(--paper)); }
.slider { position: relative; max-width: 1140px; margin: 0 auto; aspect-ratio: 1140 / 600; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--paper-2); }
.slider__track { display: flex; height: 100%; transition: transform .9s var(--ease); }
.slide { flex: 0 0 100%; position: relative; }
.slide img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.slider__track { touch-action: pan-y; }
.slide__label {
  position: absolute; left: 32px; bottom: 32px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  padding: 14px 22px; border-radius: 18px;
}
.slide__label small { display: block; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.slide__label strong { font-family: var(--serif); font-size: 1.6rem; }
.slider__ui { position: absolute; right: 24px; bottom: 28px; display: flex; gap: 10px; align-items: center; }
.slider__dots { display: flex; gap: 6px; padding: 0 6px; }
.slider__dots button { width: 10px; height: 10px; border-radius: 999px; background: rgba(255,255,255,.6); transition: width .3s var(--ease), background .3s; }
.slider__dots button[aria-current="true"] { width: 28px; background: #fff; }

/* ---------- Masonry wall ---------- */
.wall { padding: 100px 24px; max-width: 1400px; margin: 0 auto; }
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filters button { padding: 9px 18px; border-radius: 999px; background: var(--paper-2); font-weight: 500; transition: background .2s, color .2s; }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.masonry { columns: 5 220px; column-gap: 16px; }
.pin { break-inside: avoid; margin: 0 0 16px; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); animation: pinIn .6s var(--ease) both; }
.pin img { width: 100%; height: auto; transition: transform .6s var(--ease), filter .3s; }
.pin:hover img { transform: scale(1.04); filter: brightness(.8); }
.pin__save {
  position: absolute; top: 12px; right: 12px; z-index: 1;
  background: var(--red); color: #fff; font-weight: 600; padding: 10px 16px; border-radius: 999px;
  opacity: 0; transform: translateY(-6px); transition: opacity .2s, transform .2s var(--ease), background .2s;
}
.pin__save.is-saved { background: var(--ink); opacity: 1; transform: none; }
.pin:hover .pin__save, .pin__save:focus-visible { opacity: 1; transform: none; }
.pin__cap { position: absolute; left: 12px; bottom: 12px; color: #fff; font-weight: 600; font-size: .9rem; opacity: 0; transition: opacity .2s; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.pin:hover .pin__cap { opacity: 1; }
.pin.is-hidden { display: none; }
@keyframes pinIn { from { opacity: 0; transform: translateY(20px); } }

/* ---------- Join ---------- */
.join { position: relative; padding: 120px 24px; overflow: hidden; color: #fff; }
.join__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.join::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,14,10,.82), rgba(20,14,10,.45)); z-index: 1; }
.join__inner { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.join__copy h2 { font-size: clamp(2.6rem, 6vw, 5rem); }
.join__copy p { font-size: 1.15rem; opacity: .85; max-width: 28em; margin-top: 20px; }
.signup { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: 36px 32px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); display: grid; gap: 14px; text-align: center; }
.signup__logo { width: 40px; height: 40px; color: var(--red); margin: 0 auto; }
.signup h3, .modal h3 { font-size: 1.9rem; }
.signup__sub { margin: -6px 0 6px; color: var(--ink-2); }
.signup label, .modal label { display: grid; gap: 6px; text-align: left; font-size: .85rem; font-weight: 600; }
.signup input, .modal input {
  font: inherit; font-weight: 400; padding: 12px 16px; border-radius: 16px;
  border: 2px solid #ddd; background: #fff; outline: 0; transition: border-color .2s; width: 100%;
}
.signup input:focus, .modal input:focus { border-color: #0074e8; }
.signup input.invalid { border-color: var(--red); }
.err { color: var(--red); font-weight: 500; min-height: 1em; font-size: .8rem; }
.pw { position: relative; }
.pw__toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 1rem; opacity: .6; }
.signup__fine { font-size: .75rem; color: var(--ink-2); margin: 0; }
.signup__fine a { font-weight: 700; color: var(--ink); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #d8d2c8; padding: 72px 24px 32px; }
.footer__inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { color: #fff; margin: 0 0 14px; font-size: .95rem; }
.footer a { display: block; padding: 4px 0; }
.footer a:hover { color: #fff; }
.footer .brand { font-size: 2rem; }
.footer__tag { font-family: var(--serif); font-style: italic; font-size: 1.2rem; }
.footer__copy { max-width: var(--max); margin: 48px auto 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }

/* ---------- Modal / toast ---------- */
.modal { border: 0; padding: 0; border-radius: var(--radius-lg); width: min(420px, 92vw); box-shadow: 0 40px 80px -20px rgba(0,0,0,.5); }
.modal::backdrop { background: rgba(20,16,12,.55); backdrop-filter: blur(4px); }
.modal[open] { animation: pop .35s var(--ease); }
.modal__card { padding: 36px 32px; display: grid; gap: 14px; text-align: center; position: relative; }
.modal__close { position: absolute; right: 16px; top: 12px; font-size: 1.8rem; line-height: 1; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, calc(100% + 48px)); visibility: hidden;
  background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 999px;
  font-weight: 600; z-index: 80; transition: transform .4s var(--ease), visibility 0s .4s;
  box-shadow: var(--shadow);
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform .4s var(--ease); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   Driving-school components
   ========================================================= */
.ico { width: 18px; height: 18px; flex: none; }
.hide-sm { display: inline; }

/* brand */
.brand { gap: 10px; }
.brand__badge {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--red); color: #fff; font-family: var(--sans); font-weight: 800; font-size: .95rem; letter-spacing: -.04em;
  transform: rotate(-6deg); box-shadow: 0 6px 16px -6px rgba(230,0,35,.6);
}
.brand__text { display: flex; flex-direction: column; line-height: 1; color: var(--ink); }
.brand__text small { font-family: var(--sans); font-size: .62rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); margin-top: 3px; }
.brand--light .brand__text, .brand--light .brand__text small { color: #fff; }
.btn--wa .ico { color: #25d366; }

/* hero extras */
.hero__meta { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--ink-2); font-size: .92rem; }
.hero__meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta .ico { color: var(--red); }
.hero__meta a:hover { color: var(--red); }
.card img { object-position: center 30%; }
.marquee__track span:first-child, .marquee__track span:nth-child(15) { font-style: normal; font-family: var(--sans); font-weight: 700; text-transform: uppercase; font-size: 1rem; letter-spacing: .14em; align-self: center; color: var(--paper); }

/* why */
.why { padding: 120px 24px 20px; }
.why__grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.discover { padding-top: 100px; }

/* planner (feature 02) */
.planner {
  background: #ccf6e3; border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 40px);
  display: grid; gap: 18px; aspect-ratio: 1.15 / 1; align-content: center;
}
.planner__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.planner__head strong { font-family: var(--serif); font-size: 1.6rem; }
.planner__head span { color: var(--ink-2); font-weight: 500; }
.planner__days { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.day { background: #fff; border-radius: 16px; padding: 12px 4px; text-align: center; font-size: .8rem; color: var(--ink-2); box-shadow: 0 6px 16px -12px rgba(0,0,0,.4); }
.day b { display: block; font-size: 1.35rem; color: var(--ink); font-family: var(--serif); }
.day.is-on { background: var(--ink); color: #ddd; } .day.is-on b { color: #fff; }
.planner__slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot { background: rgba(255,255,255,.7); border-radius: 999px; padding: 10px; text-align: center; font-weight: 600; font-size: .88rem; }
.slot.is-on { background: var(--red); color: #fff; box-shadow: 0 8px 20px -8px rgba(230,0,35,.7); }
.slot.is-off { opacity: .4; text-decoration: line-through; }
.planner__confirm { display: flex; align-items: center; gap: 10px; background: #fff; padding: 14px 18px; border-radius: 18px; font-weight: 600; box-shadow: var(--shadow); justify-self: start; }
.planner__confirm .ico { color: #25d366; width: 22px; height: 22px; }
.feature--save:not(.is-in) .slot.is-on, .feature--save:not(.is-in) .planner__confirm { opacity: 0; transform: translateY(10px); }
.feature--save .slot, .feature--save .planner__confirm { transition: opacity .6s .5s var(--ease), transform .6s .5s var(--ease); }
.feature--save .planner__confirm { transition-delay: .9s; }

/* promo (feature 03) */
.shop { background: #fff; }
.shop__bg { object-position: center 30%; }
.creator__meta--card { background: rgba(255,255,255,.95); color: var(--ink); text-shadow: none; padding: 16px 20px; border-radius: 20px; box-shadow: var(--shadow); max-width: 300px; gap: 4px; }
.creator__meta--card strong { font-family: var(--serif); font-size: 1.15rem; line-height: 1.2; }
.creator__meta--card span { color: var(--ink-2); font-size: .85rem; }
.shop__tag { color: var(--red); }

/* courses */
.tabs__panel--course { aspect-ratio: auto; display: grid; grid-template-rows: auto 1fr; background: var(--paper); }
.course__media { aspect-ratio: 16 / 9; overflow: hidden; }
.course__media > img, .course__media .ph { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, transform .6s var(--ease); }
.course__media.is-fading > * { opacity: 0; transform: scale(1.03); }
.course__body { padding: 28px 32px 32px; }
.course__body h3 { font-size: 2rem; }
.course__body p { color: var(--ink-2); font-size: 1.05rem; margin: 10px 0 14px; }
.course__points { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.course__points li { background: #fff; border-radius: 999px; padding: 7px 14px; font-size: .85rem; font-weight: 500; }
.course__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tabs__list [role="tab"] strong { font-size: 1.2rem; }
.tabs__list [role="tab"] span { font-size: .92rem; }
.tabs { align-items: start; }
.unsure {
  max-width: var(--max); margin: 48px auto 0; padding: 22px 28px; border-radius: var(--radius-lg);
  background: var(--red); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  width: calc(100% - 48px);
}
.unsure p { margin: 0; font-size: 1.1rem; }
.unsure .btn--dark .ico { color: #25d366; }

/* testimonials */
.slider--stories { aspect-ratio: auto; background: var(--card); }
.story { flex: 0 0 100%; display: grid; grid-template-columns: .9fr 1.1fr; min-height: 480px; }
.story__img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; min-height: 320px; }
.story__img--isaac { object-position: center 12%; }
.story__body { padding: clamp(28px, 5vw, 64px); padding-bottom: 96px; display: flex; flex-direction: column; justify-content: center; position: relative; }
.story__quote { font-family: var(--serif); font-size: 7rem; line-height: .6; color: var(--red); height: 48px; }
.story blockquote { margin: 0 0 24px; font-family: var(--serif); font-size: clamp(1.5rem, 2.8vw, 2.3rem); line-height: 1.2; font-weight: 500; }
.story__who { margin: 0; display: flex; flex-direction: column; }
.story__who strong { font-size: 1.05rem; }
.story__who span { color: var(--ink-2); }
.stars { color: #f5a623; letter-spacing: 3px; margin: 10px 0 0; }
.slider--stories .icon-btn { background: var(--paper-2); box-shadow: none; }
.slider--stories .slider__dots button { background: var(--line); }
.slider--stories .slider__dots button[aria-current="true"] { background: var(--ink); }
.stories { padding-bottom: 60px; }

/* image placeholders */
.ph { position: relative; margin: 0; overflow: hidden; background: #c6cbd2; }
.ph > img { width: 100%; height: 100%; object-fit: cover; }
.ph figcaption {
  position: absolute; inset: auto 12px 12px 12px; background: rgba(28,26,23,.86); color: #fff;
  padding: 10px 12px; border-radius: 12px; font-size: .78rem; line-height: 1.35;
}
.ph figcaption b { display: block; color: #ffd84d; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }

/* learning centre */
.masonry { columns: 3 300px; column-gap: 20px; }
.post { break-inside: avoid; margin: 0 0 20px; background: var(--card); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 1px 0 var(--line); animation: pinIn .6s var(--ease) both; transition: transform .3s var(--ease), box-shadow .3s; display: block; }
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post__media { overflow: hidden; }
.post__media img { width: 100%; transition: transform .7s var(--ease); }
.post:hover .post__media > img { transform: scale(1.05); }
.post__media .ph > img { aspect-ratio: 3 / 2; }
.post__body { padding: 20px 22px 24px; }
.post__tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.post h3 { font-size: 1.35rem; line-height: 1.2; }
.post p { color: var(--ink-2); margin: 10px 0 14px; font-size: .95rem; }
.post__more { font-weight: 600; font-size: .9rem; }
.post:hover .post__more { color: var(--red); }
.post.is-hidden { display: none; }
.wall__note { text-align: center; color: var(--ink-2); font-size: .85rem; margin-top: 12px; }

/* faq */
.faq { padding: 100px 24px; background: var(--card); border-radius: 48px; margin: 0 12px; }
.faq__inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq__head { position: sticky; top: 110px; }
.faq__head .section-head__sub { margin: 18px 0 24px; }
.faq__search { margin-bottom: 18px; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary {
  list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative;
  font-family: var(--serif); font-size: 1.25rem; font-weight: 500;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center;
  font-family: var(--sans); font-size: 1.3rem; transition: transform .3s var(--ease), background .3s, color .3s;
}
.faq__list details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--red); color: #fff; }
.faq__list summary:hover { color: var(--red); }
.faq__list details p { margin: 0 0 22px; color: var(--ink-2); max-width: 40em; animation: pinIn .4s var(--ease); }
.faq__empty a { color: var(--red); font-weight: 600; }

/* about */
.about { padding: 120px 24px 100px; }
.about__inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about__media { position: relative; padding: 0 12% 18% 0; }
.about__media > img:first-child { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--shadow); }
.about__car { position: absolute; right: 0; bottom: 0; width: 56%; aspect-ratio: 16/10; object-fit: cover; border-radius: 24px; border: 6px solid var(--paper); box-shadow: var(--shadow); }
.about__copy p { color: var(--ink-2); font-size: 1.1rem; }
.about__copy h2 { margin-bottom: 18px; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.mv > div { background: var(--card); border-radius: var(--radius); padding: 20px; }
.mv h4 { margin: 0 0 6px; font-family: var(--serif); font-size: 1.2rem; color: var(--red); }
.mv p { margin: 0; font-size: .95rem; }
.team { max-width: var(--max); margin: 96px auto 0; }
.team h3 { text-align: center; margin-bottom: 32px; }
.team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.team__ph { aspect-ratio: 3 / 4; border-radius: var(--radius-lg); }

/* booking form */
.join::before { background: linear-gradient(90deg, rgba(20,14,10,.88), rgba(20,14,10,.5)); }
.join__inner { align-items: start; }
.join__copy { padding-top: 24px; }
.join__list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; font-weight: 600; }
.signup { text-align: left; gap: 12px; }
.signup select, .signup textarea, .enquiry input, .enquiry textarea {
  font: inherit; font-weight: 400; padding: 12px 16px; border-radius: 16px;
  border: 2px solid #ddd; background: #fff; outline: 0; transition: border-color .2s; width: 100%; color: var(--ink);
}
.signup textarea, .enquiry textarea { resize: vertical; }
.signup select:focus, .signup textarea:focus, .enquiry input:focus, .enquiry textarea:focus { border-color: #0074e8; }
.signup select.invalid, .enquiry .invalid { border-color: var(--red); }
.opt { font-weight: 400; color: var(--ink-2); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid2[hidden] { display: none; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper-2); border-radius: 999px; padding: 4px; margin-bottom: 4px; }
.seg label { display: block; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 10px 8px; border-radius: 999px; font-size: .9rem; font-weight: 600; cursor: pointer; transition: background .25s, color .25s; }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid #0074e8; outline-offset: 2px; }
.signup .btn .ico, .enquiry .btn .ico { width: 20px; height: 20px; }

/* contact */
.contact { padding: 110px 24px; }
.contact__grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; }
.contact__map { border-radius: var(--radius-lg); overflow: hidden; min-height: 460px; background: var(--paper-2); box-shadow: var(--shadow); }
.contact__map iframe { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; }
.contact__info { display: grid; gap: 12px; align-content: start; }
.info { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border-radius: var(--radius); padding: 16px 18px; }
.info .ico { width: 22px; height: 22px; color: var(--red); margin-top: 2px; }
.info div { display: flex; flex-direction: column; }
.info span { color: var(--ink-2); }
.info a:hover { color: var(--red); }
.enquiry { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 24px; display: grid; gap: 10px; margin-top: 6px; }
.enquiry h3 { font-size: 1.5rem; margin-bottom: 4px; }
.enquiry .btn--dark { background: #25d366; color: #0b2e17; }
.enquiry .btn--dark:hover { background: #1fbe5a; }
.enquiry .err { color: #ff8a8a; }

/* floating WhatsApp */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 14px 30px -10px rgba(37,211,102,.8); transition: transform .25s var(--ease);
}
.fab svg { width: 32px; height: 32px; }
.fab:hover { transform: scale(1.08) rotate(-6deg); }
.fab::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ring 2.4s ease-out infinite; }
@keyframes ring { to { transform: scale(1.6); opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .why__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .hero, .feature, .feature:nth-of-type(even), .tabs, .join__inner, .about__inner, .faq__inner, .contact__grid { grid-template-columns: 1fr; }
  .feature:nth-of-type(even) .feature__text { order: 0; }
  .hero { min-height: 0; padding-top: 32px; gap: 24px; }
  .hero__stage { max-width: 460px; }
  .feature { gap: 32px; margin-bottom: 72px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .story { grid-template-columns: 1fr; }
  .story__img { aspect-ratio: 4 / 3; height: auto; min-height: 0; }
  .faq__head { position: static; }
  .tabs__list { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .tabs__list [role="tab"] { flex: 0 0 240px; scroll-snap-align: start; }
}
@media (max-width: 760px) {
  .nav__links {
    position: fixed; inset: 72px 12px auto; flex-direction: column;
    background: var(--card); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow);
    opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease);
  }
  .nav__links.is-open { opacity: 1; pointer-events: auto; transform: none; }
  .nav__burger { display: block; }
  .nav__inner { gap: 12px; padding: 12px 16px; }
  .hide-sm { display: none; }
  .btn--wa { padding: 10px; }
  .team__grid, .mv, .grid2 { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: 1fr 1fr; }
  .team__grid .ph:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .slider__ui { left: 16px; right: 16px; justify-content: center; bottom: 16px; }
  .story__body { padding-bottom: 88px; }
  .discover, .tools, .boards, .wall, .why, .about, .contact, .faq { padding-top: 72px; padding-bottom: 72px; }
  .join { padding: 72px 16px; }
  .course__body { padding: 22px; }
  .planner__days { grid-template-columns: repeat(3, 1fr); }
  .planner { aspect-ratio: auto; }
  .fab { width: 54px; height: 54px; right: 16px; bottom: 16px; }
  .ph figcaption { font-size: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* prevent grid children from overflowing on narrow screens */
.hero > *, .feature > *, .tabs > *, .join__inner > *, .about__inner > *, .faq__inner > *, .contact__grid > * { min-width: 0; }
.search { width: 100%; }

/* small-screen polish */
.brand__text small { white-space: nowrap; }
@media (max-width: 760px) {
  .brand__badge { width: 36px; height: 36px; font-size: .85rem; }
  .brand__text { font-size: 1.15rem; }
  .story__img { aspect-ratio: 1 / 1; object-position: center 15%; }
  .story__body { justify-content: flex-start; }
  .hero__cta .btn { flex: 1 1 auto; }
}
@media (max-width: 760px) {
  .nav__actions .btn--wa { display: none; } /* floating WhatsApp button covers this on mobile */
  .nav__actions .btn--primary { padding: 10px 16px; font-size: .9rem; }
}

/* ---------- Board-style cards (Why Rabbonny) ---------- */
.why__grid { gap: 28px 20px; }
.board { min-width: 0; }
.board:nth-child(2) { transition-delay: .06s; } .board:nth-child(3) { transition-delay: .12s; } .board:nth-child(4) { transition-delay: .18s; }
.board__cover {
  display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px;
  aspect-ratio: 1.5 / 1; border-radius: 22px; overflow: hidden; background: var(--paper-2);
  position: relative;
}
.board__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .3s; }
.board__main { grid-row: 1 / 3; }
.board__cover::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background .3s; }
.board__cover:hover::after { background: rgba(0,0,0,.12); }
.board__cover:hover img { transform: scale(1.05); }
.board__title { font-family: var(--sans); font-weight: 700; font-size: 1.25rem; line-height: 1.25; letter-spacing: -.01em; margin: 14px 0 6px; }
.board__cat { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-weight: 500; font-size: .95rem; }
.board__cat svg { width: 17px; height: 17px; color: var(--red); }
.board__meta { margin: 0; color: var(--ink-2); font-size: .88rem; }

/* ---------- Icon replacements ---------- */
.marquee__track .sep { width: 9px; height: 9px; border-radius: 50%; background: var(--red); align-self: center; flex: none; }
.float-pill { display: inline-flex; align-items: center; gap: 6px; }
.float-pill__icon { width: 16px; height: 16px; }
.stars { display: flex; gap: 3px; letter-spacing: 0; }
.stars svg { width: 18px; height: 18px; }
#play .ico { width: 16px; height: 16px; }
.join__list li, .course__points li { display: flex; align-items: center; gap: 8px; }
.join__list .ico { color: #fff; width: 20px; height: 20px; }
.course__points li { display: inline-flex; gap: 6px; }
.course__points .ico { width: 15px; height: 15px; color: var(--red); }
@media (max-width: 520px) { .why__grid { grid-template-columns: 1fr; } }
