/* ═══════════════════════════════════════════════════
   LaFolay — Design System
   Palette: Ecru · Burgundy · Dusty Mauve · Plum
   Fonts: Bodoni Moda + Nunito Sans
═══════════════════════════════════════════════════ */

:root {
  --ecru:        #F4EDE2;
  --ecru-deep:   #EAE0D0;
  --ecru-darker: #DDD0BC;
  --cream:       #FAF6F0;
  --burgundy:    #6B1E2E;
  --burgundy-dk: #4E1420;
  --burgundy-lt: #8B3045;
  --mauve:       #B8899A;
  --mauve-lt:    #D4B0C0;
  --mauve-pale:  #EDD8E2;
  --plum:        #1A0F16;
  --plum-mid:    #3D2535;
  --mid:         #7A6070;
  --light:       #A0909A;
  --border:      rgba(107,30,46,0.15);
  --border-soft: rgba(107,30,46,0.08);

  --ff-display: 'Bodoni Moda', serif;
  --ff-body:    'Nunito Sans', sans-serif;

  --shadow: 0 12px 40px rgba(26,15,22,0.08);
  --shadow-lg: 0 24px 80px rgba(26,15,22,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--ecru);
  color: var(--plum);
  font-family: var(--ff-body);
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--ecru-deep); }
::-webkit-scrollbar-thumb { background: var(--burgundy); }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: var(--ff-display); line-height: 1.1; }

/* ── SELECTION ── */
::selection { background: var(--mauve-pale); color: var(--burgundy-dk); }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.6rem 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.45s ease;
}

.nav.scrolled {
  background: rgba(244,237,226,0.97);
  backdrop-filter: blur(16px);
  padding: 1rem 5rem;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(26,15,22,0.06);
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-logo-text {
  font-family: var(--ff-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--burgundy);
  letter-spacing: 0.04em;
  font-style: italic;
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--plum-mid);
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--burgundy);
  transition: width 0.3s;
}

.nav-links a:hover { color: var(--burgundy); }
.nav-links a:hover::after { width: 100%; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.95rem 2.4rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

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

.btn-burgundy:hover {
  background: var(--burgundy-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(107,30,46,0.3);
}

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

.btn-outline:hover {
  background: var(--burgundy);
  color: var(--cream);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(244,237,226,0.5);
}

.btn-outline-light:hover {
  background: rgba(244,237,226,0.1);
  border-color: var(--cream);
}

/* ── LAYOUT ── */
.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section-pad { padding: 8rem 0; }

.section-label {
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--mauve);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--mauve);
}

.section-title {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 700;
  color: var(--plum);
  margin-bottom: 1.4rem;
  line-height: 1.08;
}

.section-title em {
  font-style: italic;
  color: var(--burgundy);
}

.section-body {
  font-size: 1rem;
  color: var(--mid);
  line-height: 1.9;
  max-width: 540px;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: var(--plum);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: saturate(0.6);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,15,22,0.9) 0%, rgba(107,30,46,0.5) 60%, rgba(26,15,22,0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10rem 5rem 6rem;
  max-width: 760px;
}

.hero-eyebrow {
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--mauve-lt);
  margin-bottom: 2.2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

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

.hero-title {
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 700;
  color: var(--ecru);
  line-height: 1.02;
  margin-bottom: 2rem;
}

.hero-title em {
  font-style: italic;
  color: var(--mauve-lt);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(244,237,226,0.65);
  max-width: 500px;
  margin-bottom: 3rem;
  line-height: 1.85;
  font-weight: 300;
}

.hero-cta-row { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }

.hero-right-panel {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 38%;
  overflow: hidden;
}

.hero-right-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: saturate(0.5) brightness(0.6);
}

.hero-right-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--plum) 0%, transparent 50%);
  z-index: 1;
}

.hero-stats {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 5;
  border-top: 1px solid rgba(244,237,226,0.1);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.hero-stat {
  padding: 2rem;
  text-align: center;
  border-right: 1px solid rgba(244,237,226,0.08);
}

.hero-stat:last-child { border-right: none; }

.hero-stat-num {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--mauve-lt);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.hero-stat-lab {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244,237,226,0.4);
}

/* ── MARQUEE ── */
.marquee {
  background: var(--burgundy);
  padding: 0.9rem 0;
  overflow: hidden;
}

.marquee-track {
  display: inline-flex;
  animation: scroll 30s linear infinite;
  white-space: nowrap;
}

.marquee span {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--ecru);
  padding: 0 2.5rem;
  opacity: 0.9;
}

.marquee i {
  color: var(--mauve-lt);
  font-style: normal;
  padding: 0 0.5rem;
  opacity: 0.6;
}

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

/* ── PHILOSOPHY ── */
.phil-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 5rem;
}

.phil-card {
  background: var(--ecru);
  padding: 3.5rem;
  transition: background 0.35s;
  position: relative;
}

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

.phil-num {
  font-family: var(--ff-display);
  font-size: 4.5rem;
  font-weight: 700;
  font-style: italic;
  color: var(--ecru-darker);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.phil-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mauve-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--burgundy);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.phil-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--plum);
  margin-bottom: 0.9rem;
}

.phil-card p {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.85;
}

/* ── COURSES ── */
.courses-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 4rem;
}

.course-card {
  display: grid;
  grid-template-columns: 360px 1fr;
  background: var(--cream);
  border: 1px solid var(--border-soft);
  margin-bottom: 1.5px;
  overflow: hidden;
  transition: box-shadow 0.35s;
}

.course-card:hover { box-shadow: var(--shadow); }

.course-card__img {
  overflow: hidden;
  aspect-ratio: 4/3;
}

.course-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease, filter 0.4s;
  filter: saturate(0.8);
}

.course-card:hover .course-card__img img {
  transform: scale(1.05);
  filter: saturate(1);
}

.course-card__body {
  padding: 3rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--border-soft);
}

.course-tag {
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--mauve);
  margin-bottom: 0.9rem;
}

.course-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--plum);
  margin-bottom: 1rem;
}

.course-desc {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.85;
  margin-bottom: 1.6rem;
}

.course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.ctag {
  background: var(--mauve-pale);
  color: var(--plum-mid);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.28rem 0.85rem;
  letter-spacing: 0.05em;
  border-radius: 2px;
}

/* ── TOOLS ── */
.tools-bg { background: var(--plum); }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 5rem;
  border: 1px solid rgba(244,237,226,0.08);
}

.tool-card {
  padding: 3rem 2.5rem;
  border-right: 1px solid rgba(244,237,226,0.08);
  position: relative;
  transition: background 0.3s;
}

.tool-card:last-child { border-right: none; }
.tool-card:hover { background: rgba(184,137,154,0.08); }

.tool-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 2px; width: 0;
  background: var(--mauve);
  transition: width 0.4s;
}

.tool-card:hover::after { width: 100%; }

.tool-icon {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(184,137,154,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mauve-lt);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.tool-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ecru);
  margin-bottom: 0.8rem;
}

.tool-card p {
  font-size: 0.85rem;
  color: rgba(244,237,226,0.45);
  line-height: 1.8;
}

/* ── TESTIMONIALS ── */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

.testi-card {
  background: var(--cream);
  border: 1px solid var(--border-soft);
  padding: 2.8rem 2.5rem;
  position: relative;
}

.testi-quote-mark {
  font-family: var(--ff-display);
  font-size: 5rem;
  color: var(--mauve-pale);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-style: italic;
}

.testi-text {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--mid);
  line-height: 1.9;
  margin-bottom: 2rem;
}

.testi-sep {
  width: 30px;
  height: 1px;
  background: var(--mauve);
  margin-bottom: 1.2rem;
}

.testi-name {
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--plum);
}

.testi-role {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mauve);
  margin-top: 0.2rem;
}

/* ── CONTACT FORM ── */
.contact-bg { background: var(--ecru-deep); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7rem;
  align-items: start;
}

.form-field { margin-bottom: 1.8rem; }

.form-field label {
  display: block;
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 0.6rem;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  background: var(--ecru);
  border: 1px solid var(--border);
  color: var(--plum);
  padding: 0.9rem 1.2rem;
  font-family: var(--ff-body);
  font-size: 0.9rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
  appearance: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--light); }

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--burgundy);
  background: var(--cream);
}

.error-msg {
  color: var(--burgundy);
  font-size: 0.75rem;
  margin-top: 0.35rem;
  display: block;
}

.contact-img-wrap {
  position: sticky;
  top: 7rem;
}

.contact-img-wrap img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: saturate(0.75) brightness(0.85);
}

.contact-caption {
  background: var(--burgundy);
  padding: 1.5rem 2rem;
}

.contact-caption p {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--mauve-pale);
}

.form-success {
  display: none;
  text-align: center;
  padding: 4rem 2rem;
  border: 1px solid var(--border);
  background: var(--cream);
}

.form-success i {
  font-size: 2.5rem;
  color: var(--burgundy);
  margin-bottom: 1rem;
  display: block;
}

.form-success h3 {
  font-size: 1.8rem;
  color: var(--plum);
  margin-bottom: 0.5rem;
}

.form-success p { color: var(--mid); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--plum);
  padding: 10rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107,30,46,0.4) 0%, transparent 70%);
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--ecru));
}

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

.page-hero-label {
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--mauve-lt);
  margin-bottom: 1.2rem;
}

.page-hero h1 {
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 700;
  color: var(--ecru);
  line-height: 1.08;
  margin-bottom: 1.5rem;
}

.page-hero h1 em { color: var(--mauve-lt); }

.page-hero p {
  font-size: 1.05rem;
  color: rgba(244,237,226,0.55);
  max-width: 560px;
  line-height: 1.85;
}

/* ── DIVIDER ── */
.divider {
  width: 60px;
  height: 2px;
  background: var(--mauve);
  margin: 2rem 0;
}

/* ── ACCORDION ── */
.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
}

.accordion-btn h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--plum);
  font-family: var(--ff-display);
}

.accordion-btn i {
  color: var(--burgundy);
  transition: transform 0.3s;
  font-size: 0.8rem;
}

.accordion-btn.open i { transform: rotate(45deg); }

.accordion-body {
  display: none;
  padding: 0 0 1.5rem;
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.9;
}

.accordion-body.open { display: block; }

/* ── FOOTER ── */
footer {
  background: var(--plum);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(244,237,226,0.08);
  margin-bottom: 2rem;
}

.footer-brand {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--mauve-lt);
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 0.83rem;
  color: rgba(244,237,226,0.35);
  line-height: 1.8;
  max-width: 260px;
}

.footer-col h5 {
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--mauve);
  margin-bottom: 1.6rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.75rem; }

.footer-col ul li a {
  color: rgba(244,237,226,0.4);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
}

.footer-col ul li a:hover { color: var(--ecru); }

.footer-contact-row {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.footer-contact-row i {
  color: var(--mauve);
  font-size: 0.75rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.footer-contact-row span,
.footer-contact-row a {
  color: rgba(244,237,226,0.4);
  font-size: 0.83rem;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-contact-row a:hover { color: var(--ecru); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(244,237,226,0.25);
}

.footer-copy strong { color: var(--mauve); font-weight: 400; }

.footer-legal-links {
  display: flex;
  gap: 2.5rem;
}

.footer-legal-links a {
  font-size: 0.72rem;
  color: rgba(244,237,226,0.25);
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: color 0.3s;
}

.footer-legal-links a:hover { color: rgba(244,237,226,0.7); }

/* ── COOKIE ── */
.cookie-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--plum);
  border-top: 1px solid rgba(244,237,226,0.08);
  padding: 1.4rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
}

.cookie-bar.show { transform: translateY(0); }

.cookie-text {
  font-size: 0.82rem;
  color: rgba(244,237,226,0.5);
  max-width: 650px;
}

.cookie-text strong { color: var(--ecru); font-weight: 500; }

.cookie-text a {
  color: var(--mauve-lt);
  text-decoration: none;
}

.cookie-btns {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

/* ── FADE-UP ── */
.fu {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fu.in {
  opacity: 1;
  transform: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .nav { padding: 1.4rem 2rem; }
  .nav.scrolled { padding: 0.9rem 2rem; }
  .nav-links { gap: 2rem; }
  .hero-right-panel { display: none; }
  .hero-content { padding: 9rem 2.5rem 5rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .phil-layout { grid-template-columns: 1fr; }
  .course-card { grid-template-columns: 1fr; }
  .course-card__img { aspect-ratio: 16/7; }
  .tools-grid { grid-template-columns: 1fr 1fr; }
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .courses-header { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .hero-title { font-size: 2.8rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .cookie-bar { flex-direction: column; gap: 1rem; }
}
