/* ==========================================================================
   MF MARKETING — Corporate Design System
   Brand: #660199 (violet). Mobile first, fixed header, no dependencies.
   --------------------------------------------------------------------------
   1  Tokens              9  Cards & lists
   2  Base                10 Split media
   3  Layout              11 Stats / steps
   4  Buttons             12 Accordion
   5  Fixed header        13 CTA
   6  Mobile drawer       14 Forms
   7  Hero                15 Contact & map
   8  Page header         16 Prose & side nav
                          17 Footer
                          18 Floating & mobile bar
                          19 Utilities / motion
                          20 Responsive
   ========================================================================== */

/* ------------------------------------------------------------- 1. Tokens */
:root {
  /* Brand — violet scale built around #660199 */
  --brand-50: #f9f0fd;
  --brand-100: #f0dcfb;
  --brand-200: #e0baf6;
  --brand-300: #c98cec;
  --brand-400: #ae5cdd;
  --brand-500: #8a20c1;
  --brand-600: #660199;
  --brand-700: #560180;
  --brand-800: #450167;
  --brand-900: #33014d;

  /* Accent — magenta, used only inside gradients and small highlights */
  --accent-400: #e04bbd;
  --accent-500: #c2189b;
  --accent-600: #a01480;

  /* Neutrals carry a violet undertone so greys never look muddy */
  --ink-900: #190a25;
  --ink-800: #261234;
  --ink-700: #3d2450;
  --ink-600: #524066;
  --ink-500: #6b5a7d;
  --ink-400: #93849f;
  --ink-300: #c9bed4;
  --ink-200: #e7dfee;
  --ink-100: #f3edf8;
  --ink-50: #faf7fd;
  --white: #ffffff;

  --success: #0f7a56;
  --danger: #c0392b;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9063rem;
  --fs-base: 1rem;
  --fs-lg: 1.0938rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 1.875rem;

  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 2.5rem;
  --sp-8: 3rem;
  --sp-9: 4rem;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(25, 10, 37, 0.06);
  --shadow-sm: 0 2px 10px rgba(25, 10, 37, 0.07);
  --shadow: 0 12px 32px -14px rgba(25, 10, 37, 0.2);
  --shadow-lg: 0 28px 64px -24px rgba(25, 10, 37, 0.32);

  --grad-brand: linear-gradient(120deg, var(--brand-700), var(--brand-600) 45%, var(--accent-500));
  --grad-dark: linear-gradient(125deg, #190a25 0%, #33014d 45%, #660199 100%);

  /* Fixed header metrics — kept in sync with body padding */
  --topbar-h: 40px;
  --header-h: 76px;
  --header-total: calc(var(--topbar-h) + var(--header-h));

  --container: 1200px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------- 2. Base */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  padding-top: var(--header-total);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--ink-600);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
/* Scroll lock that survives iOS: body is pinned and offset by main.js */
body.is-locked {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--sp-4);
  color: var(--ink-900);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.018em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(1.85rem, 1.35rem + 2.4vw, 3.15rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 1.08rem + 0.6vw, 1.55rem); }
h4 { font-size: var(--fs-xl); }
h5, h6 { font-size: var(--fs-base); }

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-600); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--accent-500); }

img, svg, video { max-width: 100%; height: auto; display: block; }
svg { width: 18px; height: 18px; flex: none; }

strong, b { color: var(--ink-800); font-weight: 650; }
ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.25rem; }
li { margin-bottom: var(--sp-2); }
hr { border: 0; border-top: 1px solid var(--ink-200); margin: var(--sp-7) 0; }

:focus-visible {
  outline: 3px solid var(--brand-400);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection { background: var(--brand-600); color: #fff; }

.skip-link {
  position: absolute;
  left: -9999px; top: 0;
  z-index: 400;
  background: var(--ink-900);
  color: #fff;
  padding: 0.85rem 1.35rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 650;
}
.skip-link:focus { left: 0; color: #fff; }

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

/* ------------------------------------------------------------- 3. Layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 0.5rem + 2vw, 1.5rem);
}
.container-narrow { max-width: 880px; }

.section { padding: clamp(3rem, 2rem + 5vw, 6rem) 0; }
.section-sm { padding: clamp(2rem, 1.5rem + 3vw, 3.5rem) 0; }
.section-tint { background: var(--ink-50); }
.section-ink { background: var(--ink-900); color: var(--ink-300); }
.section-ink h1, .section-ink h2, .section-ink h3, .section-ink h4 { color: #fff; }

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gap-lg { gap: clamp(1.25rem, 1rem + 1vw, 2rem); }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mb-0 { margin-bottom: 0; }

.lead {
  font-size: clamp(1.03rem, 1rem + 0.3vw, 1.17rem);
  color: var(--ink-500);
  line-height: 1.75;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-700);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-pill);
  margin-bottom: var(--sp-4);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-600);
}
.section-ink .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow {
  color: #f0dcfb;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}
.section-ink .eyebrow::before,
.hero .eyebrow::before { background: var(--accent-400); }

.section-head { max-width: 760px; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head p:last-child { margin-bottom: 0; }
.section-head > h2 { position: relative; padding-bottom: 0.85rem; }
.section-head > h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 54px; height: 3px;
  border-radius: 3px;
  background: var(--grad-brand);
}
.section-head.is-center > h2::after { left: 50%; transform: translateX(-50%); }

.strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4) var(--sp-5);
}
.strip-label {
  font-size: var(--fs-sm);
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-500);
  margin: 0;
}

/* ------------------------------------------------------------ 4. Buttons */
.btn {
  --btn-bg: var(--brand-600);
  --btn-fg: #fff;
  --btn-bd: var(--brand-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.8rem 1.55rem;
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--btn-bd);
  background-color: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease),
    background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -14px rgba(102, 1, 153, 0.65);
}
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }

.btn-primary { background-image: linear-gradient(135deg, var(--brand-600), var(--brand-700)); }
.btn-primary:hover { --btn-bg: var(--brand-700); --btn-bd: var(--brand-700); }

.btn-accent {
  --btn-bg: var(--accent-500);
  --btn-bd: var(--accent-500);
  background-image: linear-gradient(135deg, var(--accent-500), var(--accent-600));
}

.btn-outline { --btn-bg: transparent; --btn-fg: var(--brand-700); --btn-bd: var(--brand-200); }
.btn-outline:hover {
  --btn-bg: var(--brand-600);
  --btn-fg: #fff;
  --btn-bd: var(--brand-600);
}

.btn-light { --btn-bg: rgba(255, 255, 255, 0.1); --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, 0.45); }
.btn-light:hover {
  --btn-bg: #fff;
  --btn-fg: var(--brand-700);
  --btn-bd: #fff;
  box-shadow: 0 14px 26px -16px rgba(0, 0, 0, 0.55);
}

.btn-sm { min-height: 40px; padding: 0.55rem 1.1rem; font-size: var(--fs-xs); }
.btn-lg { min-height: 52px; padding: 1rem 1.9rem; font-size: var(--fs-base); }
.btn-block { width: 100%; }

.btn-group { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.btn-group.is-center { justify-content: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 650;
  font-size: var(--fs-sm);
  color: var(--brand-700);
}
.link-arrow::after { content: "→"; transition: transform 0.2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ------------------------------------------------------ 5. Fixed header */
.site-top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: #fff;
  box-shadow: 0 1px 0 var(--ink-200);
  transition: box-shadow 0.25s var(--ease);
}
.site-top.is-stuck { box-shadow: 0 6px 24px -14px rgba(25, 10, 37, 0.35); }

.topbar {
  background: var(--ink-900);
  color: var(--ink-300);
  font-size: var(--fs-xs);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  height: var(--topbar-h);
}
.topbar-list { display: flex; align-items: center; gap: var(--sp-5); list-style: none; margin: 0; padding: 0; }
.topbar-list li { margin: 0; }
.topbar a { color: var(--ink-300); display: inline-flex; align-items: center; gap: 0.45rem; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 15px; height: 15px; color: var(--brand-300); }
.topbar-note { display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap; }
.topbar-note .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #35d39a;
  box-shadow: 0 0 0 3px rgba(53, 211, 154, 0.22);
}

.site-header { background: #fff; }
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 0.4rem + 1vw, 1.5rem);
  height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 34px; width: auto; }

.nav-desktop {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-list { display: flex; align-items: center; gap: 0.1rem; list-style: none; margin: 0; padding: 0; }
.nav-list > li { margin: 0; position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-700);
  white-space: nowrap;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--brand-700); background: var(--brand-50); }
.nav-link.is-active { color: var(--brand-700); }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0.8rem; right: 0.8rem; bottom: -0.3rem;
  height: 3px; border-radius: 3px;
  background: var(--grad-brand);
}
.nav-caret { width: 11px; height: 11px; transition: transform 0.2s var(--ease); }
.nav-link[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 0.85rem);
  left: 0;
  min-width: 290px;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.dropdown::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -0.85rem;
  height: 0.85rem;
}
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown li { margin: 0; }
.dropdown a {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-700);
}
.dropdown a small {
  display: block;
  font-weight: 500;
  font-size: var(--fs-xs);
  color: var(--ink-500);
  margin-top: 2px;
}
.dropdown a:hover { background: var(--brand-50); color: var(--brand-700); }
.dropdown a:hover small { color: var(--brand-600); }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex: none;
  margin-left: auto;
  position: relative;
  z-index: 1;
}




.lang { position: relative; }
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  background: var(--ink-100);
  border: 1px solid var(--ink-200);
  color: var(--ink-800);
  font-family: inherit;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.lang-toggle:hover { background: var(--brand-50); border-color: var(--brand-200); }
.lang-toggle svg { width: 15px; height: 15px; }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.4rem;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
  z-index: 20;
}
.lang.is-open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu li { margin: 0; }
.lang-menu a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 42px;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-700);
}
.lang-menu a:hover { background: var(--ink-50); }
.lang-menu a[aria-current="true"] { background: var(--brand-50); color: var(--brand-700); }
.lang-menu .flag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brand-600);
  border: 1px solid var(--brand-200);
  border-radius: 4px;
  padding: 1px 4px;
}

/* Icon-only actions shown on tablet and phone */
.header-icon {
  display: none;
  width: 44px; height: 44px;
  place-items: center;
  flex: none;
  border-radius: 12px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-700);
}
.header-icon:hover { background: var(--brand-100); color: var(--brand-800); }
.header-icon svg { width: 20px; height: 20px; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  place-items: center;
  flex: none;
  border: 0;
  border-radius: 12px;
  background-color: var(--brand-600);
  background-image: linear-gradient(135deg, var(--brand-600), var(--brand-700));
  box-shadow: 0 8px 18px -10px rgba(102, 1, 153, 0.75);
  cursor: pointer;
}
.nav-toggle-bars { position: relative; display: block; width: 20px; height: 2px; }
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px; height: 2px;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

/* ----------------------------------------------------- 6. Mobile drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(25, 10, 37, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 260;
  width: min(392px, 90vw);
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: -24px 0 60px -28px rgba(25, 10, 37, 0.55);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform 0.34s var(--ease), visibility 0s linear 0.34s;
  overscroll-behavior: contain;
}
.drawer.is-open {
  transform: none;
  visibility: visible;
  transition: transform 0.34s var(--ease), visibility 0s;
}

/* ---- brand header inside the drawer ---- */
.drawer-top {
  position: relative;
  flex: none;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--sp-4);
  padding: 1.1rem clamp(1rem, 0.5rem + 2vw, 1.4rem) 1.15rem;
  background-color: var(--brand-700);
  background-image: var(--grad-brand);
  color: #fff;
}
.drawer-top::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 90% 0%, rgba(255, 255, 255, 0.22), transparent 55%);
  pointer-events: none;
}
.drawer-brand { position: relative; display: inline-flex; align-items: center; min-height: 44px; }
.drawer-brand img { height: 26px; width: auto; }
.drawer-tagline {
  position: relative;
  grid-column: 1 / -1;
  margin: 0.15rem 0 0;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
}
.drawer-close {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
}
.drawer-close:hover { background: #fff; color: var(--brand-700); border-color: #fff; }
.drawer-close svg { width: 20px; height: 20px; }

/* ---- scrollable middle ---- */
.drawer-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--sp-5) clamp(1rem, 0.5rem + 2vw, 1.4rem) var(--sp-6);
}
.drawer-label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.drawer-block {
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--ink-100);
}

.drawer-nav ul { list-style: none; margin: 0; padding: 0; }
.drawer-nav > ul > li { margin: 0; }
.drawer-nav > ul > li + li { border-top: 1px solid var(--ink-100); }

.drawer-link,
.sub-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  min-height: 56px;
  padding: 0.85rem 0.15rem;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.3;
  color: var(--ink-800);
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
}
.drawer-link:hover, .sub-toggle:hover { color: var(--brand-700); }
.drawer-link.is-active { color: var(--brand-700); }
.drawer-link.is-active::after {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grad-brand);
  flex: none;
}
.sub-toggle svg {
  width: 22px; height: 22px;
  flex: none;
  color: var(--brand-600);
  transition: transform 0.25s var(--ease);
}
.sub-toggle[aria-expanded="true"] { color: var(--brand-700); }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.drawer-sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease);
}
.drawer-sub > div { overflow: hidden; }
.sub-toggle[aria-expanded="true"] + .drawer-sub { grid-template-rows: 1fr; }
.drawer-sub ul { padding: 0.15rem 0 0.7rem; }
.drawer-sub li { margin: 0; }
.drawer-sub a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.55rem 0.15rem 0.55rem 1.05rem;
  margin-left: 0.15rem;
  border-left: 2px solid var(--brand-100);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-600);
}
.drawer-sub a:hover,
.drawer-sub a.is-active { color: var(--brand-700); border-left-color: var(--brand-600); }

.drawer-langs { display: flex; gap: 0.5rem; }
.drawer-langs a {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink-700);
}
.drawer-langs a:hover { border-color: var(--brand-300); color: var(--brand-700); }
.drawer-langs a[aria-current="true"] {
  background-color: var(--brand-600);
  background-image: linear-gradient(135deg, var(--brand-600), var(--brand-700));
  border-color: var(--brand-600);
  color: #fff;
}

.drawer-contact { display: grid; gap: 0.15rem; }
.drawer-contact a, .drawer-contact p {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 46px;
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-600);
  word-break: break-word;
}
.drawer-contact svg { color: var(--brand-600); }
.drawer-contact a:hover { color: var(--brand-700); }

/* ---- pinned actions ---- */
.drawer-foot {
  flex: none;
  padding: var(--sp-4) clamp(1rem, 0.5rem + 2vw, 1.4rem)
           calc(var(--sp-4) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--ink-200);
  background: var(--ink-50);
}
.drawer-cta { display: grid; gap: 0.6rem; }
.drawer-cta .btn { width: 100%; }

/* --------------------------------------------------------------- 7. Hero */
.hero {
  position: relative;
  color: #fff;
  background-color: var(--ink-900);
  background-image: var(--grad-dark);
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.3;
  animation: heroPan 26s ease-in-out infinite alternate;
}
@keyframes heroPan {
  from { transform: scale(1.04); }
  to { transform: scale(1.14) translate3d(-1.5%, -1.5%, 0); }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(224, 75, 189, 0.28), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(102, 1, 153, 0.5), transparent 45%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 35%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 35%, #000 25%, transparent 75%);
}

.hero-inner {
  position: relative;
  display: grid;
  justify-items: center;
  /* padding-block only: the .container side padding must survive */
  padding-block: clamp(3rem, 2rem + 6vw, 6.5rem) clamp(2.75rem, 2rem + 4vw, 5.5rem);
}
.hero-content { max-width: 860px; text-align: center; }
.hero h1 { color: #fff; margin-bottom: var(--sp-5); }
.hero h1 .accent {
  background: linear-gradient(96deg, #e0baf6, #ffb3ec);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-desc {
  margin: 0 auto var(--sp-7);
  max-width: 62ch;
  font-size: clamp(1.03rem, 1rem + 0.4vw, 1.2rem);
  color: rgba(255, 255, 255, 0.86);
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-4) var(--sp-6);
  margin-top: var(--sp-7);
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.hero-badge { display: flex; align-items: center; gap: 0.6rem; }
.hero-badge svg { width: 20px; height: 20px; color: var(--accent-400); }
.hero-badge span { font-size: var(--fs-sm); color: rgba(255, 255, 255, 0.9); font-weight: 600; }

/* -------------------------------------------------------- 8. Page header */
.page-hero {
  position: relative;
  color: #fff;
  padding: clamp(2.25rem, 1.5rem + 4vw, 4.5rem) 0;
  background-color: var(--ink-900);
  background-image: var(--grad-dark);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 25%, rgba(224, 75, 189, 0.22), transparent 42%),
    radial-gradient(circle at 88% 75%, rgba(102, 1, 153, 0.45), transparent 45%);
}
.page-hero > .container { position: relative; }
.page-hero h1 { color: #fff; margin-bottom: var(--sp-3); }
.page-hero .lead { color: rgba(255, 255, 255, 0.86); max-width: 68ch; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  list-style: none;
  margin: 0 0 var(--sp-4);
  padding: 0;
  font-size: var(--fs-xs);
}
.breadcrumb li { margin: 0; color: rgba(255, 255, 255, 0.75); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.55rem; opacity: 0.55; }
.breadcrumb a { color: rgba(255, 255, 255, 0.9); font-weight: 600; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current="page"] { color: #fff; font-weight: 600; }

/* ------------------------------------------------------ 9. Cards & lists */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 1rem + 1vw, 2rem);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: var(--grad-brand);
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--brand-200); box-shadow: var(--shadow); }
.card:hover::after { opacity: 1; transform: none; }
.card h3 { font-size: var(--fs-xl); margin-bottom: var(--sp-3); }
.card p { color: var(--ink-500); font-size: var(--fs-sm); }
.card > .link-arrow:last-child { margin-top: auto; padding-top: var(--sp-4); align-self: flex-start; }
.card h3, .step h3, .info-card h3, .acc-btn { hyphens: auto; word-break: break-word; }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  flex: none;
  width: 52px; height: 52px;
  margin-bottom: var(--sp-5);
  border-radius: 14px;
  background: linear-gradient(140deg, var(--brand-50), var(--brand-100));
  border: 1px solid var(--brand-100);
  color: var(--brand-600);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card-icon svg { width: 24px; height: 24px; }
.card:hover .card-icon {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
}
.card-ghost { background: var(--ink-50); border-color: transparent; }
.card-ghost:hover { background: #fff; }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.8rem; }
.check-list li {
  position: relative;
  margin: 0;
  padding-left: 2rem;
  font-size: var(--fs-sm);
  color: var(--ink-600);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.25rem;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1px solid var(--brand-100);
  background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23660199' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.check-list.is-2col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem var(--sp-5); }
.section-ink .check-list li { color: var(--ink-300); }

.pill-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 38px;
  padding: 0.45rem 1rem;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 650;
  color: var(--ink-700);
}
.pill svg { width: 15px; height: 15px; color: var(--brand-600); }

.quote {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-left: 4px solid var(--brand-600);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 1rem + 1vw, 2rem);
  font-size: var(--fs-lg);
  color: var(--ink-700);
  font-style: italic;
}
.quote footer {
  margin-top: var(--sp-4);
  font-size: var(--fs-sm);
  font-style: normal;
  font-weight: 650;
  color: var(--ink-900);
}

/* ------------------------------------------------------- 10. Split media */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
}
.split.is-reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media > img { width: 100%; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.split-media::before {
  content: "";
  position: absolute;
  inset: auto -16px -16px auto;
  width: 60%; height: 60%;
  z-index: -1;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at 30% 30%, var(--brand-200) 1.5px, transparent 1.6px) 0 0 / 16px 16px;
}
.media-badge {
  position: absolute;
  bottom: 1rem; left: 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  box-shadow: var(--shadow);
}
.media-badge .num { font-size: var(--fs-2xl); font-weight: 750; color: var(--brand-600); line-height: 1; }
.media-badge .lbl { font-size: var(--fs-xs); font-weight: 650; color: var(--ink-500); line-height: 1.35; }

/* --------------------------------------------------- 11. Stats and steps */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
.stat {
  text-align: center;
  padding: var(--sp-6) var(--sp-4);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
}
.stat-icon {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  margin: 0 auto 0.8rem;
  border-radius: 12px;
  background: rgba(224, 186, 246, 0.16);
  border: 1px solid rgba(224, 186, 246, 0.28);
  color: var(--brand-200);
}
.stat-icon svg { width: 20px; height: 20px; }
.stat .num {
  display: block;
  font-size: clamp(1.8rem, 1.35rem + 1.6vw, 2.6rem);
  font-weight: 750;
  color: #fff;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.stat .lbl { display: block; margin-top: 0.4rem; font-size: var(--fs-sm); color: var(--ink-300); font-weight: 600; }

.steps { display: grid; gap: var(--sp-5); counter-reset: step; }
.step {
  position: relative;
  counter-increment: step;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: var(--sp-6) var(--sp-6) var(--sp-6) 4.75rem;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: var(--sp-5); top: var(--sp-6);
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--grad-brand);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 700;
}
.step::after {
  content: "";
  position: absolute;
  left: calc(var(--sp-5) + 19px);
  top: calc(var(--sp-6) + 48px);
  bottom: -0.75rem;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand-200), rgba(224, 186, 246, 0));
}
.step:last-child::after { display: none; }
.step h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.step p { font-size: var(--fs-sm); color: var(--ink-500); }

/* ---------------------------------------------------------- 12. Accordion */
.accordion { display: grid; gap: var(--sp-3); }
.acc-item {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.acc-item.is-open {
  border-color: var(--brand-200);
  box-shadow: var(--shadow-sm);
  background: linear-gradient(180deg, var(--brand-50), #fff 55%);
}
.acc-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  min-height: 56px;
  padding: 1.1rem 1.25rem;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: var(--fs-base);
  font-weight: 650;
  color: var(--ink-800);
  text-align: left;
  line-height: 1.45;
  cursor: pointer;
}
.acc-btn:hover { color: var(--brand-700); }
.acc-icon {
  position: relative;
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
}
.acc-icon::before, .acc-icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 11px; height: 2px;
  border-radius: 2px;
  background: var(--brand-600);
  transform: translate(-50%, -50%);
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}
.acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-item.is-open .acc-icon::after { opacity: 0; transform: translate(-50%, -50%); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s var(--ease); }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { margin: 0; padding: 0 1.25rem 1.25rem; font-size: var(--fs-sm); color: var(--ink-500); }

/* ---------------------------------------------------------------- 13. CTA */
.cta {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: var(--sp-6);
  align-items: center;
  padding: clamp(1.75rem, 1.25rem + 3vw, 3.5rem);
  border-radius: var(--radius-xl);
  background-color: var(--brand-700);
  background-image: var(--grad-brand);
  color: #fff;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.2), transparent 45%);
}
.cta > * { position: relative; }
.cta h2 { color: #fff; margin-bottom: var(--sp-3); }
.cta p { color: rgba(255, 255, 255, 0.9); margin: 0; max-width: 60ch; }

/* -------------------------------------------------------------- 14. Forms */
.form-card {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 1rem + 2vw, 2.5rem);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: calc(var(--header-total) + 20px);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4) var(--sp-5); }
.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.field.is-full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-sm); font-weight: 650; color: var(--ink-800); }
.field label .req { color: var(--danger); }
.field .hint { font-size: var(--fs-xs); color: var(--ink-500); }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: inherit;
  font-size: var(--fs-sm);
  color: var(--ink-800);
  background: #fff;
  border: 1.5px solid var(--ink-200);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.95rem;
  min-height: 48px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field select {
  appearance: none;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b5a7d' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 16px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand-400);
  box-shadow: 0 0 0 4px rgba(102, 1, 153, 0.13);
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: var(--danger);
}
.field-error { min-height: 1em; font-size: var(--fs-xs); font-weight: 600; color: var(--danger); }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: var(--fs-xs);
  color: var(--ink-500);
  cursor: pointer;
}
.checkbox input {
  width: 22px; height: 22px;
  flex: none;
  accent-color: var(--brand-600);
}

.form-alert {
  display: none;
  margin-bottom: var(--sp-4);
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.form-alert.is-visible { display: block; }
.form-alert.is-success { background: #e6f7f0; color: var(--success); border: 1px solid #b6e6d3; }
.form-alert.is-error { background: #fdecea; color: var(--danger); border: 1px solid #f7c9c4; }

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

/* --------------------------------------------------- 15. Contact and map */
.info-card {
  display: flex;
  gap: var(--sp-4);
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.info-card:hover { border-color: var(--brand-200); box-shadow: var(--shadow-sm); }
.info-icon {
  flex: none;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-600);
}
.info-icon svg { width: 22px; height: 22px; }
.info-card h3 { font-size: var(--fs-base); margin-bottom: 0.35rem; }
.info-card p { margin: 0; font-size: var(--fs-sm); color: var(--ink-500); }
.info-card a {
  display: flex;
  align-items: center;
  min-height: 40px;
  font-size: var(--fs-sm);
  font-weight: 650;
  color: var(--ink-700);
}
.info-card a:hover { color: var(--brand-700); }

.map-frame {
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-100);
  box-shadow: var(--shadow-sm);
}
.map-frame iframe { display: block; width: 100%; height: clamp(240px, 30vw, 340px); border: 0; }

/* Office blocks: map + info side by side */
.offices-grid { display: grid; gap: clamp(2rem, 1.5rem + 2vw, 3rem); }
.office-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  align-items: start;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-xl);
  padding: clamp(1.25rem, 1rem + 1vw, 2rem);
  overflow: hidden;
}
.office-block:hover { border-color: var(--brand-200); box-shadow: var(--shadow-sm); }
.office-map { border-radius: var(--radius-lg); overflow: hidden; }
.office-map .map-frame { border: 0; box-shadow: none; border-radius: 0; }
.office-map .map-frame iframe { height: 260px; }
.office-info { padding: var(--sp-4) 0; }
.office-info h3 { font-size: var(--fs-xl); margin-bottom: var(--sp-3); }
.office-info p { color: var(--ink-500); font-size: var(--fs-sm); line-height: 1.7; margin-bottom: var(--sp-5); }

@media (max-width: 767px) {
  .office-block { grid-template-columns: 1fr; }
  .office-map .map-frame iframe { height: 220px; }
}

/* ------------------------------------------------- 16. Prose and side nav */
.prose { max-width: 76ch; }
.prose > * + * { margin-top: var(--sp-4); }
.prose h2 { margin-top: var(--sp-8); font-size: var(--fs-2xl); }
.prose h3 { margin-top: var(--sp-6); font-size: var(--fs-xl); }
.prose p { color: var(--ink-600); }
.prose ul:not([class]) { list-style: none; padding-left: 0; }
.prose ul:not([class]) li { position: relative; padding-left: 1.6rem; }
.prose ul:not([class]) li::before {
  content: "";
  position: absolute;
  left: 0.25rem; top: 0.7rem;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand-600);
}

.side-nav {
  position: sticky;
  top: calc(var(--header-total) + 20px);
  background: var(--ink-50);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
}
.side-nav h2 {
  margin-bottom: var(--sp-4);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-500);
}
.side-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.side-nav li { margin: 0; }
.side-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-700);
}
.side-nav a:hover { background: #fff; color: var(--brand-700); }
.side-nav a.is-active { background: var(--brand-600); color: #fff; }

.layout-side {
  display: grid;
  grid-template-columns: minmax(260px, 300px) 1fr;
  gap: clamp(2rem, 1rem + 3vw, 3.5rem);
  align-items: start;
}
@media (min-width: 992px) {
  .layout-side.is-wide { grid-template-columns: 1fr 1.15fr; }
  .layout-side.is-form { grid-template-columns: 1.15fr 1fr; }
  .layout-side.is-form-alt { grid-template-columns: 1fr 1.2fr; }
}

/* ------------------------------------------------------------- 17. Footer */
.site-footer {
  background: var(--ink-900);
  color: var(--ink-300);
  font-size: var(--fs-sm);
  border-top: 3px solid transparent;
  border-image: var(--grad-brand) 1;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: clamp(2rem, 1.5rem + 2vw, 3rem);
  padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0 clamp(2rem, 1.5rem + 2vw, 3rem);
}
/* Footer sütun başlıkları: h3 olarak işaretlenir, h2 gibi görünür */
.site-footer h2,
.site-footer h3 {
  margin-bottom: var(--sp-5);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.site-footer a { color: var(--ink-300); }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.1rem; }
.footer-links li { margin: 0; }
.footer-links a { display: flex; align-items: center; min-height: 40px; }

.footer-brand img { height: 30px; width: auto; margin-bottom: var(--sp-5); }
.footer-brand p { max-width: 44ch; margin-bottom: var(--sp-5); line-height: 1.75; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0; }
.footer-badges span {
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-300);
}

.footer-social { display: flex; gap: 0.6rem; margin-top: var(--sp-4); }
.footer-social a {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.07);
  color: var(--ink-300);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer-social a:hover { background: rgba(255,255,255,0.18); color: #fff; border-color: rgba(255,255,255,0.4); }
.footer-social svg { width: 18px; height: 18px; }

.footer-contact { display: grid; gap: var(--sp-4); }
.footer-contact > div { display: flex; gap: 0.75rem; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; margin-top: 0.7rem; color: var(--brand-300); }
.footer-contact strong {
  display: block;
  margin-bottom: 2px;
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 650;
  letter-spacing: 0.02em;
}
.footer-contact p { margin: 0; line-height: 1.6; }
.footer-contact a { display: flex; align-items: center; min-height: 38px; }
.footer-phones { display: grid; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--fs-xs);
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: var(--sp-5); list-style: none; margin: 0; padding: 0; }
.footer-bottom li { margin: 0; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 40px; }
.footer-langs { display: flex; gap: 0.5rem; }
.footer-langs a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.25rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  font-weight: 650;
  letter-spacing: 0.06em;
}
.footer-langs a[aria-current="true"] { background: #fff; border-color: #fff; color: var(--brand-700); }

/* --------------------------------------------- 18. Floating & mobile bar */
.float-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: flex-end;
}
.float-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 48px;
  padding: 0 1.1rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--brand-600);
  color: #fff;
  font-family: inherit;
  font-size: var(--fs-xs);
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 18px -4px rgba(102,1,153,0.55);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.float-btn:hover { transform: translateY(-3px) scale(1.04); color: #fff; }
.float-btn svg { width: 22px; height: 22px; flex: none; }
.float-btn span { letter-spacing: 0.01em; }
.float-btn.is-wa { background: #1faa59; box-shadow: 0 4px 18px -4px rgba(31,170,89,0.55); }
.float-btn.is-wa:hover { background: #17904a; }
.float-btn.is-tel { background: var(--brand-600); background-image: linear-gradient(135deg, var(--brand-600), var(--brand-700)); }
.float-btn.is-tel:hover { background: var(--brand-700); background-image: none; }

.mobile-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  background: #fff;
  border-top: 1px solid var(--ink-200);
  box-shadow: 0 -8px 24px -14px rgba(25, 10, 37, 0.4);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bar a {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 58px;
  padding: 0.5rem 0.35rem;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--ink-700);
  border-right: 1px solid var(--ink-200);
}
.mobile-bar a:last-child { border-right: 0; }
.mobile-bar svg { width: 20px; height: 20px; color: var(--brand-600); }
.mobile-bar a.is-primary { background: var(--brand-600); color: #fff; }
.mobile-bar a.is-primary svg { color: #fff; }
.mobile-bar a.is-wa svg { color: #1faa59; }

/* ------------------------------------------------- 19. Utilities / motion */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

.error-code {
  margin-bottom: var(--sp-4);
  font-size: clamp(4rem, 3rem + 9vw, 8.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------- 20. Responsive */
@media (max-width: 1200px) {
  .nav-link { padding: 0.6rem 0.55rem; font-size: var(--fs-xs); }
  .dropdown { min-width: 260px; }
}

@media (max-width: 1100px) {
  .footer-main { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-main > div:last-child { grid-column: 1 / -1; }
}

/* Tablet and below: fixed header shrinks, drawer navigation takes over */
@media (max-width: 991px) {
  :root { --topbar-h: 0px; --header-h: 64px; }

  /* Mobile header: logo left, call + menu icons hard right */
  .topbar { display: none; }
  .nav-desktop { display: none; }
  .header-actions .btn-apply,
  .header-actions .lang { display: none; }
  .header-actions { margin-left: auto; gap: 0.5rem; }
  .header-icon { display: grid; }
  .nav-toggle { display: grid; }
  .header-inner { gap: var(--sp-4); }

  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split.is-reverse .split-media { order: 0; }
  .split-media::before { display: none; }
  .cta { grid-template-columns: 1fr; }
  .cta .btn-group .btn { flex: 1 1 auto; }

  /* content first, section navigation after it */
  .layout-side { grid-template-columns: 1fr; gap: var(--sp-6); }
  .layout-side > aside { order: 2; }
  .side-nav { position: static; }

  /* Float butonların footer'a binmemesi için alt boşluk */
  body { padding-bottom: 80px; }
}

@media (max-width: 767px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .check-list.is-2col { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-main > div:first-child,
  .footer-main > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --header-h: 60px; }

  body { padding-bottom: 58px; }
  .brand { min-height: 44px; }
  .brand img { height: 26px; }
  .header-icon { width: 42px; height: 42px; }
  .nav-toggle { width: 44px; height: 44px; }
  .section { padding: clamp(2.5rem, 2rem + 3vw, 3.5rem) 0; }

  /* Butonlar tam genişlik — ama float, header, drawer butonları hariç */
  .btn { width: 100%; }
  .btn-group .btn { width: 100%; }
  .header-actions .btn,
  .mobile-bar a,
  .drawer-langs a,
  .float-btn,
  .btn-sm { width: auto; }

  /* 16px prevents iOS from zooming the page on focus */
  .field input, .field select, .field textarea { font-size: 16px; }
  .field textarea { min-height: 120px; }

  .hero-badges { gap: var(--sp-3); margin-top: var(--sp-6); padding-top: var(--sp-5); }
  .hero-desc { margin-bottom: var(--sp-6); }

  .stats { grid-template-columns: 1fr 1fr; }
  .step { padding: var(--sp-5) var(--sp-5) var(--sp-5) 3.9rem; }
  .step::before { left: var(--sp-4); top: var(--sp-5); width: 34px; height: 34px; }
  .step::after { left: calc(var(--sp-4) + 16px); top: calc(var(--sp-5) + 42px); }

  /* comfortable tap targets on phones */
  .link-arrow { min-height: 44px; align-items: center; }
  .card > .link-arrow:last-child { padding-top: var(--sp-3); }
  .acc-btn { padding: 1rem; font-size: var(--fs-sm); }
  .acc-panel p { padding: 0 1rem 1rem; }
  .media-badge { bottom: 0.7rem; left: 0.7rem; padding: 0.6rem 0.8rem; }
  .footer-main { grid-template-columns: 1fr; gap: var(--sp-6); }
  .footer-main > div { grid-column: auto !important; }
  .footer-bottom { justify-content: center; text-align: center; }
  .footer-bottom ul { justify-content: center; gap: var(--sp-4); }

  .mobile-bar { display: flex; }
  /* 640px altında mobile-bar var, padding-bottom buna göre */
  body { padding-bottom: 58px; }
  .float-actions { bottom: calc(58px + 14px + env(safe-area-inset-bottom)); }
  .float-btn { height: 44px; padding: 0 0.9rem; font-size: 0.75rem; }
  .float-btn svg { width: 20px; height: 20px; }
}

@media (max-width: 400px) {
  .stats { grid-template-columns: 1fr; }
  .lang-toggle span { display: none; }
  .eyebrow { font-size: 0.6875rem; padding: 0.3rem 0.7rem; }
}

/* ------------------------------------------------------------- 21. Print */
@media print {
  .site-top, .drawer, .drawer-backdrop, .site-footer,
  .float-actions, .mobile-bar, .hero-media { display: none !important; }
  body { padding: 0; color: #000; }
  a { color: #000; text-decoration: underline; }
  .section { padding: 1rem 0; }
}
