/* ============================================================
   Elevorix Shared Design System
   Single source of truth for all pages.
   ============================================================ */

/* --- Design Tokens --- */
:root {
  --brand-navy: #0f172a;
  --brand-blue: #1e3a8a;
  --brand-gold: #a16207;
  --brand-gold-soft: #f3e7cb;
  --brand-gold-strong: #854d0e;

  --ink: #020617;
  --ink-soft: #475569;
  --ink-muted: #334155;
  --line: rgba(148, 163, 184, 0.34);
  --line-light: rgba(148, 163, 184, 0.24);
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --bg: #f8fafc;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 30px;

  --shadow-sm: 0 1px 2px rgba(2, 6, 23, 0.06);
  --shadow-md: 0 8px 24px rgba(2, 6, 23, 0.08);
  --shadow-lg: 0 24px 40px rgba(2, 6, 23, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.64;
  color: var(--ink);
  background:
    radial-gradient(1000px 520px at 0% -10%, rgba(30, 58, 138, 0.14), transparent 72%),
    radial-gradient(900px 520px at 100% -20%, rgba(161, 98, 7, 0.12), transparent 72%),
    linear-gradient(180deg, #f8fafc 0%, #f3f7fd 45%, #f8fafc 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at 50% 10%, black 10%, transparent 70%);
  z-index: -2;
}

h1, h2, h3, h4, h5 {
  font-family: "Sora", "Segoe UI", sans-serif;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--brand-navy);
}

p { color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.container { width: min(1200px, 100% - 2.6rem); margin-inline: auto; }
.section { position: relative; padding-block: clamp(64px, 9vw, 112px); }

.section-surface {
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(248,250,252,0.92));
  border-block: 1px solid var(--line-light);
}

/* --- Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* --- Section Kicker --- */
.section-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.79rem; line-height: 1; letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 700;
  color: #6b3808; /* WCAG AA: 7.2:1 on white at small text */
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(161,98,7,0.25);
  border-radius: 999px; padding: 9px 14px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.section-kicker::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: radial-gradient(circle, #eab308 0%, #a16207 100%);
  box-shadow: 0 0 0 3px rgba(161,98,7,0.18); flex-shrink: 0;
}

/* --- Section Heading --- */
.section-heading {
  display: grid; gap: 16px;
  margin-bottom: clamp(30px, 4vw, 44px); max-width: 860px;
}
.section-heading h2 { font-size: clamp(1.75rem, 1.1rem + 2.3vw, 2.7rem); }
.section-heading p { font-size: clamp(1rem, 0.96rem + 0.2vw, 1.1rem); max-width: 66ch; }

/* ============================================================
   TOPBAR / NAVIGATION
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 150;
  border-bottom: 1px solid transparent;
  transition: border-color 240ms ease, background-color 240ms ease, box-shadow 240ms ease;
}
.topbar::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(248,250,252,0.8);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  z-index: -1;
}
.topbar.scrolled {
  border-color: rgba(148,163,184,0.35);
  box-shadow: 0 10px 24px rgba(15,23,42,0.08);
}
.topbar-inner {
  min-height: 78px; display: flex; align-items: center; gap: 20px;
}

/* Brand */
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Sora", sans-serif; font-weight: 700; line-height: 1; flex-shrink: 0;
}
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand-name {
  font-size: 1.22rem;
  background: linear-gradient(130deg, #0f172a 0%, #1e3a8a 72%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-mark { color: var(--brand-gold-strong); font-size: 1.02rem; letter-spacing: 0.03em; margin-top: 1px; }

/* Nav Links */
.nav-links {
  margin-left: auto; display: flex; align-items: center; gap: 24px;
  font-size: 0.9rem; font-weight: 700; color: #334155;
}
.nav-links a {
  position: relative; padding: 8px 10px; border-radius: 10px;
  transition: color 180ms ease, background-color 180ms ease;
}
.nav-links a::after {
  content: ""; position: absolute; bottom: 0; left: 10px;
  width: calc(100% - 20px); height: 2px; border-radius: 2px;
  background: linear-gradient(120deg, var(--brand-blue), var(--brand-gold));
  transform: scaleX(0); transform-origin: left;
  transition: transform 220ms ease;
}
.nav-links a:hover, .nav-links a:focus-visible {
  color: var(--brand-navy); background: rgba(30,64,175,0.08); outline: none;
}
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); }
.nav-links .nav-cta-link::after { display: none; }
.nav-links .nav-cta-link {
  padding: 12px 20px; color: #ffffff; line-height: 1;
  border-radius: 999px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(125deg, var(--brand-blue) 0%, var(--brand-navy) 58%, var(--brand-gold) 100%);
  box-shadow: 0 10px 26px rgba(15,23,42,0.2);
}
.nav-links .nav-cta-link:hover, .nav-links .nav-cta-link:focus-visible {
  color: #ffffff;
  background: linear-gradient(125deg, var(--brand-blue) 0%, var(--brand-navy) 58%, var(--brand-gold) 100%);
  box-shadow: 0 16px 30px rgba(15,23,42,0.3); transform: translateY(-2px);
}

/* Current Page */
.nav-links a.is-current-page:not(.nav-cta-link),
.nav-links a.is-current-page:not(.nav-cta-link):hover,
.nav-links a.is-current-page:not(.nav-cta-link):focus-visible {
  color: #334155 !important; background: transparent !important;
  pointer-events: none; cursor: default;
}
.nav-links a.is-current-page::after { transform: scaleX(0) !important; }

/* Mobile Menu Button */
.menu-btn {
  width: 44px; height: 44px; display: none;
  align-items: center; justify-content: center;
  border-radius: 12px; border: 1px solid rgba(148,163,184,0.5);
  background: rgba(255,255,255,0.75); color: var(--brand-navy);
  font-size: 1.15rem; cursor: pointer;
}

/* Mobile Panel */
.mobile-panel { display: none; padding-bottom: 16px; gap: 10px; }
.mobile-panel.open { display: grid; animation: mobileDrop 260ms ease forwards; }
@keyframes mobileDrop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.mobile-panel a {
  border-radius: 12px; padding: 12px 14px;
  border: 1px solid rgba(148,163,184,0.34);
  background: rgba(255,255,255,0.84);
  font-weight: 700; color: #334155;
  transition: background-color 180ms ease, border-color 180ms ease;
}
.mobile-panel a:hover, .mobile-panel a:focus-visible {
  border-color: rgba(161,98,7,0.5); background: rgba(243,231,203,0.66);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; padding: 12px 22px;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 0.94rem; line-height: 1;
  transition: transform 180ms ease, background-color 180ms ease,
    border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
  cursor: pointer;
}
.btn-primary {
  color: #ffffff;
  background: linear-gradient(125deg, var(--brand-blue) 0%, var(--brand-navy) 58%, var(--brand-gold) 100%);
  box-shadow: 0 10px 26px rgba(15,23,42,0.2);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(15,23,42,0.3); }

.btn-secondary {
  color: var(--brand-navy);
  border-color: rgba(15,23,42,0.24); background: rgba(255,255,255,0.78);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  border-color: rgba(161,98,7,0.5); background: rgba(243,231,203,0.55); transform: translateY(-1px);
}

/* ============================================================
   CARD TAG
   ============================================================ */
.card-tag {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  border-radius: 999px; font-size: 0.72rem; letter-spacing: 0.05em;
  text-transform: uppercase; font-weight: 800; padding: 6px 10px;
  color: var(--brand-navy); background: #eef2ff;
  border: 1px solid rgba(30,58,138,0.2);
}
.card-tag.is-gold {
  background: rgba(243,231,203,0.72); border-color: rgba(161,98,7,0.24);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  margin-top: clamp(66px, 8vw, 110px);
  border-top: 1px solid rgba(148,163,184,0.3);
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
  color: #f8fafc;
  padding: clamp(48px, 7vw, 78px) 0 22px;
  position: relative; overflow: hidden;
}
.footer::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(340px 200px at 18% 0%, rgba(30,58,138,0.4), transparent 75%),
    radial-gradient(360px 220px at 90% 8%, rgba(161,98,7,0.35), transparent 78%);
  pointer-events: none;
}
.footer > .container { position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr 1fr; gap: 24px; }
.footer h4 { color: #ffffff; font-size: 1rem; margin-bottom: 12px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand .brand-name {
  background: linear-gradient(130deg, #ffffff 0%, #c7d2fe 84%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-brand .brand-mark { color: #facc15; }
.footer p, .footer li, .footer a { color: rgba(226,232,240,0.88); font-size: 0.9rem; }
.footer-links, .footer-contact { display: grid; gap: 8px; }
.footer a { transition: color 160ms ease; }
.footer a:hover { color: #ffffff; }

.socials { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.social-btn {
  width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid rgba(226,232,240,0.26); background: rgba(15,23,42,0.35);
  color: #e2e8f0; display: inline-flex; align-items: center; justify-content: center;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}
.social-btn:hover {
  transform: translateY(-2px); background: rgba(30,58,138,0.55);
  border-color: rgba(250,204,21,0.52); color: #ffffff;
}
.footer-bottom {
  margin-top: 28px; padding-top: 18px;
  border-top: 1px solid rgba(148,163,184,0.26);
  text-align: center; color: rgba(203,213,225,0.8); font-size: 0.84rem;
}

/* Footer CTA Band */
.footer-cta-band {
  margin-top: clamp(40px, 6vw, 72px);
  padding: clamp(26px, 4vw, 38px) 0;
  background: linear-gradient(125deg, #0f172a 0%, #1e3a8a 60%, #a16207 100%);
  color: #ffffff;
}
.footer-cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.footer-cta-band h3 { color: #ffffff; font-size: clamp(1.18rem, 1rem + 0.6vw, 1.5rem); margin-bottom: 6px; }
.footer-cta-band p { color: #dbeafe; font-size: 0.95rem; margin: 0; }
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-footer-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: 999px;
  font-weight: 700; font-size: 0.92rem; text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease;
}
.btn-footer-cta.is-primary { background: #ffffff; color: #0f172a; }
.btn-footer-cta.is-primary:hover { transform: translateY(-2px); background: #e2e8f0; }
.btn-footer-cta.is-secondary { border: 1px solid rgba(255,255,255,0.6); color: #ffffff; background: rgba(255,255,255,0.1); }
.btn-footer-cta.is-secondary:hover { transform: translateY(-2px); background: rgba(255,255,255,0.18); }

/* Footer Legal */
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px; margin-top: 18px; padding-top: 14px;
  border-top: 1px solid rgba(148,163,184,0.2);
}
.footer-legal a { font-size: 0.82rem; color: rgba(226,232,240,0.78); }
.footer-legal a:hover { color: #ffffff; }

/* Newsletter */
.newsletter-form { display: flex; gap: 8px; margin-top: 12px; }
.newsletter-form input {
  flex: 1; min-width: 0; border-radius: 10px;
  border: 1px solid rgba(226,232,240,0.3); background: rgba(15,23,42,0.4);
  color: #f8fafc; padding: 9px 11px; font-size: 0.85rem;
}
.newsletter-form input::placeholder { color: rgba(226,232,240,0.55); }
.newsletter-form button {
  border: none; border-radius: 10px; width: 38px; flex-shrink: 0;
  background: linear-gradient(125deg, var(--brand-blue), var(--brand-gold));
  color: #ffffff; cursor: pointer;
}
.newsletter-msg { display: block; margin-top: 8px; font-size: 0.8rem; color: #86efac; }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
  position: fixed; bottom: 22px; right: 22px;
  width: 58px; height: 58px; border-radius: 999px;
  background: #25D366; color: #ffffff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 0 0 0 rgba(37,211,102,0.55), 0 12px 28px rgba(15,23,42,0.28), 0 0 18px rgba(37,211,102,0.55);
  z-index: 200; transition: transform 180ms ease, box-shadow 180ms ease;
  text-decoration: none; animation: wa-pulse 2.6s ease-out infinite;
}
.whatsapp-float::before {
  content: ""; position: absolute; inset: -6px; border-radius: 999px;
  background: radial-gradient(circle, rgba(37,211,102,0.45), transparent 70%);
  z-index: -1; filter: blur(4px);
}
.whatsapp-float:hover, .whatsapp-float:focus-visible {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 0 0 0 rgba(37,211,102,0.6), 0 16px 34px rgba(15,23,42,0.34), 0 0 26px rgba(37,211,102,0.75);
  animation-play-state: paused;
}
@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.55), 0 12px 28px rgba(15,23,42,0.28), 0 0 18px rgba(37,211,102,0.55); }
  70%  { box-shadow: 0 0 0 14px rgba(37,211,102,0), 0 12px 28px rgba(15,23,42,0.28), 0 0 22px rgba(37,211,102,0.65); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0), 0 12px 28px rgba(15,23,42,0.28), 0 0 18px rgba(37,211,102,0.55); }
}
@media (prefers-reduced-motion: reduce) { .whatsapp-float { animation: none; } }
.whatsapp-float .wa-label {
  position: absolute; right: 68px; top: 50%; transform: translateY(-50%);
  background: var(--brand-navy); color: #ffffff;
  padding: 6px 10px; border-radius: 8px;
  font-size: 0.78rem; font-weight: 700; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 160ms ease;
}
.whatsapp-float:hover .wa-label, .whatsapp-float:focus-visible .wa-label { opacity: 1; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 901px) {
  .mobile-panel, .mobile-panel.open { display: none !important; }
}
@media (max-width: 1180px) {
  .nav-links { gap: 18px; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; margin-left: auto; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container { width: min(1200px, 100% - 1.35rem); }
  .topbar-inner { min-height: 72px; }
  .whatsapp-float { width: 52px; height: 52px; font-size: 1.4rem; bottom: 16px; right: 16px; }
  .whatsapp-float .wa-label { display: none; }
  .footer-cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-cta-actions { width: 100%; }
  .btn-footer-cta { width: 100%; }
}

/* ============================================================
   FOCUS
   ============================================================ */
:focus-visible {
  outline: 3px solid rgba(30,58,138,0.56);
  outline-offset: 2px;
}
