/* Reset & Variables */
:root {
  --color-bg: #F8F6F2;
  --color-surface: #FFFFFF;
  --color-surface-dim: #EFEBE4;
  --color-text-main: #36312B;
  --color-text-muted: #6B6358;
  --color-accent: #B26D50;
  --color-accent-hover: #91543B;
  --color-border: #D6D0C4;
  
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;
  
  --spacing-section: 6rem;
  --spacing-section-mobile: 4rem;
  
  --radius: 4px;
  --shadow: 0 10px 30px rgba(54, 49, 43, 0.05);
  
  --transition: 0.3s ease;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-bottom: 1rem;
}

.text-muted {
  color: var(--color-text-muted);
}

.text-center {
  text-align: center;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-spacing, var(--spacing-section)) 0;
}

@media (max-width: 768px) {
  .section {
    --section-spacing: var(--spacing-section-mobile);
  }
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(248, 246, 242, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.header__logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-text-main);
}

.header__nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.header__nav-link {
  font-size: 0.95rem;
  font-weight: 500;
}

.header__nav-link:hover {
  color: var(--color-accent);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 101;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text-main);
  position: absolute;
  transition: var(--transition);
}

.mobile-toggle span:nth-child(1) { top: 0; }
.mobile-toggle span:nth-child(2) { top: 9px; }
.mobile-toggle span:nth-child(3) { top: 18px; }

.mobile-toggle.is-active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}
.mobile-toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.is-active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}

@media (max-width: 992px) {
  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right var(--transition);
    gap: 2rem;
  }
  .header__nav.is-open {
    right: 0;
  }
  .header__nav-link {
    font-size: 1.5rem;
    font-family: var(--font-heading);
  }
  .mobile-toggle {
    display: block;
  }
  .header__nav .btn {
    margin-top: 1rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.btn--primary {
  background-color: var(--color-accent);
  color: #fff;
}

.btn--primary:hover {
  background-color: var(--color-accent-hover);
  color: #fff;
}

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

.btn--outline:hover {
  background-color: var(--color-accent);
  color: #fff;
}

/* Hero Section */
.hero {
  padding-top: 120px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero__content {
  max-width: 500px;
}

.hero__subtitle {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 1rem;
  display: block;
}

.hero__desc {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}

.hero__image-wrapper {
  position: relative;
}

.hero__image-wrapper::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  bottom: 20px;
  left: 20px;
  border: 1px solid var(--color-border);
  z-index: -1;
  border-radius: var(--radius);
}

.hero__image {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 4/5;
}

@media (max-width: 992px) {
  .hero {
    padding-top: 100px;
    min-height: auto;
  }
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero__content {
    text-align: center;
    margin: 0 auto;
  }
  .hero__image-wrapper::before {
    display: none;
  }
}

/* Features / What you learn */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

.feature-card {
  background: var(--color-surface);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.feature-card__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-dim);
  border-radius: 50%;
  color: var(--color-accent);
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
}

/* Split Section (Format, About) */
.split-section {
  background-color: var(--color-surface);
}

.split-section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split-section__grid.reverse .split-section__image {
  order: -1;
}

.split-section__image img {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.checklist {
  margin-top: 2rem;
}

.checklist li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
}

.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: bold;
}

@media (max-width: 992px) {
  .split-section__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .split-section__grid.reverse .split-section__image {
    order: 0;
  }
}

/* Program */
.program-list {
  max-width: 800px;
  margin: 3rem auto 0;
}

.program-item {
  display: flex;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-border);
}

.program-item:first-child {
  border-top: 1px solid var(--color-border);
}

.program-item__num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-accent);
  line-height: 1;
  min-width: 60px;
}

.program-item__content h4 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .program-item {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
}

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

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

/* FAQ */
.faq-list {
  max-width: 700px;
  margin: 3rem auto 0;
}

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

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.5rem 0;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  position: relative;
  width: 16px;
  height: 16px;
}

.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background-color: var(--color-text-main);
  transition: transform 0.3s ease;
}

.faq-icon::before {
  top: 7px;
  left: 0;
  width: 16px;
  height: 2px;
}

.faq-icon::after {
  top: 0;
  left: 7px;
  width: 2px;
  height: 16px;
}

.faq-item.is-active .faq-icon::after {
  transform: rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding-bottom: 1.5rem;
  color: var(--color-text-muted);
}

/* Form Section */
.form-section {
  background-color: var(--color-surface-dim);
}

.lead-form-wrapper {
  max-width: 500px;
  margin: 0 auto;
  background: var(--color-surface);
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text-main);
}

.form-input {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background-color: var(--color-bg);
  transition: border-color var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.lead-form .btn {
  width: 100%;
  margin-top: 1rem;
}

.form-legal {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: center;
}

.form-legal a {
  text-decoration: underline;
}

/* Footer */
.footer {
  background-color: var(--color-text-main);
  color: var(--color-surface);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  color: var(--color-surface-dim);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--color-border);
  font-size: 0.9rem;
}

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

.footer-info {
  font-size: 0.9rem;
  color: var(--color-border);
}

.footer-info p {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-surface);
  box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
  padding: 1.5rem;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  justify-content: center;
}

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

.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  width: 100%;
  gap: 2rem;
}

.cookie-banner__text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

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

@media (max-width: 768px) {
  .cookie-banner__inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

/* Legal Pages */
.legal-page {
  padding-top: 120px;
  padding-bottom: 4rem;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-surface);
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.legal-content h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1rem;
}

.legal-content h2 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-content p {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-text-muted);
}

.legal-content li {
  margin-bottom: 0.5rem;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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