:root {
  --olive: #4A5D23;
  --olive-dark: #3A4A1C;
  --olive-soft: #6B7A3A;
  --crimson: #8B2323;
  --cream: #F5F0E1;
  --cream-deep: #EDE5CE;
  --ink: #2B2B23;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3 { font-family: var(--serif); color: var(--olive-dark); }

section { max-width: 1080px; margin: 0 auto; padding: 72px 24px; }

h2 { font-size: 2rem; margin-bottom: 8px; }
.section-sub { color: var(--olive-soft); margin-bottom: 32px; font-size: 1.05rem; }

/* ===== Header (transparent over hero, solid dark on scroll) ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 24px;
  background: linear-gradient(180deg, rgba(16, 21, 6, 0.55), transparent);
  border-bottom: 2px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}
.site-header.scrolled {
  background: rgba(38, 48, 18, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid rgba(245, 240, 225, 0.14);
}
.lockup { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.lockup-text {
  font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: #D2B48C;
}
.lockup-text em { font-style: normal; color: var(--cream); }
.site-header nav { display: flex; align-items: center; gap: 22px; }
.site-header nav a {
  color: var(--cream); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.site-header nav a:hover { color: #F5E2AA; }
main > section, section[id] { scroll-margin-top: 78px; }
.nav-cta {
  background: var(--crimson); color: var(--cream) !important;
  padding: 7px 16px; border-radius: 999px;
}
.nav-cta:hover { background: var(--olive); }

/* ===== Hero (full-viewport, dark) ===== */
.hero {
  max-width: none; position: relative;
  background: var(--olive-dark);
  background-image: radial-gradient(ellipse at 75% 40%, rgba(107, 122, 58, 0.35), transparent 60%);
  display: flex; align-items: center;
  min-height: 100svh;
  padding: 108px 24px 110px;
}
.hero-inner {
  max-width: 1080px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 48px;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: 4px; font-size: 0.8rem;
  font-weight: 700; color: #CFC9B4; margin-bottom: 14px;
}
.hero h1 { font-size: 4.2rem; line-height: 1.05; margin-bottom: 22px; color: var(--cream); }
.hero .lede { font-size: 1.25rem; max-width: 34em; margin-bottom: 30px; color: #E4DEC8; }
.hero .lede strong { color: var(--cream); }
.hero-note { margin-top: 16px; font-size: 0.9rem; color: #CFC9B4; }
.hero .btn-secondary { border-color: var(--cream); color: var(--cream); }
.hero .btn-secondary:hover { background: var(--cream); color: var(--olive-dark); }
.hero-badge { text-align: center; }
.hero-badge img { max-width: 100%; height: auto; filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.45)); }
/* Compact hero (interior pages) — dark banner, not full viewport.
   Doubled class beats the mobile .hero padding override. */
.hero.hero-compact { min-height: 0; padding: 150px 24px 72px; }
.hero.hero-compact h1 { font-size: 3rem; }

/* Photo hero (index) — layered over the base dark hero, no animation */
.hero-photo {
  background-color: #1B220C;
  background-image:
    linear-gradient(98deg,
      rgba(20, 26, 8, 0.94) 0%,
      rgba(20, 26, 8, 0.78) 34%,
      rgba(20, 26, 8, 0.38) 62%,
      rgba(20, 26, 8, 0.18) 82%,
      rgba(20, 26, 8, 0.42) 100%),
    url("assets/hero-streetcar.jpg");
  background-size: cover;
  background-position: center right 30%;
}
.hero-photo .hero-inner { grid-template-columns: 1fr; }
.hero-photo .hero-text { max-width: 34em; }
.hero-photo h1,
.hero-photo .lede,
.hero-photo .eyebrow,
.hero-photo .hero-note {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}
@media (max-width: 820px) {
  .hero-photo {
    background-image:
      linear-gradient(180deg,
        rgba(20, 26, 8, 0.9) 0%,
        rgba(20, 26, 8, 0.62) 55%,
        rgba(20, 26, 8, 0.8) 100%),
      url("assets/hero-streetcar.jpg");
    background-position: center 65%;
  }
}

/* ===== Buttons ===== */
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 13px 26px; border-radius: 999px; font-size: 1rem;
  transition: transform 0.1s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--crimson); color: var(--cream); }
.btn-primary:hover { background: #6f1c1c; }
.btn-secondary {
  background: transparent; color: var(--olive-dark);
  border: 2.5px solid var(--olive);
}
.btn-secondary:hover { background: var(--olive); color: var(--cream); }

/* ===== Route map ===== */
.route { text-align: center; }
.route-map { width: 100%; height: auto; margin-top: 12px; }
.route-label text {
  font-family: var(--serif); font-size: 22px; font-weight: 700; fill: var(--olive-dark);
}
.route-sublabel text {
  font-family: var(--sans); font-size: 15px; font-weight: 600; fill: var(--crimson);
  letter-spacing: 1px; text-transform: uppercase;
}

/* ===== Services ===== */
.services { background: var(--cream-deep); max-width: none; }
.services > * { max-width: 1080px; margin-left: auto; margin-right: auto; }
.services h2 { text-align: center; margin-bottom: 36px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--cream); border: 2px solid var(--olive);
  border-radius: 14px; padding: 28px;
}
.card-featured { border-color: var(--crimson); border-width: 3px; position: relative; }
.card-featured::before {
  content: "Most convenient";
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--crimson); color: var(--cream);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 14px; border-radius: 999px; white-space: nowrap;
}
.card h3 { font-size: 1.35rem; margin-bottom: 10px; color: var(--crimson); }
.card ul { margin: 14px 0 0 20px; }
.card li { margin-bottom: 6px; }
.card .price { margin-top: 16px; font-weight: 800; font-size: 1.15rem; color: var(--olive-dark); }
.card .price span { font-weight: 400; font-size: 0.85rem; color: var(--olive-soft); }
.cards-fine { text-align: center; margin-top: 22px; }
.fine { font-size: 0.85rem; color: var(--olive-soft); margin-top: 14px; }

/* ===== About / Contact ===== */
.about p { font-size: 1.1rem; max-width: 46em; }
.contact { text-align: center; }
.contact-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== Booking form ===== */
.booking-form {
  max-width: 620px; margin: 32px auto 0; text-align: left;
  background: var(--cream-deep); border: 2px solid var(--olive);
  border-radius: 14px; padding: 28px;
}
.booking-form label {
  display: block; font-weight: 700; font-size: 0.9rem;
  color: var(--olive-dark); margin-bottom: 14px;
}
.booking-form input, .booking-form select, .booking-form textarea {
  display: block; width: 100%; margin-top: 5px; padding: 10px 12px;
  font: inherit; color: var(--ink); background: var(--cream);
  border: 1.5px solid var(--olive-soft); border-radius: 8px;
}
.booking-form input:focus, .booking-form select:focus, .booking-form textarea:focus {
  outline: 2.5px solid var(--crimson); outline-offset: 1px; border-color: var(--crimson);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.booking-form .btn { width: 100%; border: none; cursor: pointer; margin-top: 6px; }
.booking-form .gotcha { position: absolute; left: -9999px; }
.form-status { min-height: 1.2em; margin-top: 10px; text-align: center; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ===== Footer ===== */
.site-footer {
  background: var(--olive-dark); color: var(--cream);
  text-align: center; padding: 36px 24px 44px;
}
.site-footer .fine { color: #cfc9b4; max-width: 62em; margin: 10px auto 0; }
.site-footer a { color: #cfc9b4; }

/* ===== Wills page ===== */
.band {
  background: var(--olive-dark); max-width: none; text-align: center;
}
.band h2 { color: var(--cream); }
.band p { color: #E4DEC8; font-size: 1.1rem; max-width: 46em; margin: 0 auto; }

.steps { max-width: 46em; margin: 12px 0 0 24px; }
.steps li { font-size: 1.1rem; margin-bottom: 18px; padding-left: 8px; }
.steps li::marker { font-family: var(--serif); font-weight: 700; color: var(--crimson); }

.legal-box {
  border: 2px solid var(--crimson); border-radius: 14px;
  background: var(--cream-deep); padding: 32px 36px;
  margin-top: 0; margin-bottom: 72px;
}
.legal-box h3 { color: var(--crimson); margin-bottom: 10px; font-size: 1.2rem; }
.legal-box p { font-size: 0.95rem; }

.card-link { margin-top: 16px; font-weight: 700; }
.card-link a { color: var(--crimson); text-decoration: none; }
.card-link a:hover { text-decoration: underline; }

/* ===== Responsive ===== */
@media (max-width: 820px) {
  .hero { padding-top: 40px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-badge img { max-width: 300px; }
  .hero h1 { font-size: 2.7rem; }
  .cta-row, .hero .lede { justify-content: center; margin-left: auto; margin-right: auto; }
  .cards { grid-template-columns: 1fr; }
  .site-header nav a:not(.nav-cta) { display: none; }
}
