/* ============================================================
   BELLE TRACE FINANCIAL PLANNING — Global Stylesheet
   Design tokens locked from BelleTrace.png logo
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ── Design Tokens ── */
:root {
  --navy:          #1B3A80;
  --navy-dark:     #142D66;
  --navy-light:    #2a4f9e;
  --blue-soft:     #7BAED4;
  /* blue-soft is a light-on-dark colour: it measures 2.37:1 on white, which fails
     WCAG AA at both the normal (4.5:1) and large-text (3:1) thresholds. Section
     eyebrows sit on white, so they use this darker pair instead — 5.43:1. The
     light value is still correct on navy and over photos; see .eyebrow rules. */
  --blue-label:    #3D6E96;
  --blue-pale:     #D6E8F4;
  --skyline-gray:  #CCCCCC;
  --bg:            #FAFAFA;
  --surface:       #FFFFFF;
  --text:          #111111;
  --text-muted:    #555555;
  --border:        #E2E8F0;
  --gold:          #C9A96E;

  --font-header: 'Cinzel', Georgia, serif;
  --font-body:   'Inter', system-ui, sans-serif;

  --radius:   6px;
  --radius-lg: 12px;
  --max-w:    1200px;
  --section-pad: clamp(64px, 8vw, 120px);

  --transition: 220ms ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
/* height:auto is load-bearing. Every <img> carries width/height attributes for
   layout stability; without this, any image whose CSS sets width but not height
   inherits the attribute height and stretches. More specific rules (.bio-photo,
   .nav__logo img, .personal-gallery img) still set their own height. */
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3 {
  font-family: var(--font-header);
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 600; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 600; }
h4 { font-family: var(--font-body); font-size: 1.1rem; font-weight: 600; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Layout Helpers ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}
.section { padding: var(--section-pad) 0; }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h1,
.section--navy h2,
.section--navy h3 { color: #fff; }
.section--pale { background: var(--blue-pale); }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
  letter-spacing: 0.03em;
}
.btn--primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn--primary:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(27,58,128,.25);
}
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--ghost:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-1px);
}
.btn--ghost-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.7);
}
.btn--ghost-white:hover {
  background: rgba(255,255,255,.15);
  border-color: #fff;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--surface);
  box-shadow: 0 1px 12px rgba(0,0,0,.08);
  padding: 0 clamp(20px, 5vw, 60px);
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
  gap: 24px;
}
.nav__logo {
  flex: 0 1 auto;
  min-width: 0;
}
.nav__logo img {
  height: 62px;
  width: auto;
  max-width: 100%;
  display: block;
  transition: opacity var(--transition);
}
.nav__links {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 26px;
}
.nav__links a {
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  transition: color var(--transition), opacity var(--transition);
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 2px;
  background: var(--blue-soft);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.nav__links a:hover::after,
.nav__links a.active::after { transform: scaleX(1); }
.nav__links a:hover { opacity: .8; }

/* Dropdown */
.nav__item { position: relative; }
.nav__dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  min-width: 200px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), transform var(--transition);
  transform: translateX(-50%) translateY(6px);
}
/* Bridge the 12px gap between the About link and the menu. Without this the
   cursor crosses un-hovered space on the way down and the menu closes. */
.nav__dropdown::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0; right: 0;
  height: 14px;
}
.nav__item:hover .nav__dropdown,
.nav__item:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav__dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 0.88rem;
  color: var(--text) !important;
  transition: background var(--transition);
}
.nav__dropdown a::after { display: none; }
.nav__dropdown a:hover { background: var(--blue-pale); }

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  transition: all var(--transition);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 96px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(27, 58, 128, 0.72) 0%,
    rgba(27, 58, 128, 0.45) 60%,
    rgba(27, 58, 128, 0.35) 100%
  );
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 760px;
  /* Translucent panel so the headline reads cleanly over the photo. */
  background: rgba(15, 32, 74, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 52px);
}
.hero__eyebrow {
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 1.9vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-soft);
  margin-bottom: 20px;
  display: block;
}
.hero__title { color: #fff; margin-bottom: 20px; }
.hero__sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.85);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.6;
}
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── Scroll Fade-in Animation ── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-left.visible { opacity: 1; transform: translateX(0); }
.fade-in-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-right.visible { opacity: 1; transform: translateX(0); }

/* The 32px pre-reveal offset is wider than the 20px the container has to spare
   on a phone, so .fade-in-right stuck 12px past the right edge and gave every
   page using it a sideways scroll until the element revealed. Shrink the offset
   rather than clipping — overflow-x on <html>/<body> propagates to the viewport
   and does not reliably clip the root. The .visible rules above are more
   specific, so the reveal still lands at 0. */
@media (max-width: 600px) {
  .fade-in-left  { transform: translateX(-16px); }
  .fade-in-right { transform: translateX(16px); }
}

/* Stagger delay helpers */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ── Section Label / Eyebrow ── */
.eyebrow {
  display: inline-block;
  font-size: clamp(1.12rem, 1.6vw, 1.3rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-label);
  margin-bottom: 14px;
}
.section--navy .eyebrow { color: var(--blue-soft); }

/* Closing CTA — stands alone now that the heading and paragraph are gone,
   so it carries the section on its own weight. */
.eyebrow--cta {
  font-size: clamp(1.5rem, 2.4vw, 1.85rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}
.btn--cta {
  font-size: 1.15rem;
  font-weight: 700;
  padding: 18px 44px;
}

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.1);
  transform: translateY(-2px);
}

/* ── Service Tiles (homepage preview) ── */
.service-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 900px) {
  .service-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .service-tiles { grid-template-columns: 1fr; }
}
.service-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: box-shadow var(--transition), transform var(--transition),
              border-color var(--transition);
  cursor: default;
}
.service-tile:hover {
  border-color: var(--blue-soft);
  box-shadow: 0 6px 24px rgba(27,58,128,.1);
  transform: translateY(-3px);
}
.service-tile__icon {
  width: 48px; height: 48px;
  margin-bottom: 16px;
  color: var(--navy);
}
.service-tile__title {
  font-family: var(--font-header);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}
.service-tile__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0;
}

/* ── Credibility Bar ── */
.cred-bar {
  background: var(--navy);
  color: #fff;
  padding: 56px 0;
}
.cred-bar__inner {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  flex-wrap: wrap;
}
.cred-item {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  text-align: center;
  padding: 0 32px;
  position: relative;
}
.cred-item + .cred-item::before {
  content: '';
  position: absolute;
  left: 0; top: 10%; bottom: 10%;
  width: 1px;
  background: rgba(255,255,255,.2);
}
.cred-item__label {
  font-family: var(--font-header);
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.cred-item__sub {
  font-size: 0.85rem;
  color: rgba(255,255,255,.7);
  line-height: 1.5;
}

/* Cinzel draws ® tiny inside its em box, so the mark all but disappears in the
   credibility bar. Render it in the body font at a larger relative size and
   raise it off the baseline. Tune font-size/vertical-align together. */
.reg-mark {
  font-family: var(--font-body);
  font-size: 0.78em;
  vertical-align: 0.42em;
  line-height: 1;
  letter-spacing: 0;
}
.cred-item__badge {
  width: 40px; height: 40px;
  background: var(--blue-soft);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  font-size: 1.1rem;
}

/* ── Partners Preview ── */
.partners-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.partner-photo-wrap {
  display: flex;
  gap: 20px;
  justify-content: center;
}
.partner-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 4px solid var(--blue-pale);
  box-shadow: 0 4px 20px rgba(27,58,128,.15);
}

/* ── Lifestyle Strip ── */
.lifestyle-strip {
  position: relative;
  padding: 80px 0;
  background: var(--navy);
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.lifestyle-strip__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .18;
  z-index: 0;
}
.lifestyle-strip__content {
  position: relative;
  z-index: 1;
}
.lifestyle-strip blockquote {
  font-family: var(--font-header);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  color: #fff;
  max-width: 700px;
  margin: 0 auto 24px;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.lifestyle-strip cite {
  font-size: 0.85rem;
  /* The strip draws its photo at .18 over navy, compositing to rgb(50,76,133).
     blue-soft measures 3.49:1 there and this is 0.85rem/normal, so the 4.5:1
     minimum applies. blue-pale clears 6.58:1. */
  color: var(--blue-pale);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-style: normal;
}

/* ── Footer ── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.85);
  padding: 56px 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer__brand img { height: 78px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer__brand p { font-size: 0.88rem; line-height: 1.6; color: rgba(255,255,255,.65); }
.footer__col h5 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-soft);
  margin-bottom: 14px;
}
.footer__col a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,.75);
  padding: 3px 0;
  transition: color var(--transition);
}
.footer__col a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,.5);
}
.footer__bottom a {
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer__bottom a:hover { color: #fff; }
.footer__legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}
.footer__adv {
  color: var(--blue-soft) !important;
  font-weight: 500;
}

/* ── Page Hero (inner pages) ── */
.page-hero {
  padding: 148px 0 72px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  text-align: center;
}
/* Photo variant — set background-image inline on the element. The overlay must
   stay strong enough for white text; tune the two rgba alphas to show more or
   less of the photo. Pages without this modifier keep the plain navy gradient. */
.page-hero--photo {
  position: relative;
  padding: 200px 0 136px;
  min-height: 540px;
  background-color: var(--navy);
  background-size: cover;
  background-position: center 32%;
  background-repeat: no-repeat;
  overflow: hidden;
}
.page-hero--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27,58,128,.44) 0%, rgba(27,58,128,.32) 100%);
  pointer-events: none;
}
.page-hero--photo > .container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  background: rgba(15,32,74,.56);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3.4vw, 44px);
}
/* blue-soft only clears 2.2:1 over the photo. White clears 5.1:1, so the
   eyebrow goes white here rather than weakening the overlay to compensate. */
.page-hero--photo .eyebrow { color: #fff; }
.page-hero h1 { color: #fff; margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,.8); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }

/* ── Services Panel (Planning page) ── */
.services-panel {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  min-height: 480px;
}
.services-list {
  background: var(--surface);
  border-right: 1px solid var(--border);
}
.service-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background var(--transition), border-color var(--transition);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
}
.service-tab + .service-tab { border-top: 1px solid var(--border); }
.service-tab:hover { background: var(--blue-pale); color: var(--navy); }
.service-tab.active {
  border-left-color: var(--navy);
  background: var(--blue-pale);
  color: var(--navy);
  font-weight: 600;
}
.service-tab__icon { font-size: 1.3rem; flex-shrink: 0; }
.service-content-wrap { background: var(--bg); position: relative; }
.service-content {
  display: none;
  padding: 40px 48px;
  animation: fadePanel .25s ease;
}
.service-content.active { display: block; }
@keyframes fadePanel {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.service-content h3 { color: var(--navy); margin-bottom: 16px; }
.service-content__intro { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 28px; border-left: 3px solid var(--blue-soft); padding-left: 18px; }
.service-content ul { margin-bottom: 28px; }
.service-content ul li {
  padding: 6px 0 6px 22px;
  position: relative;
  font-size: 0.95rem;
  color: var(--text);
}
.service-content ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 14px;
  width: 8px; height: 8px;
  background: var(--blue-soft);
  border-radius: 50%;
}
.service-content__articles h5 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.article-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--navy);
  font-weight: 500;
  transition: gap var(--transition);
}
.article-link:hover { gap: 10px; }
.article-link::after { content: '→'; }

/* ── Bio Page ── */
/* Bio header — the working photo sits behind the name under a translucent navy
   wash. The overlay has to stay strong enough for white text to remain legible;
   tune the two rgba alphas below to let more or less of the photo through. */
.bio-header {
  position: relative;
  padding: 200px 0 132px;
  min-height: 560px;
  background-color: var(--navy);
  background-size: cover;
  background-position: center 28%;
  background-repeat: no-repeat;
  color: #fff;
  overflow: hidden;
}
.bio-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27,58,128,.46) 0%, rgba(27,58,128,.34) 100%);
  pointer-events: none;
}
/* Local scrim so the name/creds stay legible without drowning the photo. */
.bio-header__text {
  background: rgba(15,32,74,.58);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 2.6vw, 34px);
}
.bio-header > .container { position: relative; z-index: 1; }
.bio-header__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: end;
}
/* About page team photo — left-aligned, with each name sitting under the person
   they belong to in the photo (Tabitha left, Emily right). */
.team-photo {
  max-width: 460px;
}
.team-photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
}
.team-photo__names {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.team-photo__names .btn {
  text-align: center;
  padding-left: 12px;
  padding-right: 12px;
  font-size: 0.88rem;
}
@media (max-width: 460px) {
  .team-photo__names { grid-template-columns: 1fr; }
}

/* Personal photo gallery on the bio pages — uniform 3:4 tiles so mixed phone
   snapshots line up cleanly regardless of their native crop. */
.personal-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.personal-gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
}
@media (max-width: 700px) {
  .personal-gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
}
@media (max-width: 460px) {
  .personal-gallery { grid-template-columns: 1fr; }
}

.bio-photo {
  width: 248px;
  height: 248px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 5px solid rgba(255,255,255,.25);
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}

.bio-header__text h1 { color: #fff; margin-bottom: 6px; }
.bio-header__creds {
  font-size: 0.9rem;
  /* Over the bio banner photo (navy gradient + .58 scrim) blue-soft measures
     3.53:1 on Emily's page and 4.20:1 on Tabitha's — both under the 4.5:1 AA
     minimum, and at 0.9rem/500 this is normal text so the 3:1 large-text
     allowance does not apply. blue-pale clears 6.66:1 and 7.93:1 while keeping
     the accent. Same problem .page-hero--photo .eyebrow solved by going white. */
  color: var(--blue-pale);
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.bio-header__headline {
  font-size: 1.15rem;
  color: rgba(255,255,255,.8);
  max-width: 560px;
  font-style: italic;
}

/* ── Divider ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── Two-column text layout ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.two-col--flip { direction: rtl; }
.two-col--flip > * { direction: ltr; }

/* ── Contact Form ── */
.contact-form {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  border: 1px solid var(--border);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,58,128,.1);
}
.form-group textarea { resize: vertical; min-height: 140px; }

/* ── Portal Cards ── */
.portal-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 680px;
  margin: 48px auto 0;
}
.portal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition),
              border-color var(--transition);
}
.portal-card:hover {
  border-color: var(--blue-soft);
  box-shadow: 0 8px 28px rgba(27,58,128,.1);
  transform: translateY(-3px);
}
.portal-card__name {
  font-family: var(--font-header);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 10px;
}
.portal-card__desc { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 24px; }

/* ── Responsive ── */

/* Nav squeeze band: long logo + 6 links need ~1100px. Below that, scale
   the logo and tighten the links rather than let them wrap to two lines. */
@media (min-width: 1025px) and (max-width: 1279px) {
  .nav__logo img { height: 50px; }
  .nav__links { gap: 18px; }
  .nav__links a { font-size: 0.8rem; letter-spacing: 0.05em; }
}

/* Below 1024px there is no arrangement that fits — collapse to the hamburger. */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__logo img { height: 56px; }

  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--navy);
    align-items: center;
    justify-content: center;
    gap: 28px;
    z-index: 99;
  }
  .nav__links.open a { font-size: 1.2rem; color: #fff; letter-spacing: 0.08em; }
  .nav__links.open .nav__dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: rgba(255,255,255,.1);
    box-shadow: none;
    border: none;
    padding: 8px 0;
  }
  .nav__links.open .nav__dropdown a { color: rgba(255,255,255,.8) !important; }
}

@media (max-width: 900px) {
  .partners-preview { grid-template-columns: 1fr; gap: 32px; }
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .two-col--flip { direction: ltr; }
  .services-panel { grid-template-columns: 1fr; }
  .services-list { border-right: none; border-bottom: 1px solid var(--border); }
  .service-tab { padding: 16px 20px; }
  .service-content { padding: 28px 24px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .portal-cards { grid-template-columns: 1fr; max-width: 360px; }
  .bio-header__inner { grid-template-columns: 1fr; text-align: center; }
  .bio-photo { margin: 0 auto; }
}
@media (max-width: 600px) {
  .partner-photo-wrap { flex-direction: column; align-items: center; }
  .cred-bar__inner { flex-direction: column; align-items: center; }
  .cred-item + .cred-item::before { display: none; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .hero__cta { flex-direction: column; align-items: flex-start; }
}

/* Contact form consent acknowledgement. Checkbox and its disclosure sit on one
   row; the text is small but must stay at AA contrast because it is the record
   of what the visitor agreed to. */
.form-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  margin-bottom: 20px;
}
.form-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--navy);
  flex-shrink: 0;
}
.form-consent label {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.form-consent a {
  color: var(--navy);
  text-decoration: underline;
}
