:root {
  /* Color Palette — Warm Gold & Mustard Tones */
  --clr-primary: #7A6600;
  --clr-secondary: #8B7500;
  --clr-accent: #665200;
  --clr-highlight: #856F00;
  --clr-dark: #604B00;
  --clr-light: #FAF7F0;
  --clr-white: #FFFFFF;
  --clr-text: #2A2A2A;
  --clr-text-light: #5A5A5A;
  --clr-border: #E5E0D5;
  
  /* Typography Scale */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Karla', sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 0.9375rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.5rem;
  --fs-xl: 2rem;
  --fs-2xl: 2.5rem;
  --fs-3xl: 3rem;
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-bold: 700;
  
  /* Spacing System */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  
  /* Layout */
  --container-width: 1200px;
  --container-narrow: 900px;
  --border-radius-sm: 0.375rem;
  --border-radius-md: 0.75rem;
  --border-radius-lg: 1.25rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(96, 75, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(96, 75, 0, 0.12);
  --shadow-lg: 0 12px 24px rgba(96, 75, 0, 0.15);
  --shadow-hover: 0 8px 20px rgba(122, 102, 0, 0.2);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ================================================
   Reset & Base Styles
   ================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--clr-text);
  background: var(--clr-light);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  color: var(--clr-dark);
  margin-bottom: var(--space-md);
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
h5 { font-size: var(--fs-md); }
h6 { font-size: var(--fs-base); }

p {
  margin-bottom: var(--space-md);
  color: var(--clr-text-light);
}

a {
  color: var(--clr-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--clr-secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ================================================
   Layout Components
   ================================================ */

.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-3xl) 0;
}

.section-compact {
  padding: var(--space-2xl) 0;
}

/* ================================================
   Header — Collapsible Overlay Design
   ================================================ */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-lg) 0;
  transition: all var(--transition-base);
}

.site-header.scrolled {
  background: rgba(250, 247, 240, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: var(--space-md) 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
}

.site-logo {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--clr-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: transform var(--transition-fast);
}

.site-logo:hover {
  transform: translateY(-2px);
  color: var(--clr-primary);
}

/* Navigation */
.nav-primary {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
}

.nav-link {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--clr-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-xs) var(--space-sm);
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--clr-primary);
  transform: translateX(-50%);
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: var(--clr-primary);
}

.nav-link:hover::after {
  width: 80%;
}

/* Burger Menu */
.burger-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  z-index: 1001;
}

.burger-line {
  width: 24px;
  height: 2px;
  background: var(--clr-primary);
  transition: all var(--transition-base);
}

.burger-toggle.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.burger-toggle.active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-toggle.active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ================================================
   Hero Section
   ================================================ */

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--clr-light) 0%, #F5F0E5 100%);
  padding-top: var(--space-4xl);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(122, 102, 0, 0.05) 100%);
  clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: var(--space-lg);
  line-height: 1.1;
}

.hero-title span {
  color: var(--clr-primary);
}

.hero-text {
  font-size: var(--fs-md);
  margin-bottom: var(--space-xl);
  color: var(--clr-text-light);
  max-width: 500px;
}

/* ================================================
   Buttons
   ================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-sm) var(--space-xl);
  border: none;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--clr-primary);
  color: var(--clr-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--clr-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  color: var(--clr-white);
}

.btn-secondary {
  background: var(--clr-white);
  color: var(--clr-primary);
  border: 2px solid var(--clr-primary);
}

.btn-secondary:hover {
  background: var(--clr-primary);
  color: var(--clr-white);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
}

/* ================================================
   Cards & Grid
   ================================================ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.card {
  background: var(--clr-white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid var(--clr-border);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
  color: var(--clr-white);
  border-radius: var(--border-radius-md);
  margin-bottom: var(--space-md);
  font-size: var(--fs-xl);
}

.card-title {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-sm);
}

.card-text {
  font-size: var(--fs-sm);
  margin-bottom: var(--space-md);
  color: var(--clr-text-light);
}

/* Course Cards */
.course-card {
  position: relative;
  overflow: hidden;
}

.course-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius-md);
  margin-bottom: var(--space-md);
}

.course-meta {
  display: flex;
  gap: var(--space-md);
  font-size: var(--fs-xs);
  color: var(--clr-text-light);
  margin-bottom: var(--space-sm);
}

.course-price {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--clr-primary);
  margin-top: var(--space-md);
}

/* ================================================
   Form Styles
   ================================================ */

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--clr-text);
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input,
.form-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--clr-border);
  border-radius: var(--border-radius-sm);
  background: var(--clr-white);
  color: var(--clr-text);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(122, 102, 0, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.form-checkbox {
  margin-top: 4px;
  accent-color: var(--clr-primary);
}

.form-checkbox-label {
  font-size: var(--fs-sm);
  color: var(--clr-text-light);
  line-height: 1.5;
}

/* ================================================
   Contact Section — Unique Design
   ================================================ */

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.contact-info {
  position: sticky;
  top: var(--space-2xl);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-primary);
  color: var(--clr-white);
  border-radius: var(--border-radius-md);
  flex-shrink: 0;
}

.contact-item-content h3 {
  font-size: var(--fs-md);
  margin-bottom: var(--space-xs);
}

.contact-item-content p {
  font-size: var(--fs-sm);
  margin-bottom: 0;
}

.map-container {
  width: 100%;
  height: 350px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: var(--space-xl);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ================================================
   Footer — Compact Design
   ================================================ */

.site-footer {
  background: var(--clr-dark);
  color: var(--clr-light);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(250, 247, 240, 0.2);
  margin-bottom: var(--space-md);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--clr-light);
}

.footer-menu {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.footer-link {
  font-size: var(--fs-xs);
  color: var(--clr-light);
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.footer-link:hover {
  opacity: 1;
  color: var(--clr-light);
}

.footer-bottom {
  text-align: center;
}

.footer-copyright {
  font-size: var(--fs-xs);
  opacity: 0.7;
  margin: 0;
}

/* ================================================
   Privacy Popup
   ================================================ */

.privacy-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--clr-white);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  transform: translateY(100%);
  transition: transform var(--transition-base);
  border-top: 3px solid var(--clr-primary);
}

.privacy-popup.active {
  transform: translateY(0);
}

.privacy-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.privacy-text {
  flex: 1;
  font-size: var(--fs-sm);
  margin: 0;
  min-width: 250px;
}

.privacy-text a {
  text-decoration: underline;
}

.privacy-actions {
  display: flex;
  gap: var(--space-md);
}

/* ================================================
   Utility Classes
   ================================================ */

.text-center { text-align: center; }
.text-primary { color: var(--clr-primary); }
.text-light { color: var(--clr-text-light); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================
   Responsive Design — Down to 320px
   ================================================ */

@media (max-width: 768px) {
  :root {
    --fs-3xl: 2.25rem;
    --fs-2xl: 1.875rem;
    --fs-xl: 1.5rem;
    --space-3xl: 2.5rem;
    --space-4xl: 3rem;
  }

  .burger-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--clr-white);
    flex-direction: column;
    padding: var(--space-4xl) var(--space-xl);
    box-shadow: var(--shadow-lg);
    transition: right var(--transition-base);
    align-items: flex-start;
    gap: var(--space-lg);
  }

  .nav-menu.active {
    right: 0;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .contact-info {
    position: static;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }

  .footer-menu {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .privacy-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --fs-3xl: 1.875rem;
    --fs-2xl: 1.5rem;
    --space-2xl: 2rem;
    --space-3xl: 2rem;
  }

  .container {
    width: 95%;
    padding: 0 var(--space-sm);
  }

  .hero {
    min-height: 75vh;
    padding-top: var(--space-3xl);
  }

  .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ================================================
   ULTRA-SMALL DEVICES — 320px REFINEMENTS
   ================================================ */
@media (max-width: 320px) {

  /* Typography compression */
  :root {
    --fs-3xl: 1.75rem;
    --fs-2xl: 1.35rem;
    --fs-xl: 1.25rem;
    --fs-lg: 1.125rem;
    --fs-md: 1rem;
    --fs-base: 0.85rem;
    --fs-sm: 0.75rem;
    --fs-xs: 0.7rem;

    --space-xs: 0.35rem;
    --space-sm: 0.55rem;
    --space-md: 0.75rem;
    --space-lg: 1rem;
    --space-xl: 1.25rem;
    --space-2xl: 1.75rem;
    --space-3xl: 2rem;
  }

  /* Container padding */
  .container {
    width: 96%;
    padding: 0 var(--space-xs);
  }

  /* Header adjustments */
  .site-header {
    padding: var(--space-sm) 0;
  }

  .site-logo {
    font-size: 1.15rem;
  }

  .burger-line {
    width: 20px;
  }

  .nav-menu {
    width: 85%;
    max-width: 260px;
    padding: var(--space-3xl) var(--space-lg);
  }

  .nav-link {
    font-size: var(--fs-xs);
    padding: var(--space-xs) 0;
  }

  /* Hero section */
  .hero {
    min-height: 65vh;
    padding-top: var(--space-3xl);
  }

  .hero-title {
    font-size: clamp(1.4rem, 7vw, 1.9rem);
  }

  .hero-text {
    font-size: var(--fs-sm);
    max-width: 90%;
  }

  /* Buttons */
  .btn-group {
    flex-direction: column;
    gap: var(--space-sm);
    width: 100%;
  }

  .btn {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--fs-xs);
  }

  /* Cards */
  .card {
    padding: var(--space-lg);
    border-radius: var(--border-radius-md);
  }

  .card-title {
    font-size: var(--fs-md);
  }

  .card-text {
    font-size: var(--fs-xs);
  }

  .course-image {
    height: 160px;
  }

  .course-price {
    font-size: 1.5rem;
  }

  /* Contact section */
  .contact-item {
    gap: var(--space-sm);
  }

  .contact-item-icon {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .map-container {
    height: 280px;
  }

  /* Forms */
  .form-group {
    margin-bottom: var(--space-md);
  }

  .form-input,
  .form-textarea {
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--fs-sm);
  }

  .form-label {
    font-size: var(--fs-xs);
  }

  /* Footer */
  .footer-content {
    gap: var(--space-sm);
  }

  .footer-link {
    font-size: var(--fs-xs);
  }

  .footer-copyright {
    font-size: 0.65rem;
  }

  /* Privacy Popup */
  .privacy-popup {
    padding: var(--space-md);
  }

  .privacy-text {
    font-size: var(--fs-xs);
  }

  .privacy-actions {
    width: 100%;
    flex-direction: column;
  }

  .privacy-actions .btn {
    width: 100%;
  }
}

/* ================================================
   Animations
   ================================================ */

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-in {
  animation: slideIn 0.6s ease forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

/* Staggered Animation Delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }