@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@400;500;600&display=swap');

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

:root {
  --color-bg: hsl(40, 33%, 98%);
  --color-fg: hsl(240, 20%, 15%);
  --color-primary: hsl(35, 90%, 45%);
  --color-primary-fg: hsl(0, 0%, 100%);
  --color-secondary: hsl(240, 40%, 25%);
  --color-muted: hsl(40, 30%, 90%);
  --color-muted-fg: hsl(240, 10%, 40%);
  --color-accent: hsl(40, 50%, 92%);
  --color-border: hsl(40, 20%, 85%);
  --color-white: #ffffff;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --radius: 1rem;
  --radius-sm: 0.5rem;
  --radius-xl: 1.5rem;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow: 0 4px 12px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.12);
  --container: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-fg);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

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

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

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-fg);
  transition: color 0.2s;
}

nav a:hover {
  color: var(--color-primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, background 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-primary-fg);
}

.btn-primary:hover {
  opacity: 0.88;
}

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

.btn-outline:hover {
  background: var(--color-muted);
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.header-cta {
  display: none;
}

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

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-fg);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}

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

.mobile-nav a {
  padding: 0.875rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
  transition: background 0.15s;
}

.mobile-nav a:hover {
  background: var(--color-accent);
}

section {
  padding: 5rem 0;
}

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

.section-white {
  background: var(--color-white);
}

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

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

.hero-tag {
  display: inline-block;
  padding: 0.25rem 0.875rem;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero h1 em {
  color: var(--color-primary);
  font-style: italic;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--color-muted-fg);
  margin-bottom: 2rem;
  max-width: 36rem;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.875rem;
  color: var(--color-muted-fg);
}

.hero-check {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.check-icon {
  width: 1rem;
  height: 1rem;
  color: var(--color-primary);
  flex-shrink: 0;
}

.hero-img-wrap {
  position: relative;
}

.hero-img-inner {
  aspect-ratio: 4/3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

.hero-img-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-blob-1 {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  background: var(--color-accent);
  z-index: 0;
}

.hero-blob-2 {
  position: absolute;
  top: -1.5rem;
  right: -1.5rem;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  background: hsl(35 90% 45% / 0.12);
  z-index: 0;
}

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

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

.fade-in-delay {
  transition-delay: 0.15s;
}

.section-header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 4rem;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.0625rem;
  color: var(--color-muted-fg);
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.feature-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.25s;
}

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

.feature-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--color-primary);
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--color-muted-fg);
  font-size: 0.9375rem;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem;
}

.split-grid:last-child {
  margin-bottom: 0;
}

.split-img {
  aspect-ratio: 4/3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-content h2 {
  margin-bottom: 1rem;
}

.split-content p {
  color: var(--color-muted-fg);
  font-size: 1.0625rem;
  margin-bottom: 1.25rem;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}

.check-dot {
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  background: hsl(35 90% 45% / 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.check-dot svg {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--color-primary);
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: gap 0.2s;
}

.link-arrow:hover {
  gap: 0.75rem;
}

.link-arrow svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 50rem;
  margin: 0 auto;
}

.gallery-item {
  aspect-ratio: 3/4;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

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

.teacher-card {
  background: hsl(40 50% 92% / 0.5);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.teacher-portrait {
  width: 10rem;
  height: 10rem;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.teacher-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teacher-content h2 {
  font-size: 1.625rem;
  margin-bottom: 0.75rem;
}

.teacher-content p {
  color: var(--color-muted-fg);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.teacher-quote {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-primary);
  font-size: 1.25rem;
  margin-top: 0.5rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 42rem;
  margin: 0 auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

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

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

.faq-question {
  width: 100%;
  background: var(--color-white);
  border: none;
  padding: 1.375rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--color-fg);
  transition: background 0.2s;
}

.faq-question:hover {
  background: var(--color-accent);
}

.faq-chevron {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  stroke: var(--color-muted-fg);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.375rem;
  font-size: 0.9375rem;
  color: var(--color-muted-fg);
  background: var(--color-white);
  line-height: 1.65;
}

.faq-item.open .faq-answer {
  display: block;
}

.enroll-section {
  background: var(--color-primary);
  position: relative;
  overflow: hidden;
}

.enroll-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.12) 0%, transparent 70%);
}

.enroll-card {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
}

.enroll-card-header {
  text-align: center;
  margin-bottom: 2rem;
}

.enroll-card-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.enroll-card-header p {
  color: var(--color-muted-fg);
  font-size: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1.125rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-fg);
  background: var(--color-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px hsl(35 90% 45% / 0.15);
}

.form-note {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-muted-fg);
  margin-top: 0.875rem;
}

.form-note a {
  color: var(--color-primary);
  text-decoration: underline;
}

footer {
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: 3rem 0;
}

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

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  max-width: 18rem;
}

.footer-col h4 {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  transition: color 0.2s;
}

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

.footer-contact {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--color-muted-fg);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  padding: 1rem 0;
  display: none;
}

.cookie-banner.visible {
  display: block;
}

.cookie-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.cookie-inner p {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
}

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

.legal-page {
  padding: 4rem 0;
  min-height: 70vh;
}

.legal-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  max-width: 46rem;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.legal-back {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  transition: opacity 0.2s;
}

.legal-back:hover {
  opacity: 0.75;
}

.legal-card h1 {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.legal-body h2 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--color-fg);
}

.legal-body p {
  font-size: 0.9375rem;
  color: var(--color-muted-fg);
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.legal-body ul {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
}

.legal-body li {
  font-size: 0.9375rem;
  color: var(--color-muted-fg);
}

.success-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem;
}

.success-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  max-width: 28rem;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.success-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: hsl(145 60% 94%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.success-icon svg {
  width: 2.5rem;
  height: 2.5rem;
  stroke: hsl(145 55% 38%);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-card h1 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.success-card p {
  color: var(--color-muted-fg);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.success-note {
  padding: 1rem;
  background: var(--color-accent);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--color-fg);
  margin-bottom: 1.75rem;
}

@media (min-width: 640px) {
  .hero-btns {
    flex-wrap: nowrap;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cookie-inner {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
  }

  .cookie-inner p {
    text-align: left;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer-bottom div {
    text-align: right;
  }
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .teacher-card {
    flex-direction: row;
    text-align: left;
    padding: 3rem;
  }

  .teacher-portrait {
    width: 14rem;
    height: 14rem;
  }

  .enroll-card {
    padding: 3rem;
  }

  .legal-card {
    padding: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }

  .split-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .split-grid.reversed .split-img {
    order: 2;
  }

  .split-grid.reversed .split-content {
    order: 1;
  }

  .header-cta {
    display: inline-flex;
  }

  nav {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }
}

@media (max-width: 1023px) {
  .header-cta {
    display: none;
  }

  nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }
}
