/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #061024; color: #e2eaf5; }
img, svg { display: block; max-width: 100%; }
button { background: none; border: none; cursor: pointer; color: inherit; font: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; margin: 0; }

/* ── Focus ──────────────────────────────────────────────── */
:focus-visible { outline: 2px solid #2dd4bf; outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #2dd4bf; color: #061024; padding: .75rem 1.5rem; z-index: 200; font-size: .875rem; font-weight: 600; }
.skip-link:focus { left: 0; }

/* ── Typography ─────────────────────────────────────────── */
.section-label {
  font-size: .7rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: #2dd4bf;
  font-weight: 500;
}
.body-text {
  font-size: .9375rem;
  line-height: 1.75;
  color: #7ea3e3;
  font-weight: 300;
}

/* ── Navbar ─────────────────────────────────────────────── */
#site-header {
  background: rgba(6,16,36,0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(45,184,166,0.08);
}
#site-header.scrolled {
  background: rgba(6,16,36,0.92);
  border-bottom-color: rgba(45,184,166,0.15);
  box-shadow: 0 1px 40px rgba(0,0,0,0.4);
}
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #2dd4bf;
  transition: width .3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ── Hero Gradient ──────────────────────────────────────── */
.hero-gradient {
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(13,148,136,0.25) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 60%, rgba(45,98,201,0.2) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(20,184,166,0.15) 0%, transparent 50%),
    linear-gradient(180deg, #061024 0%, #0c1f44 50%, #061024 100%);
}
.hero-grain {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  background-size: 128px 128px;
  pointer-events: none;
}
.hero-orb {
  opacity: .5;
  animation: orbFloat 12s ease-in-out infinite;
}
.hero-orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(13,148,136,0.3) 0%, transparent 70%); top: -10%; right: -5%; animation-delay: 0s; }
.hero-orb-2 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(45,98,201,0.25) 0%, transparent 70%); bottom: 10%; left: -5%; animation-delay: -4s; }
.hero-orb-3 { width: 250px; height: 250px; background: radial-gradient(circle, rgba(45,212,191,0.2) 0%, transparent 70%); top: 40%; left: 30%; animation-delay: -8s; }
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* ── Hero Scroll Indicator ─────────────────────────────── */
.hero-scroll-line {
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .3; transform: scaleY(.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ── Animations ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Reduced Motion ─────────────────────────────────────── */
.sm-reduced-motion *, .sm-reduced-motion *::before, .sm-reduced-motion *::after {
  animation-duration: 0.01ms !important;
  transition-duration: 0.01ms !important;
}

/* ── Scroll Reveal (below fold only) ────────────────────── */
.reveal-up, .reveal-left, .reveal-right, .reveal-card, .reveal-stat, .reveal-gallery {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  .reveal-up   { transition: opacity .7s ease, transform .7s ease; }
  .reveal-left { transition: opacity .7s ease, transform .7s ease; }
  .reveal-right{ transition: opacity .7s ease, transform .7s ease; }
  .reveal-card { transition: opacity .6s ease, transform .6s ease; }
  .reveal-stat { transition: opacity .6s ease, transform .4s ease; }
  .reveal-gallery { transition: opacity .6s ease, transform .6s ease; }

  .reveal-up.revealed,
  .reveal-left.revealed,
  .reveal-right.revealed,
  .reveal-card.revealed,
  .reveal-stat.revealed,
  .reveal-gallery.revealed {
    opacity: 1;
    transform: none;
  }
  .reveal-up:not(.revealed)   { opacity: 0; transform: translateY(40px); }
  .reveal-left:not(.revealed) { opacity: 0; transform: translateX(-40px); }
  .reveal-right:not(.revealed){ opacity: 0; transform: translateX(40px); }
  .reveal-card:not(.revealed) { opacity: 0; transform: translateY(30px); }
  .reveal-stat:not(.revealed) { opacity: 0; transform: translateY(20px); }
  .reveal-gallery:not(.revealed) { opacity: 0; transform: scale(0.96); }
}

/* ── Divider ────────────────────────────────────────────── */
.divider-line {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(45,184,166,0.2) 50%, transparent 100%);
}

/* ── Cards ──────────────────────────────────────────────── */
.card-elegant {
  background: rgba(12,31,68,0.4);
  border: 1px solid rgba(45,184,166,0.08);
  border-radius: 1rem;
  padding: 2rem;
  transition: border-color .4s ease, background .4s ease, transform .4s ease;
  height: 100%;
}
.card-elegant:hover {
  border-color: rgba(45,184,166,0.25);
  background: rgba(12,31,68,0.6);
  transform: translateY(-4px);
}
.card-icon-wrap {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(45,184,166,0.15);
  border-radius: .75rem;
  transition: border-color .3s ease, background .3s ease;
}
.card-elegant:hover .card-icon-wrap {
  border-color: rgba(45,184,166,0.35);
  background: rgba(45,184,166,0.08);
}

/* ── Stats ──────────────────────────────────────────────── */
.stat-number { font-size: 2.25rem; line-height: 1; }
.stat-label  { font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; }

/* ── Gallery ────────────────────────────────────────────── */
.gallery-img {
  transition: transform .7s cubic-bezier(.25,.46,.45,.94);
}
.reveal-gallery:hover .gallery-img {
  transform: scale(1.05);
}

/* ── Visit Blocks ───────────────────────────────────────── */
.visit-block {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: .75rem;
  border: 1px solid rgba(45,184,166,0.06);
  background: rgba(12,31,68,0.3);
  text-decoration: none;
  transition: border-color .3s ease, background .3s ease;
}
.visit-block:hover,
.visit-block[aria-current] {
  border-color: rgba(45,184,166,0.2);
  background: rgba(12,31,68,0.5);
}
.visit-block:last-child { text-decoration: none; }
.visit-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(45,184,166,0.15);
  border-radius: .5rem;
  color: #2dd4bf;
  transition: border-color .3s ease;
}
.visit-block:hover .visit-icon { border-color: rgba(45,184,166,0.35); }
.visit-label {
  font-size: .6875rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #5385d9;
  margin-bottom: .25rem;
}
.visit-value {
  font-size: .9375rem;
  color: #e2eaf5;
  font-weight: 300;
  line-height: 1.6;
}
.visit-arrow {
  margin-left: auto;
  flex-shrink: 0;
  color: #5385d9;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .3s ease, transform .3s ease;
}
.visit-block:hover .visit-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ── Form ───────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: .5rem; }
.form-label {
  font-size: .6875rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #5385d9;
}
.form-input {
  background: rgba(12,31,68,0.5);
  border: 1px solid rgba(45,184,166,0.12);
  border-radius: .625rem;
  padding: .875rem 1rem;
  color: #e2eaf5;
  font-size: .9375rem;
  font-family: inherit;
  font-weight: 300;
  transition: border-color .3s ease, box-shadow .3s ease;
  width: 100%;
}
.form-input::placeholder { color: #173a7d; }
.form-input:focus {
  outline: none;
  border-color: rgba(45,184,166,0.5);
  box-shadow: 0 0 0 3px rgba(45,184,166,0.1);
}
.form-input:invalid:not(:placeholder-shown) {
  border-color: rgba(239,68,68,0.5);
}
.form-success {
  display: flex;
  align-items: center;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: .625rem;
  background: rgba(45,184,166,0.08);
  border: 1px solid rgba(45,184,166,0.2);
  color: #2dd4bf;
  font-size: .875rem;
  font-weight: 400;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .875rem 2rem;
  border-radius: 9999px;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background .3s ease, transform .2s ease, box-shadow .3s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(45,184,166,0.25);
}

/* ── Mobile Menu ────────────────────────────────────────── */
#mobile-menu.open { opacity: 1; pointer-events: all; }
#mobile-menu.closed { opacity: 0; pointer-events: none; }
.mobile-link { transition: color .3s ease; }
