/* =========================================================
   Concept 1 — "Shahrah" · Modern Bold
   Asphalt black + signal yellow + road-marking motifs
   ========================================================= */
:root {
  --ink: #14161a;
  --ink-2: #1e2127;
  --ink-3: #2a2e36;
  --yellow: #ffc72c;
  --yellow-2: #e6b21f;
  --paper: #f5f5f0;
  --white: #ffffff;
  --muted: #5f646d;
  --muted-light: #a3a8b1;
  --line: #e2e2da;
  --radius: 16px;
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --w-primary: var(--ink);
  --w-on-primary: var(--yellow);
  --w-surface: #fff;
  --w-text: var(--ink);
  --w-bot-bg: #f1f1ec;
  --w-border: var(--line);
  --w-radius: 20px;
  --w-font: var(--font-body);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 var(--font-body); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.25rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.m-container { width: min(1200px, 100% - 40px); margin-inline: auto; }
/* --hl is inherited from the parent heading so JS can sweep it on a stable node. */
.m-hl { color: var(--ink); background: linear-gradient(var(--yellow), var(--yellow)) no-repeat 0 88% / var(--hl, 100%) 34%; padding: 0 .08em; }
.m-lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }

/* Buttons */
.m-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 26px; border-radius: 12px; border: 2px solid transparent; font: 600 15px/1 var(--font-body); text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.m-btn:hover { transform: translateY(-2px); }
.m-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.m-btn--sm { padding: 11px 18px; font-size: 14px; }
.m-btn--block { width: 100%; }
.m-btn--yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 6px 0 var(--yellow-2); }
.m-btn--yellow:hover { box-shadow: 0 8px 0 var(--yellow-2); }
.m-btn--ghost { color: var(--ink); border-color: var(--ink); }
.m-btn--ghost:hover { background: var(--ink); color: var(--yellow); }
.m-btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.m-btn--outline:hover { border-color: var(--ink); }
.m-btn--dark { background: var(--ink); color: var(--yellow); }
.m-btn--outline-dark { border-color: var(--ink); color: var(--ink); }

/* Header */
.m-header { position: sticky; top: 0; z-index: 50; background: rgba(245, 245, 240, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.m-header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.m-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 22px/1 var(--font-head); letter-spacing: -.03em; }
.m-logo em { font-style: normal; color: var(--muted); font-weight: 500; }
.m-logo__mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--yellow); color: var(--ink); transform: rotate(-6deg); }
.m-logo--light { color: #fff; }
.m-logo--light em { color: var(--muted-light); }
.m-nav { display: flex; align-items: center; gap: 28px; }
.m-nav a:not(.m-btn) { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--muted); position: relative; padding: 6px 0; }
.m-nav a:not(.m-btn):hover, .m-nav a.is-active { color: var(--ink); }
.m-nav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; background: var(--yellow); border-radius: 2px; }
.m-nav__phone { display: inline-flex; align-items: center; gap: 6px; }
.m-nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }

/* Hero */
.m-hero { padding: 64px 0 88px; overflow: hidden; }
.m-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.m-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; margin-bottom: 22px; }
.m-eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 199, 44, .25); }
.m-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }
.m-hero__ticks { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; font-size: 14px; color: var(--muted); }
.m-hero__ticks li { display: inline-flex; align-items: center; gap: 6px; }
.m-hero__ticks svg { color: var(--ink); background: var(--yellow); border-radius: 50%; padding: 2px; }

.m-hero__art { position: relative; height: 520px; }
.m-road { position: absolute; inset: 0 30px; background: var(--ink); border-radius: 28px; overflow: hidden; clip-path: polygon(22% 0, 78% 0, 100% 100%, 0 100%); }
.m-road::before, .m-road::after { content: ""; position: absolute; top: 0; bottom: 0; width: 6px; background: #fff; opacity: .9; }
.m-road::before { left: 24%; transform: skewX(-6deg); transform-origin: top; }
.m-road::after { right: 24%; transform: skewX(6deg); transform-origin: top; }
.m-road__lane { position: absolute; left: 50%; top: -60px; bottom: 0; width: 10px; transform: translateX(-50%); background: repeating-linear-gradient(to bottom, var(--yellow) 0 44px, transparent 44px 84px); animation: m-lane 1.6s linear infinite; }
@keyframes m-lane { to { transform: translate(-50%, 84px); } }
.m-road__car { position: absolute; left: 50%; bottom: 46px; width: 104px; transform: translateX(-108%); filter: drop-shadow(0 20px 18px rgba(0, 0, 0, .5)); }
.m-road__l-plate { position: absolute; left: calc(50% - 82px); bottom: 26px; width: 30px; height: 30px; display: grid; place-items: center; background: #fff; color: #d0021b; border: 2px solid #d0021b; border-radius: 4px; font: 700 18px/1 var(--font-head); }
.m-float { position: absolute; background: #fff; border-radius: 16px; padding: 14px 18px; box-shadow: 0 18px 40px rgba(20, 22, 26, .18); }
.m-float--top { top: 40px; right: 0; display: flex; flex-direction: column; }
.m-float--top strong { font: 700 34px/1 var(--font-head); }
.m-float--top span { font-size: 13px; color: var(--muted); }
.m-float--bottom { bottom: 120px; left: 0; display: flex; align-items: center; gap: 10px; font-size: 14px; }
.m-float__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--yellow); }

/* Stats */
.m-stats { background: var(--ink); color: #fff; }
.m-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.m-stat { padding: 34px 24px; border-left: 1px dashed var(--ink-3); }
.m-stat:first-child { border-left: 0; padding-left: 0; }
.m-stat strong { display: block; font: 700 clamp(2rem, 3.5vw, 2.8rem)/1 var(--font-head); color: var(--yellow); }
.m-stat span { color: var(--muted-light); font-size: 14px; }

/* Sections */
.m-section { padding: 100px 0; }
.m-section--tight { padding-top: 40px; }
.m-section--dark { background: var(--ink); color: #fff; }
.m-section--dark .m-section__head p, .m-section--dark .m-feature p { color: var(--muted-light); }
.m-section--alt { background: #ecece5; }
.m-section__head { max-width: 640px; margin-bottom: 52px; }
.m-section__head p { color: var(--muted); font-size: 1.08rem; }
.m-kicker { display: inline-block; font: 600 13px/1 var(--font-head); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 16px; }
.m-section--dark .m-kicker { color: var(--yellow); }

/* Courses */
.m-courses { perspective: 1400px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.m-course { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition: transform .2s ease, box-shadow .2s ease; }
.m-course:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(20, 22, 26, .08); }
.m-course--featured { background: var(--ink); color: #fff; border-color: var(--ink); }
.m-course--featured .m-course__dur, .m-course--featured li { color: var(--muted-light); }
.m-course__tag { position: absolute; top: -12px; left: 24px; background: var(--yellow); color: var(--ink); font: 600 12px/1 var(--font-body); padding: 7px 10px; border-radius: 6px; }
.m-course__dur { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.m-course__price { font: 700 2rem/1 var(--font-head); margin-bottom: 22px; }
.m-course ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; flex: 1; }
.m-course li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.m-course li svg { flex: none; margin-top: 3px; color: var(--yellow-2); }

/* Features */
.m-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--ink-3); border-radius: var(--radius); overflow: hidden; }
.m-feature { background: var(--ink); padding: 36px 30px; }
.m-section:not(.m-section--dark) .m-features { background: var(--line); }
.m-section:not(.m-section--dark) .m-feature { background: #fff; }
.m-feature__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--yellow); color: var(--ink); margin-bottom: 22px; }
.m-feature p { margin: 0; font-size: 15px; }

/* Steps */
.m-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.m-steps::before { content: ""; position: absolute; top: 27px; left: 0; right: 0; height: 4px; background: repeating-linear-gradient(to right, var(--ink) 0 26px, transparent 26px 44px); }
.m-step { position: relative; }
.m-step__num { position: relative; display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--yellow); border: 4px solid var(--paper); font: 700 18px/1 var(--font-head); margin-bottom: 18px; color: var(--ink); }
.m-section--dark .m-step__num { border-color: var(--ink); }
.m-step p { color: var(--muted); font-size: 15px; }

/* Reviews */
.m-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.m-review { margin: 0; background: #fff; border-radius: var(--radius); padding: 30px; border: 1px solid var(--line); }
.m-review__stars { color: var(--yellow-2); letter-spacing: 3px; margin-bottom: 14px; }
.m-review blockquote { margin: 0 0 20px; font-size: 1.05rem; line-height: 1.6; }
.m-review figcaption { font-size: 14px; color: var(--muted); }
.m-review figcaption strong { color: var(--ink); }

/* CTA */
.m-cta { background: var(--yellow); padding: 64px 0; position: relative; overflow: hidden; }
.m-cta { --stripe: 0px; }
.m-cta::before { content: ""; position: absolute; inset: auto 0 0 0; height: 14px; background: repeating-linear-gradient(-45deg, var(--ink) 0 14px, var(--yellow) 14px 28px); background-position: var(--stripe) 0; }
.m-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.m-cta h2 { margin-bottom: .25em; }
.m-cta p { margin: 0; font-size: 1.1rem; }
.m-cta__btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.m-footer { background: var(--ink); color: var(--muted-light); position: relative; }
.m-road-line { height: 6px; background: repeating-linear-gradient(to right, var(--yellow) 0 50px, transparent 50px 80px); }
.m-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 40px; padding: 64px 0 40px; }
.m-footer__tag { margin-top: 18px; max-width: 320px; font-size: 15px; }
.m-footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.m-footer__grid a:not(.m-logo), .m-footer__grid span { display: block; text-decoration: none; font-size: 15px; margin-bottom: 8px; }
.m-footer__grid a:not(.m-logo):hover { color: var(--yellow); }
.m-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 22px 0 28px; border-top: 1px solid var(--ink-3); font-size: 13px; }

/* Inner page hero */
.m-page-hero { padding: 80px 0 60px; position: relative; }
.m-page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: repeating-linear-gradient(to right, var(--ink) 0 34px, transparent 34px 56px); opacity: .12; }
.m-page-hero .m-lead { max-width: 640px; }

/* About */
.m-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.m-split p { color: var(--muted); }
.m-photo-ph, .m-map-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; aspect-ratio: 4/3.4; border-radius: 24px; background: var(--ink) repeating-linear-gradient(135deg, transparent 0 22px, rgba(255, 255, 255, .03) 22px 44px); color: var(--yellow); font-size: 14px; }
.m-photo-ph span, .m-map-ph span { color: var(--muted-light); }
.m-mini-stats { display: flex; gap: 32px; margin-top: 28px; padding-top: 28px; border-top: 1px dashed var(--line); }
.m-mini-stats strong { display: block; font: 700 1.9rem/1 var(--font-head); }
.m-mini-stats span { font-size: 13px; color: var(--muted); }
.m-features--3 { grid-template-columns: repeat(3, 1fr); }
.m-features--3 .m-step__num { width: 48px; height: 48px; font-size: 15px; margin-bottom: 16px; }
.m-team { perspective: 1200px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.m-member { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.m-member__avatar { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: var(--ink); color: var(--yellow); font: 700 24px/1 var(--font-head); margin-bottom: 20px; }
.m-member h3 { margin-bottom: 4px; }
.m-member p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.m-member span { display: inline-block; font-size: 12px; font-weight: 600; background: var(--paper); padding: 5px 10px; border-radius: 6px; }
.m-branches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.m-branch { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 14px; padding: 18px 20px; }
.m-branch > svg { color: var(--yellow-2); flex: none; }
.m-branch div { flex: 1; }
.m-branch strong { display: block; }
.m-branch span { font-size: 14px; color: var(--muted); }
.m-branch a { font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }

/* Contact */
.m-contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.m-form { background: #fff; border-radius: 24px; padding: 40px; border: 1px solid var(--line); }
.m-form h2 { font-size: 1.8rem; margin-bottom: 26px; }
.m-alert { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 12px; margin-bottom: 22px; font-weight: 500; }
.m-alert--ok { background: #e8f8ec; color: #15602b; }
.m-alert--err { background: #fdeceb; color: #a01d12; }
.m-contact__side { display: grid; gap: 12px; }
.m-contact-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; transition: border-color .15s; }
a.m-contact-card:hover { border-color: var(--ink); }
.m-contact-card strong { display: block; }
.m-contact-card span { font-size: 14px; color: var(--muted); }
.m-contact-card__icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--paper); }
.m-contact-card--wa { background: #25d366; border-color: #25d366; color: #fff; }
.m-contact-card--wa span { color: rgba(255, 255, 255, .85); }
.m-contact-card--wa .m-contact-card__icon { background: rgba(255, 255, 255, .2); }
.m-map-ph { aspect-ratio: 16/10; border-radius: 16px; }
.m-faq-wrap { max-width: 860px; }
.m-faq details { background: #fff; border-radius: 14px; margin-bottom: 10px; padding: 0 24px; }
.m-faq summary { cursor: pointer; padding: 20px 0; font: 600 1.05rem/1.4 var(--font-head); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.m-faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; }
.m-faq details[open] summary::after { content: "–"; }
.m-faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* Form fields (shared markup) */
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 26px; }
.f-field--full { grid-column: 1 / -1; }
.f-label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; }
.f-label small { font-weight: 400; color: var(--muted); }
.f-input { width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: 15px var(--font-body); color: var(--ink); background: var(--paper); transition: border-color .15s, background .15s; }
.f-input:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(255, 199, 44, .35); }
.has-error .f-input { border-color: #d33a2c; }
.f-error { color: #b42318; font-size: 13px; margin: 6px 0 0; }
.f-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.f-option { position: relative; cursor: pointer; }
.f-option input { position: absolute; opacity: 0; }
.f-option span { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 14px; transition: all .15s; }
.f-option small { color: var(--muted); white-space: nowrap; }
.f-option input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.f-option input:checked + span small { color: var(--yellow); }
.f-option input:focus-visible + span { box-shadow: 0 0 0 4px rgba(255, 199, 44, .5); }

/* ---------- Motion hooks ---------- */
.m-roadmap { position: relative; }
/* Layering: track (dashes + yellow fill) z1 → step circles z2 → car z3 */
.m-roadmap__track { position: absolute; left: 0; right: 0; top: 27px; height: 4px; z-index: 1; pointer-events: none; background: repeating-linear-gradient(to right, var(--ink) 0 26px, transparent 26px 44px); }
.m-roadmap__fill { position: absolute; inset: -1px 0; background: var(--yellow); border-radius: 3px; transform-origin: left center; transform: scaleX(0); box-shadow: 0 0 12px rgba(255, 199, 44, .6); }
.m-roadmap__car { position: absolute; z-index: 3; left: 0; top: 10px; width: 68px; height: 38px; pointer-events: none; filter: drop-shadow(0 6px 8px rgba(20, 22, 26, .3)); }
.m-steps { position: relative; z-index: 2; }
.motion .m-steps::before { display: none; }
.m-step__num { transition: background .35s ease, color .35s ease, transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.m-step.is-reached .m-step__num { background: var(--ink); color: var(--yellow); transform: scale(1.12); }
/* Without motion (or on small screens) the roadmap car and fill are hidden; steps stay readable. */
html:not(.motion) .m-roadmap__track, html:not(.motion) .m-roadmap__car { display: none; }
.motion .m-road__lane { animation: none; }
.m-course, .m-member { transform-style: preserve-3d; will-change: transform; }
.motion .m-course:hover { transform: none; }

/* Responsive */
@media (max-width: 1024px) {
  .m-courses, .m-team { grid-template-columns: repeat(2, 1fr); }
  .m-hero__grid, .m-split, .m-contact { grid-template-columns: 1fr; }
  .m-hero__art { height: 420px; max-width: 520px; width: 100%; margin-inline: auto; }
  .m-steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .m-steps::before, .m-roadmap__track, .m-roadmap__car { display: none; }
  .m-branches { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .m-nav-toggle { display: inline-flex; }
  .m-nav { position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 22px; background: var(--paper); border-bottom: 1px solid var(--line); display: none; }
  .m-nav.is-open { display: flex; }
  .m-nav a:not(.m-btn) { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .m-nav a.is-active::after { display: none; }
  .m-nav .m-btn { margin-top: 14px; }
  .m-features, .m-features--3, .m-reviews { grid-template-columns: 1fr; }
  .m-stats__grid { grid-template-columns: repeat(2, 1fr); }
  .m-stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .m-footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .m-container { width: calc(100% - 32px); }
  .m-hero { padding: 40px 0 64px; }
  .m-hero__art { height: 360px; }
  .m-section { padding: 72px 0; }
  .m-courses, .m-team, .m-branches, .m-steps, .f-grid, .f-options { grid-template-columns: 1fr; }
  .m-form { padding: 26px 20px; }
  .m-float--top strong { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { .m-road__lane { animation: none; } html { scroll-behavior: auto; } }
