/* ═══════════════════════════════════════════════════════════════════
   components.css — Buttons, nav, footer, stat-card, logo, form fields
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  transition: background-color 0.2s var(--ease-out),
              color 0.2s var(--ease-out),
              box-shadow 0.2s var(--ease-out),
              filter 0.2s var(--ease-out);
  position: relative;
  will-change: transform;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.btn-lg { padding: 16px 28px; font-size: var(--text-base); }
.btn-xl { padding: 20px 36px; font-size: var(--text-lg); }
.btn-sm { padding: 8px 14px; font-size: var(--text-xs); }

.btn-primary {
  background: var(--marine-500);
  color: var(--creme-200);
}
.btn-primary:hover { background: var(--marine-600); }

.btn-secondary {
  background: transparent;
  color: var(--marine-800);
  box-shadow: inset 0 0 0 1px var(--kaki-300);
}
.btn-secondary:hover {
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--mauve-400);
}

.btn-ghost-dark {
  background: transparent;
  color: var(--creme-200);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.btn-ghost-light {
  background: transparent;
  color: var(--marine-700);
  box-shadow: inset 0 0 0 1px var(--kaki-300);
}
.btn-ghost-light:hover {
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--mauve-400);
  color: var(--marine-800);
}

/* Shimmer: animated gradient fill */
.btn-shimmer {
  background: linear-gradient(
    110deg,
    var(--marine-500) 0%,
    var(--marine-400) 25%,
    var(--mauve-500) 50%,
    var(--marine-400) 75%,
    var(--marine-500) 100%
  );
  background-size: 200% 100%;
  color: #fff;
  animation: shimmer 2.6s linear infinite;
  box-shadow: 0 4px 24px -4px rgba(159, 130, 196, 0.55),
              0 0 0 1px rgba(255, 255, 255, 0.05);
}
.btn-shimmer:hover {
  filter: brightness(1.18);
  box-shadow: 0 8px 36px -4px rgba(159, 130, 196, 0.75);
}

/* ─── Logo ─────────────────────────────────────────────── */
.logo {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  letter-spacing: var(--tracking-tight);
  color: var(--creme-200);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mauve-400), var(--marine-400));
  box-shadow: 0 0 14px var(--mauve-500);
  flex-shrink: 0;
}
.logo-light {
  color: var(--marine-800);
}

/* ─── Nav ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(0, 19, 29, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateY(0);
  transition: transform 0.35s var(--ease-out), background 0.3s;
  will-change: transform;
}
.nav.nav-hidden { transform: translateY(-110%); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: rgba(244, 244, 238, 0.68);
  transition: color 0.15s;
  position: relative;
  text-decoration: none;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -5px;
  height: 1px;
  background: var(--mauve-300);
  transition: right 0.3s var(--ease-out);
}
.nav-links a:not(.btn):hover::after { right: 0; }
.nav-links a:not(.btn):hover { color: var(--creme-200); }
.nav-links a[aria-current="page"] { color: var(--mauve-300); }

.nav-mobile-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--creme-200);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
}
.nav-mobile-toggle svg { width: 22px; height: 22px; }

/* ─── Stat card (dark) ─────────────────────────────────── */
.stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s var(--ease-out),
              border-color 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(159, 130, 196, 0.12), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}
.stat-card:hover::before { opacity: 1; }
.stat-card:hover {
  border-color: rgba(159, 130, 196, 0.35);
  transform: translateY(-2px);
}
.stat-value {
  font-size: var(--text-3xl);
  font-weight: var(--font-black);
  color: var(--creme-200);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  color: var(--ardoise-400);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--marine-950);
  color: var(--creme-200);
  border-top: 1px solid var(--ardoise-800);
  padding: 84px 0 36px;
  position: relative;
  z-index: 5;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(5, 1fr);
  gap: 48px 32px;
  margin-bottom: 56px;
}
.footer-brand { max-width: 340px; }
.footer-brand p {
  font-size: var(--text-sm);
  color: var(--ardoise-400);
  margin-top: 14px;
  line-height: 1.65;
}
.footer-newsletter {
  margin-top: 22px;
  display: flex;
  gap: 8px;
}
.footer-newsletter input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ardoise-700);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  color: var(--creme-200);
  font-size: var(--text-sm);
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.footer-newsletter input:focus { border-color: var(--mauve-400); }
.footer-newsletter input::placeholder { color: var(--ardoise-500); }
.footer-newsletter button {
  background: var(--mauve-500);
  color: #fff;
  padding: 11px 18px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  transition: background 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.footer-newsletter button:hover { background: var(--mauve-600); }

.footer-col h5 {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--creme-200);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: var(--text-sm);
  color: var(--ardoise-400);
  padding: 5px 0;
  transition: color 0.15s;
  text-decoration: none;
}
.footer-col a:hover { color: var(--creme-200); }

.footer-offices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 42px;
  padding-top: 42px;
  border-top: 1px solid var(--ardoise-800);
}
.footer-office h6 {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--mauve-300);
  margin-bottom: 10px;
}
.footer-office address {
  font-style: normal;
  font-size: var(--text-sm);
  color: var(--ardoise-400);
  line-height: 1.6;
}
.footer-office a { color: var(--mauve-300); text-decoration: none; }
.footer-office a:hover { color: var(--mauve-200); }

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.footer-socials a {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ardoise-700);
  color: var(--creme-200);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.footer-socials a:hover {
  background: rgba(159, 130, 196, 0.15);
  border-color: var(--mauve-500);
  color: var(--mauve-200);
}
.footer-socials svg { width: 16px; height: 16px; }

.footer-bottom {
  border-top: 1px solid var(--ardoise-800);
  padding-top: 26px;
  margin-top: 32px;
  font-size: var(--text-xs);
  color: var(--ardoise-500);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* ─── Custom cursor ───────────────────────────────────────────
   Injected by js/cursor.js. Desktop+hover only.
   Hidden on touch devices and reduced-motion via media query. */
.custom-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--mauve-500);
  background: transparent;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform, width, height;
  transition: width 0.25s var(--ease-out),
              height 0.25s var(--ease-out),
              background 0.25s var(--ease-out),
              border-color 0.25s var(--ease-out),
              opacity 0.2s var(--ease-out);
  mix-blend-mode: difference;
  opacity: 1;
}
.custom-cursor.is-hover {
  width: 40px;
  height: 40px;
  background: var(--mauve-400);
  border-color: transparent;
}
.custom-cursor.is-out {
  opacity: 0;
}

/* Disable the custom cursor on touch-only devices or when the user
   has requested reduced motion. The JS module also short-circuits
   but CSS is the source of truth for visibility. */
@media (hover: none), (prefers-reduced-motion: reduce) {
  .custom-cursor { display: none; }
}

/* ─── Scroll progress indicator ──────────────────────────────
   Injected by js/effects.js initScrollProgress. 2px fixed bar at
   top of viewport. Width written directly to inline style inside
   requestAnimationFrame; CSS transition handles smoothing. */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--mauve-400), var(--marine-400));
  z-index: 1001;
  pointer-events: none;
  will-change: width;
  transition: width 0.1s linear;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
}
