/* Kings Valeting Hull — shared stylesheet, no dependencies. */

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

:root {
  --navy: #0B1A2E;
  --navy-mid: #0F2340;
  --navy-light: #163056;
  --gold: #C9A84C;
  --gold-light: #E2C57C;
  --blue-foam: #B8DCF5;
  --text: #F0F5FB;
  --text-muted: #7E9BB5;
  --card-bg: #0F2340;
  --divider: rgba(255,255,255,0.08);
  --bg: #0B1A2E;
  --radius: 2px;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
}

section { padding: 90px 40px; }
.section-first { padding-top: calc(74px + 60px); }

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  section { padding: 64px 20px; }
  .section-first { padding-top: calc(70px + 32px); }
}

/* ---------- shared typography ---------- */
.section-eyebrow, .eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  display: block;
}

.section-title, h1, h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: 0.03em;
  line-height: 1.05;
  text-wrap: balance;
  color: var(--text);
}

.section-lead, .lede {
  max-width: 560px;
  color: var(--text-muted);
  margin-top: 14px;
  font-size: 0.97rem;
}

.section-header { margin-bottom: 52px; }
.center { text-align: center; }
.center .section-lead, .center .lede { margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.center .btn-row { justify-content: center; }

.btn-primary, .btn {
  background: var(--gold);
  color: #0B1A2E;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
  border: 1px solid var(--gold);
}

.btn-primary:hover, .btn:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-1px); }

.btn-outline, .btn--ghost {
  border: 1px solid rgba(240,245,251,0.25);
  color: var(--text);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: var(--radius);
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
  background: transparent;
}

.btn-outline:hover, .btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- header / nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--divider);
}
/* blur lives on a pseudo-element rather than .site-header itself — a
   filter/backdrop-filter on an element creates a new containing block for
   its position:fixed descendants, which broke the full-screen mobile nav
   (it sized itself to the header's own ~74px box instead of the viewport)
   since .nav lives inside .site-header. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(11,26,46,0.97);
  backdrop-filter: blur(6px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}

.brand-logo { width: 28px; height: 28px; flex-shrink: 0; }

.brand-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle i { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav { display: flex; align-items: center; gap: 32px; }

.nav > a {
  color: rgba(240,245,251,0.75);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}

/* No base colour was set for these links at all, so an unstyled <a> just
   used the browser default — blue, turning purple once visited. That's
   the "Services is purple" bug: it's just the standard :visited colour
   showing through because nothing ever overrode it. */
.nav > a, .nav > a:visited, .has-drop > a, .has-drop > a:visited { color: #fff; }
.nav > a:hover, .nav > a[aria-current="page"] { color: var(--gold); }

.nav a.btn { color: #0B1A2E; }
.nav a.btn:hover { color: #0B1A2E; }

.has-drop { position: relative; display: flex; align-items: center; }
.drop {
  position: absolute;
  top: 100%; left: -18px;
  min-width: 240px;
  background: var(--navy-mid);
  border: 1px solid var(--divider);
  box-shadow: 0 18px 40px rgba(0,0,0,0.4);
  padding: 10px 0;
  display: none;
}
.has-drop:hover .drop, .has-drop:focus-within .drop { display: block; }
.drop a {
  display: block;
  padding: 9px 22px;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  color: rgba(240,245,251,0.75);
  text-decoration: none;
  border-bottom: 0;
  text-transform: none;
}
.drop a:hover { background: var(--navy-light); color: var(--gold); }

@media (max-width: 860px) {
  .nav-toggle { display: block; position: relative; z-index: 60; }
  .nav {
    position: fixed; inset: 0;
    background: var(--navy);
    z-index: 55;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 96px 26px 40px;
    overflow-y: auto;
    display: none;
  }
  .nav.open { display: flex; }
  body.nav-open { overflow: hidden; }
  .nav > a {
    padding: 18px 0;
    border-bottom: 1px solid var(--divider);
    font-size: 0.95rem;
    letter-spacing: 0.06em;
  }
  .nav a.btn { margin-top: 26px; text-align: center; }

  .has-drop { display: block; }
  .has-drop > a {
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid var(--divider);
  }
  .has-drop > a::after {
    content: "";
    width: 8px; height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .25s ease;
    margin-left: 12px;
  }
  .has-drop.open > a::after { transform: rotate(-135deg) translateY(-2px); }
  .drop {
    position: static; min-width: 0; border: 0; box-shadow: none; background: transparent;
    padding: 0; display: none;
  }
  .has-drop:hover .drop, .has-drop:focus-within .drop { display: none; }
  .has-drop.open .drop { display: block; }
  .drop a { padding: 14px 0 14px 18px; color: var(--text-muted); }
}

/* ---------- HERO (home, with car canvas) ---------- */
.hero {
  position: relative;
  margin-top: 74px;
  min-height: calc(100vh - 74px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding: 56px 40px 40px;
  background: radial-gradient(ellipse at 50% 60%, #0F2340 0%, #0B1A2E 65%);
}

.hero-canvas-wrap {
  position: relative;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

#car-canvas { display: block; width: 100%; height: auto; }

.hero-text { text-align: center; margin-top: 0; }

.hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.2rem, 8vw, 6rem);
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--text);
  text-wrap: balance;
}
.hero-title span { color: var(--gold); }

.hero-sub {
  margin-top: 14px;
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.hero-actions { display: flex; gap: 14px; justify-content: center; margin-top: 28px; }

.hero-scroll-hint {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  opacity: 0.4;
}
.hero-scroll-hint span { font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; }
.scroll-arrow { width: 1px; height: 28px; background: var(--text); animation: scrollPulse 2s ease infinite; }
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 0.8; transform: scaleY(1); }
}

/* ---------- hero (short, inner pages) ---------- */
.hero--short {
  margin-top: 74px;
  padding: 100px 40px 60px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, #0F2340 0%, #0B1A2E 70%);
}
@media (max-width: 768px) { .hero--short { padding: 88px 20px 44px; } }

/* ---------- ribbon ---------- */
.ribbon {
  background: var(--gold);
  color: #0B1A2E;
  text-align: center;
  padding: 12px 20px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* ---------- grids / cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--card-bg);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .3s, background .2s;
}
.card-link { display: block; text-decoration: none; color: inherit; }
.card-link:hover { transform: translateY(-4px); background: #122848; }
.card .num, .card-eyebrow {
  display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1em;
}
.card h3 { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; letter-spacing: 0.03em; margin-bottom: 10px; color: var(--text); }
.card p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }
.card-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 1.2em;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
}
.card-cta::after {
  content: ""; width: 7px; height: 7px;
  border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform .25s;
}
.card-link:hover .card-cta::after { transform: rotate(45deg) translate(3px,-3px); }

/* ---------- SERVICES (home teaser grid) ---------- */
#services-teaser { background: var(--navy-mid); }

/* ---------- SERVICES GRID (original valet package cards, reused on services page) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
}
.service-card {
  background: var(--card-bg);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 0; background: var(--gold); transition: height 0.3s ease;
}
.service-card:hover::before { height: 100%; }
.service-card:hover { background: #122848; }
.service-icon { width: 44px; height: 44px; margin-bottom: 18px; color: var(--gold); }
.service-name { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; letter-spacing: 0.04em; margin-bottom: 8px; }
.service-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; }
.service-price { margin-top: 16px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }

/* ---------- service categories (services.html) ---------- */
.cat { margin-bottom: 3em; }
.cat:last-child { margin-bottom: 0; }
.cat-head { border-bottom: 1px solid var(--divider); padding-bottom: 1em; margin-bottom: 0; }
.cat-head h2 { font-size: 1.9rem; margin-bottom: 0.2em; }
.cat-head p { color: var(--text-muted); margin: 0; font-size: 0.92rem; }
.cat .services-grid { margin-top: 0; border-top: 1px solid var(--divider); }

.cat-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 30px; }
.cat-nav .btn-outline { text-align: center; padding: 14px 10px; }
@media (max-width: 700px) { .cat-nav { grid-template-columns: repeat(2, 1fr); } }

/* ---------- WHY US / ABOUT ---------- */
#about { background: var(--navy); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-points { display: flex; flex-direction: column; gap: 28px; margin-top: 10px; }
.about-point { display: flex; gap: 18px; align-items: flex-start; }
.point-num { font-family: 'Bebas Neue', sans-serif; font-size: 2.2rem; line-height: 1; color: var(--gold); opacity: 0.5; min-width: 36px; }
.point-body h3 { font-weight: 600; font-size: 1rem; margin-bottom: 4px; color: var(--text); }
.point-body p { font-size: 0.88rem; color: var(--text-muted); }
.about-visual { position: relative; }
.stat-stack { display: flex; flex-direction: column; gap: 2px; }
.stat-box { background: var(--card-bg); padding: 28px 32px; border-left: 3px solid var(--gold); }
.stat-number { font-family: 'Bebas Neue', sans-serif; font-size: 3rem; line-height: 1; color: var(--text); letter-spacing: 0.02em; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px; }

/* ---------- AREAS ---------- */
#areas { background: var(--navy-mid); text-align: center; }
#areas .section-lead { margin: 14px auto 40px; }
.areas-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 760px; margin: 0 auto; }
.area-chip {
  border: 1px solid var(--divider); padding: 8px 18px; font-size: 0.82rem; font-weight: 500;
  border-radius: var(--radius); color: var(--text-muted); letter-spacing: 0.04em;
}

/* ---------- GALLERY ---------- */
#gallery { background: var(--navy); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery.gallery-one { grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.gallery figure { margin: 0; position: relative; overflow: hidden; background: var(--card-bg); border: 1px solid var(--divider); border-radius: var(--radius); }
.gallery img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s ease; padding: 30px; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { padding: 14px 20px 20px; font-size: 0.82rem; color: var(--text-muted); text-align: center; }

/* ---------- CONTACT ---------- */
#contact { background: var(--navy); }
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
@media (max-width: 860px) { .contact-wrap { grid-template-columns: 1fr; gap: 40px; } }
.contact-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 26px; }
.contact-icon { width: 20px; height: 20px; color: var(--gold); margin-top: 3px; flex-shrink: 0; }
.contact-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-muted); margin-bottom: 3px; }
.contact-value { font-size: 1rem; font-weight: 500; color: var(--text); }
.contact-value a { color: var(--text); text-decoration: none; }
.contact-value a:hover { color: var(--gold); }

.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 768px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.form-group input, .form-group select, .form-group textarea {
  background: var(--card-bg); border: 1px solid var(--divider); color: var(--text);
  padding: 12px 14px; font-family: 'Inter', sans-serif; font-size: 0.9rem;
  border-radius: var(--radius); outline: none; transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); }
.form-group select option { background: #0F2340; }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-submit {
  background: var(--gold); color: #0B1A2E; border: none; font-family: 'Inter', sans-serif;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 14px 28px; cursor: pointer; border-radius: var(--radius); transition: background 0.2s;
  align-self: flex-start;
}
.form-submit:hover { background: var(--gold-light); }

.hours { width: 100%; border-collapse: collapse; margin-top: 10px; }
.hours th, .hours td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--divider); font-size: 0.92rem; font-weight: 400; color: var(--text); }
.hours td { text-align: right; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }

/* ---------- CTA BAND ---------- */
.band {
  background: linear-gradient(160deg, #0F2340 0%, #163056 55%, #1d3f70 100%);
  color: var(--text);
  text-align: center;
}
.band h2 { color: var(--text); }
.band .section-eyebrow { color: var(--gold); }
.band p { color: var(--text-muted); max-width: 56ch; margin: 14px auto 0; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: #07101E;
  padding: 56px 40px 32px;
  border-top: 1px solid var(--divider);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; text-align: center; } }
.footer-brand { font-family: 'Bebas Neue', sans-serif; font-size: 1.3rem; letter-spacing: 0.06em; color: var(--gold); margin-bottom: 12px; }
.site-footer p { color: var(--text-muted); font-size: 0.88rem; max-width: 34ch; }
@media (max-width: 700px) { .site-footer p { margin: 0 auto; } }
.site-footer h4 { font-family: 'Inter', sans-serif; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; font-weight: 700; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.footer-links a, .site-footer a { font-size: 0.85rem; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover, .site-footer a:hover { color: var(--gold); }
.footer-legal {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--divider);
  font-size: 0.78rem; color: var(--text-muted); text-align: center;
}

/* ---------- RESPONSIVE (misc) ---------- */
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}
