@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=Lato:wght@300;400;700&display=swap');

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

:root {
  --cream: #FAF6F0;
  --cream-dark: #F2EAE0;
  --cream-mid: #EDE4D8;
  --brown-dark: #2C1810;
  --brown-mid: #6B4230;
  --brown-light: #9A7060;
  --terracotta: #C07250;
  --terracotta-light: #D99070;
  --rose: #C4836A;
  --sage: #8A9E8A;
  --sage-light: #B8C8B8;
  --peach: #F0D0C0;
  --text: #2C1810;
  --text-light: #7A6555;
  --border: #E0D0C4;
}

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

body {
  font-family: 'Lato', sans-serif;
  background-color: var(--cream);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
  color: var(--brown-dark);
}

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

.section-label {
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  display: block;
  margin-bottom: 0.75rem;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  border-radius: 2px;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  text-align: center;
}

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

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

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

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

.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: var(--cream-dark);
}

.section-header {
  margin-bottom: 3rem;
}

.section-header.centered {
  text-align: center;
}

.section-header p {
  margin-top: 0.85rem;
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 600px;
}

.section-header.centered p {
  margin-left: auto;
  margin-right: auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 246, 240, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--brown-dark);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--terracotta);
  margin-bottom: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-links a {
  font-size: 0.88rem;
  color: var(--text-light);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--terracotta);
}

.nav-cta {
  margin-left: 1rem;
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--brown-dark);
  transition: all 0.25s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background-color: var(--cream);
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  gap: 1.2rem;
}

.nav-mobile a {
  font-size: 1rem;
  color: var(--text-light);
  padding: 0.3rem 0;
}

.nav-mobile.open {
  display: flex;
}

.hero {
  padding: 5rem 0 3rem;
  background-color: var(--cream);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  max-width: 540px;
}

.hero-content h1 {
  margin-bottom: 1.2rem;
  font-style: italic;
  font-weight: 300;
}

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

.hero-content p {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-note {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 1rem;
}

.hero-image {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(44, 24, 16, 0.12);
}

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

.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(192, 114, 80, 0.08) 0%, transparent 60%);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.8rem;
  margin-top: 2.5rem;
}

.skill-card {
  background-color: #fff;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2rem 1.8rem;
  transition: box-shadow 0.25s, transform 0.25s;
}

.skill-card:hover {
  box-shadow: 0 8px 24px rgba(44, 24, 16, 0.08);
  transform: translateY(-3px);
}

.skill-card .skill-icon {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.skill-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.skill-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.65;
}

.gallery-intro {
  max-width: 560px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: 2.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  background-color: var(--cream-mid);
  cursor: default;
}

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

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

.gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.7rem 0.9rem;
  background: linear-gradient(to top, rgba(44,24,16,0.7), transparent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.format-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.format-image {
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(44, 24, 16, 0.1);
}

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

.format-list {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin-top: 2rem;
}

.format-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.format-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--peach);
  color: var(--terracotta);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.format-item-text h4 {
  font-size: 1rem;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  color: var(--brown-dark);
  margin-bottom: 0.2rem;
}

.format-item-text p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.module-card {
  background-color: #fff;
  border-radius: 3px;
  border: 1px solid var(--border);
  padding: 1.8rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.25s;
}

.module-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background-color: var(--terracotta);
}

.module-card:hover {
  box-shadow: 0 6px 20px rgba(44, 24, 16, 0.08);
}

.module-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--cream-mid);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.module-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.7rem;
}

.module-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.module-card ul li {
  font-size: 0.88rem;
  color: var(--text-light);
  padding-left: 1rem;
  position: relative;
}

.module-card ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--terracotta-light);
}

.teacher-inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 4rem;
  align-items: start;
}

.teacher-photo {
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(44, 24, 16, 0.12);
  position: sticky;
  top: 100px;
}

.teacher-photo img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: top;
}

.teacher-content .section-label {
  margin-bottom: 0.5rem;
}

.teacher-content h2 {
  margin-bottom: 1.5rem;
}

.teacher-bio {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.85;
  margin-bottom: 1.2rem;
}

.teacher-bio strong {
  color: var(--brown-dark);
  font-weight: 400;
}

.teacher-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.teacher-fact h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: var(--terracotta);
  font-weight: 400;
}

.teacher-fact p {
  font-size: 0.85rem;
  color: var(--text-light);
}

.faq-list {
  max-width: 780px;
  margin: 2.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

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

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.4rem 0;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brown-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  line-height: 1.5;
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--terracotta);
  flex-shrink: 0;
  transition: transform 0.25s;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding-bottom: 1.2rem;
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.75;
}

.form-section {
  background-color: var(--brown-dark);
  color: #fff;
  padding: 5.5rem 0;
}

.form-section .section-label {
  color: var(--terracotta-light);
}

.form-section h2 {
  color: #fff;
  margin-bottom: 0.7rem;
}

.form-section .lead-desc {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

.form-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.form-points {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 1rem;
}

.form-point {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
}

.form-point-icon {
  color: var(--terracotta-light);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.04em;
}

.form-group input,
.form-group select {
  padding: 0.85rem 1.1rem;
  background-color: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 2px;
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
  -webkit-appearance: none;
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group select option {
  color: var(--brown-dark);
  background-color: #fff;
}

.form-group input::placeholder {
  color: rgba(255,255,255,0.35);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--terracotta-light);
  background-color: rgba(255,255,255,0.12);
}

.form-submit {
  margin-top: 0.5rem;
}

.form-submit .btn {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 0.95rem;
}

.form-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
  margin-top: 0.5rem;
}

.form-note a {
  color: rgba(255,255,255,0.6);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer {
  background-color: #1C0E08;
  color: rgba(255,255,255,0.5);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .nav-logo {
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.8rem;
}

.footer-brand p {
  font-size: 0.82rem;
  line-height: 1.65;
}

.footer-links h4 {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 1rem;
}

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

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: rgba(255,255,255,0.85);
}

.footer-legal {
  font-size: 0.8rem;
  line-height: 1.7;
}

.footer-legal p {
  margin-bottom: 0.3rem;
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background-color: var(--brown-dark);
  color: rgba(255,255,255,0.85);
  padding: 1.2rem 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

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

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-text {
  font-size: 0.85rem;
  flex: 1;
  min-width: 260px;
}

.cookie-text a {
  color: var(--terracotta-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions {
  display: flex;
  gap: 0.7rem;
  flex-shrink: 0;
}

.cookie-actions button {
  padding: 0.55rem 1.4rem;
  border-radius: 2px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.cookie-accept {
  background-color: var(--terracotta);
  color: #fff;
}

.cookie-accept:hover {
  background-color: var(--terracotta-light);
}

.cookie-decline {
  background-color: transparent;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.25) !important;
}

.cookie-decline:hover {
  border-color: rgba(255,255,255,0.5) !important;
  color: rgba(255,255,255,0.85);
}

.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  background-color: var(--cream);
}

.success-box {
  text-align: center;
  max-width: 500px;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--peach);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 2rem;
}

.success-box h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.success-box p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.page-header {
  background-color: var(--cream-dark);
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: 2.4rem;
}

.page-content {
  padding: 4rem 0 5rem;
}

.page-content .prose {
  max-width: 760px;
}

.prose h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
}

.prose h3 {
  font-size: 1.15rem;
  margin-top: 1.8rem;
  margin-bottom: 0.5rem;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
}

.prose p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.prose ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.prose ul li {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 0.4rem;
  line-height: 1.7;
}

.prose a {
  color: var(--terracotta);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .teacher-inner {
    grid-template-columns: 320px 1fr;
    gap: 3rem;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 840px) {
  .nav-links {
    display: none;
  }
  .nav-cta {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-image img {
    height: 320px;
  }

  .format-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .teacher-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .teacher-photo {
    position: static;
    max-width: 340px;
  }
  .teacher-photo img {
    height: 360px;
  }

  .form-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

@media (max-width: 600px) {
  .section {
    padding: 3.5rem 0;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item img {
    height: 180px;
  }
  .program-grid {
    grid-template-columns: 1fr;
  }
  .teacher-facts {
    grid-template-columns: 1fr 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
}
