/* ==========================================================================
   Sandbox English Summer School — site styles
   Design tokens → base → layout → components → pages → utilities
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/dm-sans-roman-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/dm-sans-roman-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/fraunces-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/fraunces-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("../fonts/fraunces-roman-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("../fonts/fraunces-roman-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand palette */
  --sand-50: #fdf9f1;
  --sand-100: #f8efdc;
  --sand-200: #f1e0bb;
  --sand-300: #e6c98f;
  --navy-900: #14213d;
  --navy-800: #1d2d52;
  --navy-600: #3a4a6e;
  --coral-500: #f2603d;
  --coral-600: #d94a28;
  --coral-700: #c2412d; /* buttons and banners: 5:1 with white text */
  --coral-800: #a8361f;
  --coral-text: #b83a22; /* small coral text: 5:1 on sand */
  --coral-100: #fde3da;
  --sea-500: #2a9d8f;
  --sea-100: #d6f0ec;
  --sun-400: #f7b733;
  --sun-100: #fdf0cf;
  --sky-500: #4a7fd6;
  --sky-100: #e0eafa;

  /* Semantic */
  --bg: var(--sand-50);
  --bg-alt: var(--sand-100);
  --surface: #ffffff;
  --text: var(--navy-900);
  --text-muted: #4f5b76;
  --border: #e8dcc2;
  --input-border: #9c8c6c; /* 3:1 on sand, so fields are easy to see */
  --accent: var(--coral-700);
  --accent-hover: var(--coral-800);
  --focus: var(--sky-500);

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Spacing & shape */
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(20, 33, 61, 0.06), 0 2px 6px rgba(20, 33, 61, 0.05);
  --shadow: 0 6px 24px rgba(20, 33, 61, 0.08);
  --shadow-lg: 0 18px 48px rgba(20, 33, 61, 0.14);
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 9vw, 120px);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1em; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--sun-400); color: var(--navy-900); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--navy-900);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; color: #fff; }

.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;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section-y) 0; }
section[id] { scroll-margin-top: 84px; }
.section--alt { background: var(--bg-alt); }
.section--navy { background: var(--navy-900); color: #f4efe4; }
.section--navy .eyebrow { color: var(--sun-400); }
.section--navy .lead,
.section--navy p { color: #cfd6e6; }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--text-muted); }

.grid { display: grid; gap: clamp(20px, 3vw, 32px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.grid-tiles { gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.split {
  display: grid;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse > :first-child { order: 2; }
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 249, 241, 0.88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px rgba(20, 33, 61, 0.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy-900);
  flex-shrink: 0;
}
.brand:hover { color: var(--navy-900); }
.brand-mark { width: 42px; height: 42px; flex-shrink: 0; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral-text);
  margin-top: 4px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  padding: 10px;
  cursor: pointer;
  color: var(--navy-900);
  border-radius: 12px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle span + span { margin-top: 6px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.site-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav li:not(.nav-cta) a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.97rem;
  color: var(--navy-800);
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.site-nav li:not(.nav-cta) a:hover { background: var(--sand-200); color: var(--navy-900); }
.site-nav li:not(.nav-cta) a[aria-current="page"] { background: var(--navy-900); color: #fff; }
.site-nav .nav-cta { margin-left: 8px; }

@media (max-width: 1240px) {
  /* With JavaScript: links collapse into the menu button */
  .js .nav-toggle { display: block; }
  .js .site-nav {
    position: fixed;
    inset: 76px 0 auto 0;
    background: var(--sand-50);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 12px var(--gutter) 24px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  .js .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .js .site-nav li:not(.nav-cta) a { padding: 14px 16px; border-radius: 12px; font-size: 1.05rem; }
  .js .site-nav .nav-cta { margin: 12px 0 0; }
  .js .site-nav .nav-cta .btn { width: 100%; justify-content: center; }
  /* Without JavaScript: links wrap underneath the logo */
  html:not(.js) .header-inner { height: auto; flex-wrap: wrap; padding-block: 12px; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; transition: transform 0.2s; }
.btn:hover svg { transform: translateX(3px); }

.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(194, 65, 45, 0.3); }
.btn--primary:hover { background: var(--accent-hover); color: #fff; box-shadow: 0 8px 22px rgba(194, 65, 45, 0.38); }
.btn--dark { background: var(--navy-900); color: #fff; }
.btn--dark:hover { background: var(--navy-800); color: #fff; }
.btn--ghost { border-color: var(--navy-900); color: var(--navy-900); background: transparent; }
.btn--ghost:hover { background: var(--navy-900); color: #fff; }
.btn--light { background: #fff; color: var(--navy-900); }
.btn--light:hover { background: var(--sun-100); color: var(--navy-900); }
.btn--sm { padding: 10px 18px; font-size: 0.93rem; }
.site-nav .btn--primary { color: #fff; }
.site-nav .btn--primary:hover { background: var(--accent-hover); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 8vw, 110px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}
.hero h1 { margin-bottom: 0.35em; }
.hero h1 em {
  font-style: italic;
  color: var(--coral-600);
}
.hero .lead { max-width: 540px; margin-bottom: 32px; }

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 72px);
  overflow: hidden;
}
.page-hero .lead { max-width: 640px; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); max-width: 820px; }
.page-hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -80px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--sun-100), transparent 70%);
  z-index: -1;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--text-muted); }

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); padding: 28px 24px; }
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 600;
  line-height: 1;
  color: var(--navy-900);
  margin-bottom: 8px;
}
.stat-value span { color: var(--coral-600); }
.stat-label { font-size: 0.95rem; color: var(--text-muted); line-height: 1.4; }

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 32px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }

.icon-tile {
  display: inline-grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 16px;
  margin-bottom: 20px;
  background: var(--coral-100);
  color: var(--coral-600);
}
.icon-tile svg { width: 26px; height: 26px; }
.icon-tile--sea { background: var(--sea-100); color: var(--sea-500); }
.icon-tile--sun { background: var(--sun-100); color: #b07a06; }
.icon-tile--sky { background: var(--sky-100); color: var(--sky-500); }

/* Programme cards */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--sand-100);
  color: var(--navy-800);
}
.tag--sea { background: var(--sea-100); color: #1d7268; }
.tag--sky { background: var(--sky-100); color: #2c5caa; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
  color: var(--navy-900);
}
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* Campus cards */
.campus-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.campus-card:hover { color: inherit; }
.campus-card__art { aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; background: var(--campus, var(--sand-200)); }
.campus-card__art svg { width: 100%; height: 100%; }
.campus-card__body { padding: 28px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.campus-card__body h3 { margin: 6px 0 0; }
.campus-card__body p { margin: 0 0 6px; }
.campus-card:hover .link-arrow svg { transform: translateX(4px); }

/* Campus detail */

/* Photo gallery: shows an illustrated placeholder until the real image loads */
.photo-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.photo {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  max-width: 100%;
  background: var(--sun-100);
  display: grid;
  place-items: center;
  isolation: isolate;
}
.photo:nth-child(4n+2) { background: var(--coral-100); }
.photo:nth-child(4n+3) { background: var(--sea-100); }
.photo:nth-child(4n+4) { background: var(--sky-100); }
.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.photo figcaption {
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 2;
  background: rgba(253, 249, 241, 0.94);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
}

.photo--wide { aspect-ratio: 16 / 10; }
.photo--tall { aspect-ratio: 4 / 5; }
.photo--portrait { aspect-ratio: 4 / 5; }

/* Founder portrait: a monogram stands in until assets/img/photos/founder.jpg exists */
.photo.photo--monogram { background: var(--navy-900); aspect-ratio: 4 / 3; }
.monogram {
  margin-bottom: 2.5em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 12vw, 6.5rem);
  line-height: 1;
  color: var(--coral-500);
}
.founder-card { display: grid; gap: 16px; }
@media (min-width: 560px) {
  .founder-card { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .photo.photo--monogram { aspect-ratio: 4 / 5; }
}
.founder-card > .photo { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.founder-card .photo figcaption strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.founder-card__tiles { display: grid; gap: 16px; align-content: stretch; }

.hero-photo .photo { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.campus-card__art .photo { border-radius: 0; aspect-ratio: auto; width: 100%; height: 100%; }
.campus-card__art { aspect-ratio: 16 / 10; }

.photo-stack { display: grid; gap: 16px; }
.photo-stack > .photo { border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* Trips */
.trip-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.trip {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.trip .photo { border-radius: 0; }
.trip__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.trip__body h3 { margin: 0; font-size: 1.3rem; }
.trip__body p { margin: 0; color: var(--text-muted); font-size: 0.97rem; }
.trip__tags { list-style: none; padding: 0; margin: auto 0 0; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.trip__tags li {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sea-100);
  color: #1d7268;
}

/* Audience cards, group figures, founder card */
.audience-card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; }
.audience-card:hover { color: inherit; }
.audience-card .link-arrow { margin-top: auto; padding-top: 12px; }
.audience-card:hover .link-arrow svg { transform: translateX(4px); }
.group-figure { margin: 0; display: grid; gap: 14px; }
.group-figure .photo { border-radius: var(--radius); }
.group-figure figcaption { color: var(--text-muted); font-size: 0.97rem; }
.group-figure figcaption strong { display: block; color: var(--text); font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 2px; }
.grid-3 > .photo { border-radius: var(--radius); }

/* Comparison table */

/* ---------- Checklist ---------- */
.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 12px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--sea-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a9d8f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.section--navy .checklist li::before { background-color: rgba(42, 157, 143, 0.22); }

/* ---------- Day timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 83px; top: 8px; bottom: 8px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--sand-300) 0 6px, transparent 6px 12px);
}
.timeline li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 32px;
  padding: 12px 0;
  position: relative;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 77px; top: 20px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--coral-500);
}
.timeline li:nth-child(3n+2)::before { border-color: var(--sea-500); }
.timeline li:nth-child(3n)::before { border-color: var(--sun-400); }
.timeline time {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--navy-900);
  padding-top: 2px;
  text-align: right;
}
.timeline strong { display: block; font-size: 1.05rem; }
.timeline span { color: var(--text-muted); font-size: 0.97rem; }
.section--navy .timeline time,
.section--navy .timeline strong { color: #fff; }
.section--navy .timeline span { color: #cfd6e6; }
.section--navy .timeline::before { background: repeating-linear-gradient(to bottom, rgba(255,255,255,.25) 0 6px, transparent 6px 12px); }
.section--navy .timeline li::before { background: var(--navy-900); }

/* ---------- Feature media block ---------- */

/* ---------- Excursion chips ---------- */

/* ---------- Quote / promise ---------- */

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--coral-700);
  color: #fff;
  padding: clamp(40px, 6vw, 72px);
  overflow: hidden;
  display: grid;
  gap: 28px;
  align-items: center;
}
@media (min-width: 860px) { .cta-band { grid-template-columns: 1.4fr auto; } }
.cta-band h2 { margin-bottom: 0.3em; }
.cta-band p { margin: 0; color: #fff; font-size: 1.1rem; }
.cta-band :focus-visible { outline-color: #fff; }
.section--navy :focus-visible { outline-color: var(--sun-400); }
.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.cta-band::before { width: 320px; height: 320px; right: -80px; top: -140px; }
.cta-band::after { width: 180px; height: 180px; right: 180px; bottom: -110px; background: rgba(247, 183, 51, 0.35); }
.cta-band > * { position: relative; z-index: 1; }

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
th, td { padding: 16px 18px; text-align: left; vertical-align: top; }
thead th {
  background: var(--navy-900);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
tbody tr + tr td,
tbody tr + tr th { border-top: 1px solid var(--border); }
tbody th { font-weight: 600; }
tbody tr:nth-child(even) { background: var(--sand-50); }

/* ---------- Tabs (programmes) ---------- */

/* ---------- Programme detail ---------- */

.sticky-card { position: sticky; top: 100px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.faq details[open] { box-shadow: var(--shadow); border-color: var(--sand-300); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 64px 22px 24px;
  font-weight: 600;
  font-size: 1.05rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 24px; top: 50%;
  width: 28px; height: 28px;
  margin-top: -14px;
  border-radius: 50%;
  background: var(--sand-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314213d' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 0.25s, background-color 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--coral-100); }
.faq .faq-body { padding: 0 24px 22px; color: var(--text-muted); }
.faq .faq-body p:last-child { margin: 0; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 48px);
  box-shadow: var(--shadow);
}
.form-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .span-2 { grid-column: 1 / -1; }
}
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 16px;
  padding: 0;
}
.form-section + .form-section { margin-top: 36px; padding-top: 32px; border-top: 1px dashed var(--border); }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field .label { font-weight: 600; font-size: 0.95rem; }
.field .hint { font-size: 0.85rem; color: var(--text-muted); margin-top: -4px; }
.req { color: var(--coral-text); }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
  font: inherit;
  font-size: 1rem;
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--input-border);
  border-radius: 12px;
  background: var(--sand-50);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
textarea { min-height: 130px; resize: vertical; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314213d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 44px;
}
input:hover, select:hover, textarea:hover { border-color: var(--sand-300); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--sky-500);
  background: #fff;
  outline: 2px solid var(--sky-500);
  outline-offset: 1px;
  box-shadow: 0 0 0 4px var(--sky-100);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #c2412d; background: #fff7f5; }
.field-error { color: #b0341f; font-size: 0.86rem; font-weight: 500; min-height: 0; }
.field-error:empty { display: none; }
/* Form sending: spam trap (Formspree ignores submissions that fill it) and send errors */
.hp-field { display: none; }
.form-status {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: #fdecea;
  border: 1px solid #f3b8ad;
  color: #8f2a18;
  font-weight: 500;
}
form[aria-busy="true"] [type="submit"] { opacity: 0.7; cursor: progress; }

.choice-group { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
  position: relative;
  display: inline-flex;
}
.choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.choice span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1.5px solid var(--input-border);
  border-radius: 999px;
  background: var(--sand-50);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.15s;
}
.choice span svg { width: 18px; height: 18px; }
.choice input:hover + span { border-color: var(--sand-300); }
.choice input:checked + span { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
  cursor: pointer;
}
.checkbox input {
  width: 20px; height: 20px;
  margin: 3px 0 0;
  accent-color: var(--coral-500);
  flex-shrink: 0;
}

.form-success {
  text-align: center;
  padding: clamp(24px, 5vw, 48px) 0;
}
.form-success .icon-tile { width: 72px; height: 72px; border-radius: 50%; }
.form-success .icon-tile svg { width: 34px; height: 34px; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 20px; list-style: none; padding: 0; margin: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 4px 0 4px 64px;
  min-height: 48px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  background: var(--coral-100);
  color: var(--coral-600);
}
.steps strong { display: block; font-size: 1.05rem; margin-bottom: 2px; }
.steps span { color: var(--text-muted); font-size: 0.97rem; }
.section--navy .steps li::before { background: rgba(247, 183, 51, 0.18); color: var(--sun-400); }
.section--navy .steps span { color: #cfd6e6; }

/* ---------- Team ---------- */

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .icon-tile { margin: 0; flex-shrink: 0; width: 48px; height: 48px; }
.contact-list .icon-tile svg { width: 22px; height: 22px; }
.contact-list strong { display: block; }
.contact-list a { font-weight: 500; }
.contact-list span { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Notice ---------- */

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: #cfd6e6;
  padding: clamp(56px, 8vw, 88px) 0 32px;
  margin-top: 0;
  font-size: 0.97rem;
}
.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; } }
.site-footer .brand { color: #fff; margin-bottom: 18px; }
.site-footer .brand-name small { color: var(--sun-400); }
.footer-title {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #cfd6e6; text-decoration: none; }
.site-footer a:hover { color: var(--sun-400); }
.footer-note { max-width: 340px; }
.newsletter { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.newsletter input {
  flex: 1 1 180px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.newsletter input::placeholder { color: #9aa6c0; }
.newsletter input:focus { background: rgba(255, 255, 255, 0.1); box-shadow: 0 0 0 4px rgba(74, 127, 214, 0.35); }
.newsletter-msg { font-size: 0.88rem; color: var(--sun-400); margin-top: 8px; min-height: 1.3em; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
  color: #9aa6c0;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 20px; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s;
}
.socials a:hover { background: var(--coral-500); color: #fff; }
.socials svg { width: 18px; height: 18px; }

/* ---------- Decorative ---------- */

/* ---------- Reveal on scroll ---------- */
.reveal-ready .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Utilities ---------- */
.mb-0 { margin-bottom: 0; }
.mt-lg { margin-top: clamp(32px, 5vw, 56px); }
.muted { color: var(--text-muted); }
.small { font-size: 0.9rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-ready .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .cta-band { display: none; }
  body { background: #fff; }
}

/* ---------- Layout helpers ---------- */
.section--tight-top { padding-top: 0; }
.split--top { align-items: start; }
.mt-sm { margin-top: 14px; }
.mt-md { margin-top: 28px; }
.h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); }
.h4 { font-size: 1.15rem; }
.photo-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.page-hero--compact { padding-bottom: clamp(24px, 4vw, 40px); }

.form-layout {
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
@media (min-width: 940px) { .form-layout { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }

.btn--outline-light { border-color: #fff; color: #fff; background: transparent; }
.btn--outline-light:hover { background: #fff; color: var(--coral-800); }

/* Long-form text (legal pages) */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }

.credit-thumb { width: 120px; height: 80px; object-fit: cover; border-radius: 8px; max-width: none; }

@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; justify-content: center; }
}

