/* ============================================================================
   FRANKLIN MEDICAL CENTER — site layer on top of Mesh UI 2.0
   Only additions / brand-theming. All structure & rhythm come from the Mesh
   design system CSS (colors_and_type.css, mesh.css, kit.css, library.css).
   No drop shadows — depth via solid color fields, imagery, scrims, hairlines.
   ========================================================================== */

/* ── Franklin brand theme: re-skin Mesh semantic tokens ──────────────────── */
:root {
  --accent:        rgb(2 56 53);     /* Franklin deep brand teal              */
  --accent-deep:   rgb(1 38 36);
  --accent-bright: rgb(0 107 95);
  --accent-wash:   rgb(235 246 244);
  --eyebrow:       rgb(2 56 53);
  --surface-inverse: rgb(2 56 53);
  --display-family: var(--font-brand);   /* Figtree — matches the mockup's sans display */
  --display-weight: 800;
  --fmc-bill:      rgb(193 78 24);   /* warm "Bill Pay" accent from the mockup */
}

html { scroll-behavior: smooth; }
body.mesh { background: var(--surface-0); margin: 0; }

/* Shared page max so heroes & sections align with the guard */
.fmc-page { background: var(--surface-0); }

/* ════════════════════════════ NAVBAR (full teal header) ═══════════════════ */
.nav { background: var(--accent); position: sticky; top: 0; }
.nav__utility { background: var(--accent); border-bottom: 1px solid rgb(255 255 255 / 0.14); }
.nav__bar { background: var(--accent); }
.nav__bar-inner { height: 92px; gap: 30px; }
.nav__brand { height: 50px; }
.nav__brand img { height: 100%; }
.nav__links { gap: 30px; flex-wrap: nowrap; }
.nav__link { color: #fff; font-size: 17px; font-weight: 500; position: relative; white-space: nowrap; }
.nav__link:hover,
.nav__item[data-open="true"] > .nav__link { color: #fff; opacity: 0.78; }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px; background: #fff; border-radius: 2px 2px 0 0;
}
.nav__chevron { color: inherit; }
.nav__util-link { font-size: 16px; }
.nav__util-link--accent { background: #fff; color: var(--accent); font-weight: 600; }
.nav__util-link--accent:hover { background: rgb(255 255 255 / 0.9); }
.nav__util-link--plain { color: #fff; }
.nav__util-link--plain:hover { color: rgb(255 255 255 / 0.78); }
.nav__util-sep { width: 1px; height: 26px; background: rgb(255 255 255 / 0.28); }

/* Left-justify the primary nav so it sits beside the logo */
.nav__links { margin-left: 0; }
.nav__socials { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: 0 0 auto; }
.fmc-soc {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--r-pill);
  border: 1px solid rgb(255 255 255 / 0.32); color: #fff; font-size: 17px;
  text-decoration: none; transition: background-color 140ms ease;
}
.fmc-soc:hover { background: rgb(255 255 255 / 0.14); }
.nav__burger { color: #fff; border-color: rgb(255 255 255 / 0.4); }

/* Services mega — keep the kit's white panel, brand the heads */
.nav__mega { border-top: 1px solid rgb(255 255 255 / 0.18); }

/* mobile drawer (vanilla) */
.nav__drawer { display: none; }
@media (max-width: 1200px) {
  .nav__drawer[data-open="true"] {
    display: flex; flex-direction: column; gap: 4px;
    background: var(--accent-deep); padding: 14px var(--gutter) 22px;
  }
  .nav__drawer a, .nav__drawer button {
    color: #fff; text-decoration: none; font-size: 18px; font-weight: 500;
    padding: 14px 6px; border-bottom: 1px solid rgb(255 255 255 / 0.12);
  }
  .nav__drawer-label {
    color: rgb(255 255 255 / 0.55); font-size: 12px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase; padding: 18px 6px 6px;
  }
}

/* ════════════════════════════ HERO ════════════════════════════════════════
   Reuses .mhero from the library; data-hero on the section swaps the treatment.
   Variant is driven by the Tweaks panel. */
.fmc-hero { --fmc-hero-min: clamp(560px, 56vw, 760px); }
.fmc-hero.mhero { min-height: var(--fmc-hero-min); }
.fmc-hero .mhero__title { font-family: var(--display-family); }
.fmc-hero .mhero__eyebrow { font-weight: 600; font-size: clamp(18px,1.7vw,24px); letter-spacing: 0.01em; }
.fmc-hero .mhero__actions { margin-top: 16px; }

/* Tighter vertical rhythm between hero elements (applies to every hero) */
.fmc-hero .mhero__content { gap: clamp(7px, 0.7vw, 11px); }

/* Home hero: let the headline span the full content-guard width */
.fmc-hero[data-hero="scrim"]:not(.fmc-hero--brand) .mhero__content { max-width: none; }
.fmc-hero[data-hero="scrim"]:not(.fmc-hero--brand) .mhero__title { text-wrap: balance; }

/* Interior (brand) heroes: headline also spans the full content-guard width */
.fmc-hero--brand .mhero__content { max-width: none; }
.fmc-hero--brand .mhero__media img { object-position: top; }

/* primary white + secondary solid-accent buttons */
.fmc-hero .fmc-btn-portal { background: #fff; color: var(--accent); }
.fmc-hero .fmc-btn-portal:hover { background: rgb(255 255 255 / 0.9); }
.fmc-hero .fmc-btn-svc { background: var(--accent); color: #fff; }
.fmc-hero .fmc-btn-svc:hover { background: var(--accent-deep); }

/* default scrim already from .mhero__media::after.  Brand-teal scrim for interior heroes */
.fmc-hero--brand .mhero__media::after {
  background: linear-gradient(7deg, var(--accent) 4%, rgb(2 56 53 / 0.55) 48%, rgb(2 56 53 / 0.12) 100%);
}

/* Home hero scrim — corner-anchored darkening for legible white headline */
.fmc-hero[data-hero="scrim"]:not(.fmc-hero--brand) .mhero__media::after {
  background: linear-gradient(224deg, rgba(0, 0, 0, 0.00) 24.71%, #000 106.13%);
}

/* Variant: solid band (no image) */
.fmc-hero[data-hero="solid"] .mhero__media { display: none; }
.fmc-hero[data-hero="solid"] { background: var(--accent); min-height: clamp(420px, 42vw, 560px); }
.fmc-hero[data-hero="solid"] .mhero__title,
.fmc-hero[data-hero="solid"] .mhero__eyebrow,
.fmc-hero[data-hero="solid"] .mhero__body { color: #fff; }

/* Variant: panel (image band + content sits in a flush bottom panel) */
.fmc-hero[data-hero="panel"] { color: var(--fg-1); }
.fmc-hero[data-hero="panel"] .mhero__media::after { display: none; }
.fmc-hero[data-hero="panel"] .mhero__inner { align-items: flex-end; }
.fmc-hero[data-hero="panel"] .mhero__content {
  background: var(--surface-0); padding: clamp(28px,3.4vw,52px);
  border-radius: var(--r-panel) var(--r-panel) 0 0; max-width: 820px;
}
.fmc-hero[data-hero="panel"] .mhero__title { color: var(--fg-1); }
.fmc-hero[data-hero="panel"] .mhero__eyebrow { color: var(--eyebrow); }
.fmc-hero[data-hero="panel"] .mhero__body { color: var(--fg-2); }

/* Tablet + mobile (≤1024): hero CTA buttons hidden entirely */
@media (max-width: 1024px) {
  .fmc-hero .mhero__actions { display: none !important; }
}
/* Mobile (≤768): landing headers show the image as a band on top, text below */
@media (max-width: 768px) {
  .fmc-hero.mhero { display: block; min-height: 0; overflow: visible; background: var(--surface-1); }
  .fmc-hero .mhero__media { position: relative; inset: auto; width: 100%; aspect-ratio: 16 / 10; height: auto; display: block; }
  .fmc-hero .mhero__media img { width: 100%; height: 100%; object-fit: cover; }
  .fmc-hero .mhero__media::after { display: none; }
  .fmc-hero .mhero__inner { position: static; display: block; padding-block: clamp(22px, 6vw, 42px); }
  .fmc-hero .mhero__content { max-width: none; }
  .fmc-hero .mhero__title,
  .fmc-hero .mhero__body { color: var(--fg-1); }
  .fmc-hero .mhero__eyebrow { color: var(--eyebrow); }
  /* solid variant has no image: keep its text white on the teal field */
  .fmc-hero[data-hero="solid"] { min-height: 0; background: var(--accent); padding-block: clamp(40px,9vw,64px); }
  .fmc-hero[data-hero="solid"] .mhero__media { display: none; }
  .fmc-hero[data-hero="solid"] .mhero__title,
  .fmc-hero[data-hero="solid"] .mhero__eyebrow,
  .fmc-hero[data-hero="solid"] .mhero__body { color: #fff; }
}

/* ════════════════════ QUICK ACTIONS — Font Awesome glyphs ══════════════════ */
.qa__icon.fa-solid { font-size: 56px; line-height: 1; }
.qa__item { gap: 16px; }
/* the mockup's Bill Pay warm accent + Patient Portal solid teal */
.qa__btn--bill { background: var(--fmc-bill); color: #fff; border: 0; }
.qa__btn--bill:hover { background: rgb(168 66 18); }
/* Bill Pay quick-action icon matches its orange "Visit Now" button */
.qa__grid .qa__item:nth-child(4) .qa__icon { color: var(--fmc-bill); }

/* ════════════════════ OUR SERVICES — dark link directory ═══════════════════
   The kit LinkDirectory on a brand-teal field. */
.fmc-services-band { background: var(--accent); color: #fff; }
.fmc-services-band .tdir__title,
.fmc-services-band .eyebrow { color: #fff; }
.fmc-services-band .tdir__body { color: rgb(255 255 255 / 0.86); }
.fmc-services-band .tdir__link { color: #fff; text-decoration-color: rgb(255 255 255 / 0.4); }
.fmc-services-band .tdir__link:hover { text-decoration-color: #fff; }
.fmc-services-band .mesh-btn--primary { background: #fff; color: var(--accent); }
.fmc-services-band .mesh-btn--primary:hover { background: rgb(255 255 255 / 0.9); }

/* ════════════════════ 2-BUTTON SPLIT / BLOCKED actions ═════════════════════ */
.fmc-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 26px; }

/* ════════════════════ DOCTOR PROFILE (frame 5) ═════════════════════════════ */
.fmc-profile { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px,5vw,80px); align-items: start; }
.fmc-profile__photo { border-radius: var(--r-card); overflow: hidden; background: var(--surface-2); aspect-ratio: 1/1.04; }
.fmc-profile__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fmc-profile__spec { color: var(--accent); font-weight: 700; font-size: clamp(20px,1.8vw,26px); margin: 0 0 6px; }
.fmc-profile__name { font-family: var(--display-family); font-weight: 800; font-size: clamp(36px,4vw,56px); line-height: 1.05; margin: 0 0 22px; }
.fmc-profile__bio { font-size: clamp(17px,1.4vw,21px); line-height: 1.75; color: var(--fg-2); }
.fmc-profile__bio p { margin: 0 0 20px; }
.fmc-profile__meta { display: flex; flex-direction: column; gap: 16px; margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--border); }
.fmc-profile__meta-row { display: flex; gap: 14px; align-items: baseline; font-size: 18px; color: var(--fg-2); }
.fmc-profile__meta-row i { color: var(--accent); width: 22px; text-align: center; flex: 0 0 22px; }
@media (max-width: 860px){ .fmc-profile{ grid-template-columns: 1fr; } }

/* service-detail extras (provider layout, content-rich) */
.fmc-profile__bio .svc-subhead { font-weight: 700; color: var(--fg-1); font-size: clamp(18px,1.5vw,21px); margin: 6px 0 10px; }
.fmc-profile__bio ul { margin: 4px 0 22px; padding-left: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px; }
.fmc-profile__bio ul li { position: relative; padding-left: 28px; font-size: clamp(15px,1.2vw,18px); line-height: 1.55; color: var(--fg-2); }
.fmc-profile__bio ul li::before { content: "\2713"; position: absolute; left: 0; top: 1px; color: var(--accent); font-weight: 800; }
.fmc-profile__bio ul.svc-list--single { grid-template-columns: 1fr; }
.svc-team { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--border); }
.svc-team__label { font-weight: 700; color: var(--fg-1); font-size: 16px; margin: 0 0 12px; }
.svc-team__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.svc-team__chip { padding: 9px 16px; border-radius: var(--r-pill); background: var(--accent-wash); color: var(--accent-deep); font-weight: 600; font-size: 14.5px; }
a.glist__cell, button.glist__cell { text-decoration: none; color: inherit; transition: color 140ms ease; }
a.glist__cell:hover, button.glist__cell:hover { color: var(--accent); }
a.glist__cell:hover .glist__label, button.glist__cell:hover .glist__label { color: var(--accent); }
/* The "Online Bill Payment" cell is a <button> (JS-only Converge launch, like the
   nav/footer "Pay Your Bill"), so strip the UA button chrome to match the anchor cells. */
button.glist__cell { appearance: none; -webkit-appearance: none; border: 0; margin: 0; padding: 0; width: 100%; font: inherit; text-align: left; cursor: pointer; }

/* Board Meeting Notices & Agendas — plain list of document links (archive-wpfsite_minutes.php). */
.doclist { list-style: none; margin: 0; padding: 0; }
.doclist__item { border-bottom: 1px solid rgb(0 0 0 / 0.08); }
.doclist__item:first-child { border-top: 1px solid rgb(0 0 0 / 0.08); }
.doclist__link { display: flex; align-items: baseline; gap: 14px; padding: 16px 4px; color: var(--fg-1); text-decoration: none; transition: color 140ms ease; }
.doclist__link:hover { color: var(--accent); }
.doclist__link--empty { cursor: default; color: var(--fg-3); }
.doclist__icon { font-size: 18px; color: var(--accent); flex: none; width: 22px; text-align: center; }
.doclist__label { font-weight: 600; font-size: clamp(15px,1.1vw,17px); line-height: 1.4; }

/* ════════════════════ PATIENT PORTAL ══════════════════════════════════════ */
.pp-apps { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.pp-app { display: inline-flex; align-items: center; gap: 11px; padding: 12px 20px; border-radius: var(--r-pill); border: 1px solid var(--border); color: var(--fg-1); text-decoration: none; font-weight: 600; font-size: 15px; transition: border-color 140ms ease, color 140ms ease; }
.pp-app i { font-size: 24px; color: var(--accent); }
.pp-app:hover { border-color: var(--accent); color: var(--accent); }
.pp-eyebrow-sm { margin-top: 26px; margin-bottom: 0; color: var(--fg-3); font-size: 14px; font-weight: 600; }

/* centered FAQ accordion — Mesh card style (rounded surfaces, gap, no dividers) */
.acc { max-width: 940px; margin-inline: auto; display: flex; flex-direction: column; gap: 16px; }
.acc__item > article { background: var(--c-white); border-radius: var(--r-card); overflow: hidden; }
.acc__trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: clamp(22px,2.4vw,30px) clamp(24px,3vw,36px); background: none; border: 0; cursor: pointer; text-align: left; font-family: inherit; }
.acc__q { font-size: clamp(19px,1.7vw,23px); font-weight: 700; color: var(--fg-1); }
.acc__icon { color: var(--accent); font-size: 20px; flex: 0 0 auto; transition: transform 300ms ease; }
.acc__item[data-open="true"] .acc__icon { transform: rotate(180deg); }
.acc__panel { overflow: hidden; }
.acc__answer { padding: 0 clamp(24px,3vw,36px) clamp(24px,2.8vw,32px); font-size: clamp(16px,1.3vw,18px); line-height: 1.8; color: var(--fg-2); margin: 0; }
.acc__answer a { color: var(--accent); font-weight: 600; }
@media (max-width: 560px){ .fmc-profile__bio ul { grid-template-columns: 1fr; } }

/* ════════════════════ ROSTER placeholder cards (Unnamed Staff) ═════════════ */
.roster__photo--empty { display: grid; place-items: center; background: var(--accent-wash); }
.roster__photo--empty i { font-size: 64px; color: color-mix(in srgb, var(--accent) 36%, white); }

/* ════════════════════ ACCORDION chevron (rotate; FA renders as SVG) ════════ */
.acc__icon, .sacc__icon { transition: transform 300ms ease; }
.acc__item[data-open="true"] .acc__icon,
.sacc__item[data-open="true"] .sacc__icon { transform: rotate(180deg); }
/* FA SVG sizing safety: svgs inherit the icon font-size as height */
.mesh-btn__icon svg, .qa__icon svg, .nav__chevron svg, .acc__icon svg, .sacc__icon svg { height: 1em; width: auto; }

/* ════════════════════ SECTION INTRO heading (display sans) ═════════════════ */
.fmc-h2 { font-family: var(--display-family); }

/* ════════════════════ FAQ split-accordion media ═══════════════════════════
   Constrain the photo to the left band and anchor it top-left, WITHOUT moving
   the gradient overlay (which stays full-width on .sacc__media). Desktop only. */
@media (min-width: 1121px) {
  .sacc__media img { width: 56%; }
}
.sacc__media img { object-position: left top; }

/* ════════════════════ INTRO / reasoning block (only on index intro) ════════ */
.fmc-note { background: var(--surface-1); border-radius: var(--r-card); padding: clamp(24px,3vw,40px); }

/* ════════════════════ services mega-menu: 4 category columns ═══════════════ */
/* Feature image removed — link columns span the full panel width */
.nav__mega-grid { grid-template-columns: 1fr; }
.nav__mega-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.4vw, 44px); }
.nav__mega-col { display: flex; flex-direction: column; gap: 13px; }
.nav__mega-col a { font-size: 18px; line-height: 1.55; }
.nav__mega-head { font-size: 19px; white-space: nowrap; display: flex; align-items: center; gap: 10px; }
.nav__mega-icon { color: var(--accent); font-size: 20px; flex: 0 0 auto; }

/* Smaller desktops: keep link columns full width */
@media (max-width: 1400px){
  .nav__mega-cols { gap: clamp(16px, 1.6vw, 28px); }
}

/* Header stays sticky at EVERY breakpoint */
.nav { position: sticky; top: 0; z-index: 40; }
/* Collapse to hamburger earlier so primary links never wrap */
@media (max-width: 1200px){
  .nav__links { display: none; }
  .nav__burger { display: inline-flex; margin-left: auto; }
  .nav__mega-grid { grid-template-columns: 1fr; }
  .nav__socials { display: none; }
  /* tablet top ribbon: right-group links collapse to icons-only (no wrap) */
  .nav__util-link--plain span { display: none; }
  .nav__util-link--plain { padding-inline: 9px; }
  .nav__util-link--plain i { font-size: 18px; }
}

/* ════════════════════════════ PARISH SERVICES ═════════════════════════════
   Community resource directory. Jump-nav chips → emergency band → category
   sections of white resource cards. All Mesh vocabulary, no shadows. */
.ps-intro { padding-bottom: 0; }
.ps-jump { display: flex; flex-wrap: wrap; gap: 10px; }
.ps-jump a {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 18px; border-radius: var(--r-pill);
  background: var(--c-white); border: 1px solid var(--border);
  color: var(--fg-1); font-weight: 600; font-size: 15px; text-decoration: none;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}
.ps-jump a i { font-size: 13px; color: var(--accent); transition: color 140ms ease; }
.ps-jump a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.ps-jump a:hover i { color: #fff; }

/* anchor offset so the sticky header doesn't cover section titles */
.ps-section { scroll-margin-top: 150px; }

/* category section header: icon tile + display title */
.ps-head { display: flex; align-items: center; gap: 18px; margin-bottom: clamp(24px, 3vw, 38px); }
.ps-head__icon {
  flex: 0 0 auto; color: var(--accent);
  display: grid; place-items: center; font-size: 33px;
}
.ps-head h2 { margin: 0; }
.ps-head__count { margin-left: auto; color: var(--fg-3); font-size: 15px; font-weight: 600; white-space: nowrap; }

/* resource cards */
.ps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(322px, 1fr)); gap: 20px; }
.ps-card {
  background: var(--c-white);
  border-radius: var(--r-card); padding: clamp(22px, 2vw, 28px);
  display: flex; flex-direction: column;
}
.ps-card__name { font-weight: 700; font-size: 19px; line-height: 1.3; color: var(--fg-1); }
.ps-card__detail { color: var(--accent); font-weight: 600; font-size: 14px; line-height: 1.5; margin-top: 5px; }
.ps-card__addr { color: var(--fg-2); font-size: 15px; line-height: 1.7; margin-top: 14px; font-style: normal; }
.ps-card__contact { margin-top: auto; padding-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.ps-card__phone { display: inline-flex; align-items: center; gap: 11px; color: var(--accent); font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; }
.ps-card__phone i { font-size: 14px; flex: 0 0 auto; }
.ps-card__phone:hover { color: var(--accent-deep); text-decoration: underline; }
.ps-card__link { display: inline-flex; align-items: center; gap: 11px; color: var(--fg-2); font-size: 14px; text-decoration: none; word-break: break-word; }
.ps-card__link i { font-size: 13px; color: var(--accent); flex: 0 0 auto; }
.ps-card__link:hover { color: var(--accent); }
.ps-card__note { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 13px; color: var(--fg-3); }
.ps-card__meta { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.ps-card__meta-row { font-size: 13.5px; color: var(--fg-2); line-height: 1.5; }
.ps-card__meta-row b { color: var(--fg-1); font-weight: 700; }

/* emergency band: urgent numbers on brand teal */
.ps-emerg { background: var(--accent); color: #fff; }
.ps-emerg__grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 5vw, 72px); }
.ps-emerg__row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 15px 0; border-bottom: 1px solid rgb(255 255 255 / 0.16);
}
.ps-emerg__label { font-size: 16px; color: rgb(255 255 255 / 0.9); }
.ps-emerg__num { font-weight: 700; font-size: 18px; color: #fff; text-decoration: none; white-space: nowrap; }
.ps-emerg__num:hover { text-decoration: underline; }
.ps-emerg__row--urgent .ps-emerg__num { color: #fff; font-size: 22px; }
.ps-emerg__row--urgent .ps-emerg__label { color: #fff; font-weight: 600; }
@media (max-width: 720px){ .ps-emerg__grid { grid-template-columns: 1fr; } }

/* back link on category sub-pages */
.ps-back {
  display: inline-flex; align-items: center; gap: 11px; margin-bottom: clamp(22px, 3vw, 34px);
  color: var(--accent); font-weight: 700; font-size: 16px; text-decoration: none;
}
.ps-back i { font-size: 13px; transform: scaleX(-1); }
.ps-back:hover { color: var(--accent-deep); text-decoration: underline; }

/* category nav rebuilt as Quick Actions cards (roomy, presence-forward) */
.ps-cats.qa__grid { gap: 20px; }
.ps-cat.qa__item {
  background: var(--c-white);
  border-radius: var(--r-card); padding: clamp(30px, 2.6vw, 44px) 22px;
  text-decoration: none; justify-content: flex-start; gap: 12px;
}
.ps-cat .qa__title { color: var(--fg-1); }
.ps-cat .qa__desc { color: var(--fg-3); margin: 0; }
.ps-cat__cta { margin-top: 10px; display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-weight: 700; font-size: 15px; }
.ps-cat__cta i { font-size: 13px; }

/* parish category directory — strict Mesh GridList tiles */
.ps-catgrid .glist__label { display: flex; flex-direction: column; gap: 4px; }
.ps-catgrid .glist__count { font-weight: 600; font-size: 14px; color: var(--fg-3); }
.ps-catgrid a.glist__cell:hover .glist__media { background: var(--accent); }
.ps-alert { margin-bottom: clamp(24px, 3vw, 36px); }
.ps-alert a { color: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }

/* GridList tiles (services + parish category index): bigger icons + subtle gradient media */
.glist__media {
  background: linear-gradient(150deg, var(--accent-bright) 0%, var(--accent) 52%, var(--accent-deep) 100%);
}
.glist__icon { font-size: 68px; }

/* Home page only: on mobile, show "Care Plans Built For You" before the Quick Actions bar */
.mobile-swap { display: contents; }
@media (max-width: 768px){
  .mobile-swap { display: flex; flex-direction: column-reverse; }
}

/* Home hero background video — sits under the gradient ::after */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-video:fullscreen, .tblk__video .vjs-fullscreen video { object-fit: contain; background: #000; }

/* Glass fullscreen + pause/play controls, bottom-right of the home hero (SC 2.2.2) */
.hero-controls {
  position: absolute; right: max(var(--gutter), calc((100% - var(--max-content)) / 2)); bottom: var(--gutter, clamp(20px, 5vw, 80px));
  z-index: 3; display: flex; gap: 10px;
}
.hero-controls button {
  width: 52px; height: 52px; border-radius: var(--r-pill);
  display: grid; place-items: center; cursor: pointer;
  color: #fff; font-size: 18px;
  background: rgb(0 0 0 / 0.28);
  border: 1px solid rgb(255 255 255 / 0.32);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  transition: background-color 140ms ease;
}
.hero-controls button:hover { background: rgb(0 0 0 / 0.42); }
/* Mobile: the video is a full-width 16:10 band on top, so pin the controls to its bottom-right */
@media (max-width: 768px){
  .hero-controls { top: calc(62.5vw - 56px); bottom: auto; right: 12px; gap: 8px; }
  .hero-controls button { width: 44px; height: 44px; font-size: 16px; }
}

/* Skip link (SC 2.4.1) — visible on focus */
.skip-link {
  position: absolute; left: 50%; transform: translateX(-50%); top: -200px;
  z-index: 1100; background: var(--accent); color: #fff; font-weight: 700;
  padding: 12px 22px; border-radius: 0 0 var(--r-soft) var(--r-soft);
  text-decoration: none; transition: top 140ms ease;
}
.skip-link:focus { top: 0; }

/* Visible keyboard focus ring (SC 2.1.1 / 2.4.7) */
:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 2px; border-radius: 3px; }

/* Accessibility statement page */
.acc-features { margin: 18px 0 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.acc-features li { position: relative; padding-left: 36px; font-size: clamp(16px,1.3vw,18px); line-height: 1.6; color: var(--fg-2); }
.acc-features li::before {
  content: "\2713"; position: absolute; left: 0; top: 1px;
  width: 23px; height: 23px; border-radius: 50%; background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 800; display: grid; place-items: center;
}
.acc-contact { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.acc-contact__row { display: flex; align-items: baseline; gap: 14px; font-size: clamp(16px,1.3vw,18px); color: var(--fg-2); }
.acc-contact__row i { color: var(--accent); width: 22px; text-align: center; flex: 0 0 22px; }

/* Standard fade-in for every hero on load (opacity only, no movement) */
@keyframes fmcFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.fmc-hero .mhero__content { animation: fmcFadeIn 900ms ease both; }
.fmc-hero .mhero__media { animation: fmcFadeIn 1100ms ease both; }
@media (prefers-reduced-motion: reduce){
  .fmc-hero .mhero__content,
  .fmc-hero .mhero__media { animation: none; }
}

/* ════════════════════ FOOTER — white background, black text ════════════════ */
.footer { background: var(--surface-1); color: var(--fg-1); border-top: 1px solid var(--border); padding-block: clamp(53px, 6.6vw, 88px); }
.footer__brand img { /* swapped to dark logo in markup */ }
.footer p.footer__tag { color: var(--fg-2); font-size: 14px; }
.footer__col h4 { color: var(--fg-3); }
.footer__col a, .footer__col button, .footer__bottom a { color: var(--fg-2); text-decoration: none; }
.footer__col a:hover, .footer__col button:hover, .footer__bottom a:hover { color: var(--accent); }

/* "Pay Your Bill" controls are <button>s (they trigger payment via JS, not
   navigation). A zero-specificity :where() reset strips native button chrome so
   each one inherits the surrounding link / .mesh-btn styling unchanged. */
button:where([data-paybill]) {
  -webkit-appearance: none; appearance: none;
  margin: 0; padding: 0; background: none; border: 0;
  font: inherit; color: inherit; text-align: inherit; cursor: pointer;
}
.footer__bottom { border-top: 1px solid var(--border); color: var(--fg-3); }
@media (min-width: 901px){ .footer__top { grid-template-columns: 1.3fr repeat(4, 1fr); } }

/* Contact form: more vertical room on inputs/selects */
.cform__field input, .cform__field select { height: 74px; }

/* ════════════════════ LOCATIONS — selectable map directory ═════════════════ */
.locmap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(20px,3vw,40px); align-items: start; }
.locmap__list { display: flex; flex-direction: column; gap: 16px; }
.locmap__item { display: block; width: 100%; text-align: left; background: var(--c-white); border: 0; border-radius: var(--r-card); padding: 18px 22px; cursor: pointer; font-family: inherit; transition: background-color 140ms ease, color 140ms ease; outline: none; }
.locmap__item:hover { background: var(--accent-wash); }
.locmap__item[aria-current="true"] { background: var(--accent); }
.locmap__item[aria-current="true"] .locmap__name { color: #fff; }
.locmap__item[aria-current="true"] .locmap__addr { color: rgb(255 255 255 / 0.85); }
.locmap__item[aria-current="true"] .locmap__phones a { color: #fff; }
.locmap__item[aria-current="true"] .locmap__phones span { color: rgb(255 255 255 / 0.7); }
.locmap__name { font-weight: 700; font-size: 18px; color: var(--fg-1); margin: 0 0 4px; }
.locmap__addr { font-size: 14.5px; color: var(--fg-2); line-height: 1.5; }
.locmap__phones { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; font-size: 13.5px; }
.locmap__phones a { color: var(--accent); font-weight: 600; text-decoration: none; }
.locmap__phones span { color: var(--fg-3); }
.locmap__dir { margin-top: 16px; }
.locmap__item[aria-current="true"] .locmap__dir { color: #fff; border-color: rgb(255 255 255 / 0.6); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.6); background: rgb(255 255 255 / 0.12); }
.locmap__item[aria-current="true"] .locmap__dir:hover { background: rgb(255 255 255 / 0.2); }
.locmap__mapwrap { position: sticky; top: 190px; border-radius: var(--r-card); overflow: hidden; background: var(--surface-2); aspect-ratio: 4 / 3; }
.locmap__mapwrap iframe, .locmap__mapwrap #locmap-canvas { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 860px){
  .locmap { grid-template-columns: 1fr; }
  .locmap__list { order: 2; }
  .locmap__mapwrap { order: 1; position: relative; top: 0; }
}
/* drawer available up to the hamburger breakpoint; hidden above it */
@media (min-width: 1201px){ .nav__drawer { display: none !important; } }
@media (max-width: 600px){ .fmc-profile, .tsc__guard { gap: 32px; } }

/* ════════════════════ RESPONSIVE: image-on-top + stacked video ════════════ */
/* Split-content sections: image always sits above the text on mobile/tablet */
@media (max-width: 1024px){
  .tsc__guard .tsc__media { order: -1 !important; }
}
/* Home video block: video on top of its text when stacked */
@media (max-width: 860px){
  .tblk__video { order: -1 !important; }
}
/* FAQ / split-accordion: hide the image (and its gradient) entirely on mobile/tablet */
@media (max-width: 1120px){
  .sacc__media { display: none !important; }
  .sacc, .sacc__inner { min-height: 0; }
}
/* About-page video (gradient split): stack video on top, text below, no scrim */
@media (max-width: 1024px){
  .gsplit { display: block; min-height: 0; position: relative; background: var(--surface-1); }
  .gsplit__media { position: relative; aspect-ratio: 16 / 10; }
  .gsplit__scrim { display: none !important; }
  .gsplit__inner { position: static; display: block; }
  .gsplit__content { max-width: none; padding-block: clamp(26px,6vw,42px); }
  .gsplit--green .gsplit__title,
  .gsplit--green .gsplit__body,
  .gsplit--navy  .gsplit__title,
  .gsplit--navy  .gsplit__body { color: var(--fg-1); }
  .gsplit--green .gsplit__eyebrow,
  .gsplit--navy  .gsplit__eyebrow { color: var(--accent); }
  .gsplit__play { top: 31.25vw; }
}

/* Inline phone & email links in body copy: accent green + underline */
main a[href^="tel:"]:not([class]),
main a[href^="mailto:"]:not([class]) {
  color: var(--accent); font-weight: 600;
  text-decoration: underline; text-underline-offset: 2px;
}

/* Service-detail pages: sticky photo, offset to clear the sticky navbar */
@media (min-width: 861px){
  .fmc-profile--sticky .fmc-profile__photo { position: sticky; top: 200px; align-self: start; }
}

/* ════════════════════ VIDEO LIGHTBOX ══════════════════════════════════════ */
.fmc-lightbox {
  position: fixed; inset: 0; z-index: 1000; display: none;
  align-items: center; justify-content: center;
  background: rgb(0 0 0 / 0.82); padding: clamp(16px, 4vw, 56px);
}
.fmc-lightbox[data-open="true"] { display: flex; }
.fmc-lightbox__stage { position: relative; width: min(1100px, 100%); }
.fmc-lightbox__frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-panel); overflow: hidden; background: #000; }
.fmc-lightbox__frame .video-js { position: absolute; inset: 0; width: 100%; height: 100%; }
.fmc-lightbox__close {
  position: absolute; top: -52px; right: 0; width: 44px; height: 44px;
  border-radius: var(--r-pill); border: 1px solid rgb(255 255 255 / 0.4);
  background: rgb(255 255 255 / 0.1); color: #fff; font-size: 20px;
  cursor: pointer; display: grid; place-items: center;
}
.fmc-lightbox__close:hover { background: rgb(255 255 255 / 0.2); }
@media (max-width: 600px){ .fmc-lightbox__close { top: -48px; } }

/* ── Services card tuning ─────────────────────────────────────────────────
   static_v2 applied these gradient vars from FMC_TWEAK_DEFAULTS via a dev-only
   panel not shipped in the theme, so bake the tuned values here. --svc-img-h and
   --svc-grad-end are computed per card in franklin.js (initServiceCards). */
:root {
  --svc-grad-solid: 13%;        /* svcSolid */
  --svc-grad-solid-hover: 57%;  /* svcSolidHover */
  --svc-grad-start: 73%;        /* svcStart */
  --svc-grad-over: 53;          /* svcOver (unitless; read by franklin.js) */
}
/* ════════════════════ SERVICES — hover-expanding image cards ═══════════════ */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 2vw, 30px); }
.svc-card {
  position: relative; overflow: hidden; border-radius: var(--r-card);
  aspect-ratio: 1 / 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--accent);
  text-decoration: none; isolation: isolate;
}
.svc-card__img {
  position: absolute; top: 0; left: 0; right: 0; height: 100%; width: 100%;
  object-fit: cover; object-position: center; z-index: 0;
  transition: height 820ms cubic-bezier(0.32, 0.72, 0, 1);
}
.svc-card:hover .svc-card__img,
.svc-card:focus-within .svc-card__img { height: var(--svc-img-h, 62%); }
/* ONE teal gradient over the image. It grows smoothly on hover (background-size)
   to cover more of the card, while the image resizes underneath the text. */
@property --svc-grad-solid {
  syntax: "<length-percentage>";
  inherits: true;
  initial-value: 38%;
}
.svc-card__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  /* Eased (smootherstep) alpha falloff instead of a single straight ramp, so the
     teal diffuses naturally into the photo with no hard edge where the fade
     starts/ends. Stops are placed across the fade zone [--svc-grad-solid → 100%]. */
  background-image: linear-gradient(to top,
    var(--accent) 0%,
    var(--accent) var(--svc-grad-solid, 38%),
    color-mix(in srgb, var(--accent) 92%, transparent) calc(var(--svc-grad-solid, 38%) + 0.20 * (100% - var(--svc-grad-solid, 38%))),
    color-mix(in srgb, var(--accent) 68%, transparent) calc(var(--svc-grad-solid, 38%) + 0.40 * (100% - var(--svc-grad-solid, 38%))),
    color-mix(in srgb, var(--accent) 38%, transparent) calc(var(--svc-grad-solid, 38%) + 0.60 * (100% - var(--svc-grad-solid, 38%))),
    color-mix(in srgb, var(--accent) 14%, transparent) calc(var(--svc-grad-solid, 38%) + 0.78 * (100% - var(--svc-grad-solid, 38%))),
    transparent 100%);
  background-repeat: no-repeat; background-position: bottom;
  background-size: 100% var(--svc-grad-start, 40%);
  transition: background-size 820ms cubic-bezier(0.32, 0.72, 0, 1), --svc-grad-solid 820ms cubic-bezier(0.32, 0.72, 0, 1);
}
.svc-card:hover .svc-card__scrim,
.svc-card:focus-within .svc-card__scrim { background-size: 100% var(--svc-grad-end, 118%); --svc-grad-solid: var(--svc-grad-solid-hover, 51%); }
.svc-card__body { position: relative; z-index: 2; padding: clamp(26px, 2.4vw, 40px); }
.svc-card .svc-card__title { color: #fff; font-weight: 800; font-size: clamp(30px, 3vw, 44px); line-height: 1.08; margin: 0; text-wrap: balance; }
.svc-card__linkswrap {
  display: grid; grid-template-rows: 0fr; opacity: 0; margin-top: 0;
  transition: grid-template-rows 820ms cubic-bezier(0.32, 0.72, 0, 1), opacity 520ms cubic-bezier(0.32, 0.72, 0, 1), margin-top 820ms cubic-bezier(0.32, 0.72, 0, 1);
}
.svc-card:hover .svc-card__linkswrap,
.svc-card:focus-within .svc-card__linkswrap { grid-template-rows: 1fr; opacity: 1; margin-top: 22px; }
.svc-card__links {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 30px;
  overflow: hidden; min-height: 0;
}
.svc-card .svc-card__links a { color: #fff; font-weight: 600; font-size: 17px; line-height: 1.55; text-decoration: none; }
.svc-card .svc-card__links a:hover { text-decoration: underline; text-underline-offset: 2px; }
/* ── Mobile/tablet: static cards + Plus/X toggle revealing the list below ──── */
.svc-card__toggle {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  width: 44px; height: 44px; padding: 0; border: none; cursor: pointer;
  border-radius: 999px; background: #fff; display: none;
}
.svc-card__toggle::before, .svc-card__toggle::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 17px; height: 2.5px; border-radius: 2px; background: #111;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}
.svc-card__toggle::before { transform: translate(-50%, -50%); }
.svc-card__toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.svc-card__toggle[aria-expanded="true"]::before { transform: translate(-50%, -50%) rotate(45deg); }
.svc-card__toggle[aria-expanded="true"]::after { transform: translate(-50%, -50%) rotate(135deg); }
.svc-card__panel { display: none; padding: 2px 6px 6px; }
.svc-card__panel .svc-card__links { overflow: visible; min-height: 0; gap: 14px 30px; }
.svc-card__panel .svc-card__links a { color: var(--accent); font-weight: 600; font-size: 17px; line-height: 1.5; text-decoration: underline; text-underline-offset: 2px; }
.svc-card__panel .svc-card__links a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
@media (prefers-reduced-motion: reduce){
  .svc-card__img, .svc-card__linkswrap, .svc-card__scrim,
  .svc-card__toggle::before, .svc-card__toggle::after { transition: none; }
}
@media (max-width: 1024px){
  /* Touch layout: static cards (no hover), non-square; the item list is revealed
     OUTSIDE the card via the Plus/X toggle, in dark legible text. */
  .svc-item { display: flex; flex-direction: column; gap: 14px; }
  .svc-card { aspect-ratio: 16 / 10; cursor: pointer; }
  .svc-card:hover .svc-card__img,
  .svc-card:focus-within .svc-card__img { height: 100%; }
  .svc-card:hover .svc-card__scrim,
  .svc-card:focus-within .svc-card__scrim { background-size: 100% var(--svc-grad-start, 40%); --svc-grad-solid: inherit; }
  .svc-card__linkswrap { display: none; }
  .svc-card__toggle { display: block; }
  .svc-card__panel:not([hidden]) { display: block; }
}
@media (max-width: 720px){
  .svc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px){
  .svc-card__panel .svc-card__links { grid-template-columns: 1fr; }
}

/* Contact form honeypot (inc/contact-guard.php): off-screen, so people never see
   or reach it, while bots that fill every field still find it. */
.cform__hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
