/* ==========================================================================
   Valstone Law — design system
   Plain CSS, no framework. Every colour, type size and spacing value is a
   custom property defined once in :root. Layout changes only at the three
   breakpoints declared at the bottom (640px, 900px, 1080px). No element is
   positioned with position:absolute or transform for layout; the only fixed
   element is the cookie-consent banner.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* navy scale: change one value here and every use follows */
  --navy-990: #070e1a;
  --navy-950: #0b1526;
  --navy-900: #0f1e33;
  --navy-800: #13283f;
  --navy-700: #1c3a58;
  --navy-600: #25506f;
  --navy-500: #356788;
  --navy-400: #5a88a8;
  --navy-300: #8fb0c8;
  --navy-200: #c3d5e3;
  --navy-100: #e2ebf3;
  --navy-50:  #f2f6fa;

  /* single warm accent */
  --gold:      #b8873c;
  --gold-dark: #8f6a2c;

  /* neutrals */
  --ink:    #182230;
  --ink-2:  #465262;
  --ink-3:  #6b7684;
  --line:   #dbe2ea;
  --paper:  #ffffff;
  --paper-2:#f6f8fa;

  /* semantic aliases */
  --c-header-bg: var(--navy-990);
  --c-hero-bg:   var(--navy-900);
  --c-footer-bg: var(--navy-990);
  --c-btn:       var(--navy-800);
  --c-btn-hover: var(--navy-700);
  --c-link:      var(--navy-600);
  --c-rule:      var(--navy-600);
  --c-focus:     var(--navy-500);

  /* type */
  --font-display: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fs-body: 1.0625rem;
  --lh-body: 1.65;
  --fs-small: 0.9rem;
  --fs-eyebrow: 0.75rem;
  --fs-h1: clamp(2.25rem, 1.55rem + 2.6vw, 3.75rem);
  --fs-h2: clamp(1.7rem, 1.35rem + 1.2vw, 2.4rem);
  --fs-h3: clamp(1.2rem, 1.1rem + 0.4vw, 1.45rem);
  --fs-lede: clamp(1.1rem, 1.02rem + 0.35vw, 1.3rem);

  /* spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  --gutter: 16px;
  --container: 1400px;
  --narrow: 760px;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(15, 30, 51, 0.06), 0 8px 24px rgba(15, 30, 51, 0.06);
}

/* ---------- 2. Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/playfair-display-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/playfair-display-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/playfair-display-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/playfair-display-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/playfair-display-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/inter-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/inter-latin-700-normal.woff2") format("woff2"); }

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; margin: 0 0 var(--sp-4); color: var(--ink); text-wrap: balance; }
h1 { font-size: var(--fs-h1); letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 var(--sp-4); }
ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.4em; }
li { margin-bottom: var(--sp-2); }
a { color: var(--c-link); text-decoration: underline; text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy-800); }
strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-6) 0; }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; }
.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: static; width: auto; height: auto; display: inline-block; padding: var(--sp-2) var(--sp-4); background: var(--navy-100); color: var(--navy-950); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(16px, 5vw, 72px); }
.container.narrow { max-width: var(--narrow); }
.section { padding-block: var(--sp-7); }
.section--tint { background: var(--paper-2); }
.section--navy { background: var(--navy-900); color: var(--navy-100); }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy a { color: var(--navy-200); }
.section__intro, .lede.section__intro { font-size: 1.125rem; max-width: 88ch; margin-inline: auto; }

.eyebrow { font-family: var(--font-body); font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy-400); margin: 0 0 var(--sp-3); }
.lede { font-size: var(--fs-lede); line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.section--navy .lede { color: var(--navy-100); }
.muted { color: var(--ink-3); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- 4. Buttons ---------- */
.btn { display: inline-block; font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em; line-height: 1; padding: 0.95rem 1.5rem; border-radius: var(--radius); border: 1.5px solid transparent; text-decoration: none; cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.btn--primary { background: var(--c-btn); color: #fff; border-color: var(--c-btn); }
.btn--outline-dark { background: transparent; color: var(--navy-900); border-color: var(--navy-900); }
.btn--outline-dark:hover { background: var(--navy-900); color: #fff; }
.btn--large { font-size: 1.05rem; padding: 1.1rem 2rem; }
.btn--primary:hover { background: var(--c-btn-hover); border-color: var(--c-btn-hover); color: #fff; }
.btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn--outline:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn--light { background: #fff; color: var(--navy-900); border-color: #fff; }
.btn--light:hover { background: var(--navy-100); color: var(--navy-900); }
.btn--ghost { background: transparent; color: var(--navy-800); border-color: var(--navy-300); }
.btn--ghost:hover { border-color: var(--navy-800); color: var(--navy-900); }
.btn--small { padding: 0.7rem 1.1rem; font-size: 0.88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.btn-row--center { justify-content: center; margin-top: var(--sp-7); }

/* ---------- 5. Header ---------- */
.site-header { background: var(--c-header-bg); color: #fff; border-bottom: 1px solid rgba(255,255,255,0.08); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3) var(--sp-5); padding-block: var(--sp-4); }
.site-header__logo img { width: 200px; height: auto; }
.site-header__toggle { display: inline-flex; align-items: center; gap: var(--sp-2); background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); border-radius: var(--radius); padding: 0.45rem 0.7rem; font: inherit; font-size: 0.85rem; cursor: pointer; }
.site-header__toggle-bars { width: 18px; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
.site-nav { display: none; width: 100%; padding-block: var(--sp-3) var(--sp-4); border-top: 1px solid rgba(255,255,255,0.12); }
.site-nav.is-open { display: block; }
.site-nav__list { list-style: none; margin: 0 0 var(--sp-4); padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.site-nav__list a { color: #fff; text-decoration: none; font-size: 1rem; padding: var(--sp-2) 0; display: inline-block; border-bottom: 1px solid transparent; }
.site-nav__list a:hover, .site-nav__list a[aria-current="page"] { border-bottom-color: rgba(255,255,255,0.55); }
.site-nav__lang { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: 0.85rem; letter-spacing: 0.08em; margin-right: var(--sp-5); }
.site-nav__lang-current { color: #fff; font-weight: 600; }
.site-nav__lang-sep { color: rgba(255,255,255,0.4); }
.site-nav__lang-link { color: rgba(255,255,255,0.7); text-decoration: none; }
.site-nav__lang-link:hover { color: #fff; }
.site-nav__cta { margin-top: var(--sp-3); }

/* ---------- 6. Hero variants ---------- */
.hero { background: var(--navy-800); color: #fff; padding-block: var(--sp-8); }
.hero h1 { color: #fff; margin-bottom: var(--sp-4); }
.hero .lede { color: var(--navy-100); }
.hero__role { font-size: var(--fs-eyebrow); letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy-200); margin-bottom: var(--sp-5); }
.hero--image { display: grid; padding: 0; }
.hero--image > * { grid-area: 1 / 1; }
.hero__media { height: clamp(320px, 48vh, 440px); overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim { background: linear-gradient(180deg, rgba(11,21,38,0.45) 0%, rgba(11,21,38,0.7) 100%); }
.hero__body { display: flex; align-items: flex-end; padding-block: var(--sp-6); }
.hero__body h1 { max-width: 20ch; }
.hero--banner .hero__media { height: clamp(280px, 44vh, 440px); }
.hero--banner .hero__scrim { background: linear-gradient(180deg, rgba(11,21,38,0.18) 0%, rgba(11,21,38,0.55) 100%); }
.hero--banner h1 { text-shadow: 0 2px 12px rgba(0,0,0,0.45); }
.hero--banner .hero__media img { object-position: 50% 0; }
.hero--banner .hero__media img.pos-bottom { object-position: 50% 78%; }
.hero--banner.hero--lift .hero__scrim { background: linear-gradient(90deg, rgba(11,21,38,0) 0%, rgba(11,21,38,0) 30%, rgba(11,21,38,0.42) 70%, rgba(11,21,38,0.5) 100%), linear-gradient(180deg, rgba(11,21,38,0.04) 0%, rgba(11,21,38,0.15) 60%, rgba(11,21,38,0.4) 100%); }
.hero--banner.hero--lift h1 { text-shadow: 0 2px 6px rgba(0,0,0,0.6), 0 0 28px rgba(0,0,0,0.5); }
.hero--banner .hero__media img.pos-center { object-position: 50% 50%; }
.hero--banner .hero__body { padding-block: var(--sp-6); }
.hero--banner h1 { margin: 0; }
.intro-band { background: var(--navy-900); color: #fff; padding-block: var(--sp-6) var(--sp-7); }
.intro-band .container { max-width: 900px; }
.intro-band .lede { color: var(--navy-100); max-width: none; }
.intro-band .hero__sub { color: var(--navy-100); }
.intro-band p { color: var(--navy-100); }
.intro-band p:last-of-type { margin-bottom: 0; }
.intro-band .btn-row { margin-top: var(--sp-5); }
.hero--split .container { display: grid; gap: var(--sp-6); align-items: center; }
.hero__figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); }
.hero__figure img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 7. Cards ---------- */
.cards { display: grid; gap: var(--sp-5); list-style: none; margin: var(--sp-6) 0 0; padding: 0; }
.card { background: var(--navy-900); color: var(--navy-100); border: 0; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card h3 a, .card h4 a, .card--text h4 a, .card__body h3 a { color: #fff; }
.card p, .card__body p { color: var(--navy-100); }
.card a { color: #fff; }
.cards--plain .card { background: transparent; border: 0; border-radius: 0; padding: var(--sp-4) 0 0; }
.cards--plain .card::before { content: ""; display: block; width: 2.5rem; height: 2px; background: var(--navy-600); margin-bottom: var(--sp-4); }
.cards--center { display: flex; flex-wrap: wrap; justify-content: center; }
.cards--center .card { flex: 1 1 100%; }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-100); }
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.card__body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.card__body h3 { margin: 0; color: #fff; }
.card__body h3 a { color: #fff; text-decoration: none; }
.card__body h3 a:hover { text-decoration: underline; text-decoration-color: rgba(255,255,255,0.7); text-underline-offset: 0.2em; }
.card__body p { margin: 0; color: var(--navy-100); }
.card__more { margin-top: auto; font-weight: 600; font-size: 0.92rem; text-decoration: none; color: var(--navy-700); }
.card__more:hover { color: var(--navy-700); }
.card--text { padding: var(--sp-5); }
.card--text h4 { margin-bottom: var(--sp-2); color: #fff; }
.card--text h4 a { color: #fff; }
.card--text .card__lines, .card__body .card__lines { display: flex; flex-direction: column; gap: var(--sp-2); }
/* services page: more room around the intro and below the cards; card titles a step larger than their text */
.page-services .section { padding-block: 3.5rem 10rem; }
.page-services .cards { margin-top: var(--sp-7); }
.page-services .card--text h4 { font-size: 1.25rem; margin-bottom: var(--sp-4); }
/* home page cards: more room under the title and before the links */
.page-home .card__body h3 { margin-bottom: 1.625rem; }
.page-home .card__body .card__lines { margin-top: 1.25rem; }

/* ---------- 8. Split (media + text) ---------- */
.split { display: grid; gap: var(--sp-6); align-items: center; }
.split__media { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--navy-100); }
.split__media--portrait { aspect-ratio: 4 / 5; }
.split__media--compact { max-width: 360px; }
.split__media--compact img { filter: sepia(0.06) saturate(1.02); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 9. Article layout (long pages) ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); align-items: start; } /* minmax(0, ...): a wide table scrolls in its box instead of stretching the column */
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-3) var(--sp-4); background: var(--paper-2); }
.toc__box summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.toc__box summary::-webkit-details-marker { display: none; }
.toc__box summary::after { content: "+"; font-family: var(--font-display); font-size: 1.2rem; line-height: 1; color: var(--navy-500); }
.toc__box[open] summary::after { content: "\2013"; }
.toc__box[open] summary { margin-bottom: var(--sp-3); }
/* on wide screens the list sits beside the text: hairline on its right, generous gap */
.toc__label { font-size: var(--fs-eyebrow); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin: 0; }
.toc__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); }
.toc__list a { color: var(--ink-2); text-decoration: none; font-size: 0.92rem; line-height: 1.4; display: inline-block; }
.toc__list a:hover, .toc__list a.is-active { color: var(--navy-900); text-decoration: underline; text-decoration-color: var(--navy-400); }
.prose { max-width: 72ch; }
.prose h2 { margin-top: var(--sp-7); padding-top: var(--sp-2); }
.prose h2::after { content: ""; display: block; width: 44px; height: 2px; background: var(--c-rule); margin-top: var(--sp-3); }
.prose h2:first-child, .prose > .eyebrow + h2 { margin-top: 0; }
.prose h3 { margin-top: var(--sp-6); }
.prose h4 { margin-top: var(--sp-5); }
.prose ul { padding-left: 1.2em; }
.prose .separator { text-align: center; color: var(--navy-300); letter-spacing: 0.3em; margin-block: var(--sp-6); }
.pullquote { font-family: var(--font-display); font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem); line-height: 1.4; color: var(--navy-900); border-left: 3px solid var(--navy-600); padding: var(--sp-3) 0 var(--sp-3) var(--sp-5); margin: var(--sp-6) 0; }
.callout { background: var(--navy-50); border: 1px solid var(--navy-100); border-radius: var(--radius); padding: var(--sp-5); margin: var(--sp-6) 0; }
.callout p:last-child { margin-bottom: 0; }

/* portrait block */
.portrait { margin: 0 0 var(--sp-6); max-width: 360px; }
.portrait__frame { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--navy-100); }
.portrait__frame img { width: 100%; height: 100%; object-fit: cover; }
.portrait figcaption { font-size: var(--fs-small); color: var(--ink-3); margin-top: var(--sp-3); }
.portrait figcaption strong { display: block; color: var(--ink); font-weight: 600; }
.hero__portrait { margin: var(--sp-6) 0 0; max-width: 320px; }
.hero__portrait .portrait__frame { border: 1px solid rgba(255,255,255,0.15); }
.hero__portrait figcaption { color: var(--navy-200); }
.hero__portrait figcaption strong { color: #fff; }

/* credentials strip */
.creds { background: var(--navy-100); }
.creds__list { list-style: none; margin: 0; padding: var(--sp-6) 0; display: grid; gap: var(--sp-5) var(--sp-6); }
.creds__item { display: flex; gap: var(--sp-3); align-items: flex-start; margin: 0; }
.creds__item img { width: 56px; height: 56px; flex: 0 0 56px; }
.creds__label { display: block; font-size: var(--fs-eyebrow); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.creds__value { font-weight: 600; font-size: 0.92rem; line-height: 1.45; color: var(--ink); }
.creds__line { display: block; }
.creds__line + .creds__line { margin-top: 0.35rem; padding-top: 0.35rem; border-top: 1px solid var(--line); }
.membership { display: flex; align-items: center; gap: var(--sp-3); }
.membership img { width: 72px; height: 72px; flex: 0 0 72px; }

/* definition-style credentials list (About) */
.cred-grid { display: grid; gap: var(--sp-5); margin: var(--sp-5) 0 0; }
.cred-grid dt { font-size: var(--fs-eyebrow); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--sp-2); }
.cred-grid dd { margin: 0; }
.cred-grid dd + dd { margin-top: var(--sp-1); }

/* ---------- 10. Tables (always in normal flow) ---------- */
.table-wrap { overflow-x: auto; margin: var(--sp-5) 0 var(--sp-6); -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.data-table caption { caption-side: top; text-align: left; font-family: var(--font-display); font-size: var(--fs-h3); color: var(--navy-900); padding: 0 0 var(--sp-3); }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--line); }
.data-table thead th { background: var(--navy-900); color: #fff; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.02em; }
.data-table tbody th { font-weight: 600; color: var(--navy-900); width: 38%; background: var(--paper-2); }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: 2px solid var(--navy-200); }

/* ---------- 11. FAQ ---------- */
.faq { margin: var(--sp-5) 0; display: grid; gap: var(--sp-3); }
.faq__item { background: var(--navy-50); border: 1px solid var(--navy-100); border-radius: var(--radius); padding: 0 var(--sp-5); }
.faq__item[open] { border-color: var(--navy-200); }
.faq__item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-4) 0; font-weight: 600; color: var(--navy-900); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: 0 0 auto; font-family: var(--font-display); font-size: 1.4rem; line-height: 1; color: var(--navy-500); }
.faq__item[open] summary::after { content: "–"; }
.faq__item summary:hover { color: var(--navy-700); }
.faq__a { padding: 0 0 var(--sp-5); color: var(--ink-2); max-width: 70ch; }
.faq__a p:last-child { margin-bottom: 0; }

/* ---------- 12. Forms ---------- */
.form { max-width: 560px; }
.form__row { display: grid; gap: var(--sp-4); margin-bottom: var(--sp-4); }
.form__group { margin-bottom: var(--sp-4); }
.form__legend { font-weight: 600; margin-bottom: var(--sp-2); padding: 0; }
.form fieldset { border: 0; padding: 0; margin: 0 0 var(--sp-4); min-width: 0; }
.form label { display: block; font-weight: 500; margin-bottom: var(--sp-2); }
.form label .req { font-weight: 400; color: var(--ink-3); font-size: var(--fs-small); margin-left: var(--sp-1); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--navy-200); border-radius: var(--radius); padding: 0.7rem 0.85rem; }
.form input:focus, .form textarea:focus { border-color: var(--navy-600); outline: 3px solid var(--navy-100); outline-offset: 0; }
.form textarea { min-height: 120px; resize: vertical; }
.form__note { font-size: var(--fs-small); color: var(--ink-3); margin-top: var(--sp-4); }
.form__status { margin: var(--sp-4) 0 0; padding: var(--sp-3) var(--sp-4); border-radius: var(--radius); font-size: var(--fs-small); }
.form__status--ok { background: #eaf5ec; color: #1f5e2e; }
.form__status--error { background: #fbeaea; color: #8a1f1f; }
.form__status--pending { background: var(--navy-50); color: var(--ink-2); }
.form__hp { position: absolute; left: -9999px; }

/* ---------- 13. Contact details ---------- */
.contact-grid { display: grid; gap: var(--sp-7); align-items: start; }
.contact-details { background: var(--navy-50); border-radius: var(--radius); padding: var(--sp-6); }
.contact-details h2 { margin: 0 0 var(--sp-5); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--navy-200); font-family: var(--font-body); font-weight: 600; font-size: 1.35rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--navy-800); }
.contact-details p { margin-bottom: var(--sp-3); }
.contact-details .addr { white-space: pre-line; }

/* ---------- 14. CTA band ---------- */
.cta-band { background: var(--navy-900); color: var(--navy-100); }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-5); padding-block: var(--sp-6); }
.cta-band h2 { color: #fff; margin: 0 0 var(--sp-2); }
.cta-band p { margin: 0; max-width: 60ch; }

/* ---------- 15. Footer ---------- */
.site-footer { background: var(--c-footer-bg); color: var(--navy-200); font-size: var(--fs-small); }
.site-footer__inner { padding-block: var(--sp-7) var(--sp-6); display: grid; gap: var(--sp-4); }
.site-footer__logo img { width: 140px; height: auto; }
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-3); }
.site-footer__nav li { margin: 0; }
.site-footer__sep { display: none; }
.site-footer__phone { display: block; margin-top: var(--sp-2); }
.site-footer__nav a, .site-footer__nav .linklike { color: #fff; text-decoration: none; }
.site-footer__nav a:hover, .site-footer__nav .linklike:hover { text-decoration: underline; text-decoration-color: var(--navy-400); }
.site-footer__address a { color: #fff; text-decoration: none; }
.site-footer p { margin: 0; }
.site-footer__legal { color: var(--navy-300); }
.site-footer__copy { color: var(--navy-400); }

/* ---------- 16. Consent banner (the one fixed element) ---------- */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--navy-900); color: var(--navy-100); border-top: 1px solid rgba(255,255,255,0.12); box-shadow: 0 -8px 24px rgba(15,30,51,0.25); }
.consent a { color: #fff; }
.consent[hidden] { display: none; }
.consent__inner { max-width: var(--container); margin-inline: auto; padding: var(--sp-4) var(--gutter); display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; justify-content: space-between; }
.consent__text { margin: 0; font-size: var(--fs-small); max-width: 80ch; }
.consent__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.consent__panel { flex-basis: 100%; margin: 0; padding: var(--sp-3) 0 0; border: 0; border-top: 1px solid rgba(255,255,255,0.12); display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); align-items: center; font-size: var(--fs-small); }
.consent__panel[hidden] { display: none; }
.consent__cat { display: flex; gap: var(--sp-2); align-items: flex-start; cursor: pointer; }
.consent__cat input { flex: none; width: 1.1em; height: 1.1em; margin: 0.2em 0 0; accent-color: #fff; }
.consent__cat strong { color: #fff; font-weight: 600; }

/* ---------- 17. Page-specific ---------- */
.page-home .services-grid { margin-top: var(--sp-6); }
.page-404 h1 { margin-top: var(--sp-6); }


/* ---------- 17b. Service pages ---------- */
.hero__sub { font-family: var(--font-body); font-weight: 400; font-size: var(--fs-h3); color: var(--navy-100); margin: 0 0 var(--sp-4); }
.hero .btn-row { margin-top: var(--sp-5); }
.steps { list-style: none; padding: 0; margin: var(--sp-4) 0 var(--sp-5); }
.steps li { padding: var(--sp-3) 0 var(--sp-3) var(--sp-5); border-left: 2px solid var(--navy-100); margin: 0; }
.steps li strong { color: var(--navy-900); }
.fees { list-style: none; padding: 0; margin: var(--sp-4) 0; }
.fees li { padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); margin: 0; }
.fees li strong { color: var(--navy-900); }
.disclaimer { font-size: var(--fs-small); color: var(--ink-3); border-top: 1px solid var(--line); padding-top: var(--sp-4); margin-top: var(--sp-6); }
.callout .btn-row { margin-top: var(--sp-4); }
.prose .table-wrap:first-child { margin-top: 0; }

/* ---------- 18. Breakpoints (640, 900 and 1080 for layout; 400 and 375 for small phones only) ---------- */
@media (max-width: 399.98px) {
  /* Overview boxes (tables without a header row): label above value, so long words always fit. */
  .data-table:not(:has(thead)) tbody tr { display: block; border-bottom: 1px solid var(--line); }
  .data-table:not(:has(thead)) tbody th, .data-table:not(:has(thead)) tbody td { display: block; width: auto; border: 0; }
  .data-table:not(:has(thead)) tbody th { padding-bottom: 0; }
  .data-table:not(:has(thead)) tbody td { padding-top: var(--sp-1); }
  /* Price tables keep two columns, with less padding at the sides. */
  .data-table:not(.data-table--stack) thead th, .data-table:not(.data-table--stack) tbody th, .data-table:not(.data-table--stack) td { padding-inline: var(--sp-3); }
}
@media (max-width: 374.98px) {
  /* Large headings slightly smaller (34px instead of 36px), so "Einwanderungsrecht" on /de/start fits at 360px. */
  :root { --fs-h1: 2.125rem; }
}
@media (max-width: 639px) {
  .data-table--stack thead { display: none; }
  .data-table--stack tr { display: block; padding: var(--sp-3) 0; border-bottom: 2px solid var(--navy-200); }
  .data-table--stack th, .data-table--stack td, .data-table--stack tbody th { display: block; width: auto; border: 0; padding: var(--sp-1) 0; background: transparent; }
  .data-table--stack tbody th { font-family: var(--font-body); font-weight: 600; color: var(--navy-900); padding-bottom: var(--sp-2); }
  .data-table--stack td::before { content: attr(data-label); display: block; font-size: var(--fs-eyebrow); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
}
@media (min-width: 640px) {
  .page-services .section { padding-block: 5rem 16rem; }
  .page-services .cards { margin-top: var(--sp-8); }
  :root { --gutter: 24px; }
  .form__row { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards--center .card { flex: 0 1 calc((100% - var(--sp-5)) / 2); }
  .creds__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cred-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  :root { --gutter: 32px; }
  .site-header__toggle { display: none; }
  .site-nav { display: flex; width: auto; align-items: center; gap: var(--sp-7); padding: 0; border: 0; }
  .site-nav__list { flex-direction: row; gap: var(--sp-6); margin: 0; }
  .site-nav__list a { font-size: 0.95rem; }
  .site-nav__list li { display: flex; margin: 0; }
  .site-nav__lang { margin: 0 0 0 var(--sp-3); }
  .site-footer__nav ul { flex-direction: row; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); }
  .site-footer__sep { display: inline; }
  .site-footer__phone { display: inline; margin: 0; }
  .site-footer__inner { grid-template-columns: auto 1fr; align-items: center; }
  .site-footer__nav { justify-self: end; }
  .site-footer__address, .site-footer__legal, .site-footer__copy { grid-column: 1 / -1; }
  .site-nav__cta { margin: 0; }
  .site-header__logo img { width: 260px; }
  .site-header__inner { padding-block: 1.7rem; }
  .site-nav__list a { font-size: 1.05rem; }
  .hero--split .container { grid-template-columns: 1.15fr 1fr; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .cards--center .card { flex: 0 1 calc((100% - 2 * var(--sp-5)) / 3); }
  /* four-card service grids: 2 + 2, each card as wide as in a three-column row, centred */
  .cards--two { grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; }
  .split { grid-template-columns: 1fr 1fr; }
  .split--compact { grid-template-columns: 0.7fr 1.3fr; }
  .split--reverse .split__media { order: 2; }
  .contact-grid { grid-template-columns: minmax(0, 560px) minmax(300px, 380px); justify-content: space-between; column-gap: var(--sp-9); }
}
@media (min-width: 1300px) { /* facts strip on wide screens: four blocks, one line per value */
  .creds .container { max-width: 1320px; }
  .creds__list { display: flex; justify-content: space-between; gap: var(--sp-6); }
  .creds__item { flex: 0 1 auto; white-space: nowrap; }
}
@media (min-width: 1080px) {
  .article-layout { grid-template-columns: 250px minmax(0, 1fr); gap: var(--sp-8) 4rem; }
  .toc { border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; padding: 0 var(--sp-5) 0 0; }
  .toc__box summary { pointer-events: none; margin-bottom: var(--sp-3); }
  .toc__box summary::after { content: none; }
  .toc__list { gap: var(--sp-3) 0; }
  .hero--about .container { grid-template-columns: minmax(0, 1fr) 320px; }
  .hero__portrait { margin: 0; justify-self: end; }
  .article-layout--portrait .toc { order: 1; }
  .article-layout--portrait .prose { order: 2; }
  .article-layout--portrait .portrait-col { order: 3; }
  .toc { position: sticky; top: var(--sp-5); }
  .toc__list { flex-direction: column; gap: var(--sp-2); }
  .hero__body { padding-block: var(--sp-7); }
  .hero__media { height: clamp(460px, 64vh, 600px); }
  .hero--image:not(.hero--banner) .hero__body h1 { font-size: clamp(2.1rem, 1.5rem + 2vw, 3.3rem); max-width: 22ch; }
  .hero--image:not(.hero--banner) .hero__scrim { background: linear-gradient(180deg, rgba(11,21,38,0.2) 0%, rgba(11,21,38,0.55) 100%); }
  .hero--image:not(.hero--banner) .hero__body h1 { text-shadow: 0 2px 12px rgba(0,0,0,0.45); }
}

/* ---------- 19. Print ---------- */
@media print {
  .site-header, .site-footer, .consent, .toc, .site-nav__cta { display: none !important; }
  body { font-size: 11pt; }
  a { color: inherit; text-decoration: none; }
}
