/* ============================================================
   SUFFOLK CAR SERVICE — DESIGN SYSTEM
   Palette: harbor navy / brass / paper / charcoal / slate / rust
   Type: Fraunces (display) + Inter (body)
   ============================================================ */

:root {
  --navy: #16283D;
  --navy-deep: #0E1B2A;
  --brass: #A9834B;
  --brass-light: #C9A46E;
  --paper: #F6F3EC;
  --paper-warm: #EFEAE0;
  --ink: #20242B;
  --slate: #41586E;
  --rust: #8C4A34;
  --rust-dark: #713A29;
  --line: rgba(32, 36, 43, 0.12);
  --white: #FFFFFF;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1180px;
  --radius: 3px;
}

* { 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;
  font-size: 17px;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--navy-deep);
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { max-width: 66ch; margin: 0 0 1.1em; }
p.wide { max-width: none; }

/* ---------- Placeholder marker (visible reminder to swap real info) ---------- */
.needs-info {
  background: #FDEEE9;
  color: var(--rust-dark);
  padding: 0.05em 0.4em;
  border-radius: 3px;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(246, 243, 236, 0.1);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
}
.logo img { height: 150px; width: auto; display: block; }
.logo span { color: var(--rust); }

.main-nav { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.main-nav a {
  font-size: 0.95rem;
  color: rgba(246, 243, 236, 0.8);
  transition: color 0.15s ease;
}
.main-nav a:hover, .main-nav a:focus-visible { color: var(--brass-light); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--paper);
}
.nav-toggle svg { width: 26px; height: 26px; }

.btn-book {
  background: var(--rust);
  color: var(--white) !important;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s ease;
}
.btn-book:hover, .btn-book:focus-visible { background: var(--rust-dark); }

/* ---------- Route-line divider motif ---------- */
.route-divider {
  width: 100%;
  height: 34px;
  margin: 0;
}
.route-divider svg { width: 100%; height: 100%; display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
  color: var(--paper);
}
.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 88px;
}
.hero-map {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 62%;
  opacity: 0.9;
  z-index: 1;
}
.hero h1 { color: var(--white); max-width: 14ch; }
.hero .eyebrow-line {
  display: block;
  color: var(--brass-light);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 14px;
}
.hero p.lede {
  color: rgba(246, 243, 236, 0.82);
  font-size: 1.12rem;
  max-width: 46ch;
}
.hero-ctas { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.btn-outline {
  border: 1px solid rgba(246, 243, 236, 0.4);
  color: var(--paper);
  padding: 11px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
}
.btn-outline:hover { border-color: var(--brass-light); color: var(--brass-light); }

.hero-side-panel {
  position: relative;
  z-index: 2;
  background: rgba(246, 243, 236, 0.08);
  border: 1px solid rgba(246, 243, 236, 0.16);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(2px);
}
.hero-side-panel h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 14px; }
.hero-side-panel ul { list-style: none; padding: 0; margin: 0; }
.hero-side-panel li {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid rgba(246, 243, 236, 0.12);
  color: rgba(246, 243, 236, 0.85);
  font-size: 0.93rem;
}
.hero-side-panel li:last-child { border-bottom: none; }
.hero-side-panel .pill {
  background: var(--brass);
  color: var(--navy-deep);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 2px 8px;
  border-radius: 20px;
}

/* ---------- Sections ---------- */
section { padding: 78px 0; }
.section-alt { background: var(--paper-warm); }
.section-navy { background: var(--navy-deep); color: var(--paper); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: rgba(246, 243, 236, 0.78); }

.section-head { max-width: 640px; margin-bottom: 46px; }
.section-head .kicker {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--rust);
  margin-bottom: 8px;
  font-size: 1rem;
}

/* ---------- Grid layouts (varied on purpose, not one card style everywhere) ---------- */
.value-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.value-row > div {
  padding: 34px 30px 34px 0;
  border-right: 1px solid var(--line);
}
.value-row > div:last-child { border-right: none; }
.value-row .num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--brass);
  display: block;
  margin-bottom: 10px;
}

.route-list {
  display: grid;
  gap: 0;
}
.route-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.route-item:first-child { border-top: 1px solid var(--line); }
.route-item .code {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--navy);
}
.route-item .desc h4 { margin-bottom: 4px; font-size: 1.05rem; }
.route-item .desc p { margin: 0; font-size: 0.92rem; color: var(--slate); }
.route-item .price {
  font-weight: 700;
  color: var(--rust);
  white-space: nowrap;
}

.fleet-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.fleet-photo-placeholder {
  aspect-ratio: 4/3;
  background: repeating-linear-gradient(135deg, #E4DED0, #E4DED0 10px, #DAD3C2 10px, #DAD3C2 20px);
  border: 1px dashed var(--brass);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate);
  font-size: 0.9rem;
  text-align: center;
  padding: 20px;
}
.fleet-specs { list-style: none; padding: 0; margin: 22px 0 0; }
.fleet-specs li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.faq-item p { margin: 0; color: var(--slate); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step .num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--brass);
  display: block;
  margin-bottom: 10px;
}
.step h4 { font-size: 1.02rem; margin-bottom: 6px; }
.step p { font-size: 0.92rem; color: var(--slate); }

/* ---------- Booking form ---------- */
.booking-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.form-field input, .form-field select {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--paper);
}
.form-field input:focus, .form-field select:focus {
  outline: 2px solid var(--brass);
  outline-offset: 1px;
}
.btn-submit {
  width: 100%;
  background: var(--rust);
  color: var(--white);
  border: none;
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius);
  cursor: pointer;
  margin-top: 6px;
}
.btn-submit:hover { background: var(--rust-dark); }
.form-note { font-size: 0.82rem; color: var(--slate); margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(246, 243, 236, 0.75);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(246, 243, 236, 0.14);
}
.footer-grid h4 {
  color: var(--brass-light);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--white); }
.footer-logo { font-family: var(--font-display); color: var(--white); font-size: 1.3rem; margin-bottom: 10px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .hero .container { grid-template-columns: 1fr; padding-top: 60px; padding-bottom: 60px; }
  .hero-map { display: none; }
  .value-row { grid-template-columns: 1fr; }
  .value-row > div { border-right: none; border-bottom: 1px solid var(--line); }
  .fleet-block { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .route-item { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}