/* =========================================================
   Ariadne Institute — styles
   Colours, fonts, and spacing all live in :root below,
   so they are easy to change in one place.
   ========================================================= */

:root {
  /* ---- Colour palette (royal purple & gold) ---- */
  --sand:      #f7f3fb;   /* soft ivory-lavender background   */
  --cream:     #fffdf9;   /* card / lighter background        */
  --ink:       #2a1b3d;   /* main text (deep aubergine)       */
  --stone:     #6b5f7a;   /* muted secondary text (mauve)     */
  --terracotta:#5b2a86;   /* primary accent — royal purple    */
  --terracotta-dark:#43206a;
  --aegean:    #b08d2c;   /* gold accent (badges/details)     */
  --gold:      #d4af37;   /* bright metallic gold highlight   */
  --gold-dark: #9a7a24;   /* deep gold for text on light bg   */
  --line:      #e6ddf0;   /* hairline borders (lavender)      */

  /* ---- Fonts (swap these lines to change fonts) ---- */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;  /* soft Recoleta-style headings */
  --font-brand:   "Cormorant Garamond", Georgia, serif;           /* elegant logotype serif */
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* ---- Layout ---- */
  --maxw: 1120px;
  --radius: 4px;
}

/* ---------------- Base ---------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 6.5rem; } /* keeps section titles clear of the sticky header */

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 580;
  /* low optical size + full softness ≈ Recoleta's plump, even strokes */
  font-variation-settings: "SOFT" 100, "opsz" 20;
  line-height: 1.18;
  margin: 0 0 0.4em;
  letter-spacing: 0.2px;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1rem; }

a { color: var(--terracotta); text-decoration: none; }
a:hover { color: var(--terracotta-dark); }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.narrow { max-width: 760px; }
.center { text-align: center; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin: 0 0 0.9rem;
}

.lead { font-size: 1.18rem; color: var(--stone); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.18s ease;
}
.btn-primary {
  background: var(--terracotta);
  color: #fff;
}
.btn-primary:hover {
  background: var(--terracotta-dark);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(212,175,55,0.85);
}
.btn-ghost:hover {
  background: rgba(212,175,55,0.18);
  color: #fff;
}
.btn-block { width: 100%; text-align: center; font-size: 1rem; }

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,239,227,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.brand { display: flex; align-items: center; gap: 0.8rem; line-height: 1.1; }
.brand-mark { width: 38px; height: 38px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-family: var(--font-brand);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.3px;
}
.brand-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--stone);
  margin-top: 2px;
}
.site-nav { display: flex; align-items: center; gap: 1.9rem; }
.site-nav a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--gold-dark); }
.nav-cta {
  background: var(--terracotta);
  color: #fff !important;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
}
.nav-cta:hover { background: var(--terracotta-dark); }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--ink);
  transition: 0.25s;
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  color: #fff;
  /* Fallback gradient shows until you add images/hero.jpg */
  background:
    linear-gradient(120deg, #2a3f4a 0%, #6a4a34 100%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
/* When you add a photo named hero.jpg to /images, this shows it. */
.hero {
  background-image:
    linear-gradient(180deg, rgba(20,25,30,0.35), rgba(20,25,30,0.45)),
    url("images/hero.jpg");
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,20,25,0.45) 0%, rgba(15,20,25,0.25) 100%);
}
/* purple & gold peak at the base of the hero */
.hero-peak {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 2;
  line-height: 0;
  pointer-events: none;
}
.hero-peak svg {
  display: block;
  width: 100%;
  height: clamp(44px, 8vw, 96px);
}
/* Mosaic canvas sits over the photo, under the text */
.hero-mosaic {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
}
.mosaic-hint {
  position: absolute;
  bottom: clamp(3.4rem, 9vw, 7rem);
  right: 1.4rem;
  z-index: 2;
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(20,15,30,0.35);
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  pointer-events: none;
  backdrop-filter: blur(4px);
}
.hero-content {
  position: relative;
  z-index: 2;
  /* extra bottom padding lifts the content clear of the peak */
  padding: 4rem 1.5rem 9.5rem;
  max-width: 940px;
  margin: 0 auto;
  text-align: center;
}
.hero .eyebrow { color: var(--gold); }
.hero h1 {
  color: #fff;
  font-size: clamp(2.8rem, 6.2vw, 4.8rem);
  text-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.hero-sub {
  font-size: 1.25rem;
  max-width: 640px;
  margin: 1.4rem auto 2.2rem;
  color: rgba(255,255,255,0.94);
}
.hero-actions { display: flex; gap: 2.6rem; flex-wrap: wrap; justify-content: center; }

/* ---------------- Sections ---------------- */
.section { padding: 5.5rem 0; }

/* Greek key divider: the red thread running between sections */
.greek-divider {
  height: 16px;
  margin: 14px 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 16'%3E%3Cpath d='M4 14 H28 V2 H10 V8 H20' fill='none' stroke='%23a4343a' stroke-width='2.5'/%3E%3C/svg%3E") repeat-x center / 32px 16px;
}
.section-head { margin-bottom: 3rem; }
/* gilded rule beneath headings */
.section-head h2::after,
.about-text h2::after,
.intro h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--aegean));
  margin: 0.8rem auto 0;
}
.about-text h2::after { margin-left: 0; }
.section-intro { color: var(--stone); font-size: 1.1rem; max-width: 640px; margin: 0 auto; }

.intro { background: var(--sand); }
.intro-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 3.5rem;
  align-items: center;
}
.intro-logo img {
  width: 100%;
  max-width: 330px;
  display: block;
  margin: 0 auto;
}
.intro-text h2::after { margin-left: 0; }

/* ---------------- Programs ---------------- */
/* Programs: royal purple band with gold detailing */
.programs {
  background: linear-gradient(150deg, #3b2060 0%, #2a1b3d 100%);
}
.programs .eyebrow { color: #fdf9ef; font-size: 1.15rem; }
.programs .track-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(212,175,55,0.35);
}
.programs .track-card:hover { box-shadow: 0 14px 34px rgba(0,0,0,0.35); }
.programs .track-card-top { border-bottom: 1px solid rgba(212,175,55,0.55); }
.programs h3 { color: #f3e9cf; }
.programs .course-name { color: var(--gold); }
.programs .course-desc { color: #cfc0e0; }
.programs .track-meta { color: #b9a9cf; }
.track-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.track-card {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2rem 1.7rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.track-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(60,40,20,0.10);
}
.track-card-top { border-bottom: 1px solid rgba(176,141,44,0.5); padding-bottom: 1.1rem; margin-bottom: 1.2rem; }
.age-badge {
  display: inline-block;
  background: var(--aegean);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: 20px;
  margin-bottom: 0.8rem;
}
.track-meta { color: var(--stone); font-size: 0.9rem; margin: 0.2rem 0 0; }
/* price sits at the foot of each card, aligned across all three */
.track-price-block {
  margin-top: auto;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(212,175,55,0.4);
}
.track-price {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "opsz" 20;
  font-size: 1.5rem;
  color: var(--gold);
  margin: 0 0 0.15rem;
}
.track-price-note { font-size: 0.82rem; color: var(--stone); margin: 0; }
.programs .track-price-note { color: #b9a9cf; }
.course-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.course-name { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); }
.course-desc { display: block; color: var(--stone); font-size: 0.96rem; margin-top: 0.15rem; }
.programs-note { margin-top: 2.6rem; color: var(--stone); }
.programs .programs-note { color: #cfc0e0; margin-bottom: 0.4rem; }
.programs .programs-note a { color: var(--gold); text-decoration: underline; }
.programs .programs-note a:hover { color: #e8cf6e; }
.launch-note {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "opsz" 20;
  font-size: 1.5rem;
  color: var(--gold);
  text-align: center;
  margin: 0;
}

/* ---------------- Gallery ---------------- */
.gallery-section { background: var(--sand); }
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.6rem;
}
.gallery-item { margin: 0; grid-column: span 2; }
/* first row: two wide photos; second row: three across */
.gallery-item:nth-child(1),
.gallery-item:nth-child(2) { grid-column: span 3; }
/* the Capitoline Wolf shows in full, uncropped */
.gallery-item:nth-child(5) img { height: auto; }
.gallery-item img {
  width: 100%;
  height: auto; /* natural proportions: full photo, watermark visible */
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(60,30,90,0.14);
}
.gallery-note {
  font-family: var(--font-brand); /* Cormorant Garamond, the logotype serif */
  font-style: italic;
  font-size: 1.45rem;
  letter-spacing: 0.2px;
  color: var(--stone);
  margin: 2.4rem 0 0;
}
.gallery-item figcaption {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--stone);
  margin-top: 0.9rem;
  font-style: italic;
}

/* ---------------- About ---------------- */
.about { background: var(--sand); }
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
}
.portrait-frame {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, #e9ddc8, #d8c4a4);
  background-image: url("images/founder3.jpg");
  background-size: cover;
  background-position: 20% center;
  box-shadow: 0 18px 40px rgba(60,40,20,0.12);
}
.about-text p { color: var(--stone); font-size: 1.08rem; }

/* ---------------- Approach (royal purple band) ---------------- */
.approach {
  background: linear-gradient(150deg, #3b2060 0%, #2a1b3d 100%);
}
.approach .eyebrow { color: #fdf9ef; font-size: 0.98rem; }
.approach h2 { color: #fdf9ef; }
/* the credo */
.credo {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "opsz" 20;
  color: var(--gold);
  max-width: 760px;
  margin: -1.2rem auto 0;
  text-align: center;
  font-size: 1.22rem;
  line-height: 1.6;
}
.credo-motto {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "opsz" 20;
  font-style: italic;
  color: var(--gold);
  font-size: 1.4rem;
  text-align: center;
  max-width: 760px;
  margin: 1.6rem auto 3rem;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  max-width: 980px;
  margin: 0 auto;
}
.feature { padding: 1.4rem 1.2rem; border-top: 3px solid var(--gold); background: var(--sand); border-radius: 4px; }
.approach .feature { background: rgba(255,255,255,0.07); }
.feature h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.approach .feature h3 { color: #f3e9cf; }
.feature p { color: var(--stone); font-size: 0.98rem; margin: 0; }
.approach .feature p { color: #cfc0e0; }

/* ---------------- Inquiry form ---------------- */
.inquire { background: var(--sand); }
.inquiry-form {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2.4rem;
  margin-top: 2rem;
  box-shadow: 0 14px 40px rgba(60,40,20,0.06);
}
.field { margin-bottom: 1.3rem; }
.field label { display: block; font-weight: 500; font-size: 0.95rem; margin-bottom: 0.4rem; }
.optional { color: var(--stone); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(180,85,45,0.12);
}
.field textarea { resize: vertical; }
.hidden-field { display: none; }
.form-fineprint { text-align: center; color: var(--stone); font-size: 0.85rem; margin: 1rem 0 0; }

/* Success message shown after a signup */
.inquiry-success {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2.6rem 2.4rem;
  margin-top: 2rem;
  text-align: center;
  box-shadow: 0 14px 40px rgba(60,40,20,0.06);
}
.success-greeting {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "opsz" 20;
  font-size: 1.9rem;
  color: var(--terracotta);
  margin: 0 0 0.6rem;
}
.success-body { color: var(--stone); font-size: 1.08rem; max-width: 460px; margin: 0 auto; }
.form-submitting { opacity: 0.6; pointer-events: none; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--ink);
  color: #e9e0d3;
  padding: 3rem 0 1.6rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { font-family: var(--font-display); font-size: 1.5rem; margin: 0; color: #fff; }
.footer-tag { color: #b7ac9c; font-size: 0.9rem; margin: 0.3rem 0 0; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: #e9e0d3; font-size: 0.95rem; }
.footer-links a:hover { color: var(--gold); }
.footer-legal { text-align: center; color: #8d8375; font-size: 0.82rem; margin: 1.6rem 0 0; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .track-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { width: 100%; max-width: 360px; margin: 0 auto; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-item,
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(2) { grid-column: auto; }
  .gallery-item img { height: auto; }
  .intro-grid { grid-template-columns: 1fr; gap: 2rem; }
  .intro-logo img { max-width: 220px; }

  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--sand);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 1.5rem 1.2rem;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.75rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-cta { width: 100%; text-align: center; margin-top: 0.6rem; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .feature-grid { grid-template-columns: 1fr; }
  .section { padding: 4rem 0; }
  .inquiry-form { padding: 1.6rem; }
  .hero { min-height: 78vh; }
}

/* ---- Plutarch quote + Muses band (Approach section) ---- */
.credo-quote {
  font-family: var(--font-brand);
  font-style: italic;
  font-weight: 700;
  color: var(--cream);
  font-size: 1.65rem;
  line-height: 1.45;
  text-align: center;
  max-width: 680px;
  margin: 3.2rem auto 0;
}
.credo-attrib {
  color: var(--gold);
  display: block;
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 0.6rem;
  opacity: 0.8;
}
.credo-attrib em { font-style: italic; text-transform: none; letter-spacing: 0.06em; }
.muses-band {
  text-align: center;
  margin: 3rem auto 0.5rem;
  max-width: 920px;
  padding: 0 1rem;
}
.muses-band img {
  width: 100%;
  height: auto;
  opacity: 0.95;
}

.muses-caption {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "opsz" 20;
  font-style: italic;
  color: var(--gold);
  font-size: 1.08rem;
  text-align: center;
  margin: 1rem auto 0;
}
.muses-credit {
  display: block;
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-top: 0.4rem;
}
