:root {
  --olive: #7e7a68;
  --slate: #71808a;
  --plum: #463d39;
  --sage: #d8d6c9;
  --blush: #dcc7b6;
  --sand: #e7d8c3;
  --stone: #e9e2d9;
  --sea: #c9d2d1;
  --ink: #201d1a;
  --soft: #f3efe9;
  --ivory: #efe6dc;
  --linen: #e2d5c7;
  --panel: #f5f0eb;
  --burgundy: #45141d;
  --rust: #b65f3a;
  --white: #fffaf6;
  --shadow: rgba(32, 29, 26, 0.12);
  --card-shadow: 0 24px 54px rgba(32, 29, 26, 0.12);
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  background: var(--soft);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.section-shell {
  padding: 5.5rem 0;
}

.narrow-section {
  max-width: 840px;
}
.intro-copy .narrow-section {
  max-width: 980px;
}

.eyebrow,
.section-kicker {
  display: inline-block;
  margin: 0 0 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

h1,
h2,
h3,
.brand,
.logo-mark {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(3.2rem, 7vw, 7.2rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(2.5rem, 4.5vw, 4.5rem);
  margin: 0 0 1.25rem;
}

h3 {
  font-size: clamp(2rem, 2.9vw, 3rem);
  margin: 0 0 1rem;
}

p {
  margin: 0 0 1rem;
  font-size: 1.04rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.light-header {
  background: rgba(249, 246, 243, 0.88);
}

.dark-header {
  background: rgba(24, 22, 20, 0.9);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 108px;
  padding: 0.8rem 0;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  width: min(34vw, 270px);
  align-items: center;
}

.brand img {
  width: 100%;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.main-nav a {
  position: relative;
  opacity: 0.82;
  transition: opacity 180ms ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.38rem;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a.active::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.active {
  opacity: 1;
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid rgba(31, 29, 26, 0.2);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--white);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(17, 17, 17, 0.25);
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.45fr;
  align-items: center;
  gap: 2rem;
  min-height: 78vh;
}

.hero-copy {
  padding: 3rem 0;
}

.hero-tagline {
  max-width: 34rem;
  font-size: 1.18rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-visual {
  position: relative;
  height: clamp(420px, 58vh, 620px);
  aspect-ratio: 16 / 10;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: transparent;
  transition: background 220ms ease;
}

.card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.card-image img {
  height: 100%;
  object-fit: cover;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
  border: none;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 35px rgba(18, 13, 11, 0.12);
}

.btn-primary {
  background: var(--burgundy);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--burgundy);
  color: var(--burgundy);
}

.home-page .btn-secondary {
  background: var(--white);
  border-color: var(--white);
  color: var(--burgundy);
}

.home-page {
  background: var(--soft);
}

.home-page .hero-home {
  background: var(--white);
}

.home-page .eyebrow,
.home-page .section-kicker,
.home-page .text-link {
  color: var(--plum);
}

.home-page .brand img {
  filter: none;
}

.home-page .site-header {
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.2);
  transition: box-shadow 180ms ease;
}

.home-page .site-header.is-scrolled {
  box-shadow: none;
}

.home-page .vision .narrow-section {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.vision {
  background: rgba(255, 255, 255, 0.38);
}

.quote-block {
  position: relative;
  padding: 2rem 1.5rem;
  margin: 2.5rem 0;
  background: rgba(255, 255, 255, 0.55);
  border-left: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 0 20px 35px rgba(103, 90, 48, 0.07);
}

.quote-block p {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.05;
  margin: 0;
  color: var(--ink);
}

.split-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.programme-card {
  overflow: hidden;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--card-shadow);
}

.card-copy {
  padding: 2rem;
}

.text-link {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.adult-page {
  background: var(--soft);
  color: var(--ink);
}

.adult-page .site-header,
.adult-page .site-footer {
  background: rgba(249, 246, 243, 0.88);
}

.adult-page .main-nav a {
  color: var(--ink);
}

.hero-subpage {
  position: relative;
  isolation: isolate;
  padding: 4.5rem 0 2.5rem;
  background-color: var(--stone);
  background-repeat: no-repeat;
  background-size: var(--hero-image-size);
  background-position: var(--hero-image-position);
  min-height: var(--hero-height);
  color: #fffaf6;
}

/* Adjust these three values to reframe each page's hero image. */
.hero-adult {
  --hero-image-position: center 60%;
  --hero-image-size: cover;
  --hero-height: 300px;
  background-color: var(--stone);
  background-image: url("images/adultbackground.jpg");
}

.hero-student {
  --hero-image-position: center 20%;
  --hero-image-size: cover;
  --hero-height: 300px;
  background-color: var(--stone);
  background-image: url("images/studentbackground.jpg");
}

/* Use a larger percentage to show more of the lower image, or a smaller
   percentage to show more of the top. Change cover to a custom size such as
   100% auto when you want less cropping. Increase hero-height to show more. */

.hero-subpage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(39, 33, 29, 0.48);
}

.narrow-hero {
  max-width: 980px;
  text-align: left;
}

.hero-adult .eyebrow,
.hero-adult .section-kicker,
.adult-page .section-kicker,
.adult-page .text-link {
  color: var(--olive);
}

.hero-subpage .eyebrow {
  color: #f0d8cc;
}

.adult-page .section-shell,
.adult-page .intro-copy,
.adult-page .country-section,
.adult-page .gallery,
.adult-page .booking {
  background: transparent;
}

.adult-page .intro-copy {
  padding-bottom: 5rem;
}

.student-page .intro-copy {
  padding-bottom: 2rem;
}

.adult-page .intro-copy + .country-section {
  padding-top: 2rem;
}

.country-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2rem;
  align-items: center;
}

.country-layout.reverse {
  grid-template-columns: 1fr 1.05fr;
}

.country-layout.reverse .country-text {
  order: 2;
}

.country-layout.reverse .country-photo {
  order: 1;
}

.country-text {
  padding-right: 1rem;
}

.country-text h2,
.booking-copy h2,
.exchange-box h2,
.vision h2,
.policy-copy h2,
.section-head-row h2 {
  text-align: left;
}

.country-text ul {
  padding-left: 1.1rem;
  margin: 1.2rem 0 0;
}

.country-text li {
  margin-bottom: 0.7rem;
}

.country-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 26px;
  height: auto;
  object-fit: cover;
  box-shadow: var(--card-shadow);
}

.alt-shell {
  background: rgba(255, 255, 255, 0.04);
}

.booking {
  background: #edf0ea;
}

.booking-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  align-items: flex-start;
}

.booking-copy {
  padding-top: 0.8rem;
}

.travel-form {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(92, 89, 70, 0.12);
  border-radius: 24px;
  padding: 2rem;
}

.field-row {
  margin-bottom: 1.1rem;
}

.field-row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  display: block;
}

label span {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(103, 97, 68, 0.15);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.9rem 1rem;
  color: inherit;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(216, 194, 189, 0.7);
  border-color: transparent;
}

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

.form-message {
  margin-top: 1rem;
  color: var(--burgundy);
  font-weight: 700;
  min-height: 1.5em;
}

.form-success {
  margin-top: 1rem;
  color: var(--olive);
  font-weight: 700;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-grid img {
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  border-radius: 18px;
}

.student-page {
  background: var(--soft);
}

.hero-student {
  background-color: var(--stone);
}

.student-page .eyebrow,
.student-page .section-kicker,
.student-page .text-link {
  color: var(--rust);
}

.student-page .btn-primary {
  background: var(--rust);
}

.student-page .booking {
  background: #edf0ea;
  color: var(--ink);
}

.student-page .travel-form {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(92, 89, 70, 0.12);
  color: var(--ink);
}

.student-page input,
.student-page textarea {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(103, 97, 68, 0.15);
  color: var(--ink);
}

.exchange-box {
  background: rgba(255, 255, 255, 0.52);
  padding: 2rem;
  border-radius: 24px;
  border-left: 4px solid var(--rust);
  box-shadow: 0 20px 35px rgba(182, 95, 58, 0.2);
}

.nz-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.nz-feature {
  background: rgba(255, 255, 255, 0.52);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 35px rgba(55, 47, 42, 0.08);
}

.nz-feature img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
}

.nz-feature div {
  padding: 1.5rem;
}

.nz-feature h3 {
  font-size: clamp(1.8rem, 2vw, 2.4rem);
  margin-bottom: 0.8rem;
}

.sponsor-space {
  padding-top: 0;
}

.sponsor-placeholder {
  border: 1px dashed rgba(122, 117, 102, 0.4);
  border-radius: 18px;
  padding: 2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.4);
}

.sponsor-placeholder p {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 700;
  color: rgba(31, 29, 26, 0.7);
}

.site-footer {
  padding: 1.2rem 0 2rem;
}

.dark-footer {
  background: rgba(11, 10, 10, 0.9);
  color: rgba(245, 240, 234, 0.9);
}

.adult-page .travel-form {
  color: var(--ink);
}

.adult-page .travel-form .btn-primary {
  background: var(--olive);
  color: var(--white);
}

.light-footer {
  background: rgba(255, 255, 255, 0.7);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(31, 29, 26, 0.08);
  padding-top: 1.1rem;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.policy-page {
  background: var(--soft);
}

.policy-header {
  padding-bottom: 1.5rem;
}

.policy-page main > section:not(.policy-header) {
  padding-top: 1rem;
  padding-bottom: 3rem;
}

.policy-copy {
  background: rgba(255, 255, 255, 0.46);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 20px 35px rgba(64, 53, 49, 0.06);
}

.policy-copy h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-top: 1.8rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .country-layout,
  .country-layout.reverse,
  .booking-layout,
  .split-cards,
  .nz-grid {
    grid-template-columns: 1fr;
  }

  .booking-copy {
    padding-top: 0;
  }

  .hero-grid {
    min-height: auto;
    padding: 2rem 0 1rem;
  }

  .hero-visual {
    height: 420px;
  }

  .nav-wrap {
    min-height: 96px;
  }

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

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
    color: inherit;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 18px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(31, 29, 26, 0.08);
  }

  .main-nav.open {
    display: flex;
  }

  .dark-header .main-nav {
    background: rgba(17, 15, 14, 0.97);
    color: rgba(255, 255, 255, 0.9);
  }

  .field-row-two {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .brand {
    width: min(62vw, 300px);
  }

  .theme-toggle {
    margin-left: auto;
  }

  .section-shell {
    padding: 4rem 0;
  }

  .hero-copy {
    padding-top: 1rem;
  }

  .cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}

body[data-theme="dark"] {
  --soft: #211e1c;
  --stone: #302b28;
  --panel: #292522;
  --white: #f7f0e8;
  --ink: #f4ede5;
  --shadow: rgba(0, 0, 0, 0.28);
  --card-shadow: 0 24px 54px rgba(0, 0, 0, 0.3);
  background: var(--soft);
  color: var(--ink);
}

body[data-theme="dark"] .light-header,
body[data-theme="dark"] .site-header {
  background: rgba(27, 24, 22, 0.94);
  color: var(--ink);
}

body[data-theme="dark"] .brand img {
  filter: invert(1);
}

body[data-theme="dark"].home-page .site-header {
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.78);
}

body[data-theme="dark"].home-page .site-header.is-scrolled {
  box-shadow: none;
}

body[data-theme="dark"] .hero-visual::after {
  background: rgba(10, 8, 7, 0.34);
}

body[data-theme="dark"].home-page .eyebrow,
body[data-theme="dark"].home-page .section-kicker,
body[data-theme="dark"].home-page .text-link {
  color: #f0d8cc;
}

body[data-theme="dark"].home-page .hero-home .eyebrow {
  color: #fffaf6;
}

body[data-theme="dark"] .main-nav {
  color: var(--ink);
}

body[data-theme="dark"] .main-nav.open {
  background: #2b2623;
  border-color: rgba(255, 255, 255, 0.14);
}

body[data-theme="dark"] .theme-toggle {
  border-color: rgba(255, 255, 255, 0.28);
}

body[data-theme="dark"].home-page .hero-home {
  background-color: rgba(24, 22, 20, 0.9);
}

body[data-theme="dark"] .hero-subpage {
  background-color: var(--stone);
}

body[data-theme="dark"] .hero-subpage {
  background-image: url("images/studentbackground.jpg");
}

body[data-theme="dark"] .hero-adult {
  background-image: url("images/adultbackground.jpg");
}

body[data-theme="dark"] .hero-student {
  background-image: url("images/studentbackground.jpg");
}

body[data-theme="dark"] .student-page .eyebrow,
body[data-theme="dark"] .student-page .section-kicker,
body[data-theme="dark"] .student-page .text-link {
  color: #f0a078;
}

body[data-theme="dark"] .vision,
body[data-theme="dark"] .programme-grid,
body[data-theme="dark"] .policy-page,
body[data-theme="dark"] .student-page,
body[data-theme="dark"] .adult-page {
  background: var(--soft);
}

body[data-theme="dark"] .quote-block,
body[data-theme="dark"] .policy-copy,
body[data-theme="dark"] .exchange-box,
body[data-theme="dark"] .nz-feature,
body[data-theme="dark"] .programme-card {
  background: #2b2623;
  color: var(--ink);
}

body[data-theme="dark"] .card-copy,
body[data-theme="dark"] .policy-copy {
  color: var(--ink);
}

body[data-theme="dark"] .adult-page .section-shell,
body[data-theme="dark"] .adult-page .intro-copy,
body[data-theme="dark"] .adult-page .country-section,
body[data-theme="dark"] .adult-page .gallery,
body[data-theme="dark"] .adult-page .booking {
  background: transparent;
}

body[data-theme="dark"] .alt-shell {
  background: rgba(255, 255, 255, 0.03);
}

body[data-theme="dark"] .booking,
body[data-theme="dark"] .student-page .booking {
  background: #292522;
  color: var(--ink);
}

body[data-theme="dark"] .travel-form,
body[data-theme="dark"] .student-page .travel-form {
  background: #211e1c;
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--ink);
}

body[data-theme="dark"] input,
body[data-theme="dark"] textarea,
body[data-theme="dark"] .student-page input,
body[data-theme="dark"] .student-page textarea {
  background: #302b28;
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--ink);
}

body[data-theme="dark"] .sponsor-placeholder {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.24);
}

body[data-theme="dark"] .sponsor-placeholder p {
  color: rgba(244, 237, 229, 0.76);
}

body[data-theme="dark"] .site-footer,
body[data-theme="dark"] .light-footer,
body[data-theme="dark"] .dark-footer {
  background: #1b1816;
  color: var(--ink);
}

body[data-theme="dark"] .footer-inner {
  border-top-color: rgba(255, 255, 255, 0.12);
}
