/* ============================================
   CTAT Ingeniería S.A.S. — Components
   Navbar, Footer, Cards, Buttons, Forms
   ============================================ */

/* ══════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-navbar);
  padding: var(--space-md) 0;
  transition: all var(--duration-normal) var(--ease-out);
}

.navbar.scrolled {
  background: var(--bg-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
  padding: var(--space-sm) 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

/* ── Logo ── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo .logo-img {
  height: 44px;
  width: auto;
  transition: height var(--duration-normal) var(--ease-out);
}

.navbar.scrolled .nav-logo .logo-img {
  height: 36px;
}

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

.logo-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: var(--fw-extrabold);
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.logo-tagline {
  font-size: 0.6rem;
  font-weight: var(--fw-medium);
  color: var(--accent-teal);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── Nav Links ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.nav-link {
  position: relative;
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  text-decoration: none;
  padding: var(--space-xs) 0;
  transition: color var(--duration-fast) var(--ease-out);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-teal);
  border-radius: var(--radius-full);
  transition: width var(--duration-normal) var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ── Nav Actions ── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
}

.lang-btn {
  padding: var(--space-xs) var(--space-sm);
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  border: none;
  background: none;
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
}

.lang-btn.active {
  background: var(--accent-teal);
  color: var(--text-inverse);
}

/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  z-index: calc(var(--z-navbar) + 10);
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--ease-out);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Mobile Nav ── */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.60);
  z-index: calc(var(--z-navbar) - 1);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.mobile-overlay.active {
  opacity: 1;
}

@media (max-width: 1023px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-2xl);
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    padding: var(--space-3xl);
    transform: translateX(100%);
    transition: transform var(--duration-normal) var(--ease-out);
    z-index: var(--z-navbar);
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .mobile-overlay.active {
    display: block;
    opacity: 1;
  }

  .hamburger {
    display: flex;
  }

  .nav-link {
    font-size: var(--fs-body);
  }
}

/* ══════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn .material-symbols-outlined {
  font-size: 20px;
}

/* Primary Button */
.btn-primary {
  background: var(--gradient-cta);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow-strong);
  transform: translateY(-2px);
  color: white;
}

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

/* Secondary Button */
.btn-secondary {
  background: transparent;
  color: var(--accent-teal);
  border: 1px solid var(--accent-teal);
}

.btn-secondary:hover {
  background: rgba(14, 165, 233, 0.10);
  border-color: var(--accent-teal-light);
  color: var(--accent-teal-light);
  transform: translateY(-2px);
}

/* Ghost Button */
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  padding: 0.75rem 1.5rem;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-teal);
}

/* Small Button */
.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--fs-caption);
}

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

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-normal) var(--ease-out);
}

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

.card:hover::before {
  transform: scaleX(1);
}

/* Card with icon */
.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.15);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  color: var(--accent-teal);
  transition: all var(--duration-normal) var(--ease-out);
}

.card-icon .material-symbols-outlined {
  font-size: 28px;
}

.card:hover .card-icon {
  background: rgba(14, 165, 233, 0.15);
  border-color: rgba(14, 165, 233, 0.30);
  transform: scale(1.05);
}

.card-title {
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.card-text {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
}

/* Glass Card Variant */
.card-glass {
  background: var(--bg-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

/* Image Card Variant */
.card-image {
  padding: 0;
  overflow: hidden;
}

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

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

.card-image .card-body {
  padding: var(--space-lg) var(--space-xl);
}

/* ══════════════════════════════════════════════
   STATS BAR
   ══════════════════════════════════════════════ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--bg-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  z-index: var(--z-base);
}

.stat-item {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  background: var(--bg-glass-light);
  transition: background var(--duration-normal) var(--ease-out);
}

.stat-item:hover {
  background: rgba(14, 165, 233, 0.05);
}

.stat-number {
  font-family: var(--font-mono);
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  color: var(--accent-teal);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  font-weight: var(--fw-medium);
}

@media (max-width: 767px) {
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stat-item {
    padding: var(--space-lg) var(--space-xs);
  }
  .stat-number {
    font-size: var(--fs-h3);
  }
  .stat-label {
    font-size: var(--fs-caption);
  }
}

/* ══════════════════════════════════════════════
   FORM ELEMENTS
   ══════════════════════════════════════════════ */
.form-group {
  position: relative;
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  transition: color var(--duration-fast);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem var(--space-md);
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--fs-body);
  transition: all var(--duration-fast) var(--ease-out);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--border-input-focus);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.10);
  background: rgba(26, 35, 50, 0.70);
}

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

.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: var(--lh-body);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394A3B8' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-md) center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* Form validation states */
.form-group.error .form-input,
.form-group.error .form-textarea,
.form-group.error .form-select {
  border-color: var(--accent-error);
}

.form-group.success .form-input,
.form-group.success .form-textarea,
.form-group.success .form-select {
  border-color: var(--accent-success);
}

.form-error {
  display: none;
  font-size: var(--fs-caption);
  color: var(--accent-error);
  margin-top: var(--space-xs);
}

.form-group.error .form-error {
  display: block;
}

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
.footer {
  background: var(--gradient-footer);
  border-top: 1px solid var(--border);
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-xl);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-teal);
}

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

.footer-brand .logo-text {
  margin-bottom: var(--space-md);
}

.footer-brand p {
  font-size: var(--fs-small);
  color: var(--text-tertiary);
  line-height: var(--lh-relaxed);
  max-width: 300px;
}

.footer-title {
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  margin-bottom: var(--space-lg);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-link {
  font-size: var(--fs-small);
  color: var(--text-tertiary);
  transition: color var(--duration-fast), transform var(--duration-fast);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.footer-link:hover {
  color: var(--accent-teal);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  font-size: var(--fs-small);
  color: var(--text-tertiary);
}

.footer-contact-item .material-symbols-outlined {
  font-size: 18px;
  color: var(--accent-teal);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-tertiary);
  transition: all var(--duration-fast) var(--ease-out);
}

.social-link:hover {
  background: rgba(14, 165, 233, 0.10);
  border-color: var(--border-hover);
  color: var(--accent-teal);
  transform: translateY(-2px);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
  font-size: var(--fs-caption);
  color: var(--text-tertiary);
}

@media (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
}

@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

/* ══════════════════════════════════════════════
   HERO (shared)
   ══════════════════════════════════════════════ */
.hero-compact {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: calc(var(--navbar-height) + var(--space-3xl));
  padding-bottom: var(--space-3xl);
  overflow: hidden;
}

.hero-compact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: -2;
}

.hero-compact::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='700' viewBox='0 0 900 700'%3E%3Cg fill='none' stroke='%233B82F6' stroke-linecap='round'%3E%3C!-- Main arterial roads --%3E%3Cpath d='M0 180h900M0 350h900M0 520h900' stroke-width='2.5'/%3E%3Cpath d='M200 0v700M450 0v700M680 0v700' stroke-width='2.5'/%3E%3C!-- Secondary streets --%3E%3Cpath d='M0 90h900M0 250h900M0 430h900M0 610h900' stroke-width='1.2'/%3E%3Cpath d='M100 0v700M310 0v700M560 0v700M800 0v700' stroke-width='1.2'/%3E%3C!-- Diagonal avenues --%3E%3Cpath d='M0 0L400 350M500 0L900 350M0 350L400 700M500 350L900 700' stroke-width='1.8'/%3E%3Cpath d='M900 0L500 350M400 0L0 350M900 350L500 700M400 350L0 700' stroke-width='0.8' stroke-dasharray='8 6'/%3E%3C!-- River curve --%3E%3Cpath d='M0 480C150 380,250 520,400 420S600 280,750 380S850 500,900 440' stroke-width='3' stroke-opacity='0.7'/%3E%3Cpath d='M0 495C150 395,250 535,400 435S600 295,750 395S850 515,900 455' stroke-width='1.5' stroke-opacity='0.4'/%3E%3C!-- Minor streets (dense grid) --%3E%3Cpath d='M50 0v700M150 0v700M250 0v700M370 0v700M500 0v700M620 0v700M730 0v700M850 0v700' stroke-width='0.5' stroke-opacity='0.5'/%3E%3Cpath d='M0 45h900M0 135h900M0 210h900M0 300h900M0 390h900M0 475h900M0 560h900M0 650h900' stroke-width='0.5' stroke-opacity='0.5'/%3E%3C!-- Roundabouts --%3E%3Ccircle cx='200' cy='180' r='25' stroke-width='1.5'/%3E%3Ccircle cx='450' cy='350' r='30' stroke-width='2'/%3E%3Ccircle cx='680' cy='520' r='22' stroke-width='1.5'/%3E%3Ccircle cx='310' cy='520' r='18' stroke-width='1'/%3E%3Ccircle cx='560' cy='180' r='20' stroke-width='1'/%3E%3C!-- Building blocks --%3E%3Crect x='105' y='195' width='85' height='45' rx='2' stroke-width='0.8' fill='%233B82F6' fill-opacity='0.03'/%3E%3Crect x='215' y='195' width='80' height='45' rx='2' stroke-width='0.8' fill='%233B82F6' fill-opacity='0.03'/%3E%3Crect x='105' y='260' width='85' height='75' rx='2' stroke-width='0.8' fill='%233B82F6' fill-opacity='0.04'/%3E%3Crect x='215' y='260' width='80' height='75' rx='2' stroke-width='0.8' fill='%233B82F6' fill-opacity='0.03'/%3E%3Crect x='465' y='195' width='80' height='55' rx='2' stroke-width='0.8' fill='%233B82F6' fill-opacity='0.03'/%3E%3Crect x='465' y='365' width='80' height='50' rx='2' stroke-width='0.8' fill='%233B82F6' fill-opacity='0.04'/%3E%3Crect x='575' y='365' width='90' height='50' rx='2' stroke-width='0.8' fill='%233B82F6' fill-opacity='0.03'/%3E%3Crect x='695' y='195' width='90' height='60' rx='2' stroke-width='0.8' fill='%233B82F6' fill-opacity='0.03'/%3E%3Crect x='695' y='355' width='90' height='55' rx='2' stroke-width='0.8' fill='%233B82F6' fill-opacity='0.04'/%3E%3Crect x='330' y='100' width='105' height='65' rx='2' stroke-width='0.8' fill='%233B82F6' fill-opacity='0.03'/%3E%3Crect x='330' y='375' width='105' height='40' rx='2' stroke-width='0.8' fill='%233B82F6' fill-opacity='0.03'/%3E%3Crect x='55' y='365' width='35' height='50' rx='2' stroke-width='0.6' fill='%233B82F6' fill-opacity='0.02'/%3E%3Crect x='815' y='100' width='70' height='65' rx='2' stroke-width='0.6' fill='%233B82F6' fill-opacity='0.02'/%3E%3C!-- Curved connector roads --%3E%3Cpath d='M200 180C250 180,250 250,310 250' stroke-width='0.8'/%3E%3Cpath d='M450 350C500 300,540 300,560 180' stroke-width='0.8'/%3E%3Cpath d='M680 520C720 520,750 490,800 490' stroke-width='0.8'/%3E%3Cpath d='M100 90C140 130,160 150,200 180' stroke-width='0.7'/%3E%3Cpath d='M680 520C640 560,600 580,560 610' stroke-width='0.7'/%3E%3C!-- Parks / open spaces --%3E%3Cellipse cx='380' cy='560' rx='35' ry='25' stroke-width='0.8' stroke-dasharray='3 3'/%3E%3Cellipse cx='750' cy='250' rx='30' ry='20' stroke-width='0.8' stroke-dasharray='3 3'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 900px 700px;
  background-position: center;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 70%);
}

.hero-compact .breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-size: var(--fs-small);
  color: var(--text-tertiary);
  margin-bottom: var(--space-lg);
}

.hero-compact .breadcrumb a {
  color: var(--text-tertiary);
}

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

.hero-compact .breadcrumb .separator {
  color: var(--text-tertiary);
}

.hero-compact h1 {
  font-size: var(--fs-h1);
  margin-bottom: var(--space-md);
}

.hero-compact p {
  font-size: var(--fs-body-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════════
   BREADCRUMB
   ══════════════════════════════════════════════ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-small);
  color: var(--text-tertiary);
}

.breadcrumb a {
  color: var(--text-tertiary);
  transition: color var(--duration-fast);
}

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

/* ══════════════════════════════════════════════
   TOAST / NOTIFICATION
   ══════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  padding: var(--space-md) var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--fs-small);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-toast);
  transform: translateY(120%);
  transition: transform var(--duration-normal) var(--ease-spring);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.toast.show {
  transform: translateY(0);
}

.toast.success {
  border-color: var(--accent-success);
}

.toast.error {
  border-color: var(--accent-error);
}

.toast .material-symbols-outlined {
  font-size: 20px;
}

.toast.success .material-symbols-outlined {
  color: var(--accent-success);
}

.toast.error .material-symbols-outlined {
  color: var(--accent-error);
}

/* ══════════════════════════════════════════════
   LIGHT THEME: DARK SECTION OVERRIDES
   Hero, Hero-compact, CTA and Footer stay dark
   ══════════════════════════════════════════════ */

/* ── Dark sections: scope text variables to light ── */
.hero,
.hero-compact,
.cta-banner {
  --text-primary: #e2e8f0;
  --text-secondary: #cbd5e1;
  --text-tertiary: #94a3b8;
  --border: rgba(255, 255, 255, 0.10);
  --border-hover: rgba(56, 189, 248, 0.30);
  --bg-card: rgba(255, 255, 255, 0.06);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --bg-glass-light: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
}

.footer {
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(56, 189, 248, 0.30);
  --bg-card: rgba(255, 255, 255, 0.05);
  --accent-teal: #38bdf8;
  color: #e2e8f0;
}

/* ── Navbar: light text (over hero) ── */
.navbar .nav-link {
  color: rgba(255, 255, 255, 0.72);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #ffffff;
}

.navbar .logo-name {
  color: #ffffff;
}

.navbar .hamburger span {
  background: #ffffff;
}

.navbar .lang-toggle {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.18);
}

.navbar .lang-btn {
  color: rgba(255, 255, 255, 0.55);
}

.navbar .lang-btn.active {
  background: var(--accent-teal);
  color: #ffffff;
}

.navbar .btn-primary {
  color: #ffffff;
}

/* ── Navbar scrolled: dark text (over light content) ── */
.navbar.scrolled {
  background: rgba(248, 251, 254, 0.92);
  border-bottom-color: rgba(14, 165, 233, 0.08);
}

.navbar.scrolled .nav-link {
  color: #475569;
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
  color: #0c4a6e;
}

.navbar.scrolled .logo-name {
  color: #0c4a6e;
}

.navbar.scrolled .hamburger span {
  background: #0c4a6e;
}

.navbar.scrolled .lang-toggle {
  background: #f0f9ff;
  border-color: rgba(14, 165, 233, 0.12);
}

.navbar.scrolled .lang-btn {
  color: #94a3b8;
}

.navbar.scrolled .lang-btn.active {
  color: #ffffff;
}

/* ── Mobile sidebar: always light bg, dark text ── */
@media (max-width: 1023px) {
  .nav-links.active {
    background: #ffffff !important;
    border-left-color: rgba(14, 165, 233, 0.08) !important;
  }

  .nav-links.active .nav-link {
    color: #475569 !important;
  }

  .nav-links.active .nav-link:hover,
  .nav-links.active .nav-link.active {
    color: #0c4a6e !important;
  }
}

/* ── Cards: enhanced shadow for light bg ── */
.card {
  box-shadow: var(--shadow-sm);
}

.card:hover {
  box-shadow: var(--shadow-glow), var(--shadow-md);
}

/* ── CTA Banner (shared across all pages) ── */
.cta-banner {
  position: relative;
  padding: var(--space-4xl) 0 calc(var(--space-4xl) + 2rem);
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, #082f49 0%, #0c4a6e 50%, #0369a1 100%);
}

.cta-banner h2 {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-md);
}

.cta-banner p {
  font-size: var(--fs-body-lg);
  color: var(--text-secondary);
  margin: 0 auto var(--space-2xl);
  max-width: 500px;
}

/* ── Stats bar: card-like on light ── */
.stats-bar {
  box-shadow: var(--shadow-md);
}

.stat-item {
  background: rgba(255, 255, 255, 0.85);
}

.stat-item:hover {
  background: rgba(255, 255, 255, 1);
}

/* Modern Language Switch Toggle */
.lang-switch-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.lang-label {
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--duration-fast) var(--ease-out);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  user-select: none;
}

.lang-label.active {
  color: #ffffff;
}

.navbar.scrolled .lang-label {
  color: #94a3b8;
}

.navbar.scrolled .lang-label.active {
  color: #0c4a6e;
}

.lang-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
}

.lang-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.lang-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-out);
}

.navbar.scrolled .lang-slider {
  background-color: #f0f7ff;
  border-color: rgba(14, 165, 233, 0.12);
}

.lang-slider::before {
  content: "";
  position: absolute;
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: rgba(255, 255, 255, 0.60);
  border-radius: 50%;
  transition: transform var(--duration-fast) var(--ease-out);
}

.navbar.scrolled .lang-slider::before {
  background-color: #94a3b8;
}

.lang-switch input:checked + .lang-slider::before {
  transform: translateX(16px);
  background-color: var(--text-inverse);
}

.lang-switch input:checked + .lang-slider {
  background-color: var(--accent-teal);
  border-color: var(--accent-teal);
}

