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

:root {
  --color-green: #2D5016;
  --color-cream: #FAF6EF;
  --color-accent: #C4784A;
  --color-charcoal: #1A1A1A;
  --color-muted: #6B6B6B;
  
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
  
  --container-width: 1100px;
  --transition-normal: 0.3s ease;
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--color-charcoal);
  background-color: var(--color-cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

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

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

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(250, 246, 239, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(45, 80, 22, 0.1);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-green);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
}

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

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-charcoal);
  margin: 5px 0;
  transition: var(--transition-normal);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background-image: url('./images/hero-ornaments.jpg');
  background-size: cover;
  background-position: center;
  text-align: center;
  color: var(--color-cream);
  padding: 6rem 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 26, 0.5);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--color-accent);
  color: #ffffff;
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 500;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-normal), transform var(--transition-normal);
  text-align: center;
}

.btn:hover, .btn:focus {
  background-color: #A6633A;
  color: #ffffff;
  outline: none;
}

.btn:focus-visible {
  outline: 3px solid var(--color-green);
  outline-offset: 2px;
}

/* Sections */
section {
  padding: 6rem 0;
}

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

.section-split.reverse .split-content {
  order: -1;
}

.split-image img {
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Cards & Lists */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: #ffffff;
  padding: 2.5rem 2rem;
  border-radius: 8px;
  border-top: 4px solid var(--color-green);
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.feature-list {
  margin-top: 2rem;
}

.feature-item {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.feature-item::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 1.25rem;
}

/* About / Instructor */
.instructor-content {
  font-size: 1.125rem;
}

/* Student Work */
.student-work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.student-work-grid img {
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

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

.faq-item {
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(45, 80, 22, 0.1);
  padding-bottom: 1.5rem;
}

.faq-question {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-green);
  margin-bottom: 0.5rem;
}

/* Lead Form */
.form-section {
  background-color: #ffffff;
  padding: 6rem 0;
}

.lead-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: var(--color-cream);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.lead-form-wrapper h2 {
  text-align: center;
}

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

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(107, 107, 107, 0.3);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 1rem;
  background-color: #ffffff;
  transition: border-color var(--transition-normal);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-green);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: var(--color-muted);
}

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

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

.error-msg {
  display: block;
  color: #D32F2F;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  opacity: 0;
  height: 0;
  transition: opacity 0.2s ease;
}

.error-msg.visible {
  opacity: 1;
  height: auto;
}

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

.btn-submit {
  width: 100%;
}

/* Footer */
.site-footer {
  background-color: var(--color-green);
  color: var(--color-cream);
  padding: 4rem 0 2rem;
}

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

.footer-col h3, .footer-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-cream);
}

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

.footer-links a {
  opacity: 0.8;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--color-accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(250, 246, 239, 0.1);
  font-size: 0.875rem;
  opacity: 0.6;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-cream);
  border-top: 1px solid rgba(45, 80, 22, 0.1);
  padding: 1rem 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

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

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

.cookie-content p {
  margin: 0;
  font-size: 0.875rem;
}

.cookie-btn {
  background-color: var(--color-charcoal);
  color: #fff;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}

/* Page Standard Layout (Legal & Success) */
.page-content {
  padding: 4rem 0 6rem;
  max-width: 800px;
  margin: 0 auto;
}

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

.page-content h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.success-content {
  text-align: center;
  padding: 8rem 0;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-cream);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(45, 80, 22, 0.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s ease;
  }
  
  .nav-links.open {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  .hamburger.open .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .hamburger.open .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.open .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  
  .section-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .section-split.reverse .split-content {
    order: 0;
  }
  
  .hero {
    padding: 4rem 0;
  }
  
  section {
    padding: 4rem 0;
  }
  
  .lead-form-wrapper {
    padding: 2rem 1.5rem;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}
