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

/* ===== CSS RESET ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

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

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --color-sand: #F7F0E3;
  --color-espresso: #3D2314;
  --color-terracotta: #C4622D;
  --color-sage: #7A8C6E;
  --color-off-white: #FDFAF5;
  --color-warm-gray: #9B8F82;
  
  --color-bg: var(--color-sand);
  --color-text: var(--color-espresso);
  --color-accent: var(--color-terracotta);
  --color-secondary: var(--color-sage);
  
  --font-display: 'Playfair Display', serif;
  --font-body: 'Nunito', sans-serif;
  
  --shadow-sm: 0 2px 8px rgba(61, 35, 20, 0.08);
  --shadow-md: 0 4px 16px rgba(61, 35, 20, 0.12);
  --shadow-lg: 0 8px 32px rgba(61, 35, 20, 0.16);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  
  --container-max: 1200px;
  --container-padding: 24px;
}

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

h1 {
  font-size: 3rem;
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
  font-weight: 600;
}

h3 {
  font-size: 1.75rem;
  font-weight: 600;
}

h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

/* ===== LAYOUT UTILITIES ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: 80px 0;
}

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

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

/* ===== HEADER & NAVIGATION ===== */
.header {
  position: sticky;
  top: 0;
  background: var(--color-off-white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px var(--container-padding);
  max-width: var(--container-max);
  margin: 0 auto;
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  color: var(--color-text);
  transition: color 0.3s ease;
  position: relative;
}

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

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

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

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background: var(--color-accent);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: #A94F1F;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  background: #657A5A;
  transform: translateY(-2px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  padding: 100px 0 80px;
  background: linear-gradient(135deg, var(--color-off-white) 0%, var(--color-sand) 100%);
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 24px;
  color: var(--color-espresso);
}

.hero-subheadline {
  font-size: 1.25rem;
  margin-bottom: 40px;
  color: var(--color-warm-gray);
  line-height: 1.8;
}

.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

/* ===== LEAD FORM ===== */
.lead-form {
  background: white;
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  max-width: 500px;
}

.lead-form h3 {
  margin-bottom: 24px;
  color: var(--color-accent);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--color-text);
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #E5DCC9;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--color-off-white);
}

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

.form-input.error {
  border-color: #D64545;
}

.form-error {
  color: #D64545;
  font-size: 0.875rem;
  margin-top: 4px;
  display: none;
}

.form-error.visible {
  display: block;
}

.form-submit {
  width: 100%;
  padding: 16px;
  font-size: 1.125rem;
  margin-top: 8px;
}

/* ===== AUDIENCE SECTION ===== */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.audience-card {
  background: white;
  padding: 36px 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  text-align: center;
}

.audience-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.audience-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--color-accent);
}

.audience-card h3 {
  font-size: 1.375rem;
  margin-bottom: 12px;
}

.audience-card p {
  color: var(--color-warm-gray);
  margin-bottom: 0;
}

/* ===== SKILLS SECTION ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.skill-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.skill-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.skill-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  min-width: 50px;
}

.skill-content h4 {
  margin-bottom: 8px;
  font-size: 1.125rem;
}

.skill-content p {
  color: var(--color-warm-gray);
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ===== COURSE FORMAT SECTION ===== */
.format-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.format-card {
  background: white;
  padding: 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.format-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
}

.format-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--color-secondary);
}

.format-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.format-card p {
  color: var(--color-warm-gray);
  margin-bottom: 0;
}

/* ===== GALLERY SECTION ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

/* ===== INSTRUCTOR SECTION ===== */
.instructor {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 48px;
  background: white;
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.instructor-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.instructor-photo img {
  width: 100%;
  height: auto;
}

.instructor-bio h3 {
  font-size: 2rem;
  margin-bottom: 8px;
  color: var(--color-accent);
}

.instructor-title {
  color: var(--color-warm-gray);
  font-size: 1.125rem;
  margin-bottom: 24px;
  font-weight: 600;
}

.instructor-bio p {
  color: var(--color-text);
  line-height: 1.8;
}

/* ===== FAQ SECTION ===== */
.faq-list {
  max-width: 800px;
  margin: 48px auto 0;
}

.faq-item {
  background: white;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question {
  width: 100%;
  padding: 24px 28px;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

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

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.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 28px 24px;
}

.faq-answer p {
  color: var(--color-warm-gray);
  line-height: 1.8;
  margin-bottom: 0;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--color-accent) 0%, #A94F1F 100%);
  color: white;
  text-align: center;
  padding: 80px 0;
}

.cta-section h2 {
  color: white;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  opacity: 0.95;
}

.cta-section .lead-form {
  max-width: 500px;
  margin: 0 auto;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-espresso);
  color: white;
  padding: 60px 0 32px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  color: var(--color-accent);
  margin-bottom: 16px;
}

.footer-links h4 {
  font-size: 1.125rem;
  margin-bottom: 16px;
  color: var(--color-accent);
}

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

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

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

.footer-info {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.6;
}

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

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-espresso);
  color: white;
  padding: 24px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
  z-index: 2000;
  display: none;
}

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

.cookie-content {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.cookie-text {
  flex: 1;
}

.cookie-text p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

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

.cookie-actions {
  display: flex;
  gap: 12px;
}

/* ===== SUCCESS PAGE ===== */
.success-container {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px var(--container-padding);
}

.success-content {
  max-width: 600px;
}

.success-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 32px;
  border-radius: 50%;
  background: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scaleIn 0.5s ease;
}

.success-icon::after {
  content: '✓';
  font-size: 3rem;
  color: white;
  font-weight: bold;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.success-content h1 {
  margin-bottom: 16px;
  color: var(--color-accent);
}

.success-content p {
  font-size: 1.125rem;
  color: var(--color-warm-gray);
  margin-bottom: 32px;
}

/* ===== LEGAL PAGES ===== */
.legal-page {
  padding: 60px 0;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.legal-content h1 {
  margin-bottom: 32px;
  color: var(--color-accent);
}

.legal-content h2 {
  margin-top: 40px;
  margin-bottom: 16px;
  font-size: 1.75rem;
}

.legal-content h3 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 1.375rem;
}

.legal-content p {
  margin-bottom: 16px;
  line-height: 1.8;
  color: var(--color-text);
}

.legal-content ul, .legal-content ol {
  margin-bottom: 16px;
  margin-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
  line-height: 1.8;
}

.company-info {
  background: var(--color-off-white);
  padding: 24px;
  border-radius: var(--radius-sm);
  margin: 24px 0;
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.875rem;
  }
  
  h3 {
    font-size: 1.375rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .hamburger {
    display: flex;
  }
  
  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--color-off-white);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }
  
  .nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  
  .nav-links {
    flex-direction: column;
    gap: 20px;
  }
  
  .nav .btn {
    width: 100%;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .lead-form {
    max-width: 100%;
  }
  
  .audience-grid {
    grid-template-columns: 1fr;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .format-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .instructor {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 24px;
  }
  
  .instructor-photo {
    max-width: 250px;
    margin: 0 auto;
  }
  
  .cookie-content {
    flex-direction: column;
    align-items: stretch;
  }
  
  .cookie-actions {
    flex-direction: column;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .legal-content {
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 16px;
  }
  
  h1 {
    font-size: 1.875rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .section {
    padding: 48px 0;
  }
  
  .lead-form {
    padding: 24px;
  }
  
  .audience-card, .format-card {
    padding: 24px 20px;
  }
}
