/* Wehdi landing page
 * Wehdi indigo everywhere; WehdiBus yellow + transit art only inside .product--wehdibus.
 * Independent copy: nothing here is shared with any other site.
 */
:root {
  --brand: #20235d;      /* Wehdi indigo, from the designer's official logo files */
  --brand-2: #0f1133;    /* deeper indigo for button shadows */
  --brand-soft: #4a50b8; /* lighter indigo for inner art and hover on dark */
  --brand-tint: #a8acea; /* light indigo for decorative arches */
  --mist: #eeeffa;       /* pale indigo background */
  --mist-2: #d8daf3;
  --warm: #fffcf6;       /* warm white (unchanged neutral) */
  --ink: #15172f;
  --muted: #555873;
  --line: #e4e5f0;
  --radius: 28px;
  --head: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* WehdiBus (scoped use only) */
  --wdb-green: #068255;
  --wdb-yellow: #f7d12e;
  --wdb-yellow-shadow: #c9a70f;
  --wdb-cream: #fff6cc;
  --wdb-charcoal: #1c2421;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--warm); }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.08; margin: 0; letter-spacing: -.025em; color: var(--brand); }
h2 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; }
p { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 32px); }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 10px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
[tabindex="-1"]:focus { outline: none; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 560px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 16px; font: 700 1.02rem/1 var(--body); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { position: relative; overflow: hidden; background: var(--brand); color: #fff; box-shadow: 0 5px 0 var(--brand-2); }
.btn-primary:hover { box-shadow: 0 7px 0 var(--brand-2); }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); translate: -120% 0; transition: translate .6s ease; pointer-events: none; }
.btn-primary:hover::after { translate: 120% 0; }
.btn svg { transition: translate .2s ease; }
.btn-primary:hover svg { translate: 0 3px; }
.btn-bus:hover svg { translate: 2px -2px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* Header */
.top { transition: box-shadow .25s ease; position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; transition: min-height .25s ease; }
.top.scrolled { box-shadow: 0 8px 24px rgba(32, 36, 93, .08); }
.top.scrolled .top-row { min-height: 56px; }
.brand img { transition: height .25s ease; }
.top.scrolled .brand img { height: 24px; }
.brand { display: inline-flex; padding: 6px 0; }
.brand img { height: 28px; width: auto; }
.top nav { display: flex; gap: 4px; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; padding: 10px 14px; border-radius: 12px; min-height: 44px; display: inline-flex; align-items: center; }
.top nav a:hover, .menu-btn:hover, .menu-btn[aria-expanded="true"] { background: var(--mist); color: var(--brand); }
.top nav { align-items: center; }
.menu { position: relative; }
.menu-btn { font: 500 .98rem var(--body); color: var(--ink); background: none; border: 0; cursor: pointer; padding: 10px 12px 10px 14px; border-radius: 12px; min-height: 44px; display: inline-flex; align-items: center; gap: 4px; }
.menu-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s ease; }
.menu-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 10px; box-shadow: 0 20px 44px rgba(32, 36, 93, .14); }
.menu-panel[hidden] { display: none; }
.menu-group + .menu-group { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.menu-cat { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 8px 12px 4px; }
.menu-panel ul { list-style: none; margin: 0; padding: 0; }
.top nav .menu-panel a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; }
.menu-panel img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.menu-panel b { display: block; font-weight: 700; color: var(--brand); }
.menu-panel small { display: block; color: var(--muted); font-size: .86rem; line-height: 1.35; }
@media (max-width: 560px) { .menu { position: static; } .menu-panel { left: 12px; right: 12px; width: auto; top: calc(100% + 6px); } .top-row { position: relative; } }
@media (max-width: 420px) { .brand img { height: 24px; } .top nav a { padding: 10px; } }

/* Hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
/* Headline: words rise in, underline draws under "real problems." */
.hero h1 .hl { position: relative; white-space: nowrap; }
.hero h1 .hl::after { content: ""; position: absolute; left: -1%; right: -1%; bottom: .02em; height: .2em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 Q 30 2 60 7 T 120 6 T 198 5' fill='none' stroke='%23a8acea' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%; clip-path: inset(0 100% 0 0); transition: clip-path .8s cubic-bezier(.6, 0, .3, 1); z-index: -1; }
.hero h1.drawn .hl::after { clip-path: inset(0 0 0 0); }
.hero h1 { position: relative; z-index: 0; }
.hero h1.words .word { display: inline-block; opacity: 0; translate: 0 .45em; animation: rise .6s cubic-bezier(.2, .7, .2, 1) forwards; }
@keyframes rise { to { opacity: 1; translate: 0 0; } }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.75rem); font-weight: 800; margin-bottom: 22px; max-width: 13ch; }
.hero-art { --px: 0; --py: 0; position: relative; aspect-ratio: 11 / 10; background: var(--mist); border-radius: 40px; overflow: hidden;
  transition: transform .3s ease-out; }
.hero-art.tilt { transform: perspective(1000px) rotateY(calc(var(--px) * 5deg)) rotateX(calc(var(--py) * -5deg)); }
.route-art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* Layered W (echoes the logo): same path stacked from widest to narrowest */
.wv { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.w1 { stroke: var(--mist-2); stroke-width: 132; }
.w2 { stroke: var(--mist); stroke-width: 102; }
.w3 { stroke: var(--brand-tint); stroke-width: 82; }
.w4 { stroke: var(--mist); stroke-width: 54; }
.w5 { stroke: var(--brand); stroke-width: 30; }
/* Route: indigo road draws in, centre line moves, stops light up as the bus arrives */
.route-line { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 9 13; opacity: .55; animation: dash-route 1.6s linear infinite; }
@keyframes dash-route { to { stroke-dashoffset: -44; } }
.hero-art.live .route { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: draw 1.2s cubic-bezier(.6, 0, .3, 1) .1s forwards; }
.hero-art.live .route-line { opacity: 0; animation: dash-route 1.6s linear infinite, fade-in .4s ease 1.2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: .55; } }
.stop-dot { fill: #fff; stroke: var(--brand); stroke-width: 6; transition: fill .3s ease; }
.stop.on .stop-dot { fill: var(--wdb-yellow); }
.stop-pulse { fill: none; stroke: var(--brand); stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; }
.stop.on .stop-pulse { animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { from { opacity: .6; transform: scale(.8); } to { opacity: 0; transform: scale(1.9); } }
.hbus { opacity: 0; transition: opacity .35s ease; }
.hero-art.still .hbus, .hbus.in { opacity: 1; }
.hbus-tilt { transition: transform .3s ease; }
.hbus-body { animation: hbob .5s ease-in-out infinite; }
@keyframes hbob { 50% { translate: 0 -1.5px; } }
.hero-art.still .hbus-body { animation: none; }

.bubble { position: absolute; background: #fff; color: var(--brand); border-radius: 999px; padding: 9px 16px 9px 9px; font-weight: 700; font-size: .92rem; box-shadow: 0 10px 26px rgba(32, 36, 93, .12); white-space: nowrap; display: inline-flex; align-items: center; gap: 8px;
  transform: translate(calc(var(--px) * 10px), calc(var(--py) * 10px)); transition: opacity .35s ease, scale .35s cubic-bezier(.3, 1.6, .5, 1), transform .25s ease-out; }
.bubble b { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .72rem; }
.hero-art.live .bubble { opacity: 0; scale: .85; }
.hero-art.live .bubble.on { opacity: 1; scale: 1; }
.b1 { top: 4%; left: 3%; }
.b2 { top: 23%; left: 0; right: 0; width: max-content; margin-inline: auto; }
.b3 { top: 4%; right: 3%; }
@media (prefers-reduced-motion: reduce) { .bus-body, .bus-pin, .road::before, .route-line, .stop-pulse, .hbus-body { animation: none !important; } .hero-art, .bubble { transform: none; } }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 15ch; }
  .hero-art { max-width: 520px; width: 100%; justify-self: center; }
}
@media (max-width: 420px) { .bubble { font-size: .8rem; padding: 7px 12px 7px 7px; } .bubble b { width: 24px; height: 24px; } }

/* Products */
.products { padding: clamp(56px, 8vw, 96px) 0; background: #fff; border-top: 1px solid var(--line); }
.section-head { margin-bottom: 28px; }
.product { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: center; border-radius: 36px; overflow: hidden; padding: clamp(28px, 5vw, 56px) clamp(24px, 5vw, 56px) 0; }
.product + .product { margin-top: 24px; }
.category + .category { margin-top: 48px; }
.cat-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.cat-head::after { content: ""; flex: 1; height: 1px; background: var(--line); order: 1; }
.cat-title { font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; }
.cat-count { order: 2; font-size: .9rem; color: var(--muted); }
.product-copy { padding-bottom: clamp(40px, 6vw, 72px); }
.product h4 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; margin: 22px 0 12px; }
.product-copy > p { font-size: clamp(1.08rem, 1.5vw, 1.22rem); max-width: 460px; }
.tags { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { border-radius: 999px; padding: 6px 14px; font-size: .88rem; font-weight: 700; }
.product-art { position: relative; align-self: end; display: flex; justify-content: center; min-height: 100%; }

/* WehdiBus panel: its own palette lives only here */
.product--wehdibus { background: var(--wdb-cream); color: var(--wdb-charcoal); }
.product::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .7), transparent 60%); opacity: 0; transition: opacity .3s ease; pointer-events: none; z-index: 0; }
.product:hover::before { opacity: 1; }
.product > * { position: relative; z-index: 1; }
.product--wehdibus h4 { color: var(--wdb-charcoal); }
.product--wehdibus .product-copy > p { color: #3d4641; }
.product-logo { width: 218px; height: auto; }
.product--wehdibus .tags li { background: #fff; color: var(--wdb-green); border: 1px solid #f1df8f; }
.btn-bus { background: var(--wdb-yellow); color: var(--wdb-charcoal); box-shadow: 0 5px 0 var(--wdb-yellow-shadow); }
.btn-bus:hover { box-shadow: 0 7px 0 var(--wdb-yellow-shadow); }
.btn-ghost { background: #fff; color: var(--wdb-charcoal); border: 2px solid #e7d68a; }
.btn-ghost:hover { border-color: var(--wdb-charcoal); }
.product--wehdibus :focus-visible { outline-color: var(--wdb-charcoal); }

.phone { align-self: flex-end; margin: 0; width: min(300px, 74%); padding: 10px 10px 0; background: var(--wdb-charcoal); border-radius: 40px 40px 0 0; box-shadow: 0 30px 60px rgba(28, 36, 33, .25); position: relative; z-index: 1; }
.phone img { border-radius: 30px 30px 0 0; width: 100%; height: auto; aspect-ratio: 390 / 640; object-fit: cover; object-position: top; }
.bus { position: absolute; z-index: 2; width: clamp(110px, 16vw, 150px); right: 0; bottom: 10px; overflow: visible; }
.bus-body { animation: bob 1.4s ease-in-out infinite; transform-origin: 50% 100%; }
.bus-pin { animation: pin 1.4s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes bob { 50% { transform: translateY(-3px); } }
@keyframes pin { 50% { transform: translateY(-7px); } }
.road { grid-column: 1 / -1; position: relative; height: 34px; margin: 0 calc(clamp(24px, 5vw, 56px) * -1); background: var(--wdb-charcoal); z-index: 3; }
.road::before { content: ""; position: absolute; left: 0; right: 0; top: 15px; height: 4px; background: repeating-linear-gradient(90deg, var(--wdb-yellow) 0 30px, transparent 30px 58px); animation: dash 1.2s linear infinite; }
@keyframes dash { to { background-position: -58px 0; } }
@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; }
  .product-copy { padding-bottom: 8px; }
  .bus { right: 2%; }
}
@media (max-width: 480px) { .bus { width: 96px; right: -4px; } .phone { width: 78%; } .product .btn { flex: 1 1 100%; } }

/* About */
.about { background: var(--mist); padding: clamp(56px, 8vw, 104px) 0; }
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.about h2 { margin-bottom: 18px; max-width: 16ch; }
.about .lede { color: #464966; max-width: 600px; }
.question { margin: 0; display: grid; gap: 14px; justify-items: start; }
.q-bubble, .q-answer { border-radius: 24px; padding: 18px 22px; font-weight: 700; font-size: 1.1rem; box-shadow: 0 10px 26px rgba(32, 36, 93, .08); }
.q-bubble { background: #fff; color: var(--brand); border-bottom-left-radius: 6px; font-family: var(--head); font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
.q-answer { justify-self: end; display: inline-flex; align-items: center; gap: 12px; background: var(--brand); color: #fff; border-bottom-right-radius: 6px; }
.q-answer img { width: 36px; height: 36px; border-radius: 10px; }

/* Scroll reveal (only when JS is on and motion is allowed) */
.reveal-on .foot-mark[data-reveal] { opacity: 1; transform: translateY(45%); transition: transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.reveal-on .foot-mark[data-reveal].in { transform: none; }
.reveal-on [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal-on [data-reveal].in { opacity: 1; transform: none; }
.reveal-on .product .phone { transform: translateY(70px); transition: transform 1s cubic-bezier(.2, .7, .2, 1) .2s; }
.reveal-on .product.in .phone { transform: none; }
.reveal-on .question[data-reveal] { transition-delay: .15s; }

/* Where we're starting: dotted Jamaica map */
.jamaica { padding: clamp(56px, 8vw, 104px) 0; overflow: hidden; }
.jamaica-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.jamaica h2 { margin-bottom: 18px; max-width: 14ch; }
.jm { margin: 0; position: relative; }
.jm-map { width: 100%; height: auto; overflow: visible; }
.jm-dots, .jm-hot { fill: none; stroke-linecap: round; stroke-width: 5.6; }
.jm-dots { stroke: var(--mist-2); }
.jm-hot { stroke: var(--brand); }
.jm-pin { fill: var(--wdb-yellow); stroke: var(--brand); stroke-width: 3; }
.jm-ring { fill: none; stroke: var(--brand); stroke-width: 2.5; transform-box: fill-box; transform-origin: center; animation: pulse 2s ease-out infinite; }
.jm-tag { position: absolute; right: 2%; bottom: -6%; display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px 8px 8px; box-shadow: 0 10px 26px rgba(32, 36, 93, .1); font-size: .92rem; color: var(--muted); }
.jm-tag img { width: 28px; height: 28px; border-radius: 8px; }
.jm-tag b { color: var(--brand); margin-right: 4px; }
@media (max-width: 860px) { .jamaica-grid { grid-template-columns: 1fr; } .jm-tag { position: static; margin-top: 16px; } }
@media (prefers-reduced-motion: reduce) { .jm-ring { animation: none; } }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .question { max-width: 440px; } }

/* Contact (enable in index.html once an address is confirmed) */
.contact-wrap { padding: clamp(48px, 7vw, 88px) 0; }
.contact { background: var(--brand); color: #fff; border-radius: 36px; padding: clamp(28px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.contact h2 { color: #fff; margin-bottom: 8px; }
.contact p { color: rgba(255, 255, 255, .82); }
.contact :focus-visible { outline-color: #fff; }

/* Footer: deep indigo, giant wordmark along the bottom edge */
.foot { background: var(--brand); color: #fff; padding: clamp(48px, 7vw, 80px) 0 0; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.foot-tag { font-family: var(--head); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; letter-spacing: -.02em; max-width: 14ch; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.foot-h { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mist-2); margin-bottom: 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot-cat { display: block; font-size: .8rem; color: rgba(255, 255, 255, .7); }
.foot a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; min-height: 36px; }
.foot a:hover { color: var(--brand-tint); text-decoration: underline; text-underline-offset: 3px; }
.foot :focus-visible { outline-color: #fff; }
.copy { color: rgba(255, 255, 255, .72); font-size: .92rem; margin-top: 44px; }
.foot-mark { margin-top: 28px; padding: 0 clamp(12px, 2vw, 24px); }
.foot-mark img { width: 100%; height: auto; } /* letters sit on the page edge (no descender to trim) */
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .foot-cols { grid-template-columns: 1fr 1fr; } }

/* Jamaica map: routes and moving buses */
.jm-route { fill: none; stroke: var(--brand-soft); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2 5; opacity: .55; }
.jm-route--long { opacity: .4; }
.jm-stop { fill: #fff; stroke: var(--brand); stroke-width: 2; }
.jm-bus rect { fill: var(--wdb-yellow); stroke: var(--brand); stroke-width: 1.8; }

