/* ═══ SELF-HOSTED FONTS (GDPR) ═══ */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('fonts/spacegrotesk-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/playfair-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/playfair-italic-latin.woff2') format('woff2');
}

/* ═══ CSS VARIABLES ═══ */
:root {
  --accent: #051972;
  --accent-rgb: 5, 25, 114;
  --accent-text: #ffffff;
  --brand: #051972;
  --brand-text: #ffffff;
  --bg: #F8FAFC;
  --text: #0F172A;
}

html { scroll-behavior: smooth; overflow-x: clip; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

::selection { background: rgba(5, 25, 114, 0.2); color: #0F172A; }

/* Typography */
.font-heading { font-family: 'Space Grotesk', system-ui, sans-serif; }
.font-body { font-family: 'Inter', system-ui, sans-serif; }
.font-drama { font-family: 'Playfair Display', Georgia, serif; }

img { transition: opacity 0.4s ease; }

/* ═══ FAQ ACCORDION ═══ */
details[open] > summary svg { transform: rotate(180deg); }
details summary::-webkit-details-marker { display: none; }
details summary { list-style: none; }

/* ═══ AMBIENT ANIMATIONS ═══ */

/* CTA Button Pulse */
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.4); }
  50% { box-shadow: 0 0 20px 4px rgba(var(--accent-rgb), 0.15); }
}
.cta-pulse { animation: ctaPulse 3s ease-in-out infinite; }
.cta-pulse:hover {
  animation: none;
  box-shadow: 0 0 30px 8px rgba(var(--accent-rgb), 0.25);
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

/* Float */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.animate-float { animation: float 4s ease-in-out infinite; }
.animate-float-slow { animation: float 6s ease-in-out infinite; }

/* Card Shimmer */
.card-shimmer {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-shimmer:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -10px rgba(0,0,0,0.1);
}
.card-shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(-100%);
  transition: transform 0.6s;
  pointer-events: none;
}
.card-shimmer:hover::after { transform: translateX(100%); }

/* Breathe */
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
.animate-breathe { animation: breathe 4s ease-in-out infinite; }

/* Dot Pulse */
@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}
.dot-pulse { animation: dotPulse 2s ease-in-out infinite; }

/* ═══ CSS REVEAL SYSTEM ═══ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed,
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ═══ DECORATIVE BACKGROUNDS ═══ */

.bg-glow-tl {
  background-image: radial-gradient(circle at 0% 0%, rgba(var(--accent-rgb), 0.04) 0%, transparent 50%);
}
.bg-glow-br { position: relative; }
.bg-glow-br::before {
  content: ''; position: absolute; bottom: -20%; right: -10%; width: 50%; height: 60%;
  background: radial-gradient(ellipse, rgba(var(--accent-rgb), 0.04) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}

.bg-dots {
  background-image: radial-gradient(rgba(0,0,0,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}

.bg-grid { position: relative; }
.bg-grid::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(var(--accent-rgb), 0.015) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(var(--accent-rgb), 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none; z-index: 0;
}

.watermark { position: relative; overflow: hidden; }
.watermark::before {
  content: attr(data-watermark);
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 15vw; font-weight: 900;
  color: rgba(0,0,0,0.02);
  white-space: nowrap; pointer-events: none; z-index: 0;
}

.accent-line-top { position: relative; }
.accent-line-top::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 100px; height: 3px;
  background: var(--brand);
  border-radius: 0 0 4px 4px;
}

/* ═══ PROCESS CARD HOVER ═══ */
.process-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
  position: relative;
}
.process-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.process-card .step-number { transition: all 0.4s ease; }
.process-card:hover .step-number {
  color: rgba(var(--accent-rgb), 0.15) !important;
  transform: scale(1.1);
}

.process-card-glow:hover {
  background: radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.06) 0%, #ffffff 60%);
  border-color: rgba(var(--accent-rgb), 0.2);
}

.process-card-accent { position: relative; overflow: hidden; }
.process-card-accent::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--brand);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.3s ease;
}
.process-card-accent:hover::before { transform: scaleY(1); }

.process-card-ring { position: relative; }
.process-card-ring::after {
  content: '';
  position: absolute; inset: -1px; border-radius: inherit;
  border: 1px solid var(--brand);
  opacity: 0; transform: scale(1.05);
  transition: all 0.3s ease; pointer-events: none;
}
.process-card-ring:hover::after { opacity: 0.3; transform: scale(1); }

.process-card-slide { position: relative; z-index: 1; }
.process-card-slide::before {
  content: '';
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to right, rgba(var(--accent-rgb), 0.04), transparent);
  transform: translateX(-100%);
  transition: transform 0.4s ease; z-index: -1;
}
.process-card-slide:hover::before { transform: translateX(0); }

/* ═══ COOKIE BANNER ═══ */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9998;
  background: #1e293b; color: #e2e8f0;
  padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner a { color: #93c5fd; text-decoration: underline; }
.cookie-banner button {
  background: var(--brand); color: white;
  border: none; padding: 0.5rem 1.5rem;
  border-radius: 9999px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
}
