/* BridgeWell — For Families page
   Designed to feel like the home page. We re-use site.css patterns
   (.hero, .problem-layout, .how-head, .serve, .diff, .finalcta, .problem-quote)
   and only add the small bits below: a 3-card "trio", the reversed layout
   modifier, the dark privacy callout, the kid mock interactive, and the
   2-card "paths" with the form.
*/

/* ===== Hero — tighter copy column + shorter gradient than /providers/ ===== */
.pn-hero-families .pn-hero-copy{max-width:720px;}
.pn-hero-families .pn-hero-copy h1{max-width:13ch;}
.pn-hero-families .pn-hero-copy .lede{max-width:46ch;}

/* Secondary CTA sits over a bright part of the photo — give it its own
   dark base so the lime text stays legible regardless of background. */
.pn-hero-families .hero-actions .btn-secondary.on-dark{
  background:rgba(8,24,17,.55);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}
.pn-hero-families .hero-actions .btn-secondary.on-dark:hover{
  background:rgba(8,24,17,.7);
}
.pn-hero-families .pn-hero-tint{
  background:
    /* Extra darken specifically behind the CTA buttons */
    radial-gradient(ellipse 32% 22% at 22% 90%,
      rgba(6,20,14,.78) 0%,
      rgba(6,20,14,.5)  55%,
      rgba(6,20,14,0)   85%),
    /* Localized darken behind body copy + CTA buttons (lower-left) */
    radial-gradient(ellipse 46% 42% at 22% 78%,
      rgba(8,24,17,.7) 0%,
      rgba(8,24,17,.45) 45%,
      rgba(8,24,17,0) 80%),
    /* Base horizontal tint */
    linear-gradient(95deg,
      rgba(10,28,20,.96) 0%,
      rgba(14,42,28,.9)  22%,
      rgba(18,52,35,.6)  42%,
      rgba(18,52,35,.18) 60%,
      rgba(18,52,35,0)   72%);
}
@media (max-width:920px){
  .pn-hero-families .pn-hero-copy h1,
  .pn-hero-families .pn-hero-copy .lede{max-width:100%;}
  .pn-hero-families .pn-hero-tint{
    background:linear-gradient(180deg,
      rgba(10,28,20,.92) 0%,
      rgba(14,42,28,.78) 60%,
      rgba(18,52,35,.55) 100%);
  }
}

/* ===== Reverse the .problem-layout (photo right, copy left) ===== */
.problem-layout.problem-layout-reverse{
  grid-template-columns:1.05fr 1.1fr;
}
.problem-layout.problem-layout-reverse .problem-media{order:2;}
.problem-layout.problem-layout-reverse .problem-content{order:1;}
@media (max-width:920px){
  .problem-layout.problem-layout-reverse{grid-template-columns:1fr;}
  .problem-layout.problem-layout-reverse .problem-media{order:1;}
  .problem-layout.problem-layout-reverse .problem-content{order:2;}
}

/* ===== "At BridgeWell Schools" how-head — full-width on families page ===== */
.how-families .how-head{max-width:none;}
.how-families .how-head .lede,
.how-families .how-head .body-lg{max-width:none;}

/* ===== Trio of feature points (editorial 3-up — matches site's .free-stack / .diff-principles pattern) ===== */
.fam-trio{
  list-style:none;margin:0;padding:48px 0 0;
  display:grid;grid-template-columns:repeat(3,1fr);gap:0;
  border-top:1px solid rgba(24,48,37,.18);
}
.fam-trio-card{
  position:relative;padding:0 40px 0 40px;
  display:flex;flex-direction:column;gap:16px;
  background:transparent;border:0;border-radius:0;box-shadow:none;
}
.fam-trio-card + .fam-trio-card::before{
  content:"";position:absolute;left:0;top:-4px;bottom:0;
  width:1px;background:rgba(24,48,37,.18);
}
.fam-trio-card:hover{transform:none;box-shadow:none;}

.fam-trio-num{
  font-family:'DM Sans',sans-serif;font-weight:200;
  font-size:46px;line-height:.85;letter-spacing:-.045em;color:var(--forest);
  opacity:1;
}
.fam-trio-tag{
  align-self:flex-start;width:fit-content;
  padding:7px 14px;border-radius:var(--radius-pill);
  background:var(--accent);color:var(--forest);
  font-size:11.5px;font-weight:700;letter-spacing:.10em;text-transform:uppercase;line-height:1;
}
.fam-trio-card h3{
  margin:0;font-weight:300;font-size:clamp(26px,2.5vw,34px);
  line-height:1.12;letter-spacing:-.018em;color:var(--forest);max-width:none;
}
.fam-trio-card h3 em{
  font-style:normal;background:var(--lime);color:var(--forest);
  padding:0 12px;border-radius:var(--radius-pill);
  line-height:inherit;display:inline;
  -webkit-box-decoration-break:clone;box-decoration-break:clone;
}
.fam-trio-card p{
  margin:4px 0 0;font-size:15.5px;line-height:1.6;color:var(--ink-2);
  max-width:36ch;
}

@media (max-width:920px){
  .fam-trio{grid-template-columns:1fr;border-top:none;padding-top:0;}
  .fam-trio-card{
    padding:32px 0;border-top:1px solid rgba(24,48,37,.18);
  }
  .fam-trio-card + .fam-trio-card{padding:32px 0;}
  .fam-trio-card + .fam-trio-card::before{display:none;}
}


/* ===== About the Care Check (clinical credibility module) ===== */
.fam-carecheck{
  background:var(--surface);
  padding:var(--section-pad) 0;
  position:relative;
}
.fam-carecheck-head{display:flex;flex-direction:column;gap:18px;max-width:880px;margin:0 0 56px;text-align:left;align-items:flex-start;}
.fam-carecheck-head .eyebrow{align-self:flex-start;}
.fam-carecheck-head h2{margin:0;color:var(--forest);}

.fam-carecheck-grid{
  display:grid;grid-template-columns:1.05fr 1fr;gap:64px;align-items:start;
}
.fam-carecheck-body p{
  margin:0;font-size:18px;line-height:1.65;color:var(--ink-2);max-width:54ch;
}
.fam-carecheck-body p + p{margin-top:18px;}

.fam-carecheck-card{
  background:var(--surface-2);border-radius:var(--radius-card);
  padding:28px 32px;
  display:flex;flex-direction:column;gap:6px;
  box-shadow:var(--shadow-1);
}
.fam-carecheck-label{
  font-family:'JetBrains Mono','SF Mono',ui-monospace,monospace;
  font-size:11.5px;letter-spacing:.14em;text-transform:uppercase;font-weight:500;
  color:var(--ink-3);
  padding-bottom:14px;margin-bottom:4px;
  border-bottom:1.5px solid var(--line-soft);
}
.fam-carecheck-list{
  list-style:none;margin:0;padding:0;
  display:flex;flex-direction:column;
}
.fam-carecheck-list li{
  display:flex;flex-direction:column;gap:4px;
  padding:14px 0;border-bottom:1px dashed var(--line-soft);
}
.fam-carecheck-list li:last-child{border-bottom:0;}
.fam-carecheck-name{
  font-size:18px;font-weight:600;color:var(--forest);letter-spacing:-.008em;
}
.fam-carecheck-meta{
  font-size:14px;color:var(--ink-2);line-height:1.4;
}

.fam-carecheck-note{
  margin:48px auto 0;
  max-width:880px;
  display:grid;grid-template-columns:auto 1fr;gap:18px;align-items:flex-start;
  background:var(--tan);position:relative;
  border-radius:var(--radius-card);padding:24px 28px;
  overflow:hidden;
}
.fam-carecheck-note::before{
  content:"";position:absolute;inset:0;
  background:url('../assets/texture-sun.png') center/700px 700px;
  opacity:.18;mix-blend-mode:multiply;pointer-events:none;
}
.fam-carecheck-note > *{position:relative;z-index:1;}
.fam-carecheck-note-tag{
  font-family:'JetBrains Mono','SF Mono',ui-monospace,monospace;
  font-size:11.5px;letter-spacing:.12em;text-transform:uppercase;font-weight:600;
  color:var(--yellow-deep);
  padding:5px 12px;border-radius:var(--radius-pill);
  background:rgba(255,255,255,.7);box-shadow:inset 0 0 0 1.5px var(--yellow-deep);
  align-self:flex-start;white-space:nowrap;
}
.fam-carecheck-note p{
  margin:0;font-size:15.5px;line-height:1.6;color:var(--ink-2);
}

@media (max-width:920px){
  .fam-carecheck{padding:var(--section-pad-sm) 0;}
  .fam-carecheck-head{text-align:left;align-items:flex-start;}
  .fam-carecheck-head .eyebrow{align-self:flex-start;}
  .fam-carecheck-grid{grid-template-columns:1fr;gap:40px;}
  .fam-carecheck-note{grid-template-columns:1fr;gap:12px;margin-top:36px;}
  .fam-carecheck-note-tag{align-self:flex-start;}
}

/* ===== Privacy callout (dark forest module inside tan section) ===== */
.fam-privacy{
  margin:32px 0 0;
  display:grid;grid-template-columns:auto 1fr;gap:22px;align-items:flex-start;
  background:var(--forest);color:var(--on-dark);
  border-radius:var(--radius-card);padding:30px 36px;
  position:relative;overflow:hidden;
}
.fam-privacy::before{
  content:"";position:absolute;inset:0;
  background:url('../assets/texture-darkgreen.png') center/500px 500px;
  mix-blend-mode:screen;opacity:.4;pointer-events:none;
}
.fam-privacy-icon{
  width:44px;height:44px;border-radius:50%;
  background:rgba(177,214,117,.18);color:var(--lime);
  display:flex;align-items:center;justify-content:center;flex:0 0 44px;
  position:relative;z-index:1;
}
.fam-privacy-icon svg{width:22px;height:22px;}
.fam-privacy-body{position:relative;z-index:1;}
.fam-privacy-body b{
  color:var(--lime);font-weight:600;display:block;margin-bottom:6px;
  font-size:12.5px;letter-spacing:.08em;text-transform:uppercase;
}
.fam-privacy-body p{margin:0;font-size:15.5px;line-height:1.65;color:var(--on-dark-mute);max-width:74ch;}
.fam-privacy-chip{
  display:inline-flex;align-items:center;gap:8px;margin-top:14px;
  padding:7px 14px;border-radius:var(--radius-pill);
  background:transparent;box-shadow:inset 0 0 0 1.5px var(--lime);
  color:var(--lime);font-size:12px;font-weight:600;letter-spacing:.10em;text-transform:uppercase;line-height:1;
}
.fam-privacy-chip::before{
  content:"";width:6px;height:6px;border-radius:50%;background:var(--lime);
}
.fam-cta{display:flex;justify-content:center;margin-top:48px;}

@media (max-width:920px){
  .fam-privacy{grid-template-columns:1fr;padding:24px;gap:14px;}
}

/* ===== Kid Note — bulleted list + phone mock ===== */
.fam-kid-list{list-style:none;margin:8px 0 18px;padding:0;display:flex;flex-direction:column;gap:14px;}
.fam-kid-list li{
  position:relative;padding-left:28px;
  font-size:17px;line-height:1.55;color:var(--ink-2);
}
.fam-kid-list li::before{
  content:"";position:absolute;left:0;top:9px;
  width:10px;height:10px;border-radius:50%;background:var(--lime-deep);
}

/* Phone mock — sits inside problem-media; emulates a Care Hub screen */
.fam-kid-mock{
  width:100%;max-width:380px;margin:0 auto;
  background:var(--surface);
  border-radius:32px;padding:22px 20px 22px;
  box-shadow:0 30px 60px -28px rgba(24,48,37,.35),
             0 6px 14px -8px rgba(24,48,37,.18),
             inset 0 0 0 1px rgba(24,48,37,.06);
  display:flex;flex-direction:column;gap:16px;
  position:relative;
}
.fam-kid-top{display:flex;justify-content:space-between;align-items:center;}
.fam-kid-brand{
  display:inline-flex;align-items:center;gap:8px;
  padding:6px 12px 6px 10px;border-radius:var(--radius-pill);
  background:var(--lime);color:var(--forest);
  font-size:12.5px;font-weight:600;
}
.fam-kid-brand img{display:block;}
.fam-kid-dot{
  width:8px;height:8px;border-radius:50%;background:var(--lime-deep);
  box-shadow:0 0 0 4px rgba(177,214,117,.25);
}
.fam-kid-q{font-weight:500;font-size:18px;color:var(--forest);line-height:1.25;letter-spacing:-.014em;}
.fam-kid-chips{display:flex;flex-wrap:wrap;gap:6px;}
.fam-kid-chip{
  padding:7px 13px;border-radius:var(--radius-pill);
  font-size:12.5px;font-weight:500;
  background:var(--surface-2);color:var(--forest);
  box-shadow:inset 0 0 0 1px var(--line);
  border:0;cursor:pointer;font-family:inherit;
  transition:transform .18s var(--ease-out),background .18s,color .18s,box-shadow .18s;
}
.fam-kid-chip:hover{transform:translateY(-1px);}
.fam-kid-chip.fam-kid-chip-on{background:var(--lime);color:var(--forest);box-shadow:none;}

.fam-kid-card{
  background:var(--tan);border-radius:16px;
  padding:14px;display:flex;flex-direction:column;gap:10px;
}
.fam-kid-card-head{display:flex;justify-content:space-between;align-items:center;}
.fam-kid-tag{
  font-size:11px;font-weight:600;letter-spacing:.10em;text-transform:uppercase;
  color:var(--forest);opacity:.7;
  transition:opacity .2s var(--ease-out);
}
.fam-kid-fav{
  background:transparent;border:0;cursor:pointer;
  font-size:18px;color:var(--ink-3);line-height:1;padding:2px 4px;
  transition:transform .18s var(--ease-out),color .18s;
}
.fam-kid-fav:hover{transform:scale(1.15);color:var(--forest);}
.fam-kid-fav.is-on{color:#D04A56;animation:famFavPop .35s var(--ease-out);}
@keyframes famFavPop{
  0%{transform:scale(1);}50%{transform:scale(1.35);}100%{transform:scale(1);}
}
.fam-kid-title{
  font-weight:500;font-size:15px;color:var(--forest);line-height:1.32;letter-spacing:-.005em;
  transition:opacity .2s var(--ease-out);
}
.fam-kid-thumb{position:relative;height:110px;border-radius:10px;overflow:hidden;background:var(--forest);}
.fam-kid-thumb-tex{
  position:absolute;inset:0;
  background:url('../assets/texture-darkgreen.png') center/400px 400px;
  mix-blend-mode:screen;opacity:.55;
}
.fam-kid-play{
  position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
  width:38px;height:38px;border-radius:50%;background:var(--lime);
  display:flex;align-items:center;justify-content:center;
  color:var(--forest);font-size:12px;padding-left:3px;
}
.fam-kid-types{
  display:flex;flex-wrap:wrap;gap:5px;margin-top:6px;
  padding-top:10px;border-top:1px dashed rgba(24,48,37,.18);
}
.fam-kid-type{
  padding:4px 9px;border-radius:var(--radius-pill);
  font-size:10.5px;font-weight:600;letter-spacing:.04em;
  color:var(--forest);opacity:.5;
  box-shadow:inset 0 0 0 1px var(--line);
}
.fam-kid-type-on{background:var(--forest);color:var(--lime);opacity:1;box-shadow:none;}

.fam-kid-send{
  width:100%;background:transparent;cursor:pointer;
  font-family:inherit;border:0;border-top:1px dashed var(--line);
  display:flex;align-items:center;justify-content:center;gap:8px;
  font-size:13px;color:var(--forest);font-weight:500;
  padding:10px 0 0;transition:color .2s;
}
.fam-kid-send-icon{color:var(--lime-deep);font-weight:700;}
.fam-kid-send.is-sent{color:var(--lime-deep);}
.fam-kid-send.is-sent .fam-kid-send-icon{animation:famSentSlide .8s var(--ease-out);}
@keyframes famSentSlide{
  0%{transform:translate(0,0);opacity:1;}
  60%{transform:translate(24px,-24px);opacity:0;}
  100%{transform:translate(0,0);opacity:1;}
}

/* When the phone mock is INSIDE .problem-media, drop the photo styling
   and the texture corner-peel decoration. */
.fam-kid .problem-media{display:flex;align-items:center;justify-content:center;}
.fam-kid .problem-media::before{display:none;}

/* ===== Want BridgeWell — two paths cards ===== */
.fam-advocate-layout{
  display:grid;grid-template-columns:1.05fr 1fr;gap:64px;
  align-items:center;margin-bottom:56px;
}
.fam-advocate-media{position:relative;}
.fam-advocate-photo{
  width:100%;aspect-ratio:5/4;
  background-size:cover;background-position:center;
  border-top-left-radius:48% 38%;
  border-top-right-radius:18px;
  border-bottom-left-radius:18px;
  border-bottom-right-radius:48% 38%;
  box-shadow:var(--shadow-1);
}
@media (max-width:920px){
  .fam-advocate-layout{grid-template-columns:1fr;gap:40px;margin-bottom:40px;}
  .fam-advocate-photo{aspect-ratio:16/10;}
}

.fam-paths{
  display:grid;grid-template-columns:1fr;gap:24px;max-width:720px;margin:0 auto;align-items:stretch;
}
.fam-path{
  background:var(--surface);border-radius:24px;
  padding:36px 36px 36px;
  border:1px solid var(--line-soft);
  box-shadow:var(--shadow-1);
  display:flex;flex-direction:column;gap:16px;align-items:center;
  position:relative;overflow:hidden;text-align:center;
}
.fam-path-tag{
  align-self:center;
  padding:8px 16px;border-radius:var(--radius-pill);
  background:var(--lime);color:var(--forest);
  font-size:11.5px;font-weight:600;letter-spacing:.10em;text-transform:uppercase;line-height:1;
}
.fam-path-tag-alt{background:transparent;color:var(--forest);box-shadow:inset 0 0 0 1.5px var(--forest);}
.fam-path h3{
  margin:0 auto;font-weight:500;font-size:clamp(22px,2vw,28px);
  line-height:1.22;color:var(--forest);letter-spacing:-.014em;max-width:24ch;text-align:center;
}
.fam-path p{margin:0 auto;font-size:15.5px;line-height:1.65;color:var(--ink-2);max-width:44ch;text-align:center;}
.fam-path .btn{align-self:center;margin-top:8px;}

/* Form variant of fam-path — left-aligned, taller */
.fam-path-form{text-align:left;padding:32px 32px 28px;align-items:stretch;}
.fam-path-form h3,
.fam-path-form > p{text-align:left;margin:0;max-width:none;align-self:stretch;}
.fam-path-form h3{margin-bottom:6px;}
.fam-path-form > p{margin-bottom:8px;}
.fam-path-form .fam-path-tag{align-self:flex-start;}
.fam-path-form .btn{align-self:flex-start;}

.fam-form{display:flex;flex-direction:column;gap:14px;margin-top:6px;}

/* ===== Photo frame in Universal Truth section — carved-corner rectangle
   (matches the /providers/ .pn-prob-photo shape) ===== */
#families-at-bridgewell-schools .problem-photo{
  aspect-ratio:4/5;
  border-radius:18px;
  border-top-left-radius:58% 38%;
}
#families-at-bridgewell-schools .problem-media::before{
  /* Drop the organic ring; the carved corner does the visual work now */
  display:none;
}
.fam-form-status{
  margin:6px 0 0;font-size:13.5px;line-height:1.5;color:var(--ink-3);
  padding:10px 14px;border-radius:10px;background:var(--surface-2);
  border:1px solid var(--line-soft);
}
.fam-form-status.is-error{color:var(--yellow-deep);background:rgba(242,199,92,.12);border-color:rgba(156,106,26,.25);}
.fam-form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
.fam-form label,
.fam-form-msg{
  display:flex;flex-direction:column;gap:6px;
  font-size:12px;font-weight:600;color:var(--forest);
  letter-spacing:.06em;text-transform:uppercase;
}
.fam-form .opt{font-weight:400;text-transform:none;letter-spacing:0;color:var(--ink-3);font-size:11.5px;font-style:italic;}
.fam-form input,.fam-form textarea{
  font-family:inherit;font-size:15px;padding:12px 14px;
  border-radius:var(--radius-md);
  border:1.5px solid var(--line);background:var(--surface);
  color:var(--forest);font-weight:400;
  text-transform:none;letter-spacing:0;
  transition:border-color .18s,box-shadow .18s;
}
.fam-form input:focus,.fam-form textarea:focus{
  outline:none;border-color:var(--forest);
  box-shadow:0 0 0 4px rgba(177,214,117,.30);
}
.fam-form textarea{resize:vertical;}
.fam-form button{align-self:flex-start;margin-top:6px;}

@media (max-width:920px){
  .fam-paths{grid-template-columns:1fr;}
  .fam-form-row{grid-template-columns:1fr;}
}

/* ===== Plain language body ===== */
.fam-plain{display:flex;flex-direction:column;gap:22px;max-width:760px;}
.fam-plain p{margin:0;font-size:19px;line-height:1.7;color:var(--ink-2);}

/* ===== Final CTA em color (lime, matches home) ===== */
.finalcta h2 em{color:var(--lime);}
