/* ==========================================================================
   East Bay Counseling Choices — calm, warm, trustworthy counseling identity
   Palette evolved from the original 2012 stylesheet (teal/green + terracotta).
   Framework: Bulma (CDN). This file only carries brand colors, type, and
   small tweaks — Bulma handles grid/components.
   ========================================================================== */

:root {
  /* Teal / green primary (evolved from #026966) */
  --teal-50:  #eef7f6;
  --teal-100: #d3eae8;
  --teal-200: #a7d4d0;
  --teal-300: #6fb6b1;
  --teal-400: #3d908b;
  --teal-500: #1f7a74;   /* main brand */
  --teal-600: #136a64;
  --teal-700: #0d5450;
  --teal-800: #0a403d;
  --teal-900: #062b29;   /* dark teal (≈ original #012b29) */

  /* Warm terracotta accent (evolved from #d17e2c) */
  --terra-300: #e7a866;
  --terra-400: #df9344;
  --terra-500: #cf7c2c;
  --terra-600: #b3641b;
  --terra-700: #8f4e13;

  /* Supporting professional blue (link blue #005289) */
  --blue-500: #1d6aa0;
  --blue-600: #155985;

  /* Warm neutrals */
  --sand-50:  #faf7f2;
  --sand-100: #f3ece1;
  --sand-200: #e7ddcc;

  --ink-900: #20302f;
  --ink-700: #38514f;
  --ink-500: #5d7370;
  --ink-300: #8a9c99;

  --white: #ffffff;

  --radius-sm: 8px;
  --radius:    16px;
  --radius-lg: 26px;
  --shadow-soft: 0 10px 30px -12px rgba(10, 64, 61, 0.22);
  --shadow-card: 0 14px 40px -18px rgba(10, 64, 61, 0.28);

  --maxw: 1180px;

  --font-head: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink-700);
  background: var(--sand-50);
  font-size: 1.06rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, .title, .subtitle {
  font-family: var(--font-head);
  color: var(--teal-900);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

a { color: var(--blue-600); transition: color .18s ease; }
a:hover { color: var(--terra-600); }

strong { color: var(--ink-900); }

.section { padding: 3.4rem 1.2rem; }
.wrap { max-width: var(--maxw); margin: 0 auto; }

/* ---------- Skip link / a11y ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--teal-700); color: #fff; padding: .6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Top contact strip ---------- */
.topbar {
  background: var(--teal-900);
  color: var(--teal-100);
  font-size: .86rem;
  letter-spacing: .02em;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: .5rem 1.2rem; gap: 1rem; flex-wrap: wrap;
}
.topbar a { color: var(--terra-300); font-weight: 700; }
.topbar a:hover { color: #fff; }
.topbar .topbar-tag { display: inline-flex; align-items: center; gap: .5rem; }

/* ---------- Navbar (Bulma override) ---------- */
.navbar.ebcc-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--sand-200);
  box-shadow: 0 4px 18px -16px rgba(10,64,61,.5);
}
.ebcc-nav .navbar-brand .brand-link {
  display: flex; align-items: center; gap: .7rem;
  font-family: var(--font-head); font-weight: 600;
  color: var(--teal-700); font-size: 1.18rem; padding: .4rem .75rem;
}
.ebcc-nav .brand-mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(140deg, var(--teal-500), var(--teal-700));
  color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 1.15rem; box-shadow: var(--shadow-soft);
}
.ebcc-nav .brand-sub { color: var(--ink-500); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-family: var(--font-body); font-weight: 700; line-height: 1; }
.ebcc-nav .navbar-item, .ebcc-nav .navbar-link {
  color: var(--ink-700); font-weight: 600; font-size: .96rem;
}
.ebcc-nav .navbar-item:hover, .ebcc-nav .navbar-link:hover,
.ebcc-nav .navbar-item.is-active {
  background: var(--teal-50) !important; color: var(--teal-700) !important;
}
.ebcc-nav .navbar-dropdown {
  border-top: 3px solid var(--terra-500);
  box-shadow: var(--shadow-card); border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.ebcc-nav .navbar-dropdown .navbar-item { font-weight: 500; font-size: .92rem; }
.nav-cta {
  background: var(--terra-500) !important; color: #fff !important;
  border-radius: 999px; font-weight: 700 !important; padding: .5rem 1.3rem !important;
  box-shadow: var(--shadow-soft);
}
.nav-cta:hover { background: var(--terra-600) !important; color: #fff !important; transform: translateY(-1px); }

.navbar-burger { color: var(--teal-700); }

/* ---------- Hero ---------- */
.hero-band {
  position: relative;
  background: linear-gradient(160deg, var(--teal-800) 0%, var(--teal-600) 55%, var(--teal-500) 100%);
  color: #fff;
  overflow: hidden;
}
.hero-band::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 82% 18%, rgba(207,124,44,.32), transparent 42%);
  pointer-events: none;
}
.hero-band .wrap { position: relative; z-index: 2; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.6rem; align-items: center;
  padding: 3.2rem 1.2rem;
}
.hero-eyebrow {
  display: inline-block; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff; padding: .35rem .95rem; border-radius: 999px;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
  margin-bottom: 1.1rem;
}
.hero-band h1 {
  color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.3rem); margin-bottom: 1rem; font-weight: 600;
}
.hero-band p.lead {
  color: rgba(255,255,255,.92); font-size: 1.16rem; max-width: 38rem; margin-bottom: 1.6rem;
}
.hero-figure img {
  border-radius: var(--radius-lg); box-shadow: 0 26px 60px -24px rgba(0,0,0,.55);
  border: 6px solid rgba(255,255,255,.10);
  width: 100%; object-fit: cover; aspect-ratio: 4 / 3;
}
.hero-pills { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.5rem; }
.hero-pills span {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px; padding: .3rem .85rem; font-size: .82rem; color: #fff; font-weight: 600;
}

/* Inner/topic page hero (compact) */
.page-hero {
  background: linear-gradient(150deg, var(--teal-700), var(--teal-600));
  color: #fff; padding: 2.6rem 1.2rem 2.4rem;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content:""; position:absolute; inset:0;
  background-image: radial-gradient(circle at 90% 0%, rgba(207,124,44,.28), transparent 45%);
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.page-hero .crumb { font-size: .82rem; color: rgba(255,255,255,.8); margin-bottom: .7rem; letter-spacing: .03em; }
.page-hero .crumb a { color: var(--terra-300); }
.page-hero .crumb a:hover { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; border-radius: 999px; padding: .8rem 1.7rem;
  font-weight: 700; font-family: var(--font-body); text-align: center;
  border: 2px solid transparent; cursor: pointer; transition: all .2s ease;
  font-size: 1rem; line-height: 1.1;
}
.btn-primary { background: var(--terra-500); color: #fff; box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--terra-600); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-teal { background: var(--teal-600); color: #fff; box-shadow: var(--shadow-soft); }
.btn-teal:hover { background: var(--teal-700); color: #fff; transform: translateY(-2px); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Cards / content ---------- */
.surface {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-card);
  padding: 2.2rem; border: 1px solid var(--sand-200);
}

/* Article (rendered page content) */
.article { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-card);
  border: 1px solid var(--sand-200); padding: 2.6rem clamp(1.3rem, 4vw, 3rem); }
.article h1 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin-bottom: 1.1rem; }
.article h2 {
  font-size: 1.5rem; margin: 2.1rem 0 .8rem; color: var(--teal-700);
  padding-left: .9rem; border-left: 4px solid var(--terra-500);
}
.article h3 { font-size: 1.2rem; margin: 1.5rem 0 .5rem; color: var(--teal-800); }
.article p { margin-bottom: 1.1rem; }
.article ul { margin: 0 0 1.2rem 0; padding: 0; list-style: none; }
.article ul li {
  position: relative; padding-left: 1.7rem; margin-bottom: .6rem;
}
.article ul li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: .6rem; height: .6rem; border-radius: 50%;
  background: var(--teal-400); box-shadow: 0 0 0 4px var(--teal-50);
}
.article a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--terra-300); }
.article a:hover { text-decoration-color: var(--terra-600); }
.article-figure { margin: 0 0 2rem; }
.article-figure img {
  border-radius: var(--radius); box-shadow: var(--shadow-soft); width: 100%;
  aspect-ratio: 16 / 9; object-fit: cover;
}
.article-figure figcaption { font-size: .85rem; color: var(--ink-500); margin-top: .55rem; font-style: italic; }

/* Crisis callout */
.crisis-note {
  background: var(--sand-100); border: 1px solid var(--terra-300);
  border-left: 5px solid var(--terra-500);
  border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin: 1.6rem 0;
  font-size: .98rem; color: var(--ink-900);
}
.crisis-note a { color: var(--blue-600); }

/* ---------- Layout helpers ---------- */
.content-shell { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 2.2rem; align-items: start; }
.aside-card {
  background: linear-gradient(160deg, var(--teal-600), var(--teal-800));
  color: #fff; border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-card);
  position: sticky; top: 90px;
}
.aside-card h3 { color: #fff; font-size: 1.25rem; margin-bottom: .6rem; }
.aside-card p { color: rgba(255,255,255,.9); font-size: .95rem; margin-bottom: 1.1rem; }
.aside-card .btn { width: 100%; }
.aside-list { list-style: none; margin: 1.3rem 0 0; padding: 0; }
.aside-list li { margin-bottom: .35rem; }
.aside-list a { color: var(--teal-100); font-size: .92rem; font-weight: 600; }
.aside-list a:hover { color: #fff; }
.aside-divider { border: none; border-top: 1px solid rgba(255,255,255,.2); margin: 1.2rem 0; }

/* ---------- Feature / specialty grid (home & hub) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1.4rem; }
.feature-card {
  background: #fff; border-radius: var(--radius); padding: 1.6rem 1.5rem;
  border: 1px solid var(--sand-200); box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease; display: block; height: 100%;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.feature-card .fc-ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--teal-50); color: var(--teal-600); margin-bottom: .9rem; font-size: 1.3rem;
}
.feature-card h3 { font-size: 1.16rem; margin-bottom: .4rem; color: var(--teal-800); }
.feature-card p { font-size: .95rem; color: var(--ink-700); margin: 0; }
.feature-card .fc-more { display: inline-block; margin-top: .7rem; color: var(--terra-600); font-weight: 700; font-size: .9rem; }

/* ---------- Steps (how it works) ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; counter-reset: step; }
.step {
  background: var(--white); border-radius: var(--radius); padding: 1.6rem;
  border: 1px solid var(--sand-200); box-shadow: var(--shadow-soft); position: relative;
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -16px; left: 1.4rem;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--terra-500); color: #fff; font-family: var(--font-head); font-weight: 700;
  display: grid; place-items: center; box-shadow: var(--shadow-soft);
}
.step h3 { margin: .6rem 0 .4rem; font-size: 1.12rem; }
.step p { font-size: .94rem; margin: 0; }

/* ---------- Section headings ---------- */
.sec-head { text-align: center; max-width: 44rem; margin: 0 auto 2.2rem; }
.sec-head .eyebrow {
  color: var(--terra-600); font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; font-size: .8rem; font-family: var(--font-body);
}
.sec-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin: .4rem 0 .6rem; }
.sec-head p { color: var(--ink-500); font-size: 1.05rem; }

.tint { background: var(--teal-50); }
.tint-sand { background: var(--sand-100); }

/* ---------- Utility helpers (replace inline styles) ---------- */
.nav-inner { width: 100%; display: flex; align-items: center; }
.mt0 { margin-top: 0; }
.m0 { margin: 0; }
.mb1 { margin-bottom: 1rem; }
.center { text-align: center; }
.center-row { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.fullw { width: 100%; }
.hero-pad { padding-top: 5rem; }
.page-hero-pad { padding-top: 64px; }
.mt2 { margin-top: 2rem; }
.intro-h2 { font-size: 2.1rem; margin: .4rem 0 1rem; }
.eyebrow-inline { color: var(--terra-600); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; font-family: var(--font-body); }
.hub-figure { max-width: 900px; margin: 0 auto 2.4rem; }
.hub-intro { max-width: 860px; margin: 0 auto 2.6rem; }
.cta-inline { border-radius: var(--radius); margin-top: 3rem; }
.form-card-title { font-size: 1.4rem; }
.form-card-note { font-size: .95rem; color: var(--ink-500); }
.form-fine { font-size: .8rem; color: var(--ink-300); margin-top: .8rem; text-align: center; }
.support-fig { margin: 0; }

/* ---------- Reassurance band ---------- */
.assure {
  background: linear-gradient(150deg, var(--teal-900), var(--teal-700));
  color: #fff;
}
.assure .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 2rem; padding: 3rem 1.2rem; text-align: center; }
.assure .stat .n { font-family: var(--font-head); font-size: 2.4rem; color: var(--terra-300); font-weight: 600; }
.assure .stat p { color: rgba(255,255,255,.85); margin: .2rem 0 0; font-size: .98rem; }

/* CTA strip */
.cta-strip { background: var(--terra-500); color: #fff; text-align: center; }
.cta-strip .wrap { padding: 3rem 1.2rem; }
.cta-strip h2 { color: #fff; font-size: clamp(1.6rem,3vw,2.2rem); margin-bottom: .6rem; }
.cta-strip p { color: rgba(255,255,255,.92); max-width: 40rem; margin: 0 auto 1.5rem; font-size: 1.08rem; }
.cta-strip .btn-white { background: #fff; color: var(--terra-700); }
.cta-strip .btn-white:hover { background: var(--sand-100); color: var(--terra-700); transform: translateY(-2px); }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-900); color: var(--teal-100); padding: 3.2rem 1.2rem 1.6rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h4 {
  color: #fff; font-family: var(--font-body); font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; font-size: .82rem; margin-bottom: 1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: .5rem; }
.site-footer a { color: var(--teal-100); font-size: .92rem; }
.site-footer a:hover { color: var(--terra-300); }
.footer-brand .fb-mark {
  display: inline-flex; align-items: center; gap: .6rem; color: #fff;
  font-family: var(--font-head); font-size: 1.25rem; margin-bottom: .7rem;
}
.footer-brand .fb-mark span {
  width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(140deg,var(--teal-500),var(--teal-700));
  display: grid; place-items: center; font-weight: 700;
}
.footer-brand p { font-size: .92rem; color: rgba(255,255,255,.78); max-width: 22rem; }
.footer-tag { color: var(--terra-300); font-style: italic; font-family: var(--font-head); margin-top: .8rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14); margin-top: 2.4rem; padding-top: 1.3rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .82rem; color: rgba(255,255,255,.7);
}
.footer-bottom a { color: rgba(255,255,255,.7); }
.footer-bottom a:hover { color: var(--terra-300); }
.serving-line { font-size: .82rem; color: rgba(255,255,255,.6); margin-top: .8rem; }

/* ---------- 404 ---------- */
.err-wrap { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 3rem 1.2rem; }
.err-wrap .code { font-family: var(--font-head); font-size: clamp(4rem, 12vw, 8rem); color: var(--teal-200); line-height: 1; }
.err-wrap h1 { font-size: 1.9rem; margin: .5rem 0 1rem; }
.err-wrap p { max-width: 32rem; margin: 0 auto 1.6rem; color: var(--ink-500); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero-figure { order: -1; }
  .content-shell { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .topbar .wrap { justify-content: center; text-align: center; }
  .section { padding: 2.4rem 1rem; }
  .article { padding: 1.6rem 1.2rem; }
}
