/* Prime Needs Ventures — primeneeds.com.gh. Brand: navy #0A2442 and orange #E8732A, from the logo. */
@layer reset, tokens, base, layout, components, utilities;

/* Self-hosted fonts (SIL Open Font License, see assets/fonts/OFL-*.txt): no third-party requests. */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/assets/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
  img { max-width: 100%; height: auto; display: block; }
  button, input, select, textarea { font: inherit; color: inherit; }
}

@layer tokens {
  :root {
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --navy: #0A2442; --navy-2: #132F55; --navy-3: #1C3D6A;
    --orange: #E8732A;            /* accents and text on navy (5.2:1) */
    --orange-text: #A64C0D;       /* orange text and buttons on light backgrounds (5.7:1) */
    --orange-hover: #8A3F0B;
    --orange-soft: #FDEBDF;
    --bg: #F5F7FA; --surface: #FFFFFF; --surface-2: #ECEFF3;
    --ink: #0F172A; --ink-2: #334155; --muted: #5B6577; --line: #E2E8F0;
    --on-navy: #C9D3E0;
    --radius: 20px; --radius-sm: 12px;
    --shadow: 0 1px 2px rgb(10 36 66 / .06), 0 16px 40px -24px rgb(10 36 66 / .35);
    --wrap: 1200px;
    --ease: cubic-bezier(.2, .8, .2, 1);
  }
}

@layer base {
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
  body { font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.6; font-size: 1rem; }
  h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
  h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem); font-weight: 800; }
  h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 800; }
  h3 { font-size: 1.15rem; font-weight: 750; }
  a { color: var(--orange-text); text-decoration: none; }
  a:hover { text-decoration: underline; text-underline-offset: 3px; }
  :is(p, li, dd, td) a:not(.btn, .link-arrow) { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
  :focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
  .skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 100; }
  .skip:focus { left: 8px; }
  .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@layer layout {
  .wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
  .section { padding-block: clamp(56px, 8vw, 104px); }
  .section.navy { background: var(--navy); color: #fff; }
  .section.navy h2, .section.navy h3 { color: #fff; }
  .section.navy p { color: var(--on-navy); }
  .section.white { background: var(--surface); }
  .section-head { max-width: 760px; margin-bottom: 36px; display: grid; gap: 12px; }
  .grid-2 { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: center; }
  .grid-3 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

  .site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .header-row { display: flex; align-items: center; gap: 20px; min-height: 76px; }
  .brand img { width: 150px; height: auto; }
  .main-nav { display: flex; gap: 22px; margin-left: auto; }
  .main-nav a { color: var(--ink-2); font-weight: 650; font-size: .95rem; }
  .main-nav a[aria-current="page"] { color: var(--orange-text); }
  .header-actions { display: flex; align-items: center; gap: 12px; }
  .nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; place-content: center; gap: 4px; }
  .nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
  .mobile-nav { display: grid; gap: 4px; padding: 12px 16px 18px; border-top: 1px solid var(--line); background: var(--surface); }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav a { padding: 10px 4px; font-weight: 650; color: var(--ink); }
  .mobile-nav .btn { margin-top: 8px; justify-content: center; }
  @media (max-width: 900px) {
    .main-nav { display: none; }
    .nav-toggle { display: grid; }
    .header-actions { margin-left: auto; }
    .header-actions { gap: 8px; }
  }

  .site-footer { background: var(--navy); color: var(--on-navy); padding: 56px 0 24px; margin-top: 0; }
  .footer-grid { display: grid; gap: 28px; grid-template-columns: 1.4fr repeat(4, 1fr); }
  @media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
  .footer-logo { background: #fff; border-radius: 12px; padding: 8px 10px; margin-bottom: 14px; }
  .site-footer h2 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
  .site-footer ul { list-style: none; padding: 0; display: grid; gap: 8px; }
  .site-footer a { color: var(--on-navy); }
  .site-footer a:hover { color: #fff; }
  .footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid rgb(255 255 255 / .12); margin-top: 36px; padding-top: 18px; font-size: .9rem; }
}

@layer components {
  .btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 700; border: 2px solid transparent; cursor: pointer; text-decoration: none !important; line-height: 1.2; transition: background .15s, border-color .15s, transform .15s; }
  .btn:hover { transform: translateY(-1px); }
  .btn-primary { background: var(--orange-text); color: #fff; }
  .btn-primary:hover { background: var(--orange-hover); }
  .btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
  .btn-light { background: #fff; color: var(--navy); }
  .btn-outline-light { border-color: rgb(255 255 255 / .5); color: #fff; }
  .btn-wa { background: #1B7A45; color: #fff; }
  .btn-sm { padding: 8px 14px; font-size: .9rem; }
  .cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
  .eyebrow { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-text); }
  .navy .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--orange); }
  .lede { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--ink-2); max-width: 64ch; }
  .muted { color: var(--muted); }
  .link-arrow { font-weight: 700; }
  .link-arrow::after { content: " →"; }
  .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 2.5vw, 28px); box-shadow: var(--shadow); }

  /* hero */
  .hero { background: radial-gradient(1200px 500px at 85% -10%, var(--navy-3), transparent), var(--navy); color: #fff; padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 100px); overflow: hidden; }
  .hero h1 { color: #fff; }
  .hero h1 .hl { color: var(--orange); }
  .hero .lede { color: var(--on-navy); }
  .hero-grid { display: grid; gap: 40px; grid-template-columns: 1.1fr .9fr; align-items: center; }
  @media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }
  .hero-car { border-radius: 24px; overflow: hidden; box-shadow: 0 40px 80px -30px rgb(0 0 0 / .6); aspect-ratio: 4 / 3; background: var(--navy-2); }
  .hero-car img { width: 100%; height: 100%; object-fit: cover; }
  .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 36px; }
  @media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
  .stat { background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12); border-radius: 16px; padding: 14px 16px; }
  .stat b { display: block; font-size: 1.6rem; color: #fff; }
  .stat span { font-size: .88rem; color: var(--on-navy); }

  .page-hero { background: var(--navy); color: #fff; padding: clamp(40px, 6vw, 72px) 0; }
  .page-hero h1 { color: #fff; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
  .page-hero .lede { color: var(--on-navy); margin-top: 12px; }
  .breadcrumb { font-size: .9rem; color: var(--on-navy); margin-bottom: 14px; }
  .breadcrumb a { color: #fff; }

  /* steps */
  .steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); counter-reset: step; list-style: none; padding: 0; }
  .step { position: relative; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); counter-increment: step; }
  .step::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--orange-soft); color: var(--orange-text); font-weight: 800; margin-bottom: 12px; }
  .step p { color: var(--ink-2); font-size: .95rem; margin-top: 6px; }

  .service h3 { margin-bottom: 8px; }
  .ticks { list-style: none; padding: 0; display: grid; gap: 8px; margin-top: 14px; }
  .ticks li { position: relative; padding-left: 28px; color: var(--ink-2); }
  .ticks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%;
    background: var(--orange-text) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
  .navy .ticks li { color: var(--on-navy); }

  /* vehicles */
  .car-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
  .car { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: inherit; text-decoration: none !important; transition: transform .2s var(--ease), box-shadow .2s; }
  .car[hidden] { display: none; }
  a.car:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -28px rgb(10 36 66 / .5); }
  .car-photo { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); }
  .car-photo img { width: 100%; height: 100%; object-fit: cover; }
  .car-body { padding: 16px 18px 18px; display: grid; gap: 6px; align-content: start; }
  .car-body h3 { font-size: 1.08rem; }
  .car-specs { font-size: .9rem; color: var(--muted); }
  .car-price { font-size: 1.2rem; font-weight: 800; color: var(--ink); }
  .car-note { font-size: .82rem; color: var(--muted); }
  .badge { position: absolute; left: 12px; top: 12px; padding: 5px 11px; border-radius: 999px; font-size: .78rem; font-weight: 800; background: #E3F4EA; color: #1B7A45; }
  .badge.in_transit { background: #E4EDF9; color: #1D4F91; }
  .badge.reserved { background: var(--orange-soft); color: var(--orange-text); }
  .badge.sold, .badge.delivered { background: var(--surface-2); color: #4A5466; }
  .car.is-sold .car-photo img { filter: grayscale(.6); opacity: .85; }
  .filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
  .filters button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 16px; font-weight: 650; cursor: pointer; }
  .filters button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
  .empty-note { padding: 28px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--muted); }

  .vehicle-layout { display: grid; gap: 32px; grid-template-columns: 1.3fr 1fr; align-items: start; }
  @media (max-width: 900px) { .vehicle-layout { grid-template-columns: 1fr; } }
  .gallery-main { border-radius: var(--radius); overflow: hidden; background: var(--surface-2); aspect-ratio: 4 / 3; }
  .gallery-main img { width: 100%; height: 100%; object-fit: contain; background: #0b1220; }
  .thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 10px; }
  .thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; aspect-ratio: 4 / 3; }
  .thumbs button[aria-current="true"] { border-color: var(--orange-text); }
  .thumbs img { width: 100%; height: 100%; object-fit: cover; }
  .spec-table { width: 100%; border-collapse: collapse; margin: 14px 0; }
  .spec-table th, .spec-table td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
  .spec-table th { color: var(--muted); font-weight: 600; width: 42%; }
  .price-box { display: grid; gap: 6px; }
  .price-box .car-price { font-size: 1.8rem; }
  .notice { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--orange-soft); color: var(--ink); font-size: .93rem; }

  /* forms */
  .form { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
  .form .full { grid-column: 1 / -1; }
  @media (max-width: 620px) { .form { grid-template-columns: 1fr; } }
  .field { display: grid; gap: 6px; }
  .field label { font-weight: 650; font-size: .92rem; }
  .field input, .field select, .field textarea { width: 100%; border: 1px solid #CBD5E1; border-radius: 12px; padding: 12px 14px; background: #fff; }
  .field textarea { min-height: 130px; resize: vertical; }
  .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange-text); box-shadow: 0 0 0 4px rgb(166 76 13 / .18); }
  .form-status { min-height: 1.4em; font-weight: 650; }
  .contact-list { list-style: none; padding: 0; display: grid; gap: 14px; }
  .contact-list strong { display: block; }

  .faq { display: grid; gap: 10px; }
  .faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 18px; }
  .faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
  .faq summary::after { content: "+"; font-size: 1.3rem; color: var(--orange-text); }
  .faq details[open] summary::after { content: "–"; }
  .faq details p { padding-bottom: 14px; color: var(--ink-2); }

  .partners { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
  .partner-name { font-size: 1.6rem; font-weight: 800; color: #fff; }

  .prose { max-width: 780px; }
  .prose h2 { font-size: 1.45rem; margin: 34px 0 10px; }
  .prose p, .prose li { color: var(--ink-2); }
  .prose p + p { margin-top: 12px; }
  .prose ul, .prose ol { padding-left: 22px; display: grid; gap: 6px; margin: 10px 0; }
  .callout { margin: 20px 0; padding: 16px 20px; border-radius: var(--radius-sm); background: var(--orange-soft); }
  .callout p { color: var(--ink); }

  .wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #1B7A45; color: #fff; box-shadow: 0 14px 30px -10px rgb(0 0 0 / .45); }
  .wa-float:hover { text-decoration: none; transform: scale(1.05); }
}

@layer utilities {
  .mt-s { margin-top: 10px; } .mt-m { margin-top: 20px; } .mt-l { margin-top: 36px; }
  .center { text-align: center; }
}

@layer components {
  /* Header quote button stays visible on phones (it is the main lead action) but compact, on one line. */
  .header-actions .btn { white-space: nowrap; }
  @media (max-width: 900px) { .header-actions .btn { padding: 9px 14px; font-size: .9rem; } }
  @media (max-width: 340px) { .header-actions .btn { display: none; } }
}

@layer components {
  /* cost calculator */
  .calc-layout { display: grid; gap: 24px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
  @media (max-width: 900px) { .calc-layout { grid-template-columns: 1fr; } }
  .calc { display: grid; gap: 22px; }
  .calc fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
  .calc fieldset[hidden] { display: none; }
  .calc legend { font-weight: 800; font-size: 1.05rem; margin-bottom: 4px; }
  .field small { color: var(--muted); font-size: .85rem; }
  .check { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; }
  .check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--orange-text); }
  .calc-result { position: sticky; top: 96px; }
  .calc-result tr[hidden] { display: none; }
  .calc-total { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; margin: 16px 0 8px; padding-top: 14px; border-top: 2px solid var(--ink); }
  .calc-total strong { font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); }
  @media (max-width: 900px) { .calc-result { position: static; } }

  /* guides */
  .guide-grid { align-items: stretch; }
  .guide-card { display: grid; gap: 8px; align-content: start; color: inherit; text-decoration: none !important; transition: transform .2s var(--ease), box-shadow .2s; }
  .guide-card h3 { font-size: 1.12rem; }
  .guide-card:hover { transform: translateY(-3px); }
  .prose table { margin: 14px 0; }
  .glossary { display: grid; gap: 4px; }
  .glossary dt { font-weight: 800; margin-top: 16px; scroll-margin-top: 96px; }
  .glossary dd { margin: 0; color: var(--ink-2); }
  .glossary dt:target, .glossary dt:target + dd { background: var(--orange-soft); }

  /* car pages: what happens next */
  .next-steps { padding: 16px 18px; border-radius: var(--radius-sm); background: var(--surface-2); }
  .next-steps h2 { font-size: 1.05rem; margin-bottom: 8px; }
  .next-steps ol { padding-left: 20px; display: grid; gap: 6px; font-size: .93rem; color: var(--ink-2); }
}

@layer components {
  /* tracking and VIN tools */
  .track-layout { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: start; }
  @media (max-width: 900px) { .track-layout { grid-template-columns: 1fr; } }
  .track-layout > [hidden] { display: none; }
  .track-card { display: grid; gap: 12px; }
  .track-card h2 { font-size: 1.4rem; }
  .track-card h3 { font-size: 1.05rem; margin-top: 8px; }
  .track-now { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
  .track-now .badge { position: static; }
  .track-steps { list-style: none; padding: 0; margin: 4px 0; display: grid; gap: 4px; }
  .track-steps li { position: relative; padding: 4px 0 4px 28px; color: var(--muted); }
  .track-steps li::before { content: ''; position: absolute; left: 4px; top: 8px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #CBD5E1; background: var(--surface); }
  .track-steps li.done { color: var(--ink); }
  .track-steps li.done::before { background: #1B7A45; border-color: #1B7A45; }
  .track-steps li.current { color: var(--ink); font-weight: 750; }
  .track-steps li.current::before { background: var(--orange-text); border-color: var(--orange-text); box-shadow: 0 0 0 4px var(--orange-soft); }
  .track-steps small, .track-updates small { color: var(--muted); font-weight: 400; }
  .track-updates { padding-left: 18px; display: grid; gap: 8px; }
}

@layer components {
  .track-layout:has(> form[hidden]) { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
}

@layer components {
  /* engines & parts */
  .fit-search { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; }
  .fit-search .fit-status { grid-column: 1 / -1; margin: 0; color: var(--ink-2); }
  .fit-search .fit-status:empty { display: none; }
  @media (max-width: 720px) { .fit-search { grid-template-columns: 1fr 1fr; } }
  .part[hidden] { display: none; }
  .part-noimg { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; font-size: 3rem; color: var(--muted); background: var(--surface-2); }
  .part-fit-flag { color: #1B7A45; font-weight: 750; font-size: .9rem; }
  .part-fit-flag[hidden] { display: none; }
}
