/* ═══════════════════════════════════════════════════════════════════════
   ZAARANA — Public site design system
   ───────────────────────────────────────────────────────────────────────
   1. Tokens          (color, type, space, radius, elevation, motion)
   2. Base & a11y     (reset, focus, skip link, reduced motion)
   3. Primitives      (container, buttons, icon, section heading)
   4. Header & drawer (+ language switcher)
   5. Hero            (headline + Zaarana City: one building per platform)
   6. Projects        (cards, single-project layout, empty state, modal)
   7. Trust           (certificates, payment methods)
   8. Contact         (channels + form, toast, error)
   9. Footer
  10. Policy pages
  11. Certificate PDF modal
  12. WhatsApp button
   All direction-sensitive rules use logical properties, so Arabic (RTL)
   and English (LTR) share one stylesheet with no [dir] overrides.
═══════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────── 1. TOKENS ─────────────────────────── */
:root {
  /* Brand primitives — taken from the Zaarana logo */
  --z-blue-50:  #EEF3FB;
  --z-blue-100: #DCE6F6;
  --z-blue-300: #8EAEE2;
  --z-blue-500: #4473C5;   /* logo "Z" */
  --z-blue-600: #2F5DB3;   /* AA on white for text & buttons */
  --z-blue-700: #244A93;

  --z-gold-300: #F6D46B;
  --z-gold-500: #E8AE0C;   /* logo Arabic wordmark */
  --z-gold-700: #8A6400;   /* AA on white when gold must be text */

  --z-navy-950: #081430;
  --z-navy-900: #0E1E3F;
  --z-navy-800: #172B55;
  --z-navy-700: #22396A;

  --z-slate-50:  #F4F6FA;
  --z-slate-100: #EBEFF5;
  --z-slate-200: #D9E0EC;
  --z-slate-400: #97A3B9;
  --z-slate-500: #5A6782;
  --z-slate-700: #33405C;

  --z-green-500: #1FAF5A;
  --z-red-600:   #C2362F;
  --z-red-50:    #FCEDEC;

  /* Semantic roles — use these in components */
  --c-page:          var(--z-slate-50);
  --c-surface:       #FFFFFF;
  --c-surface-sunk:  var(--z-slate-100);
  --c-line:          var(--z-slate-200);
  --c-line-strong:   #C3CDDE;
  --c-text:          var(--z-navy-900);
  --c-text-2:        var(--z-slate-700);
  --c-text-muted:    var(--z-slate-500);
  --c-primary:       var(--z-blue-600);
  --c-primary-hover: var(--z-blue-700);
  --c-primary-soft:  var(--z-blue-50);
  --c-signal:        var(--z-gold-500);
  --c-focus:         var(--z-gold-500);
  --c-inverse:       var(--z-navy-900);
  --c-inverse-2:     var(--z-navy-800);
  --c-on-inverse:    #F3F6FC;
  --c-on-inverse-2:  #A9B6D0;
  --c-danger:        var(--z-red-600);
  --c-danger-soft:   var(--z-red-50);
  --c-success:       var(--z-green-500);

  /* Type — one display face, one text face; both cover Arabic + Latin */
  --font-display: 'Readex Pro', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-text:    'IBM Plex Sans Arabic', 'Readex Pro', system-ui, sans-serif;

  /* Modular scale, ratio 1.25 on a 16px base */
  --fs-xs:   0.8rem;     /* 12.8 */
  --fs-sm:   0.875rem;   /* 14   */
  --fs-md:   1rem;       /* 16   */
  --fs-lg:   1.25rem;    /* 20   */
  --fs-xl:   1.5625rem;  /* 25   */
  --fs-2xl:  clamp(1.6rem, 1.2rem + 1.6vw, 1.95rem);
  --fs-3xl:  clamp(1.95rem, 1.4rem + 2.2vw, 2.45rem);
  --fs-hero: clamp(2.35rem, 1.5rem + 3.6vw, 3.8rem);

  --lh-tight: 1.15;
  --lh-snug:  1.35;
  --lh-body:  1.65;

  /* Space — 4px grid */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;
  --section-y: clamp(64px, 9vw, 112px);
  --gutter:    clamp(20px, 5vw, 56px);
  --container: 1200px;
  --header-h:  72px;

  /* Radius — scaled by element size, not one value for everything */
  --r-xs: 6px;    /* chips, inputs inner */
  --r-sm: 10px;   /* buttons, inputs */
  --r-md: 16px;   /* cards */
  --r-lg: 24px;   /* large panels, dialogs */
  --r-pill: 999px;

  /* Elevation — navy-tinted, used sparingly */
  --e-1: 0 1px 2px rgba(14, 30, 63, .06), 0 1px 1px rgba(14, 30, 63, .04);
  --e-2: 0 8px 24px -8px rgba(14, 30, 63, .14);
  --e-3: 0 30px 60px -20px rgba(8, 20, 48, .45);

  /* Motion */
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --t-fast: 140ms;
  --t-base: 240ms;
  --t-slow: 520ms;

  --z-header: 50;
  --z-drawer: 60;
  --z-modal:  80;
  --z-toast:  90;
}

/* Arabic text sits taller — give it more room */
html[dir="rtl"] {
  --lh-tight: 1.3;
  --lh-snug:  1.5;
  --lh-body:  1.85;
}

/* ─────────────────────────── 2. BASE & A11Y ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body.portfolio-page {
  margin: 0;
  min-height: 100vh;
  background: var(--c-page);
  color: var(--c-text);
  font-family: var(--font-text);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* :where() keeps the reset at zero specificity so components always win */
:where(.portfolio-page) :where(h1, h2, h3, p, ul, figure) { margin: 0; }
:where(.portfolio-page) :where(ul) { padding: 0; list-style: none; }
:where(.portfolio-page) :where(img) { max-width: 100%; display: block; }
:where(.portfolio-page) :where(a) { color: inherit; text-decoration: none; }
:where(.portfolio-page) :where(button) { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  inset-inline-start: var(--sp-4);
  top: -60px;
  z-index: 100;
  padding: var(--sp-2) var(--sp-4);
  background: var(--c-inverse);
  color: var(--c-on-inverse);
  border-radius: var(--r-sm);
  font-weight: 600;
  transition: top var(--t-fast);
}
.skip-link:focus { top: var(--sp-3); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

/* ─────────────────────────── 3. PRIMITIVES ─────────────────────────── */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon { width: 1.15em; height: 1.15em; flex: none; }
/* Arrows that point "forward" flip with reading direction */
[dir="rtl"] .icon--dir { transform: scaleX(-1); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 48px;
  padding: 0 var(--sp-6);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-family: var(--font-text);
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.btn--sm { min-height: 40px; padding: 0 var(--sp-4); font-size: var(--fs-sm); }
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-hover); }
.btn--outline { background: var(--c-surface); border-color: var(--c-line-strong); color: var(--c-text); }
.btn--outline:hover { border-color: var(--c-text); }
.btn--outline-primary {
  background: #fff;
  border-color: var(--c-primary);
  color: var(--c-primary);
}
.btn--outline-primary:hover { background: var(--c-primary-soft); }
.btn--quiet { background: transparent; color: var(--c-primary); padding-inline: var(--sp-3); }
.btn--quiet:hover { background: var(--c-primary-soft); }
.btn--signal { background: var(--c-signal); color: var(--z-navy-950); }
.btn--signal:hover { background: var(--z-gold-300); }
.btn--ghost-inverse { background: transparent; border-color: rgba(255,255,255,.28); color: var(--c-on-inverse); }
.btn--ghost-inverse:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}
.pcard__visit--idle,
.pmodal__visit.is-idle {
  pointer-events: none;
  cursor: default;
}

.section { padding-block: var(--section-y); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-6);
  margin-block-end: var(--sp-10);
}
.section-head__title {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
}
.section-head__count {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-text-muted);
  white-space: nowrap;
}

/* ─────────────────────────── 4. HEADER & DRAWER ─────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: var(--header-h);
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-block-end: 1px solid transparent;
  transition: border-color var(--t-base);
}
.site-header.is-scrolled { border-block-end-color: var(--c-line); }

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.logo { display: inline-flex; align-items: center; flex: none; }
.logo__img { height: 40px; width: auto; display: block; }
.logo__text {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--c-text);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  margin-inline-start: auto;
}
.site-nav__link {
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-xs);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-text-2);
  transition: color var(--t-fast), background-color var(--t-fast);
}
.site-nav__link:hover { color: var(--c-text); background: var(--c-surface-sunk); }

/* Dark variant: the home page header sits on the night city */
.site-header--dark {
  background: var(--z-navy-950);
  color: var(--c-on-inverse);
}
.site-header--dark.is-scrolled { border-block-end-color: rgba(255,255,255,.1); }
.site-header--dark .logo__img { height: 42px; }
.site-header--dark .logo__text { color: #fff; }
.site-header--dark .site-nav__link { color: #DCE3F2; }
.site-header--dark .site-nav__link:hover { color: #fff; background: rgba(255,255,255,.08); }
.site-header--dark .lang-btn,
.site-header--dark .menu-btn { background: transparent; border-color: rgba(255,255,255,.25); color: var(--c-on-inverse); }
.site-header--dark .lang-btn > svg:first-child { color: var(--c-on-inverse-2); }
.site-header--dark .lang-btn:hover,
.site-header--dark .lang-btn[aria-expanded="true"] { border-color: rgba(255,255,255,.6); }
.site-header--dark .lang-menu { color: var(--c-text); }
.site-header--dark .header-cta { background: var(--c-signal); color: var(--z-navy-950); }
.site-header--dark .header-cta:hover { background: var(--z-gold-300); }

.header-controls { display: flex; align-items: center; gap: var(--sp-3); }

.menu-btn {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  background: var(--c-surface);
  cursor: pointer;
}
.menu-btn svg { width: 22px; height: 22px; }

/* Language switcher (partial: _SiteLanguageSwitcher) */
.lang-wrap { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  height: 40px;
  padding: 0 var(--sp-3);
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  background: var(--c-surface);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--t-fast);
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: var(--c-line-strong); }
.lang-btn > svg:first-child { width: 18px; height: 18px; color: var(--c-text-muted); }
.lang-btn__chevron { width: 12px; height: 12px; transition: transform var(--t-fast); }
.lang-btn[aria-expanded="true"] .lang-btn__chevron { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  min-width: 190px;
  padding: var(--sp-2);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  box-shadow: var(--e-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
}
.lang-menu.open { opacity: 1; visibility: visible; transform: none; }
.lang-menu__item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-xs);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.lang-menu__item:hover { background: var(--c-surface-sunk); }
.lang-menu__item.is-active { background: var(--c-primary-soft); color: var(--c-primary); font-weight: 600; }
.lang-menu__flag img { width: 22px; height: 16px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px var(--c-line); }

/* Drawer (mobile) */
.drawer-overlay {
  position: fixed; inset: 0;
  z-index: var(--z-drawer);
  background: rgba(8, 20, 48, .45);
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-base), visibility var(--t-base);
}
.drawer-overlay.open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0; bottom: 0;
  inset-inline-end: 0;
  z-index: calc(var(--z-drawer) + 1);
  width: min(340px, 88vw);
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
  padding: var(--sp-6);
  background: var(--c-surface);
  box-shadow: var(--e-3);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform var(--t-base) var(--ease-out), visibility var(--t-base);
}
[dir="rtl"] .drawer { transform: translateX(-105%); }
.drawer.open { transform: none; visibility: visible; }

.drawer-header { display: flex; align-items: center; justify-content: space-between; }
.drawer-logo { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600; }
.drawer-close {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--c-line); border-radius: var(--r-sm);
  background: var(--c-surface); cursor: pointer;
}
.drawer-close svg { width: 20px; height: 20px; }

.drawer-nav { display: flex; flex-direction: column; }
.drawer-link {
  padding: var(--sp-4) 0;
  border-block-end: 1px solid var(--c-line);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 500;
}
.drawer-lang-label { font-size: var(--fs-sm); color: var(--c-text-muted); margin-block-end: var(--sp-3); }
.drawer-lang-pills { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.drawer-lang-pill {
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.drawer-lang-pill.is-on { background: var(--c-inverse); border-color: var(--c-inverse); color: var(--c-on-inverse); }
.drawer-foot { margin-block-start: auto; font-size: var(--fs-xs); color: var(--c-text-muted); }

/* ─────────────────────────── 5. HERO — ZAARANA CITY ─────────────────────────── */
/* A night-time isometric city. Every platform from the dashboard is a building
   (lots and heights are fixed slots, filled in display order); unused lots stay
   as low decorative blocks so the city always looks complete. Labels are the
   real links (keyboard + screen readers); buildings are pointer shortcuts. */

@property --h {
  syntax: "<length>";
  inherits: true;
  initial-value: 0px;
}

.hero {
  position: relative;
  padding-block: clamp(32px, 5vw, 64px) clamp(56px, 6vw, 80px);
  background:
    radial-gradient(120% 90% at 15% 100%, #1D3570 0%, transparent 55%),
    linear-gradient(180deg, var(--z-navy-950) 0%, var(--z-navy-900) 60%, #132a57 100%);
  color: var(--c-on-inverse);
  isolation: isolate;
  overflow: hidden;
}
/* Star field: a few fixed points, no script */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 45% 0;
  z-index: -1;
  opacity: .55;
  background-image:
    radial-gradient(1.4px 1.4px at 8% 22%, #fff, transparent),
    radial-gradient(1px 1px at 17% 48%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 26% 12%, #fff, transparent),
    radial-gradient(1px 1px at 33% 64%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 44% 30%, #fff, transparent),
    radial-gradient(1px 1px at 52% 8%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 61% 52%, #fff, transparent),
    radial-gradient(1px 1px at 69% 18%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 78% 40%, #fff, transparent),
    radial-gradient(1px 1px at 86% 10%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 93% 58%, #fff, transparent),
    radial-gradient(1px 1px at 4% 70%, #fff, transparent),
    radial-gradient(1px 1px at 38% 86%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 73% 80%, #fff, transparent);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
}
[dir="rtl"] .hero__title { letter-spacing: 0; }

.hero__desc {
  margin-block-start: var(--sp-5);
  max-width: 36ch;
  padding-inline-start: clamp(var(--sp-6), 5vw, var(--sp-12));
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
  color: var(--c-on-inverse-2);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-block-start: var(--sp-10);
}

.hero__hint {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-block-start: var(--sp-8);
  font-size: var(--fs-sm);
  color: var(--c-on-inverse-2);
}
.hero__hint-light {
  width: 10px; height: 10px;
  flex: none;
  border-radius: 50%;
  background: var(--c-signal);
  box-shadow: 0 0 12px var(--c-signal);
}

@media (min-width: 768px) {
  .hero__hint {
    max-width: 42ch;
    font-size: var(--fs-lg);
    font-weight: 500;
    line-height: var(--lh-snug);
    color: var(--c-on-inverse);
  }
  .hero__hint-light { width: 12px; height: 12px; }
}

/* ── The city ── */
.city {
  --stage-w: 880px;
  --stage-h: 700px;
  position: relative;
  width: calc(100% + 96px);
  margin-inline-end: -96px;
  aspect-ratio: 880 / 700;
  min-width: 0;
}
.city__stage {
  position: absolute;
  left: 0; top: 0;
  width: var(--stage-w);
  height: var(--stage-h);
  transform-origin: 0 0;
  transform: scale(var(--city-scale, 1));
}
.city__world {
  position: absolute;
  left: 160px;
  top: 150px;
  width: 560px;
  height: 560px;
  transform: rotateX(60deg) rotateZ(45deg);
  transform-style: preserve-3d;
}
.city__ground {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background-color: #132a57;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 40px 40px;
  box-shadow: 0 0 0 2px rgba(142,174,226,.25), 0 0 120px 30px rgba(68,115,197,.35);
}
.city__road { position: absolute; background: #0b1a3c; }
.city__road--x { left: 0; right: 0; top: 262px; height: 36px; }
.city__road--y { top: 0; bottom: 0; left: 262px; width: 36px; }
.city__road::after {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: repeat-x;
  background-position: center;
  background-size: 26px 2px;
  background-image: linear-gradient(90deg, transparent 0 12px, rgba(232,174,12,.6) 12px 26px);
}
.city__road--y::after {
  background-repeat: repeat-y;
  background-size: 2px 26px;
  background-image: linear-gradient(180deg, transparent 0 12px, rgba(232,174,12,.6) 12px 26px);
}

/* A building: a box with a south face, an east face and a roof.
   Geometry comes from --x --y --w --d --bh (set inline per lot). */
.bld {
  --h: var(--bh);
  --roof: #2a4277; --wall-s: #1b305e; --wall-e: #223a6c;
  --lit: rgba(246,212,107,.25); --lit-2: rgba(246,212,107,.18);
  position: absolute;
  left: var(--x); top: var(--y);
  width: var(--w); height: var(--d);
  transform-style: preserve-3d;
}
.bld > span { position: absolute; display: block; backface-visibility: hidden; }
.bld__s {
  left: 0;
  top: calc(var(--d) - var(--h));
  width: var(--w);
  height: var(--h);
  transform-origin: bottom;
  transform: rotateX(-90deg);
  background:
    repeating-linear-gradient(0deg, transparent 0 10px, var(--wall-s) 10px 22px),
    repeating-linear-gradient(90deg, var(--wall-s) 0 6px, var(--lit) 6px 16px);
}
.bld__e {
  left: calc(var(--w) - var(--h));
  top: 0;
  width: var(--h);
  height: var(--d);
  transform-origin: right;
  transform: rotateY(90deg);
  background:
    repeating-linear-gradient(90deg, transparent 0 10px, var(--wall-e) 10px 22px),
    repeating-linear-gradient(0deg, var(--wall-e) 0 6px, var(--lit-2) 6px 16px);
}
.bld__t {
  inset: 0;
  transform: translateZ(var(--h));
  background: var(--roof);
  transition: filter var(--t-base);
}
/* Roof beacon in the platform's own colour */
.bld__beacon {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  border: 4px solid var(--beacon, var(--c-signal));
  transition: box-shadow var(--t-base);
}

.bld--t1 { --roof:#22396A; --wall-s:#0c1a3a; --wall-e:#132a57; --lit:#E8AE0C; --lit-2:rgba(232,174,12,.55); }
.bld--t2 { --roof:#8EAEE2; --wall-s:#2F5DB3; --wall-e:#4473C5; --lit:#DCE6F6; --lit-2:#EEF3FB; }
.bld--t3 { --roof:#F6D46B; --wall-s:#b7860a; --wall-e:#E8AE0C; --lit:#FFF3C4; --lit-2:#FFF3C4; }
.bld--t4 { --roof:#3A5A9A; --wall-s:#172B55; --wall-e:#22396A; --lit:#8EAEE2; --lit-2:rgba(142,174,226,.6); }
.bld--t5 { --roof:#DCE3F2; --wall-s:#4F5D7A; --wall-e:#6B7A97; --lit:#FFF3C4; --lit-2:#F6D46B; }

.bld--project { cursor: pointer; }
.bld.is-hot .bld__t { filter: brightness(1.25); }
.bld.is-hot .bld__beacon { box-shadow: 0 0 28px 6px var(--beacon, var(--c-signal)); }

/* Platform sign on the building's south face (the platform's own image) */
.bld__sign {
  position: absolute;
  left: 10px; right: 10px;
  top: 12px;
  height: 46px;
  padding: 3px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 0 0 2px var(--beacon, var(--c-signal)), 0 0 18px rgba(255,255,255,.25);
  overflow: hidden;
}
.bld__sign img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; display: block; }

/* Street life: lamps along the roads, two cars, a few windows that switch on and off */
.city__lamp {
  position: absolute;
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: #FFE7A0;
  box-shadow: 0 0 8px 3px rgba(246, 212, 107, .55);
}
.city__car {
  position: absolute;
  width: 18px; height: 9px;
  border-radius: 3px;
  background: #F3F6FC;
  box-shadow: 0 0 10px 2px rgba(255, 244, 200, .5);
}
.city__car--x { top: 268px; left: 0; }
.city__car--y { left: 285px; top: 0; width: 9px; height: 18px; background: #E8AE0C; }

@property --lit-on {
  syntax: "<color>";
  inherits: true;
  initial-value: rgba(246,212,107,.25);
}
.bld--flicker { --lit: var(--lit-on); }

@media (prefers-reduced-motion: no-preference) {
  .js .city__car--x { animation: car-x 11s linear infinite; }
  .js .city__car--y { animation: car-y 14s linear 3s infinite both; }
  .js .bld--flicker { animation: city-rise 1100ms var(--ease-out) both, window-flicker 7s steps(1) 2s infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .city__car { display: none; }
}
@keyframes car-x { from { transform: translateX(-30px); } to { transform: translateX(570px); } }
@keyframes car-y { from { transform: translateY(590px); } to { transform: translateY(-40px); } }
@keyframes window-flicker {
  0%, 100% { --lit-on: rgba(246,212,107,.25); }
  40%      { --lit-on: rgba(246,212,107,.75); }
  70%      { --lit-on: rgba(246,212,107,.12); }
}

/* Skyline cut-out: the night ends in a row of rooftops */
.hero__skyline {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: 56px;
  display: block;
  color: var(--c-page);
  pointer-events: none;
}

/* Labels: real links, placed over each roof by home.js */
.city__labels { position: absolute; inset: 0; pointer-events: none; }
.city__label {
  position: absolute;
  left: 0; top: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -100%);
  pointer-events: auto;
  opacity: 0;
  transition: opacity var(--t-base);
}
.city.is-placed .city__label { opacity: 1; }
.city__label-card {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  background: #fff;
  color: var(--c-text);
  border-radius: 12px;
  box-shadow: 0 12px 24px -8px rgba(0,0,0,.5);
  white-space: nowrap;
  transition: outline-color var(--t-fast), transform var(--t-fast);
  outline: 3px solid transparent;
}
.city__label-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--beacon, var(--c-signal)); }
.city__label-name { display: block; font-family: var(--font-display); font-weight: 600; font-size: 15px; line-height: 1.3; }
.city__label-host { display: block; font-size: 11px; color: var(--c-text-muted); direction: ltr; text-align: start; }
[dir="rtl"] .city__label-host { text-align: end; }
.city__label::after {
  content: "";
  width: 2px; height: var(--stem, 30px);
  background: linear-gradient(#fff, rgba(255,255,255,0));
}
.city__label:focus-visible { outline: none; }
.city__label:focus-visible .city__label-card,
.city__label.is-hot .city__label-card { outline-color: var(--c-signal); transform: translateY(-2px); }

.city__more {
  position: absolute;
  inset-inline-end: 0;
  bottom: 0;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,.25);
  font-size: var(--fs-sm);
  color: var(--c-on-inverse);
  background: rgba(8,20,48,.6);
}
.city__more:hover { border-color: #fff; }

/* No JS: labels become a simple list under the city */
html:not(.js) .city__labels { position: static; display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }
html:not(.js) .city__label { position: static; opacity: 1; transform: none; }
html:not(.js) .city__label::after { display: none; }
html:not(.js) .city { aspect-ratio: auto; }
html:not(.js) .city__stage { position: relative; }

/* One orchestrated moment: the city rises, front to back */
@media (prefers-reduced-motion: no-preference) {
  .js .bld { animation: city-rise 1100ms var(--ease-out) both; animation-delay: calc(120ms + var(--i, 0) * 70ms); }
}
@keyframes city-rise { from { --h: 0px; } }

/* ─────────────────────────── 6. PROJECTS ─────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: var(--sp-6);
}

.pcard {
  --project-accent: var(--c-primary);
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.pcard:hover { border-color: var(--c-line-strong); box-shadow: var(--e-2); }

.pcard__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--c-surface-sunk);
  border-block-end: 1px solid var(--c-line);
  overflow: hidden;
}
.pcard__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}
.pcard:hover .pcard__media img { transform: scale(1.025); }
.pcard__placeholder {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 600;
  color: var(--project-accent);
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--project-accent) 18%, transparent), transparent 60%),
    var(--c-surface-sunk);
}

.pcard__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-6);
}

.pcard__head { display: flex; align-items: center; gap: var(--sp-3); }
.pcard__swatch {
  width: 12px; height: 12px;
  flex: none;
  border-radius: 4px;
  background: var(--project-accent);
}
.pcard__title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: var(--lh-snug);
}

.pcard__domain {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  align-self: flex-start;
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  direction: ltr;
}
.pcard__domain .icon { width: 15px; height: 15px; }

.pcard__desc {
  color: var(--c-text-2);
  font-size: var(--fs-md);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pcard__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-block-start: auto;
  padding-block-start: var(--sp-4);
}

/* A single project gets a wide, side-by-side layout instead of a lonely card */
.projects-grid:has(> .pcard:only-child) { grid-template-columns: 1fr; }
.pcard:only-child { flex-direction: row; }
.pcard:only-child .pcard__media {
  flex: 0 0 52%;
  aspect-ratio: auto;
  min-height: 340px;
  border-block-end: 0;
  border-inline-end: 1px solid var(--c-line);
}
.pcard:only-child .pcard__body { padding: clamp(24px, 4vw, 48px); justify-content: center; }
.pcard:only-child .pcard__title { font-size: var(--fs-2xl); }
.pcard:only-child .pcard__desc { -webkit-line-clamp: 6; font-size: var(--fs-lg); line-height: var(--lh-snug); }
.pcard:only-child .pcard__actions { margin-block-start: var(--sp-4); }

/* Empty state */
.empty-state {
  display: grid;
  justify-items: center;
  gap: var(--sp-3);
  padding: var(--sp-16) var(--sp-6);
  text-align: center;
  background: var(--c-surface);
  border: 1px dashed var(--c-line-strong);
  border-radius: var(--r-md);
}
.empty-state__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--c-primary-soft);
  color: var(--c-primary);
}
.empty-state__icon svg { width: 28px; height: 28px; }
.empty-state__title { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600; }
.empty-state__sub { max-width: 46ch; color: var(--c-text-muted); }

/* Project detail dialog */
.pmodal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: var(--sp-4);
}
.pmodal[hidden] { display: none; }
.pmodal__backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 20, 48, .55);
  opacity: 0;
  transition: opacity var(--t-base);
}
.pmodal__panel {
  position: relative;
  width: min(640px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: var(--c-surface);
  border-radius: var(--r-lg);
  box-shadow: var(--e-3);
  opacity: 0;
  transform: translateY(12px) scale(.98);
  transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out);
}
.pmodal.is-open .pmodal__backdrop { opacity: 1; }
.pmodal.is-open .pmodal__panel { opacity: 1; transform: none; }

.pmodal__media { aspect-ratio: 16 / 9; background: var(--c-surface-sunk); }
.pmodal__media img { width: 100%; height: 100%; object-fit: cover; }
.pmodal__media:empty { display: none; }
.pmodal__body { display: grid; gap: var(--sp-3); padding: var(--sp-8); }
.pmodal__title { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 600; line-height: var(--lh-tight); }
.pmodal__text { color: var(--c-text-2); white-space: pre-line; }
.pmodal__actions { display: flex; justify-content: flex-end; gap: var(--sp-2); margin-block-start: var(--sp-4); }
.pmodal__close {
  position: absolute;
  top: var(--sp-3);
  inset-inline-end: var(--sp-3);
  z-index: 1;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--e-1);
  cursor: pointer;
}
.pmodal__close svg { width: 18px; height: 18px; }

/* ─────────────────────────── 7. TRUST ─────────────────────────── */
.trust {
  padding-block: clamp(48px, 6vw, 72px);
  background: var(--c-surface);
  border-block: 1px solid var(--c-line);
}
.trust__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
}
.trust__inner--single { grid-template-columns: 1fr; }
.trust__group-title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-block-end: var(--sp-5);
}
.trust__list { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

.cert {
  display: grid;
  place-items: center;
  height: 84px;
  min-width: 132px;
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.cert img { max-height: 60px; width: auto; object-fit: contain; }
button.cert { cursor: zoom-in; }
button.cert:hover { border-color: var(--c-line-strong); box-shadow: var(--e-1); }

.pay {
  display: grid;
  place-items: center;
  height: 48px;
  min-width: 76px;
  padding: var(--sp-2) var(--sp-4);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
}
.pay img { height: 22px; width: auto; }

/* ─────────────────────────── 8. CONTACT ─────────────────────────── */
.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.contact__title {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
[dir="rtl"] .contact__title { letter-spacing: 0; }
.contact__lead { margin-block-start: var(--sp-4); max-width: 40ch; color: var(--c-text-2); font-size: var(--fs-lg); line-height: var(--lh-snug); }

.channels { display: grid; gap: var(--sp-3); margin-block-start: var(--sp-8); }
.channel {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  transition: border-color var(--t-fast);
}
.channel:hover { border-color: var(--c-line-strong); }
.channel__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--c-primary-soft);
  color: var(--c-primary);
}
.channel__icon svg { width: 22px; height: 22px; }
.channel--whatsapp .channel__icon { background: #E7F7EE; color: #128C4A; }
.channel__label { display: block; font-size: var(--fs-sm); color: var(--c-text-muted); }
.channel__value {
  display: block;
  font-weight: 600;
  direction: ltr;
  text-align: start;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
[dir="rtl"] .channel__value { text-align: end; }
.channel__go { width: 20px; height: 20px; color: var(--c-text-muted); }

.form-card {
  padding: clamp(24px, 4vw, 40px);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--e-2);
}
.form-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 600;
  margin-block-end: var(--sp-6);
}

.ft-form { display: grid; gap: var(--sp-5); }
.ft-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.ft-field { display: grid; gap: var(--sp-2); }
.ft-label { font-size: var(--fs-sm); font-weight: 600; color: var(--c-text-2); }
.ft-input {
  width: 100%;
  min-height: 48px;
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-page);
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  font-family: var(--font-text);
  font-size: var(--fs-md);
  color: var(--c-text);
  transition: border-color var(--t-fast), background-color var(--t-fast), box-shadow var(--t-fast);
}
.ft-input:hover { border-color: var(--c-line-strong); }
.ft-input:focus {
  outline: none;
  background: var(--c-surface);
  border-color: var(--c-primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-primary) 16%, transparent);
}
.ft-input[type="email"] { direction: ltr; }
[dir="rtl"] .ft-input[type="email"] { text-align: end; }
.ft-input[aria-invalid="true"] { border-color: var(--c-danger); background: var(--c-surface); }
.ft-field-error { font-size: var(--fs-sm); font-weight: 500; color: var(--c-danger); }
.ft-field-error:empty { display: none; }
.ft-textarea { min-height: 140px; resize: vertical; line-height: var(--lh-body); }
.ft-submit { width: 100%; min-height: 52px; }
.ft-honeypot { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }

.ft-error-banner {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  margin-block-end: var(--sp-5);
  background: var(--c-danger-soft);
  color: var(--c-danger);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.ft-error-banner[hidden] { display: none; }
.ft-error-banner svg { width: 20px; height: 20px; flex: none; }

.spinner { width: 20px; height: 20px; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.success-toast {
  position: fixed;
  inset-block-end: var(--sp-6);
  inset-inline-end: var(--sp-6);
  z-index: var(--z-toast);
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 32px;
  gap: var(--sp-3);
  align-items: start;
  width: min(400px, calc(100vw - 32px));
  padding: var(--sp-4);
  background: var(--c-inverse);
  color: var(--c-on-inverse);
  border-radius: var(--r-md);
  box-shadow: var(--e-3);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out);
}
.success-toast[hidden] { display: none; }
.success-toast.is-visible { opacity: 1; transform: none; }
.success-toast__icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(31, 175, 90, .18);
  color: #5FD893;
}
.success-toast__icon svg { width: 22px; height: 22px; }
.success-toast__title { font-weight: 600; line-height: var(--lh-snug); }
.success-toast__sub { margin-block-start: var(--sp-1); font-size: var(--fs-sm); color: var(--c-on-inverse-2); line-height: var(--lh-snug); }
.success-toast__x {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: transparent; color: var(--c-on-inverse-2);
  cursor: pointer;
}
.success-toast__x:hover { background: rgba(255,255,255,.08); color: var(--c-on-inverse); }
.success-toast__x svg { width: 14px; height: 14px; }

/* ─────────────────────────── 9. FOOTER ─────────────────────────── */
.site-footer {
  background: var(--c-inverse);
  color: var(--c-on-inverse-2);
  font-size: var(--fs-sm);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4) var(--sp-8);
  padding-block: var(--sp-8);
}
.site-footer__brand {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--c-on-inverse);
}
.site-footer__brand--mobile { display: none; }
.site-footer__copy { margin-inline-end: auto; }
.site-footer__copy--mobile { display: none; }
.site-footer__link--mobile { display: none; }
.site-footer__links, .site-footer__lang { display: flex; align-items: center; gap: var(--sp-5); }
.site-footer a { color: var(--c-on-inverse-2); transition: color var(--t-fast); }
.site-footer a:hover, .site-footer a.is-on { color: var(--c-on-inverse); }
.site-footer__lang a { font-weight: 600; }
.site-footer__lang a.is-on { color: var(--c-signal); }

/* ─────────────────────────── 10. POLICY PAGES ─────────────────────────── */
.policy-hero {
  padding-block: clamp(40px, 6vw, 72px) clamp(32px, 4vw, 48px);
  background: var(--c-surface);
  border-block-end: 1px solid var(--c-line);
}
.policy-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  margin-block-end: var(--sp-4);
}
.policy-breadcrumb a { color: var(--c-primary); }
.policy-breadcrumb a:hover { text-decoration: underline; }
.policy-hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 600;
  line-height: var(--lh-tight);
}
.policy-page { min-height: calc(100vh - var(--header-h) - 96px); }
.policy-body { padding-block: clamp(40px, 6vw, 72px) var(--section-y); }
.policy-prose {
  max-width: 72ch;
  font-size: 1.0625rem;
  color: var(--c-text-2);
  white-space: pre-line;
}
.policy-empty { color: var(--c-text-muted); }

/* ─────────────────────────── 11. CERTIFICATE PDF MODAL ─────────────────────────── */
.cert-pdf-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-pdf-modal[hidden] { display: none !important; }
.cert-pdf-modal__backdrop { position: absolute; inset: 0; background: rgba(8, 20, 48, .72); }
.cert-pdf-modal__panel {
  position: relative;
  z-index: 1;
  width: min(960px, 96vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: var(--z-navy-950);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-md);
  overflow: hidden;
}
.cert-pdf-modal__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-block-end: 1px solid rgba(255, 255, 255, .08);
}
.cert-pdf-modal__title {
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-on-inverse);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cert-pdf-modal__actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; direction: ltr; }
.cert-pdf-modal__btn {
  min-width: 36px; height: 36px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-xs);
  background: rgba(255, 255, 255, .06);
  color: var(--c-on-inverse);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.cert-pdf-modal__btn:hover { background: rgba(255, 255, 255, .12); }
.cert-pdf-modal__page { min-width: 48px; text-align: center; font-size: var(--fs-xs); color: var(--c-on-inverse-2); }
.cert-pdf-modal__body {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 200px;
  padding: var(--sp-4);
  overflow: auto;
  background: var(--z-navy-900);
}
.cert-pdf-modal__loading {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 20, 48, .72);
}
.cert-pdf-modal__loading[hidden] { display: none !important; }
.cert-pdf-modal__spinner {
  width: 36px; height: 36px;
  border: 3px solid rgba(255, 255, 255, .18);
  border-top-color: var(--c-signal);
  border-radius: 50%;
  animation: spin .75s linear infinite;
}
#certPdfCanvas { max-width: 100%; height: auto; box-shadow: 0 8px 32px rgba(0, 0, 0, .35); }

/* ─────────────────────────── 12. WHATSAPP BUTTON ─────────────────────────── */
.whatsapp-fab {
  position: fixed;
  inset-block-end: var(--sp-6);
  inset-inline-start: var(--sp-6);
  z-index: calc(var(--z-header) - 1);
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #25D366;
  color: #fff !important;
  box-shadow: 0 10px 24px -6px rgba(18, 140, 74, .55);
  transition: transform var(--t-fast);
}
.whatsapp-fab:hover { transform: scale(1.06); }
.whatsapp-fab svg { width: 28px; height: 28px; }

/* ─────────────────────────── RESPONSIVE ─────────────────────────── */
@media (max-width: 1023px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__desc { max-width: 46ch; }
  .city { width: 100%; max-width: 720px; margin-inline: auto; margin-block-start: var(--sp-12); }
  .contact__inner { grid-template-columns: 1fr; }
  .pcard:only-child { flex-direction: column; }
  .pcard:only-child .pcard__media {
    flex: none;
    aspect-ratio: 16 / 9;
    min-height: 0;
    border-inline-end: 0;
    border-block-end: 1px solid var(--c-line);
  }
}

@media (max-width: 767px) {
  :root { --header-h: 56px; }
  .site-header__inner { gap: var(--sp-3); }
  .logo__img { height: 30px; }
  .site-header--dark .logo__img { height: 30px; }
  .lang-btn {
    height: 34px;
    padding: 0 var(--sp-2);
    font-size: var(--fs-xs);
    gap: 6px;
  }
  .lang-btn > svg:first-child { width: 15px; height: 15px; }
  .lang-btn__chevron { width: 10px; height: 10px; }
  .menu-btn {
    width: 38px;
    height: 38px;
  }
  .menu-btn svg { width: 18px; height: 18px; }
  .header-controls { gap: var(--sp-2); }
  .hero__title { font-size: clamp(1.65rem, 5.4vw, 2.1rem); }
  .hero__desc { font-size: var(--fs-md); }
  .section-head__title { font-size: clamp(1.3rem, 4.2vw, 1.7rem); }
  .contact__title { font-size: clamp(1.3rem, 4.2vw, 1.7rem); }
  .trust__group-title { font-size: var(--fs-md); }
  .pcard__title { font-size: var(--fs-md); }
  .pcard__desc { font-size: var(--fs-sm); }
  .form-card__title { font-size: var(--fs-lg); }
  .ft-label { font-size: var(--fs-xs); }
  .ft-input { font-size: var(--fs-sm); min-height: 44px; }
  .ft-field-error { font-size: var(--fs-xs); }
  .btn--sm { min-height: 36px; font-size: 0.78rem; }
  .site-nav { display: none; }
  .header-controls { margin-inline-start: auto; }
  .header-cta { display: none; }
  .menu-btn { display: inline-flex; }

  .hero__actions .btn { flex: 1 1 auto; }
  .hero__desc {
    padding-inline-start: clamp(var(--sp-8), 8vw, var(--sp-16));
  }
  .hero__hint {
    max-width: none;
    white-space: nowrap;
    font-size: clamp(0.7rem, 2.8vw, 0.8125rem);
    font-weight: 500;
    line-height: var(--lh-snug);
    color: var(--c-on-inverse);
    gap: var(--sp-2);
  }
  .hero__hint-light { width: 12px; height: 12px; }
  .city { width: calc(100% + var(--gutter) * 2); max-width: none; margin-inline: calc(var(--gutter) * -1); margin-block-start: var(--sp-16); }
  .city__more { inset-inline-end: var(--gutter); }
  .city__label-host { display: none; }
  .city__label-card { padding: 6px 10px; border-radius: 10px; gap: 6px; }
  .city__label-name { font-size: 11px; }
  .city__label-dot { width: 8px; height: 8px; }

  .section-head { margin-block-end: var(--sp-6); }
  .site-footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--sp-3);
  }
  .site-footer__brand--desktop { display: none; }
  .site-footer__brand--mobile {
    display: inline;
    order: 1;
    font-size: var(--fs-md);
  }
  .site-footer__copy--desktop { display: none; }
  .site-footer__copy--mobile {
    display: block;
    order: 3;
    margin: 0;
    white-space: nowrap;
    font-size: clamp(0.62rem, 2.5vw, 0.78rem);
    line-height: var(--lh-snug);
  }
  .site-footer__copy-rights,
  .site-footer__copy-mark {
    display: inline;
    white-space: nowrap;
  }
  .site-footer__copy-mark {
    direction: ltr;
    unicode-bidi: isolate;
  }
  .site-footer__copy-sep {
    display: inline-block;
    width: 0.5em;
  }
  .site-footer__lang--desktop { display: none; }
  .site-footer__link--desktop { display: none; }
  .site-footer__link--mobile { display: inline; }
  .site-footer__links {
    order: 2;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--sp-10);
    font-size: var(--fs-xs);
  }
  .trust__inner { grid-template-columns: 1fr; }
  .trust__list {
    flex-wrap: nowrap;
    gap: 6px;
  }
  .trust__list > li {
    flex: 1 1 0;
    min-width: 0;
  }
  .cert {
    width: 100%;
    min-width: 0;
    height: 38px;
    padding: 5px 6px;
    border-radius: 8px;
  }
  .cert img {
    max-height: 26px;
    max-width: 100%;
    width: auto;
  }
  .pay {
    width: 100%;
    min-width: 0;
    height: 38px;
    padding: 5px 6px;
    border-radius: 8px;
  }
  .pay img {
    height: 14px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
  }
  .ft-row { grid-template-columns: 1fr; }

  .channel {
    padding: var(--sp-3);
    gap: var(--sp-3);
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }
  .channel__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
  .channel__icon svg { width: 18px; height: 18px; }
  .channel__label { font-size: 0.72rem; line-height: 1.3; }
  .channel__value { font-size: 0.72rem; font-weight: 600; }
  .channel__go { width: 16px; height: 16px; }

  .pmodal {
    padding: var(--sp-3);
    padding-block: max(var(--sp-3), env(safe-area-inset-top)) max(var(--sp-3), env(safe-area-inset-bottom));
  }
  .pmodal__panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: min(92dvh, calc(100dvh - 24px));
    overflow: hidden;
    border-radius: var(--r-md);
  }
  .pmodal__media {
    flex: none;
    aspect-ratio: auto;
    max-height: min(32vh, 200px);
    min-height: 120px;
    display: grid;
    place-items: center;
    padding: var(--sp-4);
  }
  .pmodal__media img {
    width: 100%;
    height: 100%;
    max-height: min(32vh, 200px);
    object-fit: contain;
    object-position: center;
  }
  .pmodal__body {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    gap: var(--sp-2);
    padding: var(--sp-4) var(--sp-4) var(--sp-6);
    padding-bottom: max(var(--sp-6), env(safe-area-inset-bottom));
  }
  .pmodal__title { font-size: var(--fs-lg); line-height: var(--lh-snug); }
  .pmodal__text {
    font-size: var(--fs-sm);
    line-height: var(--lh-body);
    color: var(--c-text-2);
  }
  .pmodal__actions {
    flex-shrink: 0;
    margin-block-start: var(--sp-3);
    padding-block-start: var(--sp-2);
  }
  .pmodal__actions .btn { width: 100%; min-height: 44px; }
  .pmodal__close {
    top: var(--sp-2);
    inset-inline-end: var(--sp-2);
    width: 36px;
    height: 36px;
    box-shadow: var(--e-2);
  }
  .pmodal__close svg { width: 16px; height: 16px; }

  .success-toast { inset-inline: var(--sp-4); inset-block-end: var(--sp-4); width: auto; }
}

@media print {
  .site-header, .drawer, .drawer-overlay, .whatsapp-fab, .form-card { display: none !important; }
}
