/* =========================================================
   Premier Auto Detailing — Global Stylesheet
   Brand tokens live in :root — change colors/name once here.
   ========================================================= */

:root {
  /* Brand colors */
  --bg:        #0b0e13;   /* near-black background */
  --bg-2:      #11151d;   /* raised panels */
  --bg-3:      #171c26;   /* cards */
  --line:      #232a36;   /* hairline borders */
  --text:      #eef2f7;   /* primary text */
  --muted:     #9aa6b8;   /* secondary text */
  --accent:    #1fb6d8;   /* primary accent (cyan) */
  --accent-2:  #36e0ff;   /* bright accent for gradients */
  --accent-ink:#06222b;   /* text on accent */
  --gold:      #d8b14a;   /* premium highlight */

  /* Type */
  --font-head: "Oswald", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Layout */
  --maxw: 1180px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0,0,0,.45);
  --shadow-sm: 0 8px 24px rgba(0,0,0,.35);
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 80px;       /* drives header height + mobile menu offset */
  --logo-h: 58px;         /* header logo height */
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: .5px;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.6rem); }
p  { color: var(--muted); }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #c5cedb; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section--tight { padding: clamp(40px, 6vw, 70px) 0; }
.center { text-align: center; }
.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: .82rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}
.section-head { max-width: 720px; margin: 0 auto clamp(34px, 5vw, 56px); }
.section-head.center { text-align: center; }
.section-head p { margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: .92rem;
  font-weight: 600;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  box-shadow: 0 10px 30px rgba(31,182,216,.35);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(31,182,216,.5); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255,255,255,.02);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,14,19,.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-img {
  height: 48px; width: auto; flex: none;
}
.site-header .logo-img { height: var(--logo-h); }   /* bigger logo in top-left header */
.logo-text { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; line-height: 1; font-size: 1.18rem; }
.logo-text small { display: block; font-size: .62rem; letter-spacing: 2px; color: var(--muted); margin-top: 4px; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; align-items: center; gap: 26px; }
.nav-list > li > a { font-weight: 500; font-size: .95rem; color: #cdd6e2; transition: color .15s; padding: 8px 0; position: relative; }
.nav-list > li > a:hover, .nav-list > li > a.active { color: var(--text); }
.nav-list > li > a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--accent); border-radius: 2px;
}

/* Dropdown */
.has-dropdown { position: relative; }
.has-dropdown > a::after { content: "▾"; font-size: .7rem; margin-left: 6px; color: var(--muted); }
.dropdown {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 320px; width: max-content;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 8px;
  opacity: 0; visibility: hidden; transition: all .18s ease;
}
.dropdown a { white-space: nowrap; }
.dropdown .tag { white-space: nowrap; flex: none; }
/* Service Areas dropdown: compact two-column town list */
.dropdown--areas { min-width: 360px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.dropdown--areas a:last-child { grid-column: 1 / -1; color: var(--accent); justify-content: center; }
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 14px; border-radius: 8px; font-size: .92rem; color: #cdd6e2;
}
.dropdown a:hover { background: var(--bg-3); color: var(--text); }
.dropdown .tag { font-size: .62rem; }

.nav-phone { font-family: var(--font-head); letter-spacing: .5px; color: var(--accent); font-size: .95rem; }
.nav-phone:hover { color: var(--accent-2); }

/* Nav "Book Now" pill — bigger, text centered with balanced padding */
.nav-cta .btn { padding: 13px 30px; font-size: 1rem; line-height: 1; justify-content: center; text-align: center; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }

/* ---------- Tags / badges ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1px;
  font-size: .68rem; font-weight: 600;
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); background: var(--bg-2);
}
.tag--mobile { color: var(--accent); border-color: rgba(31,182,216,.4); }
.tag--shop { color: var(--gold); border-color: rgba(216,177,74,.4); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(70px, 12vw, 140px) 0 clamp(60px, 9vw, 110px); overflow: hidden; min-height: 82vh; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(70% 120% at 80% -10%, rgba(31,182,216,.16), transparent 60%),
    linear-gradient(rgba(11,14,19,.72), rgba(11,14,19,.90)),
    url("../assets/hero.jpg") center 58% / cover no-repeat,
    var(--bg);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent);
}
.hero-inner { max-width: 800px; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .accent { background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { max-width: 600px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-strip { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-strip div { display: flex; flex-direction: column; }
.hero-strip strong { font-family: var(--font-head); font-size: 1.8rem; color: var(--text); }
.hero-strip span { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

/* page hero (interior) */
.page-hero { position: relative; padding: clamp(60px, 10vw, 110px) 0 clamp(40px, 6vw, 70px); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(80% 140% at 85% -20%, rgba(31,182,216,.14), transparent 60%), var(--bg);
}
.breadcrumb { font-size: .82rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--accent); }
.page-hero .badges { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 0; }

/* ---------- Service grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(31,182,216,.45); box-shadow: var(--shadow-sm); }

.service-card { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.service-card .icon {
  width: 52px; height: 52px; border-radius: 12px; flex: none;
  display: grid; place-items: center; font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(31,182,216,.18), rgba(54,224,255,.08));
  border: 1px solid rgba(31,182,216,.25);
}
.service-card h3 { letter-spacing: .5px; }
.service-card p { font-size: .95rem; flex: 1; }
.service-card .badges { display: flex; gap: 8px; flex-wrap: wrap; }
.service-card .more { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1px; font-size: .82rem; color: var(--accent); }
.service-card .more::after { content: " →"; }
/* Service card image (replace the placeholder with your own photo) */
.service-card .card-img { width: 100%; aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden; }
.service-card .card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-card .card-img__ph {
  width: 100%; height: 100%;
  border: 2px dashed var(--line); border-radius: var(--radius-sm);
  background: var(--bg-2); display: grid; place-items: center;
  color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: 1px; text-align: center;
}

/* ---------- Feature / why ---------- */
.feature { display: flex; gap: 16px; }
.feature .icon { font-size: 1.6rem; flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 10px; background: var(--bg-3); border: 1px solid var(--line); }
.feature h3 { font-size: 1.15rem; margin-bottom: 6px; }
.feature p { font-size: .94rem; }

/* ---------- Gift card embed ---------- */
.gift-embed {
  max-width: 760px; margin: 0 auto;
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(20px, 4vw, 40px);
}
.gift-embed iframe { width: 100%; border: 0; display: block; }
.gift-embed__placeholder {
  text-align: center; color: var(--text);
  border: 2px dashed var(--line); border-radius: var(--radius-sm);
  padding: clamp(30px, 6vw, 60px) 20px;
}

/* ---------- Steps / process ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { position: relative; padding: 24px 24px 24px 76px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step,decimal-leading-zero);
  position: absolute; left: 22px; top: 22px;
  font-family: var(--font-head); font-size: 1.6rem; font-weight: 700;
  color: var(--accent);
}
.step h3 { font-size: 1.15rem; margin-bottom: 6px; }
.step p { font-size: .94rem; }

/* ---------- Pricing / packages ---------- */
.pkg { display: flex; flex-direction: column; height: 100%; position: relative; }
.pkg.is-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-sm); }
.pkg .ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg,var(--accent),var(--accent-2)); color: var(--accent-ink); font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1px; font-size: .68rem; font-weight: 600; padding: 5px 14px; border-radius: 999px; }
.pkg h3 { font-size: 1.4rem; }
.pkg .price { font-family: var(--font-head); font-size: 2.4rem; color: var(--text); margin: 6px 0 4px; }
.pkg .price small { font-size: .9rem; color: var(--muted); font-family: var(--font-body); }
.pkg .price .from { font-size: .8rem; color: var(--muted); display: block; letter-spacing: 2px; text-transform: uppercase; }
.pkg ul { display: grid; gap: 10px; margin: 18px 0 22px; }
.pkg li { display: flex; gap: 10px; font-size: .94rem; color: #c5cedb; }
.pkg li::before { content: "✓"; color: var(--accent); font-weight: 700; flex: none; }
.pkg .btn { margin-top: auto; }

/* ---------- Split content ---------- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.media-box {
  aspect-ratio: 4/3; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  display: grid; place-items: center; color: var(--muted); text-align: center; padding: 20px;
  position: relative; overflow: hidden;
}
.media-box::after { content: "📷 Add photo"; font-size: .85rem; }
.media-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-box:has(img)::after { content: none; }
.checklist { display: grid; gap: 12px; margin-top: 20px; }
.checklist li { display: flex; gap: 12px; color: #c5cedb; }
.checklist li::before { content: "✓"; color: var(--accent); font-weight: 700; flex: none; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band .inner {
  background: linear-gradient(135deg, rgba(31,182,216,.14), rgba(54,224,255,.06));
  border: 1px solid rgba(31,182,216,.3);
  border-radius: 20px;
  padding: clamp(34px, 6vw, 64px);
  text-align: center;
}
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { max-width: 560px; margin: 0 auto 28px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Service area ---------- */
.area-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.area-list span { font-size: .85rem; color: #c5cedb; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); }

/* ---------- Testimonials ---------- */
.quote { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; height: 100%; }
.quote .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 12px; }
.quote p { color: #d6deea; font-style: italic; }
.quote .who { margin-top: 16px; font-family: var(--font-head); letter-spacing: .5px; color: var(--text); font-size: .95rem; text-transform: uppercase; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq details { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 20px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .5px; font-size: 1rem; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; font-size: .95rem; }

/* ---------- Contact / Form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .82rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-family: var(--font-head); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text); font: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31,182,216,.15);
}
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .82rem; color: var(--muted); }
.contact-card { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-line { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-line:last-child { border-bottom: none; }
.contact-line .ic { font-size: 1.3rem; flex: none; }
.contact-line strong { display: block; color: var(--text); font-family: var(--font-head); text-transform: uppercase; letter-spacing: .5px; font-size: .85rem; }
.contact-line span, .contact-line a { color: var(--muted); font-size: .95rem; }
.contact-line a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding-top: clamp(48px, 7vw, 80px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-size: .9rem; letter-spacing: 1.5px; color: var(--text); margin-bottom: 18px; }
.footer-grid a, .footer-grid p { color: var(--muted); font-size: .92rem; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--accent); }
.footer-about p { margin-top: 14px; max-width: 320px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--bg-3); }
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }
.footer-bottom { margin-top: clamp(40px, 6vw, 64px); padding: 22px 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .85rem; color: var(--muted); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split.reverse { direction: ltr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 24px;
    transform: translateY(-120%); transition: transform .28s ease;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .site-nav.open { transform: translateY(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-list > li > a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .dropdown, .dropdown--areas {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: none; background: transparent; padding: 0 0 8px 14px;
    min-width: 0; width: auto; display: block; grid-template-columns: none;
  }
  .dropdown a { white-space: normal; }
  .has-dropdown > a::after { content: ""; }
  .nav-phone { padding: 16px 4px 6px; }
  .nav-cta { margin-top: 10px; }
}
@media (max-width: 540px) {
  .grid-3, .grid-4, .grid-2, .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  :root { --header-h: 70px; --logo-h: 44px; }   /* trimmer header + logo on phones */
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
