/* =========================================================
   Retouchiva — Main Stylesheet
   Design system: Refined Minimalism (Electric Blue / Teal / Gold)
   Layout model: Flexbox-first. Every <section> is a flex column,
   centered, with EQUAL top/bottom spacing. No inline styles —
   everything is driven through classes + utilities below.
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  --color-surface: #f8f9ff;
  --color-surface-dim: #d0dbed;
  --color-surface-bright: #f8f9ff;
  --color-surface-lowest: #ffffff;
  --color-surface-low: #eff4ff;
  --color-surface-container: #e6eeff;
  --color-surface-high: #dee9fc;
  --color-surface-highest: #d9e3f6;

  --color-on-surface: #121c2a;
  --color-on-surface-variant: #424656;
  --color-inverse-surface: #27313f;
  --color-inverse-on-surface: #eaf1ff;
  --color-outline: #737687;
  --color-outline-variant: #c3c6d8;

  --color-primary: #004ccd;
  --color-primary-container: #0f62fe;
  --color-on-primary: #ffffff;
  --color-on-primary-container: #f3f3ff;

  --color-secondary: #006c4f;
  --color-secondary-container: #67fcc6;
  --color-on-secondary: #ffffff;

  --color-tertiary: #745100;
  --color-tertiary-container: #ffba27;
  --color-on-tertiary: #ffffff;

  --color-error: #ba1a1a;
  --color-error-container: #ffdad6;

  --color-background: #f8f9ff;
  --color-on-background: #121c2a;

  --font-headline: "Manrope", sans-serif;
  --font-body: "Inter", sans-serif;

  --radius-sm: 0.25rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  --space-unit: 8px;
  --container-max: 1280px;
  --gutter: 24px;
  --margin-desktop: 64px;
  --margin-mobile: 20px;

  /* Spacing scale — used everywhere instead of inline margins */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 28px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-14: 56px;
  --sp-16: 64px;

  /* Equal, single source-of-truth vertical rhythm for ALL sections */
  --section-space: 64px;
  --section-space-tight: 48px;

  --shadow-low: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-high: 0 12px 32px rgba(0, 0, 0, 0.08);
  --header-height: 80px;
}
@media (min-width: 1024px) {
  :root {
    --section-space: 120px;
    --section-space-tight: 88px;
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }

body {
  background: var(--color-background);
  color: var(--color-on-surface);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--margin-mobile);
}
@media (min-width: 1024px) {
  .container { padding-inline: var(--margin-desktop); }
}

h1, h2, h3, h4 { font-family: var(--font-headline); font-weight: 700; color: var(--color-on-surface); letter-spacing: -0.01em; }

/* =========================================================
   SECTION MODEL — flexbox column, centered, equal top/bottom
   ========================================================= */
.section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}
.section > .container { display: flex; flex-direction: column; align-items: center; width: 100%; }
.section--tight { padding-top: var(--section-space-tight); padding-bottom: var(--section-space-tight); }
.section--surface-low { background: var(--color-surface-low); }
.section--relative { position: relative; overflow: hidden; }

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: var(--sp-8);
}
.section-head p { color: var(--color-on-surface-variant); margin-top: var(--sp-2); }
.eyebrow {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(0, 76, 205, 0.1);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-4);
}

/* ---------- Typography scale ---------- */
h1, .h1 { font-size: 32px; line-height: 1.2; }
h2, .h2 { font-size: 28px; line-height: 1.25; }
h3, .h3 { font-size: 20px; line-height: 1.3; }
h4, .h4 { font-size: 17px; line-height: 1.3; }
@media (min-width: 768px) {
  h1, .h1 { font-size: 48px; line-height: 56px; letter-spacing: -0.02em; }
  h2, .h2 { font-size: 32px; line-height: 40px; letter-spacing: -0.01em; }
  h3, .h3 { font-size: 24px; line-height: 32px; }
}
.text-lead { font-size: 18px; line-height: 28px; color: var(--color-on-surface-variant); }
.text-muted { color: var(--color-on-surface-variant); }
.text-white { color: #fff; }
.text-primary { color: var(--color-primary); }
.text-center { text-align: center; }
.text-italic { font-style: italic; }
.text-sm { font-size: 14px; }
.text-xs { font-size: 13px; }
.font-normal { font-weight: 400; }
.whitespace-nowrap { white-space: nowrap; }
.eyebrow-inline { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-outline); }

/* ---------- Spacing utilities (replace inline margin/padding) ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-1{margin-top:var(--sp-1)} .mt-2{margin-top:var(--sp-2)} .mt-3{margin-top:var(--sp-3)}
.mt-4{margin-top:var(--sp-4)} .mt-5{margin-top:var(--sp-5)} .mt-6{margin-top:var(--sp-6)}
.mt-7{margin-top:var(--sp-7)} .mt-8{margin-top:var(--sp-8)} .mt-10{margin-top:var(--sp-10)}
.mt-12{margin-top:var(--sp-12)} .mt-14{margin-top:var(--sp-14)}
.mb-1{margin-bottom:var(--sp-1)} .mb-2{margin-bottom:var(--sp-2)} .mb-3{margin-bottom:var(--sp-3)}
.mb-4{margin-bottom:var(--sp-4)} .mb-6{margin-bottom:var(--sp-6)} .mb-8{margin-bottom:var(--sp-8)}
.pt-0{padding-top:0} .pb-0{padding-bottom:0}
.max-w-xs { max-width: 340px; }
.max-w-sm { max-width: 420px; }
.max-w-md { max-width: 520px; }
.max-w-lg { max-width: 640px; }
.max-w-xl { max-width: 760px; }
.mx-auto { margin-inline: auto; }

/* ---------- Flex utilities ---------- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-xs { gap: var(--sp-2); }
.gap-sm { gap: var(--sp-4); }
.gap-md { gap: var(--sp-6); }
.gap-lg { gap: var(--sp-8); }
.self-start { align-self: flex-start; }
.relative { position: relative; }
.z-1 { position: relative; z-index: 1; }
.w-full { width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary-container);
  color: var(--color-on-primary);
  box-shadow: var(--shadow-low);
}
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: var(--shadow-high); }
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-secondary {
  background: #fff;
  color: var(--color-on-surface);
  border: 1px solid var(--color-outline-variant);
}
.btn-secondary:hover { background: var(--color-surface-low); transform: translateY(-2px); }
.btn-ghost-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.btn-on-light {
  background: #fff;
  color: var(--color-primary);
}
.btn-on-light:hover { transform: translateY(-2px) scale(1.02); box-shadow: var(--shadow-high); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ---------- Icons ---------- */
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-circle {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 76, 205, 0.1);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  font-size: 26px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
  flex-shrink: 0;
}
.icon-circle--sm { width: 44px; height: 44px; font-size: 18px; }
.icon-circle--lg { width: 72px; height: 72px; font-size: 34px; }
.icon-circle--center { margin-inline: auto; }
.icon-circle--teal { background: rgba(0, 108, 79, 0.1); color: var(--color-secondary); }
.icon-circle--soft { background: rgba(0, 76, 205, 0.08); }
.icon-check { color: #036b4a; stroke-width: 2.5; }
.check-icon {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(3, 107, 74, 0.12);
  color: #036b4a;
  flex-shrink: 0;
}
.check-icon .icon { width: 13px; height: 13px; stroke-width: 3; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(18,28,42,0.06);
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(18,28,42,0.08); }
.navbar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-headline);
  font-size: 22px;
  font-weight: 800;
  color: var(--color-on-surface);
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img { width: 34px; height: 34px; border-radius: 8px; }
.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-on-surface-variant);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover { color: var(--color-primary); }
.nav-links a.active { color: var(--color-primary); border-color: var(--color-primary); }
.nav-cta { display: none; }
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius);
}
.nav-toggle .icon { font-size: 26px; }
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

.mobile-menu {
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: #fff;
  z-index: 99;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu .container { display: flex; flex-direction: column; gap: 8px; padding-block: var(--sp-8); }
.mobile-menu a {
  padding: 16px 4px;
  font-size: 18px;
  font-weight: 700;
  border-bottom: 1px solid var(--color-surface-highest);
}
.mobile-menu a.active { color: var(--color-primary); }
.mobile-menu .btn { margin-top: var(--sp-5); }
@media (min-width: 900px) { .mobile-menu { display: none !important; } }

body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-top: var(--header-height);
  padding-block: 32px;
}
@media (min-width: 1024px) {
  .hero { padding-block: 56px; }
}
.page-hero {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: var(--header-height);
  padding-block: 28px;
}
@media (min-width: 1024px) {
  .page-hero { padding-block: 48px; }
}
.page-hero .container { display: flex; flex-direction: column; align-items: center; max-width: 780px; }

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: var(--gutter);
  align-items: center;
  width: 100%;
}
.hero-grid > * { width: 100%; }
@media (min-width: 1024px) {
  .hero-grid.two-col { flex-direction: row; align-items: center; }
  .hero-grid.two-col > * { flex: 1 1 50%; min-width: 0; }
  .hero-grid.align-start { align-items: flex-start; }
  .hero-grid.items-stretch { align-items: stretch; }
}

/* Decorative background blobs (replace inline positioned blobs) */
.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
  animation: floatBlob 12s ease-in-out infinite;
}
.bg-blob--primary { background: rgba(0, 76, 205, 0.14); }
.bg-blob--teal { background: rgba(0, 108, 79, 0.35); }
.bg-blob--lg { width: 400px; height: 400px; }
.bg-blob--md { width: 320px; height: 320px; }
.bg-blob--top-right { top: 60px; right: -80px; }
.bg-blob--bottom-left { bottom: -120px; left: -100px; animation-delay: -4s; }

/* trust row */
.trust-row { display: flex; align-items: center; gap: var(--sp-4); margin-top: var(--sp-8); flex-wrap: wrap; }
.avatar-stack { display: flex; }
.avatar-stack img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; margin-left: -12px; transition: transform 0.2s ease; }
.avatar-stack img:first-child { margin-left: 0; }
.avatar-stack:hover img { transform: translateY(-3px); }
.trust-row p { font-size: 13px; color: var(--color-on-surface-variant); }
.trust-row strong { color: var(--color-on-surface); }

/* ---------- Before / After slider ---------- */
.compare {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-high);
  border: 1px solid rgba(18,28,42,0.06);
  aspect-ratio: 4 / 3;
  user-select: none;
  touch-action: pan-y;
}
.compare.compare--wide { aspect-ratio: 16 / 9; }
.compare.compare--bordered { border: 4px solid rgba(255,255,255,0.1); }
.compare img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.compare .compare-after {
  position: absolute; inset: 0;
  width: 50%;
  overflow: hidden;
}
.compare .compare-after img { width: var(--compare-w, 100%); max-width: none; }
.compare-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  background: #fff;
  cursor: ew-resize;
  transform: translateX(-50%);
}
.compare-handle::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 44px; height: 44px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: var(--shadow-high);
}
.compare-handle::after {
  content: "⇔";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -55%);
  font-size: 18px;
  color: var(--color-primary);
  font-weight: 700;
}
.compare-tag { position: absolute; top: 16px; z-index: 2; padding: 6px 14px; border-radius: var(--radius-full); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: #fff; background: rgba(18,28,42,0.55); backdrop-filter: blur(4px); }
.compare-tag--before { left: 16px; }
.compare-tag--after { right: 16px; background: rgba(0,76,205,0.75); }

/* ---------- Logo strip ---------- */
.logo-strip { width: 100%; display: flex; flex-direction: column; align-items: center; background: var(--color-surface-low); padding-block: var(--sp-12); }
.logo-strip .label { text-align: center; font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--color-outline); margin-bottom: var(--sp-8); }
.logo-strip-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 40px 56px; opacity: 0.6; }
.logo-strip-row span { font-family: var(--font-headline); font-weight: 800; font-size: 20px; color: var(--color-on-surface); transition: color 0.25s ease, transform 0.25s ease; display: inline-block; }
.logo-strip-row span:hover { color: var(--color-primary); transform: translateY(-2px); }

/* ---------- Cards grid (flexbox model) ---------- */
.grid { display: flex; flex-wrap: wrap; gap: var(--gutter); justify-content: center; width: 100%; }
.grid > * { flex: 1 1 100%; }
@media (min-width: 640px) {
  .grid-4 > * { flex: 1 1 calc(50% - var(--gutter)); }
}
@media (min-width: 768px) {
  .grid-2 > * { flex: 1 1 calc(50% - var(--gutter)); }
}
@media (min-width: 900px) {
  .grid-3 > * { flex: 1 1 calc(33.333% - var(--gutter)); }
  .grid-4 > * { flex: 1 1 calc(25% - var(--gutter)); }
}

.card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-lg);
  padding: var(--sp-7);
  transition: box-shadow 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
  width: 100%;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 0; height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transform: translateX(-50%);
  transition: width 0.4s ease;
  z-index: 2;
  border-radius: 0 0 var(--radius-full) var(--radius-full);
}
.card > * { position: relative; z-index: 1; }
.card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-high); transform: translateY(-6px) scale(1.015); }
.card:hover::before { width: 100%; }
.card:hover .icon-circle { background: var(--color-primary); color: #fff; transform: scale(1.08) rotate(-4deg); }
.card h3 { margin-bottom: var(--sp-2); font-size: 19px; }
.card p { color: var(--color-on-surface-variant); margin-bottom: var(--sp-4); font-size: 15px; }
.card-link { color: var(--color-primary); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.card-link .icon { transition: transform 0.25s ease; }
.card:hover .card-link .icon { transform: translateX(5px); }
.card-media { position: relative; width: 100%; margin-bottom: var(--sp-4); border-radius: var(--radius-md); overflow: hidden; }
.card-media img { width: 100%; height: 100%; transition: transform 0.5s ease; }
.card:hover .card-media img { transform: scale(1.06); }

/* ---------- Zoomable media (lightbox trigger) ---------- */
.media-zoom {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  text-align: left;
}
.media-zoom img { width: 100%; height: 100%; }
.media-zoom .zoom-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 28, 42, 0.28);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.media-zoom .zoom-hint .icon-circle {
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-on-surface);
  transform: scale(0.85);
  transition: transform 0.3s ease;
}
.media-zoom:hover .zoom-hint,
.media-zoom:focus-visible .zoom-hint { opacity: 1; }
.media-zoom:hover .zoom-hint .icon-circle,
.media-zoom:focus-visible .zoom-hint .icon-circle { transform: scale(1); }
.media-zoom:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }

.service-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(18, 28, 42, 0.6);
  backdrop-filter: blur(4px);
}

.feature-card {
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; text-align: left; width: 100%;
  background: #fff;
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-lg);
  padding: var(--sp-7);
  transition: box-shadow 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 0; height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transform: translateX(-50%);
  transition: width 0.4s ease;
  z-index: 2;
  border-radius: 0 0 var(--radius-full) var(--radius-full);
}
.feature-card > * { position: relative; z-index: 1; }
.feature-card .icon-circle { margin-bottom: var(--sp-4); }
.feature-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-high); transform: translateY(-6px) scale(1.015); }
.feature-card:hover::before { width: 100%; }
.feature-card:hover .icon-circle { background: var(--color-primary); color: #fff; transform: scale(1.08) rotate(-4deg); }

.value-card { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; padding: var(--sp-6); width: 100%; border: 1px solid transparent; border-radius: var(--radius-lg); transition: border-color 0.3s ease, transform 0.3s ease; }
.value-card::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 0; height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transform: translateX(-50%);
  transition: width 0.4s ease;
  border-radius: 0 0 var(--radius-full) var(--radius-full);
}
.value-card:hover { border-color: var(--color-outline-variant); transform: translateY(-4px); }
.value-card:hover::before { width: 60%; }
.value-card .icon-circle { margin: 0 auto var(--sp-3); }
.value-card:hover .icon-circle { transform: scale(1.08); }

/* ---------- Aspect-ratio image utilities ---------- */
.img-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.aspect-1-1 { aspect-ratio: 1 / 1; }
.aspect-4-3 { aspect-ratio: 4 / 3; }
.aspect-3-2 { aspect-ratio: 3 / 2; }
.aspect-2-1 { aspect-ratio: 2 / 1; }
.aspect-16-9 { aspect-ratio: 16 / 9; }
.aspect-16-10 { aspect-ratio: 16 / 10; }
.aspect-16-7 { aspect-ratio: 16 / 7; }
.aspect-3-1 { aspect-ratio: 3 / 1; }
.aspect-2-1 { aspect-ratio: 2 / 1; }
.aspect-4-5 { aspect-ratio: 4 / 5; }
.aspect-wrap { display: block; width: 100%; overflow: hidden; border-radius: var(--radius-lg); }

.rounded-img { border-radius: var(--radius-lg); }
.shadow-img { box-shadow: var(--shadow-high); }
.img-hover-zoom { overflow: hidden; }
.img-hover-zoom img { transition: transform 0.6s ease; }
.img-hover-zoom:hover img { transform: scale(1.07); }

/* ---------- Dark section ---------- */
.section-dark {
  background: var(--color-on-background);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section-dark .text-muted { color: var(--color-outline-variant); }
.check-list { display: flex; flex-direction: column; gap: var(--sp-3); margin-bottom: var(--sp-6); }
.check-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.check-list .icon { flex-shrink: 0; }
.section-dark .check-list .icon { color: var(--color-secondary-container); }

/* ---------- Stats ---------- */
.stats-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gutter); text-align: center; margin-bottom: var(--sp-14); width: 100%; }
.stats-row > * { flex: 1 1 calc(50% - var(--gutter)); }
@media (min-width: 768px) { .stats-row > * { flex: 1 1 calc(25% - var(--gutter)); } }
.stat-num { font-family: var(--font-headline); font-size: 36px; font-weight: 800; color: var(--color-primary); }
.stat-label { color: var(--color-on-surface-variant); font-size: 14px; margin-top: var(--sp-1); }
.stats-inline { display: flex; gap: var(--sp-12); flex-wrap: wrap; margin-top: var(--sp-8); }

/* ---------- Testimonials ---------- */
.testimonial-card {
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-lg);
  padding: var(--sp-7);
  width: 100%;
  height: 100%;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.testimonial-card::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 0; height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transform: translateX(-50%);
  transition: width 0.4s ease;
  border-radius: 0 0 var(--radius-full) var(--radius-full);
}
.testimonial-card:hover { box-shadow: var(--shadow-high); transform: translateY(-3px); border-color: var(--color-primary); }
.testimonial-card:hover::before { width: 100%; }
.stars { color: var(--color-tertiary-container); font-size: 15px; letter-spacing: 2px; margin-bottom: var(--sp-3); }
.testimonial-author { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-4); }
.testimonial-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial-author .name { font-weight: 700; font-size: 14px; }
.testimonial-author .role { font-size: 13px; color: var(--color-on-surface-variant); }

/* ---------- Testimonial slider ---------- */
.slider { width: 100%; position: relative; }
.slider-viewport { width: 100%; overflow: hidden; }
.slider-track {
  display: flex;
  gap: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 4px 12px;
  margin: -4px -4px -12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-track > * { scroll-snap-align: start; flex: 0 0 100%; min-width: 0; }
@media (min-width: 768px) { .slider-track > * { flex: 0 0 calc(50% - var(--gutter) / 2); } }
.slider-controls { display: flex; align-items: center; justify-content: center; gap: var(--sp-6); margin-top: var(--sp-7); }
.slider-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-outline-variant);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-on-surface);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  flex-shrink: 0;
}
.slider-btn:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); transform: scale(1.06); }
.slider-btn:active { transform: scale(0.95); }
.slider-dots { display: flex; align-items: center; gap: 8px; }
.slider-dot { width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--color-outline-variant); transition: background 0.25s ease, width 0.25s ease; }
.slider-dot.is-active { background: var(--color-primary); width: 24px; }


/* ---------- Steps / Process (flexbox) ---------- */
.steps { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center; gap: var(--sp-4); width: 100%; counter-reset: step; }
.step {
  position: relative;
  overflow: hidden;
  z-index: 1;
  flex: 1 1 100%;
  min-width: 0;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: #fff;
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-lg);
  padding: var(--sp-5) var(--sp-4);
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.step::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 0; height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transform: translateX(-50%);
  transition: width 0.4s ease;
  border-radius: 0 0 var(--radius-full) var(--radius-full);
}
.step:hover { border-color: var(--color-primary); box-shadow: var(--shadow-high); transform: translateY(-4px); }
.step:hover::before { width: 100%; }
@media (min-width: 560px) and (max-width: 767px) { .step { flex: 1 1 calc(50% - var(--sp-4)); } }
/* From 768px up, all 4 steps sit on a single row (nowrap + equal flexible width instead of a fixed % basis, which avoids the rounding overflow that pushed step 4 onto its own line) */
@media (min-width: 768px) {
  .steps { flex-wrap: nowrap; }
  .step { flex: 1 1 0; }
}
.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-primary-container);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-headline); font-weight: 800;
  font-size: 15px;
  margin-bottom: var(--sp-3);
  box-shadow: 0 0 0 5px var(--color-surface-low);
  transition: transform 0.3s ease;
}
.step:hover .step-num { transform: scale(1.1); }
.step h4 { margin-bottom: var(--sp-1); font-size: 15px; }
.step p { color: var(--color-on-surface-variant); font-size: 13px; }
.step-connector {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 24px;
  align-self: center;
  margin-top: -28px;
  color: var(--color-outline-variant);
}
.step-connector svg { width: 24px; height: 12px; }
@media (min-width: 768px) { .step-connector { display: flex; } }

/* ---------- CTA band ---------- */
.cta-band {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(120deg, var(--color-primary), var(--color-secondary));
  background-size: 200% 200%;
  animation: gradientShift 10s ease infinite;
  border-radius: var(--radius-xl);
  padding: var(--sp-14) var(--sp-8);
  text-align: center;
  color: #fff;
}
.cta-band--dark { background: linear-gradient(120deg, var(--color-on-background), #1c2b45); animation: none; }
@media (min-width: 768px) { .cta-band { padding: var(--sp-16) 64px; } }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 560px; margin: var(--sp-3) auto var(--sp-7); }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: center; }
.cta-note { margin-top: var(--sp-5); font-size: 13px; opacity: 0.85; }

/* ---------- Footer ---------- */
.site-footer { width: 100%; display: flex; flex-direction: column; align-items: center; background: var(--color-inverse-surface); color: var(--color-inverse-on-surface); padding-top: var(--sp-16); }
.footer-grid { display: flex; flex-wrap: wrap; gap: var(--sp-10); width: 100%; padding-bottom: var(--sp-10); border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand { flex: 1 1 260px; }
.footer-col { flex: 1 1 140px; }
.footer-brand .logo { color: #fff; }
.footer-brand p { color: rgba(234,241,255,0.65); font-size: 14px; margin-top: var(--sp-3); max-width: 320px; }
.footer-contact-line { font-size: 13px !important; margin-top: var(--sp-1) !important; }
.footer-contact-line a { color: rgba(234,241,255,0.85); font-weight: 600; }
.footer-contact-line a:hover { color: #fff; text-decoration: underline; }
.social-row { display: flex; gap: var(--sp-2); margin-top: var(--sp-5); }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
}
.social-row a:hover { background: var(--color-primary); transform: translateY(-2px); }
.social-row--light a { background: rgba(0,76,205,0.1); color: var(--color-primary); }
.social-row--light a:hover { background: var(--color-primary); color: #fff; }
.footer-col h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--sp-5); }
.footer-col ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-col a { color: rgba(234,241,255,0.7); font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  width: 100%;
  padding-block: var(--sp-6);
  display: flex; flex-direction: column; gap: var(--sp-3);
  align-items: center; text-align: center;
  font-size: 13px; color: rgba(234,241,255,0.55);
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; } }

/* ---------- Forms ---------- */
.form-group { margin-bottom: var(--sp-4); width: 100%; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: var(--sp-2); }
.form-row { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.form-row > .form-group { flex: 1 1 100%; }
@media (min-width: 640px) { .form-row.two > .form-group { flex: 1 1 calc(50% - var(--sp-4)); } }
@media (min-width: 768px) { .form-row.three > .form-group { flex: 1 1 calc(33.333% - var(--sp-4) * 2 / 3); } }
.form-control {
  width: 100%;
  background: var(--color-surface-low);
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 15px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.form-control:focus {
  outline: none;
  background: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0,76,205,0.12);
}
textarea.form-control { resize: vertical; min-height: 120px; }
.form-note { font-size: 13px; color: var(--color-outline); margin-top: var(--sp-4); text-align: center; }
.form-note a { color: var(--color-primary); font-weight: 600; }
.field-error { color: var(--color-error); font-size: 13px; margin-top: var(--sp-1); display: none; }
.form-control.invalid { border-color: var(--color-error); }
.form-control.invalid ~ .field-error { display: block; }

.upload-drop {
  display: flex; flex-direction: column; align-items: center;
  border: 2px dashed var(--color-outline-variant);
  border-radius: var(--radius-lg);
  padding: var(--sp-8) var(--sp-5);
  text-align: center;
  background: var(--color-surface-low);
  transition: border-color 0.25s ease, background 0.25s ease;
  cursor: pointer;
  width: 100%;
}
.upload-drop.drag-over, .upload-drop:hover { border-color: var(--color-primary); background: rgba(0,76,205,0.04); }
.upload-drop .icon-circle { margin: 0 auto var(--sp-3); }
.upload-drop .hint { font-size: 13px; color: var(--color-outline); margin-top: var(--sp-1); }
.upload-filelist { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-3); font-size: 13px; width: 100%; }
.upload-filelist li { display: flex; justify-content: space-between; align-items: center; padding: var(--sp-2) var(--sp-3); background: #fff; border: 1px solid var(--color-outline-variant); border-radius: var(--radius); }
.upload-filelist button { color: var(--color-error); font-weight: 700; }

.form-panel {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-xl);
  padding: var(--sp-7);
  box-shadow: var(--shadow-low);
  width: 100%;
}
@media (min-width: 768px) { .form-panel { padding: var(--sp-10); } }

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--sp-10) var(--sp-5);
}
.form-success .icon-circle { margin: 0 auto var(--sp-4); background: var(--color-secondary-container); color: var(--color-secondary); }
.form-success.is-visible { display: flex; animation: fadeInUp 0.5s ease; }
.form-panel.is-hidden { display: none; }

/* Honeypot spam trap — hidden from real users, visible to bots that ignore CSS */
.hp-field { position: absolute !important; left: -9999px !important; top: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-error-msg {
  display: none;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-4);
  border-radius: var(--radius);
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #b91c1c;
  font-size: 13px;
}
.form-error-msg.is-visible { display: flex; }
button[type="submit"].is-loading { opacity: 0.7; pointer-events: none; }

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: whatsapp-pulse 2.4s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 8px 24px rgba(37, 211, 102, 0.55); }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }
.whatsapp-float .wa-tooltip {
  position: absolute;
  right: 68px;
  bottom: 14px;
  background: #111b21;
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.whatsapp-float:hover .wa-tooltip { opacity: 1; transform: translateX(0); }
@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45), 0 0 0 10px rgba(37, 211, 102, 0); }
}
@media (max-width: 480px) {
  .whatsapp-float { right: 14px; bottom: 14px; width: 52px; height: 52px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
  .whatsapp-float .wa-tooltip { display: none; }
}

/* ---------- FAQ accordion ---------- */
.faq-list { width: 100%; }
.faq-item { border-bottom: 1px solid var(--color-outline-variant); }
.faq-item:first-child { border-top: 1px solid var(--color-outline-variant); }
.faq-question {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) 4px;
  text-align: left;
  font-weight: 700;
  font-size: 16px;
}
.faq-question .icon { transition: transform 0.3s ease; flex-shrink: 0; color: var(--color-primary); }
.faq-item.is-open .faq-question .icon { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-answer-inner { padding: 0 4px var(--sp-5); color: var(--color-on-surface-variant); font-size: 15px; }

/* ---------- Contact info cards ---------- */
.contact-info-list { display: flex; flex-direction: column; width: 100%; }
.contact-info-item { display: flex; gap: var(--sp-4); padding: var(--sp-5) 0; border-bottom: 1px solid var(--color-outline-variant); }
.contact-info-item:first-child { padding-top: 0; }
.contact-info-item:last-child { border-bottom: none; padding-bottom: 0; }
.contact-info-item h4 { font-size: 15px; margin-bottom: var(--sp-1); }
.contact-info-item h4 a { transition: color 0.2s ease; }
.contact-info-item h4 a:hover { color: var(--color-primary); }
.contact-info-item p { color: var(--color-on-surface-variant); font-size: 14px; }
.contact-info-item--compact { padding: var(--sp-4) 0; }
.contact-follow { border-top: 1px solid var(--color-outline-variant); margin-top: auto; padding-top: var(--sp-5); width: 100%; }
.contact-info-card { display: flex; flex-direction: column; width: 100%; max-width: 400px; }

/* ---------- Map ---------- */
.map-section { position: relative; width: 100%; overflow: hidden; }
.map-image { filter: saturate(0.4); }
.map-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.map-pin-card { display: flex; align-items: center; gap: var(--sp-3); background: #fff; padding: var(--sp-4) var(--sp-5); }

/* ---------- Timeline (About) ---------- */
.timeline { width: 100%; position: relative; margin-top: var(--sp-8); }
.timeline::before { content: ""; position: absolute; left: 19px; top: 0; bottom: 0; width: 2px; background: var(--color-outline-variant); }
@media (min-width: 768px) { .timeline::before { left: 50%; transform: translateX(-50%); } }
.timeline-item { position: relative; padding-left: 56px; margin-bottom: var(--sp-8); }
.timeline-item .dot { position: absolute; left: 10px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--color-primary); border: 4px solid var(--color-surface); transition: transform 0.3s ease; }
.timeline-item:hover .dot { transform: scale(1.2); }
@media (min-width: 768px) {
  .timeline-item { width: 50%; padding-left: 0; padding-right: 56px; text-align: right; }
  .timeline-item .dot { left: auto; right: -10px; }
  .timeline-item:nth-child(even) { margin-left: 50%; padding-right: 0; padding-left: 56px; text-align: left; }
  .timeline-item:nth-child(even) .dot { right: auto; left: -10px; }
}
.timeline-year { font-family: var(--font-headline); font-weight: 800; color: var(--color-primary); font-size: 18px; }

/* ---------- Team header row ---------- */
.team-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--sp-4); width: 100%; margin-bottom: var(--sp-8); }

/* ---------- Trust panel (About) ---------- */
.trust-panel-wrap { position: relative; width: 100%; display: flex; justify-content: center; }
.trust-list-card { display: flex; flex-direction: column; width: 100%; }

/* ---------- Free sample quote card ---------- */
.quote-media { position: relative; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-high); width: 100%; height: 100%; }
.quote-overlay { position: absolute; left: 20px; right: 20px; bottom: 20px; background: rgba(18,28,42,0.55); backdrop-filter: blur(6px); color: #fff; padding: var(--sp-4) var(--sp-5); border-radius: var(--radius-md); }

/* ---------- Utility ---------- */
.sr-only { position:absolute; width:1px;height:1px; padding:0;margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--color-primary); color: #fff; padding: 12px 20px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-16px, 20px) scale(1.06); }
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(0,76,205,0.35); }
  70% { box-shadow: 0 0 0 12px rgba(0,76,205,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,76,205,0); }
}
@keyframes bounceArrow {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

/* Reveal-on-scroll (staggered) */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal="fade"] { transform: none; }
[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="left"].is-visible { transform: translateX(0); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="right"].is-visible { transform: translateX(0); }
[data-reveal="scale"] { transform: scale(0.92); }
[data-reveal="scale"].is-visible { transform: scale(1); }

.grid > *,
.steps > *,
.stats-row > * {
  transition-delay: calc(var(--stagger, 0) * 90ms);
}

.hero-animate { animation: fadeInUp 0.8s cubic-bezier(.2,.7,.2,1) both; }
.hero-animate--delay-1 { animation-delay: 0.12s; }
.hero-animate--delay-2 { animation-delay: 0.24s; }

.faq-question:hover { color: var(--color-primary); }

/* Logo pulse on hover for icon circles used as badges */
.icon-circle--pulse:hover { animation: pulseRing 1.2s ease-out; }

/* Section head reveal helper */
.section-head[data-reveal] { transition-delay: 0ms; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 90px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--color-primary-container);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-high);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  z-index: 90;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); }
@media (max-width: 480px) { .back-to-top { right: 14px; bottom: 76px; width: 42px; height: 42px; } }

/* ---------- Legal / prose pages ---------- */
.prose { width: 100%; max-width: 760px; margin-inline: auto; }
.prose .updated-badge { display: inline-block; font-size: 13px; color: var(--color-outline); margin-bottom: var(--sp-8); }
.prose h2 { margin-top: var(--sp-14); margin-bottom: var(--sp-3); font-size: 22px; }
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { margin-top: var(--sp-8); margin-bottom: var(--sp-2); font-size: 17px; }
.prose p { color: var(--color-on-surface-variant); margin-bottom: var(--sp-4); line-height: 1.7; }
.prose ul { display: flex; flex-direction: column; gap: var(--sp-2); margin: var(--sp-4) 0 var(--sp-6); padding-left: var(--sp-6); list-style: disc; }
.prose li { color: var(--color-on-surface-variant); line-height: 1.6; }
.prose strong { color: var(--color-on-surface); }
.prose a { color: var(--color-primary); font-weight: 600; }
.prose a:hover { text-decoration: underline; }

/* ---------- Blog / Journal ---------- */
.blog-card { position: relative; }
.blog-card-media { width: 100%; margin-bottom: var(--sp-4); border-radius: var(--radius-md); overflow: hidden; position: relative; }
.blog-card-media img { width: 100%; height: 100%; transition: transform 0.5s ease; }
.blog-card:hover .blog-card-media img { transform: scale(1.06); }
.blog-meta { display: flex; align-items: center; gap: var(--sp-3); font-size: 12px; color: var(--color-outline); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: var(--sp-2); }
.blog-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--color-primary); background: rgba(0, 76, 205, 0.08); padding: 6px 12px; border-radius: var(--radius-full); margin-top: var(--sp-2); }

/* ---------- HTML Sitemap ---------- */
.sitemap-col h4 { margin-bottom: var(--sp-4); font-size: 15px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-primary); }
.sitemap-col ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.sitemap-col a { font-size: 15px; color: var(--color-on-surface-variant); transition: color 0.2s ease; }
.sitemap-col a:hover { color: var(--color-primary); }

/* =========================================================
   LIGHTBOX — full-screen image viewer (fancybox-style)
   ========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 14, 22, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
  padding: 56px 16px;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(1200px, 100%);
  max-height: 100%;
  width: 100%;
}
.lightbox-img-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  background: rgba(255, 255, 255, 0.03);
}
.lightbox-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 200px);
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.lightbox-img.is-loaded { opacity: 1; transform: scale(1); }
.lightbox-caption {
  color: #fff;
  font-size: 14px;
  text-align: center;
  margin-top: var(--sp-4);
  max-width: 680px;
  color: rgba(255, 255, 255, 0.85);
}
.lightbox-caption strong { color: #fff; font-family: var(--font-headline); font-size: 16px; display: block; margin-bottom: 2px; }
.lightbox-counter {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  letter-spacing: 0.06em;
  margin-top: var(--sp-2);
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox-close .icon,
.lightbox-nav .icon { width: 22px; height: 22px; }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-nav:active { transform: translateY(-50%) scale(0.94); }
.lightbox-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 8px; top: 50%; transform: translateY(-50%); }
@media (min-width: 768px) {
  .lightbox-close { top: 20px; right: 20px; }
  .lightbox-prev { left: 20px; }
  .lightbox-next { right: 20px; }
}
.lightbox-nav[disabled] { opacity: 0.3; pointer-events: none; }
body.lightbox-open { overflow: hidden; }
