@font-face {
  font-family: 'Clash Grotesk';
  src: url('../fonts/ClashGrotesk-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Clash Grotesk';
  src: url('../fonts/ClashGrotesk-Semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0f1b3d;
  --navy-70: rgba(15, 27, 61, 0.7);
  --navy-50: rgba(15, 27, 61, 0.5);
  --navy-10: rgba(15, 27, 61, 0.08);
  --gold: #cbb072;
  --gold-hover: #bda05e;
  --white: #ffffff;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Clash Grotesk', var(--font);
}

* { box-sizing: border-box; }

button {
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

/* No max-width cap — matches the React site's app-container, which is
   full-width with side padding only, not a centered narrow box. */
.container {
  width: 100%;
  padding: 0 18px;
}
@media (min-width: 640px) {
  .container { padding: 0 46px; }
}
@media (min-width: 1024px) {
  .container { padding: 0 clamp(24px, calc(14.5vw - 124px), 154px); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--navy-10);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.site-header .logo img { height: 48px; }
.site-header .call-now {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.03em;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s;
}
.site-header .call-now:hover { background: var(--gold-hover); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1569 / 600;
  overflow: hidden;
  background: var(--navy);
}
.hero img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) {
  .hero { aspect-ratio: 440 / 440; }
}

/* ---------- Intro ---------- */
.intro {
  padding: 64px 0;
  text-align: center;
}
.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.intro h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 1.2vw + 1.4rem, 2.5rem);
  font-weight: 500;
  line-height: 1.2;
  text-transform: capitalize;
  max-width: 640px;
  margin: 0 auto;
}
.intro p {
  max-width: 640px;
  margin: 24px auto 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--navy-70);
}

/* ---------- Programme sections ---------- */
.programmes { padding-bottom: 80px; }
.programme {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  padding: 48px 0;
}
@media (min-width: 1024px) {
  .programme {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    padding: 72px 0;
  }
  .programme.image-first .text-col { order: 2; }
  .programme.image-first .media-col { order: 1; }
}

.text-col { text-align: center; }
@media (min-width: 1024px) {
  .text-col { text-align: left; }
}
.text-col h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 1vw + 1.3rem, 2.2rem);
  font-weight: 500;
  margin: 0 0 12px;
}
.text-col .tagline {
  color: var(--gold);
  font-weight: 500;
  font-size: 14px;
  margin: 0 0 20px;
}
.text-col .desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--navy-70);
  max-width: 460px;
  margin: 0 auto 24px;
}
@media (min-width: 1024px) {
  .text-col .desc { margin: 0 0 32px; }
}

.register-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  min-height: 44px;
}
.register-btn:hover { transform: scale(1.03); box-shadow: 0 10px 24px -8px rgba(15,27,61,0.35); }
.closed-note {
  font-size: 13px;
  font-style: italic;
  color: var(--navy-50);
}

/* ---------- Carousel ---------- */
.media-col { width: 100%; }
.carousel {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: var(--navy);
  box-shadow: 0 10px 30px -12px rgba(15,27,61,0.35);
}
.carousel-frame {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  padding-bottom: 65%;
  cursor: zoom-in;
}
.carousel-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.carousel:hover .carousel-frame img { transform: scale(1.02); }
.carousel-fade {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 96px;
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0.1), transparent);
  pointer-events: none;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  color: var(--navy);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.carousel-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.05); }
.carousel-arrow.prev { left: 12px; }
.carousel-arrow.next { right: 12px; }

.carousel-thumbs {
  position: absolute;
  inset-inline: 0;
  bottom: 8px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.carousel-thumb {
  position: relative;
  width: 48px;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.5);
  cursor: pointer;
  opacity: 0.7;
  padding: 0;
  background: none;
  transition: opacity 0.2s;
}
.carousel-thumb img { width: 100%; height: 100%; object-fit: cover; }
.carousel-thumb.active { border-color: var(--gold); opacity: 1; }
.carousel-thumb:hover { opacity: 1; }
@media (min-width: 640px) {
  .carousel-thumb { width: 64px; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-inner {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1100px;
  max-height: 85vh;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}
.lightbox-inner img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 10;
  background: none;
  border: none;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
}
.lightbox-close:hover { color: #fff; }
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-arrow:hover { background: rgba(255,255,255,0.2); }
.lightbox-arrow.prev { left: 12px; }
.lightbox-arrow.next { right: 12px; }
.lightbox-counter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  font-weight: 500;
}

/* ---------- Floating Register Now FAB ---------- */
.fab {
  position: fixed;
  bottom: 24px;
  left: 32px;
  z-index: 9999;
  width: 90px;
  height: 90px;
  border: none;
  background: none;
  cursor: pointer;
  animation: fab-float 3.2s ease-in-out infinite;
}
@keyframes fab-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.fab > svg { width: 100%; height: 100%; animation: fab-spin 14s linear infinite; }
@keyframes fab-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.fab-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(15, 27, 61, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--navy-10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.modal-header h3 { margin: 0; font-size: 19px; font-weight: 600; }
.modal-close { background: none; border: none; cursor: pointer; color: var(--navy-70); }
.modal-body { padding: 24px; overflow-y: auto; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.field label .req { color: #d33; }
.field select, .field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(15,27,61,0.15);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--navy);
  background: #fff;
}
.field select:focus, .field input:focus { outline: none; border-color: var(--gold); }
.field-hint { font-size: 11px; color: var(--navy-50); margin-top: 4px; }

/* ---------- Custom select (replaces native <select> popup) ---------- */
.custom-select { position: relative; }
.custom-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(15,27,61,0.15);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font);
  background: #fff;
  color: var(--navy);
  text-align: left;
}
.custom-select-trigger .placeholder { color: rgba(15,27,61,0.4); }
.custom-select-trigger .chevron {
  flex-shrink: 0;
  transition: transform 0.2s;
  color: var(--navy-50);
}
.custom-select.open .custom-select-trigger { border-color: var(--gold); }
.custom-select.open .custom-select-trigger .chevron { transform: rotate(180deg); }

.custom-select-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 240px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid rgba(15,27,61,0.12);
  border-radius: 10px;
  box-shadow: 0 16px 40px -12px rgba(15,27,61,0.28);
  padding: 6px;
  display: none;
}
.custom-select.open .custom-select-list { display: block; }

.custom-select-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--navy);
  background: none;
  border: none;
}
.custom-select-option:hover,
.custom-select-option.highlighted {
  background: rgba(201, 164, 92, 0.12);
}
.custom-select-option.selected {
  color: var(--gold-hover);
  font-weight: 600;
}
.field-error { font-size: 12px; color: #d33; margin-top: 4px; }
.phone-row { display: flex; gap: 8px; }
.phone-row .code {
  flex-shrink: 0;
  padding: 12px 14px;
  border: 1px solid rgba(15,27,61,0.15);
  border-radius: 8px;
  font-size: 14px;
  background: #f7f7f7;
}
.form-error-banner {
  background: #fdecec;
  color: #a33;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}
.submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: opacity 0.2s;
}
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.success-state { text-align: center; padding: 32px 24px 40px; }
.success-state .check { color: var(--gold); margin-bottom: 16px; }
.success-state p { font-size: 13px; color: var(--navy-70); margin: 0 0 8px; }
.success-state .support { font-size: 12px; color: var(--navy-50); margin-bottom: 24px; }
.success-state .close-btn {
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 10px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 32px 24px;
  font-size: 13px;
}
.site-footer a { color: var(--gold); text-decoration: none; }
