/* =================================================================
   VITERNA DISTRIBUTION — DESIGN SYSTEM v2.0
   Dark Industrial · Brand Blue · Dominant Accent Orange
   ================================================================= */

:root {
  /* BACKGROUNDS */
  --bg-primary:    #0f0f0f;   /* Main background */
  --bg-secondary:  #1a1a1a;   /* Section alt background */
  --bg-card:       #2d2d2d;   /* Card background */

  /* TEXT */
  --text-primary:  #ffffff;   /* Main headings */
  --text-secondary:#e5e7eb;   /* Body text */
  --text-muted:    #9ca3af;   /* Captions, labels */
  --text-dim:      #52525b;   /* Extra muted/disabled */

  /* BRAND */
  --brand-blue:    #1e40af;   /* Brand blue */
  --brand-blue-dk: #1e3a8a;   /* Dark blue hover */
  --accent:        #f97316;   /* Orange — DOMINANT accent */
  --accent-gold:   #ffd700;   /* Gold — 3D lighting only */
  --accent-glow:   rgba(249, 115, 22, 0.4);

  /* BORDERS */
  --border-subtle: #404040;
  --border-accent: #f97316;

  /* TYPOGRAPHY */
  --font-heading:  'Inter', sans-serif;
  --font-body:     'Inter', sans-serif;
  --font-mono:     'Space Mono', monospace;

  --size-h1:       clamp(38px, 5.5vw, 68px);
  --size-h2:       clamp(26px, 3.5vw, 38px);
  --size-h3:       22px;
  --size-body:     clamp(15px, 1.1vw, 17px);
  --size-label:    13px;

  --weight-bold:   700;
  --weight-semi:   600;
  --weight-regular:400;

  --lh-heading:    1.1;
  --lh-body:       1.6;
  --ls-tight:      -0.02em;

  /* LAYOUT */
  --max-width:     1200px;
  --section-pad:   clamp(4.5rem, 8vw, 7.5rem) 1.5rem;
  --radius:        12px;
  --radius-sm:     8px;
  --radius-btn:    8px;

  /* SHADOWS & EFFECTS */
  --shadow-card:   0 12px 36px rgba(0,0,0,0.5);
  --glow-orange:   0 0 25px rgba(249,115,22,0.3);
  --glow-blue:     0 0 25px rgba(30,64,175,0.25);
  --glow-gold:     0 0 30px rgba(255,215,0,0.15);

  /* TRANSITIONS */
  --transition:    300ms cubic-bezier(.25, .8, .25, 1);
  --transition-slow: 500ms cubic-bezier(.25, .8, .25, 1);
  --ease-in-out:   cubic-bezier(.76, 0, .24, 1);
}

/* ─── RESET ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { 
  -webkit-text-size-adjust: 100%; 
  scroll-behavior: smooth;
}
body {
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-family: var(--font-body);
  line-height: var(--lh-body);
  font-size: var(--size-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
img { display: block; max-width: 100%; height: auto; object-fit: cover; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; outline: none; }
::selection { background: rgba(249,115,22,.3); color: #fff; }

/* ─── GLOBAL SCROLL PROGRESS BAR ────────────────────────────────── */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-blue) 0%, var(--accent) 60%, var(--accent-gold) 100%);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.6);
  z-index: 9999;
  pointer-events: none;
  transition: width 80ms ease-out;
}

/* ─── ATMOSPHERE EFFECTS ────────────────────────────────────────── */
.fx-vignette, .fx-grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 9001;
}
.fx-vignette {
  background: radial-gradient(ellipse 130% 110% at 50% 30%, transparent 45%, rgba(0,0,0,.75) 100%);
  z-index: 9000;
}
.fx-grain {
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 6s steps(6) infinite;
}
@keyframes grain-shift {
  0%   { transform: translate(0,0) }   20% { transform: translate(-2%,1%) }
  40%  { transform: translate(1%,-2%) } 60% { transform: translate(-1%,2%) }
  80%  { transform: translate(2%,-1%) } 100%{ transform: translate(0,0) }
}

/* ─── HEADER / NAVIGATION ────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: 80px;
  background: rgba(15,15,15,0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), height var(--transition);
}
.nav.scrolled {
  height: 70px;
  background: rgba(15,15,15,0.97);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border-bottom: 1px solid rgba(249, 115, 22, 0.15);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.18em;
  color: var(--text-primary);
  text-transform: uppercase;
}
.brand-name span {
  color: var(--accent);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-links a {
  font-size: var(--size-label);
  font-weight: var(--weight-semi);
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--accent); transition: width var(--transition);
}
.nav-links a:hover {
  color: var(--accent);
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-links .nav-cta {
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 8px 18px;
  border-radius: var(--radius-btn);
  transition: var(--transition);
}
.nav-links .nav-cta::after {
  display: none;
}
.nav-links .nav-cta:hover {
  background: var(--accent);
  color: var(--text-primary);
  box-shadow: var(--glow-orange);
}

/* Lang switcher in Nav */
.lang-selector {
  position: relative;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: var(--weight-bold);
  color: var(--text-secondary);
  transition: var(--transition);
}
.lang-btn:hover {
  border-color: var(--accent);
  background: rgba(255,255,255,0.06);
}
.lang-btn svg.chev {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 2.5;
  transition: transform var(--transition);
}
.lang-selector.open svg.chev {
  transform: rotate(180deg);
}
.flag {
  width: 18px;
  height: 13px;
  border-radius: 2px;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
}
.flag svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(20, 20, 20, 0.98);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px;
  min-width: 160px;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  z-index: 110;
}
.lang-selector.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: left;
  transition: var(--transition);
}
.lang-opt:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
}
.lang-opt.active {
  color: var(--accent);
  background: rgba(249, 115, 22, 0.1);
}
.lang-opt .code {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  margin-left: auto;
}

/* Burger menu */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  z-index: 1001;
}
.burger span {
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: var(--transition);
}
.burger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: var(--weight-bold);
  color: var(--text-secondary);
}
.mobile-menu a:hover {
  color: var(--accent);
}

/* ─── LAYOUT SECTIONS ───────────────────────────────────────────── */
section {
  position: relative;
  padding: var(--section-pad);
  max-width: 100%;
}
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}
.section-title {
  font-family: var(--font-heading);
  font-size: var(--size-h2);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: 3.5rem;
  line-height: var(--lh-heading);
}
.section-title.center {
  text-align: center;
}

/* ─── HERO SECTION ──────────────────────────────────────────────── */
.hero {
  background: linear-gradient(180deg, #0f0f0f 0%, #1a1a1a 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 60px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.hero-content {
  opacity: 0;
  transform: translateX(-40px);
  animation: hero-fade-in 800ms cubic-bezier(.25, .8, .25, 1) 200ms forwards;
}
@keyframes hero-fade-in {
  to { opacity: 1; transform: none; }
}
.pre-label {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  font-weight: var(--weight-semi);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.pre-label::before {
  content: '';
  width: 12px;
  height: 2px;
  background: var(--accent);
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: var(--size-h1);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  line-height: 1.05;
  letter-spacing: var(--ls-tight);
  margin-bottom: 2rem;
}
/* Scroll text highlighting container */
.scrub-text {
  position: relative;
  display: inline;
}
.hero-lead {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  line-height: 1.6;
}
.hero-ctas {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.btn-p {
  background: var(--accent);
  color: var(--text-primary);
  padding: 16px 36px;
  border-radius: var(--radius-btn);
  font-weight: var(--weight-semi);
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}
.btn-p:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--glow-orange);
  background: #ea6c0a;
}
.btn-s {
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 16px 36px;
  border-radius: var(--radius-btn);
  font-weight: var(--weight-semi);
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.btn-s:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* 3D Map / Visual Column */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 520px;
  opacity: 0;
  transform: translateX(40px);
  animation: hero-fade-in 800ms cubic-bezier(.25, .8, .25, 1) 400ms forwards;
}
.map-visual-container {
  width: 100%;
  height: 100%;
  position: relative;
}
.map-visual-container svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 20px 50px rgba(0,0,0,0.6));
}

/* Route animations */
.route-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  stroke-linecap: round;
}
.route-line.animate {
  animation: drawPath 3.5s var(--ease-in-out) forwards infinite;
}
@keyframes drawPath {
  0% { stroke-dashoffset: 1000; }
  70%, 100% { stroke-dashoffset: 0; }
}

.map-glow-node {
  transform-origin: center;
  animation: pulseNode 2.5s ease-in-out infinite;
}
@keyframes pulseNode {
  0%, 100% { r: 5px; opacity: 0.8; }
  50% { r: 12px; opacity: 0.3; }
}

/* Flying drone SVG */
.flying-drone {
  offset-path: path('M372,96 Q261,241 150,196'); /* dynamically mapped path */
  offset-rotate: auto;
  animation: flight 18s linear infinite;
  transform-origin: center;
}
@keyframes flight {
  0% { offset-distance: 0%; opacity: 0; }
  5% { opacity: 1; }
  90% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

/* ─── ABOUT US SECTION ──────────────────────────────────────────── */
.about {
  background: var(--bg-primary);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text h2 {
  font-family: var(--font-heading);
  font-size: var(--size-h2);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: 2rem;
  line-height: var(--lh-heading);
}
.about-text p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 16px;
  margin-bottom: 1.5rem;
}
.about-text p:last-child {
  margin-bottom: 0;
}
.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  height: 450px;
}
.warehouse-container {
  width: 100%;
  max-width: 420px;
  transform-style: preserve-3d;
  animation: floatIllustration 8s ease-in-out infinite alternate;
}
.warehouse-illustration {
  width: 100%;
  height: auto;
  animation: rotateIllustration 36s linear infinite;
  transform-origin: center center;
}
@keyframes floatIllustration {
  0% { transform: translateY(0px) rotateX(15deg) rotateY(-10deg); }
  100% { transform: translateY(-20px) rotateX(15deg) rotateY(10deg); }
}
@keyframes rotateIllustration {
  0% { transform: rotateZ(0deg); }
  100% { transform: rotateZ(360deg); }
}

/* ─── SERVICES SECTION ──────────────────────────────────────────── */
.services {
  background: var(--bg-secondary);
}
.services-intro {
  max-width: 700px;
  margin-bottom: 4.5rem;
}
.services-intro p {
  font-size: 18px;
  color: var(--text-muted);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-slow), box-shadow var(--transition-slow), transform var(--transition-slow);
  will-change: transform;
}
.service-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(249,115,22,0.06) 0%, transparent 60%);
  opacity: 0; transition: opacity var(--transition-slow);
}
.service-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--glow-orange);
  transform: translateY(-6px);
}
.service-card:hover::after {
  opacity: 1;
}
.srv-ico-wrap {
  width: 64px;
  height: 64px;
  margin-bottom: 2rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-slow);
  transform-style: preserve-3d;
}
.service-card:hover .srv-ico-wrap {
  transform: rotateY(180deg) scale(1.1);
}
.srv-ico-wrap svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
}
.service-card h3 {
  font-family: var(--font-heading);
  font-size: var(--size-h3);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: 1.2rem;
}
.service-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

/* ─── GLOBAL REACH SECTION ──────────────────────────────────────── */
.reach {
  background: linear-gradient(180deg, #0f0f0f, #2d2d2d);
  overflow: hidden;
}
.map-stage-global {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(30,64,175,0.08), transparent 60%), #151515;
  padding: 20px;
  box-shadow: var(--shadow-card);
}
.map-stage-global svg {
  width: 100%;
  height: auto;
}
.map-legend {
  margin-top: 3.5rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-secondary);
  text-align: center;
}
.map-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hub-star {
  color: var(--accent-gold);
  font-size: 20px;
  animation: starPulse 2s ease-in-out infinite;
}
@keyframes starPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px var(--accent-gold)); }
  50% { transform: scale(1.2); filter: drop-shadow(0 0 8px var(--accent-gold)); }
}

/* Tooltips */
.map-tooltip {
  position: absolute;
  background: rgba(20,20,20,0.95);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: var(--weight-bold);
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 50;
  box-shadow: var(--shadow-card);
}
.map-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── WHY CHOOSE US SECTION ─────────────────────────────────────── */
.why {
  background: var(--bg-secondary);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}
.why-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  will-change: transform;
}
.why-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--glow-orange);
  transform: translateY(-4px);
}
.why-card .ico-wrap {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.5rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-card:hover .ico-wrap svg {
  animation: rotateIcon 600ms ease;
}
@keyframes rotateIcon {
  to { transform: rotateY(360deg); }
}
.why-card .ico-wrap svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  transition: transform var(--transition);
}
.why-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: var(--weight-semi);
  color: var(--text-primary);
  margin-bottom: 1rem;
}
.why-card p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ─── CONTACT SECTION ───────────────────────────────────────────── */
.contact {
  background: linear-gradient(180deg, #0f0f0f, #1a1a1a);
}
.contact-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}
.contact-intro p {
  font-size: 16px;
  color: var(--text-muted);
  margin-top: 1rem;
}
.form-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-family: var(--font-body);
  font-size: var(--size-label);
  font-weight: var(--weight-semi);
  color: var(--text-secondary);
}
.form-input {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 15px;
  width: 100%;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.submit-btn {
  background: var(--accent);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: var(--weight-bold);
  padding: 16px;
  border-radius: var(--radius-btn);
  width: 100%;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
}
.submit-btn:hover {
  background: #ea6c0a;
  box-shadow: var(--glow-orange);
  transform: translateY(-2px);
}
.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Spinner for loading state */
.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: none;
}
.submit-btn.loading .spinner {
  display: inline-block;
}
.submit-btn.loading span {
  opacity: 0.8;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.whatsapp-note {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1.5rem;
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 14px;
  font-weight: var(--weight-semi);
  box-shadow: var(--shadow-card);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s;
}
.toast.visible {
  transform: translateY(0);
  opacity: 1;
}
.toast.success {
  background: #10b981; /* Emerald green */
  border-left: 4px solid #047857;
}
.toast.error {
  background: #ef4444; /* Red */
  border-left: 4px solid #b91c1c;
}

/* ─── FOOTER ────────────────────────────────────────────────────── */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 1.5rem 2.5rem;
}
.foot-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: 60px;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--border-subtle);
}
.foot-brand-col .brand {
  margin-bottom: 1.5rem;
}
.foot-brand-col p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 400px;
  line-height: 1.6;
}
.foot-social-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}
.social-links {
  display: flex;
  gap: 1.5rem;
}
.social-links a {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.social-links a:hover {
  color: var(--accent);
  transform: scale(1.1);
}
.social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.foot-legal-row {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 0;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--border-subtle);
}
.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}
.legal-links a:hover {
  color: var(--accent);
}

.foot-bottom-row {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.copyright {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}
.foot-bottom-row .lang-selector {
  font-family: var(--font-mono);
  font-size: 11px;
}
.foot-bottom-row .lang-opt-simple {
  color: var(--text-muted);
  transition: var(--transition);
}
.foot-bottom-row .lang-opt-simple.active {
  color: var(--accent);
  font-weight: var(--weight-bold);
}
.foot-bottom-row .lang-opt-simple:hover {
  color: var(--text-primary);
}

/* ─── LEGAL PAGES SPEC ──────────────────────────────────────────── */
.legal-body {
  background: var(--bg-primary);
}
.legal-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 8rem 1.5rem 4rem; /* 8rem top for fixed nav */
}
.breadcrumb {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}
.breadcrumb a {
  color: var(--text-muted);
}
.breadcrumb a:hover {
  color: var(--accent);
}
.legal-wrap h1 {
  font-family: var(--font-heading);
  font-size: 36px;
  color: var(--text-primary);
  font-weight: var(--weight-bold);
  margin-bottom: 2.5rem;
  line-height: 1.15;
}
.legal-wrap h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--accent);
  font-weight: var(--weight-semi);
  margin: 2.5rem 0 1rem;
}
.legal-wrap p, .legal-wrap li {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.2rem;
}
.legal-wrap ul, .legal-wrap ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.legal-wrap li {
  margin-bottom: 0.5rem;
}
.legal-wrap a {
  color: var(--accent);
  text-decoration: none;
}
.legal-wrap a:hover {
  text-decoration: underline;
}
.legal-wrap strong {
  color: var(--text-primary);
}
.legal-wrap hr {
  border: 0;
  border-top: 1px solid var(--border-subtle);
  margin: 3rem 0;
}

/* ─── RESPONSIVE LAYOUTS ─────────────────────────────────────────── */
@media(max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }
  .pre-label {
    justify-content: center;
  }
  .hero-lead {
    margin: 26px auto 34px;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-visual {
    height: 400px;
    order: 2; /* visual below text */
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .about-visual {
    height: 380px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .foot-social-col {
    align-items: flex-start;
    gap: 20px;
  }
}

@media(max-width: 768px) {
  .nav-links {
    display: none;
  }
  .burger {
    display: flex;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .form-container {
    padding: 2rem 1.5rem;
  }
  .foot-bottom-row {
    flex-direction: column;
    text-align: center;
  }
}

@media(max-width: 480px) {
  .hero h1 {
    font-size: 34px;
  }
  .hero-visual {
    height: 300px;
  }
  .about-visual {
    height: 280px;
  }
  .btn-p, .btn-s {
    width: 100%;
  }
}

/* ─── 3D WEBGL CONTAINER ────────────────────────────────────────── */
#webgl-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.5s var(--ease);
}
#webgl-container.visible {
  opacity: 1;
}

/* Let the 3D WebGL globe shine on the right side of the hero */
.hero-visual {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}
.map-visual-container {
  display: none !important; /* Hide old flat SVG */
}

/* ─── PRELOADER ─────────────────────────────────────────────────── */
#preloader {
  position: fixed;
  inset: 0;
  background: #0f0f0f;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.8s ease;
}
#preloader.exit {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
.loader-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
}
.loader-logo svg {
  width: 100%;
  height: 100%;
}
.outer-v {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: draw-outer 2s ease forwards;
}
.inner-v {
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  animation: draw-inner 1.8s ease 0.4s forwards;
}
@keyframes draw-outer { to { stroke-dashoffset: 0; } }
@keyframes draw-inner { to { stroke-dashoffset: 0; } }

.loader-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.2em;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.loader-sub {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 30px;
  padding-left: 0.4em;
}
.loader-bar {
  width: 180px;
  height: 2px;
  background: rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
  border-radius: 1px;
}
.loader-bar-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0; width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.1s ease-out;
}
.loader-count {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: var(--weight-bold);
}


