/**
 * @file styles.css
 * @description Visual system for Bville Mobile Detailing — premium automotive look.
 *              Deep navy + electric cyan, mobile-first responsive.
 *
 * @status In progress
 * @issues None
 * @todo Swap hero gradient for a real hero photo once available
 */

/* ===================== TOKENS ===================== */
:root {
  --ink: #0f172a;          /* near-black navy */
  --ink-2: #1e293b;
  --slate: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-dark: #0b1220;
  --accent: #06b6d4;       /* electric cyan */
  --accent-2: #2563eb;     /* electric blue */
  --accent-ink: #0e7490;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 2px 8px rgba(15, 23, 42, .05);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, .10);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .18);
  --grad: linear-gradient(120deg, var(--accent), var(--accent-2));
  --wrap: 1140px;
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

/* ===================== RESET ===================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .4em; letter-spacing: -0.02em; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(var(--wrap), 92%); margin-inline: auto; }
.grad { color: var(--accent); } /* solid cyan emphasis — cleaner/more premium than gradient text */

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  padding: .7rem 1.25rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(6, 182, 212, .22); }
.btn-primary:hover { background: var(--accent-ink); box-shadow: 0 10px 22px rgba(6, 182, 212, .3); transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); padding-inline: .5rem; }
.btn-ghost:hover { color: var(--accent-ink); }
.btn-lg { padding: .95rem 1.7rem; font-size: 1.05rem; }
.btn.full { width: 100%; }

/* ===================== HEADER ===================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: var(--accent); color: #fff; font-size: 1.25rem; font-weight: 800;
  box-shadow: 0 4px 12px rgba(6, 182, 212, .25);
}
.brand-accent { color: var(--accent-ink); }
.nav { display: flex; gap: 1.4rem; margin-left: auto; }
.nav a { font-weight: 500; color: var(--slate); font-size: .95rem; position: relative; }
.nav a:hover { color: var(--ink); }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--grad); transition: width .2s ease; }
.nav a:hover::after { width: 100%; }
.header-cta { display: flex; align-items: center; gap: .75rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; flex-direction: column; gap: .25rem; padding: 0 4% 1rem; }
.mobile-nav a { padding: .8rem .25rem; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink-2); }
.mobile-nav a.btn { border-bottom: 0; margin-top: .75rem; }
.mobile-nav.open { display: flex; }

/* ===================== HERO ===================== */
.hero { position: relative; overflow: hidden; background: var(--bg-dark); color: #fff; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(8,13,24,.95) 0%, rgba(8,13,24,.8) 44%, rgba(8,13,24,.5) 100%),
    url("/assets/hero.jpg") center 28% / cover no-repeat;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 480px at 88% 10%, rgba(6,182,212,.2), transparent 62%);
}
.hero-inner { position: relative; padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem); max-width: 760px; }
.eyebrow { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--accent); margin: 0 0 1rem; }
.hero-title { font-size: clamp(2.4rem, 6.5vw, 4.2rem); font-weight: 800; margin: 0 0 1.1rem; }
.hero-sub { font-size: clamp(1.05rem, 2.3vw, 1.3rem); color: #cbd5e1; max-width: 600px; margin: 0 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 2.2rem; }
.hero .btn-outline { border-color: rgba(255,255,255,.5); color: #fff; }
.hero .btn-outline:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; color: #94a3b8; font-size: .95rem; }
.hero-trust li { position: relative; padding-left: 1.5rem; }
.hero-trust li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.hero-trust strong { color: #fff; font-weight: 600; }

/* ===================== STATS ===================== */
.stats { background: var(--ink); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.6rem 0; }
.stat { text-align: center; padding: .5rem; }
.stat-num { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--accent); }
.stat-label { display: block; font-size: .85rem; color: #94a3b8; }

/* ===================== SECTIONS ===================== */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-head { max-width: 660px; margin: 0 auto clamp(2rem, 5vw, 3.5rem); text-align: center; }
.section-head .eyebrow { color: var(--accent-ink); }
.section-head h2 { font-size: clamp(1.8rem, 4.5vw, 2.7rem); }
.section-lead { color: var(--slate); font-size: 1.08rem; margin: 0; }

/* HOW */
.how { background: var(--bg-soft); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.6rem; box-shadow: var(--shadow-sm); }
.step-num { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; margin-bottom: 1rem; }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--slate); margin: 0; }

/* PRICING */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.price-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.7rem; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.price-card.featured { border: 2px solid var(--accent); box-shadow: var(--shadow-lg); }
.price-card h3 { font-size: 1.4rem; }
.price-card-desc { color: var(--slate); font-size: .96rem; min-height: 3em; }
.badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; padding: .35rem .9rem; border-radius: 999px; }
.tier-list { margin: 1.2rem 0 1.6rem; border-top: 1px solid var(--line); }
.tier-list li { display: flex; justify-content: space-between; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--line); color: var(--slate); font-size: .96rem; }
.tier-price { font-family: var(--font-head); font-weight: 800; color: var(--ink); font-size: 1.15rem; }
.price-card .btn { margin-top: auto; }

/* ADD-ONS */
.addons { margin-top: 3rem; }
.addons-title { text-align: center; font-size: 1.3rem; margin-bottom: 1.3rem; }
.addon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.addon-grid li { display: flex; justify-content: space-between; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .85rem 1.1rem; font-size: .95rem; }
.addon-grid li span:last-child { font-family: var(--font-head); font-weight: 700; color: var(--accent-ink); }

/* CERAMIC */
.ceramic-callout { margin-top: 3rem; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 2.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.ceramic-callout h3 { font-size: 1.5rem; color: #fff; }
.ceramic-callout p { color: #cbd5e1; margin: 0; max-width: 620px; }
.ceramic-callout strong { color: var(--accent); }

/* MEMBERSHIPS */
.memberships { background: var(--bg-soft); }
.member-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.member-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.7rem; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.member-card.featured { border: 2px solid var(--accent); box-shadow: var(--shadow-lg); }
.member-card h3 { font-size: 1.25rem; }
.member-price { font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; color: var(--ink); margin: .2rem 0 0; }
.member-price span { font-size: 1rem; font-weight: 600; color: var(--muted); }
.member-save { color: var(--accent-ink); font-weight: 600; font-size: .92rem; margin: 0 0 1.2rem; }
.check-list { margin-bottom: 1.6rem; }
.check-list li { padding: .5rem 0 .5rem 1.6rem; position: relative; color: var(--slate); font-size: .95rem; border-bottom: 1px solid var(--line); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.member-card .btn { margin-top: auto; }

/* WHY */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.why-item { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.why-item h3 { font-size: 1.2rem; }
.why-item p { color: var(--slate); margin: 0; }

/* AREA */
.area { background: var(--bg-dark); color: #fff; }
.area-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: center; }
.area .eyebrow { color: var(--accent); }
.area h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.area p { color: #cbd5e1; }
.area-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: 1.5rem; }
.area-list li { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-sm); padding: .6rem .9rem; font-size: .92rem; font-weight: 500; }
.area-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-lg); }
.area-card h3 { font-size: 1.3rem; }
.area-card p { color: var(--slate); }

/* REVIEWS */
.review-cta { text-align: center; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: .8rem; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 1.3rem; box-shadow: var(--shadow-sm); }
.faq-item summary { cursor: pointer; padding: 1.15rem 0; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--accent-ink); transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--slate); margin: 0 0 1.2rem; }

/* BOOK */
.book { background: var(--bg-soft); }
.book-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.book-copy .eyebrow { color: var(--accent-ink); }
.book-copy h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.book-copy p { color: var(--slate); }
.book-contacts { margin-top: 1.6rem; display: grid; gap: .7rem; }
.contact-row { display: flex; align-items: center; gap: .7rem; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.contact-row:hover { color: var(--accent-ink); }
.book-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-md); display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; padding: .75rem .9rem; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--bg-soft); color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(6, 182, 212, .18); background: #fff; }
.form-status { margin: 0; font-size: .92rem; font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: #15803d; }
.form-status.err { color: #b91c1c; }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--ink); color: #cbd5e1; padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand { color: #fff; margin-bottom: 1rem; }
.footer-tag { color: #94a3b8; font-size: .92rem; max-width: 320px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.site-footer ul li { padding: .3rem 0; font-size: .92rem; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; color: #64748b; }
.footer-bottom p { margin: 0; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .steps, .price-grid, .member-grid, .addon-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .area-inner, .book-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .steps, .price-grid, .member-grid, .addon-grid { grid-template-columns: 1fr; }
  .area-list { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .ceramic-callout { text-align: center; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* ===================== LEGAL / CONTENT PAGES ===================== */
.legal-header { border-bottom: 1px solid var(--line); background: #fff; }
.legal-header .header-inner { justify-content: space-between; }
.legal-main { padding: clamp(2.5rem, 6vw, 4.5rem) 0; background: var(--bg-soft); }
.legal-doc {
  width: min(820px, 92%); margin-inline: auto; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 3rem);
  box-shadow: var(--shadow-sm);
}
.legal-doc h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.legal-updated { color: var(--muted); font-size: .9rem; margin: 0 0 2rem; }
.legal-doc h2 { font-size: 1.3rem; margin-top: 2.2rem; }
.legal-doc h3 { font-size: 1.05rem; margin-top: 1.4rem; }
.legal-doc p, .legal-doc li { color: var(--slate); }
.legal-doc ul { list-style: disc; padding-left: 1.4rem; margin: .6rem 0; }
.legal-doc li { margin: .3rem 0; }
.legal-doc a { color: var(--accent-ink); text-decoration: underline; }
.legal-back { display: inline-flex; align-items: center; gap: .4rem; margin-top: 2rem; font-weight: 600; color: var(--accent-ink); }
