/* =========================================================
   Coleman's Mobile Car Valet: site stylesheet
   ========================================================= */

:root {
  --blue: #3AAEE0;
  --blue-dark: #1C8FC4;
  --ink: #1E2328;
  --ink-soft: #565D66;
  --ink-faint: #8A9099;
  --paper: #FFFFFF;
  --paper-alt: #F4F8FB;
  --paper-line: #E4EAF0;
  --navy: #10161C;
  --navy-soft: #1A222B;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(16, 22, 28, 0.10);
  --shadow-sm: 0 4px 14px rgba(16, 22, 28, 0.08);
  --container: 1180px;
  --font-head: "Oswald", Arial, sans-serif;
  --font-body: "Work Sans", Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; letter-spacing: 0.02em; }
p { margin: 0 0 1em; }
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 72px 0; }
.section-alt { background: var(--paper-alt); }
.section-navy { background: var(--navy); color: #EDEFF2; }
.section-navy h1, .section-navy h2, .section-navy h3 { color: #fff; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 10px;
}
.section-navy .eyebrow { color: var(--blue); }
.lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 62ch;
}
.center { text-align: center; margin-left: auto; margin-right: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff;
  padding: 10px 16px; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.section:not(.section-navy) .btn-ghost { border-color: var(--ink); }
.section:not(.section-navy) .btn-ghost:hover { background: var(--paper-alt); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 22px; font-size: 0.82rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: #fff;
  border-bottom: 1px solid var(--paper-line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--container);
  margin: 0 auto;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 44px; width: auto; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); display: block; }

.main-nav { display: flex; }
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.main-nav a {
  display: block;
  padding: 10px 14px;
  font-family: var(--font-head);
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
}
.main-nav a:hover, .main-nav a.active { color: var(--blue-dark); background: var(--paper-alt); }
.main-nav .nav-cta a { color: #fff; background: var(--blue); padding: 10px 20px; border-radius: 999px; }
.main-nav .nav-cta a:hover { background: var(--blue-dark); }

.has-dropdown { position: relative; }
.dropdown {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}
.dropdown a { color: var(--ink-soft); font-size: 0.82rem; padding: 9px 12px; }
.dropdown a:hover { color: var(--blue-dark); background: var(--paper-alt); }

.chevron { display: none; }

/* Hover-reveal only applies with a real mouse. Scoping this to desktop
   width keeps it from clashing with the tap-to-expand accordion below,
   since touchscreens sometimes register a first tap as :hover/:focus. */
@media (min-width: 901px) {
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 68px;
    right: 0;
    bottom: 0;
    left: 0;
    background: #fff;
    display: none;
    overflow-y: auto;
    padding: 12px 0 40px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0 12px; }
  .main-nav a { padding: 14px 16px; }
  .main-nav .nav-cta { margin-top: 10px; }
  .main-nav .nav-cta a { text-align: center; }

  /* Accordion: collapsed to 0 height and animated open via max-height,
     rather than an abrupt display:none/block swap. */
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; padding-left: 12px;
    max-height: 0; overflow: hidden;
    transition: max-height 0.28s ease;
  }
  .has-dropdown.open .dropdown { max-height: 500px; }

  .has-dropdown > a {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
  }
  .chevron {
    display: block; width: 18px; height: 18px; flex-shrink: 0;
    transition: transform 0.2s ease;
  }
  .has-dropdown.open > a .chevron { transform: rotate(180deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 76vh;
  display: flex;
  align-items: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(115deg, rgba(10,14,18,0.88) 10%, rgba(10,14,18,0.55) 55%, rgba(10,14,18,0.35) 100%);
  z-index: -1;
}
.hero-inner { max-width: 620px; padding: 90px 0; }
.hero .eyebrow { color: var(--blue); }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero p.lede { color: #E7ECF1; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-actions .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.6); }

.page-banner {
  position: relative;
  padding: 70px 0;
  color: #fff;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.page-banner::before {
  content: "";
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(10,14,18,0.72);
  z-index: -1;
}
.page-banner h1 { color: #fff; margin-bottom: 8px; }
.page-banner .lede { color: #DCE3E9; }
.breadcrumb { font-size: 0.82rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.breadcrumb a { text-decoration: underline; }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.feature-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--paper-line);
}
.feature-card img { aspect-ratio: 4 / 3; object-fit: cover; }
.feature-card .body { padding: 22px 24px 26px; }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--ink-soft); font-size: 0.96rem; margin-bottom: 0; }

.cta-band {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 46px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: #C9D2DA; margin: 0; }

/* ---------- Service cards (services.html) ---------- */
.service-card {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
  scroll-margin-top: 96px;
}
.service-card img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.service-card .body { padding: 30px 32px; }
.service-card .meta {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 14px 0 18px;
  font-size: 0.86rem; color: var(--ink-soft);
}
.service-card .meta strong { color: var(--ink); }
.service-card .price {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--blue-dark);
}
.includes {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 20px;
  margin: 18px 0 22px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.includes li { padding-left: 20px; position: relative; }
.includes li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue);
}
.card-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.glossary-note { font-size: 0.86rem; color: var(--ink-faint); margin-top: 16px; }
.glossary-note a { color: var(--blue-dark); text-decoration: underline; }

@media (max-width: 780px) {
  .service-card { grid-template-columns: 1fr; }
  .service-card img { aspect-ratio: 16/9; min-height: 0; }
  .includes { grid-template-columns: 1fr; }
}

.services-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}
.services-jump a {
  padding: 9px 16px;
  border: 1px solid var(--paper-line);
  border-radius: 999px;
  font-size: 0.84rem;
  color: var(--ink-soft);
}
.services-jump a:hover { border-color: var(--blue); color: var(--blue-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #C9D2DA; }
.footer-top { padding: 60px 0 30px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.footer-card svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--blue); margin-top: 2px; }
.footer-card .label { font-family: var(--font-head); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.footer-card .value { color: #fff; font-size: 0.96rem; word-break: break-word; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--ink-faint);
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 36px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field.full { grid-column: 1 / -1; }
label { font-size: 0.86rem; font-weight: 600; color: var(--ink); }
input, select, textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(58,174,224,0.18);
}
textarea { resize: vertical; min-height: 140px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.86rem; color: var(--ink-faint); margin-top: 10px; }
.alert {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-size: 0.95rem;
}
.alert-success { background: #E6F7EC; color: #1B7A3E; border: 1px solid #B7E6C6; }
.alert-error { background: #FDECEC; color: #B3261E; border: 1px solid #F3C0C0; }
.alert[hidden] { display: none; }

/* ---------- Pricing / hours tables ---------- */
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.hours-table td:last-child { text-align: right; color: #fff; }
.section:not(.section-navy) .hours-table td { border-bottom: 1px solid var(--paper-line); }
.section:not(.section-navy) .hours-table td:last-child { color: var(--ink); }

/* ---------- Definition list (glossary) ---------- */
.glossary-list dt {
  font-family: var(--font-head);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--blue-dark);
  margin-top: 34px;
  scroll-margin-top: 96px;
}
.glossary-list dt:first-child { margin-top: 0; }
.glossary-list dd { margin: 8px 0 0; color: var(--ink-soft); }
.glossary-toc {
  display: flex; flex-wrap: wrap; gap: 8px 10px;
  margin-bottom: 40px; padding: 20px; background: var(--paper-alt);
  border-radius: var(--radius);
}
.glossary-toc a { font-size: 0.86rem; color: var(--blue-dark); padding: 4px 0; }
.glossary-toc a:hover { text-decoration: underline; }

/* ---------- Vouchers ---------- */
.voucher-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 900px) { .voucher-hero { grid-template-columns: 1fr; } }
.voucher-panel {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 36px;
}
.voucher-panel ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 18px 0 24px; }
.voucher-panel li { padding-left: 22px; position: relative; color: #D6DCE2; }
.voucher-panel li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }

.product-group { margin-bottom: 36px; }
.product-group h3 { color: var(--blue-dark); border-bottom: 2px solid var(--paper-line); padding-bottom: 10px; margin-bottom: 16px; }
.product-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; }
@media (max-width: 700px) { .product-list { grid-template-columns: 1fr; } }
.product-list li { padding: 12px 0; border-bottom: 1px solid var(--paper-line); }
.product-list a { font-weight: 600; color: var(--ink); }
.product-list a:hover { color: var(--blue-dark); text-decoration: underline; }
.product-list span { display: block; color: var(--ink-soft); font-size: 0.9rem; margin-top: 2px; }

/* ---------- Book online ---------- */
.booking-iframe {
  width: 100%;
  height: 800px;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: block;
}
@media (max-width: 700px) {
  .booking-iframe { height: 1000px; }
}
.price-list { list-style: none; }
.price-list li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--paper-line);
}
.price-list .name { font-weight: 600; }
.price-list .sub { color: var(--ink-faint); font-size: 0.85rem; display: block; }
.price-list .amount { font-family: var(--font-head); color: var(--blue-dark); white-space: nowrap; }

/* ---------- Utility spacing ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack { display: flex; flex-direction: column; gap: 6px; }
