/*
 * Amerilife St. Petersburg — component styles.
 * Ported verbatim from the approved static prototypes. Design tokens are
 * mirrored in theme.json; the component rules themselves live here and are
 * enqueued on the front end and as the block-editor stylesheet.
 */

  :root {
    --navy-deep: #0e2436;
    --navy: #163a56;
    --teal: #2f7e7e;
    --teal-light: #4a9d9c;
    --sand: #f6f1e7;
    --sand-deep: #ece4d3;
    --gold: #bf9d5e;
    --gold-deep: #a8854a;
    --ink: #1a2630;
    --cream: #fdfbf6;
    --white: #ffffff;
    --shadow-soft: 0 18px 50px -20px rgba(14, 36, 54, 0.25);
    --shadow-card: 0 12px 40px -16px rgba(14, 36, 54, 0.20);
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  html { scroll-behavior: smooth; overflow-x: clip; }

  body {
    font-family: 'Mulish', sans-serif;
    background: var(--cream);
    color: var(--ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
  }

  h1, h2, h3, h4 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    line-height: 1.15;
    color: var(--navy-deep);
  }

  a { text-decoration: none; color: inherit; }

  .wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

  /* ---- Horizon line motif ---- */
  .horizon {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Mulish', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--teal);
  }
  .horizon::before {
    content: "";
    width: 38px;
    height: 1.5px;
    background: var(--gold);
  }

  /* ---- Buttons ---- */
  .btn {
    display: inline-block;
    padding: 15px 32px;
    font-family: 'Mulish', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    border-radius: 2px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    cursor: pointer;
    border: none;
  }
  .btn-primary {
    background: var(--navy);
    color: var(--white);
    box-shadow: 0 10px 28px -12px rgba(22, 58, 86, 0.7);
  }
  .btn-primary:hover {
    background: var(--navy-deep);
    transform: translateY(-2px);
    box-shadow: 0 16px 34px -12px rgba(22, 58, 86, 0.8);
  }
  .btn-ghost {
    background: transparent;
    color: var(--navy);
    border: 1.5px solid var(--navy);
  }
  .btn-ghost:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
  }
  .btn-gold {
    background: var(--gold);
    color: var(--navy-deep);
    box-shadow: 0 10px 28px -12px rgba(191, 157, 94, 0.8);
  }
  .btn-gold:hover {
    background: var(--gold-deep);
    transform: translateY(-2px);
  }

  /* ---- Utility bar ---- */
  .utility {
    background: var(--navy-deep);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.82rem;
    letter-spacing: 0.02em;
  }
  .utility .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 9px;
    padding-bottom: 9px;
  }
  .utility a { transition: color 0.2s; }
  .utility a:hover { color: var(--gold); }
  .utility-right { display: flex; gap: 26px; }
  .utility-right span { display: inline-flex; align-items: center; gap: 7px; }

  /* ---- Header ---- */
  header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(253, 251, 246, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--sand-deep);
  }
  header .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .logo { display: flex; flex-direction: column; line-height: 1; }
  .logo .mark {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--navy-deep);
    letter-spacing: 0.01em;
  }
  .logo .mark em {
    font-style: normal;
    color: var(--teal);
  }
  .logo .sub {
    font-family: 'Mulish', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-top: 5px;
  }
  nav ul {
    display: flex;
    gap: 34px;
    list-style: none;
    align-items: center;
  }
  nav a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    position: relative;
    padding: 4px 0;
    transition: color 0.2s;
  }
  nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -2px;
    width: 0; height: 1.5px;
    background: var(--gold);
    transition: width 0.25s ease;
  }
  nav a:hover { color: var(--navy-deep); }
  nav a:hover::after { width: 100%; }
  .nav-cta { margin-left: 6px; }
  .menu-toggle { display: none; background: none; border: none; cursor: pointer; }
  .menu-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--navy-deep); margin: 5px 0;
    transition: 0.3s;
  }

  /* ---- Section basics ---- */
  section { position: relative; }
  .section-pad { padding: 110px 0; }
  .section-head { max-width: 620px; margin-bottom: 56px; }
  .section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
  .section-head.center .horizon { justify-content: center; }
  .section-head h2 {
    font-size: clamp(2rem, 3.4vw, 2.8rem);
    margin-top: 18px;
  }
  .section-head p {
    font-size: 1.05rem;
    color: #4a5965;
    margin-top: 16px;
  }

  /* ---- Affiliation / two-column band (shared) ---- */
  .affiliation { background: var(--sand); }
  .affiliation .wrap {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 70px;
    align-items: center;
  }
  .affiliation .visual {
    aspect-ratio: 4 / 3.2;
    background:
      linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
  }
  .affiliation .visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      repeating-linear-gradient(180deg, transparent 0 38px, rgba(255,255,255,0.04) 38px 39px);
  }
  .affiliation .visual .badge {
    position: absolute;
    bottom: 28px; left: 28px; right: 28px;
    color: rgba(255,255,255,0.92);
  }
  .affiliation .visual .badge .horizon { color: var(--gold); }
  .affiliation .visual .badge .horizon::before { background: var(--gold); }
  .affiliation .visual .badge p {
    font-family: 'Fraunces', serif;
    font-size: 1.35rem;
    margin-top: 12px;
    color: var(--white);
  }

  /* ---- Services grid (shared card style) ---- */
  .services { background: var(--cream); }
  .service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
  }
  .service-card {
    background: var(--white);
    border: 1px solid var(--sand-deep);
    border-radius: 4px;
    padding: 38px 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  }
  .service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
    border-color: transparent;
  }
  .service-card .icon {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--sand);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 22px;
  }
  .service-card .icon svg { width: 26px; height: 26px; stroke: var(--teal); fill: none; stroke-width: 1.6; }
  .service-card h3 { font-size: 1.32rem; margin-bottom: 10px; }
  .service-card p { font-size: 0.96rem; color: #51606b; }
  .service-card .more {
    display: inline-block;
    margin-top: 18px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--teal);
  }
  .service-card .more::after {
    content: " \2192";
    transition: margin 0.2s;
  }
  .service-card:hover .more::after { margin-left: 4px; }

  /* ---- Fiduciary approach (shared dark band) ---- */
  .approach {
    background: var(--navy-deep);
    color: rgba(255,255,255,0.82);
    overflow: hidden;
  }
  .approach::before {
    content: "";
    position: absolute;
    top: 0; right: 0;
    width: 40%; height: 100%;
    background: linear-gradient(135deg, rgba(47,126,126,0.25), transparent 70%);
  }
  .approach .wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
    position: relative;
  }
  .approach h2 { color: var(--white); }
  .approach .horizon { color: var(--gold); }
  .approach .section-head p { color: rgba(255,255,255,0.72); }
  .pledge-list { list-style: none; margin-top: 10px; }
  .pledge-list li {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .pledge-list li:last-child { border-bottom: none; }
  .pledge-list .check {
    flex-shrink: 0;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: rgba(191,157,94,0.18);
    display: flex; align-items: center; justify-content: center;
  }
  .pledge-list .check svg { width: 15px; height: 15px; stroke: var(--gold); fill: none; stroke-width: 2.5; }
  .pledge-list h4 { color: var(--white); font-size: 1.1rem; font-family: 'Mulish'; font-weight: 700; }
  .pledge-list p { font-size: 0.92rem; margin-top: 2px; }

  /* ---- Team (shared advisor card) ---- */
  .team { background: var(--sand); }
  .team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 860px;
    margin: 0 auto;
  }
  .advisor {
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease;
  }
  .advisor:hover { transform: translateY(-6px); }
  .advisor .portrait {
    aspect-ratio: 1 / 1;
    background: linear-gradient(160deg, var(--teal-light), var(--navy));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .advisor .portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .advisor .info { padding: 28px 30px 32px; }
  .advisor .info h3 { font-size: 1.4rem; }
  .advisor .info .role {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin: 6px 0 14px;
  }
  .advisor .info p { font-size: 0.95rem; color: #51606b; }
  .advisor .info .link {
    display: inline-block;
    margin-top: 16px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--teal);
  }

  /* ---- Resources (shared card) ---- */
  .resources { background: var(--cream); }
  .resource-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
  }
  .resource-card {
    border-left: 2px solid var(--gold);
    padding: 8px 0 8px 26px;
  }
  .resource-card .tag {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal);
  }
  .resource-card h3 {
    font-size: 1.3rem;
    margin: 12px 0 8px;
  }
  .resource-card p { font-size: 0.94rem; color: #51606b; }
  .resource-card a {
    display: inline-block;
    margin-top: 14px;
    font-weight: 700;
    font-size: 0.86rem;
    color: var(--navy);
    border-bottom: 1.5px solid var(--gold);
    padding-bottom: 2px;
  }

  /* ---- CTA band (shared) ---- */
  .cta-band {
    background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%);
    position: relative;
    overflow: hidden;
  }
  .cta-band::before {
    content: "";
    position: absolute;
    bottom: -60px; left: -40px;
    width: 280px; height: 280px;
    border: 1.5px solid rgba(255,255,255,0.12);
    border-radius: 50%;
  }
  .cta-band::after {
    content: "";
    position: absolute;
    top: -90px; right: -50px;
    width: 320px; height: 320px;
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 50%;
  }
  .cta-band .wrap {
    text-align: center;
    position: relative;
    padding: 92px 32px;
  }
  .cta-band h2 {
    color: var(--white);
    font-size: clamp(2rem, 3.4vw, 2.9rem);
  }
  .cta-band p {
    color: rgba(255,255,255,0.85);
    font-size: 1.08rem;
    max-width: 480px;
    margin: 16px auto 32px;
  }
  .cta-band .horizon { justify-content: center; color: var(--gold); }
  .cta-band .horizon::before { background: var(--gold); }

  /* ---- Footer ---- */
  footer {
    background: var(--navy-deep);
    color: rgba(255,255,255,0.62);
    font-size: 0.9rem;
  }
  .footer-main {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    gap: 44px;
    padding: 76px 0 54px;
  }
  .footer-main h4 {
    color: var(--white);
    font-family: 'Mulish';
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 20px;
  }
  .footer-logo .mark {
    font-family: 'Fraunces', serif;
    font-size: 1.4rem;
    color: var(--white);
    font-weight: 600;
  }
  .footer-logo .mark em { font-style: normal; color: var(--teal-light); }
  .footer-logo p { margin-top: 14px; max-width: 280px; font-size: 0.9rem; }
  .footer-col ul { list-style: none; }
  .footer-col li { margin-bottom: 11px; }
  .footer-col a:hover { color: var(--gold); }
  .footer-contact p { margin-bottom: 10px; }
  .footer-contact strong { color: rgba(255,255,255,0.9); font-weight: 600; }

  /* Disclosure slot */
  .disclosure {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 32px 0 14px;
    font-size: 0.78rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.42);
  }
  .disclosure p { margin-bottom: 12px; }
  .disclosure strong { color: rgba(255,255,255,0.6); }
  .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 22px 0 40px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
  }
  .footer-bottom a:hover { color: var(--gold); }

  /* ---- Reveal animation ---- */
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.in { opacity: 1; transform: translateY(0); }

  /* ---- Responsive (shared scaffolding — mirrors homepage) ---- */
  /* NOTE: the homepage's `.wrap { padding: 0 24px; }` line is intentionally
     omitted here — see PROJECT-HANDOFF gotcha. Interior `.wrap` keeps its
     base `padding: 0 32px`, and INTERIOR_CSS handles per-component spacing. */
  @media (max-width: 900px) {
    nav ul {
      position: fixed;
      top: 0; right: -100%;
      height: 100vh;
      width: 78%;
      max-width: 320px;
      background: var(--cream);
      flex-direction: column;
      align-items: flex-start;
      padding: 100px 36px 0;
      gap: 8px;
      box-shadow: -20px 0 50px -20px rgba(0,0,0,0.3);
      transition: right 0.35s ease;
    }
    nav ul.open { right: 0; }
    nav ul li { width: 100%; }
    nav ul li a { display: block; padding: 14px 0; font-size: 1rem; border-bottom: 1px solid var(--sand-deep); }
    nav a::after { display: none; }
    .nav-cta { margin-top: 16px; }
    .menu-toggle { display: block; z-index: 200; }
    .affiliation .wrap,
    .approach .wrap { grid-template-columns: 1fr; gap: 44px; }
    .service-grid,
    .resource-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    .footer-main { grid-template-columns: 1fr 1fr; gap: 36px; }
    .utility .wrap { font-size: 0.74rem; }
    .utility-right { gap: 16px; }
    .section-pad { padding: 76px 0; }
  }
  @media (max-width: 540px) {
    .footer-main { grid-template-columns: 1fr; }
    .utility-left { display: none; }
  }

  /* ====================================================================
     INTERIOR PAGE COMPONENTS
     Added for the interior templates. Same tokens + motifs as the homepage.
     ==================================================================== */

  /* ---- Active nav state ---- */
  nav a[aria-current="page"] { color: var(--navy-deep); }
  nav a[aria-current="page"]::after { width: 100%; }

  /* ---- Page header band ----
     The interior counterpart to the homepage hero. Navy gradient base with
     a dedicated, ready-to-use slot for the St. Petersburg photo: drop the
     image onto .page-header-bg as a background-image and the navy overlay
     (.page-header-bg::after) keeps the headline readable. Texture + corner
     rings echo the homepage's affiliation visual and CTA band. */
  .page-header {
    position: relative;
    background: var(--navy-deep);
    color: rgba(255,255,255,0.82);
    overflow: hidden;
    padding: 70px 0 76px;
  }
  .page-header-bg {
    position: absolute;
    inset: 0;
    /* ST. PETE PHOTO SLOT --------------------------------------------
       When the licensed/owned St. Petersburg photo is ready, add:
         background-image: url('../images/st-pete-band.jpg');
         background-size: cover;
         background-position: center;
       Leave the gradient below as the fallback color. ---------------- */
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 58%, #0a1c2b 100%);
  }
  .page-header-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    /* Navy gradient overlay — sits on top of the photo for legibility. */
    background: linear-gradient(180deg, rgba(14,36,54,0.72) 0%, rgba(14,36,54,0.90) 100%);
  }
  .page-header-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(180deg, transparent 0 38px, rgba(255,255,255,0.035) 38px 39px);
    z-index: 1;
  }
  .page-header .ring {
    position: absolute;
    border: 1.5px solid rgba(255,255,255,0.10);
    border-radius: 50%;
    z-index: 1;
  }
  .page-header .ring.r1 { width: 300px; height: 300px; top: -120px; right: -70px; }
  .page-header .ring.r2 { width: 180px; height: 180px; bottom: -90px; right: 110px;
    border-color: rgba(191,157,94,0.18); }
  .page-header .wrap { position: relative; z-index: 2; }
  .page-header .horizon { color: var(--gold); }
  .page-header .horizon::before { background: var(--gold); }
  .page-header h1 {
    color: var(--white);
    font-size: clamp(2.3rem, 4.2vw, 3.3rem);
    font-weight: 500;
    margin-top: 16px;
    max-width: 760px;
    letter-spacing: -0.01em;
  }
  .page-header h1 em { font-style: italic; color: var(--teal-light); }
  .page-header .page-lede {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.78);
    margin-top: 18px;
    max-width: 560px;
  }

  /* ---- Breadcrumb ---- */
  .breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.55);
    margin-bottom: 22px;
  }
  .breadcrumb a { color: rgba(255,255,255,0.78); transition: color 0.2s; }
  .breadcrumb a:hover { color: var(--gold); }
  .breadcrumb span.sep { color: rgba(255,255,255,0.32); }
  .breadcrumb span.current { color: rgba(255,255,255,0.55); }

  /* ---- Prototype note banner (build-time guidance, not final UI) ---- */
  .note-banner {
    background: rgba(191,157,94,0.12);
    border: 1px dashed var(--gold);
    border-radius: 3px;
    padding: 14px 20px;
    font-size: 0.86rem;
    color: var(--gold-deep);
    margin-bottom: 40px;
  }
  .note-banner strong { color: var(--gold-deep); }

  /* ---- Generic prose + lead-in paragraph ---- */
  .prose p { color: #4a5965; margin-bottom: 18px; font-size: 1.02rem; }
  .prose p:last-child { margin-bottom: 0; }
  .lead-in {
    font-family: 'Fraunces', serif;
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--navy);
    margin-bottom: 26px;
  }
  .section.alt { background: var(--sand); }

  /* ---- Story grid (About) ---- */
  .story-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 64px;
    align-items: start;
  }
  .mission-card {
    background: var(--white);
    border: 1px solid var(--sand-deep);
    border-top: 3px solid var(--gold);
    border-radius: 4px;
    padding: 36px 34px;
    box-shadow: var(--shadow-card);
  }
  .mission-card .horizon { margin-bottom: 16px; }
  .mission-card p {
    font-family: 'Fraunces', serif;
    font-size: 1.22rem;
    line-height: 1.5;
    color: var(--navy-deep);
  }
  .mission-card .attrib {
    margin-top: 20px;
    font-family: 'Mulish', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold-deep);
  }

  /* ---- Stat band (About) — flat version of the homepage stats card ---- */
  .stat-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--white);
    border: 1px solid var(--sand-deep);
    border-top: 3px solid var(--gold);
    border-radius: 4px;
  }
  .stat-band div {
    padding: 36px 26px;
    text-align: center;
    border-right: 1px solid var(--sand-deep);
  }
  .stat-band div:last-child { border-right: none; }
  .stat-band .num {
    font-family: 'Fraunces', serif;
    font-size: 2.3rem;
    color: var(--teal);
    font-weight: 600;
  }
  .stat-band .label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5c6b76;
    margin-top: 4px;
  }

  /* ---- Values grid (About) ---- */
  .values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
  }
  .value-card {
    background: var(--white);
    border: 1px solid var(--sand-deep);
    border-radius: 4px;
    padding: 34px 30px;
  }
  .value-card .vnum {
    font-family: 'Fraunces', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.04em;
  }
  .value-card h3 { font-size: 1.22rem; margin: 12px 0 8px; }
  .value-card p { font-size: 0.95rem; color: #51606b; }

  /* ---- Process steps (About / Services) ---- */
  .process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    counter-reset: step;
  }
  .process.three { grid-template-columns: repeat(3, 1fr); }
  .step { position: relative; padding-top: 20px; }
  .step::before {
    counter-increment: step;
    content: "0" counter(step);
    font-family: 'Fraunces', serif;
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--sand-deep);
    line-height: 1;
    display: block;
    margin-bottom: 14px;
  }
  .step::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 44px; height: 2px;
    background: var(--gold);
  }
  .step h3 { font-size: 1.15rem; margin-bottom: 7px; }
  .step p { font-size: 0.93rem; color: #51606b; }
  .approach .process .step::before { color: rgba(255,255,255,0.16); }
  .approach .process .step h3 { color: var(--white); }
  .approach .process .step p { color: rgba(255,255,255,0.7); }

  /* ---- Services detail rows (Services) ---- */
  .service-detail {
    display: grid;
    grid-template-columns: 64px 1fr 1.05fr;
    gap: 40px;
    align-items: start;
    padding: 48px 0;
    border-bottom: 1px solid var(--sand-deep);
  }
  .service-detail:first-of-type { padding-top: 0; }
  .service-detail:last-of-type { border-bottom: none; padding-bottom: 0; }
  .service-detail .sd-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--sand);
    display: flex; align-items: center; justify-content: center;
  }
  .service-detail .sd-icon svg {
    width: 30px; height: 30px;
    stroke: var(--teal); fill: none; stroke-width: 1.5;
  }
  .service-detail .sd-num {
    font-family: 'Fraunces', serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.06em;
  }
  .service-detail h3 { font-size: 1.5rem; margin: 6px 0 12px; }
  .service-detail .sd-body p { color: #4a5965; font-size: 0.98rem; }
  .includes-list { list-style: none; margin-top: 6px; }
  .includes-list li {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.94rem;
    color: #4a5965;
    border-bottom: 1px solid var(--sand-deep);
  }
  .includes-list li:last-child { border-bottom: none; }
  .includes-list .tick {
    flex-shrink: 0;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(47,126,126,0.12);
    display: flex; align-items: center; justify-content: center;
  }
  .includes-list .tick svg { width: 12px; height: 12px; stroke: var(--teal); fill: none; stroke-width: 3; }
  .includes-list .ttl {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 4px;
  }

  /* ---- Advisor bio hero (single advisor template) ---- */
  .advisor-hero { background: var(--sand); }
  .advisor-hero .wrap {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 56px;
    align-items: center;
  }
  .advisor-portrait-lg {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: linear-gradient(160deg, var(--teal-light), var(--navy));
    aspect-ratio: 1 / 1;
  }
  .advisor-portrait-lg img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
  }
  .advisor-meta .horizon { margin-bottom: 14px; }
  .advisor-meta h1 {
    font-size: clamp(2.2rem, 3.6vw, 2.9rem);
    font-weight: 500;
  }
  .advisor-meta .role {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin: 10px 0 4px;
  }
  .advisor-meta .creds {
    font-size: 0.9rem;
    color: #5c6b76;
    margin-bottom: 18px;
  }
  .advisor-meta .intro {
    font-family: 'Fraunces', serif;
    font-size: 1.18rem;
    line-height: 1.5;
    color: var(--navy);
    margin-bottom: 24px;
  }
  .advisor-actions { display: flex; gap: 14px; flex-wrap: wrap; }
  .advisor-quicklinks {
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
    margin-top: 22px;
    font-size: 0.9rem;
  }
  .advisor-quicklinks span { display: inline-flex; align-items: center; gap: 8px; color: #4a5965; }
  .advisor-quicklinks svg { width: 16px; height: 16px; stroke: var(--teal); fill: none; stroke-width: 1.8; }

  /* ---- Bio detail layout ---- */
  .bio-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: start;
  }
  .focus-list { list-style: none; margin-top: 8px; }
  .focus-list li {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--sand-deep);
  }
  .focus-list li:last-child { border-bottom: none; }
  .focus-list .fdot {
    flex-shrink: 0;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: rgba(191,157,94,0.16);
    display: flex; align-items: center; justify-content: center;
  }
  .focus-list .fdot svg { width: 13px; height: 13px; stroke: var(--gold-deep); fill: none; stroke-width: 2.5; }
  .focus-list h4 { font-family: 'Mulish'; font-weight: 700; font-size: 1rem; color: var(--navy-deep); }
  .focus-list p { font-size: 0.92rem; color: #51606b; margin-top: 2px; }

  .sidecard {
    background: var(--white);
    border: 1px solid var(--sand-deep);
    border-radius: 4px;
    padding: 30px 30px 32px;
    box-shadow: var(--shadow-card);
  }
  .sidecard + .sidecard { margin-top: 24px; }
  .sidecard h3 {
    font-size: 0.82rem;
    font-family: 'Mulish';
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--navy-deep);
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--sand-deep);
  }
  .sidecard ul { list-style: none; }
  .sidecard li {
    font-size: 0.94rem;
    color: #4a5965;
    padding: 9px 0;
  }
  .sidecard li strong { color: var(--navy-deep); font-weight: 700; }

  /* ---- Field-slot marker (content placeholders the team plugin will fill) ---- */
  .field-slot {
    display: inline-block;
    font-family: 'Mulish', sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--gold-deep);
    background: rgba(191,157,94,0.13);
    border: 1px dashed var(--gold);
    border-radius: 3px;
    padding: 2px 8px;
  }

  /* ---- Resources page ---- */
  .filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 48px;
  }
  .chip {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 8px 18px;
    border-radius: 40px;
    border: 1px solid var(--sand-deep);
    background: var(--white);
    color: #51606b;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .chip:hover { border-color: var(--teal); color: var(--teal); }
  .chip.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
  .featured-article {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 0;
    background: var(--white);
    border: 1px solid var(--sand-deep);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    margin-bottom: 64px;
  }
  .featured-article .fa-visual {
    background: linear-gradient(150deg, var(--navy) 0%, var(--teal) 100%);
    position: relative;
    min-height: 320px;
  }
  .featured-article .fa-visual::after {
    content: "";
    position: absolute; inset: 0;
    background: repeating-linear-gradient(180deg, transparent 0 38px, rgba(255,255,255,0.05) 38px 39px);
  }
  .featured-article .fa-visual .fa-flag {
    position: absolute;
    top: 24px; left: 24px;
    background: var(--gold);
    color: var(--navy-deep);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 2px;
  }
  .featured-article .fa-body { padding: 46px 44px; }
  .featured-article .tag {
    font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--teal);
  }
  .featured-article h2 { font-size: 1.9rem; margin: 14px 0 12px; }
  .featured-article p { color: #4a5965; font-size: 1rem; }
  .featured-article .meta {
    margin-top: 20px; font-size: 0.84rem; color: #7c8893;
    display: flex; gap: 8px; align-items: center;
  }
  .resource-grid.six { row-gap: 44px; }
  .newsletter-band {
    background: var(--navy-deep);
    color: rgba(255,255,255,0.8);
    position: relative;
    overflow: hidden;
  }
  .newsletter-band::after {
    content: "";
    position: absolute; top: -80px; right: -60px;
    width: 280px; height: 280px;
    border: 1.5px solid rgba(191,157,94,0.18);
    border-radius: 50%;
  }
  .newsletter-band .wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    padding: 64px 32px;
    position: relative;
    z-index: 2;
  }
  .newsletter-band h2 { color: var(--white); font-size: 1.9rem; }
  .newsletter-band p { color: rgba(255,255,255,0.72); margin-top: 10px; }
  .newsletter-form { display: flex; gap: 12px; flex-wrap: wrap; }
  .newsletter-form input {
    flex: 1;
    min-width: 220px;
    padding: 14px 18px;
    border-radius: 2px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.06);
    color: var(--white);
    font-family: 'Mulish', sans-serif;
    font-size: 0.95rem;
  }
  .newsletter-form input::placeholder { color: rgba(255,255,255,0.45); }
  .newsletter-form input:focus { outline: 1.5px solid var(--gold); }

  /* ---- Disclosures page ---- */
  .disclosure-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 56px;
    align-items: start;
  }
  .disclosure-toc {
    position: sticky;
    top: 110px;
    border-left: 2px solid var(--sand-deep);
  }
  .disclosure-toc .toc-label {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--gold-deep);
    padding: 0 0 12px 20px;
  }
  .disclosure-toc a {
    display: block;
    font-size: 0.9rem;
    color: #51606b;
    padding: 9px 0 9px 20px;
    margin-left: -2px;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
  }
  .disclosure-toc a:hover {
    color: var(--navy-deep);
    border-left-color: var(--gold);
  }
  .disclosure-block {
    padding-bottom: 44px;
    margin-bottom: 44px;
    border-bottom: 1px solid var(--sand-deep);
    scroll-margin-top: 110px;
  }
  .disclosure-block:last-child { border-bottom: none; margin-bottom: 0; }
  .disclosure-block h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }
  .slot-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-deep);
    background: rgba(191,157,94,0.13);
    border: 1px dashed var(--gold);
    border-radius: 3px;
    padding: 3px 10px;
    margin-bottom: 16px;
  }
  .disclosure-block .placeholder-copy {
    color: #6a7681;
    font-size: 0.96rem;
    font-style: italic;
  }
  .disclosure-block .placeholder-copy.solid { font-style: normal; color: #4a5965; }

  /* ---- Contact page ---- */
  .contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 60px;
    align-items: start;
  }
  .contact-info .info-block { margin-bottom: 30px; }
  .contact-info .info-block:last-child { margin-bottom: 0; }
  .contact-info .ib-label {
    font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--teal); margin-bottom: 6px;
  }
  .contact-info .ib-val {
    font-size: 1.05rem; color: var(--navy-deep); font-weight: 600;
  }
  .contact-info .ib-val a { color: var(--navy-deep); }
  .contact-info .ib-val a:hover { color: var(--teal); }
  .contact-info .ib-sub { font-size: 0.92rem; color: #6a7681; margin-top: 2px; }

  .lead-form {
    background: var(--white);
    border: 1px solid var(--sand-deep);
    border-top: 3px solid var(--gold);
    border-radius: 4px;
    padding: 40px 40px 44px;
    box-shadow: var(--shadow-card);
  }
  .lead-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .field { margin-bottom: 20px; }
  .field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--navy-deep);
    margin-bottom: 7px;
  }
  .field label .opt { color: #9aa4ad; font-weight: 600; letter-spacing: 0; }
  .field input,
  .field select,
  .field textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--sand-deep);
    border-radius: 2px;
    background: var(--cream);
    font-family: 'Mulish', sans-serif;
    font-size: 0.96rem;
    color: var(--ink);
    transition: border-color 0.2s ease, background 0.2s ease;
  }
  .field textarea { resize: vertical; min-height: 120px; }
  .field input:focus,
  .field select:focus,
  .field textarea:focus {
    outline: none;
    border-color: var(--teal);
    background: var(--white);
  }
  .field-consent {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    font-size: 0.86rem;
    color: #51606b;
    margin: 4px 0 24px;
  }
  .field-consent input { margin-top: 3px; flex-shrink: 0; }
  .form-footnote {
    font-size: 0.82rem;
    color: #7c8893;
    margin-top: 16px;
  }
  .map-slot {
    margin-top: 0;
    height: 340px;
    border-radius: 4px;
    background:
      linear-gradient(135deg, var(--navy) 0%, var(--teal) 120%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .map-slot::after {
    content: "";
    position: absolute; inset: 0;
    background: repeating-linear-gradient(90deg, transparent 0 46px, rgba(255,255,255,0.05) 46px 47px),
                repeating-linear-gradient(180deg, transparent 0 46px, rgba(255,255,255,0.05) 46px 47px);
  }
  .map-slot .map-note {
    position: relative;
    z-index: 2;
    text-align: center;
    color: rgba(255,255,255,0.9);
  }
  .map-slot .map-note .horizon { color: var(--gold); justify-content: center; }
  .map-slot .map-note .horizon::before { background: var(--gold); }
  .map-slot .map-note p { margin-top: 10px; font-family: 'Fraunces', serif; font-size: 1.15rem; color: var(--white); }
  .map-slot .map-note small { display:block; margin-top:6px; font-size:0.8rem; color: rgba(255,255,255,0.6); }

  /* ---- Expectations row (Contact) ---- */
  .expect-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
  }
  .expect-card {
    padding: 30px 28px;
    background: var(--white);
    border: 1px solid var(--sand-deep);
    border-radius: 4px;
  }
  .expect-card .enum {
    font-family: 'Fraunces', serif;
    font-size: 1.6rem;
    color: var(--gold);
    font-weight: 600;
  }
  .expect-card h3 { font-size: 1.15rem; margin: 8px 0 6px; }
  .expect-card p { font-size: 0.93rem; color: #51606b; }

  /* ---- Responsive (interior additions) ---- */
  @media (max-width: 980px) {
    .disclosure-layout { grid-template-columns: 1fr; gap: 36px; }
    .disclosure-toc { position: static; display: flex; flex-wrap: wrap; gap: 4px 18px;
      border-left: none; border-top: 2px solid var(--sand-deep); padding-top: 18px; }
    .disclosure-toc .toc-label { padding: 0 0 8px 0; width: 100%; }
    .disclosure-toc a { padding: 6px 0; border-left: none; }
  }
  @media (max-width: 900px) {
    .story-grid,
    .bio-grid,
    .contact-grid,
    .advisor-hero .wrap,
    .featured-article,
    .newsletter-band .wrap { grid-template-columns: 1fr; gap: 40px; }
    .values-grid,
    .process,
    .process.three,
    .expect-grid { grid-template-columns: 1fr; }
    .stat-band { grid-template-columns: 1fr 1fr; }
    .stat-band div:nth-child(2) { border-right: none; }
    .stat-band div:nth-child(1),
    .stat-band div:nth-child(2) { border-bottom: 1px solid var(--sand-deep); }
    .service-detail { grid-template-columns: 1fr; gap: 22px; padding: 40px 0; }
    .service-detail .sd-icon { width: 56px; height: 56px; }
    .advisor-portrait-lg { max-width: 360px; }
    .lead-form { padding: 32px 26px 36px; }
    .lead-form .form-row { grid-template-columns: 1fr; gap: 0; }
    .featured-article .fa-body { padding: 36px 30px; }
  }
  @media (max-width: 540px) {
    .stat-band { grid-template-columns: 1fr; }
    .stat-band div { border-right: none; border-bottom: 1px solid var(--sand-deep); }
    .stat-band div:last-child { border-bottom: none; }
    .page-header { padding: 52px 0 58px; }
    .advisor-actions .btn { width: 100%; }
  }


  /* ============================================================
     HOMEPAGE HERO  —  merged in from the homepage prototype.
     Interior pages don't use these selectors; they live here so a
     single components.css drives every template, the front page
     included.
     ============================================================ */
  .hero {
    position: relative;
    background:
      linear-gradient(180deg, #dceaf0 0%, #cfe4ea 50%, #c3dde0 78%, #aacdc9 100%);
    overflow: hidden;
    padding-top: 90px;
  }
  .hero-sun {
    position: absolute;
    top: 78px; left: 50%;
    transform: translateX(-50%);
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(255,247,230,0.95) 0%, rgba(244,225,190,0.5) 45%, rgba(244,225,190,0) 70%);
    border-radius: 50%;
  }
  .hero .hero-content {
    position: relative;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
    padding-bottom: 132px;
  }
  .hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.9rem);
    font-weight: 500;
    color: var(--navy-deep);
    margin: 22px 0 0;
    letter-spacing: -0.01em;
  }
  .hero h1 em { font-style: italic; color: var(--teal); }
  .hero p.lead {
    font-size: 1.12rem;
    color: #2a4256;
    margin: 22px auto 0;
    max-width: 560px;
  }
  .hero-actions {
    margin-top: 36px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
  }
  .hero .horizon { justify-content: center; }
  .hero .horizon::before { background: var(--gold-deep); }
  .wave-divider {
    position: absolute;
    bottom: -1px; left: 0; width: 100%;
    line-height: 0;
  }
  .wave-divider svg { width: 100%; height: 90px; display: block; }
  .hero-stats {
    position: relative;
    margin: -78px auto 0;
    max-width: 940px;
    background: var(--white);
    border-radius: 4px;
    box-shadow: var(--shadow-soft);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    z-index: 5;
    border-top: 3px solid var(--gold);
  }
  .hero-stats div {
    padding: 34px 28px;
    text-align: center;
    border-right: 1px solid var(--sand-deep);
  }
  .hero-stats div:last-child { border-right: none; }
  .hero-stats .num {
    font-family: 'Fraunces', serif;
    font-size: 2.4rem;
    color: var(--teal);
    font-weight: 600;
  }
  .hero-stats .label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5c6b76;
    margin-top: 4px;
  }
  .hero-content .horizon,
  .hero-content h1,
  .hero-content p.lead,
  .hero-content .hero-actions {
    opacity: 0;
    transform: translateY(20px);
    animation: rise 0.8s ease forwards;
  }
  .hero-content h1 { animation-delay: 0.12s; }
  .hero-content p.lead { animation-delay: 0.24s; }
  .hero-content .hero-actions { animation-delay: 0.36s; }
  @keyframes rise { to { opacity: 1; transform: translateY(0); } }
  @media (max-width: 900px) {
    .hero-stats { grid-template-columns: 1fr; }
    .hero-stats div { border-right: none; border-bottom: 1px solid var(--sand-deep); }
    .hero-stats div:last-child { border-bottom: none; }
  }
  @media (max-width: 540px) {
    .hero-actions .btn { width: 100%; }
  }
