/* Ebb & Flow theme styles. Colours are CSS variables below; the swoop colour comes from Site Settings (--sun). */

:root {
  --blue-900: #0f2a44;
  --blue-800: #173d5f;
  --blue-700: #1f5180;
  --blue-600: #2b679e;
  --blue-500: #4a86bd;
  --blue-300: #9cc0df;
  --blue-200: #c7dcee;
  --blue-100: #e3eef7;
  --blue-50:  #f2f7fb;
  --sand:     #f8f5f0;
  --white:    #ffffff;
  --ink:      #1d2b38;
  --muted:    #5a6b7b;
  --line:     #dbe5ee;

  --font-head: "Libre Baskerville", Baskerville, Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(15, 42, 68, 0.25);
  --shadow-lg: 0 24px 50px -20px rgba(15, 42, 68, 0.35);
  --header-h: 76px;
  --sun: #F2B544; /* overridden by Site Settings */
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

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

img { max-width: 100%; display: block; }
a { color: var(--blue-700); }
a:hover { color: var(--blue-900); }

h1, h2, h3 { font-family: var(--font-head); font-weight: 500; color: var(--blue-900); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--blue-900); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 12px; top: 12px; }

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

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 22px; border-radius: 999px;
  font: 600 0.95rem/1 var(--font-body); text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn-lg { padding: 16px 28px; font-size: 1rem; }
.btn-primary { background: var(--blue-700); color: #fff; box-shadow: 0 6px 16px -6px rgba(31, 81, 128, .6); }
.btn-primary:hover { background: var(--blue-800); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--blue-800); border-color: var(--blue-300); }
.btn-ghost:hover { background: var(--blue-50); border-color: var(--blue-500); color: var(--blue-900); }
.btn-light { background: #fff; color: var(--blue-800); }
.btn-light:hover { background: var(--blue-50); color: var(--blue-900); transform: translateY(-1px); }

.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: 14px;
}
.eyebrow--light { color: var(--blue-200); }

/* Utility bar */
.utility-bar { background: var(--blue-900); color: var(--blue-100); font-size: .85rem; }
.utility-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; flex-wrap: wrap; }
.utility-note { margin: 0; display: flex; align-items: center; gap: 8px; }
.utility-note .dot { width: 8px; height: 8px; border-radius: 50%; background: #7fd1b9; box-shadow: 0 0 0 3px rgba(127, 209, 185, .25); }
.utility-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.utility-links a { color: var(--blue-100); text-decoration: none; }
.utility-links a:hover { color: #fff; text-decoration: underline; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px -12px rgba(15, 42, 68, .3); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.logo img { height: 56px; width: auto; }
.site-header .container { max-width: 1400px; }
.main-nav a, .nav-trigger { white-space: nowrap; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-family: var(--font-head); font-size: 1.45rem; color: var(--blue-900); font-weight: 500; }
.logo-sub { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; align-items: center; }
.main-nav a, .nav-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 9px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font: 500 .92rem var(--font-body);
  background: none; border: 0; cursor: pointer;
}
.main-nav a:hover, .nav-trigger:hover { color: var(--blue-700); background: var(--blue-50); }
.nav-trigger svg { width: 12px; height: 12px; transition: transform .2s; }
.has-dropdown { position: relative; }
.dropdown {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.dropdown a { display: block; padding: 10px 12px; white-space: normal; }
.dropdown-label { padding: 8px 12px 4px; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.dropdown { min-width: 280px; }
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.is-open .dropdown { opacity: 1; visibility: visible; transform: none; }
.has-dropdown.is-open .nav-trigger svg { transform: rotate(180deg); }
.main-nav .nav-mobile-cta { display: none; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-request { padding: 13px 24px; }

.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-toggle span { width: 20px; height: 2px; background: var(--blue-900); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; padding: 72px 0 160px; background: linear-gradient(180deg, var(--blue-50) 0%, #fff 100%); overflow: hidden; }
.hero-wave {
  position: absolute; inset: auto 0 0 0; height: 120px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 60c240-50 480-50 720 0s480 50 720 0v60H0z' fill='%23e3eef7' opacity='.6'/%3E%3Cpath d='M0 80c240-40 480-40 720 0s480 40 720 0v40H0z' fill='%23ffffff'/%3E%3C/svg%3E") bottom/100% 100% no-repeat;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.2vw, 3.5rem); }
.h1-lead { display: block; font-family: var(--font-body); font-size: .3em; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 18px; line-height: 1.3; }
.hero h1 em { color: var(--blue-600); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 32px; }
.specialty-pill { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--blue-200); color: var(--blue-800); font-size: .88rem; font-weight: 600; padding: 8px 16px; border-radius: 999px; margin-bottom: 28px; box-shadow: 0 4px 14px -8px rgba(15,42,68,.25); }
.specialty-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-500); box-shadow: 0 0 0 4px var(--blue-100); }
.hero-ctas { margin: 32px 0 28px; }
.hero-note { font-size: .92rem; color: var(--muted); margin: 0; }
.hero-badge-photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.trust-row { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: .9rem; color: var(--muted); }
.trust-row li { display: flex; align-items: center; gap: 8px; }
.trust-row li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--blue-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231f5180' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; flex-shrink: 0; }
.trust-row strong { color: var(--blue-900); font-weight: 600; }

.hero-media { position: relative; }
.hero-photo { border-radius: 200px 200px var(--radius) var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 9 / 10.4; background: var(--blue-100); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: -32px; bottom: 36px; max-width: 290px;
  display: flex; gap: 12px; align-items: center;
  background: #fff; padding: 14px 18px; border-radius: 14px; box-shadow: var(--shadow);
  font-size: .82rem; color: var(--muted); line-height: 1.35;
}
.hero-badge strong { display: block; color: var(--blue-900); font-size: .92rem; margin-bottom: 2px; }
.hero-badge-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--blue-100); color: var(--blue-600); display: grid; place-items: center; flex-shrink: 0; }
.hero-badge-icon svg { width: 20px; height: 20px; }

/* Sections */
.section { padding: 104px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p:last-child { color: var(--muted); }
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head--split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-head--split h2 { margin-bottom: 0; }

/* Service cards (image + colored name panel) */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: #fff; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: #fff; }
.service-card-media { aspect-ratio: 19 / 14; overflow: hidden; background: var(--blue-100); }
.service-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.service-card:hover .service-card-media img { transform: scale(1.05); }
.service-card-body { padding: 24px 26px 26px; flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.service-card-body .card-link { margin-top: auto; }
.service-card-body.tone-1 { background: var(--blue-700); }
.service-card-body.tone-2 { background: var(--blue-800); }
.service-card-body.tone-3 { background: var(--blue-600); }
.service-card h3 { color: #fff; font-size: 1.35rem; margin-bottom: 6px; }
.service-card p { color: rgba(255, 255, 255, .85); font-size: .95rem; margin-bottom: 14px; }
.tag { display: inline-block; font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); margin-bottom: 12px; }
.card-link { font-weight: 600; font-size: .95rem; display: inline-flex; gap: 6px; }
.card-link span { transition: transform .2s; }
.service-card:hover .card-link span, .group-card:hover .card-link span { transform: translateX(4px); }
.services-foot { margin: 32px 0 0; text-align: center; color: var(--muted); }
.services-foot a { font-weight: 600; }

/* Paths */
.paths { background: var(--sand); }
.path-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.path {
  display: block; padding: 28px; background: #fff; border-radius: var(--radius);
  border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.path:hover { border-color: var(--blue-300); transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.path-num { font-family: var(--font-head); font-size: 1rem; color: var(--blue-500); display: block; margin-bottom: 18px; }
.path h3 { font-size: 1.2rem; }
.path p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Why */
.why { background: var(--sand); }
.why-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-cards li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; }
.why-cards img { width: 52px; height: 52px; margin-bottom: 18px; }
.why-cards h3 { font-size: 1.2rem; }
.why-cards p { color: var(--muted); margin: 0; font-size: .97rem; }
.reduced { padding: 104px 0 0; background: #fff; }
.reduced-card { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--radius); padding: 48px 56px; }
.reduced-card h2 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); max-width: 720px; }
.reduced-card p:last-child { color: var(--muted); margin: 0; max-width: 760px; font-size: .97rem; }
.owner { background: var(--blue-50); }
.owner .why-copy p { color: var(--muted); }
.owner .btn { margin-top: 8px; }
.why-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.why-photo { border-radius: var(--radius) 200px var(--radius) var(--radius); overflow: hidden; aspect-ratio: 72 / 82; background: var(--blue-100); box-shadow: var(--shadow-lg); }
.why-photo img { width: 100%; height: 100%; object-fit: cover; }
.why-list { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 22px; }
.why-list li { padding-left: 22px; border-left: 3px solid var(--blue-200); }
.why-list h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; margin-bottom: 4px; }
.why-list p { color: var(--muted); margin: 0; }
.quote { margin: 0; padding: 26px 28px; background: var(--blue-50); border-radius: var(--radius); }
.quote blockquote { margin: 0 0 10px; font-family: var(--font-head); font-size: 1.2rem; color: var(--blue-900); line-height: 1.45; }
.quote figcaption { font-size: .88rem; color: var(--muted); font-weight: 600; }

/* Testimonial band */
.testimonial-band { background: var(--blue-800); padding: 88px 0; text-align: center; }
.testimonial-band .eyebrow { margin-bottom: 24px; }
.testimonial-band .quote { max-width: 860px; margin: 0 auto; padding: 0; background: none; }
.testimonial-band blockquote { color: #fff; font-size: clamp(1.2rem, 2.1vw, 1.65rem); line-height: 1.45; }
.testimonial-band figcaption { color: var(--blue-200); }

/* Steps */
.steps-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.muted { color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li { display: flex; gap: 20px; padding-bottom: 28px; position: relative; }
.steps li:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 46px; bottom: 4px; width: 2px; background: var(--blue-200); }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--blue-100); color: var(--blue-800); font-family: var(--font-head); font-size: 1.15rem; display: grid; place-items: center; flex-shrink: 0; }
.steps h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; margin: 10px 0 4px; }
.steps p { color: var(--muted); margin: 0; }

/* Team */
.team { background: linear-gradient(180deg, #fff, var(--blue-50)); }
.team-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 24px; }
.member a { display: block; text-decoration: none; color: var(--ink); }
.member-photo { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--blue-100); margin-bottom: 14px; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.member a:hover img { transform: scale(1.04); }
.member h3 { font-size: 1.12rem; margin-bottom: 2px; }
.member a:hover h3 { color: var(--blue-600); }
.member-cred { font-size: .85rem; color: var(--blue-600); font-weight: 600; margin: 0; }
.member-role { font-size: .88rem; color: var(--muted); margin: 0; }

/* Support + resources */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
.support-feature { background: var(--blue-800); color: var(--blue-100); border-radius: var(--radius); padding: 48px; position: relative; overflow: hidden; }
.support-feature::before { content: ""; position: absolute; width: 360px; height: 360px; right: -140px; top: -140px; border-radius: 50%; border: 50px solid rgba(255, 255, 255, .05); }
.support-feature h2 { color: #fff; font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.support-feature { display: flex; flex-direction: column; align-items: flex-start; }
.support-feature .btn { margin-top: 8px; }
.support-photo { margin-top: 36px; border-radius: 14px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: rgba(255,255,255,.08); }
.group-card { position: relative; display: block; margin-top: 28px; padding: 26px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; color: #fff; text-decoration: none; transition: background .2s; }
.group-card:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.group-card h3 { color: #fff; }
.group-card p { color: var(--blue-100); font-size: .95rem; }
.group-label { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-900); background: #bfe6d8; padding: 5px 10px; border-radius: 999px; margin-bottom: 12px; }

.resources { background: var(--sand); border-radius: var(--radius); padding: 48px; }
.resources > p { color: var(--muted); }
.resource-list { list-style: none; padding: 0; margin: 24px 0 0; }
.resource-list a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 4px; border-bottom: 1px solid #e6dfd3; text-decoration: none; color: var(--blue-900); font-weight: 500; transition: padding .2s, color .2s; }
.resource-list li:first-child a { border-top: 1px solid #e6dfd3; }
.resource-list a:hover { color: var(--blue-600); padding-left: 10px; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.post { text-decoration: none; color: var(--ink); }
.post img { aspect-ratio: 64 / 42; width: 100%; height: auto; object-fit: cover; border-radius: var(--radius); margin-bottom: 16px; background: var(--blue-100); transition: opacity .2s; }
.post:hover img { opacity: .88; }
.post-tag { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-600); }
.post h3 { font-size: 1.12rem; margin-bottom: 8px; }
.post p { font-size: .92rem; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post:hover h3 { color: var(--blue-600); }

/* Telehealth */
.telehealth { background: var(--blue-50); }
.telehealth-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.telehealth-copy > p { color: var(--muted); }
.telehealth-copy strong { color: var(--blue-900); }
.legend { list-style: none; padding: 0; margin: 20px 0; display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: .9rem; }
.legend li { display: flex; align-items: center; gap: 8px; }
.swatch { width: 16px; height: 16px; border-radius: 4px; display: inline-block; }
.swatch--on { background: var(--blue-500); }
.swatch--home { background: var(--blue-900); }
.swatch--off { background: #fff; border: 1px solid var(--blue-200); }
.small { font-size: .88rem; }

.telehealth-map { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.state-map { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }
.map-hint { margin: 0 0 14px; font-size: .85rem; color: var(--muted); }
.state {
  aspect-ratio: 1; border-radius: 6px; display: grid; place-items: center; padding: 0; position: relative;
  font: 600 clamp(.5rem, 1.3vw, .78rem) var(--font-body); letter-spacing: .02em; cursor: pointer;
  background: #fff; color: var(--blue-300); border: 1px solid var(--blue-200);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.state.is-on { background: var(--blue-500); color: #fff; border-color: var(--blue-500); }
.state.is-home { background: var(--blue-900); color: #fff; border-color: var(--blue-900); }
.state:hover, .state:focus-visible { transform: translateY(-2px) scale(1.08); box-shadow: 0 6px 14px -6px rgba(15,42,68,.5); z-index: 2; }
.state.is-on:hover { background: var(--blue-600); }
.state.is-selected { outline: 3px solid var(--blue-900); outline-offset: 2px; z-index: 3; }
.state.is-selected:not(.is-on):not(.is-home) { background: var(--blue-50); color: var(--blue-700); }
.state::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--blue-900); color: #fff; font-size: .75rem; font-weight: 500; white-space: nowrap;
  padding: 6px 10px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .15s;
}
.state:hover::after, .state:focus-visible::after { opacity: 1; }
.state-check { margin: 28px 0 0; }
.state-check label { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-700); margin-bottom: 8px; }
.state-check select {
  width: 100%; max-width: 380px; font: 500 1rem var(--font-body); color: var(--ink);
  padding: 13px 44px 13px 16px; border: 1.5px solid var(--blue-200); border-radius: 12px; background: #fff;
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%231f5180' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px;
}
.state-check select:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px var(--blue-100); }
.state-result { margin-top: 16px; max-width: 460px; padding: 20px 22px; border-radius: 14px; border: 1px solid; }
.state-result.is-yes { background: #eef8f3; border-color: #bfe6d8; }
.state-result.is-no { background: #fff; border-color: var(--blue-200); }
.state-result p { margin: 0 0 12px; color: var(--muted); font-size: .95rem; }
.state-result .state-result-title { color: var(--blue-900); font-weight: 600; font-size: 1.02rem; margin-bottom: 6px; }
.state-result.is-yes .state-result-title span { color: #2f8f6b; margin-right: 4px; }
.state-result .btn { padding: 10px 20px; font-size: .9rem; }
.state-list-title { font-family: var(--font-body); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 24px 0 12px; }
.state-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.state-chips button { font: 600 .82rem var(--font-body); color: var(--blue-800); background: var(--blue-50); border: 1px solid var(--blue-200); border-radius: 6px; padding: 4px 8px; cursor: pointer; transition: background .15s, color .15s; }
.state-chips button:hover, .state-chips button.is-selected { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }

/* CTA */
.cta { background: var(--blue-700); color: var(--blue-100); padding: 72px 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .12), transparent 45%), radial-gradient(circle at 10% 100%, rgba(15, 42, 68, .4), transparent 50%); }
.cta-inner { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { margin: 0; max-width: 560px; }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cta-phone { color: var(--blue-100); font-size: .92rem; }
.cta-phone:hover { color: #fff; }

/* Footer */
.site-footer { background: var(--blue-900); color: var(--blue-200); padding: 72px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo { width: 180px; height: auto; margin-bottom: 18px; }
.footer-brand .logo-img { height: 64px; width: auto; margin-bottom: 18px; }
.footer-badges { display: flex; gap: 12px; align-items: center; margin-top: 24px; flex-wrap: wrap; }
.footer-badges .badge { display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 6px 10px; background: #fff; border-radius: 10px; }
.footer-badges .badge img { height: 44px !important; width: auto !important; max-width: 150px; object-fit: contain; display: block; }
.site-footer .footer-sub { margin-top: 28px; }
.footer-brand .logo-name { color: #fff; margin: 0; }
.footer-brand .logo-sub { color: var(--blue-300); margin-bottom: 16px; }
.site-footer h3 { font-family: var(--font-body); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--blue-200); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 56px; padding-top: 24px; padding-bottom: 28px; position: relative; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
.footer-bottom p { margin: 0; }
.footer-bottom::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; border-top: 1px solid rgba(255, 255, 255, .12); }
@media (max-width: 640px) { .footer-bottom::before { left: 16px; right: 16px; } }
.crisis a { color: #fff; font-weight: 600; }

.mobile-cta { display: none; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}

/* Responsive */
@media (max-width: 1320px) {
  .menu-toggle { display: flex; }
  .main-nav {
    position: fixed; top: var(--nav-top, var(--header-h)); left: 0; right: 0; bottom: 0;
    background: #fff; padding: 16px 24px 32px; overflow-y: auto;
    opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .main-nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid var(--line); }
  .main-nav a, .nav-trigger { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 1.05rem; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 12px; display: none; min-width: 0; }
  .has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { display: none; }
  .has-dropdown.is-open .dropdown { display: block; }
  .dropdown a { padding: 12px 4px; color: var(--muted); }
  .main-nav .nav-mobile-cta { display: flex; width: 100%; margin-top: 24px; }
  .main-nav .nav-mobile-cta { color: #fff; justify-content: center; padding: 16px; }
}

@media (max-width: 1080px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .path-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .utility-links li:nth-child(2) { display: none; }


  .hero { padding: 40px 0 120px; }
  .hero-grid, .why-grid, .telehealth-grid, .support-grid, .reduced-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-cards { grid-template-columns: 1fr; }
  .reduced-card { grid-template-columns: 1fr; gap: 24px; padding: 32px 24px; }
  .hero-media { max-width: 520px; margin: 0 auto; width: 100%; }
  .hero-badge { left: 16px; }
  .why-photo { max-width: 460px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .btn-request { display: none; }
  body { font-size: 16px; padding-bottom: 76px; }
  .container { padding: 0 16px; }
  .utility-inner { justify-content: center; text-align: center; padding: 8px 0; }
  .utility-links { display: none; }
  .logo img { height: 46px; }
  .logo-name { font-size: 1.25rem; }
  .logo-sub { font-size: .6rem; }

  .section { padding: 64px 0; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-badge { position: relative; left: auto; bottom: auto; margin: -36px 16px 0; max-width: none; }
  .service-grid, .path-grid, .blog-grid, .team-grid { grid-template-columns: 1fr; }
  .testimonial-band { padding: 64px 0; }
  .reduced { padding-top: 64px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .member h3 { font-size: 1rem; }
  .support-feature, .resources { padding: 32px 22px; }
  .telehealth-map { padding: 14px; }
  .state-map { gap: 2px; }
  .state { border-radius: 4px; }
  .state::after { display: none; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .mobile-cta {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px -12px rgba(15, 42, 68, .3);
  }
  .mobile-cta .btn-ghost { flex: 0 0 auto; }
  .mobile-cta .btn-primary { flex: 1; }
}


/* ==========================================================================
   WordPress theme additions
   ========================================================================== */

/* Yellow swoop under *highlighted* words (colour from Site Settings). */
.ef-accent { font-style: italic; color: var(--blue-600); }
.ef-swoop { position: relative; display: inline-block; }
.ef-swoop::after {
  /* Thin sun arc, as on Agenda USA: a 2px curve under the word. */
  content: ""; position: absolute; left: 6%; right: 10%; bottom: -.06em; height: .14em; pointer-events: none;
  border-top: 2px solid var(--sun); border-radius: 50% 50% 0 0 / 100% 100% 0 0; opacity: .9;
  transform-origin: left center; transform: scaleY(-1) scaleX(0); transition: transform .9s cubic-bezier(.22,.8,.3,1) .25s;
}
.ef-swoop.is-drawn::after, .no-js .ef-swoop::after { transform: scaleY(-1) scaleX(1); }
.testimonial-band .ef-accent, .cta .ef-accent, .support-feature .ef-accent, .ef-bg--navy .ef-accent { color: #fff; }
@media (prefers-reduced-motion: reduce) { .ef-swoop::after { transform: scaleY(-1); transition: none; } }

/* Section backgrounds chosen in the editor */
.ef-bg--white { background: #fff; }
.ef-bg--mist { background: var(--blue-50); }
.ef-bg--sand { background: var(--sand); }
.ef-bg--navy { background: var(--blue-800); color: var(--blue-100); }
.ef-bg--navy h2, .ef-bg--navy h3, .ef-bg--navy .ef-prose h2, .ef-bg--navy .ef-prose h3 { color: #fff; }
.ef-bg--navy .eyebrow { color: var(--blue-200); }
.ef-bg--navy .ef-prose, .ef-bg--navy .section-head p, .ef-bg--navy .muted { color: var(--blue-100); }
.ef-bg--navy a:not(.btn) { color: #fff; }

.container--narrow { max-width: 860px; }
.section-intro { color: var(--muted); }
.section-intro p:last-child { margin-bottom: 0; }

/* Header menu (WordPress): parents can be a link plus a chevron button */
.main-nav > ul > li { position: relative; }
.main-nav .sub-toggle { background: none; border: 0; padding: 6px 4px; margin-left: -6px; cursor: pointer; color: var(--ink); display: inline-flex; align-items: center; }
.main-nav .sub-toggle svg, .main-nav .nav-trigger svg { width: 12px; height: 12px; transition: transform .2s; }
.has-dropdown.is-open .sub-toggle svg { transform: rotate(180deg); }
.main-nav > ul > li.is-current > a, .main-nav > ul > li.is-current > .nav-trigger { color: var(--blue-700); }
.main-nav > ul > li.is-current > a { box-shadow: inset 0 -2px 0 var(--sun); border-radius: 0; }
.main-nav .dropdown li.is-current > a { color: var(--blue-700); background: var(--blue-50); }
.logo-img { height: 56px; width: auto; }

/* Interior page header */
.pagehead { position: relative; padding: 56px 0 120px; background: linear-gradient(180deg, var(--blue-50) 0%, #fff 100%); overflow: hidden; }
.pagehead-grid { position: relative; display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
.pagehead--image .pagehead-grid { grid-template-columns: 1.1fr .9fr; }
.pagehead-copy { max-width: 820px; }
.pagehead h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); margin-bottom: .4em; }
.pagehead .lede { font-size: 1.12rem; color: var(--muted); }
.pagehead .lede p:last-child { margin-bottom: 0; }
.pagehead .hero-ctas { margin: 28px 0 0; }
.pagehead-photo { border-radius: var(--radius) 160px var(--radius) var(--radius); overflow: hidden; aspect-ratio: 5 / 4; background: var(--blue-100); box-shadow: var(--shadow-lg); }
.pagehead-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.pagehead--portrait .pagehead-grid { grid-template-columns: 1.4fr .6fr; }
.pagehead--portrait .pagehead-photo { aspect-ratio: 4 / 5; max-width: 380px; justify-self: end; width: 100%; }
.pagehead .lede h2, .pagehead .lede h3 { font: 600 1rem/1.55 var(--font-body); color: var(--blue-900); margin: 1em 0 0; }
.pagehead .lede .ef-icons { display: flex; gap: 12px; align-items: center; margin-top: 20px; }
.pagehead .lede .ef-icons img { width: 28px; height: 28px; object-fit: contain; }
.pagehead .lede .ef-buttons { margin: 16px 0 0; }
.ef-breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 22px; }
.ef-breadcrumbs a { color: var(--blue-700); text-decoration: none; }
.ef-breadcrumbs a:hover { text-decoration: underline; }
.ef-breadcrumbs .sep, .ef-breadcrumbs .breadcrumb_last { color: var(--muted); }
.ef-breadcrumbs .sep { margin: 0 6px; }

/* Rich text (imported page content lives here) */
.ef-content { padding: 72px 0 96px; }
.pagehead + .ef-content { padding-top: 24px; }
.ef-prose { font-size: 1.06rem; color: var(--ink); overflow-wrap: break-word; }
.ef-prose a, .ef-prose h1, .ef-prose h2, .ef-prose h3 { overflow-wrap: anywhere; }
.ef-prose > *:first-child { margin-top: 0; }
.ef-prose > *:last-child { margin-bottom: 0; }
.ef-prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 1.8em 0 .55em; }
.ef-prose h3 { font-size: 1.35rem; margin: 1.6em 0 .5em; }
.ef-prose h4 { font: 600 1.05rem var(--font-body); color: var(--blue-900); margin: 1.4em 0 .4em; }
.ef-prose p, .ef-prose ul, .ef-prose ol { margin: 0 0 1.15em; }
.ef-prose ul, .ef-prose ol { padding-left: 1.3em; }
.ef-prose li { margin-bottom: .45em; }
.ef-prose ul li::marker { color: var(--blue-500); }
.ef-prose a { color: var(--blue-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ef-prose a:hover { color: var(--blue-900); }
.ef-prose a.btn { text-decoration: none; }
.ef-prose a.btn-primary, .ef-prose a.btn-primary:hover { color: #fff; }
.ef-prose a.btn-ghost { color: var(--blue-800); }
.ef-prose .ef-buttons { margin: 1.2em 0; }
.ef-prose .ef-buttons + .ef-buttons { margin-top: -.4em; }
.ef-prose .ef-icons { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ef-prose .ef-icons img { margin: 0; border-radius: 0; }
.ef-prose strong { color: var(--blue-900); }
.ef-prose blockquote { margin: 1.6em 0; padding: 20px 26px; background: var(--blue-50); border-left: 3px solid var(--sun); border-radius: 0 12px 12px 0; font-family: var(--font-head); font-size: 1.15rem; color: var(--blue-900); }
.ef-prose img { border-radius: 14px; height: auto; margin: 1.4em 0; }
.ef-prose figure.is-small { margin: 1.2em 0 .4em; }
.ef-prose figure.is-small img { border-radius: 0; margin: 0; }
.ef-prose figure { margin: 1.6em 0; }
.ef-prose figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; }
.ef-prose .alignleft { float: left; margin: .3em 1.6em 1em 0; max-width: 45%; }
.ef-prose .alignright { float: right; margin: .3em 0 1em 1.6em; max-width: 45%; }
.ef-prose .aligncenter { margin-left: auto; margin-right: auto; }
.ef-prose::after { content: ""; display: table; clear: both; }
.ef-prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .97rem; }
.ef-prose th, .ef-prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.ef-prose th { background: var(--blue-50); color: var(--blue-900); }
.ef-prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.ef-prose iframe { max-width: 100%; border: 0; border-radius: 14px; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.content-aside { position: sticky; top: calc(var(--header-h) + 24px); background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--radius); padding: 28px; }
.content-aside h3 { font-size: 1.3rem; }
.content-aside p { color: var(--muted); font-size: .95rem; }

/* Image + text: photo on the right */
.split--right .why-grid { grid-template-columns: 1.15fr .85fr; }
.split--right .why-photo { order: 2; border-radius: 200px var(--radius) var(--radius) var(--radius); }
.why-copy .btn { margin-top: 8px; }

/* Team bios */
.member-bio { margin-top: 8px; font-size: .9rem; }
.member-bio summary { cursor: pointer; color: var(--blue-700); font-weight: 600; }
.member-bio .ef-prose { font-size: .92rem; margin-top: 10px; }

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; position: relative; font: 600 1.05rem var(--font-body); color: var(--blue-900); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--blue-500); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .ef-prose { padding-bottom: 18px; font-size: 1rem; }

/* Blog category bar */
.blog-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 40px; }
.blog-cats a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--blue-200); background: #fff; color: var(--blue-800); text-decoration: none; font-size: .9rem; font-weight: 500; }
.blog-cats a:hover { border-color: var(--blue-500); background: var(--blue-50); }
.blog-cats a[aria-current="page"] { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }

/* Blog cards without an image, pagination, post back link */
.post-placeholder { display: block; aspect-ratio: 64 / 42; border-radius: var(--radius); margin-bottom: 16px; background: linear-gradient(135deg, var(--blue-100), var(--blue-50)); }
.ef-pagination { margin-top: 48px; }
.ef-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.ef-pagination .page-numbers { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; }
.ef-pagination .current { background: var(--blue-700); color: #fff; border-color: var(--blue-700); }
.ef-post-back { margin-top: 48px; }

/* Footer extras */
.site-footer ul.menu { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-social { display: flex !important; gap: 12px; margin-top: 18px !important; }
.footer-social a { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); }
.footer-social a:hover { background: rgba(255,255,255,.18); }

/* WordPress core alignment / caption helpers outside prose */
.wp-caption { max-width: 100%; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

@media (max-width: 960px) {
  .pagehead--image .pagehead-grid { grid-template-columns: 1fr; }
  .pagehead-photo { max-width: 520px; }
  .pagehead--portrait .pagehead-grid { grid-template-columns: 1fr; }
  .pagehead--portrait .pagehead-photo { justify-self: start; max-width: 320px; }
  .content-grid { grid-template-columns: 1fr; gap: 32px; }
  .content-aside { position: static; }
  .split--right .why-grid { grid-template-columns: 1fr; }
  .split--right .why-photo { order: 0; }
}
@media (max-width: 1320px) {
  .main-nav .sub-toggle { position: absolute; right: 0; top: 8px; padding: 12px; margin: 0; }
  .main-nav > ul > li.is-current > a { box-shadow: none; }
}
@media (max-width: 640px) {
  .pagehead { padding: 36px 0 96px; }
  .ef-content { padding: 48px 0 64px; }
  .ef-prose .alignleft, .ef-prose .alignright { float: none; max-width: 100%; margin: 1em 0; }
}

/* ==========================================================================
   Interior pages: one shared look for every page type (services, team,
   bios, resources, pricing). Built from the homepage's cards, type and colours.
   ========================================================================== */

/* Section rhythm: same spacing everywhere; two sections with the same
   background read as one band. */
.ef-section.section, .ef-section.ef-content{ padding: 88px 0; }
.ef-section.cta{ padding: 88px 0; }
.ef-bg--white + .ef-bg--white, .ef-bg--mist + .ef-bg--mist, .ef-bg--sand + .ef-bg--sand, .ef-bg--navy + .ef-bg--navy{ padding-top: 0 !important; }
.pagehead + .ef-bg--white{ padding-top: 16px !important; }
.section-head{ max-width: 760px; }
.section-head .ef-prose{ color: var(--muted); }
.section-head .ef-prose h3, .section-head .ef-prose h4{ font: 600 1.02rem/1.5 var(--font-body); color: var(--blue-700); letter-spacing: .01em; margin: 0 0 .6em; }

/* Headings in page content get a short sun rule above them, as a quiet
   interior signature that matches the swoop. */
.ef-content .ef-prose > h2{ position: relative; padding-top: 22px; }
.ef-content .ef-prose > h2::before{ content: ""; position: absolute; left: 0; top: 0; width: 44px; height: 2px; border-radius: 2px; background: var(--sun); }
.ef-prose h3{ color: var(--blue-800); }

/* Lists: soft check bullets like the homepage hero list. */
.ef-prose ul{ list-style: none; padding-left: 0; }
.ef-prose ul > li{ position: relative; padding-left: 30px; }
.ef-prose ul > li::before{ content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%; background: var(--blue-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%231f5180' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.ef-prose li > p{ margin: 0; }
.ef-bg--navy .ef-prose ul > li::before{ background-color: rgba(255,255,255,.14); }

/* Image + text: copy styling and an optional second, overlapping photo. */
.why-copy > h2{ margin-bottom: .45em; }
.why-copy .ef-prose{ font-size: 1.02rem; }
.why-copy .ef-prose h2{ font-size: clamp(1.5rem, 2.4vw, 1.95rem); margin-top: 1.4em; }
.why-copy .ef-prose > h2:first-child{ font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.why-photo--pair{ position: relative; overflow: visible; background: none; box-shadow: none; aspect-ratio: auto; border-radius: 0; padding: 0 0 18% 0; }
.why-photo--pair > img:first-child{ width: 86%; aspect-ratio: 4 / 4.2; height: auto; border-radius: var(--radius) 160px var(--radius) var(--radius); box-shadow: var(--shadow-lg); background: var(--blue-100); }
.why-photo--pair .why-photo__second{ position: absolute; right: 0; bottom: 0; width: 52%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 6px solid #fff; box-shadow: var(--shadow-lg); background: var(--blue-100); }
.split--right .why-photo--pair{ border-radius: 0; }

/* Card grid (imported Wix repeaters and any new card sets). */
.ef-card-grid{ list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ef-card-grid--2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ef-card-grid--4{ grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.ef-card{ position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.ef-bg--mist .ef-card, .ef-bg--sand .ef-card{ border-color: transparent; box-shadow: 0 2px 10px -6px rgba(15, 42, 68, .18); }
.ef-card--link:hover{ transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ef-card__body{ padding: 26px 26px 28px; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.ef-card__title{ font-family: var(--font-head); font-weight: 500; font-size: 1.3rem; line-height: 1.25; color: var(--blue-900); margin: 0 0 10px; }
.ef-card__title a{ color: inherit; text-decoration: none; }
.ef-card__title a::after{ content: ""; position: absolute; inset: 0; }
.ef-card--link:hover .ef-card__title{ color: var(--blue-600); }
.ef-card__text{ color: var(--muted); font-size: .97rem; line-height: 1.6; }
.ef-card__text > *:last-child{ margin-bottom: 0; }
.ef-card__text p, .ef-card__text ul{ margin: 0 0 .8em; }
.ef-card__text :is(h1, h2, h3, h4, h5, h6){ font: 400 .97rem/1.6 var(--font-body); color: var(--muted); margin: 0 0 .8em; }
.ef-card__text strong{ color: var(--blue-900); }
.ef-card__text a{ color: var(--blue-700); }
.ef-card__text figure{ margin: 0 0 .8em; }
.ef-card__text .ef-buttons{ margin: .6em 0 0; }
.ef-card__more{ margin-top: auto; padding-top: 14px; font-weight: 600; font-size: .93rem; color: var(--blue-700); text-decoration: none; }
.ef-card__more::after{ content: ""; position: absolute; inset: 0; }
.ef-card__more span{ display: inline-block; transition: transform .2s; }
.ef-card--link:hover .ef-card__more span{ transform: translateX(4px); }

/* Photo cards: image on top, like the homepage service cards. */
.ef-cards--photo .ef-card__media{ aspect-ratio: 16 / 10.5; overflow: hidden; background: var(--blue-100); }
.ef-cards--photo .ef-card__media img{ width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ef-cards--photo .ef-card--link:hover .ef-card__media img{ transform: scale(1.05); }
.ef-card-grid--4 .ef-card__body{ padding: 22px 22px 24px; }
.ef-card-grid--4 .ef-card__title{ font-size: 1.18rem; }

/* Icon cards: small icon in a soft circle, like "Why Choose Ebb & Flow". */
.ef-cards--icon .ef-card__media{ padding: 28px 26px 0; }
.ef-cards--icon .ef-card__media img{ width: 64px; height: 64px; object-fit: contain; }
.ef-cards--icon .ef-card__body{ padding-top: 18px; }

/* Text-only cards (details, prices, resources): a sun accent on top. */
.ef-cards--plain .ef-card{ border-top: 3px solid var(--sun); }
.ef-cards--plain .ef-card__title{ font-size: 1.2rem; }

/* Team grid inside interior pages */
.ef-team .section-head .ef-prose h3{ margin-top: 0; }

/* Text sections: a comfortable reading width, lined up with the headings of
   the sections around them. */
.ef-content .container--narrow{ max-width: 1200px; }
.ef-content .container--narrow > .ef-prose{ max-width: 780px; }
.section-head--split{ max-width: none; }
.section-head--center{ margin-left: auto; margin-right: auto; }
.why-copy > h2 + .ef-prose > h2:first-child, .why-copy > h2 + .ef-prose > h3:first-child{ font-size: clamp(1.3rem, 2vw, 1.6rem); color: var(--blue-700); margin-top: .2em; }
.ef-prose .ef-buttons{ display: inline-block; margin: 1.2em 12px 0 0; }
.ef-prose .ef-buttons + .ef-buttons{ margin-top: 1.2em; }
.ef-cards-foot{ margin: 36px 0 0; text-align: center; }

@media (max-width: 1100px) {
  .ef-card-grid--4{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .ef-card-grid, .ef-card-grid--4{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-photo--pair{ max-width: 520px; }
}
@media (max-width: 640px) {
  .ef-section.section, .ef-section.ef-content, .ef-section.cta{ padding: 60px 0; }
  .ef-card-grid, .ef-card-grid--2, .ef-card-grid--4{ grid-template-columns: 1fr; }
}

/* Photo rows and logo rows inside text */
.ef-prose .ef-gallery{ display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 1.6em 0; }
.ef-content .container--narrow > .ef-prose .ef-gallery{ width: min(1152px, calc(100vw - 48px)); }
.ef-prose .ef-gallery figure{ margin: 0; }
.ef-prose .ef-gallery img{ margin: 0; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.ef-prose .ef-logos{ display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin: 1.2em 0; }
.ef-prose .ef-logos figure{ margin: 0; }
.ef-prose .ef-logos img{ margin: 0; max-height: 64px; width: auto; }

/* Related blocks in one band sit closer together */
.ef-bg--white:has(+ .ef-bg--white), .ef-bg--mist:has(+ .ef-bg--mist), .ef-bg--sand:has(+ .ef-bg--sand), .ef-bg--navy:has(+ .ef-bg--navy){ padding-bottom: 48px !important; }
.team .section-head .ef-prose{ margin-bottom: 8px; }
.team .section-head{ max-width: 900px; }
.ef-cards--icon .ef-card-grid--4 .ef-card__media, .ef-cards--icon .ef-card-grid--4 .ef-card__body{ padding-left: 22px; padding-right: 22px; }
.team .section-intro{ max-width: 860px; margin: 0 0 40px; }
.team .section-head + .section-intro{ margin-top: -16px; }

/* Interior header wave (the homepage hero wave is untouched): it is painted in
   the colour of the block below, so the header always flows into it. */
.pagehead .hero-wave{ background: none; --wave-fill: #fff; }
.pagehead .hero-wave::before, .pagehead .hero-wave::after{ content: ""; position: absolute; inset: 0; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: bottom; mask-position: bottom; }
.pagehead .hero-wave::before{ background: var(--blue-100); opacity: .6;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 60c240-50 480-50 720 0s480 50 720 0v60H0z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 60c240-50 480-50 720 0s480 50 720 0v60H0z'/%3E%3C/svg%3E"); }
.pagehead .hero-wave::after{ background: var(--wave-fill);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 80c240-40 480-40 720 0s480 40 720 0v40H0z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 80c240-40 480-40 720 0s480 40 720 0v40H0z'/%3E%3C/svg%3E"); }
.pagehead:has(+ :is(.ef-bg--mist, .owner:not([class*="ef-bg--"]))) .hero-wave{ --wave-fill: var(--blue-50); }
.pagehead:has(+ :is(.ef-bg--sand, .why:not([class*="ef-bg--"]))) .hero-wave{ --wave-fill: var(--sand); }
.pagehead:has(+ :is(.ef-bg--navy, .cta, .testimonial-band)) .hero-wave{ --wave-fill: var(--blue-800); }
.pagehead:has(+ .ef-bg--white) .hero-wave{ --wave-fill: #fff; }

/* ==========================================================================
   Interior page header: a contained soft-blue panel with the logo's motif
   (yellow sun arc over layered waves). No full-width wave, so it sits well
   above any block colour. The homepage hero is separate and unchanged.
   ========================================================================== */
.pagehead{ padding: 28px 0 0; background: #fff; overflow: visible; }
.pagehead .hero-wave{ display: none; }
.pagehead-panel{
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 32px; padding: 52px 64px 64px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(248, 245, 240, .9) 0%, rgba(248, 245, 240, 0) 45%),
    linear-gradient(135deg, var(--blue-50) 0%, var(--blue-100) 100%);
  border: 1px solid var(--blue-100);
}
.pagehead-waves{ position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 110px; z-index: -1; pointer-events: none; }
.pagehead-sun{ position: absolute; right: 7%; bottom: 58px; width: 300px; height: auto; z-index: -1; pointer-events: none; }
.pagehead-panel .pm-sun{ fill: none; stroke: var(--sun); stroke-width: 2.5; stroke-linecap: round; opacity: .9; vector-effect: non-scaling-stroke; }
.pagehead-panel .pm-sun--thin{ stroke-width: 1.2; opacity: .45; }
.pagehead-panel .pm-fill{ fill: #fff; opacity: .6; }
.pagehead-panel .pm-line{ fill: none; stroke: var(--blue-300); stroke-width: 1.5; opacity: .5; vector-effect: non-scaling-stroke; }
.pagehead-panel .pm-line--2{ stroke: #fff; stroke-width: 2.2; opacity: .95; }
/* With a photo the sun rises behind it. */
.pagehead--image .pagehead-sun{ right: auto; left: calc(57% - 40px); bottom: 70px; width: 380px; opacity: .8; }
.pagehead--portrait .pagehead-sun{ left: auto; right: 8%; width: 360px; }
.pagehead-grid{ position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; align-items: center; min-height: 230px; }
.pagehead--image .pagehead-grid{ grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.pagehead-copy{ max-width: 720px; }
.pagehead h1{ font-size: clamp(2.1rem, 4vw, 3.3rem); margin-bottom: .35em; }
.pagehead .lede{ font-size: 1.1rem; color: var(--ink); opacity: .85; max-width: 640px; }
.pagehead .lede strong{ font-weight: 600; }
.pagehead .ef-breadcrumbs{ margin-bottom: 18px; }
.pagehead-photo{ border-radius: var(--radius) 140px var(--radius) var(--radius); aspect-ratio: 5 / 4; box-shadow: var(--shadow-lg); border: 6px solid #fff; background: var(--blue-100); overflow: hidden; }
.pagehead--portrait .pagehead-grid{ grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); }
.pagehead--portrait .pagehead-photo{ aspect-ratio: 4 / 5; max-width: 360px; justify-self: end; width: 100%; }
/* The block under the header starts with normal spacing. */
.pagehead + .ef-section{ padding-top: 80px !important; }
.pagehead + .ef-section:not(.ef-bg--white):not([class*="ef-bg--"]){ padding-top: 80px !important; }
.pagehead + .ef-bg--mist, .pagehead + .ef-bg--sand, .pagehead + .ef-bg--navy, .pagehead + .team, .pagehead + .cta{ margin-top: 64px; }

@media (max-width: 960px) {
  .pagehead-panel{ padding: 40px 36px 48px; }
  .pagehead--image .pagehead-grid, .pagehead--portrait .pagehead-grid{ grid-template-columns: 1fr; gap: 32px; }
  .pagehead-photo{ max-width: 520px; }
  .pagehead--portrait .pagehead-photo{ justify-self: start; max-width: 300px; }
  .pagehead-sun, .pagehead--image .pagehead-sun, .pagehead--portrait .pagehead-sun{ left: auto; right: -40px; top: 24px; bottom: auto; width: 220px; opacity: .6; }
  .pagehead-waves{ height: 80px; }
}
@media (max-width: 640px) {
  .pagehead{ padding-top: 16px; }
  .pagehead-panel{ border-radius: 24px; padding: 28px 22px 40px; }
  .pagehead-grid{ min-height: 0; }
  .pagehead + .ef-section{ padding-top: 56px !important; }
  .pagehead + .ef-bg--mist, .pagehead + .ef-bg--sand, .pagehead + .ef-bg--navy, .pagehead + .team, .pagehead + .cta{ margin-top: 40px; }
}
@media (max-width: 640px) { .pagehead-sun{ display: none; } }

/* ==========================================================================
   Interior polish
   ========================================================================== */

/* Header: room under the text for the waves; photos use the homepage's arch
   frame; the sun only shows when there is no photo. */
body:not(.home) .pagehead-panel{ padding-bottom: 120px; }
body:not(.home) .pagehead--image .pagehead-panel{ padding-bottom: 72px; }
body:not(.home) .pagehead--image .pagehead-sun{ display: none; }
body:not(.home) .pagehead-photo, body:not(.home) .pagehead--portrait .pagehead-photo{ border: 0; border-radius: 180px 180px var(--radius) var(--radius); aspect-ratio: 4 / 4.6; max-width: 400px; justify-self: end; width: 100%; }
body:not(.home) .pagehead-copy{ min-width: 0; }

/* Text blocks: heading on the left, text on the right (wide screens), so long
   pages read as designed sections instead of one long column. */
@media (min-width: 1100px) {
  body:not(.home) .ef-content .container--narrow > .ef-prose:has(> h2:first-child){
    max-width: none; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: 72px; align-items: start;
  }
  body:not(.home) .ef-content .container--narrow > .ef-prose:has(> h2:first-child) > *{ grid-column: 2; }
  body:not(.home) .ef-content .container--narrow > .ef-prose:has(> h2:first-child) > h2:first-child{
    grid-column: 1; grid-row: 1 / span 60; position: sticky; top: calc(var(--header-h) + 32px); margin: 0;
  }
  body:not(.home) .ef-content .container--narrow > .ef-prose:has(> h2:first-child) > h2:first-child + *{ margin-top: 0; }
  body:not(.home) .ef-content .container--narrow > .ef-prose:has(> h2:first-child) .ef-gallery{ width: auto; }
}

/* Sub-headings inside text read as clear steps. */
body:not(.home) .ef-content .ef-prose h3:not(.is-text){ font-size: 1.3rem; margin-top: 1.7em; padding-left: 16px; border-left: 3px solid var(--sun); line-height: 1.3; }
body:not(.home) .ef-content .ef-prose > h2:not(:first-child){ font-size: clamp(1.4rem, 2.2vw, 1.8rem); }

/* Sentence-length "headings" from the old site: same tag, body styling. */
body:not(.home) .ef-prose .is-text, body:not(.home) .lede .is-text{ font: 400 1.04rem/1.7 var(--font-body) !important; color: var(--ink) !important; letter-spacing: 0; padding: 0 !important; border: 0 !important; margin: 0 0 1.1em !important; }
body:not(.home) .ef-prose .is-text::before{ display: none !important; }
body:not(.home) .ef-prose .is-text strong{ font-weight: 600; }

/* Underlined labels from the old site (not links). */
body:not(.home) .ef-prose u{ text-decoration: none; font-weight: 600; color: var(--blue-800); }

/* Callout box: comfortable inner spacing on every screen size. */
body:not(.home) .reduced{ padding: 88px 0 0; }
body:not(.home) .reduced-card{ padding: 44px 52px; gap: 36px; }
@media (max-width: 960px) { body:not(.home) .reduced-card{ grid-template-columns: 1fr; padding: 36px 32px; } }
@media (max-width: 640px) { body:not(.home) .reduced-card{ padding: 28px 22px; } }

/* Specialty pill on interior headers (same as the homepage hero). */
body:not(.home) .pagehead .specialty-pill{ margin-bottom: 18px; }
body:not(.home) .pagehead .ef-breadcrumbs{ margin-bottom: 14px; }

/* Header photo: a proper presence in the panel, like the homepage hero photo. */
body:not(.home) .pagehead--image .pagehead-grid{ grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: end; }
body:not(.home) .pagehead--image .pagehead-panel{ padding-top: 48px; padding-bottom: 56px; }
body:not(.home) .pagehead-photo, body:not(.home) .pagehead--portrait .pagehead-photo{ max-width: 420px; aspect-ratio: 4 / 4.4; }
body:not(.home) .pagehead--image .pagehead-copy{ align-self: center; }

/* Lead paragraph (a long intro moved out of the header). */
body:not(.home) .ef-prose .is-lead{ font-family: var(--font-head); font-size: clamp(1.25rem, 1.9vw, 1.55rem); line-height: 1.5; color: var(--blue-900); max-width: 880px; }
body:not(.home) .ef-content .container--narrow > .ef-prose:has(> .is-lead:first-child){ max-width: 900px; }
body:not(.home) .ef-section:has(.is-lead:first-child){ padding-bottom: 72px !important; }

/* Label line inside a long text block ("Pre-Visit Questionnaires"). */
body:not(.home) .ef-prose .is-text .is-label, body:not(.home) .lede .is-text .is-label{ display: inline-block; font: 500 1.2rem/1.3 var(--font-head); color: var(--blue-900); margin-bottom: 6px; padding-left: 14px; border-left: 3px solid var(--sun); }
body:not(.home) .lede .is-text .is-label{ font: 600 1rem/1.4 var(--font-body); padding-left: 0; border: 0; }

/* Callout box: space above and below so it never touches the next band. */
body:not(.home) .reduced{ padding: 88px 0; }
body:not(.home) .reduced + .ef-section{ padding-top: 88px !important; }

/* Photo cards look like the homepage service cards: photo over a blue name panel. */
body:not(.home) .ef-cards--photo .ef-card{ border: 0; box-shadow: var(--shadow); }
body:not(.home) .ef-cards--photo .ef-card__body{ background: var(--blue-700); }
body:not(.home) .ef-cards--photo .ef-card:nth-child(3n+2) .ef-card__body{ background: var(--blue-800); }
body:not(.home) .ef-cards--photo .ef-card:nth-child(3n+3) .ef-card__body{ background: var(--blue-600); }
body:not(.home) .ef-cards--photo .ef-card__title, body:not(.home) .ef-cards--photo .ef-card__title a, body:not(.home) .ef-cards--photo .ef-card--link:hover .ef-card__title{ color: #fff; }
body:not(.home) .ef-cards--photo .ef-card__text, body:not(.home) .ef-cards--photo .ef-card__text :is(h1, h2, h3, h4, h5, h6){ color: rgba(255, 255, 255, .86); }
body:not(.home) .ef-cards--photo .ef-card__text a, body:not(.home) .ef-cards--photo .ef-card__text strong, body:not(.home) .ef-cards--photo .ef-card__more{ color: #fff; }

/* Icon cards on soft colours, text cards with the sun line: slightly warmer. */
body:not(.home) .ef-cards--icon .ef-card__media img{ background: var(--blue-50); border-radius: 50%; padding: 10px; width: 76px; height: 76px; }
body:not(.home) .ef-prose .is-lead strong{ font-weight: inherit; color: inherit; }
body:not(.home) .why-grid > *, body:not(.home) .content-grid > * { min-width: 0; }
@media (max-width: 640px) { body:not(.home) .ef-prose .btn, body:not(.home) .why-copy .btn { white-space: normal; text-align: center; max-width: 100%; } }
@media (max-width: 960px) {
  body:not(.home) .pagehead--image .pagehead-grid, body:not(.home) .pagehead--portrait .pagehead-grid { grid-template-columns: 1fr; gap: 28px; }
  body:not(.home) .pagehead-photo, body:not(.home) .pagehead--portrait .pagehead-photo { justify-self: start; max-width: 340px; }
}
@media (max-width: 640px) {
  body:not(.home) .ef-prose .is-lead { font-size: 1.12rem; }
  body:not(.home) .pagehead-photo, body:not(.home) .pagehead--portrait .pagehead-photo { max-width: 100%; aspect-ratio: 4 / 3.4; }
}

/* ==========================================================================
   Interior hero: full width (the panel spans the whole page), the waves at
   its foot are painted in the colour of the block below so they always join.
   ========================================================================== */
body:not(.home) .pagehead { position: relative; isolation: isolate; overflow: hidden; padding: 0;
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(248, 245, 240, .95) 0%, rgba(248, 245, 240, 0) 55%),
    linear-gradient(160deg, var(--blue-50) 0%, var(--blue-100) 100%); }
body:not(.home) .pagehead > .container { position: static; }
body:not(.home) .pagehead-panel { position: static; overflow: visible; isolation: auto; background: none; border: 0; border-radius: 0; padding: 64px 0 150px; }
body:not(.home) .pagehead--image .pagehead-panel { padding: 56px 0 130px; }
body:not(.home) .pagehead-waves { height: 130px; --wave-fill: #fff; }
body:not(.home) .pagehead-panel .pm-fill { fill: var(--wave-fill, #fff); opacity: 1; }
body:not(.home) .pagehead-sun { right: max(24px, calc((100vw - 1200px) / 2 + 24px)); bottom: 120px; width: 340px; }
body:not(.home) .pagehead:has(+ .ef-bg--mist) .pagehead-waves { --wave-fill: var(--blue-50); }
body:not(.home) .pagehead:has(+ .ef-bg--sand) .pagehead-waves { --wave-fill: var(--sand); }
body:not(.home) .pagehead:has(+ :is(.ef-bg--navy, .ef-band, .cta)) .pagehead-waves { --wave-fill: var(--blue-800); }
body:not(.home) .pagehead:has(+ .team:not([class*="ef-bg--"])) .pagehead-waves { --wave-fill: #fff; }
body:not(.home) .pagehead + .ef-section { padding-top: 40px !important; margin-top: 0 !important; }
body:not(.home) .pagehead-photo { max-width: 460px; }
body:not(.home) .pagehead h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); }
@media (max-width: 640px) {
  body:not(.home) .pagehead-panel, body:not(.home) .pagehead--image .pagehead-panel { padding: 36px 0 96px; }
  body:not(.home) .pagehead-waves { height: 80px; }
}

/* Full-width call-to-action band (callout "band" style). */
body:not(.home) .ef-band { position: relative; overflow: hidden; isolation: isolate; padding: 84px 0;
  background: radial-gradient(80% 140% at 0% 100%, rgba(74, 134, 189, .35) 0%, rgba(74, 134, 189, 0) 60%), linear-gradient(120deg, var(--blue-900) 0%, var(--blue-800) 55%, var(--blue-700) 100%); color: var(--blue-100); }
body:not(.home) .ef-band__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; }
body:not(.home) .ef-band h2 { color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: .35em; max-width: 780px; }
body:not(.home) .ef-band .ef-accent { color: #fff; }
body:not(.home) .ef-band p { color: var(--blue-100); font-size: 1.08rem; margin: 0; max-width: 680px; }
body:not(.home) .ef-band .eyebrow { color: var(--blue-200); }
body:not(.home) .ef-band__actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
body:not(.home) .ef-band__phone { color: #fff; font-size: .95rem; text-underline-offset: 3px; }
body:not(.home) .ef-band__phone:hover { color: var(--sun); }
body:not(.home) .ef-band__sun { position: absolute; right: -40px; bottom: -6px; width: 420px; z-index: -1; fill: none; }
body:not(.home) .ef-band__sun path { stroke: var(--sun); stroke-width: 2.5; opacity: .55; }
body:not(.home) .ef-band__sun path.thin { stroke-width: 1.2; opacity: .3; }
body:not(.home) .ef-band__waves { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 90px; z-index: -1; fill: none; }
body:not(.home) .ef-band__waves path { stroke: rgba(255, 255, 255, .14); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
body:not(.home) .ef-band__waves path.two { stroke: rgba(255, 255, 255, .08); }
body:not(.home) .ef-band + .ef-section { padding-top: 88px !important; }
@media (max-width: 860px) {
  body:not(.home) .ef-band__inner { grid-template-columns: 1fr; gap: 28px; }
  body:not(.home) .ef-band__actions { align-items: flex-start; }
  body:not(.home) .ef-band__sun { width: 260px; opacity: .7; }
}
@media (max-width: 640px) { body:not(.home) .ef-band { padding: 60px 0; } }

/* Short step labels written as paragraphs on the old site look like their sibling steps. */
body:not(.home) .ef-content .ef-prose .is-subhead, body:not(.home) .why-copy .ef-prose .is-subhead { font: 500 1.3rem/1.3 var(--font-head); color: var(--blue-800); margin: 1.7em 0 .5em; padding-left: 16px; border-left: 3px solid var(--sun); }
body:not(.home) .why-copy .ef-prose .is-subhead { font-size: 1.15rem; margin-top: 1.3em; }
body:not(.home) .why-copy .ef-prose .is-subhead { border-left: 0; padding-left: 0; font-size: 1.35rem; }

/* ==========================================================================
   Team pages (interior only; the homepage team block is unchanged)
   ========================================================================== */
body:not(.home) .team .section-head { justify-content: center; text-align: center; margin-left: auto; margin-right: auto; }
body:not(.home) .team .section-head > div { width: 100%; }
body:not(.home) .team .section-head h2 { margin-bottom: 0; }
body:not(.home) .team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 24px; }
body:not(.home) .team-grid > .member { width: calc((100% - 72px) / 4); background: #fff; border-radius: var(--radius); padding: 14px 14px 20px; box-shadow: 0 2px 12px -6px rgba(15, 42, 68, .2); display: flex; flex-direction: column; }
body:not(.home) .ef-bg--white .team-grid > .member { border: 1px solid var(--line); box-shadow: none; }
body:not(.home) .member-photo { border-radius: 12px; }
body:not(.home) .member h3 { font-size: 1.2rem; margin-top: 4px; }
body:not(.home) .member-more { display: inline-block; margin-top: 12px; font-size: .88rem; font-weight: 600; color: var(--blue-700); }
body:not(.home) .member a:hover .member-more { color: var(--blue-900); }
body:not(.home) .member-bio { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
body:not(.home) .member-bio[open] { position: relative; }
@media (max-width: 1100px) { body:not(.home) .team-grid > .member { width: calc((100% - 48px) / 3); } }
@media (max-width: 760px) { body:not(.home) .team-grid > .member { width: calc((100% - 16px) / 2); } body:not(.home) .team-grid { gap: 16px; } }
@media (max-width: 420px) { body:not(.home) .team-grid > .member { width: 100%; } }

/* Title-only icon cards (Self-Pay, Insurance, …) read as a row of feature chips. */
body:not(.home) .ef-cards--icon .ef-card:not(:has(.ef-card__text)) { flex-direction: row; align-items: center; }
body:not(.home) .ef-cards--icon .ef-card:not(:has(.ef-card__text)) .ef-card__media { padding: 18px 0 18px 20px; flex-shrink: 0; }
body:not(.home) .ef-cards--icon .ef-card:not(:has(.ef-card__text)) .ef-card__media img { width: 56px; height: 56px; }
body:not(.home) .ef-cards--icon .ef-card:not(:has(.ef-card__text)) .ef-card__body { padding: 18px 20px; justify-content: center; }
body:not(.home) .ef-cards--icon .ef-card:not(:has(.ef-card__text)) .ef-card__title { margin: 0; font-size: 1.12rem; }
body:not(.home) .ef-cards:has(.ef-cards--icon .ef-card:not(:has(.ef-card__text))) { padding-top: 56px !important; padding-bottom: 56px !important; }

/* ALL-CAPS labels above lists (e.g. EDUCATION, LICENSURE). */
body:not(.home) .ef-prose .is-caps { font-size: .8rem; font-weight: 700; letter-spacing: .12em; color: var(--blue-600); margin: 1.8em 0 .7em; }
body:not(.home) .ef-prose .is-caps:first-child { margin-top: 0; }
body:not(.home) .section-head:not(:has(h2, .eyebrow, .btn, .ef-prose)) { display: none; }

/* Lists inside cards (e.g. price lists): clean rows with dividers. */
body:not(.home) .ef-card__text ul { list-style: none; padding: 0; margin: .4em 0 .8em; }
body:not(.home) .ef-card__text ul + ul { margin-top: -.8em; }
body:not(.home) .ef-card__text li { padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink); }
body:not(.home) .ef-card__text li p { margin: 0; }
body:not(.home) .ef-card__text li em { display: block; color: var(--muted); font-size: .9rem; margin-top: 4px; }
body:not(.home) .ef-cards--plain .ef-card__text .ef-buttons { margin-top: 1em; }
body:not(.home) .ef-cards--plain .ef-card__title { font-size: 1.35rem; }
body:not(.home) .ef-card__text a.btn-primary, body:not(.home) .ef-card__text a.btn-primary:hover { color: #fff; }
body:not(.home) .ef-card__text a.btn { text-decoration: none; }

/* Homepage hero wave: the same layered wave as the interior headers, painted in the
   colour of the block below. Same height and position as before. */
.hero-waves { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 130px; pointer-events: none; --wave-fill: #fff; }
.hero-waves .pm-fill { fill: var(--wave-fill); }
.hero-waves .pm-line { fill: none; stroke: var(--blue-300); stroke-width: 1.5; opacity: .5; vector-effect: non-scaling-stroke; }
.hero-waves .pm-line--2 { stroke: #fff; stroke-width: 2.2; opacity: .95; }
.hero:has(+ .ef-bg--mist) .hero-waves, .hero:has(+ .owner:not([class*="ef-bg--"])) .hero-waves { --wave-fill: var(--blue-50); }
.hero:has(+ .ef-bg--sand) .hero-waves, .hero:has(+ .why:not([class*="ef-bg--"])) .hero-waves { --wave-fill: var(--sand); }
.hero:has(+ :is(.ef-bg--navy, .cta, .testimonial-band)) .hero-waves { --wave-fill: var(--blue-800); }
@media (max-width: 640px) { .hero-waves { height: 80px; } }
/* Soft blue behind the homepage wave (as on interior headers), so the wave reads. */
.hero-waves-tint { position: absolute; left: 0; right: 0; bottom: 0; height: 300px; pointer-events: none; background: linear-gradient(180deg, rgba(227, 238, 247, 0) 0%, var(--blue-100) 100%); }
@media (max-width: 640px) { .hero-waves-tint { height: 200px; } }

/* Mobile menu: the header's blur effect would trap the fixed menu inside the header
   (browsers treat backdrop-filter as a containing block), clipping it to a thin strip.
   On mobile/tablet the header is solid white instead, and the open menu fills the
   screen below the header, above the sticky call/appointment bar. */
@media (max-width: 1320px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .main-nav { height: calc(100dvh - var(--nav-top, var(--header-h))); bottom: auto; z-index: 60; padding-bottom: 120px; overscroll-behavior: contain; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 1320px) {
  .main-nav a.nav-mobile-cta, .main-nav a.nav-mobile-cta:hover { background: var(--blue-700); color: #fff; border-radius: 999px; justify-content: center; }
}

/* Footer: sitemap link beside the copyright. */
.footer-bottom .footer-sep { margin: 0 10px; opacity: .45; }
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* HTML sitemap page */
.ef-sitemap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 48px; align-items: start; }
.ef-sitemap__intro { max-width: 780px; margin-bottom: 40px; }
.ef-sitemap__group { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--sun); border-radius: var(--radius); padding: 28px 28px 24px; }
.ef-sitemap__group h2 { font-size: 1.45rem; margin: 0 0 14px; }
.ef-sitemap__group h2 a { color: inherit; text-decoration: none; }
.ef-sitemap ul { list-style: none; margin: 0; padding: 0; }
.ef-sitemap li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.ef-sitemap li:last-child { border-bottom: 0; }
.ef-sitemap li a { color: var(--blue-800); text-decoration: none; font-size: .98rem; }
.ef-sitemap li a:hover { color: var(--blue-600); text-decoration: underline; text-underline-offset: 3px; }
.ef-sitemap ul ul { margin: 6px 0 0 14px; padding-left: 12px; border-left: 2px solid var(--blue-100); }
.ef-sitemap ul ul li { border-bottom: 0; padding: 4px 0; }
.ef-sitemap ul ul a { color: var(--muted); font-size: .94rem; }
.ef-sitemap__group--posts { grid-row: span 2; }
@media (max-width: 960px) { .ef-sitemap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .ef-sitemap { grid-template-columns: 1fr; } .ef-sitemap__group--posts { grid-row: auto; } }

/* Header booking button: always visible, a short label on phones. */
.btn-request__short { display: none; }
@media (max-width: 640px) {
  .header-actions { gap: 8px; }
  .site-header .btn-request { display: inline-flex; padding: 10px 16px; font-size: .9rem; box-shadow: none; }
  .btn-request__full { display: none; }
  .btn-request__short { display: inline; }
}
@media (max-width: 360px) {
  .site-header .logo img { height: 40px; }
  .site-header .btn-request { padding: 9px 12px; }
}

/* Contact page: ways to reach us beside the questions form. */
.ef-contact { padding: 72px 0 96px; }
.ef-contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.ef-contact__info h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.ef-contact__intro p { font-size: 1.08rem; color: var(--muted); margin: 0 0 1em; }
.ef-contact__ways { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.ef-contact__ways > li { display: flex; gap: 16px; align-items: center; padding: 18px 20px; background: var(--blue-50); border: 1px solid var(--line); border-radius: var(--radius); }
.ef-contact__icon { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--blue-700); box-shadow: 0 4px 12px -6px rgba(15, 42, 68, .35); }
.ef-contact__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ef-contact__label { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.ef-contact__ways a { color: var(--blue-800); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.ef-contact__ways a:hover { color: var(--blue-600); text-decoration: underline; text-underline-offset: 3px; }
.ef-contact__or { color: var(--muted); margin: 0 4px; }
.ef-contact__card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 40px; box-shadow: var(--shadow-lg); }
.ef-contact__card::before { content: ""; position: absolute; top: -1px; left: 40px; right: 40px; height: 4px; border-radius: 0 0 4px 4px; background: var(--sun); }
.ef-contact__form-title { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: 20px; }
@media (max-width: 960px) {
  .ef-contact__grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .ef-contact { padding: 48px 0 64px; }
  .ef-contact__card { padding: 28px 20px; border-radius: 18px; }
  .ef-contact__card::before { left: 20px; right: 20px; }
  .ef-contact__ways > li { padding: 14px 16px; }
}

/* Questions form (contact page, speaking page, [ebbflow_contact_form]). */
.ef-form { display: grid; gap: 18px; }
.ef-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ef-field { margin: 0; display: grid; gap: 6px; }
.ef-field label { font-weight: 600; font-size: .92rem; color: var(--blue-900); }
.ef-field .req { color: #b4432c; }
.ef-field .opt { font-weight: 400; color: var(--muted); }
.ef-field input, .ef-field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px; transition: border-color .2s, box-shadow .2s;
}
.ef-field textarea { resize: vertical; min-height: 140px; }
.ef-field input:focus, .ef-field textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(74, 134, 189, .18); }
.ef-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ef-form__note { margin: 0; font-size: .85rem; color: var(--muted); }
.ef-form .btn { justify-self: start; }
.ef-form-notice { border-radius: 14px; padding: 16px 18px; margin-bottom: 20px; border: 1px solid; }
.ef-form-notice p { margin: 0; }
.ef-form-notice__title { font-weight: 600; }
.ef-form-notice.is-ok { background: #eef7f0; border-color: #b9dcc2; color: #1d4d2b; }
.ef-form-notice.is-error { background: #fbefec; border-color: #ecc3b8; color: #7a2c1a; }
.ef-prose .ef-form-wrap { margin: 2em 0; padding: 32px; background: var(--blue-50); border: 1px solid var(--line); border-radius: var(--radius); }
.ef-prose .ef-form-wrap label { margin: 0; }
@media (max-width: 640px) {
  .ef-form__row { grid-template-columns: 1fr; }
  .ef-form .btn { width: 100%; }
  .ef-prose .ef-form-wrap { padding: 22px 16px; }
}
.ef-prose .ef-field, .ef-prose .ef-form__note, .ef-prose .ef-form-notice p { margin: 0; }

/* Telehealth map: states served through additional licensure (not PSYPACT). */
.swatch--licensed { background: var(--sun); }
.state.is-licensed { background: var(--sun); color: var(--blue-900); border-color: var(--sun); }
.state.is-licensed:hover { background: #e0a02c; }
.state-chips button.is-licensed { background: #fdf3df; border-color: #efc879; color: #6b4a0b; }
.state-chips button.is-licensed:hover, .state-chips button.is-licensed.is-selected { background: var(--sun); border-color: var(--sun); color: var(--blue-900); }

/* Header: Submit Referral beside Request Appointment. */
.btn-referral { padding: 12px 20px; border-color: var(--blue-300); color: var(--blue-800); background: #fff; }
.btn-referral:hover { background: var(--blue-50); border-color: var(--blue-500); color: var(--blue-900); }
.main-nav .nav-mobile-cta--ref { display: none; }
@media (max-width: 640px) {
  .site-header .btn-referral { display: none; }
}
@media (max-width: 1320px) {
  .main-nav a.nav-mobile-cta--ref, .main-nav a.nav-mobile-cta--ref:hover { display: flex; margin-top: 12px; background: #fff; color: var(--blue-800); border: 1.5px solid var(--blue-300); }
}
@media (min-width: 641px) {
  .main-nav a.nav-mobile-cta--ref { display: none; }
}

/* Referral form: group labels and the consent checkbox. */
.ef-form__group { margin: 8px 0 -4px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-700); }
.ef-form__group:first-of-type { margin-top: 0; }
.ef-field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px;
}
.ef-field select:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(74, 134, 189, .18); }
.ef-field--check { display: flex; gap: 10px; align-items: flex-start; }
.ef-field--check input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 20px; accent-color: var(--blue-700); }
.ef-field--check label { font-weight: 500; }
.ef-form__row > .ef-field { min-width: 0; }

/* Service cards: portrait photos (headshots) keep faces in frame. */
.service-card-media img.is-portrait { object-position: 50% 22%; }
/* Laptop widths: two header buttons beside the full menu need the short booking label. */
@media (min-width: 1321px) and (max-width: 1499px) {
  .header-inner { gap: 16px; }
  .header-actions { gap: 8px; }
  .site-header .btn-request, .site-header .btn-referral { padding: 10px 16px; font-size: .9rem; }
  .btn-request__full { display: none; }
  .btn-request__short { display: inline; }
}
/* Long hero headlines (over ~60 characters) a size down so they don't run to five lines. */
.hero h1.hero-title--long { font-size: clamp(2rem, 3.3vw, 2.85rem); line-height: 1.12; }
@media (max-width: 640px) { .hero h1.hero-title--long { font-size: 1.95rem; } }

/* Heading font: Libre Baskerville. It is wide with tall lowercase letters, so
   headings are scaled to the same visual size as before (font-size-adjust),
   letter-spaced a touch tighter, and set in its regular weight, which matches
   its italic for the accent words. */
h1, h2, h3, .logo-name, .path-num, .quote blockquote, .step-num, .ef-prose blockquote, .ef-card__title,
body:not(.home) .ef-prose .is-lead,
body:not(.home) .ef-prose .is-text .is-label, body:not(.home) .lede .is-text .is-label,
body:not(.home) .ef-content .ef-prose .is-subhead, body:not(.home) .why-copy .ef-prose .is-subhead {
  font-size-adjust: .45; font-weight: 400; letter-spacing: -.012em;
}
h1, h2, h3 { line-height: 1.22; }
.hero h1.hero-title--long { line-height: 1.2; }

/* WordPress gives images their own width/height, which overrides aspect-ratio
   crops unless the height is auto (the support group photo ran full height). */
.support-photo, .ef-prose .ef-gallery img { height: auto; }
.support-photo { object-position: 50% 35%; }

/* Built-in card icons: blue line icon in a soft circle (shows on any background). */
.ef-card__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--blue-50); color: var(--blue-700); box-shadow: inset 0 0 0 1px var(--blue-100); }
.ef-card__icon .ef-ui-icon { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
body:not(.home) .ef-cards--icon .ef-card:not(:has(.ef-card__text)) .ef-card__media--icon { padding: 18px 0 18px 20px; }
body:not(.home) .ef-cards--icon .ef-card:not(:has(.ef-card__text)) .ef-card__icon { width: 56px; height: 56px; }

/* Card grids with a centred intro (e.g. the Team page's closing paragraph above its feature cards). */
.ef-cards__head--center { max-width: 820px; text-align: center; }
.ef-cards__head--center .ef-prose p { margin-left: auto; margin-right: auto; }
body:not(.home) .ef-cards__head--center .ef-prose .is-lead { font-size: clamp(1.12rem, 1.7vw, 1.32rem); line-height: 1.65; color: var(--ink); }

/* Contact page map: full width under the form. */
.ef-contact__map { margin-top: 56px; }
.ef-contact__map iframe { display: block; width: 100%; aspect-ratio: 16 / 6; min-height: 320px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--blue-50); }
@media (max-width: 640px) { .ef-contact__map { margin-top: 36px; } .ef-contact__map iframe { aspect-ratio: 4 / 3; min-height: 260px; } }

/* Gravity Forms: the Contact page's Gravity Form, styled to match the theme's own form (.ef-form). */
.ef-contact__card .ef-gform .gform_wrapper.gravity-theme, .ef-contact__card .ef-gform .gform_wrapper { margin: 0; padding: 0; max-width: none; }
.ef-contact__card .ef-gform .gform_wrapper .gform_fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 0; padding: 0; list-style: none; }
.ef-contact__card .ef-gform .gform_wrapper .gfield { grid-column: 1 / -1; margin: 0; padding: 0; min-width: 0; display: grid; gap: 6px; }
.ef-contact__card .ef-gform .gform_wrapper .gfield.gfield--width-half { grid-column: span 1; }
.ef-contact__card .ef-gform .gform_wrapper .gfield_label, .ef-contact__card .ef-gform .gform_wrapper .gform-field-label { display: block; margin: 0; padding: 0; font: 600 .92rem/1.6 var(--font-body); color: var(--blue-900); }
.ef-contact__card .ef-gform .gform_wrapper .gfield_required, .ef-contact__card .ef-gform .gform_wrapper .gfield_required_asterisk { color: #b4432c; font-weight: 600; margin-left: 2px; font-size: inherit; }
.ef-contact__card .ef-gform .gform_wrapper .gfield_label .opt { font-weight: 400; color: var(--muted); }
.ef-contact__card .ef-gform .gform_wrapper .ginput_container { margin: 0; padding: 0; }
.ef-contact__card .ef-gform .gform_wrapper .gfield input[type="text"], .ef-contact__card .ef-gform .gform_wrapper .gfield input[type="email"], .ef-contact__card .ef-gform .gform_wrapper .gfield input[type="tel"], .ef-contact__card .ef-gform .gform_wrapper .gfield textarea {
  width: 100%; max-width: none; font: inherit; font-size: 1rem; line-height: 1.6; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px; box-shadow: none; transition: border-color .2s, box-shadow .2s; margin: 0;
}
.ef-contact__card .ef-gform .gform_wrapper .gfield textarea { resize: vertical; min-height: 140px; height: 182px; }
.ef-contact__card .ef-gform .gform_wrapper .gfield input:focus, .ef-contact__card .ef-gform .gform_wrapper .gfield textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(74, 134, 189, .18); }
.ef-contact__card .ef-gform .gform_wrapper .gfield--type-html { gap: 0; }
.ef-contact__card .ef-gform .gform_wrapper .ef-form__note { margin: 0; font-size: .85rem; color: var(--muted); }
.ef-contact__card .ef-gform .gform_wrapper .gform_footer, .ef-contact__card .ef-gform .gform_wrapper .gform_page_footer { margin: 10px 0 0; padding: 0; display: flex; align-items: center; gap: 12px; }
.ef-contact__card .ef-gform .gform_wrapper .gform_footer .gform_button.btn { width: auto; min-height: 0; line-height: 1; margin: 0; cursor: pointer; font: 600 1rem/1 var(--font-body); padding: 16px 28px; border-radius: 999px; border: 1.5px solid transparent; background: var(--blue-700); color: #fff; box-shadow: 0 6px 16px -6px rgba(31, 81, 128, .6); -webkit-appearance: none; appearance: none; }
.ef-contact__card .ef-gform .gform_wrapper .gform_footer .gform_button.btn:hover, .ef-contact__card .ef-gform .gform_wrapper .gform_footer .gform_button.btn:focus { background: var(--blue-800); color: #fff; transform: translateY(-1px); }
.ef-contact__card .ef-gform .gform_wrapper .gform_ajax_spinner { width: 20px; height: 20px; }
.ef-contact__card .ef-gform .gform_wrapper .gform_required_legend, .ef-contact__card .ef-gform .gform_wrapper .gform_heading { display: none; }
/* Validation messages, in the theme's notice colours. */
.ef-contact__card .ef-gform .gform_wrapper .gform_validation_errors { margin: 0 0 20px; padding: 16px 18px; border-radius: 14px; border: 1px solid #ecc3b8; background: #fbefec; box-shadow: none; }
.ef-contact__card .ef-gform .gform_wrapper .gform_validation_errors h2, .ef-contact__card .ef-gform .gform_wrapper .gform_submission_error { margin: 0; font: 600 1rem/1.4 var(--font-body); color: #7a2c1a; }
.ef-contact__card .ef-gform .gform_wrapper .gfield_error input, .ef-contact__card .ef-gform .gform_wrapper .gfield_error textarea { border-color: #d47a63; }
.ef-contact__card .ef-gform .gform_wrapper .gfield_validation_message, .ef-contact__card .ef-gform .gform_wrapper .validation_message { margin: 4px 0 0; padding: 0; border: 0; background: none; font-size: .85rem; color: #7a2c1a; }
.ef-contact__card .ef-gform .gform_wrapper .gfield_error .gfield_label { color: var(--blue-900); }
.ef-contact__card .ef-gform .gform_confirmation_message { border-radius: 14px; padding: 16px 18px; border: 1px solid #b9dcc2; background: #eef7f0; color: #1d4d2b; font-weight: 600; }
/* Referral form: group headings, dropdown and the consent checkbox, as on the theme's form. */
.ef-contact__card .ef-gform .gform_wrapper .gfield--type-section { margin: 8px 0 -4px; padding: 0; border: 0; }
.ef-contact__card .ef-gform .gform_wrapper .gfield--type-section:first-child { margin-top: 0; }
.ef-contact__card .ef-gform .gform_wrapper .gsection_title { margin: 0; padding: 0; border: 0; font: 700 .78rem/1.6 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--blue-700); }
.ef-contact__card .ef-gform .gform_wrapper .gsection_description { display: none; }
.ef-contact__card .ef-gform .gform_wrapper .gfield select {
  width: 100%; max-width: none; font: inherit; font-size: 1rem; line-height: 1.6; color: var(--ink); background-color: #fff;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px; margin: 0; box-shadow: none;
}
.ef-contact__card .ef-gform .gform_wrapper .gfield select:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(74, 134, 189, .18); }
.ef-contact__card .ef-gform .gform_wrapper .gfield--type-checkbox { border: 0; padding: 0; margin: 0; }
.ef-contact__card .ef-gform .gform_wrapper .gfield--type-checkbox legend.gfield_label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.ef-contact__card .ef-gform .gform_wrapper .gfield_checkbox { margin: 0; padding: 0; }
.ef-contact__card .ef-gform .gform_wrapper .gchoice { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.ef-contact__card .ef-gform .gform_wrapper .gchoice input[type="checkbox"] { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 20px; accent-color: var(--blue-700); }
.ef-contact__card .ef-gform .gform_wrapper .gchoice label { margin: 0; padding: 0; max-width: none; font: 500 .92rem/1.6 var(--font-body); color: var(--blue-900); }
.ef-contact__card .ef-gform .gform_wrapper .gfield_contains_required .gchoice label::after { content: " *"; color: #b4432c; font-weight: 600; }
.ef-contact__card .ef-gform--referral .gform_wrapper .gfield textarea { height: 155px; }
/* Hidden spam trap. */
.ef-contact__card .ef-gform .gform_wrapper .gform_validation_container, .ef-contact__card .ef-gform .gform_wrapper .gfield--type-honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) {
  .ef-contact__card .ef-gform .gform_wrapper .gform_fields { grid-template-columns: 1fr; }
  .ef-contact__card .ef-gform .gform_wrapper .gfield.gfield--width-half { grid-column: 1 / -1; }
  .ef-contact__card .ef-gform .gform_wrapper .gform_footer .gform_button.btn { width: 100%; }
}
