:root {
  --ink: #14231d;
  --muted: #617168;
  --paper: #f6f1e7;
  --cream: #fffaf0;
  --green: #244b36;
  --green-2: #0f3326;
  --sage: #d7e0d5;
  --gold: #c99945;
  --line: rgba(20, 35, 29, 0.16);
  --shadow: 0 24px 70px rgba(20, 35, 29, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  color: #fff;
  background: linear-gradient(180deg, rgba(9, 24, 18, 0.82), rgba(9, 24, 18, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  font-family: "Playfair Display", serif;
  font-size: 25px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover,
.header-cta:hover {
  color: #fff;
}

.header-cta {
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media {
  background:
    linear-gradient(90deg, rgba(7, 22, 16, 0.2), rgba(7, 22, 16, 0.05)),
    url("https://www.essendoncc.co.uk/images/thumbs/sites/essendon/2023%20Redesign/Carousels/Course/940x0/1/car1.jpg")
      center / cover;
  transform: scale(1.02);
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 22, 16, 0.88) 0%, rgba(7, 22, 16, 0.66) 44%, rgba(7, 22, 16, 0.18) 100%),
    linear-gradient(0deg, rgba(7, 22, 16, 0.78) 0%, rgba(7, 22, 16, 0.08) 56%);
}

.hero-content {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 156px 0 48px;
}

.eyebrow,
.section-kicker,
.package-label {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(52px, 8vw, 98px);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 44px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.button.primary {
  color: #13221c;
  background: var(--gold);
}

.button.secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 700px;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-stats div {
  padding: 22px 22px 0 0;
}

.hero-stats dt {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 800;
  line-height: 1;
}

.hero-stats dd {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 700;
}

.intro-band,
.packages,
.extras,
.day-flow,
.enquiry {
  padding: clamp(64px, 9vw, 112px) clamp(20px, 4vw, 56px);
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: end;
  background: var(--green-2);
  color: #fff;
}

.intro-band h2,
.section-heading h2,
.perks h2,
.enquiry h2 {
  margin-bottom: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: 0;
}

.intro-band p:not(.section-kicker) {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 19px;
  line-height: 1.7;
}

.section-heading {
  width: min(1120px, 100%);
  margin: 0 auto 34px;
}

.section-heading p:not(.section-kicker) {
  max-width: 650px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.section-heading.narrow {
  max-width: 820px;
  text-align: center;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.package-card,
.extras-grid article {
  position: relative;
  display: flex;
  min-height: 340px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  background: var(--cream);
  box-shadow: 0 14px 36px rgba(20, 35, 29, 0.08);
}

.package-card.featured {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
  background: var(--green);
  box-shadow: var(--shadow);
}

.featured-pill {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 8px 10px;
  border-radius: 999px;
  color: #1f2d25;
  background: var(--gold);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.package-card h3 {
  margin: 34px 0 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 42px;
}

.package-card p:not(.package-label) {
  color: var(--muted);
  line-height: 1.55;
}

.package-card.featured p:not(.package-label) {
  color: rgba(255, 255, 255, 0.78);
}

.price-row {
  display: grid;
  gap: 10px;
}

.price-row span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid currentColor;
  padding-top: 10px;
  color: inherit;
  font-size: 14px;
  font-weight: 700;
}

.price-row strong {
  font-size: 20px;
}

.perks {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: center;
  padding: clamp(72px, 9vw, 120px) clamp(20px, 4vw, 56px);
  background: #fff;
}

.visual-panel {
  min-height: 620px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.visual-panel img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
}

.perks-content {
  max-width: 690px;
}

.perk-list {
  display: grid;
  gap: 22px;
  margin-top: 36px;
}

.perk-list div {
  display: grid;
  grid-template-columns: 54px 1fr;
  column-gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.perk-list .icon {
  grid-row: span 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.perk-list h3,
.extras-grid h3 {
  margin-bottom: 8px;
  font-size: 21px;
}

.perk-list p,
.extras-grid p,
.timeline p,
.enquiry-copy p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.extras {
  background: var(--sage);
}

.extras-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.extras-grid article {
  min-height: 260px;
  background: rgba(255, 250, 240, 0.84);
}

.day-flow {
  background: var(--paper);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.timeline li {
  min-height: 230px;
  padding: 26px;
  color: #fff;
  background: var(--green-2);
}

.timeline li:first-child {
  border-radius: 8px 0 0 8px;
}

.timeline li:last-child {
  border-radius: 0 8px 8px 0;
}

.timeline span {
  display: block;
  margin-bottom: 46px;
  color: var(--gold);
  font-weight: 900;
}

.timeline strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.timeline p {
  color: rgba(255, 255, 255, 0.72);
}

.enquiry {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.75fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: start;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(12, 36, 27, 0.94), rgba(12, 36, 27, 0.82)),
    url("https://www.essendoncc.co.uk/images/thumbs/sites/essendon/2023%20Redesign/Carousels/Course/940x0/1/car3.jpg")
      center / cover;
}

.enquiry-copy {
  max-width: 650px;
}

.enquiry-copy p {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.contact-card {
  display: grid;
  gap: 8px;
  max-width: 360px;
  margin-top: 30px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
}

.contact-card span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-card strong {
  font-size: 22px;
}

.contact-card a {
  color: rgba(255, 255, 255, 0.82);
}

.enquiry-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  border-radius: 8px;
  padding: 24px;
  color: var(--ink);
  background: var(--cream);
  box-shadow: var(--shadow);
}

.enquiry-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.enquiry-form .wide,
.enquiry-form button {
  grid-column: 1 / -1;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea {
  resize: vertical;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(20px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.76);
  background: #081611;
  font-size: 14px;
}

.footer p {
  margin: 0;
}

.footer a {
  color: #fff;
  font-weight: 800;
}

@media (max-width: 1020px) {
  .nav-links {
    display: none;
  }

  .package-grid,
  .extras-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .perks,
  .enquiry,
  .intro-band {
    grid-template-columns: 1fr;
  }

  .visual-panel,
  .visual-panel img {
    min-height: 460px;
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline li,
  .timeline li:first-child,
  .timeline li:last-child {
    border-radius: 8px;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .header-cta {
    padding: 10px 12px;
  }

  .hero {
    min-height: 94vh;
  }

  .hero h1 {
    font-size: clamp(44px, 15vw, 62px);
  }

  .hero-stats,
  .package-grid,
  .extras-grid,
  .timeline,
  .enquiry-form {
    grid-template-columns: 1fr;
  }

  .hero-stats div {
    padding: 16px 0 0;
  }

  .package-card,
  .extras-grid article {
    min-height: 0;
  }

  .perk-list div {
    grid-template-columns: 1fr;
  }

  .perk-list .icon {
    margin-bottom: 14px;
  }
}
