/* ==========================================================================
   CSS Variables & Design System (Phase 5 - Cultural Heritage Edition)
   ========================================================================== */
:root {
  /* African Heritage Inspired Colors */
  --primary-color: #0B2B16; /* Deep Green — brand green, also used for dark fills */
  /* Brand green is unreadable on a dark background, but --primary-color cannot simply
     flip: it also paints dark section fills and letters gold buttons. So text that
     sits on the page background uses this instead, and only this one swaps in dark mode. */
  --heading-color: #0B2B16;
  --secondary-color: #4A2E1B; /* Warm Earth Tone */
  --accent-color: #DDAA00; /* Gold */
  --terracotta: #A64B2A; /* Clay / Terracotta */
  --bg-light: #FBF9F6; /* Cream Background */
  --bg-dark: #121212;
  --text-main: #1A1A1A;
  --text-muted: #555555;
  /* --white is literal white: it letters the green/terracotta fills, which keep their
     colour in dark mode, so it must NOT invert. Card backgrounds use --surface. */
  --white: #FFFFFF;
  --surface: #FFFFFF;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Layout */
  --max-width: 1300px;
  --spacing-sm: 1.5rem;
  --spacing-md: 3rem;
  --spacing-lg: 5rem;
  --spacing-xl: 8rem;
  
  /* Shadows & Glass */
  --shadow-sm: 0 4px 15px rgba(0,0,0,0.03);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
  --glass-bg: rgba(251, 249, 246, 0.85); /* Cream Glass */
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.8;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--spacing-sm);
  color: var(--heading-color);
  letter-spacing: -0.5px;
}
a { text-decoration: none; color: var(--heading-color); transition: all var(--transition-fast); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--spacing-sm); }

/* ==========================================================================
   Cultural Patterns & Dividers
   ========================================================================== */
.pattern-border {
  height: 15px;
  width: 100%;
  background-image: repeating-linear-gradient(45deg, var(--terracotta) 0, var(--terracotta) 10px, var(--accent-color) 10px, var(--accent-color) 20px, var(--primary-color) 20px, var(--primary-color) 30px);
  opacity: 0.9;
}
.pattern-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: radial-gradient(var(--terracotta) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.05;
  pointer-events: none;
}
.section-divider {
  text-align: center;
  margin: 3rem 0;
}
.section-divider::before {
  content: '';
  display: inline-block;
  width: 150px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.section { padding: var(--spacing-xl) 0; position: relative; }
.section-bg-dark { background-color: var(--primary-color); color: var(--white); }
.section-bg-dark h2, .section-bg-dark h3, .section-bg-dark p { color: var(--white); }
.section-bg-light { background-color: var(--bg-light); }
.section-bg-terracotta { background-color: var(--terracotta); color: var(--white); }
.section-bg-terracotta h2, .section-bg-terracotta h3, .section-bg-terracotta p { color: var(--white); }

.section-title {
  text-align: center;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin-bottom: var(--spacing-lg);
  font-weight: 800;
  position: relative;
  width: 100%;
  display: block;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
  border-radius: 4px;
}
.text-center { text-align: center; }

/* Available to screen readers, invisible on screen. */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Enhanced Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.1rem 2.8rem;
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  transition: transform var(--transition-normal);
  transform: scaleX(0);
  transform-origin: left;
}
.btn:hover::before { transform: scaleX(1); }

.btn-primary { background-color: var(--accent-color); color: var(--primary-color); }
.btn-primary::before { background-color: #B28900; }
.btn-primary:hover { color: var(--white); transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }

.btn-secondary { background-color: var(--primary-color); color: var(--white); }
.btn-secondary::before { background-color: var(--accent-color); }
.btn-secondary:hover { color: var(--primary-color); transform: translateY(-4px); box-shadow: var(--shadow-md); }

.btn-terracotta { background-color: var(--terracotta); color: var(--white); }
.btn-terracotta::before { background-color: #8A3E22; }
.btn-terracotta:hover { color: var(--white); transform: translateY(-4px); box-shadow: var(--shadow-md); }

.btn-outline { background-color: transparent; border-color: var(--white); color: var(--white); }
.btn-outline::before { background-color: var(--accent-color); }
.btn-outline:hover { color: var(--primary-color); border-color: transparent; transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* ==========================================================================
   Header & Dropdown Navigation
   ========================================================================== */
header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  background-color: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: all var(--transition-normal);
}
header.scrolled {
  padding: 0;
  box-shadow: var(--shadow-md);
  background-color: rgba(251, 249, 246, 0.98);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem var(--spacing-sm);
  max-width: var(--max-width);
  margin: 0 auto;
}
.logo a { display: flex; align-items: center; position: relative; }
.nav-logo {
  height: 85px;
  width: auto;
  max-width: 300px;
  object-fit: contain;
  margin: -15px 0;
  transition: all var(--transition-normal);
  position: relative;
  z-index: 100;
}
header.scrolled .nav-logo { height: 60px; margin: 0; }

.nav-links { display: flex; gap: 2rem; align-items: center; }
/* Some pages wrap each link in .nav-item (with dropdowns); others put <a> straight
   into .nav-links. Both must look and behave the same. */
.nav-item, .nav-links > a { position: relative; }
.nav-item > a, .nav-links > a {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-heading);
}
.nav-item > a::after, .nav-links > a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; width: 0; height: 2px;
  background-color: var(--terracotta);
  transition: width var(--transition-fast);
}
.nav-item:hover > a::after, .nav-item > a.active::after,
.nav-links > a:hover::after, .nav-links > a.active::after { width: 100%; color: var(--terracotta); }
.nav-item:hover > a, .nav-links > a:hover { color: var(--terracotta); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: -20px;
  background: var(--surface);
  min-width: 260px;
  box-shadow: var(--shadow-lg);
  border-radius: 12px;
  padding: 1rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all var(--transition-normal);
  border-top: 4px solid var(--terracotta);
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block;
  padding: 0.8rem 1.5rem;
  color: var(--text-main);
  font-weight: 500;
  transition: background var(--transition-fast);
  font-size: 0.95rem;
}
.dropdown a:hover {
  background: var(--bg-light);
  color: var(--terracotta);
  padding-left: 2rem;
}
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--primary-color);
  /* A 44px box is the minimum comfortable touch target. */
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Focus & Skip Link (keyboard accessibility)
   ========================================================================== */
/* Visible focus ring for keyboard users only — mouse clicks stay unchanged. */
:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 2px;
}
.section-bg-dark :focus-visible,
.newsletter-section :focus-visible,
footer :focus-visible { outline-color: var(--accent-color); }

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100000;
  background: var(--accent-color);
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 0.9rem 1.5rem;
  border-radius: 0 0 8px 8px;
  transition: top var(--transition-fast);
}
.skip-link:focus { top: 0; }

/* ==========================================================================
   Advanced Animations
   ========================================================================== */
.fade-up { opacity: 0; transform: translateY(40px); transition: all var(--transition-slow); }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-in { opacity: 0; transition: opacity var(--transition-slow); }
.fade-in.visible { opacity: 1; }
.slide-left { opacity: 0; transform: translateX(-40px); transition: all var(--transition-slow); }
.slide-left.visible { opacity: 1; transform: translateX(0); }
.slide-right { opacity: 0; transform: translateX(40px); transition: all var(--transition-slow); }
.slide-right.visible { opacity: 1; transform: translateX(0); }
.scale-in { opacity: 0; transform: scale(0.95); transition: all var(--transition-slow); }
.scale-in.visible { opacity: 1; transform: scale(1); }
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Micro-animations for Cards */
.info-card, .news-card, .feature-card, .download-card, .gezani-day-box {
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.info-card:hover, .news-card:hover, .feature-card:hover, .download-card:hover, .gezani-day-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* Moving Hero Carousel Animations (Ken Burns) */
@keyframes kenburns {
    0% { transform: scale(1); opacity: 0; }
    5% { transform: scale(1.02); opacity: 1; }
    28% { transform: scale(1.1); opacity: 1; }
    33% { transform: scale(1.12); opacity: 0; }
    100% { transform: scale(1.12); opacity: 0; }
}
.hero-slider {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2;
    overflow: hidden;
    background-color: var(--bg-dark);
}
.hero-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: kenburns 18s infinite linear;
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 6s; }
.hero-slide:nth-child(3) { animation-delay: 12s; }
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(11, 43, 22, 0.95) 0%, rgba(11, 43, 22, 0.7) 50%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}

@keyframes heroTextReveal {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}
.hero-animate { opacity: 0; animation: heroTextReveal 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; position: relative; z-index: 2; }
.hero-delay-1 { animation-delay: 0.3s; }
.hero-delay-2 { animation-delay: 0.6s; }
.hero-delay-3 { animation-delay: 0.9s; }
.hero-content h1 { color: var(--white); text-shadow: 0 4px 20px rgba(0,0,0,0.9); position: relative; z-index: 2; }
.hero-content h2 { color: var(--accent-color); text-shadow: 0 4px 20px rgba(0,0,0,0.9); position: relative; z-index: 2; }
/* Sits on the dark hero photo in both themes, so it must not follow --bg-light
   (which flips to near-black in dark mode and made this paragraph disappear). */
.hero-content p { color: var(--white); text-shadow: 0 4px 20px rgba(0,0,0,0.9); position: relative; z-index: 2; }

/* Scroll to top button */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--terracotta);
  color: var(--white);
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 999;
  box-shadow: var(--shadow-md);
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: translateY(-5px); background: var(--primary-color); }

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background: #25D366;
  color: var(--white);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: all var(--transition-normal);
  text-decoration: none;
}
.floating-whatsapp i { font-size: 1.5rem; }
.floating-whatsapp:hover { transform: scale(1.05); color: var(--white); background: #1EBE5D; }

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: var(--spacing-xl) 0 2rem;
  position: relative;
}
footer .pattern-border { position: absolute; top: 0; left: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 4rem;
  margin-bottom: 4rem;
}
.footer-col h3 {
  color: var(--accent-color);
  margin-bottom: 2rem;
  font-size: 1.4rem;
  position: relative;
  display: inline-block;
  letter-spacing: 0;
}
.footer-col p { color: #d1d1d1; margin-bottom: 1.5rem; font-size: 0.95rem; }
.footer-links li { margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.footer-links a, .footer-links { color: #d1d1d1; transition: color 0.3s; font-size: 0.95rem; }
.footer-links a:hover { color: var(--terracotta); padding-left: 5px; }
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #999;
  font-size: 0.9rem;
}
.footer-bottom a { color: var(--accent-color); font-weight: 700; }
.footer-bottom a:hover { text-decoration: underline; }

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1200px) {
  .section { padding: 6rem 0; }
}

@media (max-width: 992px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; width: 100%;
    background-color: var(--surface);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    gap: 0;
    border-top: 4px solid var(--terracotta);
  }
  .nav-links.show { display: flex; }
  .mobile-menu-btn { display: block; }
  .nav-item, .nav-links > a { width: 100%; border-bottom: 1px solid #eee; }
  .nav-item > a, .nav-links > a { padding: 1.5rem 0; justify-content: space-between; }
  /* The underline sweep is a pointer affordance; it just clutters the stacked menu. */
  .nav-links > a::after { display: none; }
  .nav-links > a:last-of-type { border-bottom: none; }
  .dropdown {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--terracotta);
    padding: 0;
    margin-bottom: 1rem;
    display: none;
    opacity: 1; visibility: visible; transform: none;
  }
  .dropdown.show { display: block; }
}

@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .hero { min-height: 100vh; padding: 7rem 1rem 3rem; }
  .hero h1 { font-size: 2.8rem; }
  .nav-logo { height: 60px; margin: -5px 0; }
  .footer-grid { gap: 2.5rem; }
  .floating-whatsapp { bottom: 20px; left: 20px; padding: 0.6rem 1.2rem; font-size: 0.9rem; }
  .floating-whatsapp span { display: none; } /* Hide text, show only icon on small phones */
}

@media (max-width: 576px) {
  .hero h1 { font-size: 2.3rem; }
  .section-title { font-size: 2rem; }
}

@media (max-width: 576px) {
  /* Input + button side-by-side leaves ~120px for the email box on a phone. */
  .newsletter-form { flex-direction: column; gap: 0.75rem; }
  .newsletter-form button { width: 100%; }
  .newsletter-section { padding: 4rem 1rem; }
  .contact-form { padding: 1.75rem 1.25rem; }
  .cta-box { padding: 2.5rem 1.25rem; }
  .footer-grid { gap: 2rem; }
}

@media (max-width: 420px) {
  .hero-btns { flex-direction: column; width: 100%; }
  .btn { width: 100%; padding: 1rem; }
}

/* ==========================================================================
   Mobile / touch refinements
   ========================================================================== */
/* The header is fixed, so an #anchor would otherwise land underneath it. */
:target { scroll-margin-top: 120px; }
@media (max-width: 992px) { :target { scroll-margin-top: 100px; } }

/* Keep the floating buttons clear of notches and home indicators. */
.floating-whatsapp {
  bottom: max(30px, env(safe-area-inset-bottom, 0px));
  left: max(30px, env(safe-area-inset-left, 0px));
}
.scroll-top {
  bottom: max(30px, env(safe-area-inset-bottom, 0px));
  right: max(30px, env(safe-area-inset-right, 0px));
}

/* Grey flash on tap looks broken on a branded site; use our own :active state. */
a, button, .btn, .gallery-item, .filter-btn { -webkit-tap-highlight-color: transparent; }
.btn:active { transform: translateY(0) scale(0.98); }

/* iOS bumps font sizes on rotate unless told otherwise. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* Long words (URLs, emails) must not push the layout wide on narrow screens. */
p, li, h1, h2, h3, h4, td { overflow-wrap: break-word; }

/* Respect users who ask for less motion. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-slide { opacity: 1; }
}

/* ==========================================================================
   Premium Interactive Features (Dark Mode, Preloader, Newsletter)
   ========================================================================== */

/* Dark Mode Overrides */
body.dark-mode {
  --bg-light: #121212;
  --text-main: #E0E0E0;
  --surface: #1A1A1A; /* card/panel backgrounds go dark; --white stays white */
  --heading-color: #EAF2EA; /* brand green would be near-invisible on these darks */
  --glass-bg: rgba(18, 18, 18, 0.95);
  --shadow-sm: 0 4px 15px rgba(255,255,255,0.02);
  --shadow-md: 0 10px 30px rgba(255,255,255,0.05);
  --shadow-lg: 0 20px 40px rgba(255,255,255,0.08);
}
/* header.scrolled hard-codes the cream background, so in dark mode the bar flipped
   to light on scroll while the nav text stayed light grey — unreadable. */
body.dark-mode header.scrolled { background-color: rgba(18, 18, 18, 0.98); }
/* The burger inherits --primary-color (deep green), which all but disappears
   against the dark header. */
body.dark-mode .mobile-menu-btn { color: var(--accent-color); }
body.dark-mode .nav-item > a, body.dark-mode .nav-links > a { color: #E0E0E0; }
body.dark-mode .nav-item > a.active, body.dark-mode .nav-links > a.active { color: var(--terracotta); }
body.dark-mode .dropdown { background: #1A1A1A; border-top-color: var(--accent-color); }
body.dark-mode .dropdown a { color: #E0E0E0; }
body.dark-mode .dropdown a:hover { background: #2A2A2A; color: var(--accent-color); }
body.dark-mode input.form-control, body.dark-mode textarea.form-control, body.dark-mode select.form-control { background: #2A2A2A; color: #E0E0E0; border-color: #333; }
body.dark-mode .contact-card, body.dark-mode .contact-form, body.dark-mode .info-card, body.dark-mode .news-card, body.dark-mode .feature-card { background: #1A1A1A; }

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.3rem;
    cursor: pointer;
    margin-left: 1rem;
    transition: color var(--transition-fast), transform var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Was a 16x21 hit area — below the 44px comfortable touch minimum. */
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
}
body.dark-mode .theme-toggle { color: var(--accent-color); }
.theme-toggle:hover { color: var(--accent-color); transform: scale(1.1); }
@media (max-width: 992px) {
    .theme-toggle { margin: 1rem auto; }
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-light);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
/* pointer-events: none so a mid-fade overlay can never swallow a tap */
#preloader.hide { opacity: 0; visibility: hidden; pointer-events: none; }

/* ==========================================================================
   Form status messages (injected by main.js)
   ========================================================================== */
.form-status {
  margin-top: 1rem;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
}
.form-status:empty { display: none; }
.form-status.is-pending { color: var(--text-muted); }
.form-status.is-success,
.form-status.is-error {
  padding: 0.9rem 1.1rem;
  border-radius: 8px;
  border-left: 4px solid;
}
.form-status.is-success { color: #14532d; background: #dcfce7; border-color: #16a34a; }
.form-status.is-error   { color: #7f1d1d; background: #fee2e2; border-color: #dc2626; }
/* The newsletter sits on the dark green band; tint for contrast there. */
.newsletter-section .form-status.is-pending { color: rgba(255,255,255,0.85); }
.newsletter-section .form-status { text-align: center; }
.spinner {
    width: 60px; height: 60px;
    border: 4px solid var(--accent-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Newsletter Banner */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 5rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(var(--accent-color) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
    pointer-events: none;
}
.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.newsletter-content h2 { color: var(--accent-color); font-size: 2rem; margin-bottom: 1rem; font-family: var(--font-heading); }
.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 2rem;
}
.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: none;
    outline: none;
    font-size: 1rem;
    font-family: var(--font-body);
}
.newsletter-form button {
    padding: 1rem 2rem;
    border-radius: 50px;
    border: none;
    background: var(--accent-color);
    color: var(--primary-color);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
    font-family: var(--font-heading);
    text-transform: uppercase;
}
.newsletter-form button:hover { transform: scale(1.05); }

/* ==========================================================================
   Ultra-Modern Aesthetics (Scroll Progress & 3D Tilt)
   ========================================================================== */

/* Scroll Progress Bar */
#scrollProgressBar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--accent-color);
    z-index: 100000;
    transition: width 0.1s ease-out;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 10px var(--accent-color);
}

/* 3D Tilt Base Configuration */
.tilt-card {
    transform-style: preserve-3d;
    transform: perspective(1000px);
}
.tilt-card > * {
    transform: translateZ(30px);
}
@media (max-width: 500px) {
    .newsletter-form { flex-direction: column; }
    .newsletter-form button { width: 100%; }
}
