/* ==========================================================================
   Soulful Psychology — style.css
   Design system per Developer Brief (July 2026), sections 4–6
   ========================================================================== */

/* ---------- 1. Font (Brief §5.4) ----------
   Drop Qeilab.otf (and Qeilab.woff2 once converted) into /fonts/ at the site root.
   WOFF2 is listed first so browsers use the smaller file when present. */
@font-face {
  font-family: "Qeilab";
  src: url("../../fonts/Qeilab.woff2") format("woff2"),
       url("../../fonts/Qeilab.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ---------- 2. Design tokens (Brief §4.2, §4.3, §5.3, §6) ---------- */
:root {
  /* Colour — Brief §4.2 */
  --c-primary: #566775;      /* Slate Blue (logo colour) */
  --c-accent: #2C3E4B;       /* Dark Slate */
  --c-text: #333333;         /* Body text */
  --c-text-light: #FFFFFF;   /* Text on dark */
  --c-bg-main: #F0F4F6;      /* Lighter slate page background */
  --c-bg-tint: #E8EEF1;      /* Light slate tint */
  --c-bg-card: #FFFFFF;      /* Card background */
  --c-bg-contrast: #2C3E4B;  /* Dark contrast sections */
  --c-border: #D1D9DF;       /* Slate-tinted border */
  --c-card-border: #E5E5E5;  /* Card border — Brief §6.4 */
  --c-text-muted: #55606A;   /* Secondary text (AA on all light backgrounds) */
  --c-on-dark-muted: #C9D3DA;/* Secondary text on dark slate (AA) */

  /* Shadows — Brief §4.3 */
  --shadow-soft: 0 4px 15px rgba(86, 103, 117, 0.08);
  --shadow-medium: 0 8px 25px rgba(86, 103, 117, 0.12);
  --shadow-large: 0 12px 40px rgba(44, 62, 75, 0.15);

  /* Typography — Brief §5.4 */
  --font-heading: "Qeilab", sans-serif;
  --font-subheading: "Qeilab", sans-serif;
  --font-body: "Qeilab", sans-serif;

  /* Type scale — Brief §5.3 */
  --fs-hero: 3.5rem;
  --fs-h1: 2.5rem;
  --fs-h2: 2.2rem;
  --fs-h3: 1.8rem;
  --fs-h4: 1.5rem;
  --fs-lead: 1.2rem;
  --fs-body: 1rem;
  --fs-small: 0.9rem;
  --fs-tiny: 0.8rem;

  /* Radius — Brief §6.2 */
  --r-card: 12px;
  --r-btn: 8px;
  --r-pill: 50px;
  --r-large: 16px;
  --r-small: 4px;

  /* Layout — Brief §6.1 */
  --container: 1200px;
  --gutter: 24px;
  --section-pad: 80px;
  --header-h: 84px;

  /* Motion — Brief §6.5 */
  --transition-smooth: all 0.3s ease;
}

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg-main);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--c-primary); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--c-accent); }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; }
strong { font-weight: bold; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: normal; /* Qeilab ships Regular only — hierarchy via size & spacing (Brief §5.4 notes) */
  color: var(--c-accent);
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: 1.15rem; }

.lead { font-size: var(--fs-lead); line-height: 1.65; color: var(--c-text-muted); }
.small { font-size: var(--fs-small); }
.tiny { font-size: var(--fs-tiny); }
.muted { color: var(--c-text-muted); }
.text-center { text-align: center; }

:focus-visible {
  outline: 3px solid var(--c-primary);
  outline-offset: 3px;
  border-radius: 4px;
}
.section--dark :focus-visible, .site-footer :focus-visible, .cta-band :focus-visible { outline-color: #fff; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--c-accent); color: #fff; padding: 10px 18px; border-radius: var(--r-btn);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

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

/* ---------- 4. Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--narrow { max-width: calc(820px + var(--gutter) * 2); }

.section { padding: var(--section-pad) 0; position: relative; }
.section--white { background: var(--c-bg-card); }
.section--tint { background: var(--c-bg-tint); }
.section--main { background: var(--c-bg-main); }
.section--dark { background: var(--c-bg-contrast); color: var(--c-text-light); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--tight { padding: 56px 0; }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split--wide-left { grid-template-columns: 1.15fr 0.85fr; }
.split--wide-right { grid-template-columns: 0.85fr 1.15fr; }

.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head--left { margin-left: 0; text-align: left; }
.section-head p { color: var(--c-text-muted); font-size: 1.08rem; }
.section--dark .section-head p { color: var(--c-on-dark-muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-subheading);
  font-size: var(--fs-tiny);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.7; }
.section-head:not(.section-head--left) .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.7; }
.section--dark .eyebrow, .cta-band .eyebrow { color: var(--c-on-dark-muted); }

/* ---------- 5. Buttons (Brief §6.3) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  border-radius: var(--r-btn);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn i { font-size: 0.9em; }
.btn-primary {
  background: var(--c-primary);
  color: #fff;
  padding: 14px 32px;
  border: 0;
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--c-accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}
.btn-secondary {
  background: transparent;
  color: var(--c-primary);
  border: 2px solid var(--c-primary);
  padding: 12px 30px;
}
.btn-secondary:hover, .btn-secondary:focus-visible {
  background: var(--c-primary);
  color: #fff;
  transform: translateY(-2px);
}
/* Variants for dark backgrounds */
.btn-light { background: #fff; color: var(--c-accent); padding: 14px 32px; border: 0; }
.btn-light:hover, .btn-light:focus-visible { background: var(--c-bg-tint); color: var(--c-accent); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.18); }
.btn-outline-light { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.7); padding: 12px 30px; }
.btn-outline-light:hover, .btn-outline-light:focus-visible { background: #fff; color: var(--c-accent); border-color: #fff; transform: translateY(-2px); }
.btn-pill { border-radius: var(--r-pill); }
.btn-sm { padding: 11px 22px; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn-group { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-small); letter-spacing: 0.04em;
  color: var(--c-primary);
}
.link-arrow i { transition: transform 0.3s ease; font-size: 0.8em; }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- 6. Header (Brief §3.4 sticky header, §7.2 #1) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-soft); border-bottom-color: var(--c-border); background: rgba(255,255,255,0.97); }
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { display: inline-flex; align-items: center; flex-shrink: 0; color: var(--c-primary); }
.brand__img { height: 56px; width: auto; }
.brand__fallback { display: none; align-items: center; gap: 12px; }
.brand.no-logo .brand__img { display: none; }
.brand.no-logo .brand__fallback { display: inline-flex; }
.brand__mark {
  width: 46px; height: 46px; border-radius: 12px;
  border: 2px solid currentColor;
  display: grid; place-items: center;
  font-family: var(--font-heading); font-size: 1.15rem; letter-spacing: 0.04em;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-heading); font-size: 1.22rem; letter-spacing: 0.01em; }
.brand__by { font-size: 0.7rem; letter-spacing: 0.08em; opacity: 0.85; }

.main-nav { display: flex; align-items: center; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav-list > li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 12px;
  font-size: 0.93rem;
  color: var(--c-accent);
  border-radius: var(--r-btn);
  background: none; border: 0; cursor: pointer; font-family: inherit; line-height: 1.2;
  position: relative;
}
.nav-link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1.5px;
  background: var(--c-primary); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link:hover, .nav-link.is-active { color: var(--c-primary); }
.has-dropdown { display: flex; align-items: center; }
.has-dropdown > .nav-link { padding-right: 2px; }
.has-dropdown > .nav-link::after { right: 2px; }
.dropdown-toggle {
  width: 26px; height: 32px; border: 0; background: none; cursor: pointer; color: var(--c-accent);
  display: inline-grid; place-items: center; border-radius: 6px; padding: 0; margin-right: 4px;
}
.dropdown-toggle:hover { color: var(--c-primary); }
.dropdown-toggle .fa-chevron-down { font-size: 0.6rem; transition: transform 0.3s ease; }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translate(-50%, 8px);
  min-width: 270px;
  background: #fff;
  border: 1px solid var(--c-card-border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-large);
  padding: 10px;
  list-style: none; margin: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.dropdown::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.is-open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-dropdown:hover .fa-chevron-down, .has-dropdown.is-open .fa-chevron-down { transform: rotate(180deg); }
.dropdown a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 8px;
  color: var(--c-accent); font-size: 0.92rem; line-height: 1.3;
}
.dropdown a i { width: 30px; height: 30px; border-radius: 8px; background: var(--c-bg-tint); color: var(--c-primary); display: grid; place-items: center; font-size: 0.8rem; flex-shrink: 0; transition: var(--transition-smooth); }
.dropdown a:hover { background: var(--c-bg-main); color: var(--c-primary); }
.dropdown a:hover i { background: var(--c-primary); color: #fff; }
.dropdown .dropdown__all { border-top: 1px solid var(--c-card-border); margin-top: 6px; padding-top: 6px; }
.dropdown .dropdown__all a { font-size: 0.85rem; color: var(--c-primary); }

.header-cta { flex-shrink: 0; }
.header-cta .btn { padding: 12px 24px; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px; border-radius: 10px;
  border: 1px solid var(--c-border); background: #fff; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--c-accent); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-cta { display: none; }

/* ---------- 7. Media / image frames ---------- */
.media {
  position: relative; overflow: hidden;
  border-radius: var(--r-large);
  background:
    radial-gradient(circle at 78% 22%, rgba(255,255,255,0.55) 0 14%, transparent 14.5%),
    radial-gradient(circle at 20% 85%, rgba(86,103,117,0.12) 0 22%, transparent 22.5%),
    linear-gradient(140deg, #E8EEF1 0%, #D1D9DF 100%);
  isolation: isolate;
}
.media::before { /* placeholder mark shown when a photo is not yet in /images */
  content: "\f03e"; font-family: "Font Awesome 6 Free"; font-weight: 400;
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 2rem; color: rgba(86,103,117,0.35); z-index: -1;
}
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease, opacity 0.5s ease; }
.media img.is-missing { opacity: 0; }
.media img[data-src] { opacity: 0; }
.media--hover:hover img, .card-hover-img:hover .media img { transform: scale(1.05); }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-1x1 { aspect-ratio: 1 / 1; }
.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-5x4 { aspect-ratio: 5 / 4; }

.frame { position: relative; }
.frame::after {
  content: ""; position: absolute; inset: 22px -22px -22px 22px;
  border: 1.5px solid var(--c-border); border-radius: var(--r-large); z-index: -1;
}
.frame--left::after { inset: 22px 22px -22px -22px; }
.frame-wrap { position: relative; z-index: 0; }

.float-badge {
  position: absolute; left: -28px; bottom: 36px;
  background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow-large);
  padding: 16px 20px; display: flex; align-items: center; gap: 14px; max-width: 270px;
  z-index: 2;
}
.float-badge i { width: 44px; height: 44px; border-radius: 50%; background: var(--c-bg-tint); color: var(--c-primary); display: grid; place-items: center; flex-shrink: 0; }
.float-badge strong { display: block; font-weight: normal; color: var(--c-accent); font-size: 1rem; line-height: 1.3; }
.float-badge span { font-size: var(--fs-tiny); color: var(--c-text-muted); line-height: 1.4; display: block; }

/* ---------- 8. Hero (Brief §7.2 #2) ---------- */
.hero {
  position: relative;
  min-height: min(760px, calc(100vh - var(--header-h)));
  display: flex; align-items: center;
  padding: 96px 0 120px;
  overflow: hidden;
  background: linear-gradient(120deg, #F0F4F6 0%, #E8EEF1 55%, #D1D9DF 100%);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center right; }
.hero__bg img.is-missing { display: none; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(240,244,246,0.97) 0%, rgba(240,244,246,0.9) 36%, rgba(240,244,246,0.45) 62%, rgba(240,244,246,0.05) 100%);
}
.hero__shapes { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__shapes span { position: absolute; border-radius: 50%; }
.hero__shapes span:nth-child(1) { width: 560px; height: 560px; right: -120px; top: -140px; background: radial-gradient(circle, rgba(86,103,117,0.16), rgba(86,103,117,0) 70%); }
.hero__shapes span:nth-child(2) { width: 340px; height: 340px; right: 18%; bottom: -160px; border: 1px solid rgba(86,103,117,0.18); }
.hero__shapes span:nth-child(3) { width: 180px; height: 180px; right: 10%; top: 26%; border: 1px solid rgba(86,103,117,0.22); }
.hero .container { position: relative; z-index: 1; }
.hero__content { max-width: 640px; }
.hero h1 {
  font-size: var(--fs-hero);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero h1 em { font-style: normal; color: var(--c-primary); }
.hero__sub { font-size: var(--fs-lead); color: var(--c-text-muted); max-width: 540px; margin-bottom: 36px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 44px; color: var(--c-text-muted); font-size: var(--fs-small); }
.hero__meta span { display: inline-flex; align-items: center; gap: 10px; }
.hero__meta i { color: var(--c-primary); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 1;
  width: 26px; height: 42px; border: 1.5px solid rgba(44,62,75,0.4); border-radius: 20px;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--c-primary); animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Pillars strip overlapping the hero */
.pillars { position: relative; z-index: 3; margin-top: -64px; }
.pillars__inner {
  background: #fff; border-radius: var(--r-large); box-shadow: var(--shadow-large);
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.pillar { display: flex; gap: 18px; align-items: flex-start; padding: 30px 32px; }
.pillar + .pillar { border-left: 1px solid var(--c-card-border); }
.pillar i { width: 50px; height: 50px; border-radius: 12px; background: var(--c-bg-tint); color: var(--c-primary); display: grid; place-items: center; flex-shrink: 0; font-size: 1.1rem; }
.pillar h3 { font-size: 1.15rem; margin-bottom: 4px; }
.pillar p { font-size: var(--fs-small); color: var(--c-text-muted); margin: 0; line-height: 1.55; }

/* ---------- 9. Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: 88px 0 80px;
  background: linear-gradient(120deg, #F0F4F6 0%, #E8EEF1 60%, #DCE4E9 100%);
}
.page-hero::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(86,103,117,0.16), rgba(86,103,117,0) 70%);
}
.page-hero::after {
  content: ""; position: absolute; width: 260px; height: 260px; right: 12%; bottom: -150px; border-radius: 50%;
  border: 1px solid rgba(86,103,117,0.2);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 760px; margin-bottom: 16px; }
.page-hero p { max-width: 640px; font-size: var(--fs-lead); color: var(--c-text-muted); margin: 0; }
.page-hero__icon { width: 64px; height: 64px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-soft); color: var(--c-primary); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 24px; }

.breadcrumb { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--fs-small); color: var(--c-text-muted); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; opacity: 0.5; }
.breadcrumb a { color: var(--c-text-muted); }
.breadcrumb a:hover { color: var(--c-primary); }

/* ---------- 10. Cards (Brief §6.4) ---------- */
.card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-card-border);
  border-radius: var(--r-card);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.4s ease, border-color 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-medium); }
.card--static:hover { transform: none; box-shadow: var(--shadow-soft); }
.card--lg { border-radius: var(--r-large); padding: 36px; }

.icon-box {
  width: 60px; height: 60px; border-radius: 14px;
  background: var(--c-bg-tint); color: var(--c-primary);
  display: grid; place-items: center; font-size: 1.35rem;
  margin-bottom: 22px;
  transition: var(--transition-smooth);
}
.card:hover .icon-box { background: var(--c-primary); color: #fff; }

.service-card { display: flex; flex-direction: column; padding: 32px 28px; height: 100%; }
.service-card h3 { font-size: var(--fs-h4); margin-bottom: 12px; }
.service-card p { color: var(--c-text-muted); flex-grow: 1; }
.service-card .link-arrow { margin-top: 6px; }
.service-card--cta {
  background: var(--c-primary); border-color: var(--c-primary); color: #fff;
  background-image: radial-gradient(circle at 100% 0%, rgba(255,255,255,0.14) 0 30%, transparent 30.5%), radial-gradient(circle at 0% 100%, rgba(44,62,75,0.5) 0 35%, transparent 35.5%);
}
.service-card--cta h3 { color: #fff; }
.service-card--cta p { color: rgba(255,255,255,0.88); }
.service-card--cta .icon-box { background: rgba(255,255,255,0.14); color: #fff; }
.service-card--cta:hover .icon-box { background: #fff; color: var(--c-primary); }

/* Service card with image (services overview) */
.service-tile { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.service-tile .media { border-radius: 0; }
.service-tile__body { padding: 28px; display: flex; flex-direction: column; flex-grow: 1; position: relative; }
.service-tile__icon { position: absolute; top: -30px; right: 24px; width: 60px; height: 60px; border-radius: 14px; background: #fff; color: var(--c-primary); box-shadow: var(--shadow-medium); display: grid; place-items: center; font-size: 1.3rem; }
.service-tile h3 { font-size: var(--fs-h4); margin-bottom: 10px; padding-right: 60px; }
.service-tile p { color: var(--c-text-muted); flex-grow: 1; }

/* Feature cards — Why choose us */
.feature-card { padding: 36px 30px; text-align: left; height: 100%; position: relative; overflow: hidden; }
.feature-card__num { position: absolute; top: 18px; right: 24px; font-family: var(--font-heading); font-size: 3.4rem; line-height: 1; color: var(--c-bg-tint); transition: color 0.3s ease; }
.feature-card:hover .feature-card__num { color: var(--c-border); }
.feature-card h3 { font-size: var(--fs-h4); margin-bottom: 12px; }
.feature-card p { color: var(--c-text-muted); margin: 0; }

/* ---------- 11. Approaches ---------- */
.approach-list { display: grid; gap: 18px; }
.approach-item {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start;
  padding: 28px; background: #fff; border: 1px solid var(--c-card-border); border-radius: var(--r-card);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.4s ease;
  color: inherit;
}
a.approach-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-medium); color: inherit; }
.approach-item__num {
  width: 56px; height: 56px; border-radius: 50%;
  border: 1.5px solid var(--c-border); color: var(--c-primary);
  display: grid; place-items: center; font-family: var(--font-heading); font-size: 1.1rem; letter-spacing: 0.04em;
  transition: var(--transition-smooth);
}
a.approach-item:hover .approach-item__num { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.approach-item h3 { font-size: 1.35rem; margin-bottom: 6px; }
.approach-item p { color: var(--c-text-muted); margin: 0; }
.approach-item .link-arrow { margin-top: 10px; }

.approach-card { height: 100%; display: flex; flex-direction: column; padding: 34px 30px; }
.approach-card .approach-item__num { margin-bottom: 22px; }
.approach-card h3 { font-size: var(--fs-h4); }
.approach-card p { color: var(--c-text-muted); flex-grow: 1; }

/* ---------- 12. Practitioner ---------- */
.practitioner__name { margin-bottom: 4px; }
.practitioner__role { color: var(--c-primary); letter-spacing: 0.08em; text-transform: uppercase; font-size: var(--fs-small); margin-bottom: 24px; display: block; }
.quote-block {
  border-left: 3px solid var(--c-primary);
  padding: 6px 0 6px 22px; margin: 28px 0;
  font-family: var(--font-heading); font-size: 1.35rem; line-height: 1.45; color: var(--c-accent);
}
.check-list { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.55; }
.check-list li i { color: var(--c-primary); margin-top: 5px; font-size: 0.85rem; flex-shrink: 0; }
.check-list--2 { grid-template-columns: 1fr 1fr; gap: 12px 28px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 1.4em; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: var(--r-pill);
  background: var(--c-bg-tint); color: var(--c-accent); font-size: var(--fs-small); line-height: 1.3;
  border: 1px solid transparent; transition: var(--transition-smooth);
}
a.chip:hover { background: var(--c-primary); color: #fff; }
.chip i { color: var(--c-primary); font-size: 0.8em; }
a.chip:hover i { color: #fff; }

.tbc {
  border-bottom: 1px dashed var(--c-primary);
  background: rgba(86,103,117,0.08);
  padding: 0 4px; border-radius: 3px;
}

.avatar { width: 132px; height: 132px; border-radius: 50%; overflow: hidden; border: 4px solid #fff; box-shadow: var(--shadow-medium); }
.avatar.media { border-radius: 50%; }

/* ---------- 13. Testimonials (Swiper.js v11) ---------- */
.testimonials { overflow: hidden; }
.testimonial-swiper { padding: 8px 4px 64px !important; overflow: visible !important; }
.testimonial-swiper .swiper-slide { height: auto; }
.testimonial-card { height: 100%; margin: 0; padding: 36px 32px; display: flex; flex-direction: column; position: relative; }
.testimonial-card:hover { transform: none; }
.testimonial-card .fa-quote-left { font-size: 2rem; color: var(--c-border); margin-bottom: 20px; }
.testimonial-card blockquote { margin: 0 0 24px; font-size: 1.08rem; line-height: 1.7; color: var(--c-text); flex-grow: 1; }
.testimonial-card footer { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--c-card-border); }
.testimonial-card .initials { width: 46px; height: 46px; border-radius: 50%; background: var(--c-bg-tint); color: var(--c-primary); display: grid; place-items: center; font-family: var(--font-heading); }
.testimonial-card cite { font-style: normal; color: var(--c-accent); display: block; line-height: 1.3; }
.testimonial-card .meta { font-size: var(--fs-tiny); color: var(--c-text-muted); }
.sample-tag { position: absolute; top: 18px; right: 18px; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 3px 8px; border-radius: var(--r-small); border: 1px dashed var(--c-primary); color: var(--c-primary); }

.swiper-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: -24px; }
.swiper-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--c-border); background: #fff; color: var(--c-primary);
  display: grid; place-items: center; cursor: pointer; transition: var(--transition-smooth);
}
.swiper-btn:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.swiper-btn.swiper-button-disabled { opacity: 0.4; cursor: default; }
.testimonial-pagination { position: static !important; width: auto !important; display: flex; gap: 6px; align-items: center; }
.testimonial-pagination .swiper-pagination-bullet { width: 8px; height: 8px; background: var(--c-primary); opacity: 0.3; margin: 0 !important; transition: var(--transition-smooth); }
.testimonial-pagination .swiper-pagination-bullet-active { opacity: 1; width: 26px; border-radius: 6px; }

/* ---------- 14. CTA band (Brief §7.2 #8) ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--c-bg-contrast); color: #fff;
  padding: 96px 0;
  text-align: center;
}
.cta-band::before, .cta-band::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,0.08); }
.cta-band::before { width: 620px; height: 620px; left: -220px; top: -300px; }
.cta-band::after { width: 460px; height: 460px; right: -160px; bottom: -260px; background: radial-gradient(circle, rgba(86,103,117,0.55), rgba(86,103,117,0) 70%); border: 0; }
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: 2.6rem; max-width: 720px; margin: 0 auto 18px; }
.cta-band p { color: var(--c-on-dark-muted); font-size: var(--fs-lead); max-width: 600px; margin: 0 auto 36px; }
.cta-band .btn-group { justify-content: center; }

/* ---------- 15. Footer (Brief §7.2 #9) ---------- */
.site-footer { background: var(--c-bg-contrast); color: var(--c-on-dark-muted); font-size: var(--fs-small); border-top: 1px solid rgba(255,255,255,0.1); }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr 1.2fr; gap: 48px; padding: 72px 0 56px; }
.footer-logo { display: inline-flex; background: #fff; border-radius: var(--r-card); padding: 10px 16px; margin-bottom: 20px; color: var(--c-primary); }
.footer-logo .brand__img { height: 52px; }
.footer-brand p { max-width: 300px; line-height: 1.7; }
.site-footer h3 { color: #fff; font-size: 1.05rem; letter-spacing: 0.06em; margin-bottom: 20px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a { color: var(--c-on-dark-muted); display: inline-flex; gap: 10px; align-items: flex-start; }
.footer-links a:hover { color: #fff; }
.footer-links i { margin-top: 4px; width: 16px; color: #fff; opacity: 0.8; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); color: #fff; display: grid; place-items: center; transition: var(--transition-smooth); }
.socials a:hover { background: #fff; color: var(--c-accent); transform: translateY(-2px); }
.socials--dark a { border-color: var(--c-border); color: var(--c-primary); background: #fff; }
.socials--dark a:hover { background: var(--c-primary); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 22px 0; font-size: var(--fs-tiny); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; }
.footer-bottom a { color: var(--c-on-dark-muted); }
.footer-bottom a:hover { color: #fff; }
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; }
.footer-note { font-size: var(--fs-tiny); padding-bottom: 22px; color: var(--c-on-dark-muted); opacity: 0.9; }

/* ---------- 16. Content (detail pages, blog) ---------- */
.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; }
.prose { font-size: 1.05rem; }
.prose h2 { font-size: var(--fs-h3); margin-top: 1.6em; }
.prose h3 { font-size: 1.35rem; margin-top: 1.5em; }
.prose > *:first-child { margin-top: 0; }
.prose ul:not(.check-list) li { margin-bottom: 0.5em; }
.prose .media { margin: 0 0 36px; }

.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 24px; }
.sidebar-card { padding: 30px; }
.sidebar-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.sidebar-card--dark { background: var(--c-bg-contrast); border-color: var(--c-bg-contrast); color: var(--c-on-dark-muted); }
.sidebar-card--dark h3 { color: #fff; }
.sidebar-links { list-style: none; padding: 0; margin: 0; }
.sidebar-links li + li { border-top: 1px solid var(--c-card-border); }
.sidebar-links a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; color: var(--c-accent); }
.sidebar-links a i { color: var(--c-primary); font-size: 0.75rem; transition: transform 0.3s ease; }
.sidebar-links a:hover { color: var(--c-primary); }
.sidebar-links a:hover i { transform: translateX(4px); }
.sidebar-links a.is-current { color: var(--c-primary); }
.contact-line { display: flex; gap: 12px; align-items: center; padding: 8px 0; color: #fff; word-break: break-word; }
.contact-line i { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); display: grid; place-items: center; flex-shrink: 0; font-size: 0.85rem; }
.contact-line:hover { color: var(--c-bg-tint); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 16px; }
.steps li { counter-increment: step; position: relative; padding: 20px 22px 20px 74px; background: var(--c-bg-main); border-radius: var(--r-card); }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 22px; top: 20px; font-family: var(--font-heading); color: var(--c-primary); font-size: 1.25rem; }
.steps strong { display: block; font-weight: normal; color: var(--c-accent); font-size: 1.1rem; margin-bottom: 2px; }

.callout { display: flex; gap: 16px; padding: 22px 24px; border-radius: var(--r-card); background: var(--c-bg-tint); border-left: 3px solid var(--c-primary); margin: 28px 0; }
.callout i { color: var(--c-primary); margin-top: 4px; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- 17. Fees ---------- */
.fee-card { text-align: center; padding: 40px 30px; height: 100%; display: flex; flex-direction: column; }
.fee-card .icon-box { margin: 0 auto 22px; }
.fee-card h3 { font-size: var(--fs-h4); margin-bottom: 6px; }
.fee-card__price { font-family: var(--font-heading); font-size: 2.2rem; color: var(--c-primary); line-height: 1.2; margin: 14px 0 4px; }
.fee-card__unit { font-size: var(--fs-small); color: var(--c-text-muted); margin-bottom: 20px; }
.fee-card ul { text-align: left; flex-grow: 1; }
.fee-card--featured { border: 2px solid var(--c-primary); position: relative; }
.fee-card--featured::before { content: attr(data-label); position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--c-primary); color: #fff; font-size: var(--fs-tiny); letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 14px; border-radius: var(--r-pill); }
.info-card { padding: 32px; height: 100%; }
.info-card h3 { font-size: 1.35rem; display: flex; align-items: center; gap: 14px; }
.info-card h3 i { width: 44px; height: 44px; border-radius: 12px; background: var(--c-bg-tint); color: var(--c-primary); display: grid; place-items: center; font-size: 1rem; flex-shrink: 0; }
.info-card p, .info-card li { color: var(--c-text-muted); }

/* ---------- 18. FAQ accordion ---------- */
.faq-group + .faq-group { margin-top: 48px; }
.faq-group > h2 { font-size: var(--fs-h4); display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.faq-group > h2 i { color: var(--c-primary); font-size: 1rem; }
.accordion { display: grid; gap: 12px; }
.accordion details {
  background: #fff; border: 1px solid var(--c-card-border); border-radius: var(--r-card);
  box-shadow: var(--shadow-soft); transition: box-shadow 0.4s ease, border-color 0.3s ease;
}
.accordion details[open] { box-shadow: var(--shadow-medium); border-color: var(--c-border); }
.accordion summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 20px 24px; font-size: 1.08rem; color: var(--c-accent); line-height: 1.4;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "\2b"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 0.8rem;
  width: 32px; height: 32px; border-radius: 50%; background: var(--c-bg-tint); color: var(--c-primary);
  display: grid; place-items: center; flex-shrink: 0; transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}
.accordion details[open] summary::after { transform: rotate(45deg); background: var(--c-primary); color: #fff; }
.accordion summary:hover { color: var(--c-primary); }
.accordion .answer { padding: 0 24px 22px; color: var(--c-text-muted); }
.accordion .answer p:last-child { margin-bottom: 0; }

.faq-nav { position: sticky; top: calc(var(--header-h) + 24px); }
.faq-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 10px; color: var(--c-accent); }
.faq-nav a:hover { background: #fff; color: var(--c-primary); }
.faq-nav a i { color: var(--c-primary); width: 18px; }

/* ---------- 19. Blog ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.filter-btn { font-family: inherit; font-size: var(--fs-small); padding: 9px 20px; border-radius: var(--r-pill); border: 1.5px solid var(--c-border); background: #fff; color: var(--c-accent); cursor: pointer; transition: var(--transition-smooth); }
.filter-btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.filter-btn.is-active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; height: 100%; color: inherit; }
.post-card:hover { color: inherit; }
.post-card .media { border-radius: 0; }
.post-card__body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex-grow: 1; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--fs-tiny); color: var(--c-text-muted); margin-bottom: 12px; align-items: center; }
.post-meta i { color: var(--c-primary); margin-right: 4px; }
.tag { display: inline-block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--r-small); background: var(--c-bg-tint); color: var(--c-accent); }
.post-card h3 { font-size: 1.35rem; margin-bottom: 10px; transition: color 0.3s ease; }
.post-card:hover h3 { color: var(--c-primary); }
.post-card p { color: var(--c-text-muted); flex-grow: 1; }
.post-card.is-hidden { display: none; }

.article-hero .post-meta { margin-top: 18px; margin-bottom: 0; }
.article-cover { margin-top: -40px; position: relative; z-index: 2; }
.article-body { padding-top: 56px; }
.article-footer { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--c-border); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.author-box { display: flex; gap: 20px; align-items: center; padding: 26px; margin-top: 40px; }
.author-box .avatar { width: 80px; height: 80px; border-width: 3px; flex-shrink: 0; }
.author-box h3 { font-size: 1.2rem; margin-bottom: 4px; }
.author-box p { margin: 0; font-size: var(--fs-small); color: var(--c-text-muted); }

/* ---------- 20. Forms ---------- */
.form-card { padding: 40px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field .label { font-size: var(--fs-small); color: var(--c-accent); }
.field .req { color: var(--c-primary); }
.field .hint { font-size: var(--fs-tiny); color: var(--c-text-muted); }
.input, .field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="date"], .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--c-text);
  padding: 13px 16px; border-radius: var(--r-btn);
  border: 1.5px solid var(--c-border); background: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23566775' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(86,103,117,0.14); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #A23B3B; }
.field .error-msg { display: none; font-size: var(--fs-tiny); color: #A23B3B; }
.field.has-error .error-msg { display: block; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; pointer-events: none; }
.radio-pill span { display: inline-block; padding: 10px 18px; border: 1.5px solid var(--c-border); border-radius: var(--r-pill); cursor: pointer; font-size: var(--fs-small); background: #fff; transition: var(--transition-smooth); }
.radio-pill input:checked + span { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.radio-pill input:focus-visible + span { outline: 3px solid var(--c-primary); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-small); line-height: 1.55; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--c-primary); flex-shrink: 0; cursor: pointer; }
.check.has-error { color: #A23B3B; }
.form-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 28px; }
.form-status { display: none; margin-top: 22px; padding: 18px 20px; border-radius: var(--r-card); background: var(--c-bg-tint); border-left: 3px solid var(--c-primary); font-size: var(--fs-small); }
.form-status.is-visible { display: block; }
.form-status strong { font-weight: normal; color: var(--c-accent); font-size: 1.05rem; display: block; margin-bottom: 4px; }

.form-section { padding: 32px 0; border-top: 1px solid var(--c-card-border); }
.form-section:first-of-type { border-top: 0; padding-top: 0; }
.form-section__head { display: flex; gap: 16px; align-items: center; margin-bottom: 22px; }
.form-section__num { width: 40px; height: 40px; border-radius: 50%; background: var(--c-primary); color: #fff; display: grid; place-items: center; font-family: var(--font-heading); flex-shrink: 0; }
.form-section__head h2 { font-size: 1.4rem; margin: 0; }
.form-section__head p { margin: 2px 0 0; font-size: var(--fs-small); color: var(--c-text-muted); }
.agreement { max-height: 340px; overflow-y: auto; padding: 22px 24px; border: 1px solid var(--c-border); border-radius: var(--r-card); background: var(--c-bg-main); font-size: var(--fs-small); margin-bottom: 22px; }
.agreement h3 { font-size: 1.05rem; margin: 1.1em 0 0.4em; }
.agreement h3:first-child { margin-top: 0; }
.agreement p, .agreement li { color: var(--c-text-muted); }
.check-stack { display: grid; gap: 14px; }

.contact-cards { display: grid; gap: 16px; }
.contact-card { display: flex; gap: 18px; align-items: center; padding: 22px 24px; color: inherit; }
.contact-card:hover { color: inherit; }
.contact-card .icon-box { margin: 0; width: 54px; height: 54px; flex-shrink: 0; font-size: 1.1rem; }
.contact-card small { display: block; font-size: var(--fs-tiny); letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-text-muted); }
.contact-card strong { font-weight: normal; color: var(--c-accent); font-size: 1.1rem; word-break: break-word; }

/* ---------- 21. Misc ---------- */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.stat { padding: 20px; border-radius: var(--r-card); background: var(--c-bg-main); text-align: center; }
.stat i { color: var(--c-primary); font-size: 1.2rem; margin-bottom: 10px; display: block; }
.stat span { display: block; font-size: var(--fs-small); color: var(--c-accent); line-height: 1.4; }
.divider-icon { display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--c-border); margin: 0 auto 28px; }
.divider-icon::before, .divider-icon::after { content: ""; width: 60px; height: 1px; background: currentColor; }
.divider-icon i { color: var(--c-primary); }
.not-found { text-align: center; padding: 140px 0; }
.not-found .big { font-family: var(--font-heading); font-size: 7rem; line-height: 1; color: var(--c-border); }

/* Scroll reveal (Brief §6.5) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.no-js .reveal { opacity: 1; transform: none; }

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

/* ==========================================================================
   Responsive — Brief §6.1 / §10.5 breakpoints: 1200px, 992px, 768px, 480px
   ========================================================================== */
@media (max-width: 1199.98px) {
  .nav-link { padding: 10px 8px; font-size: 0.9rem; }
  .nav-link::after { left: 8px; right: 8px; }
  .nav-list > li.nav-home { display: none; } /* logo links home; frees space for the CTA */
  .header-cta .btn { padding: 11px 18px; }
  .brand__img { height: 50px; }
  .split { gap: 48px; }
  .footer-main { gap: 36px; }
  .layout-sidebar { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
}

/* Tablet landscape — 2-column grids, adjusted padding.
   The full 8-link navigation + CTA cannot fit below 992px, so the hamburger menu starts here. */
@media (max-width: 991.98px) {
  .nav-list > li.nav-home { display: block; }
  :root { --section-pad: 64px; --header-h: 76px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .split--wide-left, .split--wide-right { grid-template-columns: 1fr; gap: 56px; }
  .split .frame-wrap { max-width: 560px; }
  .layout-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .pillars__inner { grid-template-columns: 1fr; }
  .pillar + .pillar { border-left: 0; border-top: 1px solid var(--c-card-border); }
  .pillar { padding: 24px 28px; }
  .faq-nav { display: none; }

  /* backdrop-filter would make the header the containing block for the fixed menu panel */
  .site-header, .site-header.is-scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    background: #fff;
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 20px var(--gutter) 32px;
    overflow-y: auto;
    opacity: 0; transform: translateY(-12px); visibility: hidden; pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    border-top: 1px solid var(--c-border);
  }
  .main-nav.is-open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--c-card-border); }
  .nav-link { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 1.08rem; }
  .nav-link::after { display: none; }
  .has-dropdown { flex-wrap: wrap; }
  .has-dropdown > .nav-link { width: auto; flex: 1; padding-right: 4px; }
  .dropdown-toggle { width: 48px; height: 48px; margin: 0; border-radius: 10px; background: var(--c-bg-main); }
  .dropdown-toggle .fa-chevron-down { font-size: 0.8rem; }
  .dropdown { width: 100%; flex-basis: 100%; }
  .dropdown {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: 0; padding: 0 0 12px; min-width: 0;
    display: none;
  }
  .has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { transform: none; }
  .has-dropdown.is-open .dropdown { display: block; transform: none; }
  .has-dropdown:hover .fa-chevron-down { transform: none; }
  .has-dropdown.is-open .fa-chevron-down { transform: rotate(180deg); }
  .mobile-cta { display: grid; gap: 12px; margin-top: 28px; }
  body.nav-open { overflow: hidden; }
}

/* Tablet portrait — single-column sections */
@media (max-width: 767.98px) {
  :root { --fs-hero: 2.8rem; --fs-h1: 2.2rem; --fs-h2: 1.95rem; --fs-h3: 1.6rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .check-list--2 { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .hero { min-height: 0; padding: 72px 0 112px; }
  .hero__bg::after { background: linear-gradient(180deg, rgba(240,244,246,0.86) 0%, rgba(240,244,246,0.93) 55%, rgba(240,244,246,0.98) 100%); }
  .float-badge { left: 12px; bottom: 16px; }
  .frame::after { inset: 14px -14px -14px 14px; }
  .frame--left::after { inset: 14px 14px -14px -14px; }
  .cta-band { padding: 72px 0; }
  .cta-band h2 { font-size: 2.1rem; }
  .form-card { padding: 28px 22px; }
  .card--lg { padding: 28px 22px; }
  .scroll-cue { display: none; }
  .hero__shapes span:nth-child(3) { display: none; }
  .section-head { margin-bottom: 40px; }
}

/* Mobile — stacked layout, full-width cards, smaller hero text */
@media (max-width: 479.98px) {
  :root { --section-pad: 40px; --gutter: 16px; --fs-hero: 2.3rem; --fs-h1: 1.95rem; --fs-h2: 1.75rem; --fs-h4: 1.35rem; --header-h: 70px; }
  .brand__img { height: 44px; }
  .brand__name { font-size: 1.05rem; }
  .brand__mark { width: 40px; height: 40px; font-size: 1rem; }
  .hero { padding: 56px 0 104px; }
  .hero__sub { font-size: 1.08rem; }
  .btn-group .btn { width: 100%; }
  .footer-main { grid-template-columns: 1fr; padding: 56px 0 40px; gap: 32px; }
  .page-hero { padding: 64px 0 56px; }
  .approach-item { grid-template-columns: 1fr; gap: 14px; padding: 24px; }
  .service-card { padding: 28px 22px; }
  .cta-band h2 { font-size: 1.85rem; }
  .float-badge { position: relative; left: auto; bottom: auto; margin: -36px 16px 0; max-width: none; }
  .author-box { flex-direction: column; text-align: center; }
  .not-found .big { font-size: 5rem; }
}

/* ---------- Print (consent form & articles) ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .no-print, .skip-link, .sidebar, .page-hero::before, .page-hero::after { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .page-hero { padding: 0 0 16px; background: none; }
  .section { padding: 0; }
  .card, .form-card { box-shadow: none; border: 0; padding: 0; }
  .agreement { max-height: none; overflow: visible; border: 0; padding: 0; background: none; }
  .field input, .field select, .field textarea { border: 1px solid #999; }
  .reveal { opacity: 1 !important; transform: none !important; }
  a { color: #000; }
}
