html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: oklch(0.10 0.005 250);
  color: #f5f5f5;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Playfair Display", serif;
}

::selection {
  background: oklch(0.75 0.12 85);
  color: oklch(0.10 0.005 250);
}

.text-gradient-gold {
  background: linear-gradient(135deg, oklch(0.85 0.10 85), oklch(0.75 0.12 85), oklch(0.60 0.14 85));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.border-gold-shimmer {
  border-image: linear-gradient(135deg, oklch(0.60 0.14 85), oklch(0.85 0.10 85), oklch(0.60 0.14 85)) 1;
}

/* ── Glass card — ultra-premium ─────────────────── */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(191, 163, 80, 0.15);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(191, 163, 80, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(191, 163, 80, 0.1), 0 0 0 1px rgba(191, 163, 80, 0.05);
}

/* ── Hero overlay — cinematic multi-layer ──────── */
.hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.7) 0%,
    rgba(10, 10, 10, 0.4) 25%,
    rgba(10, 10, 10, 0.45) 60%,
    rgba(10, 10, 10, 0.8) 100%
  );
}

/* ── Hero video background ─────────────────────── */
#hero-video {
  filter: brightness(0.55) contrast(1.15) saturate(0.9);
}

.gold-line {
  height: 3px;
  background: linear-gradient(90deg, transparent, oklch(0.75 0.12 85), transparent);
  box-shadow: 0 0 12px rgba(191, 163, 80, 0.3);
}

/* ── Hero certification panel (legacy, kept for about page) */
.hero-cert-panel {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* ── Process step cards — image overlay ────────── */
.process-step {
  border: 1px solid rgba(191, 163, 80, 0.08);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.process-step:hover {
  border-color: rgba(191, 163, 80, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 30px rgba(191, 163, 80, 0.06);
}

/* ── Service cards — image overlay style ──────── */
.service-card {
  border: 1px solid rgba(191, 163, 80, 0.08);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover {
  border-color: rgba(191, 163, 80, 0.2);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3), 0 0 40px rgba(191, 163, 80, 0.05);
  transform: translateY(-6px);
}

.counter-value {
  font-variant-numeric: tabular-nums;
}

/* ── Scroll reveal ─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-children.revealed > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.revealed > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.revealed > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.revealed > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.revealed > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.revealed > *:nth-child(6) { transition-delay: 0.6s; }
.stagger-children.revealed > *:nth-child(7) { transition-delay: 0.7s; }
.stagger-children.revealed > *:nth-child(8) { transition-delay: 0.8s; }
.stagger-children.revealed > *:nth-child(9) { transition-delay: 0.9s; }

.stagger-children.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

/* ── Buttons ───────────────────────────────────── */
.btn-gold {
  background: linear-gradient(135deg, oklch(0.60 0.14 85), oklch(0.75 0.12 85), oklch(0.85 0.10 85));
  color: oklch(0.10 0.005 250);
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.btn-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.3) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-gold:hover::after {
  transform: translateX(100%);
}

.btn-gold:hover {
  box-shadow: 0 8px 30px rgba(191, 163, 80, 0.35);
  transform: translateY(-2px);
}

.btn-gold-outline {
  border: 2px solid oklch(0.75 0.12 85);
  color: oklch(0.75 0.12 85);
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-gold-outline:hover {
  background: oklch(0.75 0.12 85);
  color: oklch(0.10 0.005 250);
  box-shadow: 0 8px 30px rgba(191, 163, 80, 0.25);
  transform: translateY(-2px);
}

/* ── Navigation ────────────────────────────────── */
.nav-scrolled {
  background: rgba(10, 10, 10, 0.97) !important;
  backdrop-filter: blur(24px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.2) !important;
  box-shadow: 0 1px 0 rgba(191, 163, 80, 0.06),
              0 8px 40px rgba(0, 0, 0, 0.4);
}

#top-bar {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#main-nav {
  transition: top 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              background 0.5s ease,
              backdrop-filter 0.5s ease,
              -webkit-backdrop-filter 0.5s ease,
              box-shadow 0.5s ease;
}

#lang-toggle:hover i,
.lang-toggle-mobile:hover i {
  transform: scale(1.15);
  transition: transform 0.2s ease;
}

/* ── Form inputs ───────────────────────────────── */
.form-input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(191, 163, 80, 0.15);
  color: #f5f5f5;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.form-input:focus {
  outline: none;
  border-color: oklch(0.75 0.12 85);
  box-shadow: 0 0 0 4px rgba(191, 163, 80, 0.1), 0 0 24px rgba(191, 163, 80, 0.08);
  background: rgba(255, 255, 255, 0.07);
}

.form-input:not(:placeholder-shown) {
  border-color: rgba(191, 163, 80, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.form-input::placeholder {
  color: rgba(245, 245, 245, 0.25);
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23bfa350' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

select.form-input option {
  background: oklch(0.13 0.005 250);
  color: #f5f5f5;
}

.service-number {
  font-family: "Playfair Display", serif;
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(180deg, rgba(191, 163, 80, 0.3), rgba(191, 163, 80, 0.05));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Mobile menu ───────────────────────────────── */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-menu.open {
  transform: translateX(0);
}

/* ── Scrollbar ─────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: oklch(0.10 0.005 250);
}

::-webkit-scrollbar-thumb {
  background: oklch(0.60 0.14 85);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: oklch(0.75 0.12 85);
}

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

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

.animate-delay-200 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-400 { animation-delay: 0.4s; opacity: 0; }
.animate-delay-600 { animation-delay: 0.6s; opacity: 0; }

@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 20px rgba(191, 163, 80, 0.2); }
  50% { box-shadow: 0 0 40px rgba(191, 163, 80, 0.4); }
}

.pulse-gold {
  animation: pulseGold 3s ease-in-out infinite;
}

/* ── FAQ styling ───────────────────────────────── */
.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  content: "";
}

.faq-item[open] {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(191, 163, 80, 0.25);
}

.faq-item summary {
  user-select: none;
}

.faq-item summary:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-block {
  transition: border-color 0.3s ease;
}

.faq-block:hover {
  border-color: rgba(191, 163, 80, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(191, 163, 80, 0.06);
}

.faq-detail-expand summary::-webkit-details-marker {
  display: none;
}

.faq-detail-expand summary::marker {
  content: "";
}

.faq-detail-expand summary {
  user-select: none;
  list-style: none;
}

.faq-detail-expand[open] summary span:first-child {
  content: "Hide details";
}

.faq-block h3 {
  transition: color 0.3s ease;
}

.faq-block:hover h3 {
  color: rgba(245, 245, 245, 1);
}

.faq-block strong {
  font-weight: 600;
}

/* ── Utility animations ────────────────────────── */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* ── Image lazy load fade-in ───────────────────── */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.6s ease;
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([data-src]) {
  opacity: 1;
}

/* ── Reduced motion ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  #hero-video {
    display: none;
  }
}
