@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Barlow+Condensed:wght@300;400;500;600;700&family=Barlow:wght@300;400;500&display=swap');

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

:root {
  --cream: #f5f0e8;
  --stone: #e8e0d0;
  --ochre: #c8a96e;
  --rust: #8b4a2a;
  --slate: #2c3440;
  --charcoal: #1a1e24;
  --snow: #faf8f4;
  --mist: #6b7280;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-ui: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--snow);
  color: var(--charcoal);
  font-weight: 300;
  line-height: 1.7;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 3rem;
  background: rgba(26,30,36,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200,169,110,0.2);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--snow);
  letter-spacing: 0.05em;
  text-decoration: none;
}

.nav-logo span { color: var(--ochre); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(250,248,244,0.7);
  text-decoration: none;
  transition: color 0.2s;
}

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

.nav-cta {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--charcoal) !important;
  background: var(--ochre);
  padding: 0.6rem 1.4rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover { background: #d4b47a; transform: translateY(-1px); color: var(--charcoal) !important; }

/* HERO */
.hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-bottom: 6rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55);
  transform: scale(1.03);
  transition: transform 8s ease;
}

.hero:hover .hero-bg { transform: scale(1.06); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,30,36,0.85) 0%, rgba(26,30,36,0.1) 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 3rem;
  max-width: 900px;
}

.hero-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 3rem;
  height: 1px;
  background: var(--ochre);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 300;
  color: var(--snow);
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--ochre);
}

.hero-sub {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(250,248,244,0.75);
  max-width: 500px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.btn-primary {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--charcoal);
  background: var(--ochre);
  padding: 1rem 2.5rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover { background: #d4b47a; transform: translateY(-2px); }

.btn-outline {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--snow);
  border: 1px solid rgba(250,248,244,0.5);
  padding: 1rem 2.5rem;
  text-decoration: none;
  margin-left: 1rem;
  transition: border-color 0.2s, background 0.2s;
}

.btn-outline:hover { border-color: var(--ochre); background: rgba(200,169,110,0.1); }

/* SECTIONS */
section { padding: 5rem 3rem; }

.section-label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.section-title em { font-style: italic; }

.section-lead {
  font-size: 1rem;
  font-weight: 300;
  color: var(--mist);
  max-width: 540px;
  line-height: 1.9;
}

/* CARDS GRID */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2px;
  margin-top: 3rem;
}

.card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  display: block;
  text-decoration: none;
  background: var(--slate);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s ease;
  filter: brightness(0.7);
}

.card:hover .card-img { transform: scale(1.06); filter: brightness(0.5); }

.card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem 1.8rem;
  background: linear-gradient(to top, rgba(26,30,36,0.92) 0%, transparent 100%);
  transform: translateY(0);
  transition: transform 0.3s;
}

.card-tag {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 0.5rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--snow);
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.card-meta {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(250,248,244,0.6);
  letter-spacing: 0.05em;
}

.card-arrow {
  position: absolute;
  bottom: 1.8rem;
  right: 1.8rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(200,169,110,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ochre);
  font-size: 1rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
}

.card:hover .card-arrow { opacity: 1; transform: translateY(0); }

/* DIVIDER */
.divider {
  width: 3rem;
  height: 1px;
  background: var(--ochre);
  margin: 1.5rem 0;
}

/* STATS ROW */
.stats-row {
  display: flex;
  gap: 3rem;
  padding: 3rem;
  background: var(--charcoal);
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--ochre);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250,248,244,0.5);
  margin-top: 0.3rem;
}

/* CTA BAND */
.cta-band {
  background: var(--slate);
  padding: 5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-band-text .section-title { color: var(--snow); }
.cta-band-text .section-lead { color: rgba(250,248,244,0.6); }

/* FOOTER */
footer {
  background: var(--charcoal);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(200,169,110,0.15);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--snow);
  text-decoration: none;
}

.footer-logo span { color: var(--ochre); }

.footer-copy {
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(250,248,244,0.4);
  font-family: var(--font-ui);
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250,248,244,0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--ochre); }

/* PAGE HEADER (subpages) */
.page-header {
  height: 60vh;
  min-height: 400px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 0 3rem 4rem;
  margin-top: 0;
  overflow: hidden;
}

.page-header-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  filter: brightness(0.45);
}

.page-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,30,36,0.85) 0%, rgba(26,30,36,0.2) 70%);
}

.page-header-content { position: relative; z-index: 2; }

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  color: var(--snow);
  line-height: 1.1;
  margin-bottom: 0.8rem;
}

.page-header p {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(250,248,244,0.7);
  max-width: 500px;
}

/* FILTER BAR */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mist);
  border: 1px solid rgba(107,114,128,0.3);
  background: transparent;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--ochre);
  border-color: var(--ochre);
  color: var(--charcoal);
}

/* PROGRAMME CARDS */
.programme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1px;
  background: var(--stone);
  margin-top: 3rem;
}

.prog-card {
  background: var(--snow);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: background 0.2s;
}

.prog-card:hover { background: var(--cream); }

.prog-level {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding: 0.3rem 0.8rem;
  display: inline-block;
  align-self: flex-start;
}

.prog-level.initiation { background: #e8f4e8; color: #2d6a2d; }
.prog-level.technique { background: #fef3e2; color: #92400e; }
.prog-level.expedition { background: #fee2e2; color: #991b1b; }

.prog-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1.2;
  margin-bottom: 0.8rem;
}

.prog-desc {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--mist);
  line-height: 1.8;
  flex: 1;
  margin-bottom: 1.5rem;
}

.prog-details {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.prog-detail {
  display: flex;
  flex-direction: column;
}

.prog-detail-label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 0.2rem;
}

.prog-detail-val {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--charcoal);
}

.prog-link {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.2s;
}

.prog-card:hover .prog-link { gap: 0.8rem; }

/* CONTACT FORM */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  max-width: 1100px;
}

@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  section { padding: 3rem 1.5rem; }
  .hero-content { padding: 0 1.5rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .stats-row { padding: 2rem 1.5rem; gap: 1.5rem; }
  .cta-band { padding: 3rem 1.5rem; }
  footer { padding: 2rem 1.5rem; flex-direction: column; align-items: flex-start; }
  .page-header { padding: 0 1.5rem 3rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .programme-grid { grid-template-columns: 1fr; }
}
