/* ==========================================================================
   drdragoi.ro — design system
   Derived from the GetLayers "Aerra" style (light editorial, glass surfaces,
   one action pill, spring motion) re-skinned with the practice's own palette:
   off-white ground, navy ink, cyan accent, a rationed peach secondary.
   ========================================================================== */

/* ---- Fonts: Google Sans Flex, self-hosted (static 24pt cuts, full Latin-Ext) */
@font-face { font-family: "Google Sans Flex"; font-style: normal; font-weight: 100; font-display: swap; src: url("../fonts/GoogleSansFlex-Thin.woff2") format("woff2"); }
@font-face { font-family: "Google Sans Flex"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/GoogleSansFlex-Light.woff2") format("woff2"); }
@font-face { font-family: "Google Sans Flex"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/GoogleSansFlex-Regular.woff2") format("woff2"); }
@font-face { font-family: "Google Sans Flex"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/GoogleSansFlex-Medium.woff2") format("woff2"); }

/* ---- Tokens ------------------------------------------------------------- */
:root {
  /* Tier 1 — primitives (the only place a literal lives) */
  --raw-offwhite: #FAF9FB;
  --raw-white: #FFFFFF;
  --raw-navy: #202135;
  --raw-navy-70: rgba(32, 33, 53, 0.7);
  --raw-navy-55: rgba(32, 33, 53, 0.55);
  --raw-navy-10: rgba(32, 33, 53, 0.1);
  --raw-cyan: #15B9D9;
  --raw-cyan-deep: #0E93AD;
  --raw-cyan-10: rgba(21, 185, 217, 0.1);
  --raw-cyan-90: rgba(21, 185, 217, 0.9);
  --raw-peach: #EFA286;
  --raw-grey-100: #F1F0F3;
  --raw-glass: rgba(250, 249, 251, 0.8);
  --raw-panel: rgba(255, 255, 255, 0.85);
  --raw-white-50: rgba(255, 255, 255, 0.5);
  --raw-white-20: rgba(255, 255, 255, 0.2);

  /* Tier 2 — roles */
  --background: var(--raw-offwhite);
  --foreground: var(--raw-navy);
  --foreground-muted: var(--raw-navy-55);
  --surface-muted: var(--raw-grey-100);
  --surface-glass: var(--raw-glass);
  --surface-nav: var(--raw-glass);
  --surface-panel: var(--raw-panel);
  --surface-white: var(--raw-white);
  --on-media: var(--raw-white);
  --on-media-muted: var(--raw-white-50);
  --accent: var(--raw-cyan);
  --accent-deep: var(--raw-cyan-deep);
  --accent-soft: var(--raw-cyan-10);
  --secondary: var(--raw-peach);
  --action-primary: var(--raw-navy);
  --action-primary-foreground: var(--raw-white);
  --action-tile: var(--raw-cyan);
  --action-tile-ink: var(--raw-white);
  --border-subtle: var(--raw-navy-10);
  --border-field: var(--raw-navy);
  --scrim-hero: linear-gradient(to bottom, rgba(32,33,53,0.55) 0%, rgba(32,33,53,0.25) 45%, rgba(32,33,53,0.65) 100%);
  --scrim-band: linear-gradient(rgba(32,33,53,0.62), rgba(32,33,53,0.62));
  --scrim-accent: linear-gradient(rgba(21,185,217,0.88), rgba(21,185,217,0.88));
  --wordmark-fill: linear-gradient(to bottom, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 82.23%);

  /* Type scale — 16 / 20 / 36 / 80 / 801 px in the 1440 frame */
  --text-small: 0.875rem;
  --text-body: 1rem;
  --text-lead: 1.25rem;
  --text-h3: 1.5rem;
  --text-title: 2.25rem;
  --text-display: 5rem;
  --text-wordmark: 27rem;

  --leading-flat: 1;
  --leading-tight: 1.1;
  --leading-body: 1.2;
  --leading-copy: 1.55;

  --radius-control: 0.375rem;
  --radius-button: 0.5rem;
  --radius-card: 0.625rem;
  --radius-panel: 1rem;

  --blur-nav: 0.625rem;
  --blur-panel: 2.34375rem;

  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 700ms;
  --ease-entrance: cubic-bezier(0.2, 0, 0, 1);

  --gutter: 2.5rem;
  --wrap: 85rem;
}

/* ---- Adaptive grid: the 1440 board scales; tablets fix at 16px; phones re-base to 430 */
html { font-size: 1.111111vw; }
@media (max-width: 1279px) { html { font-size: 16px; } }
@media (max-width: 539px)  { html { font-size: 3.72093vw; } }
@media (min-width: 1921px) { html { font-size: 21.33px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--background);
  color: var(--foreground);
  font-family: "Google Sans Flex", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-weight: 300;
  font-size: var(--text-body);
  line-height: var(--leading-copy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, video, canvas, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p a, dd a, .prose li a, .accordion-body a { color: var(--accent-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; transition: color var(--duration-fast) var(--ease-entrance); }
p a:hover, dd a:hover, .prose li a:hover { color: var(--foreground); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea, select { font: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; font-weight: 300; }
strong, b { font-weight: 500; }
::selection { background: var(--accent); color: var(--raw-white); }

.trim-flat { margin-block: -0.1125em -0.1625em; }
.trim-body { margin-block: -0.2125em -0.2625em; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -9999px; top: auto; z-index: 160;
  border-radius: var(--radius-button); background: var(--action-primary);
  padding: 0.75rem 1.5rem; font-size: var(--text-body); font-weight: 500;
  color: var(--action-primary-foreground);
}
.skip:focus { position: fixed; left: 0.75rem; top: 0.75rem; }

main { width: 100%; overflow-x: clip; }
.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }

/* ==========================================================================
   NAV — floating glass bar
   ========================================================================== */
#nav {
  position: fixed; left: 50%; top: 0.75rem; z-index: 50;
  width: calc(100% - 1.5rem); max-width: calc(var(--wrap) + var(--gutter));
  transform: translateX(-50%) translate3d(0, var(--nav-y, 0px), 0);
}
#nav .bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border-radius: var(--radius-button);
  background: var(--surface-nav);
  -webkit-backdrop-filter: blur(var(--blur-nav)); backdrop-filter: blur(var(--blur-nav));
  padding: 0.25rem;
  box-shadow: 0 0 0 1px var(--border-subtle);
}
.brand { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.logo {
  display: flex; width: 2.75rem; height: 2.75rem; flex: none;
  align-items: center; justify-content: center;
  border-radius: var(--radius-control); background: var(--action-primary);
  transition: transform var(--duration-fast) var(--ease-entrance);
}
.brand:hover .logo { transform: scale(1.05); }
.logo svg { width: 1.5rem; height: 1.5rem; color: var(--raw-white); }
.brand-name {
  display: flex; flex-direction: column; line-height: 1.1; white-space: nowrap;
  font-size: var(--text-small); font-weight: 500; color: var(--foreground);
}
.brand-name small { font-size: 0.6875rem; font-weight: 300; color: var(--foreground-muted); letter-spacing: 0.04em; text-transform: uppercase; }
#nav ul { display: none; align-items: center; gap: 2rem; }
.navlink {
  position: relative; white-space: nowrap; font-size: var(--text-body); font-weight: 300;
  line-height: var(--leading-body); color: var(--foreground);
  transition: opacity var(--duration-fast) var(--ease-entrance);
}
.navlink:hover { opacity: 0.6; }
.navlink[aria-current="page"] { font-weight: 500; }
.navlink[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -0.5rem; height: 2px; border-radius: 2px; background: var(--accent); }
.navlink:focus-visible, .brand:focus-visible, .navcta:focus-visible, .navphone:focus-visible, #burger:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.navphone { display: none; align-items: center; gap: 0.5rem; white-space: nowrap; font-size: var(--text-body); font-weight: 400; color: var(--foreground); }
.navphone svg { width: 1rem; height: 1rem; color: var(--accent); }
.navphone:hover { opacity: 0.7; }
.navcta {
  display: none; height: 2.75rem; align-items: center; gap: 0.5rem;
  border-radius: var(--radius-control); background: var(--action-primary);
  padding: 0.75rem 1.25rem; color: var(--action-primary-foreground);
  transition: transform var(--duration-fast) var(--ease-entrance);
}
.navcta:hover { transform: scale(1.03); }
.navcta .dot { width: 0.5rem; height: 0.5rem; flex: none; border-radius: 9999px; background: var(--accent); }
.navcta span:last-child { white-space: nowrap; font-size: var(--text-body); font-weight: 500; line-height: var(--leading-body); }
.nav-right { display: flex; align-items: center; gap: 0.5rem; }
.navcall {
  display: flex; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center;
  border-radius: var(--radius-control); background: var(--accent); color: var(--raw-white);
}
.navcall svg { width: 1.125rem; height: 1.125rem; }
#burger {
  display: flex; width: 2.75rem; height: 2.75rem; flex: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 0.375rem;
  border-radius: var(--radius-control); background: var(--surface-white);
}
#burger span { display: block; height: 1px; width: 1.25rem; background: var(--foreground); transition: transform var(--duration-fast) var(--ease-entrance); }
#burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
#burger[aria-expanded="true"] span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }
#nav-panel {
  margin-top: 0.5rem; overflow: hidden;
  border-radius: var(--radius-button); background: var(--surface-nav);
  -webkit-backdrop-filter: blur(var(--blur-nav)); backdrop-filter: blur(var(--blur-nav));
  box-shadow: 0 0 0 1px var(--border-subtle);
  pointer-events: none;
}
#nav-panel ul { display: flex; flex-direction: column; gap: 1.25rem; padding: 1.5rem; }
#nav-panel .panel-cta { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; }
#nav-panel .panel-cta .dot { width: 0.5rem; height: 0.5rem; flex: none; border-radius: 9999px; background: var(--accent); }
#nav-panel.open { pointer-events: auto; }

/* ==========================================================================
   SHARED PIECES
   ========================================================================== */
.eyebrow { display: flex; align-items: center; gap: 0.625rem; font-size: var(--text-lead); font-weight: 300; line-height: var(--leading-body); }
/* Decorative beads removed at the client's request — the eyebrow is a quiet uppercase label. */
.eyebrow .bead, .navcta .dot, #nav-panel .panel-cta .dot { display: none; }
.eyebrow { font-size: var(--text-small); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--foreground-muted); }
.eyebrow.on-media { color: var(--on-media); }
.eyebrow.on-media { color: var(--on-media-muted); }

.cta {
  position: relative; display: inline-flex; height: 3rem; align-items: center;
  justify-content: space-between; gap: 1.5rem; overflow: hidden;
  border-radius: var(--radius-button); background: var(--action-primary);
  padding: 0.25rem 0.25rem 0.25rem 1.5rem;
  transition: transform var(--duration-normal) var(--ease-entrance), box-shadow var(--duration-normal) var(--ease-entrance);
  color: var(--action-primary-foreground);
}
.cta:hover { transform: translateY(-1px); box-shadow: 0 0.75rem 1.5rem -0.75rem rgba(32,33,53,0.45); }
.cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cta.block { display: flex; width: 100%; }
.cta .label { position: relative; white-space: nowrap; font-size: var(--text-body); font-weight: 500; line-height: var(--leading-body); color: var(--action-primary-foreground); }
.cta .sheen {
  pointer-events: none; position: absolute; top: 0; bottom: 0; left: -33.3333%; width: 33.3333%;
  transform: skewX(-12deg); background: rgba(255,255,255,0.2); filter: blur(4px);
  transition: transform var(--duration-slow) var(--ease-entrance);
}
.cta:hover .sheen { transform: skewX(-12deg) translateX(400%); }
.cta .tile {
  position: relative; display: flex; width: 2.5rem; height: 2.5rem; flex: none;
  align-items: center; justify-content: center; overflow: hidden;
  border-radius: var(--radius-control); background: var(--action-tile);
}
.cta .tile svg { width: 1.125rem; color: var(--action-tile-ink); transition: transform var(--duration-normal) var(--ease-entrance); }
.cta .tile svg:last-child { position: absolute; transform: translateX(-220%); }
.cta:hover .tile svg:first-of-type { transform: translateX(220%); }
.cta:hover .tile svg:last-child { transform: translateX(0); }
.cta.ghost { background: var(--surface-white); color: var(--foreground); box-shadow: 0 0 0 1px var(--border-subtle); }
.cta.ghost .label { color: var(--foreground); }
.cta.ghost .tile { background: var(--action-primary); }
.cta.accent { background: var(--accent); }
.cta.accent .tile { background: var(--action-primary); }

.words { display: flex; flex-wrap: wrap; }
.words.center, .section-head .words { justify-content: center; text-align: center; }
.words .w { display: inline-block; will-change: transform, opacity; }
.words.nowrap { flex-wrap: nowrap !important; }

.parallax { position: absolute; inset: 0; overflow: hidden; }
.parallax > .layer { position: absolute; left: 0; width: 100%; }
.parallax.center > .layer       { top: -10%; bottom: -10%; }
.parallax.start > .layer        { top: 0; bottom: 0; }
.parallax.start-raised > .layer { top: -20%; bottom: 0; }
.parallax img { width: 100%; height: 100%; object-fit: cover; }
.parallax .scrim { position: absolute; inset: 0; }

.rule { height: 1px; width: 100%; background: var(--border-subtle); }

/* Headline pattern: the opening clause is dimmed so the second half lands */
.headline { font-size: var(--text-title); font-weight: 300; line-height: var(--leading-tight); color: var(--foreground); }
.headline .dim { color: var(--foreground-muted); }
.on-media .headline, .headline.on-media { color: var(--on-media); }
.headline.on-media .dim { color: var(--on-media-muted); }

.lead { font-size: var(--text-lead); line-height: var(--leading-copy); }
.muted { color: var(--foreground-muted); }
.copy p + p { margin-top: 1rem; }

/* Section header: eyebrow (h4 in the document) + display heading + intro */
section { position: relative; width: 100%; }
[id] { scroll-margin-top: 5.5rem; }
.section { padding-block: 5rem; }
/* Section heads are centered on every page (client feedback: left-aligned heads read as unfinished). */
.section-head { display: grid; gap: 1.25rem; text-align: center; justify-items: center; }
.section-head .eyebrow-slot { display: flex; justify-content: center; }
.section-head .body-col { display: grid; gap: 1.25rem; justify-items: center; }
.section-head + .grid, .section-head + .gallery, .section-head + .stats, .section-head + .faq { margin-top: 3rem; }
.section-head.center { text-align: center; justify-items: center; }
.section-head.center .eyebrow-slot { justify-content: center; }
.section-head h2, .section-head .h2 { font-size: var(--text-title); font-weight: 300; line-height: var(--leading-tight); max-width: 50rem; margin-inline: auto; }
.section-head .intro { max-width: 44rem; margin-inline: auto; color: var(--foreground-muted); font-size: var(--text-lead); line-height: var(--leading-copy); }
.section-head.center h2, .section-head.center .h2, .section-head.center .intro { margin-inline: auto; }

/* Glass card */
.card {
  position: relative; border-radius: var(--radius-card);
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(var(--blur-nav)); backdrop-filter: blur(var(--blur-nav));
  box-shadow: 0 0 0 1px var(--border-subtle);
  padding: 1.5rem;
  transition: transform var(--duration-normal) var(--ease-entrance), box-shadow var(--duration-normal) var(--ease-entrance);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--border-subtle), 0 1.5rem 2.5rem -1.5rem rgba(32,33,53,0.35); }
.card > .inner { display: flex; height: 100%; width: 100%; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 1.5rem; }
.card .idx { font-size: var(--text-body); line-height: var(--leading-body); color: var(--accent); font-weight: 500; letter-spacing: 0.06em; }
.card .head { display: flex; width: 100%; flex-direction: column; gap: 1rem; }
.card h3, .card h5, .card .card-title { font-size: var(--text-h3); font-weight: 300; line-height: var(--leading-body); }
.card h5.card-title { font-size: var(--text-lead); }
.card .desc { width: 100%; font-size: var(--text-body); line-height: var(--leading-copy); color: var(--foreground-muted); }
.card .media { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-control); background: var(--surface-muted); }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-slow) var(--ease-entrance); }
.card:hover .media img { transform: scale(1.04); }
.card .media.portrait { aspect-ratio: 5 / 5.5; }

.grid { display: grid; gap: 0.75rem; grid-template-columns: minmax(0, 1fr); }
.grid > *, .split > *, .about-grid > *, .faq > *, .section-head > *, .cols > *, .tier > * { min-width: 0; }
.grid > .card { min-height: 0; }

.anchor { scroll-margin-top: 6rem; }

/* Checklist */
.checks { display: grid; gap: 0.625rem; }
.checks li { display: flex; align-items: flex-start; gap: 0.625rem; line-height: var(--leading-copy); }
.checks li::before {
  content: ""; flex: none; width: 1.125rem; height: 1.125rem; margin-top: 0.2em; border-radius: 9999px;
  background: var(--accent-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'><path d='M3.5 8.5l3 3 6-7' stroke='%230E93AD' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 0.75rem no-repeat;
}
.checks li i { display: none; }

/* Badge tile (the 25+ years mark) */
.badge-stat {
  display: inline-flex; flex-direction: column; gap: 0.25rem;
  border-radius: var(--radius-button); background: var(--action-primary); color: var(--raw-white);
  padding: 1rem 1.25rem;
}
.badge-stat .num { font-size: var(--text-title); font-weight: 300; line-height: 1; }
.badge-stat .num span { color: var(--accent); }
.badge-stat .lab { font-size: var(--text-small); color: var(--raw-white-50); line-height: var(--leading-body); }

/* Quote card (Aerra figcaption idiom) */
.quote-card {
  position: relative; border-radius: var(--radius-button); background: var(--surface-white);
  padding: 1.25rem; box-shadow: 0 0 0 1px var(--border-subtle);
}
.quote-card blockquote { margin: 0; width: 100%; }
.quote-card .q-text { font-size: var(--text-lead); line-height: var(--leading-copy); }
.quote-card .q-meta { margin-top: 1rem; font-size: var(--text-body); font-weight: 300; line-height: var(--leading-body); color: var(--foreground-muted); }
.quote-card .glyph { position: absolute; right: 1.5rem; top: 1.5rem; width: 1.1875rem; height: 0.875rem; color: var(--secondary); }

/* ==========================================================================
   HERO
   ========================================================================== */
#hero {
  display: flex; min-height: 100svh; flex-direction: column; align-items: center; justify-content: flex-end;
  overflow: hidden; background: var(--raw-navy);
  padding: 7rem 1.25rem 3rem;
}
#hero .parallax .scrim { background: var(--scrim-hero); }
#wordmark-wrap { display: none; }
#hero .hero-copy { position: relative; z-index: 20; width: 100%; display: grid; gap: 1.5rem; justify-items: center; text-align: center; }
#hero h1 {
  width: 100%; text-align: center;
  font-size: var(--text-title); font-weight: 300; line-height: var(--leading-flat);
  color: var(--on-media);
}
#hero h1 .dim { color: var(--on-media-muted); }
#hero-sub { width: 100%; max-width: 38rem; text-align: center; font-size: var(--text-body); line-height: var(--leading-copy); color: var(--on-media); }
#hero-cta { display: flex; justify-content: center; }
#hero-notice {
  position: relative; z-index: 20; width: 100%; margin-top: 3rem;
  border-radius: var(--radius-card); background: var(--surface-panel);
  -webkit-backdrop-filter: blur(var(--blur-nav)); backdrop-filter: blur(var(--blur-nav));
  padding: 1.5rem; display: grid; gap: 1rem;
}
#hero-notice h5 { font-size: var(--text-small); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-deep); }
#hero-notice h2 { font-size: var(--text-h3); font-weight: 300; line-height: var(--leading-tight); }
#hero-notice p { color: var(--foreground-muted); line-height: var(--leading-copy); }
#hero-notice .notice-cta { display: flex; align-items: flex-end; }

/* Inner-page hero (breadcrumb hero) */
.page-hero {
  position: relative; overflow: hidden; background: var(--raw-navy);
  padding: 9rem 1.25rem 4rem; display: flex; flex-direction: column; align-items: center;
}
.page-hero .parallax .scrim { background: var(--scrim-band); }
.page-hero .inner { position: relative; z-index: 10; display: grid; gap: 1.25rem; justify-items: center; text-align: center; }
.page-hero h1 { font-size: var(--text-title); font-weight: 300; line-height: var(--leading-flat); color: var(--on-media); }
.breadcrumb { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; font-size: var(--text-small); color: var(--on-media-muted); }
.breadcrumb a { color: var(--on-media); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.6; }
.breadcrumb [aria-current] { color: var(--on-media); }

/* ==========================================================================
   SERVICES (index + service page) — glass cards with media
   ========================================================================== */
#services .grid, .services-grid { margin-top: 3rem; }
.service-card .inner { justify-content: flex-start; }

/* ==========================================================================
   ABOUT (index) — Aerra about idiom
   ========================================================================== */
#about .about-grid { display: grid; gap: 2.5rem; margin-top: 2.5rem; }
#about figure { position: relative; width: 100%; }
#about .photo { position: relative; aspect-ratio: 5 / 6; overflow: hidden; border-radius: var(--radius-card); background: var(--surface-muted); }
#about .photo-inset {
  position: absolute; right: 1.25rem; top: 1.25rem; width: 7.5rem; height: 7.5rem;
  border-radius: 9999px; overflow: hidden; box-shadow: 0 0 0 0.375rem var(--background);
}
#about .photo-inset img { width: 100%; height: 100%; object-fit: cover; }
#about .badge-stat { position: absolute; left: 1.25rem; bottom: 1.25rem; }
#about .copy { display: grid; gap: 1rem; align-content: start; }
#about .copy p { line-height: var(--leading-copy); }
#about .copy .cta-slot { margin-top: 1rem; }

/* ==========================================================================
   ABOUT PAGE — philosophy copy column, profile split, why-us grid
   ========================================================================== */
/* Philosophy — GetLayers "ruled index rows" skeleton: a hairline opens each
   row, an oversized faint numeral sits left, the paragraph takes the full
   remaining width. No cards, nothing to look unequal. */
#filosofie .copy { display: grid; gap: 0; margin-top: 2.5rem; counter-reset: filo; border-bottom: 1px solid var(--border-subtle); }
#filosofie .copy p {
  counter-increment: filo; position: relative;
  display: grid; grid-template-columns: 4.5rem 1fr; column-gap: 1.5rem; align-items: start;
  border-top: 1px solid var(--border-subtle); padding: 2rem 0;
  font-size: var(--text-lead); line-height: var(--leading-copy); color: var(--foreground-muted);
}
#filosofie .copy p::before {
  content: "0" counter(filo); font-size: var(--text-display); font-weight: 100; line-height: 0.9;
  color: var(--accent); opacity: 0.55; letter-spacing: -0.02em;
}
#profil-academic .split { display: grid; gap: 2rem; margin-top: 2.5rem; }
#profil-academic .split .card { padding: 0; overflow: hidden; align-self: start; }
#profil-academic .split .media.portrait { border-radius: var(--radius-card); }
#profil-academic .copy { display: grid; gap: 1rem; align-content: start; }
#profil-academic .copy p { line-height: var(--leading-copy); }

/* ==========================================================================
   NUMBERS / STATS
   ========================================================================== */
.stats { margin-top: 3rem; display: flex; flex-direction: column; align-items: center; gap: 2.5rem; }
.stats .stat { display: flex; width: 100%; flex: none; flex-direction: column; align-items: center; gap: 0.75rem; text-align: center; }
.stats dt { width: 100%; font-size: var(--text-display); font-weight: 300; line-height: var(--leading-body); }
.stats dt sup { font-size: 0.4em; color: var(--accent); vertical-align: super; }
.stats dd { width: 100%; font-size: var(--text-lead); line-height: var(--leading-body); color: var(--foreground-muted); }

/* ==========================================================================
   BAND — a photo behind copy or a panel (appointment, testimonials, contact)
   ========================================================================== */
.band { position: relative; overflow: hidden; padding-block: 5rem; color: var(--on-media); }
.band .parallax .scrim { background: var(--scrim-band); }
.band.accent .parallax .scrim { background: var(--scrim-accent); }
.band .wrap { position: relative; z-index: 10; }
.band .section-head h2, .band .section-head .intro, .band .eyebrow { color: var(--on-media); }
.band .eyebrow { color: var(--on-media-muted); }
.band .section-head .intro { color: var(--on-media-muted); }

/* Frosted panel (form) */
.panel {
  position: relative; z-index: 10; width: 100%;
  border-radius: var(--radius-card); background: var(--surface-panel);
  -webkit-backdrop-filter: blur(var(--blur-panel)); backdrop-filter: blur(var(--blur-panel));
  padding: 1.5rem; color: var(--foreground);
}
.panel .stack { display: flex; height: 100%; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.panel .panel-eyebrow { font-size: var(--text-small); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-deep); }
.panel h2 { font-size: var(--text-h3); font-weight: 300; line-height: var(--leading-tight); }
.panel form { display: flex; width: 100%; flex-direction: column; gap: 1.5rem; }
.panel .fields { display: grid; width: 100%; gap: 1.25rem; }
.field { display: flex; align-items: center; border-bottom: 1px solid var(--border-field); padding-bottom: 0.75rem; }
.field input, .field textarea {
  width: 100%; min-width: 0; background: transparent; outline: none; border: 0; padding: 0; resize: vertical;
  font-size: var(--text-lead); line-height: var(--leading-body); color: var(--foreground);
}
.field textarea { min-height: 5.5rem; line-height: var(--leading-copy); }
.field input::placeholder, .field textarea::placeholder { color: var(--foreground); opacity: 1; }
.field input:focus-visible::placeholder, .field textarea:focus-visible::placeholder { color: var(--foreground-muted); }
.field:focus-within { border-color: var(--accent); }
.field.full { grid-column: 1 / -1; }
.form-note { font-size: var(--text-small); color: var(--foreground-muted); }
.form-status { display: none; border-radius: var(--radius-control); padding: 0.75rem 1rem; font-size: var(--text-body); }
.form-status.ok { display: block; background: var(--accent-soft); color: var(--accent-deep); }
.form-status.err { display: block; background: rgba(239,162,134,0.25); color: var(--foreground); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Appointment (index): copy + image left, frosted form right */
#appointment .split { display: grid; gap: 2.5rem; }
#appointment .offer { display: grid; gap: 1.25rem; align-content: start; }
#appointment .offer h2 { font-size: var(--text-title); line-height: var(--leading-tight); }
#appointment .offer > p { color: var(--on-media); line-height: var(--leading-copy); }
#appointment .offer strong.text-primary { color: var(--raw-white); font-weight: 500; }
#appointment .perks { display: grid; gap: 1rem; }
#appointment .perks h5 { font-size: var(--text-lead); font-weight: 400; display: flex; align-items: center; gap: 0.625rem; }

#appointment .perks h5 i { display: none; }
#appointment .perks p { color: var(--on-media-muted); }
#appointment .offer-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-card); margin-top: 0.5rem; }
#appointment .offer-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   TEAM
   ========================================================================== */
#team .grid { margin-top: 3rem; }
.team-card .inner { justify-content: flex-start; gap: 1.25rem; }
.team-card .desc { color: var(--foreground-muted); }

/* ==========================================================================
   INFO (explainers) + FAQ
   ========================================================================== */
#info .grid { margin-top: 3rem; }
.info-card .inner { justify-content: flex-start; gap: 1.25rem; }
.info-card h3 { color: var(--accent-deep); }
.info-card h5 { font-size: var(--text-body); font-weight: 500; }
.info-card .small { font-size: var(--text-small); color: var(--foreground-muted); line-height: var(--leading-copy); }

.faq { display: grid; gap: 2rem; margin-top: 4rem; }
.faq .faq-head h3, .faq .faq-head h2 { font-size: var(--text-title); font-weight: 300; line-height: var(--leading-tight); }
.faq .faq-head p { margin-top: 1rem; color: var(--foreground-muted); }
.faq .faq-head { text-align: center; }
.accordion { border-top: 1px solid var(--border-subtle); }
.accordion .item { border-bottom: 1px solid var(--border-subtle); }
.accordion .accordion-header { margin: 0; font-size: inherit; }
.accordion .accordion-button {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.5rem 0; text-align: left;
  font-size: var(--text-h3); font-weight: 300; line-height: var(--leading-body); color: var(--foreground);
  transition: color var(--duration-fast) var(--ease-entrance);
}
.accordion .accordion-button strong { font-weight: 300; }
.accordion .accordion-button:hover { color: var(--accent-deep); }
.accordion .accordion-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.accordion .plus { position: relative; flex: none; width: 1.5rem; height: 1.5rem; transition: transform var(--duration-normal) var(--ease-entrance); }
.accordion .plus::before, .accordion .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 1rem; height: 1px; background: currentColor; transform: translate(-50%, -50%); }
.accordion .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.accordion .accordion-button[aria-expanded="true"] .plus { transform: rotate(45deg); color: var(--accent); }
.accordion .accordion-collapse { height: 0; overflow: hidden; transition: height var(--duration-normal) var(--ease-entrance); }
.accordion .accordion-body { padding: 0 0 1.75rem; font-size: var(--text-lead); line-height: var(--leading-copy); color: var(--foreground-muted); }
.accordion .accordion-body strong { color: var(--foreground); }

/* ==========================================================================
   TESTIMONIALS — quote cards over the accent band
   ========================================================================== */
#testimonials .grid { margin-top: 3rem; }
.t-card { background: var(--surface-panel); color: var(--foreground); }
.t-card .inner { justify-content: flex-start; gap: 1.25rem; }
.t-card .stars { display: flex; gap: 0.25rem; color: var(--secondary); }
.t-card .stars svg { width: 1rem; height: 1rem; }
.t-card .who { display: flex; align-items: center; gap: 0.75rem; }
.t-card .who img { width: 2.75rem; height: 2.75rem; border-radius: 9999px; object-fit: cover; background: var(--surface-muted); }
.t-card .who h5 { font-size: var(--text-body); font-weight: 500; }
.t-card .who .role { font-size: var(--text-small); color: var(--foreground-muted); }
.t-card p.text-white { color: var(--foreground); font-size: var(--text-lead); line-height: var(--leading-copy); }

/* ==========================================================================
   FOOTER — three ruled tiers inside an inset panel
   ========================================================================== */
footer.site-footer { padding: 5rem 0.75rem 0.75rem; }
.footer-panel {
  border-radius: var(--radius-panel); background: var(--raw-navy); color: var(--raw-white);
  padding: 2.5rem 1.5rem 1.5rem; overflow: hidden; position: relative;
}
.footer-panel .tier { display: grid; gap: 1.5rem; }
.footer-panel .tier + .tier { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--raw-white-20); }
.footer-panel h4 { font-size: var(--text-small); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--raw-white-50); }
.footer-panel .tier-1 h4 { font-size: var(--text-h3); letter-spacing: 0; text-transform: none; color: var(--raw-white); }
.footer-panel .tier-1 p { max-width: 36rem; color: var(--raw-white-50); line-height: var(--leading-copy); margin-top: 0.75rem; }
.footer-panel .tier-1 .cta { background: var(--raw-white); color: var(--raw-navy); }
.footer-panel .tier-1 .cta .label { color: var(--raw-navy); }
.footer-panel .tier-1 .cta .tile { background: var(--accent); }
.footer-panel .cols { display: grid; gap: 2rem; }
.footer-panel .cols ul { margin-top: 1rem; display: grid; gap: 0.625rem; }
.footer-panel a { text-decoration: none; }
.footer-panel .cols a { color: var(--raw-white); opacity: 0.85; transition: opacity var(--duration-fast) var(--ease-entrance); }
.footer-panel .cols a:hover { opacity: 1; color: var(--accent); }
.footer-panel .cols i { display: none; }
.footer-panel .contact-col li { display: flex; align-items: flex-start; gap: 0.625rem; }
.footer-panel .contact-col svg { width: 1rem; height: 1rem; flex: none; margin-top: 0.25em; color: var(--accent); }
.footer-panel .anpc { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.footer-panel .anpc img { height: 2.25rem; width: auto; border-radius: var(--radius-control); background: var(--raw-white); padding: 0.125rem; }
.footer-panel .meta { display: grid; gap: 0.75rem; font-size: var(--text-small); color: var(--raw-white-50); }
.footer-panel .meta a { color: var(--raw-white); }
.footer-panel .meta a:hover { color: var(--accent); }
.footer-panel .watermark {
  pointer-events: none; position: absolute; left: 50%; bottom: -0.35em; transform: translateX(-50%);
  font-size: 12rem; font-weight: 100; line-height: 1; letter-spacing: -0.02em; white-space: nowrap;
  color: rgba(255,255,255,0.04); user-select: none;
}

/* ==========================================================================
   LEGAL pages (privacy / terms) — editorial column
   ========================================================================== */
.legal { padding-block: 5rem; }
.legal .prose { max-width: 46rem; margin-inline: auto; display: grid; gap: 1.25rem; }
.legal .prose h2 { font-size: var(--text-title); line-height: var(--leading-tight); }
.legal .prose h4 { margin-top: 1.5rem; font-size: var(--text-h3); font-weight: 300; padding-top: 1.5rem; border-top: 1px solid var(--border-subtle); }
.legal .prose p, .legal .prose li { line-height: var(--leading-copy); color: var(--foreground-muted); }
.legal .prose ul { display: grid; gap: 0.5rem; padding-left: 1.25rem; list-style: disc; }
.legal .prose strong { color: var(--foreground); }

/* 404 */
.notfound { padding-block: 6rem; text-align: center; display: grid; gap: 1.5rem; justify-items: center; }
.notfound .big { font-size: var(--text-display); font-weight: 100; line-height: 1; color: var(--accent); }
.notfound h2 { font-size: var(--text-title); }
.notfound p { max-width: 36rem; color: var(--foreground-muted); line-height: var(--leading-copy); }

/* Contact page */
#contact-page .split { display: grid; gap: 2rem; margin-top: 2.5rem; }
.contact-tiles { display: grid; gap: 0.75rem; }
.contact-tiles .card .inner { flex-direction: row; align-items: center; justify-content: flex-start; gap: 1rem; min-width: 0; }
.contact-tiles .card .inner > div { min-width: 0; }
.contact-tiles .icon { display: flex; width: 3rem; height: 3rem; flex: none; align-items: center; justify-content: center; border-radius: 9999px; background: var(--accent-soft); color: var(--accent-deep); }
.contact-tiles .icon svg { width: 1.25rem; height: 1.25rem; }
.contact-tiles h4 { font-size: var(--text-small); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--foreground-muted); }
.contact-tiles p { font-size: var(--text-lead); overflow-wrap: anywhere; }
.contact-tiles p a { color: var(--foreground); text-decoration: none; }
.contact-tiles p a:hover { color: var(--accent-deep); }
.map { position: relative; overflow: hidden; border-radius: var(--radius-card); background: var(--surface-muted); aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; }

/* Gallery (service page) */
.gallery { margin-top: 3rem; display: grid; gap: 0.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery figure { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-card); background: var(--surface-muted); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-slow) var(--ease-entrance); }
.gallery figure:hover img { transform: scale(1.04); }

/* Reveal-hidden elements are mounted hidden; the engine writes inline styles.
   Without JS (or before it runs) they must still be visible. */
.no-js [data-reveal], .no-js [data-words] { opacity: 1 !important; transform: none !important; filter: none !important; }

/* Tablet band: stacked layouts keep media at a readable width */
@media (min-width: 540px) and (max-width: 767px) {
  #about figure, #appointment .offer-photo, #profil-academic .split > .card { max-width: 30rem; }
}
@media (max-width: 767px) {
  /* Mobile hero: only headline + short sub + one CTA over the photo; the
     referral notice becomes a solid panel below it instead of a second
     glass card crowding the picture. */
  #hero { min-height: 100svh; padding: 6.5rem 1.5rem 0; justify-content: flex-end; }
  #hero .hero-copy { gap: 1.25rem; padding-bottom: 3rem; }
  #hero h1 { font-size: 2.1rem; line-height: 1.05; }
  #hero-sub { font-size: 0.9rem; line-height: 1.5; max-width: 22rem; color: var(--on-media-muted); }
  #hero-sub, #hero h1 .dim { color: rgba(255,255,255,0.82); }
  /* The referral notice: a quiet text block under the photo, no second card,
     no duplicate button (the hero button above already goes to contact). */
  #hero-notice {
    margin: 0 -1.5rem; width: auto; border-radius: var(--radius-panel) var(--radius-panel) 0 0;
    background: var(--background); -webkit-backdrop-filter: none; backdrop-filter: none;
    padding: 1.75rem 1.5rem 0.5rem; gap: 0.5rem; box-shadow: none;
  }
  #hero-notice h5 { font-size: 0.7rem; }
  #hero-notice h2 { font-size: 1.15rem; line-height: 1.3; }
  #hero-notice p { font-size: var(--text-small); line-height: 1.5; }
  #hero-notice .notice-cta { display: none; }
  footer.site-footer { padding-top: 2.5rem; }
  .section { padding-block: 4rem; }
  .band { padding-block: 4rem; }
}

/* ==========================================================================
   TABLET (540–1279)
   ========================================================================== */
@media (min-width: 540px) {
  .stats { flex-direction: row; align-items: flex-start; justify-content: center; gap: 1.5rem; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel .fields { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
  .footer-panel .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-panel .meta { grid-template-columns: 1fr auto; align-items: center; }
  #hero-notice { grid-template-columns: 1fr auto; align-items: center; gap: 2rem; }
  #hero-notice .notice-text { display: grid; gap: 0.75rem; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  #nav ul { display: flex; }
  .navcta { display: flex; }
  .navphone { display: flex; }
  .navcall { display: none; }
  #burger, #nav-panel { display: none; }
  .brand-name { font-size: var(--text-body); }
  #about .about-grid { grid-template-columns: 5fr 7fr; align-items: start; }
  #appointment .split { grid-template-columns: 1fr 1fr; align-items: start; }
  #contact-page .split { grid-template-columns: 5fr 7fr; }
  #profil-academic .split { grid-template-columns: 5fr 7fr; }
  #filosofie .copy { margin-top: 3.5rem; }
  #filosofie .copy p { grid-template-columns: 8rem 1fr; column-gap: 2.5rem; padding: 2.75rem 0; }
  /* FAQ heading sits above the accordion — the 4|8 split left the left column empty. */
  .faq { grid-template-columns: 1fr; gap: 2rem; }
  .faq .faq-head { max-width: 46rem; margin-inline: auto; }
  /* Eyebrow above the heading, all left-aligned: a lone label in a 4|8
     split left the whole left column empty. */
  .section-head { grid-template-columns: 1fr; gap: 1.25rem; }
  .section-head h2, .section-head .h2 { max-width: 50rem; }
  .section-head .intro { max-width: 44rem; }
  .footer-panel .tier-1 { grid-template-columns: 1fr auto; align-items: end; }
  .footer-panel .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-panel { padding: 3.5rem 2.5rem 1.5rem; }
  .legal .prose { margin-inline: 0; }
}

/* ==========================================================================
   DESKTOP (≥1280) — the 1440 board
   ========================================================================== */
@media (min-width: 1280px) {
  .section { padding-block: 6.25rem; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
  .grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .card { padding: 1.875rem; }
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }

  #hero { min-height: 100svh; padding: 8rem 0 4rem; }
  #hero .hero-copy { width: min(100% - var(--gutter) * 2, var(--wrap)); }
  #hero h1 { font-size: var(--text-display); width: 50.625rem; }
  #hero-sub { font-size: var(--text-lead); width: 33.125rem; }
  #hero-notice { width: min(100% - var(--gutter) * 2, var(--wrap)); padding: 1.875rem; margin-top: 5rem; }
  #hero-notice h2 { font-size: var(--text-title); }
  #hero-notice p { max-width: 40rem; }
  #wordmark-wrap {
    pointer-events: none; position: absolute; display: block; text-align: center; z-index: 5;
    left: 0; right: 0; bottom: 8rem;
  }
  #wordmark { display: block; white-space: nowrap; font-family: "Google Sans Flex", sans-serif; font-size: var(--text-wordmark); font-weight: 100; line-height: var(--leading-flat); letter-spacing: -0.02em; }

  .page-hero { padding: 12rem 0 6rem; }
  .page-hero h1 { font-size: var(--text-display); }

  #about .about-grid { gap: 3.125rem; margin-top: 3.75rem; }
  #about .photo-inset { width: 9.375rem; height: 9.375rem; right: 1.875rem; top: 1.875rem; }
  #about .badge-stat { left: 1.875rem; bottom: 1.875rem; }
  #about .copy { padding-top: 1rem; }

  .stats { gap: 0.625rem; margin-top: 4rem; }
  .stats .stat { width: 25rem; gap: 1.5rem; }

  .band { padding-block: 6.25rem; }
  .panel { padding: 1.875rem; }
  .panel .stack { gap: 2rem; }
  #appointment .split { grid-template-columns: 6fr 6fr; gap: 3.125rem; }

  .faq { margin-top: 5rem; }
  .accordion .accordion-body { padding-bottom: 2rem; }

  footer.site-footer { padding: 6.25rem 0.75rem 0.75rem; }
  .footer-panel .cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
  .footer-panel .watermark { font-size: 16rem; }

  #contact-page .split { grid-template-columns: 5fr 7fr; gap: 2rem; }
  #profil-academic .split { grid-template-columns: 5fr 7fr; gap: 3.125rem; }
  .contact-tiles { grid-template-columns: 1fr; }
  #contact-page .right { display: grid; gap: 0.75rem; grid-template-columns: 1fr 1fr; align-items: start; }
  .map { aspect-ratio: auto; height: 100%; min-height: 26rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card:hover, .cta:hover { transform: none; }
  .card .media img, .gallery img { transition: none; }
}
