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

:root {
  --bg: #FAF8F5;
  --bg-alt: #F3EDE5;
  --bg-dark: #24180F;
  --text: #2B1F18;
  --text-muted: #7D6659;
  --text-light: #B0A09A;
  --accent: #9B5D3A;
  --accent-hover: #7E4828;
  --border: #E0D5CB;
  --gold: #C8943F;
  --white: #FFFFFF;
  --nav-height: 72px;
  --max-width: 1140px;
  --radius: 4px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Nunito Sans', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul { list-style: none; }

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

/* TYPOGRAPHY */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  line-height: 1.2;
  font-weight: 500;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

/* NAV */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  transition: background-color var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background-color: var(--bg);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.05em;
  transition: color var(--transition);
}

.nav.scrolled .nav-logo { color: var(--text); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
}

.nav.scrolled .nav-links a { color: var(--text-muted); }
.nav-links a:hover { color: var(--white); }
.nav.scrolled .nav-links a:hover { color: var(--accent); }

.nav-cta {
  padding: 10px 22px;
  background: var(--accent);
  color: var(--white) !important;
  border-radius: var(--radius);
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  transition: background-color var(--transition) !important;
}

.nav-cta:hover { background: var(--accent-hover); color: var(--white) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  display: block;
  transition: background-color var(--transition);
}

.nav.scrolled .nav-toggle span { background: var(--text); }

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: #2B1F18;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: var(--nav-height);
  padding-bottom: 80px;
  max-width: 720px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 400;
  font-style: italic;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 520px;
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  padding: 16px 36px;
  background: var(--accent);
  color: var(--white);
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background-color var(--transition), transform var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-block;
  padding: 14px 28px;
  border: 1.5px solid rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.9);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  transition: border-color var(--transition), color var(--transition);
}

.btn-ghost:hover {
  border-color: rgba(255,255,255,0.8);
  color: var(--white);
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: scaleY(1); transform-origin: top; }
  50% { transform: scaleY(0.6); transform-origin: top; }
}

/* SECTION BASE */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}

.section-header p {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 1rem;
}

/* FOR WHOM */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 64px;
  align-items: center;
}

.audience-image {
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.audience-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.audience-image::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(201,148,63,0.35);
  z-index: 1;
  pointer-events: none;
}

.audience-items {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.audience-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.audience-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.audience-item:nth-child(2) { transition-delay: 0.1s; }
.audience-item:nth-child(3) { transition-delay: 0.2s; }
.audience-item:nth-child(4) { transition-delay: 0.3s; }

.audience-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 500;
  margin-top: 2px;
}

.audience-item h4 {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 4px;
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.audience-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* HOW IT WORKS */
.format-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  border: 1px solid var(--border);
}

.format-item {
  padding: 40px 28px;
  background: var(--bg);
  border-right: 1px solid var(--border);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.format-item:last-child { border-right: none; }

.format-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.format-item:nth-child(2) { transition-delay: 0.1s; }
.format-item:nth-child(3) { transition-delay: 0.2s; }
.format-item:nth-child(4) { transition-delay: 0.3s; }

.format-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
}

.format-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.format-item h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.format-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* CURRICULUM */
.modules-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.module-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0;
  align-items: center;
  padding: 28px 32px;
  border-bottom: 1px solid var(--border);
  transition: background-color var(--transition);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease, background-color 0.25s ease;
}

.module-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.module-item:nth-child(2) { transition-delay: 0.08s; }
.module-item:nth-child(3) { transition-delay: 0.16s; }
.module-item:nth-child(4) { transition-delay: 0.24s; }
.module-item:nth-child(5) { transition-delay: 0.32s; }

.module-item:last-child { border-bottom: none; }
.module-item:hover { background: var(--bg-alt); }

.module-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}

.module-text h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.module-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.module-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(155, 93, 58, 0.08);
  padding: 5px 12px;
  border-radius: 50px;
  white-space: nowrap;
}

/* EXAMPLES */
.examples-section {
  background: var(--bg-dark);
  color: var(--white);
  padding: 96px 0;
}

.examples-section .section-label { color: var(--gold); }
.examples-section h2 { color: var(--white); }
.examples-section .section-header p { color: rgba(255,255,255,0.6); }

.examples-image {
  margin-top: 48px;
  border-radius: 2px;
  overflow: hidden;
}

.examples-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

/* LEAD FORM */
.form-section {
  background: var(--bg-alt);
  padding: 96px 0;
}

.form-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.form-intro h2 {
  margin-bottom: 16px;
}

.form-intro p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1rem;
}

.form-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.detail-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.form-card h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.form-card .form-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.field input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.925rem;
  color: var(--text);
  transition: border-color var(--transition);
  outline: none;
}

.field input:focus {
  border-color: var(--accent);
}

.field input::placeholder {
  color: var(--text-light);
}

.form-submit {
  width: 100%;
  margin-top: 8px;
  padding: 16px;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
}

.form-legal {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--text-light);
  text-align: center;
  line-height: 1.5;
}

.form-legal a {
  color: var(--accent);
  text-decoration: underline;
}

.form-error {
  display: none;
  color: #c0392b;
  font-size: 0.78rem;
  margin-top: 4px;
}

.field.has-error input { border-color: #c0392b; }
.field.has-error .form-error { display: block; }

/* FAQ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child { border-bottom: none; }

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  cursor: pointer;
  gap: 20px;
  background: var(--bg);
  transition: background-color var(--transition);
}

.faq-question:hover { background: var(--bg-alt); }

.faq-question h3 {
  font-size: 1rem;
  font-weight: 500;
  font-family: 'Nunito Sans', sans-serif;
  line-height: 1.5;
}

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), background-color var(--transition);
}

.faq-icon svg {
  width: 10px;
  height: 10px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  transition: transform var(--transition), stroke var(--transition);
}

.faq-item.open .faq-icon {
  background: var(--accent);
  border-color: var(--accent);
}

.faq-item.open .faq-icon svg {
  transform: rotate(45deg);
  stroke: var(--white);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding var(--transition);
  background: var(--bg-alt);
}

.faq-answer-inner {
  padding: 20px 28px 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

/* FOOTER */
.footer {
  background: var(--bg-dark);
  color: var(--white);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}

.footer-brand .logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  display: block;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  max-width: 280px;
  line-height: 1.65;
}

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
  font-family: 'Nunito Sans', sans-serif;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-legal {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.7;
}

.footer-legal strong { color: rgba(255,255,255,0.5); }

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
  white-space: nowrap;
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--text);
  color: var(--white);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
  transform: translateY(100%);
  transition: transform 0.4s ease;
  flex-wrap: wrap;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-text {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  max-width: 640px;
  line-height: 1.6;
}

.cookie-text a {
  color: var(--gold);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-accept {
  padding: 10px 22px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--transition);
  white-space: nowrap;
}

.cookie-accept:hover { background: var(--accent-hover); }

.cookie-close {
  padding: 10px 14px;
  background: transparent;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.cookie-close:hover { color: var(--white); border-color: rgba(255,255,255,0.5); }

/* INNER PAGES */
.inner-page {
  padding-top: calc(var(--nav-height) + 64px);
  padding-bottom: 80px;
  min-height: 100vh;
}

.inner-page .container { max-width: 760px; }

.page-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  margin-bottom: 8px;
}

.page-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.page-content { line-height: 1.85; }
.page-content h2 {
  font-size: 1.3rem;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--text);
}
.page-content p { color: var(--text-muted); margin-bottom: 16px; font-size: 0.925rem; }
.page-content strong { color: var(--text); }
.page-content a { color: var(--accent); text-decoration: underline; }

/* SUCCESS PAGE */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}

.success-inner {
  max-width: 500px;
}

.success-icon {
  width: 72px;
  height: 72px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
}

.success-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-inner h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}

.success-inner p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 36px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.back-link:hover { text-decoration: underline; }

/* ANIMATE ON SCROLL */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 24px;
    gap: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  .nav.scrolled .nav-links.open a { color: var(--text-muted); }
  .nav-links.open a { color: var(--text-muted); }
  .nav-links.open .nav-cta { display: inline-block; width: fit-content; }
  .nav-logo { font-size: 1.3rem; }

  .audience-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .audience-image { display: none; }

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

  .format-item { border-bottom: 1px solid var(--border); }

  .form-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }

  .format-grid {
    grid-template-columns: 1fr;
    border: none;
    gap: 1px;
  }

  .format-item { border: 1px solid var(--border); }

  .module-item {
    grid-template-columns: 48px 1fr;
    gap: 12px;
  }

  .module-tag { display: none; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }

  .hero h1 { font-style: normal; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn-ghost { display: none; }

  .form-card { padding: 28px 20px; }
}
