:root {
  --ink: #164047;
  --ink-dark: #0a2226;
  --gold: #c9952e;
  --gold-dark: #a97b22;
  --gold-deep: #8a660c;
  --off-white: #f6f4ef;
  --gray: #5c655f;
  --border: #e1e4de;
  --silver-light: #ffffff;
  --silver-mid: #d7dbdb;
  --silver-dark: #a7b0b0;
  --radius: 12px;
  --max-width: 1100px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--off-white);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Anton', 'Inter', system-ui, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  text-wrap: balance;
  margin: 0 0 0.5em;
  line-height: 1.15;
}

p { margin: 0 0 1em; }

a { color: inherit; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-script {
  font-family: 'Kaushan Script', cursive;
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--gold);
  line-height: 1;
}

.logo-showcase {
  font-family: 'Anton', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  line-height: 1;
  background: linear-gradient(180deg, var(--silver-light) 0%, var(--silver-mid) 45%, var(--silver-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--silver-mid);
  -webkit-text-fill-color: transparent;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  color: #cdd8d5;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.nav a:hover { color: var(--gold); }

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

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
}

/* Hero */
.hero {
  background:
    linear-gradient(160deg, rgba(22,64,71,0.55) 0%, rgba(10,34,38,0.8) 100%),
    url('../assets/photos/hero-collage.jpg') center / cover no-repeat,
    linear-gradient(160deg, var(--ink) 0%, var(--ink-dark) 100%);
  color: #fff;
  padding: 96px 0 80px;
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 16px;
  background: linear-gradient(180deg, var(--silver-light) 0%, var(--silver-mid) 45%, var(--silver-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--silver-mid);
  -webkit-text-fill-color: transparent;
}

.hero h1 .script-name {
  display: block;
  font-family: 'Kaushan Script', cursive;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  font-size: 1.3em;
  line-height: 1.1;
  margin-bottom: 0.1em;
  background: none;
  color: var(--gold);
  -webkit-text-fill-color: var(--gold);
}

.hero-sub {
  font-size: 1.15rem;
  color: #cdd8d5;
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-bottom: 44px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: #8fa39e;
  font-weight: 600;
}

.meta-value {
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
}

.meta-value small {
  font-size: 0.65em;
  font-weight: 500;
  color: #b8c6c2;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--ink-dark);
}

.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(201,149,46,0.35);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

/* Sections */
section {
  padding: 80px 0;
}

section h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--gray);
  max-width: 520px;
  margin: 0 auto 40px;
}

.about p {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
  color: var(--gray);
  font-size: 1.05rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.about-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

.about-card h3 {
  color: var(--gold-deep);
  font-size: 1.05rem;
}

.about-card p {
  color: var(--gray);
  margin: 0;
}

.schools {
  background: #fff;
}

.logo-carousel {
  overflow: hidden;
  margin-top: 40px;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.logo-track {
  display: flex;
  align-items: center;
  width: max-content;
  padding: 8px 0;
  animation: scroll-logos 28s linear infinite;
}

.logo-track:hover {
  animation-play-state: paused;
}

.logo-item {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  margin-right: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.logo-item img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes scroll-logos {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-track {
    animation: none;
    overflow-x: auto;
  }
}

.schools-note {
  text-align: center;
  color: var(--gray);
  font-size: 0.9rem;
  margin: 32px 0 0;
}

.gallery {
  background: var(--off-white);
  padding: 40px 0;
}

.gallery-carousel {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.gallery-track {
  display: flex;
  align-items: center;
  width: max-content;
  padding: 8px 0;
  animation: scroll-gallery 55s linear infinite;
}

.gallery-track:hover {
  animation-play-state: paused;
}

.gallery-item {
  flex: 0 0 auto;
  width: 260px;
  aspect-ratio: 4 / 3;
  margin-right: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

@keyframes scroll-gallery {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-track {
    animation: none;
    overflow-x: auto;
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 20, 22, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: min(90vw, 1100px);
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--gold);
}

.lightbox-close {
  top: 20px;
  right: 24px;
  font-size: 2.2rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  padding: 8px 16px;
}

.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }

@media (max-width: 560px) {
  .lightbox-prev, .lightbox-next { font-size: 2.2rem; padding: 6px 10px; }
  .lightbox-close { top: 12px; right: 16px; }
}

.price-card {
  max-width: 380px;
  margin: 0 auto;
  background: #fff;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}

.price-amount {
  font-family: 'Anton', sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 3.2rem;
  color: var(--ink);
  margin-bottom: 24px;
}

.price-includes {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
  color: var(--gray);
}

.price-includes li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.price-includes li:last-child { border-bottom: none; }

.price-includes li::before {
  content: "✓";
  color: var(--gold-deep);
  font-weight: 700;
  margin-right: 10px;
}

.register {
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-dark) 100%);
  color: #fff;
  text-align: center;
}

.register h2 {
  background: linear-gradient(180deg, var(--silver-light) 0%, var(--silver-mid) 45%, var(--silver-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--silver-mid);
  -webkit-text-fill-color: transparent;
}

.register p {
  color: #cdd8d5;
  max-width: 480px;
  margin: 0 auto 32px;
}

.site-footer {
  background: var(--ink-dark);
  color: #92a09b;
  padding: 32px 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-inner a {
  color: #cdd8d5;
  text-decoration: none;
}

.footer-inner a:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .nav.open {
    max-height: 260px;
  }

  .nav a {
    padding: 16px 0;
    width: 100%;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .nav-toggle { display: flex; }

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

  .hero { padding: 64px 0 56px; }

  section { padding: 56px 0; }
}
