/* ShareSpace Carpool website. Colours follow the app: brand blue, soft greys, green for "good". */
:root {
  --blue-50: #e5f0ff;
  --blue-100: #cfe2ff;
  --blue-500: #2b80ff;
  --blue-600: #1d5fd8; /* white text on this passes AA */
  --blue-700: #1547c4;
  --blue-900: #0b2a73;
  --ink: #0a0d0f;
  --ink-2: #3c4650;
  --ink-3: #5b6672;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --green: #0e9f66;
  --amber: #ffaa29;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(14, 41, 105, 0.10);
  --maxw: 1160px;
  --font: "Wix Madefor Text", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); }
a:hover { color: var(--blue-700); }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-600); background: var(--blue-50); padding: 6px 12px; border-radius: 999px; margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .98rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--blue-50); color: var(--blue-700); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; border-radius: 10px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 14px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--blue-600); color: #fff; }
.btn-primary:hover { background: var(--blue-700); color: #fff; }
.btn-ghost { border-color: var(--blue-600); color: var(--blue-600); background: transparent; }
.btn-ghost:hover { background: var(--blue-50); }
.btn-light { background: #fff; color: var(--blue-700); }
.btn-light:hover { background: var(--blue-50); color: var(--blue-700); }
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; left: 0; right: 0; top: 68px; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px 20px 18px; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
}

/* hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(255,255,255,.18), transparent 60%), linear-gradient(135deg, #1d5fd8 0%, #1547c4 55%, #0e338f 100%); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: center; padding-top: 64px; padding-bottom: 0; min-height: 600px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: #ffd27a; }
.hero .lead { color: rgba(255,255,255,.92); }
.hero .eyebrow { background: rgba(255,255,255,.16); color: #fff; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 8px; align-items: center; }
.badges a { display: inline-block; line-height: 0; border-radius: 10px; }
.badges img { height: 48px; width: auto; }
.hero-note { font-size: .9rem; color: rgba(255,255,255,.8); margin: 6px 0 0; }
.hero-shots { position: relative; height: 560px; align-self: end; }
.hero-shots img { position: absolute; width: 270px; border-radius: 26px; box-shadow: 0 30px 60px rgba(4,18,60,.45); border: 1px solid rgba(255,255,255,.25); }
.hero-shots .a { left: 4%; top: 36px; transform: rotate(-4deg); }
.hero-shots .b { right: 4%; top: 90px; transform: rotate(3deg); }
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 44px; min-height: 0; }
  .hero-shots { height: 440px; margin-top: 10px; }
  .hero-shots img { width: 210px; }
}

/* trust strip */
.strip { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.strip ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin: 0; padding: 16px 0; color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.strip li::before { content: "✓"; color: var(--green); font-weight: 800; margin-right: 8px; }

/* sections */
section { padding: 84px 0; }
section.soft { background: var(--bg-soft); }
.grid { display: grid; gap: 22px; }
.grid.f3 { grid-template-columns: repeat(3, 1fr); }
.grid.f2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) { .grid.f3, .grid.f2 { grid-template-columns: 1fr; } section { padding: 60px 0; } }
@media (min-width: 881px) and (max-width: 1060px) { .grid.f3 { grid-template-columns: repeat(2, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 1px 0 rgba(10,13,15,.02); }
.card:hover { box-shadow: var(--shadow); }
.icon { width: 50px; height: 50px; border-radius: 14px; background: var(--blue-50); color: var(--blue-600); display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-2); margin: 0; font-size: .98rem; }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head .lead { margin: 0 auto; }

/* steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.steps li::before { content: counter(s); width: 44px; height: 44px; border-radius: 50%; background: var(--blue-600); color: #fff; display: grid; place-items: center; font-weight: 800; }
.steps h3 { margin: 4px 0 4px; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--ink-2); font-size: .97rem; }

/* gallery */
.gallery { display: flex; gap: 18px; overflow-x: auto; padding: 8px 20px 28px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.gallery img { width: 250px; flex: none; border-radius: 22px; scroll-snap-align: center; box-shadow: var(--shadow); }
.gallery-wrap { max-width: 1400px; margin: 0 auto; }

/* price card */
.pricebox { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); max-width: 420px; width: 100%; }
.pricebox h3 { margin-bottom: 14px; }
.pricebox .row { display: flex; justify-content: space-between; padding: 8px 0; color: var(--ink-2); }
.pricebox .row b { color: var(--ink); }
.pricebox .total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; font-size: 1.2rem; color: var(--ink); font-weight: 800; }
.pricebox .note { font-size: .88rem; color: var(--ink-3); margin: 14px 0 0; }
.two { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 880px) { .two { grid-template-columns: 1fr; gap: 28px; } }
.checks { list-style: none; padding: 0; margin: 18px 0 0; }
.checks li { padding-left: 30px; position: relative; margin-bottom: 10px; color: var(--ink-2); }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: #dff6ec; color: var(--green); font-weight: 800; font-size: .8rem; display: grid; place-items: center; }

/* faq */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: #fff; margin-bottom: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--blue-600); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); padding-bottom: 6px; }

/* blog cards */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 980px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .posts { grid-template-columns: 1fr; } }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: .2s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); color: inherit; }
.post-card img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; background: var(--blue-50); }
.post-card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.tag { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-600); }
.post-card h3 { font-size: 1.12rem; margin: 6px 0 8px; }
.post-card p { color: var(--ink-2); font-size: .94rem; margin: 0 0 12px; }
.meta { margin-top: auto; font-size: .85rem; color: var(--ink-3); }
.featured { grid-column: 1 / -1; flex-direction: row; }
.featured img { width: 52%; aspect-ratio: auto; height: 100%; min-height: 280px; }
.featured .body { padding: 30px; justify-content: center; }
.featured h3 { font-size: 1.7rem; }
@media (max-width: 820px) { .featured { flex-direction: column; } .featured img { width: 100%; min-height: 0; aspect-ratio: 1200 / 630; } }

/* article + prose */
.page-head { background: linear-gradient(135deg, #1d5fd8, #1547c4); color: #fff; padding: 56px 0 48px; }
.page-head h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: 10px; }
.page-head p { color: rgba(255,255,255,.9); max-width: 70ch; margin: 0; font-size: 1.1rem; }
.crumbs { font-size: .88rem; margin-bottom: 14px; color: rgba(255,255,255,.8); }
.crumbs a { color: #fff; }
.article { max-width: 760px; margin: 0 auto; padding: 48px 20px 20px; }
.article .cover { border-radius: var(--radius); margin-bottom: 30px; width: 100%; box-shadow: var(--shadow); }
.prose { font-size: 1.08rem; color: #1e252b; }
.prose h2 { margin-top: 1.7em; font-size: 1.7rem; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--blue-500); background: var(--bg-soft); border-radius: 0 12px 12px 0; color: var(--ink-2); }
.prose img { border-radius: 14px; margin: 1.2em 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 1.2em 0; font-size: .96rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--bg-soft); }
.post-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--ink-3); font-size: .92rem; margin-bottom: 22px; }
.cta-box { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin: 40px 0; text-align: center; }
.cta-box h3 { font-size: 1.4rem; }
.cta-box .badges { justify-content: center; }
.related { max-width: var(--maxw); margin: 0 auto; padding: 20px 20px 70px; }

/* legal + guide */
.legal { max-width: 860px; margin: 0 auto; padding: 48px 20px 80px; }
.legal h3 { margin-top: 1.8em; font-size: 1.3rem; }
.legal p, .legal li { color: #243038; font-size: 1.02rem; }
.legal ol, .legal ul { padding-left: 1.4em; }
.guide { max-width: 860px; margin: 0 auto; padding: 48px 20px 80px; display: grid; gap: 22px; }
.guide .toc { display: flex; flex-wrap: wrap; gap: 8px; }
.guide .toc a { background: var(--blue-50); color: var(--blue-700); text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .92rem; }
.guide article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; scroll-margin-top: 90px; }
.guide article h2 { font-size: 1.5rem; }

/* contact */
.contact { max-width: 720px; margin: 0 auto; padding: 48px 20px 90px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .95rem; }
.field input, .field textarea { width: 100%; padding: 13px 14px; border: 1.5px solid #cfd8e3; border-radius: 12px; font: inherit; background: #fff; }
.field input:focus, .field textarea:focus { border-color: var(--blue-500); outline: 3px solid rgba(43,128,255,.2); }
.notice { padding: 14px 16px; border-radius: 12px; margin-bottom: 18px; display: none; }
.notice.ok { display: block; background: #dff6ec; color: #0b5d3c; }
.notice.err { display: block; background: #fde8e6; color: #8a1c10; }
.hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }

/* CTA band + footer */
.band { background: linear-gradient(135deg, #1d5fd8, #0e338f); color: #fff; text-align: center; }
.band h2 { color: #fff; }
.band .lead { color: rgba(255,255,255,.9); margin: 0 auto 8px; }
.band .badges { justify-content: center; }
.site-footer { background: #0a1630; color: #c9d4ea; padding: 56px 0 28px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.f-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 820px) { .f-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .f-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: .95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.f-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .88rem; color: #9fb0d0; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
