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

:root {
  --ivory: #F8F4EF;
  --parchment: #EDE7DC;
  --terracotta: #C27B5A;
  --charcoal: #2A2520;
  --warm-grey: #6B6560;
  --light-grey: #D4CEC6;
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Nunito Sans', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--ivory);
  color: var(--charcoal);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

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

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

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

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

p {
  margin-bottom: 1rem;
  color: var(--warm-grey);
}

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

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(248, 244, 239, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--light-grey);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--terracotta);
  letter-spacing: 0.5px;
}

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

.nav-links a {
  color: var(--charcoal);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--terracotta);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  margin: 5px 0;
  transition: var(--transition);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--parchment) 0%, var(--ivory) 100%);
  padding-top: 80px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.15;
  background-image: url('./images/hero.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  margin-bottom: 1.5rem;
  color: var(--charcoal);
}

.hero-text .subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--warm-grey);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(42, 37, 32, 0.15);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: var(--transition);
  letter-spacing: 0.5px;
}

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

.btn-primary:hover {
  background: #a96649;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(194, 123, 90, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--charcoal);
  border: 2px solid var(--charcoal);
}

.btn-secondary:hover {
  background: var(--charcoal);
  color: white;
}

.section {
  padding: 6rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-header.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-header h2 {
  margin-bottom: 1rem;
  color: var(--charcoal);
}

.section-header p {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto;
}

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

.about-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(42, 37, 32, 0.12);
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.about-image.visible {
  opacity: 1;
  transform: translateX(0);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-text {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.about-text.visible {
  opacity: 1;
  transform: translateX(0);
}

.about-text h3 {
  margin-bottom: 1.5rem;
}

.about-text p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.for-whom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.for-whom-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(42, 37, 32, 0.08);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.for-whom-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.for-whom-card:hover {
  box-shadow: 0 8px 30px rgba(42, 37, 32, 0.12);
}

.for-whom-card h4 {
  color: var(--terracotta);
  margin-bottom: 1rem;
}

.curriculum {
  background: var(--parchment);
}

.curriculum-list {
  display: grid;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.curriculum-item {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid var(--terracotta);
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.curriculum-item h4 {
  color: var(--charcoal);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.module-number {
  color: var(--terracotta);
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-body);
}

.curriculum-item p {
  margin: 0;
  font-size: 1rem;
}

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

.gallery-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(42, 37, 32, 0.12);
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.gallery-image.visible {
  opacity: 1;
  transform: scale(1);
}

.gallery-image img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-text {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.gallery-text.visible {
  opacity: 1;
  transform: translateY(0);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.step {
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--terracotta);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 auto 1.5rem;
}

.step h4 {
  margin-bottom: 1rem;
}

.faq {
  background: var(--parchment);
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.faq-item {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.faq-question {
  width: 100%;
  padding: 1.5rem 2rem;
  background: white;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

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

.faq-toggle {
  font-size: 1.5rem;
  color: var(--terracotta);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

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

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 2rem 1.5rem;
}

.faq-answer p {
  margin: 0;
  font-size: 1rem;
}

.contact {
  background: linear-gradient(135deg, var(--terracotta) 0%, #a96649 100%);
  color: white;
}

.contact .section-header h2,
.contact .section-header p {
  color: white;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.contact-form.visible {
  opacity: 1;
  transform: translateY(0);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--charcoal);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--light-grey);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--charcoal);
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--terracotta);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.25rem;
  width: auto;
  cursor: pointer;
}

.checkbox-group label {
  margin: 0;
  font-size: 0.9rem;
  color: var(--warm-grey);
  font-weight: 400;
  line-height: 1.5;
}

.checkbox-group a {
  color: var(--terracotta);
  text-decoration: underline;
}

.checkbox-group a:hover {
  color: #a96649;
}

.form-note {
  font-size: 0.875rem;
  color: var(--warm-grey);
  text-align: center;
  margin-top: 1rem;
}

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

.btn-submit {
  width: 100%;
}

.footer {
  background: var(--charcoal);
  color: white;
  padding: 4rem 2rem 2rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h4 {
  color: var(--terracotta);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a:hover {
  color: white;
  text-decoration: underline;
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--charcoal);
  color: white;
  padding: 1.5rem 2rem;
  z-index: 2000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

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

.cookie-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cookie-text {
  flex: 1;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

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

.cookie-text a:hover {
  color: #d89178;
}

.btn-cookie {
  background: var(--terracotta);
  color: white;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.btn-cookie:hover {
  background: #a96649;
}

.legal-page {
  padding-top: 100px;
  min-height: 100vh;
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.legal-content h1 {
  margin-bottom: 2rem;
  color: var(--charcoal);
}

.legal-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.75rem;
  color: var(--charcoal);
}

.legal-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
  color: var(--charcoal);
}

.legal-content p {
  margin-bottom: 1.25rem;
}

.legal-content ul,
.legal-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  color: var(--warm-grey);
}

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

.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--parchment) 0%, var(--ivory) 100%);
  padding: 2rem;
}

.success-content {
  text-align: center;
  max-width: 600px;
  background: white;
  padding: 4rem 3rem;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(42, 37, 32, 0.15);
}

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

.success-content h1 {
  margin-bottom: 1rem;
  color: var(--charcoal);
}

.success-content p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .header-inner {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(248, 244, 239, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-bottom: 1px solid var(--light-grey);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
  }

  .hero-image {
    order: -1;
  }

  .section {
    padding: 4rem 1.5rem;
  }

  .about-content,
  .gallery-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .gallery-content .gallery-image {
    order: -1;
  }

  .contact-form {
    padding: 2rem 1.5rem;
  }

  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-cookie {
    width: 100%;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .for-whom-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }
}
