/* Pioneer Pharma — site styles */

/* ---------- Brand tokens ---------- */
:root {
  --purple:    #5B2A86;  /* Pioneer Purple — primary */
  --purple-d:  #4A2170;  /* darker purple for hover on solid buttons */
  --aubergine: #1F1033;  /* Deep Aubergine — footer, dark sections, headings */
  --gold:      #C2922F;  /* Pioneer Gold — thin rules, dots, small accents only */
  --orchid:    #9B6FC9;  /* Orchid — hover states, secondary accents */
  --lilac:     #F5F1FA;  /* Lilac Mist — alternate backgrounds, cards */
  --slate:     #4D4757;  /* Slate Plum — body text */
  --white:     #FFFFFF;
  --line:      #E6DFEF;  /* soft card border, derived from lilac */
  --muted:     #7A7386;  /* secondary text */

  --font-heading: "Sora", "Segoe UI", Arial, sans-serif;
  --font-body:    "Inter", "Segoe UI", Arial, sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 76px;
  --container: 1160px;
  --shadow: 0 10px 30px rgba(31, 16, 51, .08);

  /* 8px spacing grid */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 40px; --s6: 48px; --s8: 64px; --s10: 80px; --s12: 96px; --s14: 112px;
}

/* Arabic version (future): switch fonts here, layout mirrors via logical properties */
html[lang="ar"] {
  --font-heading: "IBM Plex Sans Arabic", "Sora", sans-serif;
  --font-body:    "IBM Plex Sans Arabic", "Inter", sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--s2));
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--aubergine);
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--orchid); text-decoration: underline; text-underline-offset: 3px; }
strong { font-weight: 600; }
:focus-visible {
  outline: 3px solid var(--orchid);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; inset-inline-start: var(--s2); top: -100px;
  background: var(--purple); color: var(--white);
  padding: var(--s1) var(--s2); border-radius: 999px; z-index: 100;
}
.skip-link:focus { top: var(--s2); text-decoration: none; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s3);
}
.container--narrow { max-width: 820px; }
.section { padding-block: var(--s10); }
.section--alt { background: var(--lilac); }
.section--dark { background: var(--aubergine); color: rgba(255,255,255,.82); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark .eyebrow { color: var(--orchid); }
.section--tight { padding-block: var(--s8); }
@media (min-width: 900px) { .section { padding-block: var(--s12); } .section--tight { padding-block: var(--s10); } }

.section-head { max-width: 680px; margin-bottom: var(--s6); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p { margin-top: var(--s2); font-size: 1.0625rem; }
.section-head .lead { font-size: 1.125rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-weight: 500; font-size: 0.8125rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--purple);
  margin-bottom: var(--s2);
}
.eyebrow::before { content: ""; width: 32px; height: 1.5px; background: var(--gold); }
h2 { font-size: clamp(1.75rem, 1.25rem + 2vw, 2.5rem); }
h3 { font-size: 1.1875rem; }
h4 { font-size: 1rem; }
.lead { font-size: 1.125rem; }
.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 28px;
  border-radius: 999px; border: 1.5px solid var(--purple);
  font-family: var(--font-body); font-weight: 500; font-size: 0.9375rem;
  line-height: 1; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, border-color .2s, box-shadow .2s, color .2s, transform .2s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.btn--solid { background: var(--purple); color: var(--white); }
.btn--solid:hover, .btn--solid:focus-visible {
  background: var(--purple-d); color: var(--white); border-color: var(--purple-d);
  box-shadow: 0 8px 20px rgba(91, 42, 134, .25);
}
.btn--outline { background: transparent; color: var(--purple); }
.btn--outline:hover, .btn--outline:focus-visible {
  color: var(--purple); border-color: var(--orchid); background: var(--white);
  box-shadow: 0 0 0 4px rgba(155, 111, 201, .25);
}
.btn--white { background: var(--white); color: var(--purple); border-color: var(--white); }
.btn--white:hover, .btn--white:focus-visible { background: var(--lilac); color: var(--purple); border-color: var(--lilac); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--white); border-color: var(--white); background: rgba(255,255,255,.08); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 0.875rem; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 46px; width: auto; }
.brand:hover { text-decoration: none; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  background: transparent; border: 0; border-radius: 8px;
  color: var(--purple); cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav {
  display: none;
  position: absolute; inset-inline: 0; top: var(--header-h);
  background: var(--white); border-bottom: 1px solid var(--line);
  padding: var(--s2) var(--s3) var(--s3);
  box-shadow: var(--shadow);
}
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.site-nav a:not(.btn) {
  display: block; padding: 10px 0;
  color: var(--aubergine); font-weight: 500; font-size: 0.9375rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover { color: var(--purple); text-decoration: none; border-bottom-color: var(--orchid); }
.site-nav a[aria-current="page"] { color: var(--purple); border-bottom-color: var(--gold); }
.site-nav li.nav-cta { margin-top: var(--s2); }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; padding: 0; border: 0; background: none; box-shadow: none; }
  .site-nav ul { flex-direction: row; align-items: center; gap: var(--s4); }
  .site-nav a:not(.btn) { padding: 6px 0; }
  .site-nav li.nav-cta { margin: 0; margin-inline-start: var(--s1); }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--lilac) 0%, #FBF9FD 100%);
  padding-block: var(--s10);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(91,42,134,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,42,134,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 80% 40%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 80% 40%, #000 20%, transparent 70%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: var(--s8); align-items: center; }
.hero-inner { max-width: 640px; }
.hero-rule { width: 64px; height: 1.5px; background: var(--gold); margin-bottom: var(--s3); }
.hero h1 { font-size: clamp(2.125rem, 1.4rem + 3.4vw, 3.5rem); color: var(--aubergine); letter-spacing: -0.02em; }
.hero h1 span { color: var(--purple); }
.hero p { margin-top: var(--s3); font-size: 1.125rem; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }
.hero-meta { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); margin-top: var(--s5); font-size: 0.875rem; color: var(--muted); }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; list-style: none; }
.hero-meta svg { width: 18px; height: 18px; color: var(--purple); }

.hero-panel { position: relative; }
.hero-panel .panel-deco {
  position: absolute; inset: -40px -60px auto auto; width: 320px; height: 320px;
  color: var(--purple); opacity: .6; pointer-events: none;
}
.hero-tiles { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.hero-tile {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s3); box-shadow: var(--shadow);
  transition: transform .25s, border-color .2s;
}
.hero-tile:hover { transform: translateY(-3px); border-color: var(--orchid); text-decoration: none; }
.hero-tile:nth-child(2) { transform: translateY(24px); }
.hero-tile:nth-child(2):hover { transform: translateY(21px); }
.hero-tile:nth-child(4) { transform: translateY(24px); }
.hero-tile:nth-child(4):hover { transform: translateY(21px); }
.hero-tile .card-icon { width: 42px; height: 42px; }
.hero-tile .card-icon svg { width: 22px; height: 22px; }
.hero-tile h3 { font-size: 0.9375rem; margin-top: var(--s2); color: var(--aubergine); }
.hero-tile p { font-size: 0.8125rem; margin-top: 4px; color: var(--muted); }
@media (min-width: 960px) {
  .hero { padding-block: var(--s14); }
  .hero-grid { grid-template-columns: 7fr 5fr; gap: var(--s10); }
}
@media (max-width: 959px) {
  .hero-panel { margin-top: var(--s4); }
  .hero-panel .panel-deco { display: none; }
}
@media (max-width: 639px) {
  .hero-tile:nth-child(2), .hero-tile:nth-child(4) { transform: none; }
  .hero-tile:nth-child(2):hover, .hero-tile:nth-child(4):hover { transform: translateY(-3px); }
}

/* ---------- Standards strip ---------- */
.strip { background: var(--white); border-block: 1px solid var(--line); padding-block: var(--s3); }
.strip .container { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); justify-content: center; }
.strip-label { font-size: 0.8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.strip ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); justify-content: center; }
.strip li { font-family: var(--font-heading); font-weight: 600; font-size: 0.9375rem; color: var(--aubergine); display: inline-flex; align-items: center; gap: 10px; }
.strip li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background: var(--aubergine); color: var(--white);
  padding-block: var(--s8);
}
.page-hero::after {
  content: ""; position: absolute; inset-inline-end: -160px; top: -120px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(155,111,201,.35) 0%, rgba(155,111,201,0) 65%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { color: var(--orchid); }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); letter-spacing: -0.02em; max-width: 760px; }
.page-hero p { margin-top: var(--s2); font-size: 1.125rem; color: rgba(255,255,255,.8); max-width: 680px; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.8125rem; color: rgba(255,255,255,.6); margin-bottom: var(--s3); }
.breadcrumb a { color: rgba(255,255,255,.75); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb li + li::before { content: "/"; margin-inline-end: 6px; color: rgba(255,255,255,.35); }
@media (min-width: 900px) { .page-hero { padding-block: var(--s10); } }

/* ---------- Two-column content ---------- */
.split { display: grid; gap: var(--s5); }
.split .section-head { margin-bottom: 0; }
.split p + p { margin-top: var(--s2); }
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 7fr; gap: var(--s10); align-items: start; }
  .split--even { grid-template-columns: 1fr 1fr; }
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: var(--s3); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s4);
  transition: border-color .2s, box-shadow .2s, transform .2s;
  display: flex; flex-direction: column;
}
.card:hover { border-color: var(--orchid); box-shadow: var(--shadow); transform: translateY(-2px); }
.section--alt .card { border-color: transparent; }
.section--alt .card-icon, .section--alt .scope-item .card-icon { background: var(--white); }
.section--alt .service-block .card-icon { background: var(--white); border: 1px solid var(--line); }
.section--alt .card:hover { border-color: var(--orchid); }
.card h3 { margin-top: var(--s2); }
.card p { margin-top: var(--s1); font-size: 0.9375rem; }
.card .link-arrow { margin-top: auto; padding-top: var(--s3); font-size: 0.9rem; }
.card-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--lilac); color: var(--purple);
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.card-icon svg { width: 26px; height: 26px; }
.card--link { color: inherit; }
.card--link:hover { text-decoration: none; color: inherit; }
.card--dark { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.card--dark:hover { border-color: var(--orchid); box-shadow: none; }
.card--dark .card-icon { background: rgba(155,111,201,.18); color: var(--white); }
.card--dark p { color: rgba(255,255,255,.78); }

/* ---------- Lists ---------- */
.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { position: relative; padding-inline-start: 32px; }
.check-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--lilac);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B2A86' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E");
  background-size: 13px; background-position: center; background-repeat: no-repeat;
}
.section--dark .check-list li::before { background-color: rgba(155,111,201,.2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C2922F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E"); }
.check-list--2 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .check-list--2 { grid-template-columns: 1fr 1fr; column-gap: var(--s4); } }

.dot-list { list-style: none; display: grid; gap: var(--s3); }
.dot-item { position: relative; padding-inline-start: var(--s3); }
.dot-item::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 0.55em;
  width: 10px; height: 10px; border-radius: 50%; background: var(--gold);
}
.dot-item h3 { font-size: 1.0625rem; }
.dot-item p { margin-top: 6px; font-size: 0.9375rem; }

/* ---------- Why us (dark band) ---------- */
.why-grid { display: grid; gap: var(--s5); }
.why-grid .check-list { gap: var(--s2); }
.why-grid .check-list li { font-size: 1.0625rem; color: var(--white); font-weight: 500; }
.why-grid .check-list li span { display: block; font-weight: 400; font-size: 0.9375rem; color: rgba(255,255,255,.7); margin-top: 2px; }
.why-quote {
  border-inline-start: 2px solid var(--gold); padding-inline-start: var(--s3);
  font-family: var(--font-heading); font-size: 1.25rem; color: var(--white); line-height: 1.45;
}
.why-quote small { display: block; margin-top: var(--s2); font-family: var(--font-body); font-size: 0.875rem; color: rgba(255,255,255,.6); }
@media (min-width: 900px) { .why-grid { grid-template-columns: 5fr 7fr; gap: var(--s10); align-items: center; } }

/* ---------- Process steps ---------- */
.steps { list-style: none; display: grid; gap: var(--s3); counter-reset: step; }
.step {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s4); padding-top: var(--s5);
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: var(--s3); inset-inline-end: var(--s3);
  font-family: var(--font-heading); font-weight: 600; font-size: 0.875rem; color: var(--gold); letter-spacing: .05em;
}
.step h3 { font-size: 1.0625rem; }
.step p { margin-top: var(--s1); font-size: 0.9375rem; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Projects ---------- */
.project-card::before {
  content: ""; display: block; width: 40px; height: 3px;
  background: var(--purple); border-radius: 2px; margin-bottom: var(--s2);
}
.project-card h3 { margin-top: 0; }
.tag {
  display: inline-block; margin-top: var(--s2);
  font-size: 0.75rem; font-weight: 500; color: var(--purple); letter-spacing: .04em; text-transform: uppercase;
  background: var(--lilac); padding: 4px 10px; border-radius: 999px; align-self: flex-start;
}
.project-meta { display: grid; gap: 4px; margin-top: var(--s3); font-size: 0.875rem; }
.project-meta dt { font-weight: 500; color: var(--aubergine); }
.project-meta dd { margin: 0 0 var(--s1); }

/* ---------- Values / stats ---------- */
.value { padding: var(--s3); border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.value h3 { font-size: 1.0625rem; display: flex; align-items: center; gap: 10px; }
.value h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: 0 0 auto; }
.value p { margin-top: var(--s1); font-size: 0.9375rem; }

.pill-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s3); }
.pill-list li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 0.9rem; font-weight: 500; color: var(--aubergine); }
.section--alt .pill-list li { border-color: transparent; }

/* ---------- Services page ---------- */
.service-block { padding-block: var(--s6); border-top: 1px solid var(--line); }
.service-block:first-of-type { border-top: 0; padding-top: 0; }
.service-block .split { align-items: start; }
.service-block h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.875rem); }
.service-block .num { font-family: var(--font-heading); font-weight: 600; color: var(--gold); font-size: 0.875rem; letter-spacing: .1em; margin-bottom: var(--s1); }
.service-block .card-icon { margin-bottom: var(--s2); }
.service-block p.intro { margin-top: var(--s2); }
.service-block .check-list { margin-top: var(--s3); }
.service-block .check-list li { font-size: 0.9375rem; }
.scope-grid { display: grid; gap: var(--s3); }
@media (min-width: 640px) { .scope-grid { grid-template-columns: repeat(2, 1fr); } }
.scope-item { padding: var(--s3); background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.scope-item h3 { font-size: 1rem; }
.scope-item p { margin-top: var(--s1); font-size: 0.9rem; }

/* Anchor targets on pages with a sub-navigation clear both sticky bars */
.subnav ~ section, .service-block { scroll-margin-top: calc(var(--header-h) + 64px); }

/* Sticky page sub-navigation */
.subnav { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: var(--header-h); z-index: 30; }
.subnav ul { list-style: none; display: flex; gap: var(--s3); overflow-x: auto; padding-block: 14px; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { white-space: nowrap; font-size: 0.875rem; font-weight: 500; color: var(--slate); }
.subnav a:hover { color: var(--purple); text-decoration: none; }

/* ---------- CTA band ---------- */
.cta {
  background: var(--purple); color: var(--white);
  padding-block: var(--s8);
  position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; inset-inline-start: -80px; bottom: -160px;
  width: 360px; height: 360px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.12);
}
.cta::after {
  content: ""; position: absolute; inset-inline-end: 10%; top: -220px;
  width: 400px; height: 400px; border-radius: 50%; border: 1.5px solid rgba(194,146,47,.5);
}
.cta .container { position: relative; z-index: 1; display: grid; gap: var(--s4); }
.cta h2 { color: var(--white); font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.125rem); }
.cta p { margin-top: var(--s1); color: rgba(255,255,255,.82); max-width: 560px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
@media (min-width: 900px) {
  .cta .container { grid-template-columns: 1fr auto; align-items: center; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: var(--s6); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: var(--s10); align-items: start; } }
.contact-list { list-style: none; margin-top: var(--s4); display: grid; gap: var(--s3); }
.contact-list li { display: flex; gap: var(--s2); align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; flex: 0 0 22px; color: var(--purple); margin-top: 3px; }
.contact-list strong { display: block; font-weight: 500; color: var(--aubergine); margin-bottom: 2px; }
.contact-list a { color: var(--slate); }
.contact-list a:hover { color: var(--purple); }
.contact-note { margin-top: var(--s4); padding: var(--s3); background: var(--lilac); border-radius: var(--radius); font-size: 0.9rem; }
.contact-note strong { color: var(--aubergine); font-weight: 500; }

.form {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--s4);
  display: grid; gap: var(--s2);
  box-shadow: var(--shadow);
}
.form h2 { font-size: 1.5rem; }
.form .form-intro { font-size: 0.9375rem; color: var(--muted); margin-top: -8px; }
@media (min-width: 640px) {
  .form { grid-template-columns: 1fr 1fr; gap: var(--s3) var(--s2); padding: var(--s5); }
  .form .full { grid-column: 1 / -1; }
}
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: 0.875rem; color: var(--aubergine); }
.field label .req { color: var(--gold); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--slate);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--orchid); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(155, 111, 201, .25);
}
.field textarea { min-height: 150px; resize: vertical; }
.field-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.875rem; }
.field-check input { margin: 4px 0 0; width: 18px; height: 18px; accent-color: var(--purple); flex: 0 0 auto; }
/* Honeypot: off-screen, never display:none (some bots skip hidden inputs) */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.form-note { font-size: 0.8125rem; color: var(--muted); }
.form-status { font-size: 0.9375rem; padding: 12px 16px; border-radius: var(--radius-sm); display: none; }
.form-status.is-visible { display: block; }
.form-status--ok { background: #EEF7F0; color: #1F5F35; border: 1px solid #CBE6D2; }
.form-status--error { background: #FBF0EE; color: #8A2F22; border: 1px solid #F0D3CD; }

.map { margin-top: var(--s8); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--lilac); }
.map iframe { display: block; width: 100%; height: 360px; border: 0; }

/* ---------- Legal / prose pages ---------- */
.prose { max-width: 780px; }
.prose > * + * { margin-top: var(--s2); }
.prose h2 { font-size: 1.5rem; margin-top: var(--s6); padding-top: var(--s3); border-top: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.125rem; margin-top: var(--s4); }
.prose ul, .prose ol { padding-inline-start: 22px; display: grid; gap: 8px; }
.prose li::marker { color: var(--purple); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; margin-top: var(--s2); }
.prose th, .prose td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 500; color: var(--aubergine); background: var(--lilac); }
.prose .meta { font-size: 0.875rem; color: var(--muted); }
.prose .callout { background: var(--lilac); border-inline-start: 3px solid var(--gold); padding: var(--s2) var(--s3); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 0.9375rem; }
.toc { background: var(--lilac); border-radius: var(--radius); padding: var(--s3) var(--s4); margin-bottom: var(--s5); }
.toc strong { display: block; color: var(--aubergine); font-weight: 500; margin-bottom: var(--s1); }
.toc ol { padding-inline-start: 20px; display: grid; gap: 6px; font-size: 0.9375rem; }
.toc a { color: var(--slate); }
.toc a:hover { color: var(--purple); }
.legal-layout { display: grid; gap: var(--s6); }
@media (min-width: 1000px) {
  .legal-layout { grid-template-columns: 260px 1fr; gap: var(--s10); align-items: start; }
  .legal-layout .toc { position: sticky; top: calc(var(--header-h) + var(--s3)); margin-bottom: 0; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--aubergine); color: rgba(255,255,255,.8); padding-block: var(--s10) var(--s4); font-size: 0.9375rem; }
.footer-grid { display: grid; gap: var(--s6); }
.footer-brand img { height: 40px; width: auto; }
.footer-brand p { margin-top: var(--s3); max-width: 340px; font-size: 0.9rem; color: rgba(255,255,255,.7); }
.footer-col h3 { color: var(--white); font-size: 0.8125rem; letter-spacing: .1em; text-transform: uppercase; font-family: var(--font-body); font-weight: 600; margin-bottom: var(--s2); }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: rgba(255,255,255,.8); }
.footer-col a:hover { color: var(--white); }
.footer-col address { font-style: normal; display: grid; gap: 10px; }
.footer-col address span { display: block; }
.footer-rule { height: 1.5px; background: var(--gold); margin-block: var(--s6) var(--s3); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); justify-content: space-between; font-size: 0.8125rem; color: rgba(255,255,255,.65); }
.footer-legal { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); }
.footer-legal a { color: rgba(255,255,255,.65); }
.footer-legal a:hover { color: var(--white); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--s8); } }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-block: var(--s14); }
.notfound .code { font-family: var(--font-heading); font-weight: 600; font-size: 5rem; color: var(--purple); line-height: 1; }
.notfound h1 { margin-top: var(--s2); font-size: 1.75rem; }
.notfound p { margin-top: var(--s2); }
.notfound .hero-actions { justify-content: center; }
