/* ===================================================================
   TDCHS SHARED STYLES
   Shared across all pages: variables, reset, header, footer, utilities
   =================================================================== */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  /* Light mode (default) */
  --color-primary: 	#8B008B;
  --color-primary-light: #DDA0DD; 
  --color-accent: #FF8C00;
  --color-accent-light: #FFFFE0;
  --color-bg: #FAFAF7;
  --color-bg-alt: #F0EDE6;
  --color-text: #1A1A1A;
  --color-text-light: #5A5A5A;
  --color-text-inverse: #FAFAF7;
  --color-white: #FFFFFF;
  --color-border: #E0DDD5;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 10rem;
  
  /* Color scheme indicator */
  color-scheme: light dark;
}

/* ===== DARK MODE ===== */
@media (prefers-color-scheme: dark) {
  :root {
    --color-primary: #14654D;
    --color-primary-light: #1A8B68;
    --color-accent: #E8C878;
    --color-accent-light: #F5DFA0;
    --color-bg: #0F1410;
    --color-bg-alt: #1A1F1C;
    --color-text: #F5F5F3;
    --color-text-light: #A0A0A0;
    --color-text-inverse: #0F1410;
    --color-white: #1A1F1C;
    --color-border: #2A302C;
  }
  
  /* Dark mode specific overrides */
  body {
    background: var(--color-bg);
  }
  
  /* Header adjustments */
  .header {
    background: rgba(15, 20, 16, 0.9);
  }
  
  .header.scrolled {
    background: rgba(15, 20, 16, 0.97);
  }
  
  .header.header-dark {
    background: rgba(15, 20, 16, 0.95);
  }
  
  /* Logo adjustments */
  .logo-icon {
    background: var(--color-accent);
    color: #0F1410;
  }
  
  /* Cards in dark mode */
  .feature-card,
  .prog-card,
  .news-card,
  .contact-info-card,
  .leader-card,
  .mv-card {
    background: #1A1F1C;
    border-color: #2A302C;
  }
  
  /* Form inputs */
  .form-input,
  .form-select,
  .form-textarea,
  .newsletter-input {
    background: #1A1F1C;
    border-color: #2A302C;
    color: var(--color-text);
  }
  
  .form-input::placeholder,
  .form-textarea::placeholder,
  .newsletter-input::placeholder {
    color: var(--color-text-light);
  }
  
  .form-input:focus,
  .form-select:focus,
  .form-textarea:focus {
    background: #222822;
    border-color: var(--color-white);
  }
  
  /* Button adjustments */
  .btn-outline-dark {
    color: var(--color-text);
    border-color: #3A403C;
  }
  
  .btn-outline-dark:hover {
    border-color: var(--color-white);
    background: rgba(20, 101, 77, 0.15);
  }
  
  /* Hero overlay adjustments */
  .hero-bg::after,
  .page-hero-bg::after {
    background: linear-gradient(
      180deg,
      rgba(15, 20, 16, 0.8) 0%,
      rgba(15, 20, 16, 0.5) 40%,
      rgba(15, 20, 16, 0.9) 100%
    );
  }
  
  /* Footer */
  .footer {
    background: #0A0D0B;
  }
  
  /* Filter/Tab buttons */
  .filter-btn,
  .news-filter-btn {
    border-color: #3A403C;
    color: var(--color-text-light);
  }
  
  .filter-btn:hover,
  .news-filter-btn:hover {
    border-color: var(--color-white);
    color: var(--color-white);
  }
  
  /* Skeleton loading */
  .skeleton {
    background: linear-gradient(
      90deg,
      #1A1F1C 25%,
      #2A302C 50%,
      #1A1F1C 75%
    );
  }
  
  /* Glass card */
  .glass-card {
    background: rgba(26, 31, 28, 0.7);
    border-color: rgba(42, 48, 44, 0.5);
  }
  
  /* Images: slight desaturation */
  img {
    filter: brightness(0.92) saturate(0.95);
  }
  
  /* Hero/featured images: keep vibrant */
  .hero-bg img,
  .page-hero-bg img,
  .featured-img img {
    filter: brightness(0.85) saturate(1);
  }
}

/* ===== MANUAL DARK MODE TOGGLE ===== */
/* Use data-theme="dark" on <html> for manual toggle */
[data-theme="dark"] {
  --color-primary: #14654D;
  --color-primary-light: #1A8B68;
  --color-accent: #E8C878;
  --color-accent-light: #F5DFA0;
  --color-bg: #0F1410;
  --color-bg-alt: #1A1F1C;
  --color-text: #F5F5F3;
  --color-text-light: #A0A0A0;
  --color-text-inverse: #0F1410;
  --color-white: #1A1F1C;
  --color-border: #2A302C;
}

/* Theme toggle button */
.theme-toggle {
  position: fixed;
  bottom: 5rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: 50%;
  cursor: pointer;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-out-expo);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.theme-toggle:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.theme-toggle svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-text);
  fill: none;
  stroke-width: 2;
  transition: transform 0.4s var(--ease-out-expo);
}

.theme-toggle:hover svg {
  transform: rotate(15deg);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Light mode: show moon icon */
.theme-toggle .icon-sun {
  opacity: 0;
  transform: scale(0.5) rotate(-90deg);
}

.theme-toggle .icon-moon {
  opacity: 1;
  transform: scale(1) rotate(0);
}

/* Dark mode: show sun icon */
@media (prefers-color-scheme: dark) {
  .theme-toggle .icon-sun {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
  
  .theme-toggle .icon-moon {
    opacity: 0;
    transform: scale(0.5) rotate(90deg);
  }
}

[data-theme="dark"] .theme-toggle .icon-sun {
  opacity: 1;
  transform: scale(1) rotate(0);
}

[data-theme="dark"] .theme-toggle .icon-moon {
  opacity: 0;
  transform: scale(0.5) rotate(90deg);
}

[data-theme="light"] .theme-toggle .icon-sun {
  opacity: 0;
  transform: scale(0.5) rotate(-90deg);
}

[data-theme="light"] .theme-toggle .icon-moon {
  opacity: 1;
  transform: scale(1) rotate(0);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

/* ===== UTILITY CLASSES ===== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ===== REVEAL LEFT / RIGHT ===== */
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ===== REVEAL SCALE ===== */
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease, background 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn-primary:hover {
  box-shadow: 0 12px 35px rgba(212, 168, 67, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  border-color: var(--color-white);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 35px rgba(255,255,255,0.08);
}

.btn-outline-dark {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-border);
}

.btn-outline-dark:hover {
  border-color: var(--color-white);
  background: rgba(11, 61, 46, 0.04);
}

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

.btn-dark:hover {
  background: var(--color-primary-light);
  box-shadow: 0 12px 35px rgba(11, 61, 46, 0.25);
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease-out-expo);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-sm {
  padding: 0.7rem 1.5rem;
  font-size: 0.85rem;
}

/* ===== SECTION UTILITIES ===== */
.section {
  padding: var(--space-2xl) 0;
}

.section-lg {
  padding: var(--space-3xl) 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.section-label::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--color-accent);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.15;
  max-width: 680px;
  text-wrap: balance;
  margin-bottom: var(--space-md);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--color-text-light);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-sm) 0;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.header.scrolled {
  background: rgba(11, 61, 46, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.6rem 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

/* For inner pages, header starts dark */
.header.header-dark {
  background: var(--color-primary);
}

.header.header-dark.scrolled {
  background: rgba(11, 61, 46, 0.97);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--color-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--color-white);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-text-main {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--color-white);
  letter-spacing: 0.04em;
}

.logo-text-sub {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-desktop {
  display: none;
}

.nav-desktop a {
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: color 0.3s ease, background 0.3s ease;
  letter-spacing: 0.02em;
}

.nav-desktop a:hover {
  color: var(--color-white);
  background: rgba(255,255,255,0.08);
}

.nav-desktop a.active {
  color: var(--color-accent);
  background: rgba(255, 140, 0, 0.16);
  font-weight: 700;
}

.nav-cta {
  display: none;
}

.nav-cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.6rem;
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 50px;
  letter-spacing: 0.03em;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
}

.nav-cta a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 168, 67, 0.35);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--color-white);
  border-radius: 4px;
  transition: transform 0.4s var(--ease-out-expo), opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--color-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-white);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out-expo), color 0.3s ease;
}

.mobile-nav.open a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav.open a:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.open a:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav.open a:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav.open a:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav.open a:nth-child(5) { transition-delay: 0.3s; }
.mobile-nav.open a:nth-child(6) { transition-delay: 0.35s; }
.mobile-nav.open a:nth-child(7) { transition-delay: 0.4s; }

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

.mobile-nav a.active {
  color: var(--color-accent);
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  position: relative;
  padding: 10rem 0 5rem;
  background: var(--color-primary);
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 61, 46, 0.85) 0%,
    rgba(11, 61, 46, 0.7) 50%,
    rgba(11, 61, 46, 0.95) 100%
  );
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-md);
}

.page-hero .breadcrumb a {
  color: rgba(255,255,255,0.5);
  transition: color 0.3s ease;
}

.page-hero .breadcrumb a:hover {
  color: var(--color-accent);
}

.page-hero .breadcrumb-separator {
  color: rgba(255,255,255,0.3);
}

.page-hero .breadcrumb-current {
  color: var(--color-accent);
  font-weight: 600;
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.1;
  max-width: 700px;
  text-wrap: balance;
  margin-bottom: var(--space-sm);
}

.page-hero-title span {
  color: var(--color-accent);
}

.page-hero-desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  line-height: 1.65;
}

/* ===== NEWSLETTER ===== */
.newsletter-section {
  background: var(--color-bg-alt);
  padding: var(--space-2xl) 0;
}

.newsletter-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

.newsletter-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 500px;
}

.newsletter-input {
  flex: 1;
  padding: 1rem 1.4rem;
  border: 2px solid var(--color-border);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-white);
  color: var(--color-text);
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.newsletter-input::placeholder {
  color: var(--color-text-light);
}

.newsletter-input:focus {
  border-color: var(--color-white);
  box-shadow: 0 0 0 4px rgba(11, 61, 46, 0.1);
}

.newsletter-btn {
  padding: 1rem 2rem;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s var(--ease-out-expo);
}

.newsletter-btn:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.7);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.footer-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--color-accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1rem;
  color: var(--color-white);
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-white);
}

.footer-about {
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: var(--space-md);
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

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

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.3s ease, padding-left 0.3s var(--ease-out-expo);
}

.footer-links a:hover {
  color: var(--color-accent);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin-bottom: var(--space-md);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s var(--ease-out-expo);
}

.footer-social-link:hover {
  background: var(--color-accent);
  transform: translateY(-3px);
}

.footer-social-link svg {
  width: 18px;
  height: 18px;
  fill: rgba(255,255,255,0.7);
  transition: fill 0.3s ease;
}

.footer-social-link:hover svg {
  fill: var(--color-primary);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s var(--ease-out-expo), background 0.3s ease;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-accent);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-white);
  fill: none;
  stroke-width: 2.5;
  transition: stroke 0.3s ease;
}

.back-to-top:hover svg {
  stroke: var(--color-primary);
}

/* ===== CUSTOM CURSOR ===== */
@media (hover: hover) and (pointer: fine) {
  .cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease;
    mix-blend-mode: difference;
  }
}

/* ===== SKIP LINK (ACCESSIBILITY) ===== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 12px 12px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: top 0.3s var(--ease-out-expo);
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* ===== ENHANCED FOCUS STATES ===== */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

/* Remove outline for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
  
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
  }
}

/* ===== TEXT UTILITIES ===== */
.text-gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== ADVANCED LOADING STATES ===== */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-bg-alt) 25%,
    var(--color-border) 50%,
    var(--color-bg-alt) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 8px;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text {
  height: 1em;
  margin-bottom: 0.5em;
}

.skeleton-text:last-child {
  width: 60%;
}

.skeleton-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.skeleton-image {
  aspect-ratio: 16 / 10;
}

/* ===== SCROLL SNAP UTILITIES ===== */
.scroll-snap-x {
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.scroll-snap-x::-webkit-scrollbar {
  display: none;
}

.scroll-snap-item {
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* ===== TEXT REVEAL ANIMATION ===== */
.text-reveal {
  overflow: hidden;
}

.text-reveal span {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.8s var(--ease-out-expo), opacity 0.6s ease;
}

.text-reveal.visible span {
  transform: translateY(0);
  opacity: 1;
}

/* Staggered text reveal */
.text-reveal.visible span:nth-child(1) { transition-delay: 0s; }
.text-reveal.visible span:nth-child(2) { transition-delay: 0.05s; }
.text-reveal.visible span:nth-child(3) { transition-delay: 0.1s; }
.text-reveal.visible span:nth-child(4) { transition-delay: 0.15s; }
.text-reveal.visible span:nth-child(5) { transition-delay: 0.2s; }

/* ===== MAGNETIC HOVER EFFECT ===== */
.magnetic {
  display: inline-block;
  transition: transform 0.3s var(--ease-out-expo);
}

/* ===== GLASS CARD ===== */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ===== GRADIENT BORDER ===== */
.gradient-border {
  position: relative;
  background: var(--color-white);
  border-radius: 24px;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  border-radius: inherit;
  z-index: -1;
}

/* ===== FLOATING ANIMATION ===== */
.float {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* ===== PULSE RING ===== */
.pulse-ring {
  position: relative;
}

.pulse-ring::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px solid var(--color-accent);
  border-radius: inherit;
  animation: pulse-ring 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ===== COOKIE CONSENT ===== */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: var(--color-text);
  padding: var(--space-md);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease-out-expo);
}

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

.cookie-consent-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
}

.cookie-consent p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  text-align: center;
  line-height: 1.55;
}

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

.cookie-consent-buttons {
  display: flex;
  gap: 0.5rem;
}

.cookie-btn {
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.3s var(--ease-out-expo);
}

.cookie-btn-accept {
  background: var(--color-accent);
  color: var(--color-white);
}

.cookie-btn-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 168, 67, 0.3);
}

.cookie-btn-decline {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 2px solid rgba(255,255,255,0.2);
}

.cookie-btn-decline:hover {
  border-color: rgba(255,255,255,0.4);
  color: white;
}

/* ===== BADGE COMPONENTS ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-primary {
  background: rgba(11, 61, 46, 0.1);
  color: var(--color-white);
}

.badge-accent {
  background: rgba(212, 168, 67, 0.15);
  color: var(--color-accent);
}

.badge-success {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

.badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

.badge-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

/* ===== TOOLTIP ===== */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  padding: 0.5rem 0.8rem;
  background: var(--color-text);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-out-expo);
  z-index: 100;
}

[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 98;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s var(--ease-out-expo);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float:active {
  transform: translateY(-2px) scale(1.02);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: white;
}

/* Pulse animation */
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.3);
  animation: whatsapp-pulse 2s ease-in-out infinite;
  z-index: -1;
}

@keyframes whatsapp-pulse {
  0%, 100% { 
    transform: scale(1); 
    opacity: 0.6; 
  }
  50% { 
    transform: scale(1.15); 
    opacity: 0; 
  }
}

/* Tooltip on hover */
.whatsapp-float::after {
  content: 'Chat with us';
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-8px);
  padding: 0.5rem 0.9rem;
  background: var(--color-text);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-out-expo);
}

.whatsapp-float:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 1.5rem;
    left: 1.5rem;
  }
  
  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
  
  .whatsapp-float::after {
    display: none;
  }
}

/* ===== FORM SECURITY STYLES ===== */
/* Honeypot field - hidden from users */
.form-hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

/* Math captcha */
.captcha-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.captcha-question {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-bg-alt);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  white-space: nowrap;
}

.captcha-input {
  width: 80px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.captcha-hint {
  font-size: 0.75rem;
  color: var(--color-text-light);
  width: 100%;
  margin-top: 0.25rem;
}

/* Form error states */
.form-error {
  font-size: 0.8rem;
  color: #dc2626;
  margin-top: 0.4rem;
  display: none;
  align-items: center;
  gap: 0.3rem;
}

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

.form-error svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.form-input.error,
.form-select.error,
.form-textarea.error,
.captcha-input.error {
  border-color: #dc2626;
  background: rgba(220, 38, 38, 0.03);
}

.form-input.error:focus,
.captcha-input.error:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Rate limit warning */
.rate-limit-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  padding: var(--space-sm);
  margin-bottom: var(--space-md);
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.rate-limit-warning.visible {
  display: flex;
}

.rate-limit-warning svg {
  width: 20px;
  height: 20px;
  stroke: #d97706;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.rate-limit-warning p {
  font-size: 0.85rem;
  color: #92400e;
  line-height: 1.5;
}

/* Submit button loading state */
.btn-loading {
  position: relative;
  pointer-events: none;
}

.btn-loading .btn-text {
  opacity: 0;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: btn-spin 0.8s linear infinite;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
  :root {
    --color-text-light: #333333;
    --color-border: #1A1A1A;
  }
  
  .btn {
    border: 2px solid currentColor;
  }
}

/* ===== RESPONSIVE ===== */
@media (min-width: 640px) {
  .newsletter-form {
    flex-direction: row;
  }

  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .cookie-consent-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  
  .cookie-consent p {
    text-align: left;
  }
}

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

  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }

  .nav-cta {
    display: block;
  }
}
 /* ===== CTA SECTION ===== */
    .cta-section {
      background:
        radial-gradient(circle at 14% 12%, rgba(255, 140, 0, 0.2), transparent 40%),
        radial-gradient(circle at 85% 90%, rgba(139, 0, 139, 0.16), transparent 48%),
        linear-gradient(135deg, rgba(139, 0, 139, 0.12) 0%, rgba(221, 160, 221, 0.28) 42%, rgba(255, 255, 255, 0.95) 100%);
      padding: var(--space-3xl) 0;
    }

    .cta-box {
      background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.86) 0%,
        rgba(246, 231, 251, 0.76) 48%,
        rgba(255, 245, 229, 0.75) 100%
      );
      border: 1px solid rgba(255, 255, 255, 0.86);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
      border-radius: 32px;
      padding: var(--space-2xl) var(--space-lg);
      text-align: center;
      position: relative;
      overflow: hidden;
    }

    .cta-box::before {
      content: '';
      position: absolute;
      top: -100px;
      left: -100px;
      width: 300px;
      height: 300px;
      border-radius: 50%;
      background: rgba(212, 168, 67, 0.14);
    }

    .cta-box::after {
      content: '';
      position: absolute;
      bottom: -80px;
      right: -80px;
      width: 250px;
      height: 250px;
      border-radius: 50%;
      background: rgba(11, 61, 46, 0.08);
    }

    .cta-content {
      position: relative;
      z-index: 1;
    }

    .cta-title {
      font-family: var(--font-heading);
      font-size: clamp(1.8rem, 4vw, 3rem);
      font-weight: 800;
      color: var(--color-text);
      margin-bottom: var(--space-md);
      text-wrap: balance;
    }

    .cta-title span {
      color: var(--color-accent);
    }

    .cta-desc {
      font-size: 1.05rem;
      color: var(--color-text-light);
      max-width: 520px;
      margin: 0 auto var(--space-xl);
      line-height: 1.65;
    }

    .cta-actions {
      display: flex;
      flex-wrap: wrap;
      gap: var(--space-sm);
      justify-content: center;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 1rem 2rem;
      font-family: var(--font-body);
      font-weight: 700;
      font-size: 0.95rem;
      border-radius: 50px;
      border: none;
      cursor: pointer;
      letter-spacing: 0.02em;
      transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease, background 0.3s ease;
    }

    .btn:hover {
      transform: translateY(-2px);
    }

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

    .btn-primary:hover {
      box-shadow: 0 12px 35px rgba(212, 168, 67, 0.4);
    }

    .btn-outline {
      background: transparent;
      color: var(--color-white);
      border: 2px solid rgba(255, 255, 255, 0.3);
    }

    .btn-outline:hover {
      border-color: var(--color-white);
      background: rgba(255, 255, 255, 0.06);
      box-shadow: 0 12px 35px rgba(255,255,255,0.08);
    }

    .btn-arrow {
      display: inline-block;
      transition: transform 0.3s var(--ease-out-expo);
    }

    .btn:hover .btn-arrow {
      transform: translateX(4px);
    }
