/* ============================================
   MARCHA DA MACONHA CURITIBA — DESIGN SYSTEM
   Dark Theme + Green Neon Accent
   ============================================ */

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

/* ---------- CSS CUSTOM PROPERTIES ---------- */
:root {
  /* Backgrounds */
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222222;

  /* Accent */
  --accent: #00e676;
  --accent-glow: rgba(0, 230, 118, 0.3);
  --accent-dark: #00c853;
  --accent-subtle: rgba(0, 230, 118, 0.08);

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #9e9e9e;
  --text-muted: #616161;

  /* Borders */
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);

  /* Gradients */
  --gradient-green: linear-gradient(90deg, transparent, #00e676, transparent);
  --gradient-green-solid: linear-gradient(135deg, #00e676, #00c853);
  --gradient-dark: linear-gradient(180deg, #0a0a0a, #111111);

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3.5rem;
  --font-size-6xl: 4.5rem;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;

  /* Layout */
  --max-width: 1200px;
  --header-height: 72px;

  /* Transitions */
  --transition-fast: 200ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px var(--accent-glow);
  --shadow-glow-lg: 0 0 40px var(--accent-glow), 0 0 80px rgba(0, 230, 118, 0.1);

  /* Noise overlay */
  --noise-opacity: 0.03;

  /* Icon filter (white icons in dark mode) */
  --icon-filter: brightness(0) invert(1);
  --icon-filter-hover: brightness(0) saturate(100%) invert(73%) sepia(68%) saturate(438%) hue-rotate(89deg) brightness(101%) contrast(101%);

  /* Hero overlay */
  --hero-overlay: linear-gradient(180deg, rgba(10,10,10,0.6) 0%, rgba(10,10,10,0.8) 50%, rgba(10,10,10,0.95) 100%);
}

/* ---------- LIGHT THEME ---------- */
[data-theme="light"] {
  --bg-primary: #f5f5f5;
  --bg-secondary: #eaeaea;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f0f0;

  --accent: #00a854;
  --accent-glow: rgba(0, 168, 84, 0.2);
  --accent-dark: #008c46;
  --accent-subtle: rgba(0, 168, 84, 0.06);

  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #888888;

  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);

  --gradient-green: linear-gradient(90deg, transparent, #00a854, transparent);
  --gradient-green-solid: linear-gradient(135deg, #00a854, #008c46);
  --gradient-dark: linear-gradient(180deg, #f5f5f5, #eaeaea);

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 20px var(--accent-glow);
  --shadow-glow-lg: 0 0 40px var(--accent-glow), 0 0 80px rgba(0, 168, 84, 0.05);

  --noise-opacity: 0.015;
  --icon-filter: brightness(0);
  --icon-filter-hover: brightness(0) saturate(100%) invert(40%) sepia(90%) saturate(500%) hue-rotate(120deg);
  --hero-overlay: linear-gradient(180deg, rgba(245,245,245,0.5) 0%, rgba(245,245,245,0.75) 50%, rgba(245,245,245,0.95) 100%);
}

[data-theme="light"] h1 {
  text-shadow: none;
}

[data-theme="light"] .stat__number {
  text-shadow: none;
}

[data-theme="light"] ::selection {
  background: var(--accent);
  color: #ffffff;
}

/* ---------- BASE ---------- */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: var(--noise-opacity, 0.03);
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--accent-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

::selection {
  background: var(--accent);
  color: var(--bg-primary);
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

h1 {
  font-size: var(--font-size-5xl);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 0 40px var(--accent-glow);
}

h2 {
  font-size: var(--font-size-4xl);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

h3 {
  font-size: var(--font-size-2xl);
  letter-spacing: 0.02em;
}

h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
  margin-bottom: var(--space-sm);
  font-weight: 300;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover { color: var(--text-primary); }

/* Animated underline links */
.link-animated {
  position: relative;
  display: inline-block;
}

.link-animated::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width var(--transition-base);
}

.link-animated:hover::after { width: 100%; }

strong, b { color: var(--text-primary); font-weight: 600; }

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-4xl) 0;
  position: relative;
}

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

.section--dark { background-color: var(--bg-secondary); }

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  max-width: 640px;
  margin: 0 auto;
  font-size: var(--font-size-lg);
}

/* ---------- GRID ---------- */
.grid {
  display: grid;
  gap: var(--space-lg);
}

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

/* ---------- SEPARATOR ---------- */
.separator {
  width: 100%;
  height: 1px;
  background: var(--gradient-green);
  opacity: 0.5;
}

.separator--glow {
  height: 2px;
  opacity: 1;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

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

.btn--primary:hover {
  background: var(--accent-dark);
  color: var(--bg-primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  padding: 0.5rem 0;
}

.btn--ghost:hover {
  color: var(--text-primary);
}

.btn--lg {
  padding: 1.125rem 2.5rem;
  font-size: var(--font-size-base);
}

/* Magnetic button wrapper */
.magnetic-wrap {
  display: inline-block;
  position: relative;
}

/* ---------- CARDS ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-glow);
  background: var(--bg-card-hover);
}

.card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-md);
  color: var(--accent);
}

.card__icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  transition: all var(--transition-base);
}

.card:hover .card__icon svg {
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.card__title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.card__text {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--space-md);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  transition: gap var(--transition-fast);
}

.card__link:hover { gap: 0.75rem; }

/* Card with gradient border */
.card--gradient {
  border: none;
  background: var(--bg-card);
  position: relative;
}

.card--gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, transparent, var(--accent), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card--gradient:hover::before { opacity: 1; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.hero__bg video,
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: var(--space-lg);
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: var(--space-lg);
  text-shadow: 0 0 60px var(--accent-glow);
}

.hero__title .word {
  display: inline-block;
  overflow: hidden;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: var(--space-xl);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero__ctas {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-8px); }
  60% { transform: translateX(-50%) translateY(-4px); }
}

.hero__scroll-indicator svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-muted);
}

/* Page hero (smaller, for subpages) */
.hero--page {
  min-height: 50vh;
  padding-top: calc(var(--header-height) + var(--space-3xl));
}

.hero--page .hero__bg img {
  filter: grayscale(1) brightness(0.4);
}

/* ---------- STATS / COUNTER ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  text-align: center;
}

.stat__number {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--space-xs);
  text-shadow: 0 0 30px var(--accent-glow);
}

.stat__label {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---------- TIMELINE ---------- */
.timeline {
  position: relative;
  padding-left: var(--space-xl);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline__item {
  position: relative;
  padding-bottom: var(--space-3xl);
}

.timeline__item:last-child { padding-bottom: 0; }

.timeline__dot {
  position: absolute;
  left: calc(-1 * var(--space-xl) - 6px);
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent);
  z-index: 1;
  transition: all var(--transition-base);
}

.timeline__item--highlight .timeline__dot {
  background: var(--accent);
  box-shadow: var(--shadow-glow);
  width: 18px;
  height: 18px;
  left: calc(-1 * var(--space-xl) - 8px);
}

.timeline__year {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

.timeline__title {
  font-size: var(--font-size-xl);
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.timeline__text {
  color: var(--text-secondary);
  font-size: var(--font-size-base);
  line-height: 1.7;
}

.timeline__item--highlight {
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  margin-left: calc(-1 * var(--space-md));
  padding-left: calc(var(--space-md) + var(--space-xl));
  box-shadow: var(--shadow-glow);
}

/* ---------- CTA SECTION ---------- */
.cta-section {
  text-align: center;
  padding: var(--space-4xl) 0;
  background: linear-gradient(180deg, var(--bg-primary), var(--accent-subtle), var(--bg-primary));
  position: relative;
}

.cta-section h2 {
  margin-bottom: var(--space-md);
}

.cta-section p {
  max-width: 540px;
  margin: 0 auto var(--space-xl);
  font-size: var(--font-size-lg);
}

.cta-section .hero__ctas {
  justify-content: center;
}

/* ---------- FORMS ---------- */
.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  transition: all var(--transition-base);
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

/* ---------- NEWSLETTER INLINE ---------- */
.newsletter-inline {
  display: flex;
  gap: var(--space-sm);
  max-width: 480px;
}

.newsletter-inline .form-input {
  flex: 1;
}

/* ---------- UNDER CONSTRUCTION ---------- */
.under-construction {
  text-align: center;
  padding: var(--space-4xl) var(--space-lg);
}

.under-construction__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-xl);
  color: var(--accent);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 10px var(--accent-glow)); opacity: 0.7; }
  50% { filter: drop-shadow(0 0 30px var(--accent-glow)); opacity: 1; }
}

.under-construction h3 {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-md);
}

.under-construction p {
  max-width: 540px;
  margin: 0 auto var(--space-lg);
  font-size: var(--font-size-lg);
}

/* ---------- SVG ICON GRID ---------- */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text-secondary);
  transition: all var(--transition-base);
  text-align: center;
  cursor: pointer;
}

.icon-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  color: var(--text-primary);
}

.icon-card__svg {
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-md);
  transition: all var(--transition-base);
}

.icon-card__svg img {
  width: 100%;
  height: 100%;
  filter: var(--icon-filter);
  transition: filter var(--transition-base);
}

.icon-card:hover .icon-card__svg img {
  filter: var(--icon-filter-hover);
}

.icon-card__label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- PRODUCT CARDS ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  cursor: pointer;
}

.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.product-card__image {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-secondary);
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.product-card__body {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
}

.product-card__name {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
  line-height: 1.3;
}

.product-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.product-card__price-current {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--accent);
}

.product-card__price-old {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-card__badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--accent);
  color: var(--bg-primary);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}

.product-card__note {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-top: 0.375rem;
}

/* Product lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  padding: var(--space-lg);
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

.lightbox__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  z-index: 1;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

/* Partner cards */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-md);
}

.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  text-decoration: none;
  color: var(--text-secondary);
}

.partner-card:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.partner-card__name {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.partner-card__handle {
  font-size: var(--font-size-xs);
  color: var(--accent);
}

.partner-card__location {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ---------- PRODUCT GALLERY ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-sm);
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 1;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery__item:hover img {
  transform: scale(1.06);
}

.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.7), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery__item:hover::after { opacity: 1; }

/* ---------- LOADING ---------- */
.ajax_load {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.ajax_load.loaded {
  opacity: 0;
  pointer-events: none;
}

.ajax_load__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ---------- SCROLL PROGRESS BAR ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient-green-solid);
  z-index: 10001;
  transition: none;
  box-shadow: var(--shadow-glow);
}

/* ---------- COMPARISON CARDS ---------- */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.comparison__card {
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.comparison__card--highlight {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.comparison__card h3 {
  margin-bottom: var(--space-md);
}

.comparison__card ul {
  list-style: none;
  padding: 0;
}

.comparison__card li {
  padding: var(--space-xs) 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-secondary);
}

.comparison__card li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ---------- HIGHLIGHT CARD ---------- */
.highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-glow);
  text-align: center;
}

.highlight-card .stat__number {
  font-size: var(--font-size-6xl);
}

/* ---------- COUNTRY GRID ---------- */
.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.country-card {
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.country-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.country-card h4 {
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

/* ---------- BLOG GRID ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-lg);
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.blog-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.blog-card__image {
  aspect-ratio: 16 / 9;
  background: var(--bg-secondary);
  overflow: hidden;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card__body {
  padding: var(--space-lg);
}

.blog-card__tag {
  display: inline-block;
  font-size: var(--font-size-xs);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.blog-card__title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-sm);
}

.blog-card__excerpt {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

/* ---------- REFERENCES LIST ---------- */
.ref-list {
  list-style: none;
  padding: 0;
  counter-reset: ref;
}

.ref-list li {
  counter-increment: ref;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  padding-left: 2.5rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.ref-list li::before {
  content: counter(ref);
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--accent);
  font-size: var(--font-size-sm);
}

.ref-list li:hover { color: var(--text-primary); }

.ref-list li a {
  display: block;
  margin-top: 0.25rem;
  font-size: var(--font-size-sm);
}

/* ---------- UTILITY CLASSES ---------- */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-primary { color: var(--text-primary); }
.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); }
.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); }

/* Reveal animation initial state (GSAP will handle) */
.reveal {
  opacity: 0;
  transform: translateY(60px);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .icon-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --space-4xl: 5rem;
    --space-3xl: 4rem;
  }

  h1 { font-size: var(--font-size-4xl); }
  h2 { font-size: var(--font-size-3xl); }

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

  .hero__ctas { flex-direction: column; align-items: center; }

  .newsletter-inline {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-sm); }
  .icon-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
