/*
Theme Name: Person First (WPConvert)
Theme URI: https://wpconvert.ai
Author: WPConvert.ai
Author URI: https://wpconvert.ai
Description: This theme was automatically generated from your original site design using WPConvert.ai. It preserves your layout, colors, typography, header, footer, and page content, and makes it editable in WordPress.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.6
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wpconvert
Tags: landing page, responsive, custom header, custom footer
*/

/* External Stylesheets - @import statements MUST come before any CSS rules */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

/* =======================================================
   Person First, Inc. — Brand Stylesheet
   Designed & developed by Strive Enterprise
   ======================================================= */

:root {
  --pf-blue: #0B2D83;
  --pf-blue-dark: #071F5F;
  --pf-blue-soft: #E9EDF8;
  --pf-magenta: #B83291;
  --pf-magenta-dark: #922573;
  --pf-magenta-soft: #FBEAF4;
  --pf-yellow: #F2D400;
  --pf-ink: #1D2540;
  --pf-text: #3E4558;
  --pf-muted: #6B7280;
  --pf-border: #E7EAF1;
  --pf-bg: #FFFFFF;
  --pf-bg-soft: #F7F8FC;
  --pf-bg-warm: #FBFAF7;

  --shadow-sm: 0 2px 6px rgba(11, 45, 131, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 45, 131, 0.08);
  --shadow-lg: 0 18px 40px rgba(11, 45, 131, 0.12);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --container: 1450px;
  --header-top-h: 40px;
  --header-main-h: 78px;
  --header-total: 118px;

  --padding-sections: 50px;
  --fs-content: 16px;
}

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f3f3f3;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb {
  background: var(--pf-magenta);
  border-radius: 999px;
  border: 2px solid #f3f3f3;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--pf-magenta);
}

/* Eliminar arrows */
::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--pf-magenta) #f3f3f3;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; 
}
[id] {
  scroll-margin-top: 140px;


  @media(width<768px){
      scroll-margin-top: 90px;

  }
}
html {-webkit-text-size-adjust: 100%; }
html {
  scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
}
body {
  margin: 0;
  font-family: "Montserrat", "Nunito Sans", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--pf-text);
  background: var(--pf-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--pf-blue); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--pf-magenta); }
h1, h2, h3, h4 { color: var(--pf-ink); font-weight: 800; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); color: var(--pf-blue); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul{ text-align: start;}
.pt-0{
  padding-top: 0px !important;
}
/* ===== Container ===== */
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
section { padding: var(--padding-sections) 0; }
.padding-first-section{
  padding-top: var(--padding-sections);
}

.padding-last-section{
  padding-bottom: var(--padding-sections);
}


/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.5rem;
  font-weight: 700; font-size: var(--fs-content);
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  text-align: center;
  white-space: nowrap;
}
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { background: var(--pf-blue); color: #fff; box-shadow: 0 10px 24px rgba(11,45,131,.18); }
.btn-primary:hover { background: var(--pf-blue-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px rgba(11,45,131,.25); }
.btn-secondary { background: #fff; color: var(--pf-magenta); border-color: rgba(184,50,145,.35); }
.btn-secondary:hover { background: var(--pf-magenta-soft); color: var(--pf-magenta-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; transform: translateY(-2px); }

/* ===== Top Header ===== */
.top-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--pf-magenta), var(--pf-magenta-dark));
  color: #fff;
  font-size: .85rem;
  height: var(--header-top-h);
  display: flex; align-items: center;
}
.top-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.top-header a { color: #fff; opacity: .85; display: flex; align-items: center; }
.top-header a:hover { color: var(--pf-yellow); opacity: 1; }
.top-header .top-left { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.top-header .top-right { display: flex; gap: 1rem; align-items: center; }
.top-header .top-right a + a { padding-left: 1rem; border-left: 1px solid rgba(255,255,255,.18); }

/* ===== Main Header ===== */
.main-header {
  position: fixed; top: var(--header-top-h); left: 0; right: 0;
  z-index: 99;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--pf-border);
  height: var(--header-main-h);
  display: flex; align-items: center;
  transition: box-shadow .25s ease, background .25s ease;
}
.main-header.scrolled { box-shadow: var(--shadow-md); }
.main-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: flex; align-items: center; gap: .75rem; }
.brand-logo {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--pf-blue), var(--pf-magenta));
  border-radius: 12px;
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
  /* Placeholder for /assets/img/person-first-logo.png */
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 800; color: var(--pf-ink); font-size: 1.05rem; }
.brand-tag { font-size: .72rem; color: var(--pf-muted); margin-top: 3px; letter-spacing: .03em; text-transform: uppercase; }

.nav { display: flex; gap: .25rem; align-items: center; }
.nav a {
  color: var(--pf-ink); font-weight: 600; font-size: .95rem;
  padding: .55rem .85rem; border-radius: var(--radius-pill);
  position: relative;
}
.nav a:hover { color: var(--pf-magenta); background: var(--pf-magenta-soft); }
.nav a.wpconvert-active-link { color: var(--pf-blue); }
.nav a.wpconvert-active-link::after {
  content: ""; position: absolute; left: 50%; bottom: 2px;
  width: 18px; height: 3px; border-radius: 3px;
  background: var(--pf-magenta);
  transform: translateX(-50%);
}

.header-cta { display: flex; align-items: center; gap: .75rem; }
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--pf-border); background: #fff;
  border-radius: 12px;
  align-items: center; justify-content: center;
  cursor: pointer;
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--pf-ink); position: relative; transition: transform .25s; }
.menu-toggle span::before, .menu-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--pf-ink); transition: transform .25s, top .25s;
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 90% -10%, rgba(184,50,145,.10), transparent 60%),
    radial-gradient(900px 500px at -10% 100%, rgba(11,45,131,.10), transparent 60%),
    var(--pf-bg-warm);
  padding: 80px 0 100px;
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; border: 1px solid var(--pf-border);
  color: var(--pf-blue); font-weight: 700; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase;
  padding: .4rem .8rem; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}
.hero-eyebrow .dot { width: 8px; height: 8px; background: var(--pf-magenta); border-radius: 50%; }
.hero h1 span { color: var(--pf-magenta); }
.hero p.lead { font-size: 1.1rem; color: var(--pf-text); max-width: 56ch; }
.hero-actions { display: flex; gap: .75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.hero-figure {
  position: relative; aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--pf-blue-soft), var(--pf-magenta-soft));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: grid; place-items: center;
  color: var(--pf-blue); font-weight: 700;
}
.hero-figure::after {
  content: "Image placeholder · hero-family";
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  background: rgba(255,255,255,.8); color: var(--pf-blue);
  padding: .35rem .75rem; border-radius: var(--radius-pill); font-size: .75rem;
}
.hero-figure .deco-arc {
  position: absolute; inset: -20% -20% auto auto; width: 240px; height: 240px;
  border-radius: 50%; border: 18px solid rgba(11,45,131,.10); pointer-events: none;
}
.hero-figure .deco-dot {
  position: absolute; left: 8%; bottom: 12%; width: 36px; height: 36px;
  background: var(--pf-yellow); border-radius: 50%; opacity: .85;
}

/* ===== Trust Row ===== */
.trust-row {
  margin-top: -50px; position: relative; z-index: 2;
}
.trust-card {
  background: #fff; border: 1px solid var(--pf-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: grid; grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}
.trust-item { padding: 1.5rem; text-align: center; border-right: 1px solid var(--pf-border); }
.trust-item:last-child { border-right: none; }
.trust-item .num { font-size: 1.75rem; font-weight: 800; color: var(--pf-blue); }
.trust-item .num span { color: var(--pf-magenta); }
.trust-item .lbl { font-size: .9rem; color: var(--pf-muted); }

/* ===== Section header ===== */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head .eyebrow {
  display: inline-block; color: var(--pf-magenta); font-weight: 700;
  font-size: var(--fs-content); letter-spacing: .12em; text-transform: uppercase; margin-bottom: .5rem;
}
.section-head p { color: var(--pf-muted); }

/* ===== Service cards ===== */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; align-items: center; }

.service-card {
  background: #fff; border: 1px solid var(--pf-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;

  @media(width<768px){
    text-align: center;
  }
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(184,50,145,.35);
}
.icon-badge {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--pf-blue-soft); color: var(--pf-blue);
  margin-bottom: 1rem;
  transition: transform .25s ease;
}
.service-card:hover .icon-badge { transform: rotate(-4deg) scale(1.05); }
.icon-badge.magenta { background: var(--pf-magenta-soft); color: var(--pf-magenta); }
.icon-badge.yellow { background: #FFF7CC; color: #8A7900; }
.service-card h3 { color: var(--pf-ink); margin-bottom: .35rem; }
.service-card p { color: var(--pf-muted); font-size: var(--fs-content); }
.value-list {
  list-style: none;
  padding: 0;
  margin: .75rem 0 0;
  color: var(--pf-muted);
  font-size: .95rem;
  line-height: 1.65;
}
.value-list li { margin-bottom: .65rem; font-size: var(--fs-content);}
.value-list li:last-child { margin-bottom: 0; }
.value-list strong { color: var(--pf-ink); }
.learn-more { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: var(--pf-magenta); margin-top: .5rem; }
.learn-more:hover { color: var(--pf-magenta-dark); }
.learn-more::after { content: "→"; transition: transform .2s; }
.learn-more:hover::after { transform: translateX(3px); }

/* ===== About preview ===== */
.bg-soft { background: var(--pf-bg-soft); }
.bg-warm { background: var(--pf-bg-warm); }
.bg-blue {
  background: linear-gradient(135deg, var(--pf-blue), var(--pf-blue-dark));
  color: #fff;
}
.bg-blue h2, .bg-blue h3 { color: #fff; }
.bg-blue p { color: rgba(255,255,255,.85); }

.image-placeholder {
  position: relative; aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--pf-blue-soft), var(--pf-magenta-soft));
  display: grid; place-items: center;
  color: var(--pf-blue); font-weight: 700;
  overflow: hidden;
}
.image-placeholder::before {
  content: attr(data-label);
  background: rgba(255,255,255,.85); padding: .4rem .9rem;
  border-radius: var(--radius-pill); font-size: .8rem;
}
.video-placeholder {
  position: relative; aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--pf-blue-dark), var(--pf-magenta));
  display: grid; place-items: center;
  color: #fff; overflow: hidden;
}
.video-placeholder::before {
  content: "▶"; font-size: 2rem;
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.6);
  display: grid; place-items: center;
}
.video-placeholder::after {
  content: attr(data-label);
  position: absolute; bottom: 16px;
  background: rgba(0,0,0,.4); padding: .4rem .9rem;
  border-radius: var(--radius-pill); font-size: .8rem;
}

/* ===== Accreditation band ===== */
.accred {
  background: linear-gradient(135deg, var(--pf-blue), var(--pf-blue-dark));
  color: #fff; border-radius: var(--radius-lg);
  padding: 3rem;
  display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center;
}
.accred-seal {
  width: 110px; height: 110px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 3px solid var(--pf-yellow);
  display: grid; place-items: center; text-align: center;
  font-weight: 800; font-size: .8rem; line-height: 1.2; color: var(--pf-yellow); padding: .5rem;
}
.accred h2 { color: #fff; margin-bottom: .25rem; }
.accred p { color: rgba(255,255,255,.85); margin: 0; }

/* ===== Why choose (feature list) ===== */
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.feature {
  display: flex; gap: 1rem; padding: 1.25rem;
  background: #fff; border: 1px solid var(--pf-border); border-radius: var(--radius-md);
  transition: transform .2s ease, border-color .2s;
  overflow: hidden;
}
.feature:hover { transform: translateY(-3px); border-color: rgba(11,45,131,.25); }
.feature .icon-badge { flex-shrink: 0; margin: 0; }
.feature h3 { font-size: 1.05rem; margin-bottom: .25rem; color: var(--pf-ink); }
.feature p { font-size: var(--fs-content); color: var(--pf-muted); margin: 0; }

/* ===== Gallery ===== */
.gallery-filters { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2rem; }
.filter-btn {
  background: #fff; border: 1px solid var(--pf-border);
  color: var(--pf-ink); padding: .5rem 1rem;
  border-radius: var(--radius-pill); font-weight: 600; font-size: .9rem;
  cursor: pointer; transition: all .2s ease;
}
.filter-btn:hover { border-color: var(--pf-magenta); color: var(--pf-magenta); }
.filter-btn.wpconvert-active-link { background: var(--pf-blue); color: #fff; border-color: var(--pf-blue); }

.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.gallery-item {
  border-radius: var(--radius-md); overflow: hidden;
  transition: opacity .3s ease, transform .3s ease;
}
.gallery-item.hidden { display: none; }
.gallery-item .image-placeholder { aspect-ratio: 1/1; cursor: pointer; transition: transform .3s ease; }
.gallery-item .image-placeholder:hover { transform: scale(1.02); }

/* ===== Testimonials ===== */
.testimonial {
  background: #fff; border: 1px solid var(--pf-border); border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.testimonial:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.testimonial::before {
  content: "“"; font-family: Georgia, serif; font-size: 4rem; line-height: 1;
  position: absolute; top: -10px; left: 1rem; color: var(--pf-magenta); opacity: .35;
}
.testimonial p { font-size: 1rem; color: var(--pf-text); font-style: italic; }
.t-meta { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; }
.t-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pf-blue), var(--pf-magenta));
  color: #fff; display: grid; place-items: center; font-weight: 800;
}
.t-name { font-weight: 700; color: var(--pf-ink); font-size: .95rem; }
.t-role { font-size: .82rem; color: var(--pf-muted); }

/* ===== Newsletter ===== */
.newsletter {
  background:
    radial-gradient(600px 300px at 90% 10%, rgba(242,212,0,.18), transparent 60%),
    linear-gradient(135deg, var(--pf-blue), var(--pf-blue-dark));
  color: #fff; border-radius: var(--radius-lg);
  padding: 3rem;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: center;
}
.newsletter h2 { color: #fff; }
.newsletter p { color: rgba(255,255,255,.85); margin: 0; }
.newsletter-form { display: grid; gap: .75rem; }
.newsletter-form .row { display: grid; grid-template-columns: 1fr auto; gap: .5rem; }
.newsletter-form input[type="email"] {
  padding: .9rem 1rem; border-radius: var(--radius-pill); border: none;
  font: inherit; background: #fff; color: var(--pf-ink);
}
.newsletter-form input[type="email"]:focus { outline: 3px solid var(--pf-yellow); }
.checkbox-row { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; color: rgba(255,255,255,.9); }
.checkbox-row input[type="checkbox"] { margin-top: 4px; accent-color: var(--pf-yellow); }

/* ===== Subpage header ===== */
.sub-header {
  background:
    radial-gradient(900px 400px at 0% 0%, rgba(11,45,131,.06), transparent 60%),
    radial-gradient(900px 400px at 100% 100%, rgba(184,50,145,.06), transparent 60%),
    var(--pf-bg-warm);
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--pf-border);
}
.sub-header h1 { color: var(--pf-blue); margin-bottom: .35rem; font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.sub-header p { color: var(--pf-muted); max-width: 60ch; margin: 0; }
.breadcrumb {
  font-size: .85rem; color: var(--pf-muted); margin-bottom: .75rem;
  display: flex; gap: .35rem; flex-wrap: wrap;
}
.breadcrumb a { color: var(--pf-muted); }
.breadcrumb a:hover { color: var(--pf-magenta); }
.breadcrumb span[aria-current="page"] { color: var(--pf-blue); font-weight: 700; }

/* ===== Forms ===== */
.form-card {
  background: #fff; border: 1px solid var(--pf-border); border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow-sm);
}
.field { margin-bottom: .5rem; }
.field label { display: block; font-weight: 600; color: var(--pf-ink); font-size: var(--fs-content); margin-bottom: .35rem; 
text-align: start;
}
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem 1rem;
  border: 1px solid var(--pf-border); border-radius: var(--radius-sm);
  font: inherit; color: var(--pf-ink); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--pf-blue);
  box-shadow: 0 0 0 3px rgba(11,45,131,.12);
}
.field textarea { min-height: 130px; resize: vertical; height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.privacy-check {
  display: flex; gap: .6rem; align-items: flex-start;
  background: var(--pf-bg-soft); padding: .9rem 1rem;
  border-radius: var(--radius-md); font-size: .9rem; color: var(--pf-text);
  margin: 1rem 0;
}
.privacy-check input { accent-color: var(--pf-blue); margin-top: 4px; }
.privacy-check a { font-weight: 700; }

/* ===== FAQ ===== */
.faq-cat {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--pf-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);

  @media(width<768px){
    h2{
      text-align: center;
    }
  }
}
.faq-cat:last-child{
  margin-bottom: 0px;
}
.faq-cat-families { background: var(--pf-bg-soft); }
.faq-cat-services { background: var(--pf-bg-warm); }
.faq-cat-careers { background: var(--pf-blue-soft); }
.faq-cat h2 { color: var(--pf-blue); margin-bottom: 1rem; }
.faq-item {
  background: #fff; border: 1px solid var(--pf-border); border-radius: var(--radius-md);
  margin-bottom: .75rem; overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq-item.open { border-color: rgba(11,45,131,.35); box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%; text-align: left;
  background: transparent; border: none; font: inherit;
  padding: 1.1rem 1.25rem; font-weight: 700; color: var(--pf-ink);
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-q .chev { transition: transform .25s ease; color: var(--pf-magenta); font-weight: 800; }
.faq-item.open .faq-q .chev { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
  padding: 0 1.25rem; color: var(--pf-muted);
}
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 1.1rem; }

.faq-item {
  position: relative;
  background: #fff;
  border-radius: var(--radius-md);
  margin-bottom: .75rem;
  overflow: hidden;
  transition: border-color .35s ease, box-shadow .35s ease, transform .35s ease;
}

.faq-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(11, 45, 131, 0.08) 0%,
    rgba(184, 50, 145, 0.06) 100%
  );
  opacity: 0;
  transform: scaleX(0.7);
  transform-origin: left center;
  transition: opacity .4s ease, transform .4s ease;
  pointer-events: none;
}

.faq-item:hover::before, .faq-item.open::before {
  opacity: 1;
  transform: scaleX(1);
}

.faq-item:hover, .faq-item.open {
  border-color: rgba(11,45,131,.35);
  box-shadow: 0 10px 30px rgba(11, 45, 131, .06);
}

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; }
.contact-info { display: grid; gap: 1rem; }
.info-card {
  background: #fff; border: 1px solid var(--pf-border); border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex; gap: 1rem; align-items: flex-start;
  overflow: hidden;

  @media(width<768px){
        display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
.info-card .icon-badge { margin: 0; flex-shrink: 0; }
.info-card h3 { font-size: 1rem; margin-bottom: .2rem; }
.info-card p, .info-card a { font-size: var(--fs-content); color: var(--pf-text); margin: 0; transition: all .3s ease; text-wrap: balance;}

.info-card a:hover{
  color: var(--pf-magenta);
}
.map-placeholder {
  margin-top: 1rem;
  aspect-ratio: 16/9; border-radius: var(--radius-md);
  background:
    repeating-linear-gradient(45deg, var(--pf-blue-soft) 0 12px, #fff 12px 24px);
  display: grid; place-items: center;
  color: var(--pf-blue); font-weight: 700;
  border: 1px solid var(--pf-border);
}

/* ===== Contact banner ===== */
.contact-banner {
  background: linear-gradient(135deg, var(--pf-magenta), var(--pf-magenta-dark));
  color: #fff; border-radius: var(--radius-lg);
  padding: 2.5rem; text-align: center;
  position: relative; overflow: hidden;
}
.contact-banner::before {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 240px; height: 240px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.contact-banner h2 { color: #fff; margin-bottom: .25rem; }
.contact-banner p { color: rgba(255,255,255,.9); margin-bottom: 1.25rem; max-width: 55ch; margin-inline: auto; }
.contact-banner .btn-secondary { background: #fff; border-color: #fff; color: var(--pf-magenta); }
.contact-banner .btn-secondary:hover { background: var(--pf-yellow); color: var(--pf-ink); border-color: var(--pf-yellow); }

/* ===== Footer ===== */
footer {
  background: var(--pf-blue-dark); color: rgba(255,255,255,.85);
  padding: 4rem 0 1.5rem;
}
footer h4, footer h3 { color: #fff; font-size: 1rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 2rem;
  padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .5rem; }
.footer-grid a { color: rgba(255,255,255,.78); font-size: var(--fs-content); text-wrap: balance;
  @media(width<768px){
    text-align: center;
  }
}
.footer-grid a:hover { color: var(--pf-yellow); }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-tag { color: rgba(255,255,255,.7); }
.footer-brand p { color: rgba(255,255,255,.75); font-size: var(--fs-content); margin-top: 1rem; text-wrap: balance; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  padding-top: 1.5rem; font-size: var(--fs-content); color: rgba(255,255,255,.7);
}
.footer-bottom a { color: rgba(255,255,255,.85); font-size:var(--fs-content); 
 &:hover{
    color: var(--pf-yellow);
  }
}
.legal-links { display: flex; gap: 1rem; }

/* ===== Scroll Reveal ===== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Job posting ===== */
.job-card {
  background: #fff; border: 1px solid var(--pf-border); border-radius: var(--radius-md);
  padding: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  margin-bottom: 1rem;
  transition: transform .2s ease, box-shadow .2s ease;
  overflow: hidden;
}
.job-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.job-card .meta { display: flex; gap: 1rem; color: var(--pf-muted); font-size: var(--fs-content); margin-top: .25rem; align-items: center;
  @media(width>=768px){
    span{
          display: flex;
    align-items: center;
    }
  } 
  @media(width<768px){
    justify-content: center;
        flex-direction: column;
    align-items: center;
    margin-block: .7rem;
    gap: 0px;
  }
}
.job-card h3 { margin: 0; color: var(--pf-ink); 
  @media(width<768px){
    text-align: center;
  }
}
.job-card p { color: var(--pf-text); margin: .7rem 0 0; max-width: 72ch; 
@media(width<768px){
    text-align: center;
  }
}
.field small { display: block; color: var(--pf-muted); margin-top: .4rem; line-height: 1.5; }
.role-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.role-summary-card {
  background: #fff;
  border: 1px solid var(--pf-border);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  overflow: hidden;

  @media(width<768px){
    text-align: center;
  }
}
.role-summary-card h3 { color: var(--pf-blue); margin-bottom: .65rem; }
.role-summary-card h4 { color: var(--pf-ink); font-size: .98rem; margin: 1rem 0 .35rem; }
.role-summary-card p { color: var(--pf-text); font-size: var(--fs-content); margin-bottom: .55rem; }
.role-summary-card p:last-child { margin-bottom: 0; }
.worker-category-list {
  margin: .65rem 0 0;
  padding-left: 1.1rem;
  color: var(--pf-text);
  font-size: .9rem;
  line-height: 1.55;
}
.worker-category-list li { margin-bottom: .35rem; }

/* ===== Legal pages ===== */
.legal-content { max-width: 820px; margin: 0 auto; }
.legal-content h2 { color: var(--pf-blue); margin-top: 2rem; font-size: 1.4rem; }
.legal-content p, .legal-content li { color: var(--pf-text); }
.legal-content ul { padding-left: 1.25rem; }
.legal-note {
  background: var(--pf-bg-soft); border-left: 4px solid var(--pf-magenta);
  padding: 1rem 1.25rem; border-radius: var(--radius-sm);
  font-size: .92rem; color: var(--pf-muted); margin: 1.5rem 0;
}

/* ===== Mobile menu ===== */
.mobile-nav {
  position: fixed; top: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--pf-border);
  box-shadow: var(--shadow-md);
  z-index: 9999;
  transform: translateY(-110%); opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
  padding: 1rem;
  height: 100%;
  width: 85%;
}
.mobile-nav.open { transform: translateY(0); opacity: 1; }
.mobile-nav a {
  display: block; padding: .85rem 1rem;
  color: var(--pf-ink); font-weight: 600;
  border-bottom: 1px solid var(--pf-border);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a.wpconvert-active-link { color: var(--pf-magenta); }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  :root { --header-top-h: 36px; --header-main-h: 70px; --header-total: 106px; }
  .hero { padding: 56px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .trust-card { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: none; }
  .trust-item:nth-child(1), .trust-item:nth-child(2) { border-bottom: 1px solid var(--pf-border); }
  .accred { grid-template-columns: 1fr; text-align: center; padding: 2rem; }
  .accred-seal { margin: 0 auto; }
  .newsletter { grid-template-columns: 1fr; padding: 2rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .top-header .top-right { display: none; }
  .header-cta .btn { display: none; }
  section { padding: var(--padding-sections) 0; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .trust-card { grid-template-columns: 1fr; }
  .trust-item { border-right: none !important; border-bottom: 1px solid var(--pf-border); }
  .trust-item:last-child { border-bottom: none; }
  .feature-list { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .newsletter-form .row { grid-template-columns: 1fr; }
  .job-card { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Focus visibility */
:focus-visible {
  outline: 3px solid var(--pf-yellow);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--pf-blue); color: #fff;
  padding: .5rem 1rem; z-index: 200;
  border-bottom-right-radius: 8px;
}
.skip-link:focus { top: 0; color: #fff; }

/* =======================================================
   Landing page — reference-style overrides
   ======================================================= */

/* Brand logo mark — circle with dot */
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 70% 30%, var(--pf-yellow) 0 5px, transparent 6px),
    conic-gradient(from 200deg, var(--pf-magenta) 0 40%, var(--pf-blue) 40% 100%);
  position: relative;
  flex-shrink: 0;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 8px;
  border-radius: 50%; background: #fff;
}
.brand-mark::before {
  content: ""; position: absolute; inset: 14px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--pf-magenta) 0 40%, var(--pf-blue) 40% 100%);
  z-index: 1;
}
.brand-wordmark {
  font-weight: 800; color: var(--pf-blue); font-size: 1.4rem; letter-spacing: -0.01em;
  line-height: 1;
}
.brand-wordmark span.first { color: var(--pf-blue); }
.brand-wordmark span.mid { color: var(--pf-magenta); }
.brand-wordmark .inc { font-size: .65rem; font-weight: 700; color: var(--pf-muted); margin-left: 4px; vertical-align: super; }

/* Section heading underline (yellow tick under centered title) */
.section-title-block { text-align: center; margin: 0 auto 2.5rem; max-width: 760px; }
.section-title-block h2 {
  color: var(--pf-blue); font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin-bottom: .6rem;
}
.section-title-block .underline {
  display: inline-block; width: 56px; height: 3px; border-radius: 3px;
  background: var(--pf-yellow); margin-bottom: 1rem;
}
.section-title-block p { color: var(--pf-muted); }

/* ===== Landing Hero (reference style) ===== */
.hero-ref {
  position: relative;
  padding: 0;
  background: #fff;
  overflow: hidden;
  border-bottom: 1px solid var(--pf-border);
}
.hero-ref-grid {
  display: grid; grid-template-columns: 1fr 1.05fr; align-items: stretch;
  min-height: 540px;
}
.hero-ref-text {
  padding: 4.5rem 2rem 4.5rem 0;
  display: flex; flex-direction: column; justify-content: center;
  max-width: 620px;
  margin-left: max(1rem, calc((100vw - var(--container)) / 2));
  position: relative;
}
.hero-ref-text h1 {
  font-size: clamp(2.1rem, 4.3vw, 3.4rem);
  line-height: 1.1; margin-bottom: 1rem;
}
.hero-ref-text h1 .line1 { color: var(--pf-blue); display: block; }
.hero-ref-text h1 .line2 { color: var(--pf-magenta); display: block; }
.hero-ref-text p {
  color: var(--pf-text); font-size: 1.02rem; max-width: 52ch;
  margin-bottom: 1.75rem;
}
.hero-ref-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-ref-actions .btn-primary { padding: .9rem 1.6rem; }
.hero-ref-actions .btn-outline {
  background: #fff; color: var(--pf-magenta);
  border: 1.5px solid var(--pf-magenta);
  padding: .9rem 1.6rem; border-radius: var(--radius-pill); font-weight: 700;
  transition: background .2s, color .2s, transform .2s;
}

.hero-ref-actions .btn-outline:hover { background: var(--pf-magenta-soft); transform: translateY(-2px); }

.hero-ref-image {
  position: relative;
  background: linear-gradient(135deg, var(--pf-blue-soft), var(--pf-magenta-soft));
  display: grid; place-items: center;
  color: var(--pf-blue); font-weight: 700;
  min-height: 540px;
  overflow: hidden;
}
.hero-ref-image::after {
  content: "Image placeholder · hero-family";
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: rgba(255,255,255,.85); padding: .4rem .9rem;
  border-radius: var(--radius-pill); font-size: .8rem; color: var(--pf-blue);
}

/* Decorative swoosh under hero text */
.hero-swoosh {
  position: absolute; left: -40px; bottom: -10px;
  width: 220px; height: 90px;
  pointer-events: none;
}
.hero-swoosh::before {
  content: ""; position: absolute; left: 0; bottom: 20px;
  width: 200px; height: 60px;
  border-bottom: 6px solid var(--pf-magenta);
  border-radius: 0 0 200px 200px / 0 0 60px 60px;
  transform: rotate(-8deg);
}
.hero-swoosh::after {
  content: ""; position: absolute; left: 30px; bottom: 0;
  width: 150px; height: 50px;
  border-bottom: 5px solid var(--pf-yellow);
  border-radius: 0 0 200px 200px / 0 0 60px 60px;
  transform: rotate(-8deg);
}

/* ===== Service cards (image-led, ref style) ===== */
.service-card-ref {
  background: #fff;
  border: 1px solid var(--pf-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex; flex-direction: column;
}
.service-card-ref:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(184,50,145,.3);


  & .photo img{
    scale: 1.05;
  }
}
.service-card-ref .photo {
  position: relative;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--pf-blue-soft), var(--pf-magenta-soft));
  display: grid; place-items: center;
  color: var(--pf-blue); font-weight: 700; font-size: .8rem;
  overflow: hidden;
}
.service-card-ref .photo::after {
  content: attr(data-label);
  background: rgba(255,255,255,.85); padding: .3rem .7rem;
  border-radius: var(--radius-pill); font-size: .72rem;
}
.service-card-ref .photo .badge {
  position: absolute; top: 14px; left: 14px;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-size: 1.05rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
  z-index: 2;
}
.service-card-ref .photo .badge.blue { background: var(--pf-blue); }
.service-card-ref .photo .badge.magenta { background: var(--pf-magenta); }
.service-card-ref .photo .badge.yellow { background: var(--pf-yellow); color: var(--pf-ink); }
.service-card-ref .body { padding: 1.25rem 1.25rem 1.5rem; }
.service-card-ref h3 { color: var(--pf-blue); font-size: 1.05rem; line-height: 1.25; margin-bottom: .5rem; 
  @media(width<768px){
    text-align: center;
  }
}
.service-card-ref p { color: var(--pf-muted); font-size: var(--fs-content); margin-bottom: .75rem; 
  @media(width<768px){
    text-align: center;
  }
}

.service-card-ref .learn-more{
  @media(width<768px){
    justify-content: center;
    width: 100%;
  }
}

.service-card-ref {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;

  transition:
    transform .35s ease,
    box-shadow .35s ease,
    border-color .35s ease;
}

.service-card-ref::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0) 0%,
      rgba(11,45,131,0.03) 70%,
      rgba(184,50,145,.09) 100%
    );
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
  z-index: 1;
}

.service-card-ref > * {
  position: relative;
  z-index: 2;
}

.service-card-ref:hover {
  transform: translateY(-8px);
  box-shadow:
    0 15px 40px rgba(11,45,131,.08),
    0 5px 15px rgba(184,50,145,.06);
}

.service-card-ref:hover::before {
  opacity: 1;
}

.service-card-ref:hover h3 {
  color: var(--pf-magenta);
}

.service-card-ref:hover .learn-more {
  color: var(--pf-magenta);
}

/* ===== About row (3 columns: image / text / mission card) ===== */
.about-ref-grid {
  display: grid; grid-template-columns: 1fr 1.1fr .9fr; gap: 2rem; align-items: center;
}
.about-ref-grid .image-placeholder { aspect-ratio: 1/1; }
.about-ref-text h2 { color: var(--pf-blue); }
.about-ref-text h2::after {
  content: ""; display: block; width: 48px; height: 3px; background: var(--pf-yellow);
  border-radius: 3px; margin-top: .5rem; margin-bottom: 1rem;
}
.mission-card {
  background: #fff; border: 1px solid var(--pf-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem; text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.mission-card .heart {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--pf-magenta-soft); color: var(--pf-magenta);
  display: inline-grid; place-items: center;
  font-size: 1.6rem; margin-bottom: 1rem;
}
.mission-card p.lead { font-weight: 700; color: var(--pf-ink); margin-bottom: .35rem; font-size: 1rem; }
.mission-card p.lead .accent { color: var(--pf-magenta); }
.mission-card .dot {
  width: 12px; height: 12px; background: var(--pf-yellow); border-radius: 50%;
  display: inline-block; margin-top: .75rem;
}

/* ===== Accreditation strip ===== */
.accred-strip {
  background: var(--pf-bg-soft);
  padding: 2.25rem 0;
  border-top: 1px solid var(--pf-border);
  border-bottom: 1px solid var(--pf-border);
}
.accred-strip h3 {
  text-align: center; color: var(--pf-blue); font-size: 1.1rem; margin-bottom: 1.25rem;
}
.accred-strip h3 + .underline {
  display: block; width: 56px; height: 3px; background: var(--pf-yellow); border-radius: 3px;
  margin: 0 auto 1.5rem;
}
.accred-logos {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; align-items: center;
}
.accred-logo {
  aspect-ratio: 3/1;
  background: #fff; border: 1px solid var(--pf-border);
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  color: var(--pf-muted); font-weight: 700; font-size: .8rem;
  text-align: center; padding: .5rem;
  transition: border-color .2s, transform .2s;
}
.accred-logo:hover { border-color: var(--pf-magenta); transform: translateY(-2px); }

/* ===== Why choose — 5 columns ===== */
.why-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem;
}
.why-col { text-align: center; padding: 1rem .5rem; }
.why-col .circle {
  width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center; margin: 0 auto 1rem;
  color: #fff; font-size: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease;
}
.why-col:hover .circle { transform: translateY(-4px) scale(1.05); }
.why-col .circle.magenta { background: var(--pf-magenta); }
.why-col .circle.blue { background: var(--pf-blue); }
.why-col .circle.yellow { background: var(--pf-yellow); color: var(--pf-ink); }
.why-col h3 { color: var(--pf-blue); font-size: 1rem; margin-bottom: .35rem; }
.why-col p { font-size: var(--fs-content); color: var(--pf-muted); margin: 0; }

/* ===== Community thumbnail row ===== */
.community-row {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem;
}
.community-row .image-placeholder { aspect-ratio: 4/3; cursor: pointer; }
.community-row .image-placeholder:hover { transform: scale(1.02); transition: transform .25s; }

/* ===== Testimonial cards (ref style) ===== */
.testimonial-ref {
  background: #fff; border: 1px solid var(--pf-border); border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex; gap: 1rem; align-items: flex-start;
  transition: transform .25s ease, box-shadow .25s ease;
}
.testimonial-ref:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.testimonial-ref .quote-mark {
  color: var(--pf-magenta); font-family: Georgia, serif; font-size: 2.4rem;
  line-height: 1; flex-shrink: 0;
}
.testimonial-ref .body { flex: 1; }
.testimonial-ref p.text { color: var(--pf-text); font-size: var(--fs-content); margin-bottom: .75rem; line-height: 1.5; height: 120px;overflow-y: auto; }
.testimonial-ref .row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.testimonial-ref .author { font-weight: 700; color: var(--pf-ink); font-size: .9rem; }
.testimonial-ref .stars { color: var(--pf-yellow); letter-spacing: 2px; font-size: 1rem; }

/* ===== Newsletter strip (magenta band) ===== */
.newsletter-strip {
  background: linear-gradient(90deg, var(--pf-magenta), var(--pf-magenta-dark));
  color: #fff;
  padding: 2.5rem 0;
}
.newsletter-strip .container {
  display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center;
}
.newsletter-strip .nl-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: #fff; color: var(--pf-magenta);
  display: grid; place-items: center; font-size: 1.6rem;
  box-shadow: var(--shadow-sm);
}
.newsletter-strip h2 { color: #fff; margin: 0 0 .25rem; font-size: 1.4rem; }
.newsletter-strip p { color: rgba(255,255,255,.9); margin: 0; font-size: var(--fs-content); max-width: 48ch; }
.newsletter-strip form { display: flex; gap: .5rem; align-items: stretch;  display: flex; flex-direction: column;}
.newsletter-strip input[type="email"] {
  padding: .85rem 1rem; border: none; border-radius: var(--radius-sm);
  width: 100%;
  font: inherit; min-width: 280px; color: var(--pf-ink); background: #fff;
}
.newsletter-strip input[type="email"]:focus { outline: 3px solid var(--pf-yellow); }
.newsletter-strip button {
  background: var(--pf-blue); color: #fff; border: none;
  padding: 0 1.5rem; border-radius: var(--radius-sm);
  font-weight: 700; cursor: pointer;
  transition: background .2s, transform .2s;
  max-height: 50.73px;
  font-size: var(--fs-content);
}
.newsletter-strip button:hover { background: var(--pf-blue-dark); transform: translateY(-1px); }
.newsletter-strip .nl-check { grid-column: 1 / -1; font-size: .8rem; color: rgba(255,255,255,.9); display: flex; gap: .5rem; align-items: flex-start; margin-top: .5rem; }
.newsletter-strip .nl-check input { accent-color: var(--pf-yellow); margin-top: 3px; }
.newsletter-strip .nl-check a { color: #fff; text-decoration: none; }

/* ===== Footer (refined to 5 columns) ===== */
.footer-grid-5 {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr; gap: 2rem;
  padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-grid-5 ul { list-style: none; padding: 0; margin: 0; }
.footer-grid-5 li { margin-bottom: .5rem; }
.footer-grid-5 a { color: rgba(255,255,255,.78); font-size: .92rem; }
.footer-grid-5 a:hover { color: var(--pf-yellow); }
.footer-grid-5 h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .08em; }

/* ===== Responsive — landing ref ===== */
@media (max-width: 980px) {
  .hero-ref-grid { grid-template-columns: 1fr; }
  .hero-ref-text { padding: 3rem 1rem; margin-left: 0; max-width: 100%; }
  .hero-ref-image { min-height: 360px; }
  .about-ref-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .community-row { grid-template-columns: repeat(3, 1fr); }
  .accred-logos { grid-template-columns: repeat(3, 1fr); }
  .newsletter-strip .container { grid-template-columns: 1fr; text-align: center; }
  .newsletter-strip form { justify-content: center; flex-wrap: wrap; }
  .newsletter-strip input[type="email"] { min-width: 0; flex: 1; }
  .footer-grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .community-row { grid-template-columns: repeat(2, 1fr); }
  .accred-logos { grid-template-columns: repeat(2, 1fr); }
  .footer-grid-5 { grid-template-columns: 1fr; }
}

/* =======================================================
   Real media — img handling inside placeholders
   ======================================================= */

/* When an <img> sits inside a placeholder, hide the label pseudo */
.image-placeholder:has(img)::before,
.hero-ref-image:has(img)::after,
.service-card-ref .photo:has(img)::after,
.video-placeholder:has(img)::after { content: none; }

.image-placeholder > img,
.hero-ref-image > img,
.service-card-ref .photo > img,
.gallery-item > img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  transition: scale .3s ease-in-out;
}

/* Hero image — face-aware crops at each breakpoint */
.hero-ref-image { padding: 0; }
.hero-ref-image > img {
  position: absolute; inset: 0;
  object-position: center right; /* desktop: faces on the right */
}
@media (max-width: 980px) {
  .hero-ref-image > img { object-position: center top; min-height: 360px; }
}

/* Service card photo: ensure fixed ratio with cover */
.service-card-ref .photo { position: relative; }
.service-card-ref .photo > img { position: absolute; inset: 0; }

/* Community thumbnails: maintain 4:3 with cover */
.community-row .image-placeholder { aspect-ratio: 4/3; overflow: hidden; }

/* About row: image fills its 1:1 cell cleanly */
.about-ref-grid > .image-placeholder { overflow: hidden; }

/* Gallery items with real images */
.gallery-item { aspect-ratio: 1/1; overflow: hidden; border-radius: var(--radius-md); }
.gallery-item > img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-item:hover > img { transform: scale(1.04); }

/* Generic responsive img safety */
img.responsive {
  max-width: 100%; height: auto; display: block;
}

/* =======================================================
   Inline brand icon (small, used next to phone numbers, etc.)
   ======================================================= */
.inline-ic {
  width: 2em; height: 2em;
  vertical-align: -0.15em;
  display: inline-block;
  margin-right: .25em;
  flex-shrink: 0;
}
.top-header .inline-ic { filter: brightness(0) invert(1); opacity: .9; }
footer .inline-ic { width: 1.05em; height: 1.05em; vertical-align: -0.2em; }

/* =======================================================
   Brand icons (real, vectorized) — inside existing containers
   ======================================================= */
.pf-ico {
  display: block; width: 100%; height: 100%;
  object-fit: contain;
}

/* Service-card badge: white pill so multi-color line icon reads well */
.service-card-ref .photo .badge:has(img.pf-ico) {
  background: #fff !important; color: inherit;
  width: 64px; height: 64px;
  border: 1px solid var(--pf-border);
  padding: 8px;
  top: 12px; left: 12px;
}

/* Why-choose circle: white with subtle ring so brand colors stay visible */
.why-col .circle:has(img.pf-ico) {
  background: #fff !important; color: inherit;
  width: 92px; height: 92px;
  border: 2px solid var(--pf-border);
  padding: 14px;
}
.why-col:hover .circle:has(img.pf-ico) { border-color: var(--pf-magenta); }

/* Mission card heart container: transparent, larger icon */
.mission-card .heart:has(img.pf-ico) {
  background: transparent; width: 84px; height: 84px; padding: 0;
}

/* Generic icon-badge (about, services, careers, contact info cards) */
.icon-badge:has(img.pf-ico) {
  background: #fff; color: inherit;
  border: 1px solid var(--pf-border);
  padding: 8px;
}
.info-card .icon-badge:has(img.pf-ico) {
  background: var(--pf-bg-soft); border-color: transparent;
}
.feature .icon-badge:has(img.pf-ico) { padding: 6px; }

/* Larger icon-badge for services subpage section headers */
.services-section-icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: #fff; border: 1px solid var(--pf-border);
  padding: 8px; margin-bottom: 1rem;
  display: inline-grid; place-items: center;
}
.services-section-icon img { width: 100%; height: 100%; object-fit: contain; }

.subservice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.subservice-trigger {
  min-height: 108px;
  border: 1px solid var(--pf-border);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--pf-ink);
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: .9rem;
  padding: 1rem;
  text-align: left;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  overflow-wrap: anywhere;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.subservice-trigger:nth-child(3) { grid-column: 1 / -1; }
.subservice-trigger:hover,
.subservice-trigger:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(184,50,145,.38);
  box-shadow: var(--shadow-md);
  outline: none;
}
.subservice-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--pf-bg-soft);
  display: grid;
  place-items: center;
  padding: 8px;
}
.subservice-icon img { width: 100%; height: 100%; object-fit: contain; }

.service-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(7,31,95,.62);
  backdrop-filter: blur(5px);
}
.service-modal.open { display: flex; }
.service-modal-inner {
  position: relative;
  width: min(100%, 560px);
  max-height: min(86vh, 680px);
  overflow: auto;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}
.service-modal-close {
  position: absolute;
  top: .85rem;
  right: .85rem;
  width: 44px;
  height: 44px;
  border: 1px solid var(--pf-border);
  border-radius: 50%;
  background: var(--pf-bg-soft);
  color: var(--pf-ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.service-modal-close:hover,
.service-modal-close:focus-visible {
  background: var(--pf-magenta);
  color: #fff;
  outline: none;
  transform: rotate(90deg);
}
.service-modal-head { padding-right: 2.75rem; margin-bottom: 1rem; }
.service-modal-head .eyebrow {
  color: var(--pf-magenta);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .78rem;
}
.service-modal-head h2 { margin-top: .25rem; color: var(--pf-blue); }
.service-modal p { color: var(--pf-text); }
.service-modal ul {
  display: grid;
  gap: .55rem;
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
  color: var(--pf-text);
}

@media (max-width: 980px) {
  .service-detail .service-media { order: 1 !important; }
  .service-detail .service-copy { order: 2 !important; }
  .subservice-grid { grid-template-columns: 1fr; }
  .subservice-trigger:nth-child(3) { grid-column: auto; }
}

@media (max-width: 768px){
  .subservice-trigger{
    display: flex;
    justify-content: center;
  }
}
@media (max-width: 600px) {
  .faq-cat { padding: 1rem; border-radius: var(--radius-md); }
  .subservice-trigger {
    min-height: 82px;
    grid-template-columns: 44px 1fr;
    padding: .85rem;
  }
  .subservice-icon { width: 44px; height: 44px; }
  .service-modal { padding: .9rem; align-items: center; }
  .service-modal-inner { padding: 1.6rem 1.2rem 1.25rem; }
}

/* Brand logo (real, vectorized) */
.brand-img {
  display: block; height: 62px; width: auto;
  max-width: 300px;
}
.main-header .brand-img { height: 62px; 
max-height: 80px;
}
footer .brand-img {
  height: 72px; padding: 0; background: transparent;
  border-radius: 0; box-shadow: none;
  max-width: 320px;
}
@media (max-width: 980px) {
  .main-header .brand-img { height: 48px; max-height: 70px; }
  footer .brand-img { height: 60px; }
}

/* =======================================================
   Social icons (top header + footer)
   ======================================================= */
.social-icons { display: inline-flex; gap: .85rem; align-items: center; }
.social-icons a {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border-radius: 6px;
  color: #fff;
  padding: 4px;
  transition: transform .18s ease, color .18s ease, opacity .18s ease;
  opacity: .92;
}
.social-icons a:hover {
  transform: translateY(-2px);
  opacity: 1;
  color: var(--pf-yellow);
}
.social-icons svg { width: 22px; height: 22px; display: block; }

/* Top header (magenta band) */
.top-header .social-icons a { color: #fff; }
.top-header .social-icons a:hover { color: var(--pf-yellow); }

/* Footer (deep blue band) */
footer .social-icons { margin-top: 1.1rem; }
footer .social-icons a { color: #fff; }
footer .social-icons a:hover { color: var(--pf-yellow); }

/* =======================================================
   Subpage hero — background image variant
   ======================================================= */
.sub-header-bg {
  position: relative;
  padding: 96px 0 80px;
  background-size: cover;
  background-position: center 30%; /* lift focal point so faces stay visible */
  color: #fff;
  isolation: isolate;
  border-bottom: none;
  margin-top: var(--header-total);

  @media(width>768px){
    min-height: 35vh;
    align-items: center;
    display: flex;

  }
}
@media (max-width: 760px) {
  .sub-header-bg {
    margin-top: 0;
  }

  .sub-header-bg { background-position: 65% 25%; padding: 72px 0 60px;
  
  min-height: 45vh;
    align-items: center;
    display: flex;
  }
}
.bg-image-section { background-position: center 30%; }
@media (max-width: 760px) {
  .bg-image-section { background-position: 60% 30%; padding: 72px 0; }
}
.sub-header-bg::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(11,45,131,.82) 0%, rgba(11,45,131,.55) 60%, rgba(184,50,145,.45) 100%);
  z-index: -1;
}
.sub-header-bg h1 { color: #fff; }
.sub-header-bg p { color: rgba(255,255,255,.88); }
.sub-header-bg .breadcrumb { color: rgba(255,255,255,.82); }
.sub-header-bg .breadcrumb a { color: rgba(255,255,255,.82); }
.sub-header-bg .breadcrumb a:hover { color: var(--pf-yellow); }
.sub-header-bg .breadcrumb span[aria-current="page"] { color: var(--pf-yellow); }

@media(width<768px){
  .sub-header-bg .breadcrumb{
    justify-content: center;
  }

  .sub-header-bg h1, .sub-header-bg p{
    text-align: center;
  }
}

/* =======================================================
   Home hero — full-viewport + white→transparent overlay
   ======================================================= */
.hero-ref {
  min-height: calc(100vh - var(--header-total));
  padding: 0; /* remove section padding so image touches edges */
  margin-top: var(--header-total);
}
.hero-ref-grid {
  min-height: calc(100vh - var(--header-total));
  align-items: stretch;
}
.hero-ref-image {
  position: relative;
  min-height: 0; /* allow stretch */
  height: 100%;
  width: 100%;
}
.hero-ref-image picture,
.hero-ref-image picture > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 65% center; /* faces toward right portion stay safe */
  display: block;
}
.hero-ref-image::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  /* Smooth, longer fade so the column boundary is invisible */
  background: linear-gradient(to right,
    rgba(255,255,255,1)   0%,
    rgba(255,255,255,.92) 12%,
    rgba(255,255,255,.7)  28%,
    rgba(255,255,255,.4)  46%,
    rgba(255,255,255,.15) 64%,
    rgba(255,255,255,0)   82%);
  pointer-events: none;
}
.hero-ref-image::after { display: none; }
.hero-swoosh { display: none !important; }
.hero-ref-text { background: transparent; }
.hero-ref-grid { background: #fff; }
@media (max-width: 980px) {
  .hero-ref, .hero-ref-grid { min-height: auto; }
  .hero-ref-image { min-height: 420px; }
  .hero-ref-image picture > img { object-position: center 30%; }
  .hero-ref-image::before {
    background: linear-gradient(to bottom, rgba(255,255,255,0) 55%, rgba(255,255,255,.9) 100%);
  }
}
@media (max-width: 768px) {
  .hero-ref {
    margin-top: 0;
  }
}
/* =======================================================
   Service cards — no icon badges, aligned CTAs
   ======================================================= */
.service-card-ref { display: flex; flex-direction: column; }
.service-card-ref .body { flex: 1; display: flex; flex-direction: column; }
.service-card-ref .body p { flex: 1; }
.service-card-ref .body .learn-more { margin-top: auto; align-self: flex-start; }
.service-card-ref .photo .badge { display: none; }

/* =======================================================
   Mission card — icon only, no circle/fill
   ======================================================= */
.about-v2-mission .heart {
  width: auto; height: auto;
  background: transparent !important;
  display: block;
  margin-bottom: 1rem;
  padding: 0;

  @media(width<768px){
    display: flex !important;
    justify-content: center;
  }
}
.about-v2-mission .heart img { width: 112px; height: 112px; }

/* Legacy mission-card (kept for safety, no-circle variant) */
.mission-card .heart:has(img.pf-ico),
.mission-card .heart { background: transparent !important; padding: 0; }
.mission-card .heart img.pf-ico { width: 64px; height: 64px; }

/* =======================================================
   Newsletter strip — icon removed, clean balanced layout
   ======================================================= */
.newsletter-strip .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: 980px;
  gap: 2rem;
}
.newsletter-strip .nl-icon { display: none; }
.newsletter-strip form {
  display: flex !important; flex-direction: column;
  gap: .65rem; align-items: stretch;
  max-width: 100%;
}
.newsletter-strip form .row,
.newsletter-strip .nl-input-row {
  display: flex; gap: .5rem;
}
.newsletter-strip input[type="email"] {
  flex: 1; min-width: 0;
}
@media (max-width: 720px) {
  .newsletter-strip .container { grid-template-columns: 1fr; text-align: center; }
  .newsletter-strip form { align-items: stretch; }
}

/* =======================================================
   Consistent checkbox style across all forms
   ======================================================= */
.pf-checkbox,
.privacy-check,
.nl-check {
  display: flex; align-items: center; gap: .5rem;
  font-size: .9rem; line-height: 1.4;
  background: transparent !important;
  padding: 0 !important;
  margin: .25rem 0 0 !important;
  border-radius: 0 !important;
}
.pf-checkbox input[type="checkbox"],
.privacy-check input[type="checkbox"],
.nl-check input[type="checkbox"] {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px;
  margin: 0; flex-shrink: 0;
  background: #fff;
  border: 1.5px solid var(--pf-border);
  border-radius: 4px;
  cursor: pointer;
  display: inline-grid; place-content: center;
  transition: border-color .15s, background .15s;
}
.pf-checkbox input[type="checkbox"]:checked,
.privacy-check input[type="checkbox"]:checked,
.nl-check input[type="checkbox"]:checked {
  background: var(--pf-blue);
  border-color: var(--pf-blue);
}
.pf-checkbox input[type="checkbox"]:checked::before,
.privacy-check input[type="checkbox"]:checked::before,
.nl-check input[type="checkbox"]:checked::before {
  content: ""; width: 10px; height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M13.6 4.4 6.4 11.6 2.4 7.6l1.2-1.2 2.8 2.8 6-6z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.pf-checkbox input[type="checkbox"]:focus-visible,
.privacy-check input[type="checkbox"]:focus-visible,
.nl-check input[type="checkbox"]:focus-visible {
  outline: 3px solid var(--pf-yellow); outline-offset: 2px;
}
/* Newsletter on dark band — light text */
.newsletter-strip .nl-check { color: rgba(255,255,255,.95); }
.newsletter-strip .nl-check a { color: #fff; text-decoration: none; font-weight: 600; 
  &:hover{
    color: var(--pf-yellow);
  }
}
/* Forms (light bg) */
.privacy-check { color: var(--pf-text); }
.privacy-check a { font-weight: 600; color: var(--pf-blue); text-decoration: underline; }

/* =======================================================
   Home Our Community — fade collage
   ======================================================= */
.community-collage {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: repeat(2, 200px);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.community-collage .cc {
  position: relative; overflow: hidden;
  border-radius: var(--radius-md);
}
.community-collage .cc img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s ease;
}
.community-collage .cc img.active { opacity: 1; }
.community-collage .cc-1 { grid-row: 1 / span 2; }
.community-collage .cc-2 { }
.community-collage .cc-3 { }
.community-collage .cc-4 { }
.community-collage .cc-5 { }
@media (max-width: 760px) {
  .community-collage { grid-template-columns: 1fr 1fr; grid-template-rows: 160px 160px 160px; }
  .community-collage .cc-1 { grid-row: 1 / span 2; grid-column: 1 / span 2; }
}

/* =======================================================
   Newsletter strip — rebalanced
   ======================================================= */
.newsletter-strip .container {
  grid-template-columns: auto 1fr;
  align-items: center;
      max-width: max-content;
    gap: 8.5rem;
}
.newsletter-strip .nl-icon { width: 64px; height: 64px; }
.newsletter-strip form {
  flex-wrap: wrap; max-width: 540px;
  display: grid; grid-template-columns: 1fr auto; gap: .5rem;
  width: 100%;
}
.newsletter-strip form .nl-check {
  grid-column: 1 / -1;
}
@media (max-width: 700px) {
  .newsletter-strip .container { grid-template-columns: 1fr; text-align: center; }
  .newsletter-strip .nl-icon { margin: 0 auto; }
  .newsletter-strip form { grid-template-columns: 1fr; }
}

/* =======================================================
   Carousel (Family Fit on Services + Team on About)
   ======================================================= */
.pf-carousel {
  position: relative;
  overflow: hidden;
}
.pf-carousel-track {
  display: flex; gap: 1.25rem;
  transition: transform .5s ease;
  will-change: transform;
}
.pf-carousel-item {
  background: #fff; border: 1px solid var(--pf-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
@media (max-width: 980px) { .pf-carousel-item { flex: 0 0 calc((100% - 1.25rem) / 2); } }
@media (max-width: 560px) { .pf-carousel-item { flex: 0 0 100%; } }
.pf-carousel-item .icon-badge {
  width: 56px; height: 56px; padding: 8px; margin-bottom: .75rem;
  background: var(--pf-bg-soft); border: 1px solid var(--pf-border);
}
.pf-carousel-item h3 { color: var(--pf-blue); font-size: 1rem; margin-bottom: .35rem; }
.pf-carousel-item p { color: var(--pf-muted); font-size: var(--fs-content); margin: 0; }
.pf-carousel-ctrls {
  display: flex; gap: .5rem; justify-content: center; margin-top: 1.25rem;
}
.pf-carousel-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--pf-border); background: #fff;
  color: var(--pf-blue); font-weight: 700; cursor: pointer;
  transition: background .2s, color .2s;
  min-height: max-content !important;
}
.pf-carousel-btn:hover { background: var(--pf-blue); color: #fff; }

/* Team carousel — image-led cards */
.team-carousel .pf-carousel-item { padding: 0; overflow: hidden; }
.team-carousel .team-photo {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, #0B2D836E, #9F2A7D);
  display: grid; place-items: center;
}
.team-carousel .team-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-carousel .team-meta { padding: 1rem 1.25rem 1.25rem; text-align: center; }
.team-carousel .team-meta h3 { margin-bottom: .15rem; color: var(--pf-blue); font-size: 1.05rem; }
.team-carousel .team-meta .role { color: var(--pf-magenta); font-size: .85rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.team-carousel .team-meta p {
  margin: .85rem auto 0;
  color: var(--pf-text);
  font-size: var(--fs-content);
  line-height: 1.6;
  max-width: 34ch;

   display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

/* =======================================================
   Gallery lightbox
   ======================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(11,18,40,.92);
  display: none; align-items: center; justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw; max-height: 84vh;
  object-fit: contain; border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.15); color: #fff; border: 0;
  font-size: 1.4rem; cursor: pointer;
  transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,.3); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.15); color: #fff; border: 0;
  font-size: 1.4rem; cursor: pointer;
  transition: background .2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,.3); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
@media (max-width: 600px) {
  .lightbox-nav { width: 38px; height: 38px; }
  .lightbox-prev { left: 8px; } .lightbox-next { right: 8px; }
}

/* =======================================================
   Joint Commission image card (home)
   ======================================================= */
.jc-image-card {
  max-width: 240px;
  background: #fff; border-radius: var(--radius-md);
  padding: 1rem; border: 1px solid var(--pf-border);
  box-shadow: var(--shadow-sm);

  @media(width<768px){
    box-shadow: none;
    border: none;
  }
}
.jc-image-card img { width: 100%; height: auto; display: block; }

/* =======================================================
   About — Why-the-Name backgrounded section
   ======================================================= */
.bg-image-section {
  position: relative;
  padding: 96px 0;
  background-size: cover; background-position: center;
  color: #fff;
  text-align: center;
  isolation: isolate;
}
.bg-image-section::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, rgba(11,45,131,.88) 0%, rgba(11,45,131,.6) 60%, rgba(184,50,145,.55) 100%);
}
.bg-image-section h2 { color: #fff; }
.bg-image-section p { color: rgba(255,255,255,.92); max-width: 60ch; margin-inline: auto; }
.bg-image-section .eyebrow { color: var(--pf-yellow); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .pf-carousel-track { transition: none !important; }
  .community-collage .cc img { transition: none !important; }
}

/* =======================================================
   Reviews carousel — adapt testimonial cards inside pf-carousel
   ======================================================= */
.reviews-carousel .pf-carousel-item.testimonial-ref {
  position: relative;
  padding-top: 2.5rem;
  display: flex; gap: 1rem;
}
.reviews-carousel .pf-carousel-item.testimonial-ref .quote-mark {
  position: absolute; top: .25rem; left: 1rem;
}
.reviews-carousel .pf-carousel-item.testimonial-ref .body { flex: 1; }

/* =======================================================
   Apply Now modal (Careers)
   ======================================================= */
.apply-modal {
  position: fixed; inset: 0; z-index: 250;
  background: rgba(11,18,40,.65);
  display: none;
  align-items: flex-start; justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.apply-modal.open { display: flex; }
.apply-modal-inner {
  background: var(--pf-bg-warm);
  width: min(100%, 1100px);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  padding: 2.5rem 1rem 2rem;
  position: relative;
  margin: auto 0;
}
.apply-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--pf-bg-soft); color: var(--pf-ink);
  border: 1px solid var(--pf-border);
  font-size: 1.4rem; line-height: 1; cursor: pointer;
  transition: background .15s, color .15s, transform .15s;
}
.apply-modal-close:hover { background: var(--pf-magenta); color: #fff; transform: rotate(90deg); }
.apply-modal-head { text-align: center; margin-bottom: 1.5rem; }
.apply-modal-head h2 { color: var(--pf-blue); margin: .25rem 0 .5rem; }
.apply-requirements {
  background: #fff; border: 1px solid var(--pf-border);
  border-radius: var(--radius-md); padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}
.apply-requirements h3 {
  color: var(--pf-blue); font-size: 1rem;
  margin: 0 0 .5rem;
}
.apply-requirements ul { margin: 0; padding-left: 1.25rem; color: var(--pf-text); }
.apply-requirements li { margin-bottom: .35rem; }
.apply-form { background: #fff; }
body.modal-open { overflow: hidden; }
@media (max-width: 600px) {
  .apply-modal { padding: 1rem .5rem; }
  .apply-modal-inner { padding: 2.5rem 1.25rem 1.25rem; }
}

/* =======================================================
   Polish — focused adjustments
   ======================================================= */

/* (size + color now defined in the unified .social-icons block above) */

/* Footer logo — larger, matches text block width better */
footer .brand-img { height: 92px; max-width: 360px; }
@media (max-width: 980px) { footer .brand-img { height: 72px; } }

/* Footer inline icons (phone/email/office) slightly larger */
footer .inline-ic { width: 2em; height: 2em; vertical-align: -0.28em; }
@media (max-width: 768px) { footer .inline-ic { display: none; } }
footer .footer-grid ul li { display: flex; align-items: center; gap: .5rem; line-height: 1.5; }
footer .footer-grid ul li > .inline-ic { flex-shrink: 0; margin-top: .2em; }

/* About — Why Person First parallax + face-safe framing */
.bg-image-section {
  background-attachment: fixed;
  background-position: center 28%;
}
@media (max-width: 980px) {
  /* Mobile: parallax (fixed bg) is buggy on most mobile browsers — fallback to scroll + face-safe crop */
  .bg-image-section { background-attachment: scroll; background-position: 60% 28%; }
}
@media (prefers-reduced-motion: reduce) {
  .bg-image-section { background-attachment: scroll; }
}

/* About — Mission/Vision/Values icons larger */
.bg-warm .grid-3 .service-card .icon-badge:has(img.pf-ico) {
  width: 76px; height: 76px; padding: 10px;

  @media(width<768px){
    margin-inline: auto;
  }
}
.bg-warm .grid-3 .service-card .icon-badge img.pf-ico { width: 100%; height: 100%; }

/* About — Joint Commission strip band (Stay Connected style) */
.accred-strip-band {
  background: linear-gradient(90deg, var(--pf-blue), var(--pf-blue-dark));
  color: #fff;
  padding: 3rem 0;
}
.accred-strip-band .container {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2.5rem;
}
.accred-strip-body h3 {
  color: #fff; margin: 0 0 .4rem; font-size: 1.5rem; line-height: 1.25;
}
.accred-strip-body p {
  color: rgba(255,255,255,.92); margin: 0; font-size: .98rem; max-width: 68ch;
}
.accred-strip-seal {
  background: #fff; border-radius: var(--radius-md);
  padding: .85rem; box-shadow: var(--shadow-sm);
  display: grid; place-items: center;
}
.accred-strip-seal img { width: 160px; height: auto; display: block; }
@media (max-width: 760px) {
  .accred-strip-band { padding: 2.25rem 0; }
  .accred-strip-band .container { grid-template-columns: 1fr; text-align: center; }
  .accred-strip-seal { justify-self: center; }
  .accred-strip-seal img { width: 140px; }
}

/* Services — Family Fit carousel icon boxes use palette colors + white icons */
.pf-carousel-item .icon-badge:has(img.pf-ico) {
  width: 64px; height: 64px;
  padding: 12px;
  background: var(--pf-blue);
  border: none;
  border-radius: 14px;
}
.pf-carousel-item .icon-badge img.pf-ico {
  filter: brightness(0) invert(1); /* force white */
  width: 100%; height: 100%;
}
/* Alternating colored boxes by position so the row feels lively */
.why-carousel__item:nth-child(2n) .icon-badge:has(img.pf-ico) { background: var(--pf-magenta); }
.why-carousel__item:nth-child(3n) .icon-badge:has(img.pf-ico) { background: var(--pf-blue-dark); }
.why-carousel__item:nth-child(5n) .icon-badge:has(img.pf-ico) { background: var(--pf-magenta-dark); }

/* Contact + Careers forms — breathing room between checkbox and submit */
form .privacy-check { margin-bottom: 1.5rem !important; }
form .privacy-check + button[type="submit"],
form .privacy-check + .btn { margin-top: 1.25rem; }

/* =======================================================
   MOBILE TUNING — consolidated professional pass
   (kept at the end so it overrides earlier rules cleanly)
   ======================================================= */

/* Tablet & smaller: tighten sticky-header chrome so it doesn't eat the viewport */
@media (max-width: 980px) {
  :root {
    --header-top-h: 36px;
    --header-main-h: 64px;
    --header-total: 100px;
  }
  body { padding-top: var(--header-total); }

  /* Section rhythm: compress vertical paddings */
  section { padding: var(--padding-sections) 0; }
  .accred-strip-band, .newsletter-strip { padding: 2rem 0; }

  /* Sub-page heroes: lighter, less drama */
  .sub-header,
  .sub-header-bg { padding: 56px 0 44px !important; }
  .sub-header-bg h1 { font-size: clamp(1.7rem, 6vw, 2.1rem); }

  /* Containers: a touch more breathing room from edges */
  .container { width: min(100% - 1.5rem, var(--container)); }

  /* Top header: keep phone + socials, drop the longer tagline */
  .top-header { font-size: .8rem; }
  .top-header .top-left { gap: .65rem; }
  .top-header .top-left > span:last-child { display: none; }
  .top-header .top-left > span[aria-hidden="true"] { display: none; }
  .top-right .social-icons { gap: .6rem; }
  .social-icons a { padding: 6px; }
  .social-icons svg { width: 20px; height: 20px; }

  /* Brand logo: stop the larger size from breaking the header */
  .main-header .brand-img { height: 44px; max-width: 240px; }

  /* Hero readability on tablet */
  .hero-ref-text { padding: 2.5rem 1rem 2rem !important; margin-left: 0 !important; max-width: 100%; }
  .hero-ref-text h1 { font-size: clamp(1.9rem, 7vw, 2.4rem); }
  .hero-ref-text p { font-size: 1rem; }
  .hero-ref-actions { gap: .6rem; }
  .hero-ref-actions .btn, .hero-ref-actions .btn-outline { width: 100%; justify-content: center; }

  /* Service-card photos slightly shorter on tablet */
  .service-card-ref .photo { aspect-ratio: 16/11; }

  /* About v2 on tablet/mobile: stack but keep mission card tasteful */
  .about-v2-grid { gap: 1.5rem; }
  .about-v2-visual { padding-right: 0; padding-bottom: 2.5rem; max-width: 420px; }
  .about-v2-mission { width: 88%; padding: 1.25rem; }
  .about-v2-mission .heart img { width: 80px; height: 80px; }
  .about-v2-arc { width: 70px; height: 70px; border-width: 10px; }
  .about-v2-text h2 { font-size: clamp(1.55rem, 4.5vw, 1.9rem); }

  /* Joint Commission strip — keep proportional */
  .accred-strip-seal img { width: 120px; }
  .accred-strip-body h3 { font-size: 1.2rem; }

  /* Carousels: 1 item visible, comfortable padding */
  .pf-carousel-item { flex: 0 0 100% !important; padding: 1.25rem; }

  /* Reviews carousel cards on mobile */
  .reviews-carousel .pf-carousel-item.testimonial-ref { padding-top: 2.25rem; }

  /* Family Fit cards — keep boxes appropriately sized */
  .pf-carousel-item .icon-badge:has(img.pf-ico) { width: 56px; height: 56px; padding: 10px; }

  /* Why Choose: 2 cols on tablet, 1 col phone */
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .why-col .circle { width: 72px !important; height: 72px !important; padding: 12px !important; }

  /* Community fade collage: shrink rows on mobile */
  .community-collage { grid-template-rows: 160px 160px; gap: .75rem; }

  /* Footer — center stack on mobile, neat social row */
  footer { padding-top: 3rem; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 1.5rem !important; text-align: center; }
  .footer-brand { display: flex; flex-direction: column; align-items: center; }
  .footer-brand .brand-img { margin-inline: auto; height: 60px !important; }
  footer .social-icons { justify-content: center; }
  .footer-grid ul li { justify-content: center; }
  .footer-bottom { flex-direction: column-reverse; gap: .6rem; text-align: center; }
  .legal-links { justify-content: center; }

  /* Forms: stack two-column rows */
  .field-row { grid-template-columns: 1fr !important; gap: 0; }
  .field-row .field { margin-bottom: 1rem; }
  .form-card { padding: 1.5rem; }

  /* Contact page: stack cleanly */
  .contact-grid { grid-template-columns: 1fr !important; gap: 1.5rem; }
  .map-embed { aspect-ratio: 4/3; }

  /* Newsletter strip layout */
  .newsletter-strip .container { grid-template-columns: 1fr; gap: 1.5rem; text-align: center; }
  .newsletter-strip form { grid-template-columns: 1fr; }
  .newsletter-strip form .row, .newsletter-strip .nl-input-row { flex-direction: column;  display: flex;}
  .newsletter-strip button[type="submit"] { width: 100%; }

  /* Job cards: stack on mobile */
  .job-card { flex-direction: column; align-items: stretch; gap: .75rem; }
  .job-card .btn { width: 100%; justify-content: center; }
  .role-summary-grid { grid-template-columns: 1fr; }

  /* Apply modal — fit smaller viewports nicely */
  .apply-modal { padding: 1rem; align-items: flex-start; }
  .apply-modal-inner { padding: 2.25rem 1.25rem 1.25rem; border-radius: 14px; }

  /* Tap targets: ensure buttons hit 44px min */
  .btn, .btn-primary, .btn-secondary, .btn-outline, .btn-ghost,
  .filter-btn, .pf-carousel-btn { min-height: 44px; }
}

@media (max-width: 768px) {
  .hero-ref-text{
    text-align: center;
            align-items: center;
        justify-content: center !important;
  }
}

/* Phone-specific tweaks */
@media (max-width: 600px) {
  :root { --header-top-h: 34px; --header-main-h: 60px; --header-total: 94px; }

  /* Top header: drop phone label to stay one-line */
  .top-header { font-size: .78rem; }
  .top-header .top-left { gap: .5rem; }

  /* Hero image height on phones */
  .hero-ref-image { min-height: 340px; }
  .hero-ref-image picture > img { object-position: center 25%; }

  /* Section title scaling */
  .section-title-block h2,
  .section-head h2 { font-size: clamp(1.45rem, 6vw, 1.85rem); }

  /* Service cards full width with comfortable spacing */
  .grid-4 { grid-template-columns: 1fr; gap: 1.25rem; }
  .grid-3 { grid-template-columns: 1fr; gap: 1rem; }

  /* Gallery — 2 columns on phone for browsability */
  .gallery-grid { grid-template-columns: repeat(2, 1fr) !important; gap: .6rem; }
  .gallery-item { aspect-ratio: 1/1; border-radius: 10px; }

  /* Why Choose 1 col */
  .why-grid { grid-template-columns: 1fr; }
  .why-col p { font-size: 16px; }

  /* Lightbox tighten controls */
  .lightbox { padding: 1rem; }
  .lightbox-close { top: 12px; right: 12px; }

  /* Accreditation strip on phones */
  .accred-strip-band .container { gap: 1.25rem; }
  .accred-strip-seal img { width: 110px; }
  .accred-strip-body h3 { font-size: 1.1rem; }
  .accred-strip-body p { font-size: .92rem; }

  /* About v2 — mission card slightly inset */
  .about-v2-mission { width: 92%; padding: 1rem; }
  .about-v2-mission .heart img { width: 70px; height: 70px; }
  .about-v2-mission .lead { font-size: .92rem; }
  .about-v2-arc { display: none; }

  /* Joint Commission card on home */
  .accred-jc { padding: 1.5rem; gap: 1rem; }
  .jc-image-card { max-width: 180px; margin-inline: auto; }

  /* Buttons in stacks: ensure they don't crush text */
  .btn, .btn-primary, .btn-secondary, .btn-outline { font-size: .9rem; padding: .8rem 1.25rem; }

  /* Contact info-card icons — slightly smaller for tighter rows */
  .info-card .icon-badge { width: 44px; height: 44px; padding: 6px; }

  /* Apply modal heading */
  .apply-modal-head h2 { font-size: 1.3rem; }
  .apply-requirements { padding: .85rem 1rem; }
  .apply-requirements h3 { font-size: .95rem; }
  .apply-requirements li { font-size: .9rem; }

  /* Inline phone icon top header — slightly larger fingertip */
  .top-header .inline-ic { width: 1.8em; height: 1.8em; }

  /* Carousel buttons sit a bit lower on phone */
  .pf-carousel-ctrls { margin-top: 1rem; }
}

/* Very small phones */
@media (max-width: 380px) {
  .top-header .top-left > a { font-size: .78rem; }
  .top-right .social-icons { gap: .4rem; }
  .main-header .container { gap: .5rem; }
  .main-header .brand-img { height: 38px; }
  .menu-toggle { width: 40px; height: 40px; }
  .hero-ref-text h1 { font-size: 1.65rem; }
  section { padding: var(--padding-sections) 0; }
}

/* Honor reduced motion — skip transforms on small screens too */
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .btn-outline:hover, .social-icons a:hover { transform: none !important; }
}

/* =======================================================
   MOBILE FIXES — overrides for hero, top-header socials,
   newsletter button, button polish (highest precedence)
   ======================================================= */
@media (max-width: 980px) {
  /* --- Top header: SHOW social icons on every breakpoint --- */
  .top-header .top-right { display: flex !important; gap: .5rem; align-items: center; }
  .top-header .top-right a + a { padding-left: 0; border-left: none; }
  .top-header { padding: 0 .25rem; }
  .top-header .container { padding: 0; }
  .top-header .top-left > a { font-weight: 700; }

  /* --- Hero: image fills section as a BACKGROUND, text overlays --- */
  .hero-ref {
    min-height: calc(100svh - var(--header-total));
    position: relative;
    overflow: hidden;
  }
  .hero-ref-grid {
    display: block !important; /* abandon grid, use absolute layering */
    min-height: calc(100svh - var(--header-total));
    background: transparent;
  }
  /* Image becomes the full-bleed background */
  .hero-ref-image {
    position: absolute !important; inset: 0;
    z-index: 0;
    min-height: 100%;
    height: 100%;
    width: 100%;
  }
  .hero-ref-image picture,
  .hero-ref-image picture > img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 25%;
  }
  /* Darker readable overlay (top-left vignette + bottom soft gradient) */
  .hero-ref-image::before {
    background:
      linear-gradient(180deg, rgba(11,18,40,.55) 0%, rgba(11,18,40,.35) 50%, rgba(11,18,40,.7) 100%) !important;
  }
  /* Text overlays the image */
  .hero-ref-text {
    position: relative; z-index: 2;
    padding: 2.5rem 1.25rem 2.5rem !important;
    margin: 0 !important;
    max-width: 100% !important;
    color: #fff;
    display: flex; flex-direction: column;
    justify-content: flex-end;
    min-height: calc(100svh - var(--header-total));
  }
  .hero-ref-text h1 { color: #fff !important; }
  .hero-ref-text h1 .line1,
  .hero-ref-text h1 .line2 { color: #fff !important; }
  .hero-ref-text h1 .line2 { color: var(--pf-yellow) !important; }
  .hero-ref-text p { color: rgba(255,255,255,.92) !important; }
  /* Hero buttons: clean stacked, real height, brand-aligned */
  .hero-ref-actions {
    display: flex; flex-direction: column; gap: .65rem;
    width: 100%; margin-top: 1.25rem;
  }
  .hero-ref-actions .btn,
  .hero-ref-actions .btn-outline {
    width: 100%; justify-content: center;
    padding: .95rem 1.25rem;
    font-size: .95rem;
    min-height: 50px;
    border-radius: var(--radius-pill);
  }
  .hero-ref-actions .btn-outline {
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.85);
    backdrop-filter: blur(6px);
  }
  .hero-ref-actions .btn-outline:hover { background: rgba(255,255,255,.2); }

  /* --- Newsletter button: proper height, full-width on mobile --- */
  .newsletter-strip form { gap: .75rem; }
  .newsletter-strip input[type="email"] {
    width: 100%;
    padding: .95rem 1.1rem;
    min-height: 50px;
    border-radius: var(--radius-pill);
  }
  .newsletter-strip button[type="submit"],
  .newsletter-strip button {
    width: 100%;
    padding: .95rem 1.5rem !important;
    min-height: 50px;
    border-radius: var(--radius-pill) !important;
    font-size: .95rem;
    background: var(--pf-yellow) !important;
    color: var(--pf-ink) !important;
    border: none;
  }
  .newsletter-strip button:hover { background: #ffe14a !important; }

  /* --- Button polish: rounded, comfortable, consistent on mobile --- */
  .btn-primary, .btn-secondary, .btn-outline {
    border-radius: var(--radius-pill);
    padding: .9rem 1.4rem;
    min-height: 48px;
    font-weight: 700;
  }
  /* Single-column CTAs (forms, banners) feel tap-friendly */
  form button[type="submit"] { width: 100%; min-height: 50px; padding: .95rem 1.5rem; }

  /* Banner CTAs full width on small screens */
  .contact-banner .btn { width: 100%; max-width: 320px; justify-content: center; }
}

@media (max-width: 600px) {
  /* Slightly larger hero text on phones */
  .hero-ref-text h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
  .hero-ref-text p { font-size: 1rem; max-width: 90%; }
}

/* Contact page — balanced 2-col layout (form+map left, image+cards right) */
.contact-grid { align-items: start; }
.contact-col-form { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-col-info { display: flex; flex-direction: column; gap: 0; }

@media (max-width: 768px) {
  .contact-col-info h2{
    text-align: center;
  }
}

/* Contact page — real Google Maps embed */
.map-embed {
  margin-top: 1rem;
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--pf-border);
  box-shadow: var(--shadow-sm);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-link {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: .75rem; font-weight: 700; color: var(--pf-blue);

  @media(width<768px){
        text-align: center;
    width: fit-content;
    margin-inline: auto;
  }
}
.map-link:hover { color: var(--pf-magenta); }

/* =======================================================
   Home About v2 — polished asymmetric layout
   ======================================================= */
.about-v2-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-v2-visual {
  position: relative;
  padding-bottom: 4rem;
  padding-right: 4rem;
}
.about-v2-photo {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  z-index: 2;

  @media(width<768px){
    aspect-ratio: 4 / 6;
  }
}
.about-v2-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.about-v2-mission {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 65%;
  background: #fff;
  border: 1px solid var(--pf-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.75rem;
  box-shadow: var(--shadow-md);
  z-index: 3;
}
.about-v2-mission .heart {
  width: auto; height: auto; border-radius: 0;
  background: transparent;
  display: block;
  margin-bottom: 1rem;
  padding: 0;
}
.about-v2-mission .heart img { width: 120px; height: 120px; }
.about-v2-mission .lead { font-weight: 700; color: var(--pf-ink); margin: 0 0 .25rem; font-size: .98rem; }
.about-v2-mission .lead .accent { color: var(--pf-magenta); }
.about-v2-mission .sub { font-size: var(--fs-content); color: var(--pf-muted); margin: .5rem 0 0; }
.about-v2-arc {
  position: absolute; left: -22px; top: -22px;
  width: 110px; height: 110px;
  border: 14px solid rgba(11,45,131,.08);
  border-radius: 50%;
  z-index: 1;
}
.about-v2-dot {
  position: absolute; right: 6%; top: 12%;
  width: 30px; height: 30px;
  background: var(--pf-yellow); border-radius: 50%;
  z-index: 3;
}
.about-v2-text h2 {
  color: var(--pf-blue);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: .5rem 0 1rem;
}
.about-v2-text h2::after {
  content: ""; display: block; width: 56px; height: 3px; background: var(--pf-yellow);
  border-radius: 3px; margin-top: 1rem;
}
.about-v2-text p { color: var(--pf-text); }
.about-v2-text .btn { margin-top: .75rem; }
@media (max-width: 900px) {
  .about-v2-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-v2-visual { padding-right: 2rem; padding-bottom: 3rem; max-width: 480px; margin: 0 auto; }
  .about-v2-mission { width: 80%; }
}

@media (max-width: 768px) {
  .about-v2-grid{
    display: flex;
    flex-direction: column-reverse;
    text-align: center;
  }

  .about-v2-text h2::after{
    margin-inline: auto;
  }

  .newsletter-strip form .nl-check{
    justify-content: center;
  }
}

/* Joint Commission accreditation row (home) */
.accred-jc {
  display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center;
  background: #fff; border: 1px solid var(--pf-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  box-shadow: var(--shadow-sm);
}
.accred-jc-icon {
  width: 110px; height: 110px; border-radius: 22px;
  background: var(--pf-bg-soft); padding: 16px;
  display: grid; place-items: center;
}
.accred-jc-icon img { width: 100%; height: 100%; object-fit: contain; }
.accred-jc-body h2 { color: var(--pf-blue); margin-bottom: .35rem; }
.accred-jc-body p { color: var(--pf-text); margin-bottom: 1rem; }
@media (max-width: 720px) {
  .accred-jc { grid-template-columns: 1fr; text-align: center; padding: 1.75rem; }
  .accred-jc-icon { margin: 0 auto; }
  .accred-jc-body p { margin-inline: auto; margin-bottom: 2rem;}
}

/* Accreditation badge (text-based, no fake logos) */
.accred-badge {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: 130px; height: 130px; border-radius: 50%;
  background: #fff; border: 3px solid var(--pf-yellow);
  color: var(--pf-blue); font-weight: 800; text-align: center; line-height: 1.15;
  padding: .75rem; font-size: .78rem;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 980px) {
  main section a.btn,
  main section a.btn-outline,
  main section button.btn,
  main section form button[type="submit"] {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  main section a.btn:not(.pf-carousel-btn),
  main section a.btn-outline,
  main section button.btn:not(.pf-carousel-btn) {
    width: min(100%, 320px);
    white-space: normal;
  }

  main section form button[type="submit"] {
    width: 100%;
  }

  main section .btn .arrow,
  main section .btn-outline .arrow {
    flex: 0 0 auto;
  }

  .gallery-filters {
    justify-content: center;
  }

  .hero-ref-actions {
    align-items: center;
  }

  .gallery-filters .filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .service-modal .btn {
    display: flex;
    width: min(100%, 260px);
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

  .menu-toggle,
  .service-modal-close,
  .apply-modal-close,
  .lightbox-close,
  .lightbox-nav,
  .pf-carousel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
}

/* Carousel */

.why-carousel {
  overflow: hidden;
  width: 100%;
  padding-inline: 17px;

    user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.why-carousel__nav{
        display: flex;
    align-items: center;
    gap: 22px;
    margin: auto;
    justify-content: center;
    margin-top: 2rem;
}

.why-carousel:active {
  cursor: grabbing;
}

.why-carousel__viewport {
  overflow: visible;
}

.why-carousel__track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
  align-items: stretch;

}

.why-carousel__item {
  flex: 0 0 100%;
  min-width: 100%;
  height: auto;
  display: flex;
  padding: 12px;
  opacity: 0;
  box-sizing: border-box;
  transition: all .3s ease-in;
}

.why-carousel__item.xcu-visible{
  opacity: 1;
}

@media (min-width: 768px) {
  .why-carousel__item {
    flex: 0 0 50%;
    min-width: 50%;
  }
}

@media (min-width: 1200px) {
  .why-carousel__item {
    flex: 0 0 33.3333%;
    min-width: 33.3333%;
  }
}

/* ===== DOTS ===== */

.why-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.why-carousel__dot {
      width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--light-gray);
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.why-carousel__dot.active {
      background: var(--black);
    transform: scale(1.2);
}


.check-policy{
  br{
    display: none;
  }

  button{
    outline: none;
    border: none;
    background: transparent; 
    cursor: pointer;
  }

}

.newsletter-group{
  display: flex;
  gap: 20px;

  @media(width<768px){
    flex-direction: column;
  }

  p{
    display: flex;
  }
}

.wpcf7 form .wpcf7-response-output{
  border-color: var(--pf-yellow) !important;
  background: #ffffff3b;
  border-radius: var(--radius-sm);
  font-family: "Montserrat", "Nunito Sans", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}

.newsletter-strip .wpcf7-not-valid-tip{
    color: white;
    margin-top: 0.5rem;
    font-size: 14px;
}



.form-card {
  .field-row .field br{
    display: none;
  
  }

  .field br{
    display: none;
  }

  @media(width<768px){
    h2, p{
      text-align: center;
    }
  }

}

.form-card button[type="submit"]{
  margin-top: 1rem;
  br{
    display: none;
  }
}

@media(width<768px){
  .about-introduction{
    display: flex;
    flex-direction: column-reverse;
    text-align: center;
  }
}


.section-services .container.grid-2{
  @media(width<768px){
    display: flex;
    flex-direction: column-reverse;
    text-align: center;
  }
}


.mobile-nav {
  transform: translateX(110%);
  transition: .3s ease;
  display: none;

}

.mobile-nav.is-ready {
    display: block !important;
}

.mobile-nav.open {
  transform: translateX(0);

}

.btn-outline{
 @media(width<768px){
        max-width: 320px;
  }
}



/* Hover Spe*/

.hov-card{
  position: relative;
  transition: opacity .7s ease, transform .7s ease;
}

.hov-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0) 0%,
      rgba(11,45,131,0.03) 70%,
      rgba(184,50,145,.09) 100%
    );
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
  z-index: 1;
}

.hov-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(184,50,145,.3);
}

.hov-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 15px 40px rgba(11,45,131,.08),
    0 5px 15px rgba(184,50,145,.06);
}

.hov-card:hover::before {
  opacity: 1;
}

.hov-card:hover h3 {
  color: var(--pf-magenta);
}

.section-btn{
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
}

.bcard__cat {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 1;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    border: 1px solid rgb(255 255 255 / 25%);
    padding: 6px 12px;
    border-radius: 50px;
    backdrop-filter: blur(4px);
    background: #071f5f7a;
    font-weight: 600;
    font-family: "Montserrat", "Nunito Sans", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bcard__tag{
  font-size: 13px;
  margin-bottom: .5rem;
  color: var(--muted);
  opacity: 0.7;
}