:root {
  --white: #FFFFFF;
  --navy: #002060;
  --navy-soft: #45536E;
  --stone: #F2EFE6;
  --gold: #A9812F;
  --gold-deep: #7C5E22;
  --line: #E3DFD2;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

a { color: inherit; }

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

/* Text available to screen readers and search engines, but not shown */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Nav ---------- */

header.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  height: 70px;
  width: auto;
  display: block;
}

.nav-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active { border-color: var(--gold); }

.nav-cta {
  background: var(--navy);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 3px;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.nav-cta:hover { background: var(--gold-deep); }

/* Two buttons side by side: Free tickets (gold) and Enquire now (navy) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.nav-cta--tickets { background: var(--gold); }
.nav-cta--tickets:hover { background: var(--gold-deep); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  margin: 0 auto;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  margin-top: 72px;                 /* height of the menu bar */
  height: calc(100vh - 72px);
  height: calc(100dvh - 72px);      /* mobile: actually visible area */
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #000;
}

.hero video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;       /* shows the full frame and keeps the control bar on screen */
}

/* Cover image + play button (the video loads only after a click) */
.hero-play {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: #000;
  cursor: pointer;
  font-family: inherit;
}

.hero-play img {
  width: 100%;
  height: 100%;
  object-fit: contain;       /* same framing as the video */
}

.hero-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 88px;
  height: 88px;
  margin: -44px 0 0 -44px;
  border-radius: 50%;
  background: rgba(0, 32, 96, 0.78);
  border: 2px solid var(--gold);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-play-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -14px 0 0 -8px;
  border-style: solid;
  border-width: 14px 0 14px 24px;
  border-color: transparent transparent transparent var(--white);
}

.hero-play-label {
  position: absolute;
  top: calc(50% + 56px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(0, 32, 96, 0.82);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-play:hover .hero-play-icon,
.hero-play:focus-visible .hero-play-icon {
  transform: scale(1.08);
  background: rgba(124, 94, 34, 0.9);
}

.hero-play:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }

.hero-eyebrow {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(1rem, 5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.01em;
  max-width: 18ch;
  margin-bottom: 12px;
}

.hero p {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--line);
  max-width: 46ch;
  margin-bottom: 12px;
  text-align: justify;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Page header (for interior pages without the video hero) ---------- */

.page-header {
  padding: 100px 0 40px;
  background: var(--stone);
  border-bottom: 1px solid var(--line);
}

.page-header .kicker { margin-bottom: 4px; font-weight: 400; }
.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.page-header .lede { max-width: 90ch; }

.page-intro {
  font-weight: 300;
  line-height: 1.7;
  max-width: 90ch;
  margin-bottom: 8px;
}

/* Contact page: keeps the footer down without empty line breaks */
.page-header--contact { min-height: 60vh; }

/* ---------- Section shell ---------- */

section { padding: 50px 0; }

.kicker {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 8px;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  max-width: 200ch;
  margin-bottom: 5px;
}

/* Section headings: same look as the former gold h3 headings */
h2.section-title { color: var(--gold); }

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--gold);
  max-width: 200ch;
  margin-bottom: 5px;
}

.lede {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--navy);
  max-width: 150ch;
  line-height: 1.65;
}

a.email-link {
  display: inline-block;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}

/* ---------- Events ---------- */

.events-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}

.temple-motif svg { width: 100%; height: auto; }

.events-copy p {
  font-weight: 300;
  color: var(--navy);
  line-height: 1.7;
  margin-bottom: 10px;
  max-width: 70ch;
  text-align: justify;
}

.events-copy b {
  font-weight: 600;
  color: var(--navy);
}

.event-facts {
  margin-top: 1px;
  border-top: 1px solid var(--line);
  max-width: 70ch;
}

.events-copy ul {
  font-weight: 300;
  color: var(--navy);
  line-height: 1.7;
  max-width: 70ch;
  text-align: justify;
  margin: 6px 0 10px;
  padding-left: 1.2em;
}

.events-copy li {
  margin: 0 0 10px;
}

.event-facts dl {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0;
}

.event-facts dt, .event-facts dd {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}

.event-facts dt {
  font-weight: 500;
  color: var(--navy);
}

.event-facts dd {
  font-weight: 300;
  color: var(--navy);
}

.events-copy .show {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 1px;
}

.image-note {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--navy-soft);
  margin-top: 6px;
}

.map-note {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--navy-soft);
  max-width: 766px;
  margin: 0 auto 10px;
}

.trail-map {
  position: relative;
  max-width: 766px;
  margin: 0 auto;
}

.trail-map img {
  width: 100%;
  height: auto;
}

.trail-map .hotspot {
  position: absolute;
  display: block;
  border-radius: 3px;
  transition: background 0.2s ease, outline-color 0.2s ease;
  outline: 2px solid transparent;
  font-size: 0.6rem;
  font-weight: 400;
  color: var(--stone);
}

.trail-map .hotspot:hover,
.trail-map .hotspot:focus-visible {
  background: rgba(169, 129, 47, 0.25);   /* brand gold */
  outline-color: var(--gold);
}

/* ---------- Photo viewer (trail map) ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 16, 48, 0.88);
}

.lightbox[hidden] { display: none; }

.lightbox figure {
  max-width: min(1100px, 100%);
  max-height: 100%;
  text-align: center;
}

.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  margin: 0 auto;
  border-radius: 3px;
}

.lightbox figcaption {
  margin-top: 12px;
  color: var(--white);
  font-weight: 500;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  color: var(--white);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:focus-visible { outline: 2px solid var(--gold); }

/* ---------- Contact / forms ---------- */

.contact-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 2.1fr;
  gap: 64px;
}

.contact-info p {
  font-weight: 300;
  color: var(--navy);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 35ch;
}

form { display: grid; gap: 20px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--navy);
}

input, select, textarea {
  width: 100%;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--white);
  color: var(--navy);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
}

textarea { resize: vertical; min-height: 110px; }

/* ---------- Footer ---------- */

footer {
  background: var(--navy);
  color: #C9D2E4;
  padding: 56px 0 32px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.footer-support {
  font-size: 0.88rem;
  font-weight: 300;
  max-width: 50ch;
  line-height: 1.6;
}
.footer-support img { height: 78px; width: auto; }
.footer-social { display: flex; gap: 18px; }

.footer-social img { width: 26px; height: 26px; }

.footer-bottom {
  padding-top: 24px;
  font-size: 0.8rem;
  font-weight: 300;
  color: #8B97B5;
}

/* ---------- Schedule timeline ---------- */

.cef-schedule {
  --cef-navy: #002060;
  --cef-red: #c00000;
  max-width: 780px;
  margin: 0 auto;
  padding: 112px 20px 20px;
  font-family: 'Poppins', sans-serif;
  color: var(--cef-navy);
  box-sizing: border-box;
}

.cef-schedule *,
.cef-schedule *::before,
.cef-schedule *::after {
  box-sizing: border-box;
}

.cef-schedule .schedule-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--gold);
  margin-bottom: 24px;
}

.cef-schedule .cef-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cef-schedule .cef-day {
  position: relative;
  padding: 0 0 36px 72px;
  min-height: 44px;
}

.cef-schedule .cef-day:last-child {
  padding-bottom: 0;
}

.cef-schedule .cef-day:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 44px;
  bottom: 0;
  width: 2px;
  background: var(--cef-red);
}

.cef-schedule .cef-badge {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cef-navy);
  color: #ffffff;
  font-weight: bold;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cef-schedule .cef-day--last .cef-badge {
  background: var(--cef-red);
}

.cef-schedule .cef-day h2 {
  font-size: 1.35rem;
  font-weight: normal;
  line-height: 44px;
  color: var(--gold);
  margin: 0;
}

.cef-schedule .cef-day h2 b {
  font-weight: 500;
}

.cef-schedule .cef-day ul {
  margin: 6px 0 0;
  padding-left: 1.2em;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.6;
  list-style-type: disc;
}

.cef-schedule .cef-day li {
  margin: 0;
}
.cef-schedule .cef-day li b {
  font-weight: 500;
}

/* ---------- Responsive ---------- */

/* Large laptops: tighten the menu so everything fits on one line */
@media (max-width: 1400px) {
  .nav-links { gap: 22px; }
  .nav-links a { font-size: 0.88rem; }
}

/* Laptops, tablets and phones: switch to the menu button
   (1300px rather than 1200px, to leave room for the two header buttons) */
@media (max-width: 1300px) {
  .nav-toggle { display: flex; }

  .nav-actions { margin-left: auto; margin-right: 12px; }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .nav-links.open {
    max-height: calc(100vh - 72px);
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
  }

  .nav-links a {
    display: block;
    padding: 16px 32px;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .nav-cta { padding: 8px 14px; font-size: 0.82rem; }
  .nav-actions { gap: 8px; margin-right: 8px; }

  .events-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .field-row { grid-template-columns: 1fr; }
  section { padding: 76px 0; }

  .cef-schedule { padding: 112px 16px 40px; }
  .cef-schedule .cef-day { padding-left: 60px; }
  .cef-schedule .cef-day h2 { font-size: 1rem; }
}

/* Small phones: keep logo, both buttons and the menu button on one line */
@media (max-width: 420px) {
  .wrap.nav-row { padding: 0 14px; }
  .nav-cta { padding: 8px 10px; font-size: 0.76rem; }
  .nav-actions { gap: 6px; margin-right: 6px; }
}
