/* ==========================================================================
   Krown Multi Services — design system
   Low-contrast dark mode · black→gold gradients · glassmorphism ·
   Space Grotesk display + Inter UI + Instrument Serif italic accents
   ========================================================================== */

:root {
  --bg: #131316;
  --bg-alt: #17171b;
  --surface: #1b1b21;
  --line: #2b2b33;
  --text: #e7e7ea;
  --muted: #a3a3ac;
  --gold: #f5c518;
  --gold-soft: #fbbf24;
  --gold-deep: #d97706;
  --grad-gold: linear-gradient(100deg, #fde68a 0%, #f5c518 45%, #d97706 100%);
  --grad-hero: linear-gradient(125deg, #0a0a0b 0%, #141311 42%, #241d08 78%, #3a2c08 100%);
  --radius: 14px;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain overlay — sits over the gradient surfaces, under everything interactive */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1900;
  pointer-events: none;
  opacity: .02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: rgba(245, 197, 24, .28); color: #fff; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.12rem; letter-spacing: -.01em; }

.serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

.gradient-text {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lucide { width: 20px; height: 20px; stroke-width: 2; }

/* ---------- Layout ---------- */
.container { width: min(1140px, calc(100% - 48px)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 48px)); margin: 0 auto; }

/* Deliberately varied rhythm between sections */
.section { padding: 96px 0; }
.section.alt { padding: 68px 0; background: var(--bg-alt); }
.section.loose { padding: 128px 0 84px; }
.section.compact { padding: 56px 0 104px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(19, 19, 22, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.navbar { display: flex; align-items: center; gap: 28px; padding: 14px 0; }

.brand { display: flex; align-items: center; order: 1; flex-shrink: 0; }
.brand-logo {
  display: block;
  width: auto;
  height: 92px;
  object-fit: contain;
  margin: -14px 0;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1);
}
@media (hover: hover) and (min-width: 641px) {
  .brand:hover .brand-logo { transform: scale(1.05) rotate(-2deg); }
}

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; order: 2; }
.nav-links a {
  padding: 9px 14px;
  border-radius: 10px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s ease, background .2s ease;
}
@media (hover: hover) and (min-width: 641px) {
  .nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
}
.nav-links a.active { color: var(--gold); background: rgba(245, 197, 24, .1); }

.nav-right { display: flex; align-items: center; gap: 12px; order: 3; }

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
}
.lang-switcher button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .06em;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
@media (hover: hover) and (min-width: 641px) {
  .lang-switcher button:hover { color: var(--text); }
}
.lang-switcher button.active { background: var(--gold); color: #1a1405; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 132px;
  background: var(--grad-hero);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -180px;
  right: -120px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 197, 24, .16) 0%, transparent 65%);
  pointer-events: none;
}

.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; position: relative; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1px solid rgba(245, 197, 24, .4);
  border-radius: 999px;
  background: rgba(245, 197, 24, .08);
  color: var(--gold);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.hero h1 { margin-bottom: 22px; }
.hero h1 .serif-accent { display: inline-block; font-size: 1.06em; }

.lead { color: var(--muted); font-size: 1.06rem; max-width: 56ch; }
.hero .lead { margin-bottom: 34px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.pill {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .8rem;
  color: var(--muted);
  background: rgba(255, 255, 255, .02);
}

/* 3 icon boxes in a row */
.icon-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.icon-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .045);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: .86rem;
  font-weight: 500;
  line-height: 1.35;
}
.icon-box .icon-badge { flex-shrink: 0; }

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(245, 197, 24, .12);
  border: 1px solid rgba(245, 197, 24, .3);
  color: var(--gold);
}
.icon-badge .lucide { width: 19px; height: 19px; }

/* Hero side panel — glass */
.hero-panel {
  padding: 36px 34px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.hero-panel h3 { margin: 4px 0 20px; font-size: 1.35rem; }

.hero-list { display: flex; flex-wrap: wrap; gap: 9px; }
.hero-list span {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(19, 19, 22, .5);
  font-size: .82rem;
  color: var(--muted);
  transition: border-color .2s ease, color .2s ease;
}
@media (hover: hover) and (min-width: 641px) {
  .hero-list span:hover { border-color: rgba(245, 197, 24, .5); color: var(--text); }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 96px 0 76px;
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -100px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 197, 24, .12) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 { margin-bottom: 18px; max-width: 20ch; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 500;
  margin-bottom: 30px;
  transition: color .2s ease;
}
@media (hover: hover) and (min-width: 641px) {
  .back-link:hover { color: var(--gold); }
}
.back-link .lucide { width: 16px; height: 16px; }

/* ---------- Eyebrow / headings ---------- */
.eyebrow {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-heading { max-width: 620px; margin-bottom: 46px; }
.section-heading.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-heading h2 { margin-bottom: 14px; }
.section-heading p { color: var(--muted); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* Glassmorphism + colored top-border cards */
.card {
  position: relative;
  display: block;
  padding: 28px 24px 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .09);
  border-top: 2px solid var(--accent, var(--gold));
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
@media (hover: hover) and (min-width: 641px) {
  .card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--accent, var(--gold)) 55%, transparent);
    background: rgba(255, 255, 255, .06);
  }

}
.card h3 { margin: 14px 0 8px; }
.card p { color: var(--muted); font-size: .9rem; }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent, var(--gold)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, var(--gold)) 35%, transparent);
  color: var(--accent, var(--gold));
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--accent, var(--gold));
}
.card-link .lucide { width: 15px; height: 15px; }

/* Service items on category pages */
.svc-item { display: flex; align-items: center; gap: 18px; padding: 22px 24px; }
.svc-item h3 { margin: 0; font-size: 1.02rem; }
.svc-item .card-link { margin-top: 6px; }
.svc-arrow { margin-left: auto; color: var(--muted); flex-shrink: 0; transition: transform .2s ease, color .2s ease; }
@media (hover: hover) and (min-width: 641px) {
  .svc-item:hover .svc-arrow { transform: translate(2px, -2px); color: var(--accent, var(--gold)); }
}

/* ---------- Steps ---------- */
.steps { display: grid; gap: 14px; }
.step {
  display: flex;
  gap: 18px;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .09);
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.step-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grad-gold);
  color: #1a1405;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .92rem;
}
.step h3 { margin-bottom: 5px; font-size: 1.02rem; }
.step p { color: var(--muted); font-size: .9rem; }

/* ---------- Callout / CTA ---------- */
.callout {
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(245, 197, 24, .28);
  border-left: 3px solid var(--gold);
  background: rgba(245, 197, 24, .06);
  color: var(--text);
  font-size: .94rem;
}
.callout a { color: var(--gold); font-weight: 600; }

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 44px 48px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: linear-gradient(120deg, rgba(245, 197, 24, .1), rgba(255, 255, 255, .03) 60%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.cta h2 { margin-bottom: 8px; }
.cta p { color: var(--muted); max-width: 52ch; }

/* ---------- Buttons — fade on hover ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: .94rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .25s ease, transform .25s ease;
  white-space: nowrap;
}
@media (hover: hover) and (min-width: 641px) {
  .btn:hover { opacity: .68; }
}
.btn:active { transform: scale(.98); }

.btn-primary {
  background: var(--grad-gold);
  color: #1a1405;
  box-shadow: 0 8px 26px rgba(245, 197, 24, .22);
}
.btn-secondary {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, .03);
}
.btn .lucide { width: 17px; height: 17px; }

/* ---------- Forms ---------- */
.form-wrap {
  padding: 42px 40px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.form-wrap h2 { margin-bottom: 6px; }
.form-sub { color: var(--muted); font-size: .88rem; margin-bottom: 28px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }

.field label { font-size: .85rem; font-weight: 600; }
.field .help { font-size: .78rem; color: var(--muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(19, 19, 22, .6);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .94rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(245, 197, 24, .6);
  box-shadow: 0 0 0 3px rgba(245, 197, 24, .14);
}
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a3a3ac' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.field ::placeholder { color: #6d6d76; }

.form-note { margin-top: 22px; font-size: .82rem; color: var(--muted); }

/* ---------- Success / 404 ---------- */
.success-box {
  text-align: center;
  padding: 64px 44px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--grad-gold);
  color: #1a1405;
  margin-bottom: 24px;
}
.success-icon .lucide { width: 28px; height: 28px; }
.success-box h1 { margin-bottom: 14px; }
.success-box p { color: var(--muted); max-width: 60ch; margin: 0 auto 30px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: #0e0e11;
  padding: 64px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 46px;
}
.footer-grid > div:nth-child(2),
.footer-grid > div:nth-child(3) { padding-top: 14px; }
.footer-logo { display: block; width: 100%; max-width: 260px; height: auto; margin: 0 0 18px; }
.disclaimer { color: #7c7c85; font-size: .8rem; line-height: 1.7; }
.footer-title {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: .9rem; color: var(--muted); }
.footer-links a { transition: color .2s ease; }
@media (hover: hover) and (min-width: 641px) {
  .footer-links a:hover { color: var(--gold); }
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: .8rem;
  color: #7c7c85;
  text-align: center;
}

/* ---------- Scroll fade-in ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
html.js .reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .nav-right { margin-left: auto; order: 2; }
  .nav-links {
    order: 3;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 24px 20px;
    background: rgba(14, 14, 17, .98);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 14px; font-size: 1rem; }
  .navbar { flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .section.loose { padding: 84px 0 60px; }
  .section.compact { padding: 44px 0 72px; }
  .hero { padding: 76px 0 88px; }
  .page-hero { padding: 64px 0 56px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .icon-row { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-wrap { padding: 30px 22px; }
  .cta { flex-direction: column; align-items: flex-start; padding: 34px 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { text-align: center; }
  .footer-logo { max-width: 200px; margin: 0 auto 14px; }
  .footer-links { align-items: center; }
  .footer-grid > div:nth-child(2), .footer-grid > div:nth-child(3) { padding-top: 0; }
  .success-box { padding: 46px 26px; }
  .lang-switcher button { padding: 6px 9px; font-size: .72rem; }
}

/* ---------- Glass morphism animation ---------- */
.card, .icon-box, .step, .hero-panel, .cta, .form-wrap {
  box-shadow: 0 8px 32px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: transform .25s ease, border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
}
/* Soft light that follows the cursor inside glass panels (desktop only) */
@media (hover: hover) and (min-width: 641px) {
  .card:hover, .icon-box:hover, .step:hover, .hero-panel:hover, .cta:hover {
    background-image: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(245, 197, 24, .085), transparent 70%);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .12);
  }
}
.site-header { box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }

/* Drifting gold glow behind the glass so the blur has something to refract */
.hero::after, .page-hero::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 55%;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 197, 24, .14) 0%, transparent 65%);
  pointer-events: none;
  animation: glass-drift 14s ease-in-out infinite alternate;
}
@keyframes glass-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-90px, 60px) scale(1.25); }
}

@media (prefers-reduced-motion: reduce) {
  .card, .icon-box, .step, .hero-panel, .cta, .form-wrap { transition: none; }
  .hero::after, .page-hero::after { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn, .svc-arrow { transition: none; }
}


.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ==========================================================================
   Site features: theme, loader, progress, skip link, search, FABs, cookie
   notice, form states, hover/focus states, last-updated
   ========================================================================== */

/* ---------- Light theme ---------- */
:root[data-theme="light"] {
  --bg: #f6f4ee;
  --bg-alt: #efece3;
  --surface: #ffffff;
  --line: #ddd8c9;
  --text: #1c1a14;
  --muted: #5d5a4f;
  --gold: #b8860b;
  --gold-soft: #c9951a;
  --grad-hero: linear-gradient(125deg, #fbf7ea 0%, #f6efd8 45%, #f1e2ae 100%);
  color-scheme: light;
}
:root[data-theme="light"] .site-header { background: rgba(246, 244, 238, .85); box-shadow: 0 6px 24px rgba(60, 50, 10, .08); }
@media (hover: hover) and (min-width: 641px) {
  :root[data-theme="light"] .nav-links a:hover { background: rgba(0, 0, 0, .05); }
}
:root[data-theme="light"] .nav-links a.active { background: rgba(184, 134, 11, .12); }
:root[data-theme="light"] .card,
:root[data-theme="light"] .icon-box,
:root[data-theme="light"] .step,
:root[data-theme="light"] .hero-panel,
:root[data-theme="light"] .cta,
:root[data-theme="light"] .form-wrap,
:root[data-theme="light"] .success-box,
:root[data-theme="light"] .callout {
  background-color: rgba(255, 255, 255, .6);
  border-color: rgba(60, 50, 10, .12);
  box-shadow: 0 8px 28px rgba(60, 50, 10, .1), inset 0 1px 0 rgba(255, 255, 255, .8);
}
:root[data-theme="light"] .field input,
:root[data-theme="light"] .field select,
:root[data-theme="light"] .field textarea { background: rgba(255, 255, 255, .85); }
:root[data-theme="light"] .hero-list span { background: rgba(255, 255, 255, .6); }
:root[data-theme="light"] .lang-switcher { background: rgba(0, 0, 0, .03); }
:root[data-theme="light"] .lang-switcher button.active { color: #fff; background: var(--gold); }
:root[data-theme="light"] .btn-primary { color: #1a1405; }
:root[data-theme="light"] .site-footer { background: #ebe7da; }
:root[data-theme="light"] body::after { opacity: .015; }
@media (max-width: 1100px) {
  :root[data-theme="light"] .nav-links { background: rgba(246, 244, 238, .98); }
}

/* ---------- Theme cross-fade ---------- */
html { color-scheme: dark; }
body, .site-header, .card, .form-wrap, .site-footer { transition: background-color .3s ease, color .3s ease, border-color .3s ease; }

/* ---------- Loading animation ---------- */
html.is-loading body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: var(--bg);
}
html.is-loading::after {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 4001;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  border: 3px solid rgba(245, 197, 24, .2);
  border-top-color: var(--gold);
  animation: krown-spin .7s linear infinite;
}
@keyframes krown-spin { to { transform: rotate(360deg); } }
body::before { transition: opacity .35s ease; }

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 5000;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--gold);
  color: #1a1405;
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); outline: 2px solid #fff; outline-offset: 2px; }
main:focus { outline: none; }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 2100; pointer-events: none; }
.scroll-progress-bar {
  height: 100%;
  background: var(--grad-gold);
  transform: scaleX(0);
  transform-origin: left;
  box-shadow: 0 0 10px rgba(245, 197, 24, .6);
}

/* ---------- Sticky header polish ---------- */
.site-header { transition: box-shadow .25s ease, background-color .3s ease; }
.site-header.scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }

/* ---------- Header icon buttons ---------- */
.fx-icon { width: 20px; height: 20px; flex-shrink: 0; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease;
}
@media (hover: hover) and (min-width: 641px) {
  .icon-btn:hover { border-color: var(--gold); color: var(--gold); background: rgba(245, 197, 24, .08); transform: translateY(-1px); }
}
.icon-btn:active { transform: scale(.94); }
@media (max-width: 480px) {
  .nav-right { gap: 8px; }
  .icon-btn, .nav-toggle { width: 38px; height: 38px; }
  .brand-logo { height: 72px; }
}

/* ---------- Hover + focus states ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 8px;
}
.nav-toggle { transition: border-color .2s ease, color .2s ease, background .2s ease; }
@media (hover: hover) and (min-width: 641px) {
  .nav-toggle:hover { border-color: var(--gold); color: var(--gold); background: rgba(245, 197, 24, .08); }
}
@media (hover: hover) and (min-width: 641px) {
  .btn-secondary:hover { border-color: var(--gold); color: var(--gold); opacity: 1; }
}
@media (hover: hover) and (min-width: 641px) {
  .btn-primary:hover { opacity: 1; transform: translateY(-2px); box-shadow: 0 12px 32px rgba(245, 197, 24, .34); }
}
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
@media (hover: hover) and (min-width: 641px) {
  .footer-links a:hover, .callout a:hover { text-decoration: underline; text-underline-offset: 3px; }
}
.card .card-link, .card-link { transition: gap .2s ease, color .2s ease; }
@media (hover: hover) and (min-width: 641px) {
  .card:hover .card-link { color: var(--accent, var(--gold)); }
}
.lang-switcher button:active { transform: scale(.94); }

/* ---------- Search ---------- */
html.no-scroll { overflow: hidden; }
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 3500;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 16px 16px;
  background: rgba(8, 8, 10, .6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fx-fade .18s ease;
}
.search-overlay[hidden] { display: none; }
.search-dialog {
  width: min(620px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(27, 27, 33, .85);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  overflow: hidden;
  animation: fx-pop .22s cubic-bezier(.16, 1, .3, 1);
}
:root[data-theme="light"] .search-dialog { background: rgba(255, 255, 255, .9); border-color: rgba(60, 50, 10, .14); }
:root[data-theme="light"] .search-overlay { background: rgba(60, 50, 10, .25); }
.search-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.search-input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 1.05rem; outline: none; }
.search-input:focus-visible { outline: none; }
.search-close { width: 34px; height: 34px; }
.search-results { list-style: none; max-height: 52vh; overflow-y: auto; padding: 8px; }
.search-item a { display: flex; flex-direction: column; gap: 2px; padding: 11px 14px; border-radius: 10px; transition: background .15s ease; }
.search-item a:hover, .search-item a:focus-visible { background: rgba(245, 197, 24, .1); outline: none; }
.search-title { font-weight: 600; }
.search-meta { font-size: .78rem; color: var(--muted); }
.search-status { padding: 14px 20px 18px; color: var(--muted); font-size: .9rem; }
.search-status:empty { display: none; }
@keyframes fx-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fx-pop { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Floating contact + back to top ---------- */
.fab-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .14);
  cursor: pointer;
  transition: transform .2s ease, opacity .25s ease, box-shadow .2s ease, background .2s ease;
}
@media (hover: hover) and (min-width: 641px) {
  .fab:hover { transform: translateY(-3px); }
}
.fab:active { transform: scale(.94); }
.fab-contact { background: var(--grad-gold); color: #1a1405; box-shadow: 0 10px 28px rgba(245, 197, 24, .35); }
@media (hover: hover) and (min-width: 641px) {
  .fab-contact:hover { box-shadow: 0 14px 36px rgba(245, 197, 24, .5); }
}
.fab-top {
  width: 44px;
  height: 44px;
  background: rgba(27, 27, 33, .75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}
.fab-top.show { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 641px) {
  .fab-top.show:hover { transform: translateY(-3px); color: var(--gold); border-color: var(--gold); }
}
:root[data-theme="light"] .fab-top { background: rgba(255, 255, 255, .85); border-color: rgba(60, 50, 10, .18); }
.fab-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(27, 27, 33, .85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .4);
  animation: fx-pop .2s cubic-bezier(.16, 1, .3, 1);
}
.fab-menu[hidden] { display: none; }
:root[data-theme="light"] .fab-menu { background: rgba(255, 255, 255, .92); border-color: rgba(60, 50, 10, .14); }
.fab-action { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; font-size: .9rem; font-weight: 500; white-space: nowrap; transition: background .15s ease, color .15s ease; }
@media (hover: hover) and (min-width: 641px) {
  .fab-action:hover { background: rgba(245, 197, 24, .12); color: var(--gold); }
}

/* ---------- Cookie notice ---------- */
.cookie-banner {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 3200;
  width: min(380px, calc(100% - 100px));
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(27, 27, 33, .88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
  animation: fx-pop .4s cubic-bezier(.16, 1, .3, 1);
  transition: opacity .3s ease, transform .3s ease;
}
:root[data-theme="light"] .cookie-banner { background: rgba(255, 255, 255, .92); border-color: rgba(60, 50, 10, .14); }
.cookie-banner.leaving { opacity: 0; transform: translateY(12px); }
.cookie-banner strong { font-family: var(--font-display); }
.cookie-banner p { margin: 6px 0 14px; font-size: .84rem; color: var(--muted); line-height: 1.55; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { padding: 9px 16px; font-size: .85rem; flex: 1; justify-content: center; }
@media (max-width: 640px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .fab-dock { bottom: 86px; right: 12px; }
}

/* ---------- Forms: error, success, sending ---------- */
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #f87171; box-shadow: 0 0 0 3px rgba(248, 113, 113, .15); }
.field-error { font-size: .8rem; color: #f87171; margin-top: 2px; animation: fx-fade .2s ease; }
:root[data-theme="light"] .field-error { color: #b91c1c; }
.form-alert { margin-bottom: 20px; padding: 14px 16px; border-radius: 12px; font-size: .9rem; border: 1px solid; }
.form-alert[hidden] { display: none; }
.form-alert.is-error { background: rgba(248, 113, 113, .1); border-color: rgba(248, 113, 113, .45); color: #fca5a5; }
.form-alert.is-success { background: rgba(74, 222, 128, .1); border-color: rgba(74, 222, 128, .45); color: #86efac; }
:root[data-theme="light"] .form-alert.is-error { color: #991b1b; }
:root[data-theme="light"] .form-alert.is-success { color: #166534; }
.form-wrap.is-sending { pointer-events: none; }
.form-wrap.is-sending .btn-primary::after {
  content: '';
  width: 16px;
  height: 16px;
  margin-left: 8px;
  border-radius: 50%;
  border: 2px solid rgba(26, 20, 5, .3);
  border-top-color: #1a1405;
  animation: krown-spin .7s linear infinite;
}

/* ---------- Password toggle ---------- */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 46px; }
.pw-toggle { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); display: inline-flex; padding: 6px; border: 0; background: transparent; color: var(--muted); cursor: pointer; border-radius: 8px; }
@media (hover: hover) and (min-width: 641px) {
  .pw-toggle:hover { color: var(--gold); }
}

/* ---------- Last updated ---------- */
.last-updated { text-align: center; padding: 0 0 26px; font-size: .78rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html.is-loading::after, .form-wrap.is-sending .btn-primary::after { animation-duration: 1.6s; }
  .search-overlay, .search-dialog, .fab-menu, .cookie-banner { animation: none; }
  .scroll-progress-bar { transition: none; }
}

/* Failsafe: never leave the loader up if scripts fail to load */
html.is-loading body::before { animation: krown-failsafe 0s 3s forwards; }
html.is-loading::after { animation: krown-spin .7s linear infinite, krown-failsafe 0s 3s forwards; }
@keyframes krown-failsafe { to { opacity: 0; visibility: hidden; } }
@media (max-width: 640px) {
  body.has-cookie .fab-dock { bottom: 230px; }
}

/* ==========================================================================
   Mobile header: centered logo · menu left · search + theme right
   ========================================================================== */
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-lang { display: none; }

@media (max-width: 1100px) {
  .navbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
  }
  .nav-right { display: contents; }
  .nav-toggle { grid-column: 1; grid-row: 1; justify-self: start; width: 40px; height: 40px; }
  .brand { grid-column: 2; grid-row: 1; order: 0; justify-self: center; }
  .brand-logo { height: 54px; margin: 0; }
  .nav-actions { grid-column: 3; grid-row: 1; justify-self: end; gap: 8px; }
  .nav-actions .icon-btn { width: 40px; height: 40px; border-color: transparent; background: rgba(255, 255, 255, .05); }
  :root[data-theme="light"] .nav-actions .icon-btn { background: rgba(0, 0, 0, .05); }
  .nav-toggle { border-color: transparent; background: rgba(255, 255, 255, .05); }
  :root[data-theme="light"] .nav-toggle { background: rgba(0, 0, 0, .05); }

  /* Vertical glass drawer */
  .nav-links {
    top: calc(100% + 1px);
    gap: 4px;
    padding: 14px 20px 22px;
    background: rgba(19, 19, 22, .985);
    box-shadow: 0 24px 50px rgba(0, 0, 0, .45);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    animation: fx-pop .22s cubic-bezier(.16, 1, .3, 1);
  }
  :root[data-theme="light"] .nav-links { background: rgba(246, 244, 238, .99); }
  .nav-links a { text-align: center; padding: 14px; font-size: 1.02rem; border-radius: 12px; }
  .nav-lang { display: flex; justify-content: center; margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
  .nav-lang .lang-switcher button { padding: 7px 16px; font-size: .8rem; }
}
@media (max-width: 480px) {
  .brand-logo { height: 48px; }
  .nav-actions .icon-btn, .nav-toggle { width: 38px; height: 38px; }
}

/* Keep nav labels on one line (longer ES/PT labels) and give the footer room for the floating buttons */
.nav-links a { white-space: nowrap; }
@media (min-width: 1101px) and (max-width: 1180px) {
  .navbar { gap: 14px; }
  .brand-logo { height: 70px; margin: -8px 0; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 9px 9px; font-size: .86rem; }
  .nav-right, .nav-actions { gap: 8px; }
  .lang-switcher button { padding: 6px 9px; }
}
@media (max-width: 1100px) {
  .site-footer { padding-bottom: 100px; }
}

/* Logo sits centered between the menu button and the search/theme buttons */
@media (max-width: 1100px) {
  .brand { width: 100%; justify-content: center; }
}

/* Soft cursor light (desktop pointers only) */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  width: 420px;
  height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(245, 197, 24, .07) 0%, rgba(245, 197, 24, .025) 40%, transparent 70%);
  transition: opacity .3s ease;
  will-change: transform;
}
.cursor-glow.on { opacity: 1; }
:root[data-theme="light"] .cursor-glow { background: radial-gradient(circle, rgba(184, 134, 11, .09) 0%, rgba(184, 134, 11, .03) 40%, transparent 70%); }
@media (hover: none), (max-width: 640px) { .cursor-glow { display: none; } }
