/* ============================================================
   Doctor Scooter On Calls — Honolulu mobile scooter repair
   Palette derived from the business card: navy, cyan, sunset
   orange on warm island cream. Retro-friendly, mobile-first.
   ============================================================ */

:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.4rem + 2.5vw, 3.25rem);

  /* Spacing */
  --space-1: 0.25rem;  --space-2: 0.5rem;   --space-3: 0.75rem;
  --space-4: 1rem;     --space-5: 1.25rem;  --space-6: 1.5rem;
  --space-8: 2rem;     --space-10: 2.5rem;  --space-12: 3rem;
  --space-16: 4rem;    --space-20: 5rem;    --space-24: 6rem;

  /* Colors — island cream surfaces, navy ink, sunset orange accent */
  --color-bg: #faf3e6;
  --color-surface: #fffaf0;
  --color-surface-2: #fffdf6;
  --color-tint: #f1e7d2;
  --color-divider: #e4d8bf;
  --color-border: #d9cba9;

  --color-text: #1b2b3c;
  --color-text-muted: #5c6672;
  --color-text-inverse: #faf3e6;

  --color-navy: #1d4e89;
  --color-navy-deep: #143a68;
  --color-orange: #e8622c;
  --color-orange-deep: #c74a18;
  --color-cyan: #7ec8e3;
  --color-cream: #faf3e6;

  --shadow-sm: 0 1px 2px rgba(27, 43, 60, 0.08);
  --shadow-md: 0 4px 14px rgba(27, 43, 60, 0.10);
  --shadow-lg: 0 14px 36px rgba(27, 43, 60, 0.16);

  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: 'Chillax', 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Helvetica Neue', sans-serif;

  --content-default: 1080px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-20);
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

img, picture, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { text-wrap: balance; line-height: 1.12; font-family: var(--font-display); }
p, li { text-wrap: pretty; }

a, button { transition: color var(--transition-interactive), background var(--transition-interactive), border-color var(--transition-interactive), box-shadow var(--transition-interactive); }

:focus-visible { outline: 2px solid var(--color-orange); outline-offset: 3px; border-radius: var(--radius-sm); }

::selection { background: rgba(232, 98, 44, 0.28); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--color-navy); color: var(--color-cream);
  padding: var(--space-3) var(--space-5); border-radius: var(--radius-sm);
  z-index: 100;
}
.skip-link:focus { left: var(--space-4); top: var(--space-4); }

.container { width: min(var(--content-default), 100% - var(--space-10)); margin-inline: auto; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 243, 230, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-divider);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.header--hidden { transform: translateY(-110%); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
  width: min(var(--content-default), 100% - var(--space-8));
  margin-inline: auto;
}

.brand { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; color: inherit; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); color: var(--color-navy-deep); line-height: 1.1; }
.brand-name em { font-style: normal; color: var(--color-orange); }

.nav { display: none; gap: var(--space-6); }
.nav a {
  font-size: var(--text-sm); font-weight: 600; text-decoration: none;
  color: var(--color-text-muted);
}
.nav a:hover { color: var(--color-navy); }

@media (min-width: 820px) { .nav { display: flex; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-body); font-weight: 700; text-decoration: none;
  border-radius: var(--radius-full);
  background: var(--color-orange); color: #fff;
  padding: var(--space-3) var(--space-5);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn:hover { background: var(--color-orange-deep); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { font-size: var(--text-sm); padding: var(--space-2) var(--space-4); }
.btn-lg { font-size: var(--text-lg); padding: var(--space-4) var(--space-8); }

.inline-link { color: var(--color-orange-deep); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.inline-link:hover { color: var(--color-navy); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(var(--space-10), 7vw, var(--space-20)); background: var(--color-bg); }
.hero-grid { display: grid; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }

.eyebrow {
  display: inline-block;
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-orange-deep);
  background: var(--color-tint);
  border: 1px solid var(--color-divider);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
}
.eyebrow-center { margin-inline: auto; text-align: center; display: table; }

.hero h1 { font-size: var(--text-2xl); font-weight: 700; color: var(--color-navy-deep); margin-block: var(--space-5) var(--space-4); }
.hero h1 .accent { color: var(--color-orange); display: block; }
.hero-sub { font-size: var(--text-lg); color: var(--color-text-muted); max-width: 34ch; }

.hero-points { margin-block: var(--space-6); display: grid; gap: var(--space-3); list-style: none; }
.hero-points li { display: flex; align-items: flex-start; gap: var(--space-3); font-weight: 600; }
.hero-points svg { width: 1.25em; height: 1.25em; flex: none; margin-top: 0.28em; color: var(--color-orange); }

.hero-cta { display: grid; gap: var(--space-3); justify-items: start; }
.cta-note { font-family: var(--font-display); font-weight: 600; font-style: italic; color: var(--color-navy); font-size: var(--text-lg); }
.service-fee { margin-block: var(--space-4) var(--space-5); font-size: var(--text-sm); color: var(--color-text-muted); max-width: 52ch; }
.service-fee strong { color: var(--color-navy-deep); }

.hero-art img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-divider);
  box-shadow: var(--shadow-lg);
  background: var(--color-surface);
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(var(--space-12), 7vw, var(--space-20)); }
.section-tint { background: var(--color-tint); border-block: 1px solid var(--color-divider); }

.section-title { font-size: var(--text-xl); font-weight: 700; color: var(--color-navy-deep); margin-block: var(--space-4) var(--space-6); max-width: 24ch; }
.section-tint .section-title, .section-title:has(+ *) { margin-bottom: var(--space-8); }
.section > .container > .eyebrow-center + .section-title { margin-inline: auto; text-align: center; max-width: none; }

/* Services cards */
.cards { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: var(--space-3);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3 { font-size: var(--text-lg); color: var(--color-navy-deep); }
.card p { color: var(--color-text-muted); font-size: var(--text-sm); }

.card-icon {
  width: 52px; height: 52px; flex: none;
  display: grid; place-items: center;
  background: var(--color-navy); color: var(--color-cream);
  border-radius: var(--radius-md);
}
.card-icon svg { width: 26px; height: 26px; }

/* Steps */
.steps { display: grid; gap: var(--space-5); grid-template-columns: 1fr; margin-bottom: var(--space-10); }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
}
.step h3 { font-size: var(--text-lg); color: var(--color-navy-deep); margin-block: var(--space-3) var(--space-2); }
.step p { color: var(--color-text-muted); font-size: var(--text-sm); }

.step-num {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-orange); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg);
}

.how-figure { max-width: 560px; margin-inline: auto; }
.how-figure img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-divider);
  box-shadow: var(--shadow-md);
}

/* Roadside / emergency */
.roadside-grid { display: grid; gap: var(--space-10); align-items: start; }
@media (min-width: 900px) { .roadside-grid { grid-template-columns: 1.15fr 0.85fr; } }

.roadside-grid > div > p { color: var(--color-text-muted); max-width: 58ch; margin-bottom: var(--space-5); }

.roadside-audience {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}
.roadside-audience h3 { font-size: var(--text-lg); color: var(--color-navy-deep); margin-bottom: var(--space-5); }
.roadside-audience ul { list-style: none; display: grid; gap: var(--space-5); }
.roadside-audience li { color: var(--color-text-muted); font-size: var(--text-sm); padding-left: var(--space-5); border-left: 3px solid var(--color-orange); }
.roadside-audience li strong { color: var(--color-navy-deep); display: block; font-size: var(--text-base); margin-bottom: var(--space-1); }

/* Area */
.area-grid { display: grid; gap: var(--space-8); align-items: start; }
@media (min-width: 900px) { .area-grid { grid-template-columns: 1.2fr 1fr; } }

.chips { display: flex; flex-wrap: wrap; gap: var(--space-3); list-style: none; }
.chips li {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--text-base);
  background: var(--color-navy); color: var(--color-cream);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
}
.chips li:nth-child(4n+2) { background: var(--color-orange); }
.chips li:nth-child(4n+3) { background: var(--color-surface); color: var(--color-navy-deep); border: 2px solid var(--color-navy); }

/* About */
.about-grid { display: grid; gap: var(--space-10); align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 0.85fr 1.15fr; } }

.about-portrait { max-width: 340px; margin-inline: auto; }
.about-portrait img { border-radius: var(--radius-full); border: 4px solid var(--color-surface); box-shadow: var(--shadow-md); }

.about-grid p { color: var(--color-text-muted); margin-bottom: var(--space-4); max-width: 58ch; }
.about-grid p strong { color: var(--color-navy-deep); }
.about-tag { font-family: var(--font-display); font-style: italic; font-weight: 600; color: var(--color-orange-deep) !important; font-size: var(--text-lg); }

/* CTA band */
.payment-jump { margin-bottom: var(--space-5); font-size: var(--text-sm); }
.payment-layout { display: grid; gap: var(--space-10); align-items: start; }
.payment-options { display: grid; gap: var(--space-4); }
.payment-option { padding: var(--space-6); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); background: var(--color-surface); }
.payment-option h3 { font-family: var(--font-body); font-size: var(--text-lg); color: var(--color-navy-deep); }
.payment-option p { font-size: var(--text-sm); color: var(--color-text-muted); margin-block: var(--space-2) var(--space-4); }
.payment-option .btn { background: var(--color-navy); font-size: var(--text-sm); white-space: normal; text-align: center; }
.payment-option .btn:hover { background: var(--color-navy-deep); }
.payment-note { color: var(--color-text-muted); font-size: var(--text-sm); margin-top: var(--space-4); }
@media (min-width: 900px) { .payment-layout { grid-template-columns: 1fr 1fr; } }

.cta-band {
  background:
    radial-gradient(circle at 85% 15%, rgba(232, 98, 44, 0.35), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(126, 200, 227, 0.25), transparent 40%),
    var(--color-navy-deep);
  color: var(--color-text-inverse);
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
}
.cta-inner { display: grid; gap: var(--space-8); align-items: center; justify-items: center; text-align: center; }
@media (min-width: 820px) { .cta-inner { grid-template-columns: 1.2fr auto; text-align: left; justify-items: stretch; } }

.cta-band h2 { font-size: var(--text-xl); color: #fff; max-width: 22ch; }
.cta-band p { color: rgba(250, 243, 230, 0.85); margin-top: var(--space-3); }

/* ---------- Footer ---------- */
.footer { background: var(--color-navy-deep); color: var(--color-cream); padding-block: var(--space-12) var(--space-6); }
.footer-inner { display: grid; gap: var(--space-6); }
@media (min-width: 700px) { .footer-inner { grid-template-columns: 1fr auto; align-items: center; } }

.footer .brand-name { color: #fff; }
.footer-brand p { color: rgba(250, 243, 230, 0.75); font-size: var(--text-sm); margin-top: var(--space-2); }

.footer-contact { text-align: left; }
@media (min-width: 700px) { .footer-contact { text-align: right; } }
.footer-tag { font-family: var(--font-display); font-style: italic; font-weight: 600; color: var(--color-cyan); margin-bottom: var(--space-1); }
.footer-contact a { color: #fff; font-weight: 700; font-size: var(--text-lg); text-decoration: none; border-bottom: 3px solid var(--color-orange); }
.footer-contact a:hover { color: var(--color-cyan); }

.footer-bottom { border-top: 1px solid rgba(250, 243, 230, 0.2); margin-top: var(--space-8); padding-top: var(--space-5); }
.footer-bottom p { font-size: var(--text-xs); color: rgba(250, 243, 230, 0.6); }

/* Header call button on small screens: phone number shortened */
@media (max-width: 480px) {
  .btn-sm .btn-num { display: none; }
  .btn-sm::after { content: "Call Now"; }
}
