/* ===================================================================
   NOÜS – Brain Health & Longevity
   brain.md design system
   Palette: navy (#0d1b35 / #1B3A6B) + gold (#a89649) on warm cream
   Type: Cormorant Garamond (display) + Inter (body)
   =================================================================== */

:root {
  /* Brand colors – from brief */
  --gold:           #a9994b;
  --gold-bright:    #c4b25a;
  --gold-deep:      #8a7a36;
  --gold-tint:      #f5f0e0;

  --navy:           #1B3A6B;
  --navy-deep:      #0d1b35;
  --navy-darker:    #0a1428;
  --navy-tint:      #e8edf5;

  --cream:          #faf7f1;
  --cream-2:        #ede4d0;
  --cream-warm:     #e3d6b9;
  --ink:            #1a1a1a;
  --ink-2:          #2d2d2d;
  --ink-muted:      #585858;
  --ink-faint:      #8a8a8a;
  --line:           rgba(168, 150, 73, 0.22);
  --line-strong:    rgba(168, 150, 73, 0.45);

  /* Semantic */
  --color-bg:           var(--cream);
  --color-surface:      #ffffff;
  --color-surface-alt:  var(--cream-2);
  --color-text:         var(--ink);
  --color-text-muted:   var(--ink-muted);
  --color-text-faint:   var(--ink-faint);
  --color-accent:       var(--gold);
  --color-dark:         var(--navy-deep);

  /* Type scale (fluid) */
  --text-xs:   clamp(0.75rem, 0.7rem + 0.2vw, 0.8125rem);
  --text-sm:   clamp(0.875rem, 0.8rem + 0.3vw, 0.9375rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-md:   clamp(1.0625rem, 1rem + 0.4vw, 1.1875rem);
  --text-lg:   clamp(1.25rem, 1.1rem + 0.75vw, 1.625rem);
  --text-xl:   clamp(1.625rem, 1.3rem + 1.5vw, 2.5rem);
  --text-2xl:  clamp(2.25rem, 1.5rem + 3vw, 4rem);
  --text-3xl:  clamp(2.75rem, 1.5rem + 5vw, 5.5rem);

  /* Spacing */
  --space-1: 0.25rem;  --space-2: 0.5rem;   --space-3: 0.75rem;
  --space-4: 1rem;     --space-5: 1.25rem;  --space-6: 1.5rem;
  --space-8: 2rem;     --space-10: 2.5rem;  --space-12: 3rem;
  --space-16: 4rem;    --space-20: 5rem;    --space-24: 6rem;
  --space-32: 8rem;

  /* Fonts */
  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  /* Layout */
  --content-narrow:  680px;
  --content-default: 1080px;
  --content-wide:    1280px;
  --header-h: 88px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(13, 27, 53, 0.06);
  --shadow-md: 0 8px 24px rgba(13, 27, 53, 0.08);
  --shadow-lg: 0 24px 64px rgba(13, 27, 53, 0.14);

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =====================================================
   GLOBAL TYPOGRAPHY
   ===================================================== */

.display-serif { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.015em; }
.display-italic { font-family: var(--font-display); font-style: italic; font-weight: 400; }

p { max-width: 68ch; }
.lead { font-size: var(--text-md); color: var(--ink-2); line-height: 1.55; max-width: 60ch; }

a { color: inherit; text-decoration: none; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  /* Decorative gold bar removed June 2026 per Dr. Kouka feedback –
     was reading as a stray em-dash before the eyebrow label. */
  display: none;
}

.rule-gold {
  width: 56px; height: 1px;
  background: var(--gold);
  border: none;
  margin: var(--space-6) 0;
}

/* =====================================================
   LAYOUT PRIMITIVES
   ===================================================== */

.container       { width: 100%; max-width: var(--content-default); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.container-wide  { width: 100%; max-width: var(--content-wide);    margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.container-narrow{ width: 100%; max-width: var(--content-narrow);  margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }

.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section-lg { padding-block: clamp(5rem, 10vw, 9rem); }
.section-dark { background: var(--navy-deep); color: #efe8d6; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #d4cfc1; }
.section-cream { background: var(--cream-2); }
.section-warm  { background: var(--cream-warm); }
.section-tint  { background: var(--gold-tint); }

.grid { display: grid; gap: var(--space-8); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

/* =====================================================
   HEADER / NAV
   ===================================================== */

.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(246, 239, 226, 0.92);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  transition: transform 0.4s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.header--hidden { transform: translateY(-100%); }
.header--scrolled { background: rgba(246, 239, 226, 0.98); }

.header-inner {
  width: 100%; max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-6);
}

.brand-mark { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }
.brand-mark .brand-logo {
  display: block;
  height: 64px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
}
@media (max-width: 768px) {
  .brand-mark .brand-logo { height: 48px; max-width: 180px; }
}
.brand-mark .mark-text {
  display: flex; flex-direction: column; line-height: 1.05;
}
.brand-mark .mark-text .nous {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--gold);
}
.brand-mark .mark-text .sub {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--navy);
  margin-top: 2px;
}

.nav {
  display: flex; justify-content: center;
  gap: clamp(0.875rem, 2vw, 2rem);
}
.nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  letter-spacing: 0.02em;
  padding-block: 6px;
}
.nav a::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--navy); }

.header-cta { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }
.header-cta .btn {
  min-height: 44px;
  padding: 0 22px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
}
.phone-link {
  font-size: 0.85rem; font-weight: 500;
  color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 6px;
}
.phone-link:hover { color: var(--gold); }
.phone-link svg { width: 14px; height: 14px; }

/* Mobile nav */
.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  color: var(--navy);
}
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 960px) {
  .nav, .phone-link { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .header-cta .btn { min-height: 40px; padding: 0 18px; font-size: 0.72rem; }
}

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0;
  background: var(--cream);
  padding: var(--space-8) 1.5rem 4rem;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.4s var(--ease), visibility 0.4s;
  z-index: 49;
  overflow-y: auto;
}
.mobile-menu.open { transform: translateY(0); visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 1.25rem; }
.mobile-menu nav a {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 500;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.875rem;
}
.mobile-menu .mobile-foot {
  margin-top: var(--space-10);
  display: flex; flex-direction: column; gap: var(--space-3);
}
.mobile-menu .mobile-foot a {
  font-size: 0.95rem;
  color: var(--ink-2);
}

/* =====================================================
   BUTTONS
   ===================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  white-space: nowrap;
  cursor: pointer;
}
.btn--primary {
  background: #122a56;
  color: var(--gold-bright);
  border: 1.5px solid var(--gold);
  letter-spacing: 0.14em;
}
.btn--primary:hover {
  background: #1B3A6B;
  color: #d8c576;
  border-color: var(--gold-bright);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(18, 42, 86, 0.35);
}
.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.btn--outline:hover { background: var(--navy); color: #fff; }

.btn--outline-light {
  background: transparent;
  color: #efe8d6;
  border: 1px solid rgba(239, 232, 214, 0.4);
}
.btn--outline-light:hover { background: var(--gold); color: var(--navy-darker); border-color: var(--gold); }

.btn--ghost-gold {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn--ghost-gold:hover { background: var(--gold); color: var(--navy-darker); }

.btn-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gold);
}
.btn-arrow:hover { color: var(--gold-bright); transform: translateX(2px); }

/* =====================================================
   HERO
   ===================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  background: linear-gradient(135deg, var(--navy-darker) 0%, var(--navy) 65%, var(--navy-deep) 100%);
  color: #efe8d6;
  overflow: hidden;
  padding-top: calc(var(--header-h) + 2rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 50% at 70% 50%, rgba(168, 150, 73, 0.18), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-block: 7rem 4rem; min-height: auto; }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 1.5rem + 4.5vw, 5.25rem);
  line-height: 1.04;
  color: #fff;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}
.hero .sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.125rem, 0.9rem + 0.75vw, 1.4rem);
  color: #d4cfc1;
  max-width: 36ch;
  margin-top: var(--space-6);
}
.hero .cta-row { display: flex; gap: var(--space-4); flex-wrap: wrap; margin-top: var(--space-8); }

.hero-image {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}
.hero-image img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 4px; }
.hero-image::after {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid var(--gold);
  transform: translate(14px, 14px);
  border-radius: 4px;
  pointer-events: none;
  z-index: -1;
}

/* Interior page hero (smaller) */
.page-hero {
  background: linear-gradient(135deg, var(--navy-darker) 0%, var(--navy) 60%, var(--navy-deep) 100%);
  color: #efe8d6;
  padding: calc(var(--header-h) + 5rem) 0 5rem;
  position: relative;
  overflow: hidden;
  min-height: 650px;
  display: flex;
  align-items: center;
}
.page-hero > .container,
.page-hero > .container-narrow,
.page-hero > .page-hero-inner { width: 100%; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(168, 150, 73, 0.14), transparent 70%);
}
.page-hero-inner { position: relative; z-index: 2; }
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 1.2rem + 4vw, 4.25rem);
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.015em;
  max-width: 18ch;
}
.page-hero h1 em { font-style: italic; color: var(--gold); }
.page-hero .sub {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.125rem, 0.9rem + 0.75vw, 1.375rem);
  color: #d4cfc1; margin-top: var(--space-5); max-width: 50ch;
}

/* =====================================================
   SECTION HEADERS
   ===================================================== */

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 60ch; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 1.3rem + 2.5vw, 3.25rem);
  line-height: 1.08;
  color: var(--navy-deep);
  letter-spacing: -0.015em;
  margin-top: var(--space-4);
}
.section-head h2 em { font-style: italic; color: var(--gold); }
.section-head .lead { margin-top: var(--space-5); }
.section-dark .section-head h2 { color: #fff; }

/* =====================================================
   CARDS / SERVICE GRID
   ===================================================== */

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--line);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: 2px;
  display: flex; flex-direction: column; gap: var(--space-4);
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.service-card .icon {
  width: 44px; height: 44px;
  color: var(--gold);
  margin-bottom: var(--space-2);
}
.service-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--navy-deep);
  letter-spacing: -0.005em;
}
.service-card p { color: var(--ink-2); font-size: 0.95rem; }
.service-card .card-link {
  margin-top: auto;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  display: inline-flex; align-items: center; gap: 6px;
}
.service-card .card-link::after {
  content: "→"; transition: transform 0.2s var(--ease);
}
.service-card:hover .card-link::after { transform: translateX(4px); }

/* =====================================================
   TESTIMONIALS
   ===================================================== */

.testimonial {
  background: var(--color-surface);
  padding: clamp(2rem, 3.5vw, 3rem);
  border-left: 2px solid var(--gold);
  position: relative;
  display: flex; flex-direction: column; gap: var(--space-5);
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--navy-deep);
}
.testimonial .attribution {
  font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-muted); font-weight: 600;
}

/* =====================================================
   STATS / PILLARS
   ===================================================== */

.stat-row {
  display: grid; gap: var(--space-8);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  padding-block: var(--space-12);
  border-block: 1px solid var(--line);
}
.stat .num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  color: var(--gold);
  line-height: 1;
  display: block;
}
.stat .label {
  margin-top: var(--space-3);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  text-transform: uppercase;
  font-weight: 500;
}

/* =====================================================
   PRICING TABLE
   ===================================================== */

.price-group { margin-block: var(--space-12); }
.price-group h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.65rem;
  color: var(--navy-deep);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-6);
  display: flex; align-items: baseline; gap: var(--space-3);
}
.price-group h3 .num {
  font-size: 0.85rem; color: var(--gold);
  letter-spacing: 0.2em; font-family: var(--font-body); font-weight: 600;
}
.price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-6);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.price-row:last-child { border-bottom: none; }
.price-row .name {
  font-size: 1rem; font-weight: 500;
  color: var(--ink);
}
.price-row .note {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-top: 2px;
  font-weight: 400;
}
.price-row .price {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--gold);
  white-space: nowrap;
}
.price-row.total {
  background: var(--gold-tint);
  padding: var(--space-5) var(--space-5);
  border: none; margin-top: var(--space-3);
}
.price-row.total .name { font-weight: 700; color: var(--navy-deep); }
.price-row.total .price { color: var(--navy-deep); }
.section-dark .price-row { border-bottom-color: rgba(255,255,255,0.12); }
.section-dark .price-row .name { color: #f3ead5; }
.section-dark .price-row .note { color: #cfc8b8; }
.section-dark .price-row .price { color: var(--gold-bright); }

/* =====================================================
   TIMELINE
   ===================================================== */

.timeline { position: relative; padding-left: 2rem; list-style: none; margin: 0; }
.timeline::before {
  content: ""; position: absolute;
  left: 7px; top: 12px; bottom: 12px;
  width: 1px; background: var(--line-strong);
}
.tl-item {
  position: relative;
  padding-bottom: var(--space-10);
}
.tl-item::before {
  content: ""; position: absolute;
  left: -2rem; top: 8px;
  width: 15px; height: 15px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--cream);
}
.tl-item .year {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-2);
}
.tl-item .what {
  color: var(--ink-2);
  font-size: 1rem;
  max-width: 60ch;
}
.tl-item .what strong { color: var(--navy-deep); font-weight: 600; }

/* On dark sections */
.section-dark .timeline::before { background: rgba(168, 150, 73, 0.4); }
.section-dark .tl-item::before { box-shadow: 0 0 0 4px var(--navy-deep); }
.section-dark .tl-item .what { color: #cfc8b8; }
.section-dark .tl-item .what strong { color: #fff; }

/* =====================================================
   COMMUNITIES STRIP
   ===================================================== */

.communities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  border: 1px solid var(--line);
}
.community {
  padding: var(--space-8) var(--space-6);
  border-right: 1px solid var(--line);
  position: relative;
}
.community:last-child { border-right: none; }
.community .lang {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.community h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--navy-deep);
  margin-block: var(--space-3) var(--space-3);
}
.community p { font-size: 0.92rem; color: var(--ink-2); }
.section-dark .communities { border-color: rgba(255,255,255,0.14); }
.section-dark .community { border-right-color: rgba(255,255,255,0.14); }
.section-dark .community h4 { color: #fff; }
.section-dark .community p { color: #cfc8b8; }
@media (max-width: 820px) {
  .community { border-right: none; border-bottom: 1px solid var(--line); }
  .community:last-child { border-bottom: none; }
  .section-dark .community { border-bottom-color: rgba(255,255,255,0.14); }
}

/* =====================================================
   VIDEO EMBED
   ===================================================== */

.video-wrap {
  position: relative;
  aspect-ratio: 16/9;
  width: 100%;
  background: var(--navy-deep);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.video-wrap iframe,
.video-wrap video {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  object-fit: contain;
  background: #000;
}
.video-caption {
  margin-top: var(--space-4);
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  text-align: center;
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  font-style: italic;
  line-height: 1.55;
  color: var(--ink-muted);
  font-family: var(--font-display);
}
.video-caption .cap-line {
  display: block;
}
@media (max-width: 720px) {
  .video-caption { font-size: 0.92rem; }
}

/* =====================================================
   PULL QUOTE
   ===================================================== */

.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.625rem, 1rem + 2vw, 2.5rem);
  line-height: 1.3;
  color: var(--navy-deep);
  max-width: 22ch;
  border-left: 2px solid var(--gold);
  padding-left: var(--space-6);
}
.section-dark .pull-quote { color: #fff; }
.pull-quote cite {
  display: block;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: var(--space-5);
}

/* =====================================================
   FOOTER
   ===================================================== */

.footer {
  background: var(--navy-deep);
  color: #cfc8b8;
  padding-block: var(--space-20) var(--space-8);
  font-size: 0.9rem;
}
.footer .footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(168, 150, 73, 0.25);
}

/* ── Footer social row (above all columns) ─────────────────────────── */
.footer .footer-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding-block: var(--space-6) var(--space-10);
  border-bottom: 1px solid rgba(168, 150, 73, 0.18);
  margin-bottom: var(--space-12);
}
.footer .footer-social-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: #d4cfc1;
}
.footer .footer-social-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer .footer-social-list li { padding: 0; }
.footer .footer-social-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #cfc8b8;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(214, 207, 163, 0.2);
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
  padding: 0;
}
.footer .footer-social-list a:hover {
  color: var(--gold);
  background: rgba(168, 150, 73, 0.08);
  border-color: rgba(168, 150, 73, 0.55);
  transform: translateY(-2px);
}
.footer .footer-social-list a svg {
  width: 18px;
  height: 18px;
  display: block;
}
@media (max-width: 480px) {
  .footer .footer-social-list { gap: 0.9rem; }
  .footer .footer-social-list a { width: 36px; height: 36px; }
  .footer .footer-social-list a svg { width: 16px; height: 16px; }
}
.footer h5 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-4);
}
.footer a { color: #cfc8b8; display: block; padding-block: 4px; }
.footer a:hover { color: var(--gold); }
.footer .brand-block .nous {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  display: block; margin-bottom: var(--space-2);
}
.footer .brand-block .tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: #d4cfc1;
  margin-bottom: var(--space-6);
}
.footer .brand-block p { color: #b8b1a3; font-size: 0.88rem; max-width: 32ch; }
.footer .footer-bottom {
  margin-top: var(--space-8);
  display: flex; justify-content: space-between; gap: var(--space-4);
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: #8a8474;
}
.footer .footer-bottom .disclaimer { max-width: 60ch; }
@media (max-width: 820px) {
  .footer .footer-top { grid-template-columns: 1fr 1fr; }
  .footer .brand-block { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer .footer-top { grid-template-columns: 1fr; }
}

/* =====================================================
   FORMS
   ===================================================== */

.form-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: var(--space-5); }
.form-row label {
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.form-row input, .form-row select, .form-row textarea {
  border: 1px solid var(--line-strong);
  background: #fff;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: var(--font-body);
  border-radius: 2px;
  color: var(--ink);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-color: var(--gold);
}
.form-grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* =====================================================
   ASSESSMENT QUIZ
   ===================================================== */

.quiz {
  background: var(--color-surface);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 2px;
  box-shadow: var(--shadow-md);
}
.quiz-progress {
  height: 3px; background: var(--cream-2);
  border-radius: 2px; overflow: hidden;
  margin-bottom: var(--space-6);
}
.quiz-progress span {
  display: block; height: 100%;
  background: var(--gold);
  transition: width 0.4s var(--ease);
}
.quiz-step .qnum {
  font-size: 0.75rem; letter-spacing: 0.2em;
  color: var(--gold); font-weight: 600;
  text-transform: uppercase; margin-bottom: var(--space-3);
}
.quiz-step h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--navy-deep);
  margin-bottom: var(--space-6);
  line-height: 1.25;
}
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--line-strong);
  background: #fff;
  cursor: pointer;
  border-radius: 2px;
  font-size: 1rem;
  text-align: left;
  font-family: var(--font-body);
  color: var(--ink-2);
}
.quiz-option:hover { border-color: var(--gold); background: var(--gold-tint); }
.quiz-option.selected {
  border-color: var(--gold);
  background: var(--gold-tint);
  color: var(--navy-deep);
  font-weight: 500;
}
.quiz-option .marker {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.quiz-option.selected .marker {
  border-color: var(--gold);
  background: var(--gold);
}
.quiz-option.selected .marker::after {
  content: ""; width: 8px; height: 8px;
  background: #fff; border-radius: 50%;
}

.quiz-nav { display: flex; justify-content: space-between; margin-top: var(--space-8); gap: var(--space-3); flex-wrap: wrap; }
.quiz-nav[hidden], .quiz-step[hidden] { display: none !important; }

.quiz-result {
  text-align: center;
  padding: var(--space-6) var(--space-4);
}
.quiz-result .badge {
  display: inline-block;
  padding: 8px 18px;
  background: var(--gold-tint);
  color: var(--gold-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 2px;
  margin-bottom: var(--space-5);
}
.quiz-result h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
  font-weight: 400;
  color: var(--navy-deep);
  line-height: 1.1;
  margin-bottom: var(--space-5);
}
.quiz-result .score {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--gold);
  font-weight: 400;
  line-height: 1;
  display: block;
  margin-bottom: var(--space-3);
}
.quiz-result p { margin: 0 auto var(--space-8); color: var(--ink-2); max-width: 52ch; }

/* =====================================================
   IMAGE / CONTENT BLOCKS
   ===================================================== */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "head image" "body image";
  column-gap: clamp(2rem, 5vw, 5rem);
  row-gap: var(--space-4);
  align-items: start;
}
.split > .split-head { grid-area: head; }
.split > .split-body { grid-area: body; }
.split > .split-image,
.split > figure { grid-area: image; align-self: center; }
.split.split-reverse { grid-template-areas: "image head" "image body"; }
.split-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 2px;
}
.split-image.landscape img { aspect-ratio: 4/3; }
@media (max-width: 820px) {
  .split,
  .split.split-reverse {
    grid-template-columns: 1fr;
    grid-template-areas: "head" "image" "body";
    row-gap: var(--space-5);
  }
}

/* =====================================================
   CALLOUT BOX
   ===================================================== */

.callout {
  background: var(--gold-tint);
  border-left: 3px solid var(--gold);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 2px;
}
.callout p { color: var(--navy-deep); max-width: none; }
.callout strong { color: var(--gold-deep); }
.callout-dark {
  background: rgba(168, 150, 73, 0.08);
  border-color: var(--gold);
  color: #d4cfc1;
}
.callout-dark p { color: #d4cfc1; }

/* =====================================================
   STEP / JOURNEY
   ===================================================== */

.steps {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.step {
  background: var(--color-surface);
  padding: var(--space-8) var(--space-6);
  border-top: 2px solid var(--gold);
  position: relative;
}
.step .step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold);
  font-weight: 400;
  line-height: 1;
  margin-bottom: var(--space-4);
}
.step h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--navy-deep);
  margin-bottom: var(--space-3);
}
.step p { font-size: 0.95rem; color: var(--ink-2); }

/* =====================================================
   INCLUDED LIST
   ===================================================== */

.included {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: var(--space-4);
}
.included-item {
  background: var(--color-surface);
  padding: var(--space-6);
  border: 1px solid var(--line);
  display: flex; gap: var(--space-4); align-items: flex-start;
}
.included-item svg {
  width: 22px; height: 22px;
  color: var(--gold);
  flex-shrink: 0; margin-top: 3px;
}
.included-item .name {
  font-weight: 600;
  color: var(--navy-deep);
  margin-bottom: 4px;
  font-size: 0.98rem;
}
.included-item p { font-size: 0.88rem; color: var(--ink-2); margin: 0; }

/* =====================================================
   FEE TABLE
   ===================================================== */

.fee-table { width: 100%; border-collapse: collapse; }
.fee-table th, .fee-table td {
  padding: var(--space-4) var(--space-3);
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.fee-table th {
  font-family: var(--font-body);
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
  padding-bottom: var(--space-4);
}
.fee-table td.price-cell {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--navy-deep);
  white-space: nowrap;
}
.fee-table tr:hover td { background: var(--gold-tint); }
@media (max-width: 640px) {
  .fee-table th:nth-child(2), .fee-table td:nth-child(2) { display: none; }
}

/* =====================================================
   UTILITIES
   ===================================================== */

.text-center { text-align: center; }
.muted { color: var(--ink-muted); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1; transform: none;
}

/* For language switcher */
.lang-switch {
  display: inline-flex; gap: 1px;
  background: rgba(168, 150, 73, 0.15);
  border-radius: 2px;
  padding: 2px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.lang-switch button,
.lang-switch a {
  padding: 6px 10px;
  color: var(--ink-muted);
  border-radius: 2px;
  text-transform: uppercase;
  text-decoration: none;
}
.lang-switch button.active,
.lang-switch a.active {
  background: var(--gold);
  color: var(--navy-darker);
}

/* Header variant – square buttons, gold letters throughout; active = navy fill, gold border */
.header-cta .lang-switch.header-lang {
  background: transparent;
  padding: 0;
  gap: 4px;
  font-size: 0.72rem;
  align-self: center;
  margin-left: 1rem;
  display: inline-flex;
}
.header-cta .lang-switch.header-lang button,
.header-cta .lang-switch.header-lang a {
  width: 30px;
  height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-deep);
  font-weight: 600;
  letter-spacing: 0.08em;
  background: #fff;
  border: 1px solid var(--gold);
  border-radius: 2px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
  cursor: pointer;
  text-decoration: none;
}
.header-cta .lang-switch.header-lang button:hover,
.header-cta .lang-switch.header-lang a:hover {
  border-color: var(--gold-deep);
  background: #fffaee;
}
.header-cta .lang-switch.header-lang button.active,
.header-cta .lang-switch.header-lang a.active {
  background: var(--navy);
  color: var(--gold);
  border-color: var(--gold);
}
@media (max-width: 960px) {
  .header-cta .lang-switch.header-lang {
    display: none;
  }
}

/* Generic split grid – stacks on tablet/mobile */
@media (max-width: 880px) {
  .split-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .split-grid figure { order: -1; max-width: 480px; margin-inline: auto !important; }
}

/* Footer copyright – small “formerly” line below main line */
.footer-bottom .former-domain {
  color: rgba(232, 226, 210, 0.55);
  font-style: italic;
}

/* =================================================================
   ABOUT-PAGE EXTRAS – credentials table, certs list, publications,
   portrait imagery, dark callout enrichment
   ================================================================= */
.split-image.portrait img {
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
  border-radius: 8px;
}

.cred-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.cred-table th, .cred-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--line-strong);
  vertical-align: top;
}
.cred-table th {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  background: var(--gold-tint);
  border-bottom-color: var(--gold);
}
.cred-table td:first-child {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy-deep);
  font-weight: 500;
  white-space: nowrap;
}
.cred-table td:nth-child(2) {
  color: var(--navy-deep);
  font-weight: 600;
}
.cred-table tr:hover td { background: rgba(168,150,73,0.06); }

.cert-list {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  gap: 1rem;
}
.cert-list li {
  padding: 1.25rem 1.25rem 1.25rem 2.5rem;
  background: #fff;
  border-left: 3px solid var(--gold);
  border-radius: 2px;
  position: relative;
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.55;
  box-shadow: 0 1px 3px rgba(13,27,53,0.04);
}
.cert-list li::before {
  content: "";
  position: absolute;
  left: 1rem; top: 1.55rem;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
}
.cert-list li strong { color: var(--navy-deep); font-weight: 600; }

.pub-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-radius: 2px;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.pub-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13,27,53,0.08);
}
.pub-card .pub-year {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
}
.pub-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--navy-deep);
  line-height: 1.25;
  margin: 0;
}
.pub-card p { color: var(--ink-2); font-size: 0.95rem; margin: 0; }
.pub-card .btn-arrow { margin-top: auto; }

.book-card {
  padding: 1.75rem;
  background: rgba(168,150,73,0.07);
  border-left: 2px solid var(--gold);
  border-radius: 2px;
}
.book-card h4 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.book-card p { color: #d4cfc1; font-size: 0.95rem; margin-bottom: 1.25rem; }

.tl-current::before {
  background: var(--gold-bright) !important;
  box-shadow: 0 0 0 4px var(--gold-tint), 0 0 0 8px var(--gold) !important;
}
.tl-item h4 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--navy-deep);
  margin: 0.25rem 0 0.4rem;
  line-height: 1.2;
}
.tl-item p {
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 60ch;
  margin: 0;
}
.tl-year {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.04em;
}

/* =================================================================
   SERVICES – categories grid, PHAP card, first-visit callout
   ================================================================= */
.svc-cat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.svc-cat .cat-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.svc-cat h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 0.8vw, 2rem);
  font-weight: 500;
  color: var(--navy-deep);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
.svc-cat hr.rule-gold { margin: 0 0 1.25rem; }

.phap-explainer {
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-darker) 100%);
  color: #efe8d6;
  padding: clamp(2.5rem, 5vw, 4rem);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.phap-explainer::before {
  content: "";
  position: absolute;
  top: -50%; right: -20%;
  width: 60%; height: 200%;
  background: radial-gradient(closest-side, rgba(168,150,73,0.18), transparent);
  pointer-events: none;
}
.phap-explainer > * { position: relative; z-index: 2; }
.phap-explainer h2 { color: #fff; }
.phap-explainer p { color: #d4cfc1; }


/* =================================================================
   CONTACT PAGE – cards & form
   ================================================================= */
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 2rem;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.contact-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 6px 22px rgba(13,27,53,0.06);
}
.contact-card .icon {
  width: 32px; height: 32px;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--navy-deep);
  letter-spacing: -0.005em;
}
.contact-card p {
  color: var(--ink-2);
  font-size: 0.96rem;
  line-height: 1.55;
  margin: 0;
}
.contact-card .meta {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.contact-card .btn-arrow {
  margin-top: auto;
  padding-top: 0.5rem;
}

.contact-form {
  background: #fff;
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-deep);
  font-weight: 600;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 2px;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--navy-deep);
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(168,150,73,0.18);
}
.contact-form .form-success {
  padding: 1rem 1.25rem;
  background: var(--gold-tint);
  border-left: 3px solid var(--gold);
  border-radius: 2px;
}
@media (max-width: 640px) {
  .contact-form .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  body[data-page="contact"] .container > .grid {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   SERVICES PAGE – Two Pathways
   ========================================================= */

/* Exam Card Grid (Pathway One) */
.exam-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}
.exam-card {
  background: #fff;
  border: 1px solid rgba(13, 27, 53, 0.08);
  border-radius: 4px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(13, 27, 53, 0.04);
  display: flex;
  flex-direction: column;
  position: relative;
}
.exam-card--premium {
  border: 1px solid rgba(168, 150, 73, 0.35);
  background: linear-gradient(180deg, #fff 0%, rgba(168, 150, 73, 0.04) 100%);
  box-shadow: 0 4px 20px rgba(168, 150, 73, 0.08);
}
.exam-card-head {
  border-bottom: 1px solid rgba(13, 27, 53, 0.08);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}
.exam-card-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 600;
  margin-bottom: 0.85rem;
}
.exam-card-tag--gold {
  color: var(--gold-deep);
}
.exam-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.1rem + 0.8vw, 1.75rem);
  color: var(--navy-deep);
  line-height: 1.2;
  margin: 0 0 1rem 0;
  font-weight: 500;
}
.exam-card-price {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 1.3rem + 1.4vw, 2.5rem);
  color: var(--gold-deep);
  font-weight: 500;
  line-height: 1;
}
.exam-card-price .from {
  font-size: 0.5em;
  color: var(--ink-2);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-right: 0.4rem;
  font-family: var(--font-body);
}
.exam-card-intro {
  font-size: 0.95rem;
  color: var(--ink-2);
  font-style: italic;
  margin-bottom: 1rem;
}
.exam-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}
.exam-card-list li {
  display: flex;
  flex-direction: column;
  padding: 0.85rem 0;
  border-bottom: 1px dashed rgba(13, 27, 53, 0.08);
  position: relative;
  padding-left: 1.5rem;
}
.exam-card-list li:last-child { border-bottom: none; }
.exam-card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  background: transparent;
}
.exam-card--premium .exam-card-list li::before {
  background: var(--gold);
}
.exam-card-list li span {
  font-weight: 600;
  color: var(--navy-deep);
  font-size: 0.98rem;
  line-height: 1.4;
}
.exam-card-list li em {
  font-style: italic;
  font-size: 0.88rem;
  color: var(--ink-2);
  margin-top: 0.2rem;
  line-height: 1.5;
}
.exam-card-tagline {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(168, 150, 73, 0.2);
  font-size: 1rem;
  color: var(--gold-deep);
  text-align: center;
  line-height: 1.5;
}
.exam-card-tagline em {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

@media (max-width: 880px) {
  .exam-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Tier Comparison Table (Pathway Two) */
.tier-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tier-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid rgba(13, 27, 53, 0.08);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(13, 27, 53, 0.04);
  min-width: 720px;
}
.tier-table th,
.tier-table td {
  padding: 1rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid rgba(13, 27, 53, 0.06);
  font-size: 0.95rem;
  color: var(--navy-deep);
  line-height: 1.5;
  vertical-align: middle;
}
.tier-table th.tier-feature {
  text-align: left;
  font-weight: 600;
  color: var(--ink-1);
  background: rgba(13, 27, 53, 0.025);
  width: 28%;
  font-size: 0.93rem;
}
.tier-table th.tier-feature em {
  display: block;
  font-style: italic;
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--ink-2);
  margin-top: 0.15rem;
}
.tier-table thead .tier-col {
  background: var(--navy-deep);
  color: #fff;
  padding: 1.5rem 1rem 1.25rem;
  position: relative;
  vertical-align: bottom;
}
.tier-table thead .tier-col--preferred {
  background: linear-gradient(180deg, #1B3A6B 0%, #142a52 100%);
  position: relative;
}
.tier-table thead .tier-col--concierge {
  background: linear-gradient(180deg, #a9994b 0%, #897933 100%);
  color: #fff;
}
.tier-name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 0.7vw, 1.6rem);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.tier-badge {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bright);
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-weight: 600;
}
.tier-price-row td,
.tier-enroll-row td {
  background: rgba(13, 27, 53, 0.02);
}
.tier-price-row th.tier-feature,
.tier-enroll-row th.tier-feature {
  background: rgba(13, 27, 53, 0.05);
}
.tier-price {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2rem);
  font-weight: 500;
  color: var(--gold-deep);
  line-height: 1;
}
.tier-price-unit {
  font-size: 0.85rem;
  color: var(--ink-2);
  margin-left: 0.15rem;
}
.tier-enroll-row td {
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy-deep);
  border-bottom: 2px solid rgba(168, 150, 73, 0.25);
}
.tier-table tbody tr:last-child th,
.tier-table tbody tr:last-child td {
  border-bottom: none;
}
.tier-table td em {
  display: block;
  font-style: italic;
  font-size: 0.82rem;
  color: var(--ink-2);
  margin-top: 0.2rem;
  line-height: 1.4;
}
.tier-included {
  display: inline-block;
  font-weight: 600;
  color: var(--gold-deep);
  background: rgba(168, 150, 73, 0.12);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}
.tier-check {
  color: var(--gold);
  font-size: 1.3rem;
  font-weight: 600;
}
.tier-dash {
  color: rgba(13, 27, 53, 0.25);
  font-size: 1.1rem;
}

@media (max-width: 880px) {
  .tier-table-wrap {
    border-radius: 4px;
    border: 1px solid rgba(13, 27, 53, 0.08);
    background: #fff;
  }
  .tier-table-wrap::after {
    content: "← swipe →";
    display: block;
    text-align: center;
    font-size: 0.78rem;
    color: var(--ink-2);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.6rem;
    background: rgba(168, 150, 73, 0.06);
    border-top: 1px solid rgba(168, 150, 73, 0.15);
  }
}

/* Therapies Grid (Section 4) */
.therapies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.therapy-card {
  background: #fff;
  border: 1px solid rgba(13, 27, 53, 0.08);
  border-left: 3px solid var(--gold);
  border-radius: 2px;
  padding: 1.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.therapy-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 27, 53, 0.08);
}
.therapy-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--navy-deep);
  margin: 0 0 0.75rem 0;
  line-height: 1.25;
}
.therapy-card p {
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0;
}

/* Tier Teaser Cards (Services page) */
.tier-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
.tier-teaser {
  position: relative;
  background: #fff;
  border: 1px solid rgba(13, 27, 53, 0.08);
  border-top: 3px solid var(--navy-deep);
  border-radius: 4px;
  padding: 2rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(13, 27, 53, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tier-teaser:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 27, 53, 0.08);
}
.tier-teaser--featured {
  border: 1px solid rgba(168, 150, 73, 0.35);
  border-top: 3px solid var(--gold);
  background: linear-gradient(180deg, #fff 0%, rgba(168, 150, 73, 0.04) 100%);
  box-shadow: 0 4px 20px rgba(168, 150, 73, 0.10);
}
.tier-teaser--concierge {
  border-top: 3px solid var(--gold-deep);
}
.tier-teaser-badge {
  position: absolute;
  top: -0.7rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy-deep);
  color: var(--gold-bright);
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  white-space: nowrap;
}
.tier-teaser-name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.05rem + 0.7vw, 1.65rem);
  color: var(--navy-deep);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0.85rem;
}
.tier-teaser-price {
  font-family: var(--font-display);
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  padding-bottom: 1.1rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid rgba(13, 27, 53, 0.08);
}
.tier-teaser-price .amt {
  font-size: clamp(1.85rem, 1.35rem + 1.4vw, 2.5rem);
  color: var(--gold-deep);
  font-weight: 500;
  line-height: 1;
}
.tier-teaser-price .unit {
  font-size: 0.95rem;
  color: var(--ink-2);
  font-family: var(--font-body);
}
.tier-teaser-line {
  font-size: 0.95rem;
  color: var(--ink-1);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

@media (max-width: 880px) {
  .tier-teaser-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .tier-teaser--featured {
    margin-top: 0.6rem;
  }
}

/* =========================================================
   ASSESSMENT v2 – domain meta, multi-select, result meters
   ========================================================= */

/* Question meta: number on left, domain badge on right */
.quiz-step .qmeta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
  gap: var(--space-3);
  flex-wrap: wrap;
}
.quiz-step .qdomain {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--navy-deep);
  background: var(--gold-tint);
  border: 1px solid rgba(168, 150, 73, 0.3);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

/* Multi-select: square markers instead of circle */
.quiz-options-multi .quiz-option .marker.marker-check {
  border-radius: 3px;
}
.quiz-options-multi .quiz-option.selected .marker.marker-check {
  border-color: var(--gold);
  background: var(--gold);
  position: relative;
}
.quiz-options-multi .quiz-option.selected .marker.marker-check::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
  background: transparent;
  border-radius: 0;
}

/* Result page – new layout overrides old centered single-score */
.quiz-result .result-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-7);
}
.quiz-result .result-header .eyebrow {
  margin-left: auto;
  margin-right: auto;
}
.quiz-result .result-msg {
  margin: var(--space-5) auto 0;
  color: var(--ink-2);
  max-width: 58ch;
  font-size: 1.02rem;
  line-height: 1.65;
}

/* Four domain meters */
.result-meters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 640px;
  margin: 0 auto;
}
.result-meter {
  background: #fff;
  border: 1px solid rgba(13, 27, 53, 0.08);
  border-radius: 4px;
  padding: 1.25rem 1.25rem 1.1rem;
  text-align: left;
}
.result-meter-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.7rem;
  gap: 0.6rem;
}
.result-meter-label {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--navy-deep);
  font-weight: 500;
  line-height: 1.2;
}
.result-meter-band {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}
.result-meter-track {
  height: 6px;
  background: rgba(13, 27, 53, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.result-meter-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s var(--ease);
}
.result-meter-score {
  font-size: 0.82rem;
  color: var(--ink-2);
  font-style: italic;
}

/* Tone variants */
.result-meter.tone-low .result-meter-band {
  background: #e6f0e6;
  color: #2d6a3c;
}
.result-meter.tone-low .result-meter-fill {
  background: linear-gradient(90deg, #6da575 0%, #4a8c5a 100%);
}
.result-meter.tone-mod .result-meter-band {
  background: #f5f0e0;
  color: #8a7a36;
}
.result-meter.tone-mod .result-meter-fill {
  background: linear-gradient(90deg, var(--gold-bright) 0%, var(--gold) 100%);
}
.result-meter.tone-elev .result-meter-band {
  background: #fbe8d6;
  color: #a55a14;
}
.result-meter.tone-elev .result-meter-fill {
  background: linear-gradient(90deg, #d68a52 0%, #b86826 100%);
}
.result-meter.tone-high .result-meter-band {
  background: #f4dada;
  color: #8b2424;
}
.result-meter.tone-high .result-meter-fill {
  background: linear-gradient(90deg, #c45656 0%, #962f2f 100%);
}

/* References section */
.result-refs {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  text-align: left;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.result-refs h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--navy-deep);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 1rem;
}
.result-refs ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.result-refs li {
  font-size: 0.88rem;
  color: var(--ink-2);
  line-height: 1.6;
  padding: 0.65rem 0;
  border-bottom: 1px dashed rgba(13, 27, 53, 0.08);
}
.result-refs li:last-child {
  border-bottom: none;
}
.result-refs li em {
  color: var(--ink-1);
  font-style: italic;
}
.result-refs li a {
  color: var(--gold-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .result-meters {
    grid-template-columns: 1fr;
  }
  .quiz-step .qmeta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* ============================================================
   RTL / Arabic support
   ----------------------------------------------------------
   Loaded automatically when <html dir="rtl" lang="ar"> is set.
   Strategy: keep the visual layout mostly mirrored, but keep
   numbers, brand marks (NOÜS, drkouka.com), and Latin runs
   in their natural LTR direction inside the RTL flow.
   ============================================================ */

html[lang="ar"] {
  font-family: "Noto Naskh Arabic", "Amiri", "Scheherazade New", "Segoe UI", "Tahoma", "Inter", system-ui, sans-serif;
}

html[lang="ar"] body {
  text-align: right;
}

/* Display headings keep the Cormorant Garamond fallback but use
   an Arabic display face up front. Cormorant is then a fallback
   so any inline Latin still renders nicely. */
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] .display,
html[lang="ar"] .eyebrow,
html[lang="ar"] .hero h1,
html[lang="ar"] .section-title,
html[lang="ar"] .footer .nous {
  font-family: "Amiri", "Noto Naskh Arabic", "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: 0;
}

/* Arabic letterforms have tall ascenders/descenders (lam-alif, dots above/below),
   so the LTR heading line-height of ~1.15 causes adjacent lines to collide.
   Bump line-height for all Arabic display/heading levels. */
html[lang="ar"] .display,
html[lang="ar"] h1,
html[lang="ar"] .hero h1 {
  line-height: 1.45;
}
html[lang="ar"] h2,
html[lang="ar"] .section-title {
  line-height: 1.5;
}
html[lang="ar"] h3,
html[lang="ar"] h4 {
  line-height: 1.55;
}

/* Italic does not exist in Arabic – render emphasis as gold accent
   weight instead, so the design intent (highlighted phrase) survives. */
html[lang="ar"] em,
html[lang="ar"] i {
  font-style: normal;
  color: var(--gold-deep);
  font-weight: 600;
}

/* Latin-only runs (brand, domains, phone, credentials, numbers) */
html[lang="ar"] .nous,
html[lang="ar"] .brand-mark,
html[lang="ar"] .phone-link,
html[lang="ar"] .former-domain,
html[lang="ar"] [dir="ltr"] {
  direction: ltr;
  unicode-bidi: isolate;
}

/* Force Latin font on these so NOÜS, etc. stay clean */
html[lang="ar"] .nous,
html[lang="ar"] .former-domain {
  font-family: "Cormorant Garamond", "Inter", system-ui, sans-serif;
}

/* Phone numbers: same clean body font as every other language (not the display serif) */
html[lang="ar"] .phone-link,
html[lang="ar"] .footer bdi[dir="ltr"],
html[lang="ar"] .mobile-foot bdi[dir="ltr"] {
  font-family: var(--font-body);
}

/* Header & navigation: logo top-left, phone + language buttons top-right
   with the phone to the left of the language buttons — same as every other
   language, unchanged. The nav LINKS themselves flow right-to-left, so
   Home sits at the right edge of the nav and Contact at the left — natural
   Arabic reading order — while still centered in the same nav column. */
html[lang="ar"] .header-inner,
html[lang="ar"] .header-cta {
  direction: ltr;
}
html[lang="ar"] .nav {
  direction: rtl;
}
html[lang="ar"] .nav a {
  direction: rtl;
  unicode-bidi: isolate;
}

/* Language switcher buttons: stay in EN, ES, FR, РУ, ع display order
   even in RTL — they're language labels not Arabic text. */
html[lang="ar"] .lang-switch,
html[lang="ar"] .lang-switch.header-lang {
  direction: ltr;
}

/* Cards, columns, footer grid – let CSS grid handle most flow,
   but flip text alignment. */
html[lang="ar"] .footer .footer-top h5,
html[lang="ar"] .footer .footer-top a,
html[lang="ar"] .footer .brand-block,
html[lang="ar"] .footer .footer-bottom {
  text-align: right;
}

html[lang="ar"] .footer .footer-top {
  direction: rtl;
}

/* Border-left used as decorative accent under office addresses
   needs to become border-right in RTL. */
html[lang="ar"] .footer a[style*="border-left"] {
  border-left: 0 !important;
  border-right: 1px solid rgba(214,207,163,0.25) !important;
  padding-left: 0 !important;
  padding-right: 1rem !important;
}

/* ── RTL: accent lines and list bullets must sit on the RIGHT in Arabic ── */

/* Table cells, quiz options and result blocks are text-align:left by default → right */
html[lang="ar"] .fee-table th,
html[lang="ar"] .fee-table td,
html[lang="ar"] .cred-table th,
html[lang="ar"] .cred-table td,
html[lang="ar"] .quiz-option,
html[lang="ar"] .result-refs,
html[lang="ar"] .result-meter {
  text-align: right;
}

/* Vertical accent line before a pull-quote → right side */
html[lang="ar"] .pull-quote {
  border-left: 0;
  border-right: 2px solid var(--gold);
  padding-left: 0;
  padding-right: var(--space-6);
}

/* Short gold rule under headings → right-aligned to match RTL headings */
html[lang="ar"] .rule-gold {
  margin-left: auto;
  margin-right: 0;
}

/* Exam-card list: round bullet and its spacing → right */
html[lang="ar"] .exam-card-list li {
  padding-left: 0;
  padding-right: 1.5rem;
}
html[lang="ar"] .exam-card-list li::before {
  left: auto;
  right: 0;
}

/* Credential list: accent border and bullet → right */
html[lang="ar"] .cert-list li {
  border-left: 0;
  border-right: 3px solid var(--gold);
  padding-left: 1.25rem;
  padding-right: 2.5rem;
}
html[lang="ar"] .cert-list li::before {
  left: auto;
  right: 1rem;
}

/* Remaining left-accent cards/boxes → right border in Arabic */
html[lang="ar"] .testimonial,
html[lang="ar"] .book-card {
  border-left: 0;
  border-right: 2px solid var(--gold);
}
html[lang="ar"] .callout,
html[lang="ar"] .contact-form .form-success {
  border-left: 0;
  border-right: 3px solid var(--gold);
}

/* Decorative arrows in nav/CTAs ("Learn more →") — flip to ← */
html[lang="ar"] .cta-row a::after,
html[lang="ar"] .arrow-link::after {
  content: " ←";
}

/* Inline-edit (pplx) UI overlays: ignore in production layout */

/* Body copy: more relaxed line-height for Arabic letterforms */
html[lang="ar"] p,
html[lang="ar"] li,
html[lang="ar"] .sub {
  line-height: 1.85;
}

/* Buttons keep their look but stop auto-uppercasing Arabic text */
html[lang="ar"] .btn,
html[lang="ar"] .quiz-option {
  text-transform: none;
  letter-spacing: 0;
}

/* Reveal animations: in RTL we should slide in from the right side */
html[lang="ar"] .reveal[data-from="left"] {
  transform: translate3d(40px, 0, 0);
}
html[lang="ar"] .reveal[data-from="right"] {
  transform: translate3d(-40px, 0, 0);
}

/* Hero grid: keep the image on its grid side but text aligned right */
html[lang="ar"] .hero-grid > div:first-child {
  text-align: right;
}

/* Section eyebrows often have letter-spacing for tracking – Arabic
   does not benefit from this. */
html[lang="ar"] .eyebrow,
html[lang="ar"] [class*="eyebrow"] {
  letter-spacing: 0;
}

/* Quiz progress bar fills from right in RTL */
html[lang="ar"] #progressBar {
  margin-left: auto;
  margin-right: 0;
}

/* Make sure quote marks render correctly in Arabic */
html[lang="ar"] blockquote::before,
html[lang="ar"] blockquote::after {
  content: "";
}

/* ============================================================
   ARABIC POLISH PASS (Dr. Kouka feedback, June 2026)
   ============================================================ */

/* 1. Eyebrow ("kicker") line — kill the 28px gold bar that was
      created for Latin caps and looked like a giant em-dash in Arabic.
      Bump size, kill uppercase, give breathing room to the headline below. */
html[lang="ar"] .eyebrow::before {
  display: none;
}
html[lang="ar"] .eyebrow {
  font-size: 1.6rem;             /* up from 0.72rem (~2.2x) */
  font-family: "Amiri", "Noto Naskh Arabic", serif;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.5;
  margin-bottom: 1.4rem;         /* clear separation from the headline */
  display: block;                /* so margin-bottom actually applies */
}

/* Hero/section headlines: a little more space above so they don't
   crash into the now-larger eyebrow. */
html[lang="ar"] .eyebrow + h1,
html[lang="ar"] .eyebrow + h2,
html[lang="ar"] .eyebrow + h3,
html[lang="ar"] .eyebrow + .display,
html[lang="ar"] .eyebrow + .section-title {
  margin-top: 0.4rem;
}

/* 2. Footer "سابقاً drkouka.com" — was inheriting 0.8rem footer-bottom
      size at ~55% opacity. Bump size, lift opacity, kill italics
      (italics are not an Arabic thing anyway). */
html[lang="ar"] .footer-bottom .former-domain {
  font-size: 1.05rem;           /* ~17px, up from ~13px */
  color: rgba(232, 226, 210, 0.85);
  font-style: normal;
  font-weight: 500;
}
/* Footer disclaimer + copyright line: also too small in Arabic */
html[lang="ar"] .footer .footer-bottom {
  font-size: 0.95rem;
}

/* 4. .split sections: prevent RTL from mirroring image position.
      The grid uses logical columns, so dir=rtl reverses them automatically.
      We undo that by re-declaring the same grid-template-areas under
      explicit LTR direction (but keeping the inner text RTL).
      Result: photo position is identical to LTR — left stays left,
      right stays right — across all five languages. */
html[lang="ar"] .split {
  direction: ltr;
  grid-template-areas: "head image" "body image";
}
html[lang="ar"] .split.split-reverse {
  direction: ltr;
  grid-template-areas: "image head" "image body";
}
html[lang="ar"] .split > .split-head,
html[lang="ar"] .split > .split-body {
  direction: rtl;
  text-align: right;
}
@media (max-width: 820px) {
  /* On mobile, the grid is a single column — direction doesn't matter,
     but keep text RTL for the Arabic copy. */
  html[lang="ar"] .split,
  html[lang="ar"] .split.split-reverse {
    direction: rtl;
  }
}

/* 3. Image / video captions — Arabic */
html[lang="ar"] .video-caption {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-style: normal;
  font-family: "Amiri", "Noto Naskh Arabic", "Cormorant Garamond", serif;
  line-height: 1.85;
  text-align: center;
}
@media (max-width: 720px) {
  html[lang="ar"] .video-caption {
    font-size: 1.05rem;
  }
}

/* Figure attributions (testimonials) – tiny uppercase in EN, unreadable in AR */
html[lang="ar"] .testimonial .attribution,
html[lang="ar"] figcaption.attribution {
  font-size: 1.05rem;
  letter-spacing: 0;
  text-transform: none;
}

/* Footer brand blurb under the NOÜS mark — was 0.88rem, bump it for AR */
html[lang="ar"] .footer .brand-block p {
  font-size: 1.05rem;
  line-height: 1.85;
  max-width: 38ch;
}

/* Footer office addresses + links — bring up to comfortable AR reading size */
html[lang="ar"] .footer a,
html[lang="ar"] .footer h5 {
  font-size: 1.05rem;
}
html[lang="ar"] .footer h5 {
  font-size: 1.15rem;
}

/* ===========================================
   ARABIC RTL: Timeline bullets on the RIGHT
   =========================================== */
html[lang="ar"] .timeline {
  padding-left: 0;
  padding-right: 2rem;
}
html[lang="ar"] .timeline::before {
  left: auto;
  right: 7px;
}
html[lang="ar"] .tl-item::before {
  left: auto;
  right: -2rem;
}

/* ===========================================
   BLOG POST: Article typography & layout
   =========================================== */
.post-hero {
  position: relative;
  background: var(--navy-deep);
  color: var(--cream);
  padding: 7rem 0 4rem;
  overflow: hidden;
}
.post-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(180deg, rgba(13,27,53,0.55) 0%, rgba(13,27,53,0.92) 100%), url('../assets/blog-cover-prevention.png');
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  z-index: 1;
}
/* Per-post hero image overrides — set body[data-post] in each blog post */
body[data-post="exosomes"] .post-hero::before {
  background-image: linear-gradient(180deg, rgba(13,27,53,0.55) 0%, rgba(13,27,53,0.92) 100%), url('../assets/section-genetics.png');
}
body[data-post="prevention"] .post-hero::before {
  background-image: linear-gradient(180deg, rgba(13,27,53,0.55) 0%, rgba(13,27,53,0.92) 100%), url('../assets/blog-cover-prevention.png');
}
body[data-post="july4-teaser"] .post-hero::before {
  background-image: linear-gradient(180deg, rgba(13,27,53,0.55) 0%, rgba(13,27,53,0.92) 100%), url('../assets/blog-cover-july4-teaser.png');
}
.post-hero > .container-narrow { position: relative; z-index: 2; }
.post-hero .post-meta {
  display: flex; gap: 0.85rem; align-items: center;
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.5rem;
}
.post-hero .post-meta .dot { width: 3px; height: 3px; background: var(--gold); border-radius: 50%; opacity: 0.7; }
.post-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 2.8vw, 3.6rem);
  line-height: 1.1;
  font-weight: 500;
  color: #fff;
  margin: 0 0 1.5rem;
  text-wrap: balance;
}
.post-hero h1 em { font-style: italic; color: var(--gold); }
.post-hero .post-byline {
  font-size: 1rem;
  color: rgba(245, 240, 225, 0.78);
  font-style: italic;
  letter-spacing: 0.02em;
}

/* Article body */
.post-body {
  background: var(--cream);
  padding: 4.5rem 0 5rem;
}
.post-body .post-lede {
  font-size: 1.35rem;
  line-height: 1.65;
  color: var(--navy-deep);
  font-style: italic;
  margin-bottom: 1.75rem;
  letter-spacing: -0.005em;
}
.post-body figure.post-figure {
  margin: 3rem -2rem;
  padding: 0;
}
.post-body figure.post-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 8px 28px rgba(13, 27, 53, 0.10);
}
.post-body figure.post-figure figcaption {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink-2, #666);
  margin-top: 0.85rem;
  text-align: center;
  letter-spacing: 0.01em;
  padding: 0 1rem;
}
@media (max-width: 720px) {
  .post-body figure.post-figure { margin: 2.25rem 0; }
}
.post-body .container-narrow { max-width: 720px; }
.post-body p,
.post-body ul,
.post-body ol,
.post-body blockquote {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.75;
  color: var(--ink-1);
  margin: 0 0 1.5rem;
  font-weight: 400;
}
.post-body p strong { color: var(--navy-deep); font-weight: 600; }
.post-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.05rem);
  line-height: 1.2;
  color: var(--navy-deep);
  margin: 3rem 0 1.25rem;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.post-body h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--navy-deep);
  margin: 2.25rem 0 1rem;
  font-weight: 500;
}
.post-body a {
  color: var(--gold-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s var(--ease);
}
.post-body a:hover { color: var(--gold); }
.post-body ul, .post-body ol { padding-left: 1.4rem; }
.post-body ul li, .post-body ol li { margin-bottom: 0.75rem; }
.post-body blockquote {
  border-left: 3px solid var(--gold);
  padding: 0.5rem 1.25rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--ink-2);
}
.post-body hr {
  border: none;
  height: 1px;
  background: rgba(27, 58, 107, 0.12);
  margin: 3rem 0;
}

/* TL;DR card */
.tldr-card {
  background: #fff;
  border: 1px solid rgba(168, 150, 73, 0.25);
  border-left: 4px solid var(--gold);
  border-radius: 4px;
  padding: 1.75rem 2rem 1.5rem;
  margin: 0 0 3rem;
  box-shadow: 0 6px 20px -10px rgba(27, 58, 107, 0.1);
}
.tldr-card .tldr-label {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 1rem;
  font-family: var(--font-sans);
}
.tldr-card ul {
  margin: 0;
  padding-left: 1.2rem;
  font-family: var(--font-sans);
}
.tldr-card ul li {
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--ink-1);
  margin-bottom: 0.7rem;
}
.tldr-card ul li:last-child { margin-bottom: 0; }

/* Further reading card */
.further-reading {
  background: var(--navy-deep);
  color: var(--cream);
  border-radius: 4px;
  padding: 2rem 2.25rem;
  margin: 3rem 0 0;
}
.further-reading h2 {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  font-weight: 600;
  margin: 0 0 1.25rem;
}
.further-reading ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--font-sans);
}
.further-reading ul li {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(245, 240, 225, 0.86);
  margin-bottom: 1rem;
  padding-left: 1rem;
  position: relative;
}
.further-reading ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
}
.further-reading a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.further-reading a:hover { color: #d6c280; }

/* Author card */
.author-card {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(27, 58, 107, 0.1);
  border-radius: 4px;
  padding: 1.75rem 2rem;
  margin: 3rem 0 0;
}
.author-card .author-portrait {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 25%;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}
.author-card .author-meta h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy-deep);
  margin: 0 0 0.4rem;
  font-weight: 500;
}
.author-card .author-meta .creds {
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  color: var(--gold-deep);
  margin: 0 0 0.15rem;
  font-family: var(--font-sans);
}
.author-card .author-meta .creds-2 {
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  color: var(--gold-deep);
  margin: 0 0 0.5rem;
  font-family: var(--font-sans);
}
.author-card .author-meta p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  font-family: var(--font-sans);
  font-style: italic;
}

/* Next post teaser */
.post-teaser {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--cream);
  border-radius: 4px;
  padding: 1.75rem 2rem;
  margin: 2.5rem 0 0;
  text-align: center;
}
.post-teaser .label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--font-sans);
  font-weight: 600;
  margin-bottom: 0.6rem;
  display: block;
}
.post-teaser p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: rgba(245, 240, 225, 0.92);
  font-style: italic;
}
.post-teaser p strong {
  color: #fff;
  font-style: normal;
  font-weight: 500;
}

/* Closing CTA strip (reuses .section-lg + container text-center) */

/* ============ RTL variants for blog posts ============ */
html[lang="ar"] .post-body p,
html[lang="ar"] .post-body ul,
html[lang="ar"] .post-body ol,
html[lang="ar"] .post-body blockquote,
html[lang="ar"] .post-body h2,
html[lang="ar"] .post-body h3 {
  font-family: 'Amiri', 'Noto Naskh Arabic', serif;
  text-align: right;
}
html[lang="ar"] .post-body ul,
html[lang="ar"] .post-body ol {
  padding-left: 0;
  padding-right: 1.4rem;
}
html[lang="ar"] .post-body blockquote {
  border-left: none;
  border-right: 3px solid var(--gold);
}
html[lang="ar"] .post-hero h1 {
  font-family: 'Amiri', 'Noto Naskh Arabic', serif;
  line-height: 1.4;
}
html[lang="ar"] .tldr-card { border-left: 1px solid rgba(168, 150, 73, 0.25); border-right: 4px solid var(--gold); }
html[lang="ar"] .tldr-card ul { padding-left: 0; padding-right: 1.2rem; font-family: 'Noto Naskh Arabic', sans-serif; }
html[lang="ar"] .further-reading ul li { padding-left: 0; padding-right: 1rem; }
html[lang="ar"] .further-reading ul li::before { left: auto; right: 0; content: '←'; }
html[lang="ar"] .further-reading ul { font-family: 'Noto Naskh Arabic', sans-serif; }
html[lang="ar"] .author-card .author-meta { font-family: 'Noto Naskh Arabic', sans-serif; }
html[lang="ar"] .author-card .author-meta h4 { font-family: 'Amiri', serif; }
html[lang="ar"] .post-teaser p { font-family: 'Amiri', serif; }

/* Mobile */
@media (max-width: 640px) {
  .post-hero { padding: 5rem 0 3rem; }
  .post-body { padding: 3rem 0 3.5rem; }
  .post-body p, .post-body ul, .post-body ol, .post-body blockquote { font-size: 1.1rem; line-height: 1.7; }
  .tldr-card { padding: 1.4rem 1.5rem; }
  .further-reading { padding: 1.5rem 1.5rem; }
  .author-card { flex-direction: column; text-align: center; padding: 1.5rem; }
}

/* Coming-soon tag on teaser blog cards: no arrow, no link styling */
.blog-card-link.coming-soon-tag::after { content: none; }
.blog-card-link.coming-soon-tag {
  cursor: default;
  color: rgba(168,150,73,0.7);
  border: 1px solid rgba(168,150,73,0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  align-self: flex-start;
}

/* ============================================================
   MOBILE FIXES (appended) — horizontal overflow + cred table
   ============================================================ */
/* 1. Kill site-wide horizontal overflow (mobile menu drawer, etc.) */
html, body { overflow-x: hidden; max-width: 100%; }
.mobile-menu { box-sizing: border-box; max-width: 100vw; left: 0; right: 0; }

/* 2. Credentials table: fit all four columns on small screens */
@media (max-width: 640px) {
  .cred-table { table-layout: fixed; width: 100%; }
  .cred-table th, .cred-table td { padding: 0.7rem 0.5rem; font-size: 0.78rem; }
  /* headers: single words, don't break mid-word */
  .cred-table th { font-size: 0.62rem; letter-spacing: 0.02em; word-break: normal; overflow-wrap: normal; }
  /* data cells: allow long names to wrap */
  .cred-table td { overflow-wrap: break-word; }
  .cred-table th:first-child, .cred-table td:first-child { width: 13%; }
  .cred-table th:nth-child(2), .cred-table td:nth-child(2) { width: 20%; }
}

/* 3. CTA buttons: never exceed viewport on small screens */
@media (max-width: 640px) {
  .cta-row { flex-wrap: wrap; }
  .cta-row .btn { max-width: 100%; }
  .btn { white-space: normal; }
}
