:root {
  --bg-color: #FAF8F5;
  --text-color: #2C2622;
  --accent-color: #8B6F5E;
  --accent-light: #D4B5A0;
  --muted-color: #7A6E66;
  --border-color: #E8DDD5;
  --white: #FFFFFF;
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;
  --nav-height: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-body);
}
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 500; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
html { scroll-behavior: smooth; }

h1 { font-size: 2.5rem; line-height: 1.1; margin-bottom: 1rem; }
h2 { font-size: 2rem; line-height: 1.2; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.text-lg { font-size: 1.125rem; }
.text-muted { color: var(--muted-color); }
@media (min-width: 768px) {
  h1 { font-size: 4rem; }
  h2 { font-size: 2.5rem; }
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
section { padding: 5rem 0; }
@media (min-width: 768px) {
  section { padding: 8rem 0; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background-color: var(--accent-color);
  color: var(--white);
  border: none;
  border-radius: 9999px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.btn:hover { background-color: #725A4B; }
.btn:active { transform: scale(0.98); }

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background-color: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(8px);
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-color);
}
.nav-links {
  display: none;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent-color); }
.hamburger {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
  position: relative;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-color);
  position: absolute;
  transition: all 0.3s;
}
.hamburger span:nth-child(1) { top: 6px; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { top: 16px; }

.mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-color);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
body.nav-open .mobile-menu { transform: translateX(0); }
body.nav-open { overflow: hidden; }
body.nav-open .hamburger span:nth-child(1) { top: 11px; transform: rotate(45deg); }
body.nav-open .hamburger span:nth-child(2) { opacity: 0; }
body.nav-open .hamburger span:nth-child(3) { top: 11px; transform: rotate(-45deg); }
.mobile-menu a {
  font-size: 1.5rem;
  font-family: var(--font-heading);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .hamburger { display: none; }
  .mobile-menu { display: none; }
}

.hero {
  height: 80vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
  margin-top: var(--nav-height);
  padding-top: 0;
  padding-bottom: 0;
}
@media (min-width: 768px) {
  .hero { height: calc(100vh - var(--nav-height)); }
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 38, 34, 0.4);
  z-index: -1;
}
.hero-content {
  color: var(--white);
  max-width: 800px;
}
.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 3rem;
}
@media (min-width: 768px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .benefits-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
}
.benefit-card {
  padding: 2rem;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}
.benefit-icon {
  width: 40px;
  height: 40px;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}
.about-img {
  border-radius: 12px;
  overflow: hidden;
}
.about-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.program-list {
  max-width: 800px;
  margin: 0 auto;
  counter-reset: program-counter;
}
.program-item {
  position: relative;
  padding: 2rem 0 2rem 3rem;
  border-bottom: 1px solid var(--border-color);
}
.program-item::before {
  counter-increment: program-counter;
  content: "0" counter(program-counter);
  position: absolute;
  left: 0;
  top: 2rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--accent-light);
  font-weight: 600;
}
.program-item h3 { margin-bottom: 0.5rem; }
.program-item p { color: var(--muted-color); }

.format-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 768px) {
  .format-grid { grid-template-columns: 1fr 1fr; }
}
.format-list li {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}
.format-list li strong {
  color: var(--accent-color);
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (min-width: 768px) {
  .results-grid { grid-template-columns: 1fr 1fr; }
}
.results-grid img {
  border-radius: 12px;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.audience-list {
  max-width: 800px;
  margin: 0 auto 3rem;
}
.audience-list li {
  padding: 1.5rem;
  margin-bottom: 1rem;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
}
.audience-list li::before {
  content: "—";
  color: var(--accent-color);
  margin-right: 1rem;
  font-weight: bold;
}

.form-section {
  background-color: var(--white);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.form-wrapper {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}
.lead-form {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.form-group { text-align: left; }
.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--bg-color);
  transition: border-color 0.3s;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
}
.form-hint {
  display: block;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--muted-color);
}
.form-hint a { text-decoration: underline; }

.footer {
  background-color: var(--text-color);
  color: var(--white);
  padding: 5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1rem;
  display: inline-block;
}
.footer h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: var(--muted-color);
}
.footer ul li { margin-bottom: 1rem; }
.footer a { opacity: 0.8; transition: opacity 0.3s; }
.footer a:hover { opacity: 1; }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.875rem;
  opacity: 0.6;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--text-color);
  color: var(--white);
  padding: 1.5rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.4s ease-out;
}
.cookie-banner.show { transform: translateY(0); }
@media (min-width: 768px) {
  .cookie-banner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 1.5rem 3rem;
  }
}
.cookie-banner a { text-decoration: underline; }
.cookie-banner .btn {
  padding: 0.5rem 1.5rem;
  background-color: var(--white);
  color: var(--text-color);
  white-space: nowrap;
}
.cookie-banner .btn:hover { background-color: var(--border-color); }

.legal-page {
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 4rem;
  max-width: 800px;
  margin: 0 auto;
}
.legal-page h1 { margin-bottom: 2rem; }
.legal-page h2 { margin-top: 2.5rem; margin-bottom: 1rem; font-size: 1.5rem; }
.legal-page p { margin-bottom: 1rem; color: var(--muted-color); }

.success-page {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
