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

/* ============================================================
   Design Tokens (CSS Custom Properties)
   ============================================================ */
:root {
  --background: #f7f4f0;
  --foreground: #2d2520;
  --card: #faf8f5;
  --card-foreground: #2d2520;
  --primary: #4a7a5a;
  --primary-foreground: #f9f7f4;
  --secondary: #ede9e3;
  --secondary-foreground: #3d3530;
  --muted: #ede9e3;
  --muted-foreground: #7a7068;
  --accent: #d4b896;
  --accent-foreground: #2d2520;
  --border: #ddd8d0;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --radius: 0.625rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
}

/* ============================================================
   Typography Utilities
   ============================================================ */
.font-serif  { font-family: var(--font-serif); }
.font-sans   { font-family: var(--font-sans); }
.text-primary { color: var(--primary); }
.text-muted  { color: var(--muted-foreground); }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
}

/* ============================================================
   Layout Utilities
   ============================================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

.section-padding {
  padding: 4rem 0;
}

@media (min-width: 1024px) {
  .section-padding {
    padding: 6rem 0;
  }
}

/* ============================================================
   Button Styles
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: color-mix(in srgb, var(--primary) 90%, black);
}

.btn-outline {
  background: transparent;
  color: var(--primary-foreground);
  border: 1px solid rgba(249, 247, 244, 0.3);
}

.btn-outline:hover {
  background: rgba(249, 247, 244, 0.1);
}

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

/* ============================================================
   Card Styles
   ============================================================ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  transition: border-color 0.2s;
}

.card:hover {
  border-color: color-mix(in srgb, var(--primary) 30%, transparent);
}

.card-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(74, 122, 90, 0.3);
}

/* ============================================================
   Form Styles
   ============================================================ */
label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: var(--foreground);
}

input,
textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent);
}

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

/* ============================================================
   Grid Utilities
   ============================================================ */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .grid-2col {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

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

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

/* ============================================================
   Navbar Styles
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  z-index: 50;
  background: rgba(247, 244, 240, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

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

.navbar-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .navbar-links {
    display: flex;
  }
}

.navbar-links a {
  font-size: 0.875rem;
  color: rgba(45, 37, 32, 0.7);
  transition: color 0.2s;
}

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

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.lang-toggle:hover {
  background: var(--secondary);
  border-color: var(--primary);
}

.hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--foreground);
}

@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }
}

/* ============================================================
   Mobile Menu Styles
   ============================================================ */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  z-index: 49;
  padding: 1rem 0;
  box-shadow: 0 4px 12px rgba(45, 37, 32, 0.08);
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  color: rgba(45, 37, 32, 0.8);
  transition: color 0.2s, background 0.2s;
}

.mobile-menu a:hover {
  color: var(--primary);
  background: var(--secondary);
}

/* ============================================================
   Icon Container
   ============================================================ */
.icon-container {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ============================================================
   Accordion Styles
   ============================================================ */
.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 0;
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--foreground);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
}

.accordion-trigger:hover {
  color: var(--primary);
}

.accordion-trigger .chevron {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.accordion-trigger[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content.is-open {
  max-height: 500px;
}

.accordion-content-inner {
  padding-bottom: 1.25rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* ============================================================
   Badge
   ============================================================ */
.badge {
  display: inline-block;
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-accent {
  background: var(--accent);
  color: var(--accent-foreground);
}

.badge-primary {
  background: color-mix(in srgb, var(--primary) 15%, transparent);
  color: var(--primary);
}

.badge-beginner {
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
}

.badge-intermediate {
  background: color-mix(in srgb, var(--accent) 30%, transparent);
  color: color-mix(in srgb, var(--accent-foreground) 80%, var(--accent));
}

.badge-advanced {
  background: color-mix(in srgb, #c0392b 12%, transparent);
  color: #c0392b;
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateY(-8px);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

.animate-bounce {
  animation: bounce 1.5s infinite;
}

/* ============================================================
   Footer Styles
   ============================================================ */
.footer {
  background: var(--foreground);
  color: var(--primary-foreground);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 4rem 0 2rem;
}

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

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--primary-foreground);
  margin-bottom: 0.75rem;
}

.footer-tagline {
  color: rgba(249, 247, 244, 0.6);
  font-size: 0.9375rem;
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(249, 247, 244, 0.5);
  margin-bottom: 1rem;
}

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

.footer-links a {
  color: rgba(249, 247, 244, 0.7);
  font-size: 0.9375rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid rgba(249, 247, 244, 0.1);
  padding: 1.5rem 0;
  text-align: center;
  color: rgba(249, 247, 244, 0.5);
  font-size: 0.875rem;
}

/* ============================================================
   Utility: pt-16 (clear fixed navbar)
   ============================================================ */
.pt-16 {
  padding-top: 64px;
}

/* ============================================================
   Aspect Ratio Helpers
   ============================================================ */
.aspect-4-3 {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 1rem;
}

.aspect-4-3 img,
.aspect-16-9 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aspect-16-9 {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 1rem;
}

/* ============================================================
   Image Fallback
   ============================================================ */
.img-placeholder {
  background-color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}
