/* ============================================================
   BG Counselling — Design Tokens & Base
   ============================================================ */

:root {
  /* Brand color — derived from the BG mark's blue gradient + warm paper ground */
  --color-primary: #2C5578;
  --color-primary-mid: #3C6E96;
  --color-primary-light: #8FD0EA;
  --color-primary-pale: #E3F1F7;

  --color-bg: #FBF7EE;
  --color-bg-alt: #F3ECDC;
  --color-surface: #FFFFFF;

  --color-text: #2E2416;
  --color-text-muted: #5B4D3E;
  --color-text-on-primary: #FFFFFF;

  --color-border: #E7DCC7;
  --color-border-strong: #6E8FA8;
  --color-focus: #2C5578;

  --font-heading: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacious scale (density 3/10) */
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --space-8: 6rem;
  --space-9: 8rem;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 32px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(44, 85, 120, 0.08);
  --shadow-md: 0 12px 40px rgba(44, 85, 120, 0.12);
  --shadow-lg: 0 24px 70px rgba(44, 85, 120, 0.16);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 180ms;
  --duration-med: 350ms;

  --max-width: 1180px;
}

/* ============================================================
   Reset
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
svg { display: block; }

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

ul, ol { padding: 0; margin: 0; list-style: none; }
p { margin: 0 0 1em; }

button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--color-text);
}

h1 { font-size: clamp(2.4rem, 4.4vw, 3.6rem); line-height: 1.12; }
h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.35rem, 1.8vw, 1.6rem); }
h4 { font-size: 1.15rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary-mid);
  margin-bottom: var(--space-2);
}

.lede {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  max-width: 46ch;
}

/* ============================================================
   Focus & accessibility
   ============================================================ */

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 0.9em 1.4em;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

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

/* ============================================================
   Layout
   ============================================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.section {
  padding: var(--space-8) 0;
}
.section--tight { padding: var(--space-6) 0; }
.section--alt { background: var(--color-bg-alt); }
.section--surface { background: var(--color-surface); }

.section-head {
  max-width: 62ch;
  margin: 0 0 var(--space-6);
}
.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.grid {
  display: grid;
  gap: var(--space-5);
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 860px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.9em 1.7em;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              background-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--color-primary-mid);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  border-color: var(--color-border-strong);
  color: var(--color-primary);
}
.btn--ghost:hover {
  background: var(--color-primary-pale);
}

.btn--on-dark {
  background: #fff;
  color: var(--color-primary);
}
.btn--on-dark:hover { background: var(--color-primary-pale); }

.btn svg { width: 1.1em; height: 1.1em; flex-shrink: 0; }

/* ============================================================
   Navbar
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(251, 247, 238, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.nav__actions .btn--primary { white-space: nowrap; }
.nav__brand { flex-shrink: 0; }

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: var(--color-text);
}
.nav__brand img { width: 38px; height: 38px; border-radius: 9px; }
.nav__brand span small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
  margin-top: 1px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.nav__link {
  font-weight: 500;
  font-size: 0.97rem;
  color: var(--color-text-muted);
  position: relative;
  padding: 0.3em 0;
  transition: color var(--duration-fast) var(--ease-out);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--color-primary); }
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--color-primary-mid);
  transition: right var(--duration-med) var(--ease-out);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { right: 0; }

.nav__actions { display: flex; align-items: center; gap: var(--space-3); }

.nav__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-primary-pale);
  color: var(--color-primary);
  transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}
.nav__social:hover { background: var(--color-primary); color: #fff; }
.nav__social svg { width: 20px; height: 20px; }

@media (max-width: 1100px) {
  .nav__actions .btn--primary .btn__label-full { display: none; }
}
@media (min-width: 1101px) {
  .nav__actions .btn--primary .btn__label-short { display: none; }
}

.nav__panel-social { display: none; }
@media (max-width: 960px) {
  .nav__actions .nav__social { display: none; }
  .nav__panel-social {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-3);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border);
    align-self: stretch;
  }
}

@media (max-width: 520px) {
  .nav__bar { gap: 0.25rem; }
  .nav__brand { gap: 0.5rem; font-size: 1rem; min-width: 0; flex-shrink: 1; }
  .nav__brand span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .nav__brand span small { display: none; }
  .nav__actions { gap: 0.4rem; }
  .nav__actions .btn--primary { padding: 0.7em 1em; font-size: 0.92rem; }
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.4rem;
  color: var(--color-text);
}
.nav__toggle svg { width: 26px; height: 26px; }

@media (max-width: 960px) {
  .nav__links {
    position: fixed;
    top: 0;
    right: -360px;
    bottom: 0;
    width: min(78vw, 340px);
    height: 100vh;
    background: var(--color-surface);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: var(--space-4);
    padding: 6rem var(--space-5) var(--space-5);
    box-shadow: var(--shadow-lg);
    transition: right var(--duration-med) var(--ease-out);
  }
  .nav__links[data-open="true"] { right: 0; }
  .nav__link { font-size: 1.15rem; }
  .nav__toggle { display: inline-flex; }
}

.nav__close {
  display: none;
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  background: none;
  border: none;
  color: var(--color-text);
  padding: 0.3rem;
}
.nav__close svg { width: 24px; height: 24px; }
@media (max-width: 960px) {
  .nav__close { display: inline-flex; }
}

.nav__scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(46, 36, 22, 0.35);
  z-index: 490;
}
.nav__scrim[data-open="true"] { display: block; }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding: var(--space-8) 0 var(--space-7);
  position: relative;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  top: -180px;
  right: -160px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(143, 208, 234, 0.45), rgba(143, 208, 234, 0) 70%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-7);
  align-items: center;
  position: relative;
}

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 320px; margin: 0 auto; }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.hero__trust {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.trust-pill svg { width: 18px; height: 18px; color: var(--color-primary-mid); flex-shrink: 0; }

.hero__art {
  position: relative;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero__art img { width: 100%; height: auto; display: block; }

/* ============================================================
   Cards
   ============================================================ */

.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform var(--duration-med) var(--ease-out), box-shadow var(--duration-med) var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.card__icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-pale);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-3);
}
.card__icon svg { width: 26px; height: 26px; }

.card--quiet {
  box-shadow: none;
  border-color: var(--color-border);
}

/* Values / approach list */
.value-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}
.value-item__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-primary-pale);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
}
.value-item__icon svg { width: 22px; height: 22px; }

/* ============================================================
   CTA band
   ============================================================ */

.cta-band {
  background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-primary-mid) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-6);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2, .cta-band p { color: #fff; }
.cta-band .lede { color: rgba(255,255,255,0.85); margin-left: auto; margin-right: auto; }
.cta-band__actions {
  display: flex; justify-content: center; gap: var(--space-3); flex-wrap: wrap;
  margin-top: var(--space-5);
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: #22324A;
  color: #D8E3ED;
  padding-top: var(--space-7);
}
.site-footer a { color: #D8E3ED; }
.site-footer a:hover { color: #fff; }
.site-footer h4 { color: #fff; font-size: 1rem; }

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
}

.footer__brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: var(--space-3); }
.footer__brand img { width: 34px; height: 34px; border-radius: 8px; }
.footer__brand span { font-family: var(--font-heading); font-size: 1.05rem; color: #fff; }

.footer__links li { margin-bottom: 0.6em; }
.footer__links a { font-size: 0.95rem; opacity: 0.9; }
.footer__links a:hover { opacity: 1; text-decoration: underline; }

.footer__social { display: flex; gap: 0.6rem; margin-top: var(--space-3); }
.footer__social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: #D8E3ED;
  transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}
.footer__social a:hover { background: rgba(255,255,255,0.18); color: #fff; }
.footer__social svg { width: 18px; height: 18px; }

.footer__meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
  font-size: 0.85rem;
  opacity: 0.75;
}

/* Crisis banner */
.crisis-banner {
  background: #16233A;
  color: #E9EEF3;
  padding: var(--space-5) 0;
}
.crisis-banner__inner {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}
.crisis-banner__icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: #9AD6EC;
}
.crisis-banner__icon svg { width: 22px; height: 22px; }
.crisis-banner h4 { margin-bottom: 0.35em; color: #fff; }
.crisis-banner p { margin: 0; font-size: 0.92rem; opacity: 0.9; }
.crisis-banner a { text-decoration: underline; font-weight: 600; }
.crisis-banner__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9em 2em;
  margin-top: 0.85em;
  padding: 0;
  list-style: none;
}
@media (max-width: 700px) {
  .crisis-banner__grid { grid-template-columns: 1fr; }
}
.crisis-banner__grid strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.15em;
}
.crisis-banner__grid a {
  font-size: 0.92rem;
  font-weight: 500;
}

/* ============================================================
   FAQ accordion
   ============================================================ */

.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  background: none;
  border: none;
  text-align: left;
  padding: var(--space-4) 0;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
}
.faq-item__q svg {
  width: 22px; height: 22px;
  flex-shrink: 0;
  color: var(--color-primary-mid);
  transition: transform var(--duration-med) var(--ease-out);
}
.faq-item__q[aria-expanded="true"] svg { transform: rotate(45deg); }

.faq-item__a {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--duration-med) var(--ease-out);
}
.faq-item__a-inner {
  padding-bottom: var(--space-4);
  color: var(--color-text-muted);
  max-width: 68ch;
}

/* ============================================================
   Page header (interior pages)
   ============================================================ */

.page-header {
  padding: var(--space-7) 0 var(--space-6);
  text-align: center;
}
.page-header .eyebrow { display: block; }

/* ============================================================
   Reveal animation hooks
   ============================================================ */

[data-reveal] { will-change: transform, opacity; }
.no-js [data-reveal] { opacity: 1 !important; transform: none !important; }

/* ============================================================
   Misc
   ============================================================ */

.divider {
  height: 1px;
  background: var(--color-border);
  border: none;
  margin: var(--space-6) 0;
}

.badge-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: var(--color-primary-pale);
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45em 0.9em;
  border-radius: var(--radius-pill);
}
.badge--soon {
  background: transparent;
  border: 1.5px solid var(--color-border-strong);
  color: var(--color-text-muted);
}

.hero__badges {
  margin-top: var(--space-5);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-4);
}
.hero__badges-label {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  flex-basis: 100%;
}
.hero__badges img {
  height: 42px;
  width: auto;
  display: block;
  opacity: 0.92;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: center;
}
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
}

.quote-block {
  border-left: 3px solid var(--color-primary-light);
  padding-left: var(--space-4);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--color-text);
}

.section--warm {
  position: relative;
  overflow: hidden;
}
.section--warm::before {
  content: '';
  position: absolute;
  top: -120px;
  left: -110px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(143, 208, 234, 0.32), rgba(143, 208, 234, 0) 70%);
  pointer-events: none;
  z-index: 0;
}
.section--warm::after {
  content: '';
  position: absolute;
  bottom: -150px;
  right: -130px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(44, 85, 120, 0.10), rgba(44, 85, 120, 0) 70%);
  pointer-events: none;
  z-index: 0;
}
.section--warm > .container { position: relative; z-index: 1; }

.photo-band {
  position: relative;
  height: 320px;
  overflow: hidden;
}
.photo-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-band__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,38,48,0.32), rgba(8,38,48,0.56));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-4);
  text-align: center;
}
.photo-band__quote-wrap {
  margin: 0;
  max-width: 38ch;
}
.photo-band__quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.2rem, 2.6vw, 1.8rem);
  line-height: 1.4;
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 16px rgba(0,0,0,0.35);
}
.photo-band__cite {
  display: block;
  margin-top: 0.6em;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
}
@media (max-width: 600px) {
  .photo-band { height: 240px; }
}

/* Approach cards: pin buttons to the bottom so they align across the row */
.approach-grid .card { display: flex; flex-direction: column; }
.approach-grid .card .btn { margin-top: auto; align-self: flex-start; }
.approach-grid .card p:last-of-type { margin-bottom: 1.25rem; }

/* Services */
.service-media__head { margin-bottom: var(--space-3); }
.service-media__head h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 0.25rem; }
.service-meta { margin: 0; font-weight: 600; color: var(--color-primary-mid); }
.service-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.rates-grid { max-width: 860px; margin: 0 auto; }
.insurer-logo { width: 180px; height: auto; margin-top: var(--space-2); }
