/* =========================
   ACA NET — Modern UI v2.0
   Professional • Fluid • SEO-Ready
========================= */

/* ========== FONTS ========== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=DM+Sans:wght@400;500;700&display=swap');

/* ========== CSS RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; text-rendering: optimizeSpeed; }
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }

/* ========== CUSTOM PROPERTIES ========== */
:root {
  /* Brand Colors */
  --brand-950: #0d1a12;
  --brand-900: #1c3423;
  --brand-800: #254430;
  --brand-700: #2f5a3c;
  --brand-600: #3d7a50;
  --brand-500: #67a97b;
  --brand-400: #8bc49d;
  --brand-300: #b0d9be;
  --brand-200: #d5ecdd;
  --brand-100: #eaf4ee;
  --brand-50: #f5faf7;

  /* Neutrals */
  --gray-900: #0f172a;
  --gray-800: #1e293b;
  --gray-700: #334155;
  --gray-600: #475569;
  --gray-500: #64748b;
  --gray-400: #94a3b8;
  --gray-300: #cbd5e1;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --gray-50: #f8fafc;

  /* Semantic */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-elevated: rgba(255, 255, 255, 0.8);
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-muted: var(--gray-500);
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.12);

  /* Effects */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.1);
  --shadow-xl: 0 24px 56px rgba(15, 23, 42, 0.14);
  --shadow-glow: 0 0 40px rgba(103, 169, 123, 0.2);
  --shadow-brand: 0 8px 24px rgba(28, 52, 35, 0.25);

  /* Layout */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --max-width: 1200px;
  --header-height: 80px;

  /* Typography */
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
}

/* ========== BASE STYLES ========== */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg);
}

/* Gradient background */
.page-wrapper {
  background:
    radial-gradient(ellipse 1200px 600px at 10% 0%, rgba(103, 169, 123, 0.12), transparent 50%),
    radial-gradient(ellipse 800px 400px at 90% 5%, rgba(28, 52, 35, 0.08), transparent 45%),
    radial-gradient(ellipse 600px 300px at 50% 100%, rgba(103, 169, 123, 0.06), transparent 50%),
    var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover { text-decoration: none; }

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); }

.lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========== LAYOUT ========== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

.section {
  padding: clamp(48px, 8vw, 80px) 0;
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--surface-elevated);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: all var(--duration-normal) var(--ease-out);
}

.header.scrolled {
  height: 68px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform var(--duration-fast) var(--ease-out);
}

.brand:hover { transform: scale(1.02); }

.logo-img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-normal) var(--ease-out);
}

.header.scrolled .logo-img {
  width: 44px;
  height: 44px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--brand-900);
  letter-spacing: -0.01em;
}

/* Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  position: relative;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--brand-600);
  border-radius: 1px;
  transform: translateX(-50%);
  transition: width var(--duration-normal) var(--ease-out);
}

.nav-links a:hover {
  color: var(--brand-700);
  background: var(--brand-50);
}

.nav-links a.active {
  color: var(--brand-800);
  background: var(--brand-100);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  width: 20px;
}

/* CTA Buttons */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Burger Menu */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 1.25rem;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.burger:hover {
  background: var(--gray-50);
  border-color: var(--border-strong);
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-800) 0%, var(--brand-700) 100%);
  border: 1px solid var(--brand-700);
  color: white;
  box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-800) 100%);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-secondary {
  background: var(--brand-50);
  border: 1px solid var(--brand-200);
  color: var(--brand-800);
}

.btn-secondary:hover {
  background: var(--brand-100);
  border-color: var(--brand-300);
}

.btn-white {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--brand-900);
  backdrop-filter: blur(10px);
}

.btn-white:hover {
  background: white;
}

.btn-lg {
  padding: 16px 28px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 48px) 0 64px;
  overflow: hidden;
}

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

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

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 26, 18, 0.88) 0%,
    rgba(28, 52, 35, 0.78) 40%,
    rgba(47, 90, 60, 0.65) 100%
  );
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  color: white;
  margin-bottom: 20px;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 20px;
}

.badge-hero {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  backdrop-filter: blur(10px);
}

.badge-brand {
  background: var(--brand-100);
  border: 1px solid var(--brand-200);
  color: var(--brand-800);
}

/* KPIs */
.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.kpi {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  transition: all var(--duration-normal) var(--ease-out);
}

.kpi:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.kpi-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: 4px;
}

.kpi-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
}

/* Hero Card */
.hero-card {
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-card h2 {
  font-size: 1.375rem;
  margin-bottom: 20px;
  color: var(--brand-900);
}

/* Hero compact (pages internes) */
.hero-compact {
  min-height: auto;
  padding: calc(var(--header-height) + 64px) 0 80px;
}

.hero-compact h1 {
  margin-bottom: 12px;
}

.hero-compact .hero-subtitle {
  max-width: 600px;
  margin-bottom: 0;
}

/* ========== CARDS ========== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-normal) var(--ease-out);
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card h3 {
  margin-bottom: 8px;
  color: var(--brand-900);
}

.card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Card with image */
.card-media {
  padding: 0;
  overflow: hidden;
}

.card-media .card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.card-media:hover .card-img {
  transform: scale(1.05);
}

.card-media .card-body {
  padding: 24px;
}

/* Card feature */
.card-feature {
  position: relative;
  padding: 32px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--gray-50) 100%);
  border: 1px solid var(--border);
  overflow: hidden;
}

.card-feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--brand-500), var(--brand-700));
  border-radius: 0 4px 4px 0;
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--brand-100);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

/* ========== GRID LAYOUTS ========== */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split.reverse > :first-child { order: 2; }
.split.reverse > :last-child { order: 1; }

.split-media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.split-media img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.split-media::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-xl);
  pointer-events: none;
}

.split-content h2 {
  margin-bottom: 16px;
  color: var(--brand-900);
}

.split-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}

/* ========== STATS SECTION ========== */
.stats-section {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}

.stats-section .section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.stats-section .section-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stats-section .section-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 26, 18, 0.92), rgba(28, 52, 35, 0.88));
}

.stats-section .container {
  position: relative;
  z-index: 1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-item {
  text-align: center;
  padding: 24px;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: white;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ========== GALLERY ========== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(13, 26, 18, 0.8) 100%);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item span {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  color: white;
  z-index: 2;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--duration-normal) var(--ease-out);
}

.gallery-item:hover span {
  opacity: 1;
  transform: translateY(0);
}

/* ========== FAQ ========== */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}

.faq-item:hover {
  border-color: var(--brand-200);
}

.faq-item.open {
  border-color: var(--brand-300);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
  color: var(--text-primary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
}

.faq-question:hover {
  background: var(--gray-50);
}

.faq-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--brand-100);
  color: var(--brand-700);
  border-radius: var(--radius-sm);
  transition: all var(--duration-normal) var(--ease-out);
}

.faq-item.open .faq-icon {
  background: var(--brand-600);
  color: white;
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 24px 24px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  display: block;
  animation: fadeSlideIn var(--duration-normal) var(--ease-out);
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== FORMS ========== */
.form-grid {
  display: grid;
  gap: 20px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  outline: 2px solid transparent;
  transition: all var(--duration-fast) var(--ease-out);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(103, 169, 123, 0.15);
  outline: 2px solid transparent;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-400);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ========== NOTICE ========== */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: var(--brand-50);
  border: 1px solid var(--brand-200);
  border-radius: var(--radius-lg);
  color: var(--brand-800);
}

.notice-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 64px 0 32px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand .logo-img {
  width: 48px;
  height: 48px;
  filter: brightness(1.1);
}

.footer-brand .brand-name {
  color: white;
}

.footer-desc {
  color: var(--gray-400);
  line-height: 1.7;
}

.footer-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
}

.footer-links {
  display: grid;
  gap: 12px;
}

.footer-links a {
  color: var(--gray-400);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--gray-800);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* ========== SCROLL ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease-out);
}

.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; }

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s var(--ease-out);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ========== FOCUS VISIBLE (Accessibility) ========== */
:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* ========== LAZY IMAGES ========== */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.5s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* ========== LIGHTBOX ========== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  animation: scaleIn 0.3s ease;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.2s;
}

.lightbox-close:hover {
  transform: scale(1.1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ========== ANIMATIONS (spinner, tooltip) ========== */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(10px); }
  20% { opacity: 1; transform: translateY(0); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-10px); }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .stagger-children > * {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ========== BACK TO TOP ========== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-700);
  color: white;
  border: none;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--duration-normal) var(--ease-out);
  z-index: 50;
}

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

.back-to-top.visible:hover {
  background: var(--brand-800);
  transform: translateY(-4px);
}

/* ========== SKIP LINK (A11y) ========== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 12px 24px;
  background: var(--brand-900);
  color: white;
  border-radius: var(--radius-md);
  z-index: 200;
  transition: top var(--duration-fast) var(--ease-out);
}

.skip-link:focus {
  top: 16px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-card { max-width: 500px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse > * { order: unset; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --header-height: 72px;
  }

  .nav-links,
  .nav-cta { display: none; }
  .burger { display: flex; }

  /* Mobile menu */
  .header:has(.nav.open) {
    height: auto;
    max-height: 100vh;
    overflow-y: auto;
  }

  .nav.open {
    flex-wrap: wrap;
  }

  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    margin-top: 12px;
  }

  .nav.open .nav-links a {
    padding: 14px 16px;
  }

  .nav.open .nav-cta {
    display: flex;
    width: 100%;
    padding-bottom: 12px;
  }

  .nav.open .nav-cta .btn {
    flex: 1;
  }

  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }

  .gallery { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .hero { min-height: auto; padding: calc(var(--header-height) + 32px) 0 48px; }
  .hero-compact { padding: calc(var(--header-height) + 40px) 0 56px; }

  .back-to-top { bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

/* ========== PRINT STYLES ========== */
@media print {
  .header, .footer, .back-to-top, .nav-cta { display: none; }
  .hero { min-height: auto; padding: 32px 0; }
  .hero-bg, .section-bg { display: none; }
  .hero h1, .hero-subtitle { color: black; }
  .stats-section { background: none; }
  .stats-section .section-bg::after { background: none; }
  .stat-value, .stat-label { color: black; }
  .kpi-value, .kpi-label { color: black; }
  .reveal, .stagger-children > * { opacity: 1 !important; transform: none !important; }
  body { font-size: 12pt; }
}