/* =========================================
   Matthew Peine - Site Styles (Clean)
   ========================================= */

/* Reset / base */
* { box-sizing: border-box; }
/* ===== Layout: sticky footer (site-wide) ===== */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

/* Theme */
:root{
  --bg: #f9f8f6;        /* off-white */
  --paper: #ffffff;     /* white */
  --text: #111827;      /* near-black */
  --muted: #4b5563;     /* gray */
  --line: #e5e7eb;      /* border */

  --navy: #0b3d62;
  --navy-dark: #082f4b;

  --gold: #9b7a2f;      /* readable gold */
  --gold-soft: #b08a33;

  --shadow: 0 10px 24px rgba(17,24,39,0.08);
  --radius: 14px;
}

body{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

main.site-main{
  flex: 1 0 auto;
  min-height: 0;
}

.container{
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* Skip link */
.skip-link{
  position: absolute;
  left: -999px;
  top: 10px;
  background: var(--navy);
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 2000;
}
.skip-link:focus{ left: 10px; }

/* =========================================
   Header / Nav
   ========================================= */

.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo{
  height: 44px;   /* smaller so nav has room */
  width: auto;
}

/* Hamburger button (mobile only) */
.nav-toggle{
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle__bar{
  height: 2px;
  width: 18px;
  background: var(--text);
  margin: 0 auto;
  border-radius: 1px;
}

/* Desktop nav */
.navbar{
  display: none; /* hidden by default (mobile) */
  gap: 10px;
  align-items: center;
}

.navbar a{
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  padding: 9px 10px;
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease;
}

.navbar a:hover{
  background: #f3f4f6;
  color: var(--navy);
}

.navbar a[aria-current="page"]{
  background: var(--navy);
  color: #fff;
}

/* Mobile open state */
.navbar.is-open{
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  width: 100%;
  padding: 10px 0 6px;
  border-top: 1px solid var(--line);
}

.navbar.is-open a{
  padding: 12px 12px;
}

/* Desktop breakpoint */
@media (min-width: 901px){
  .nav-toggle{ display: none; }
  .navbar{
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 12px;
  }
}

/* =========================================
   Hero
   ========================================= */

.hero{
  padding: 56px 0;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

.hero-inner{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items: center;
}

.hero-text h1{
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.hero-mobile-break{
  display: inline;
}

.hero-text p{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 17px;
  max-width: 58ch;
}

.hero-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 10px 0 16px;
}

.trust-points{
  color: var(--muted);
  font-size: 14px;
  display: grid;
  gap: 6px;
}
.trust-points li{
  padding-left: 18px;
  position: relative;
}
.trust-points li::before{
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  position: absolute;
  left: 0;
  top: 9px;
}

.hero-media{
  display: flex;
  justify-content: center;
}

.hero-photo{
  width: min(360px, 100%);
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

/* Mobile hero */
@media (max-width: 919px){
  .hero-inner{
    grid-template-columns: 1fr;
  }
  .hero-media{
    order: -1;
    justify-content: flex-start;
  }
  .hero-photo{
    width: min(320px, 100%);
  }
}

@media (max-width: 768px){
  .hero{
    padding: 32px 0 18px;
  }

  .hero-inner{
    gap: 18px;
    align-items: center;
  }

  .hero-media{
    display: flex;
    width: 100%;
    max-width: 320px;
    justify-content: center;
    margin: 0 auto;
  }

  .hero-photo{
    width: 100%;
    height: clamp(220px, 60vw, 285px);
    object-fit: cover;
    object-position: top center;
  }

  .hero-text h1{
    font-size: clamp(26px, 6.5vw, 32px);
    line-height: 1.14;
    margin-bottom: 10px;
  }

  .home .hero-mobile-break{
    display: block;
  }

  .hero-text{
    text-align: center;
  }

  .hero-text p{
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 14px;
    font-size: 16px;
  }

  .hero .hero-actions{
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: min(100%, 520px);
    margin: 10px auto 12px;
    justify-items: stretch;
  }

  .hero .hero-actions .btn{
    width: 100%;
    max-width: 520px;
    min-width: 0;
    text-align: center;
  }

  .trust-points{
    margin: 12px auto 0;
    padding-left: 0;
    text-align: center;
    justify-items: center;
    max-width: 38ch;
    font-size: 13px;
    gap: 4px;
  }

  .trust-points li{
    padding-left: 0;
  }

  .trust-points li::before{
    position: relative;
    left: auto;
    top: auto;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
    transform: translateY(-1px);
    width: 6px;
    height: 6px;
  }

  .hero + .section.page-section{
    padding-top: 20px;
  }
}

@media (max-width: 600px){
  .hero{
    padding: 26px 0 16px;
  }

  .hero-inner{
    gap: 16px;
  }

  .hero-media{
    max-width: 280px;
  }

  .hero-photo{
    height: clamp(210px, 66vw, 255px);
    object-position: top center;
  }

  .hero .hero-actions{
    gap: 10px;
    width: min(100%, 420px);
    margin: 10px auto;
  }

  .hero .hero-actions .btn{
    width: 100%;
    max-width: 420px;
    padding: 12px 14px;
  }

  .trust-points{
    font-size: 12.5px;
    gap: 3px;
  }

  .hero + .section.page-section{
    padding-top: 16px;
  }
}

/* ===== Homepage How It Works: balance vertical space around CTA button ===== */
/* Total gap (cards→button→footer) stays the same; redistributed 24/64 → 44/44 */
.home-how-it-works .section-cta{
  margin-top: 0;
}
.home-how-it-works.section-bottom-pad{
  padding-bottom: 44px;
}

/* Home page: tighten hero-to-first-section spacing without a divider */
.home .hero + .section.page-section{
  padding-top: var(--space-4);
}

.how-it-works-note{
  margin-top: 22px;
  margin-bottom: 22px;
  font-size: 0.95rem;
  color: #4b5563;
  text-align: center;
}

/* ===== Homepage section alignment + hero buttons (mobile only) ===== */
@media (max-width: 768px){
  .home .section-head{
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .home .home-how-it-works .section-head{
    margin-bottom: 0;
  }

  .home .section-head h2,
  .home .section-head p{
    text-align: center;
  }

  .home .section-cta{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 18px;
    margin-bottom: 18px;
  }

  .home .section-cta .btn,
  .home .section-cta .btn-primary,
  .home .section-cta a.btn,
  .home .section-cta a.btn-primary{
    width: auto !important;
    max-width: none !important;
    display: inline-flex;
  }

  .home .section-bottom-pad{
    padding-bottom: 24px;
  }

  .home .section.section-alt{
    padding-bottom: 24px;
  }

  .home .section.section-alt.section-bottom-pad{
    display: flex;
    flex-direction: column;
    min-height: clamp(440px, 62svh, 620px);
    padding-bottom: 24px;
  }

  .home .section.section-alt.section-bottom-pad > .container{
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    gap: 20px;
  }

  .home .section.section-alt.section-bottom-pad .steps{
    flex: 0 0 auto;
    margin-top: 0;
    margin-bottom: 0;
  }

  .home .section.section-alt.section-bottom-pad .step:last-child{
    margin-bottom: 0;
  }

  .home .section.section-alt.section-bottom-pad .section-cta{
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .home .section.section-alt.section-bottom-pad .section-cta .btn,
  .home .section.section-alt.section-bottom-pad .section-cta .btn-primary,
  .home .section.section-alt.section-bottom-pad .section-cta a.btn,
  .home .section.section-alt.section-bottom-pad .section-cta a.btn-primary{
    width: auto !important;
    max-width: none !important;
    display: inline-flex;
  }

  .home .hero-actions{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 10px auto 12px;
  }

  .home .hero-actions .btn{
    width: 100%;
    max-width: 320px;
    padding: 14px 18px;
  }

  .home .hero-text p{
    max-width: 45ch;
    margin-left: auto;
    margin-right: auto;
  }

  .home .hero + .section.page-section{
    padding-top: 14px;
  }

  .home .trust-points{
    max-width: none;
  }
}

/* =========================================
   Sections
   ========================================= */

.section{
  padding: 56px 0;
}

.section-alt{
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head{
  margin-bottom: 18px;
}

.section-head h2{
  margin: 0 0 8px;
  font-size: 26px;
  letter-spacing: -0.01em;
}

.section-head p{
  margin: 0;
  color: var(--muted);
}

@media (max-width: 768px){
  .section{
    padding: 48px 0;
  }

  .section-head{
    margin-bottom: 14px;
  }
}

@media (max-width: 600px){
  .section{
    padding: 40px 0;
  }

  .section-head{
    margin-bottom: 12px;
  }
}

/* =========================================
   Buttons
   ========================================= */

.btn{
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  border-radius: 12px;
  padding: 12px 16px;
  border: 1px solid transparent;
  transition: transform 0.05s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:active{
  transform: translateY(1px);
}

.btn-primary{
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover{
  background: var(--navy-dark);
}

.btn-secondary{
  background: #ffffff;
  color: var(--navy);
  border-color: #dbe2ea;
}
.btn-secondary:hover{
  background: #f8fafc;
}

/* =========================================
   Cards / Services Grid
   ========================================= */

.cards-grid{
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  color: inherit;
}

.card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card-media{
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f3f4f6;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  border-bottom: 1px solid var(--line);
}

.card-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.card-body{
  padding: 14px 14px 16px;
  display: grid;
  gap: 6px;
}

.card-body h3{
  margin: 0;
  font-size: 16px;
}

.card-body p{
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

/* Responsive grid */
@media (max-width: 1100px){
  .cards-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px){
  .cards-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px){
  .cards-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 600px){
  .card-media{
    aspect-ratio: 4 / 3;
  }

  .card-body{
    padding: 13px 13px 15px;
    gap: 5px;
  }
}

/* =========================================
   Steps
   ========================================= */

.steps{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.step{
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.step-num{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(155, 122, 47, 0.14);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-weight: 900;
  margin-bottom: 10px;
}

.step h3{
  margin: 0 0 6px;
  font-size: 16px;
}

.step p{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.center{
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

@media (max-width: 820px){
  .steps{ grid-template-columns: 1fr; }
}

/* =========================
   ABOUT PAGE
========================= */

.about-section {
  padding: 60px 0;
  background: #f9f8f6;
}

.about-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: start;
}

.about-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.about-content h1 {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--ink);
}

.about-content p {
  margin-bottom: 18px;
  font-size: 17px;
}

.about-highlight {
  font-weight: 600;
  margin-top: 25px;
  color: #0b3d62;
}

/* Mobile */
@media (max-width: 768px) {

  .about-container {
    grid-template-columns: 1fr;
  }

  .about-image {
    max-width: 320px;
    margin: auto;
  }

}

/* =========================
   CLEAN HEADER + ABOUT PAGE
   (paste at bottom of styles.css)
========================= */

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

/* Logo */
.brand-logo {
  height: 44px;       /* key: fixes giant logo */
  width: auto;
  display: block;
}

/* Nav (desktop) */
.navbar {
  display: flex;
  gap: 14px;
  align-items: center;
}

.navbar a {
  text-decoration: none;
  color: #1f2937;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease;
}

.navbar a:hover {
  background: #f3f4f6;
  color: #0b3d62;
}

.navbar a[aria-current="page"] {
  background: #0b3d62;
  color: #ffffff;
}

/* Hamburger button */
.nav-toggle {
  display: none; /* shown on mobile */
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 16px;
  cursor: pointer;
}

/* Mobile behavior */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .navbar {
    display: none;           /* hide links until opened */
    position: absolute;
    right: 5%;
    top: 72px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    min-width: 240px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  }

  .navbar.is-open {
    display: flex;
  }

  .navbar a {
    padding: 10px 12px;
  }

  .header-inner {
    position: relative;
  }
}

/* About layout */
.about-wrap {
  flex: 0 1 auto; /* prevent main from stretching beyond content */
  padding: 44px 0 48px;
}

.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: start;
}

.about-photo {
  width: 100%;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 30px rgba(0,0,0,0.10);
}

.about-content h1 {
  font-size: 34px;
  line-height: 1.15;
  margin-top: 0;
  padding-top: 0;
  margin-bottom: 14px;
  color: var(--ink);
}

.about-content p {
  margin-bottom: 18px;
  font-size: 16px;
  color: #111827;
  max-width: 640px;
}

/* Mobile about */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-photo {
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 700px) {
  .about-wrap {
    padding: 24px 0 40px;
  }

  .about-grid {
    gap: 24px;
  }

  .about-photo {
    width: 100%;
    max-width: 320px;
    height: clamp(220px, 60vw, 285px);
    display: block;
    margin: 0 auto;
    object-fit: cover;
    object-position: top center;
    border-radius: 18px;
  }
}

@media (max-width: 600px) {
  .about-photo {
    max-width: 280px;
    height: clamp(210px, 66vw, 255px);
    object-position: top center;
  }
}

/* =========================
   Shared Page Layout
========================= */

:root{
  --ink:#111827;
  --muted:#4b5563;
  --brand:#0b3d62;
  --bg:#f9f8f6;
  --card:#ffffff;
  --border:#e5e7eb;
  --shadow: 0 10px 25px rgba(17,24,39,.08);
  --space-lg: 32px;
  --space-xl: 64px;
}

.page-hero{
  padding: 44px 0 10px;
}

.page-hero h1{
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin: 0 0 10px;
}

.page-subtitle{
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
  font-size: 18px;
}

@media (max-width: 768px){
  .page-hero{
    padding: 34px 0 8px;
  }

  .page-hero h1{
    font-size: clamp(30px, 8vw, 36px);
    margin-bottom: 8px;
  }

  .page-subtitle{
    font-size: 16px;
  }
}

@media (max-width: 600px){
  .page-hero{
    padding: 30px 0 12px;
  }

  .page-hero h1{
    font-size: clamp(28px, 8.8vw, 34px);
  }
}

/* =========================
   Section Spacing Utilities
========================= */

.section-cta{
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.section-bottom-pad{
  padding-bottom: var(--space-xl);
}

/* =========================
   Header + Mobile Nav
========================= */

.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  padding: 12px 0;
}

.brand-logo{
  height: 44px;
  width: auto;
  display:block;
}

/* Hamburger button */
.nav-toggle{
  display:none;
  width:44px;
  height:44px;
  border:1px solid var(--border);
  background:#fff;
  border-radius:12px;
  cursor:pointer;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding: 10px;
}

.nav-toggle-bar{
  display:block;
  width:20px;
  height:2px;
  background: var(--ink);
  border-radius:2px;
}

/* Desktop nav */
.navbar{
  display:flex;
  gap: 18px;
  align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.navbar a{
  text-decoration:none;
  color: var(--ink);
  font-weight:600;
  font-size:14px;
  padding: 8px 10px;
  border-radius:10px;
  transition: background .15s ease, color .15s ease;
}

.navbar a:hover{
  background:#f3f4f6;
  color: var(--brand);
}

.navbar a[aria-current="page"]{
  background: var(--brand);
  color:#fff;
}

/* Mobile behavior */
@media (max-width: 900px){
  .nav-toggle{ display:flex; }
  .navbar{
    display:none;
    width:100%;
    flex-direction:column;
    align-items:flex-start;
    gap: 6px;
    padding: 10px 0 14px;
  }
  .navbar.is-open{ display:flex; }
  .navbar a{
    width:100%;
    padding: 10px 12px;
  }
}

/* =========================
   Services Grid
========================= */

.services{
  padding: 28px 0 10px;
}

.services-guide { margin-bottom: 28px; }

.services-section-label{
  margin: 0 0 18px;
  font-size: 1.5em;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.services-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.services-section-label + .services-grid{
  margin-top: 0;
}

@media (min-width: 769px){
  .services-section-label{
    padding-left: 10px;
  }
}

@media (max-width: 768px){
  .services-section-label{
    padding-left: 6px;
    margin-bottom: 20px;
  }
}

@media (max-width: 980px){
  .services-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px){
  .services-grid{ grid-template-columns: 1fr; }
}

.service-card{
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow:hidden;
  text-decoration:none;
  color: inherit;
  box-shadow: 0 1px 0 rgba(17,24,39,.03);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.service-card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #d1d5db;
}

.service-media{
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f3f4f6;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  border-bottom: 1px solid var(--border);
}

.service-media img{
  width:100%;
  height:100%;
  object-fit: cover;
  object-position: center;
  display:block;
}

.service-card .service-body{
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding: 16px 16px 18px;
  gap: 10px;
}

.service-card .service-body h2{
  font-size: 18px;
  margin: 0 0 6px;
}

.service-card .service-body p{
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}

.service-cta{
  margin-top: auto;
  font-weight: 700;
  color: var(--brand);
  font-size: 14px;
}

/* ===== Services page enhancements ===== */


/* 4-column grid on desktop so 8 services = 2 perfect rows */
.services-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.service-card .service-body{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.service-cta{
  margin-top:auto;
  font-weight:700;
  color:#0b3d62;
}

/* “Typical uses” line */
.service-meta{
  margin: 8px 0 0 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.35;
}

/* Responsive */
@media (max-width: 1100px){
  .services-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px){
  .services-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 600px){
  .services-grid{
    gap: 14px;
  }

  .service-media{
    aspect-ratio: 4 / 3;
  }

  .service-card .service-body{
    padding: 14px 14px 16px;
    gap: 8px;
  }

  .service-card .service-body h2{
    font-size: 17px;
    margin-bottom: 4px;
  }

  .service-card .service-body p{
    margin-bottom: 8px;
    font-size: 14px;
  }

  .service-meta{
    font-size: 12.5px;
    line-height: 1.4;
  }
}

/* =========================
   Note Card Section
========================= */

.services-note{
  padding: 28px 0 60px;
}

.note-card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 18px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
}

.note-card h3{
  margin:0; ;
  font-size: 18px;
}

.note-card p{
  margin: 0;
  color: #4b5563;
  max-width: 60ch;
}


/* Buttons (if you don't already have it cleanly) */
.btn-primary{
  background: var(--brand);
  color:#fff;
  white-space: nowrap;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration:none;
  font-weight:700;
  display:inline-block;
}
.btn-primary:hover{
  filter: brightness(0.95);
}

/* Footer */
.site-footer{
  position: static;
  inset: auto;
  transform: none;
  z-index: auto;
  display: block;
  width: 100%;
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  background: #fff;
  margin: 0;
  padding-top: 16px;
  padding-bottom: 22px;
}

.footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-copy{
  line-height: 1.4;
}

.footer-links{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}

.footer-links a{
  text-decoration: none;
  color: var(--muted);
}

.footer-links a:hover{
  color: var(--navy);
}

.footer-row2{
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 32px;
  row-gap: 12px;
  align-items: start;
}

.footer-legal__inner{
  max-width: 70ch;
  font-size: 10pt;
  line-height: 1.55;
  color: #6b7280;
  text-align: left;
  margin: 0;
}

.footer-legal__label{
  font-size: 10pt;
  color: #4b5563;
  margin: 0 0 6px 0;
}

.footer-legal__inner p{
  margin: 0;
}

.footer-contact-mini{
  font-size: 10pt;
  line-height: 1.45;
  color: #6b7280;
  text-align: right;
  white-space: normal;
  margin: 0;
}

.footer-contact-mini__label{
  font-size: 10pt;
  color: #4b5563;
  margin: 0 0 6px 0;
}

.footer-contact-mini__item{
  margin: 0 0 6px 0;
}

.footer-contact-mini__item:last-child{
  margin-bottom: 0;
}

.footer-contact-mini a{
  color: inherit;
  text-decoration: none;
}

.footer-contact-mini a:hover{
  text-decoration: underline;
}

.nowrap{
  white-space: nowrap;
}

@media (max-width: 720px){
  .footer-inner{
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 700px){
  .footer-inner{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
  }

  .footer-links{
    justify-content: center;
  }

  .footer-row2{
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
    padding-top: 14px;
  }

  .footer-row2__right{
    display: none !important;
  }

  .footer-legal__inner{
    text-align: center;
    max-width: 60ch;
    margin: 0 auto;
  }

  .footer-contact-mini{
    text-align: center;
    border-top: none !important;
    padding-top: 0 !important;
  }

  .footer-legal__label,
  .footer-contact-mini__label{
    text-align: center;
    margin-bottom: 6px;
  }
}

/* =========================
   How To Choose Section (Estate Planning Services page)
========================= */

.how-to-choose{
  padding: 22px 0;
  margin: 18px 0 26px;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.how-to-choose h2{
  margin: 0 0 6px 0;
  font-size: 22px;
  color: #0b3d62;
}

.how-to-choose .choose-subtitle{
  margin: 0;
  color: #4b5563;
  font-size: 14.5px;
}

.choose-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 18px;
}

@media (min-width: 900px){
  .choose-grid{ grid-template-columns: repeat(3, 1fr); }
}

.choose-card{
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.05);
  height: 100%;
}

.choose-eyebrow{
  margin: 0 0 6px 0;
  font-size: 12.5px;
  font-weight: 800;
  color: #0b3d62;
  letter-spacing: 0.2px;
}

.choose-title{
  margin: 0 0 10px 0;
  font-size: 15px;
  font-weight: 800;
  color: #111827;
}

.choose-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.choose-list li{
  position: relative;
  padding-left: 18px;
  color: #374151;
  line-height: 1.5;
  font-size: 14px;
}

.choose-list li::before{
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0b3d62;
  position: absolute;
  left: 0;
  top: 0.55em;
}

.choose-card{
  min-height: 230px;
}

@media (max-width: 768px){
  .choose-card{
    min-height: 0;
  }
}

/* Visual separation for the "How to choose" section */
.choose-section{
  padding: 14px 0 48px;
  padding-bottom: 48px;
  margin: 18px 0 28px;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

/* Make sure the services grid doesn't crash into this section */
.services{
  padding-top: 10px;
}

/* =========================
   FAQ
========================= */
.faq-section{
  padding: 48px 0;
}

.faq-head{
  margin-bottom: 14px;
}

.faq-head h2{
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.2;
}

.faq-head .muted,
.faq-head p{
  margin: 0;
  color: var(--muted);
  max-width: 72ch;
}

/* Align heading, note, and CTA to the same optical inset as .section-lead (10px) */
.faq-head,
.faq-note,
.faq-cta{
  padding-left: 10px;
}

@media (max-width: 700px){
  .faq-head,
  .faq-note,
  .faq-cta{
    padding-left: 6px;
  }
}

.faq-grid{
  width: min(900px, 100%);
  display: grid;
  gap: 12px;
}

.faq-item{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.05);
  overflow: hidden;
}

.faq-item > summary{
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  transition: background .15s ease, color .15s ease;
}

.faq-item > summary::-webkit-details-marker{
  display: none;
}

.faq-item > summary::after{
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(45deg);
  transform-origin: center;
  transition: transform .18s ease;
  flex-shrink: 0;
}

.faq-item[open] > summary::after{
  transform: rotate(225deg);
}

.faq-item > summary:hover{
  background: #f8fafc;
  color: var(--brand);
}

.faq-item > summary:focus-visible{
  outline: 2px solid #0b3d62;
  outline-offset: -2px;
}

.faq-answer{
  padding: 12px 18px;
}

.faq-answer p{
  margin: 0;
  color: var(--muted);
}

.faq-answer p + p{
  margin-top: 10px;
}

.faq-note{
  margin: 16px 0 0;
  color: var(--muted);
  max-width: 72ch;
}

.faq-cta{
  margin-top: 18px;
}

.faq-cta--center{
  text-align: center;
}

.faq-tight{
  padding-top: 28px;
  padding-bottom: 24px;
}

.faq-tight .faq-head{
  margin-bottom: 10px;
}

.faq-tight .faq-head h2{
  font-size: 22px;
  margin-bottom: 6px;
}

.page-section + .page-section{
  margin-top: 16px;
}

@media (max-width: 900px){
  .section-cta{
    margin-top: 24px;
  }

  .section-bottom-pad{
    padding-bottom: 48px;
  }

  .page-section + .page-section{
    margin-top: 12px;
  }

  .faq-section{
    padding: 36px 0;
  }

  .faq-item > summary{
    padding: 14px 16px;
    font-size: 15px;
  }

  .faq-answer{
    padding: 10px 16px;
  }

  .faq-tight{
    padding-top: 22px;
    padding-bottom: 20px;
  }
}

/* =========================
   CONTACT PAGE (scoped)
========================= */
.contact-page .page-hero{
  padding-bottom: 6px;
}

.contact-page .contact-module{
  padding: 18px 0 0;
}


.contact-page .contact-grid{
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.contact-page .contact-card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.05);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.contact-page .contact-card h2{
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.contact-page .contact-card p{
  margin: 0;
  color: var(--muted);
}

.contact-page .contact-card--primary .btn{
  margin-top: 2px;
  align-self: flex-start;
}

.contact-page .contact-secure-note{
  margin-top: -2px;
  font-size: 13px;
  color: #6b7280;
}

.contact-page .contact-rows{
  display: grid;
  gap: 10px;
  margin-top: 2px;
}

.contact-page .contact-row{
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 10px;
}

.contact-page .contact-row-label{
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
}

.contact-page .contact-row-value{
  justify-self: start;
  font-size: 17px;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
}

.contact-page .contact-row-value:hover{
  text-decoration: underline;
}

.contact-page .contact-note{
  margin-top: auto;
}

.contact-page .contact-location{
  padding: 0;
}


.contact-page .contact-location-inner{
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-top: 24px;
  padding-bottom: 24px;
  max-width: 760px;
}

.contact-page .contact-location-inner h2{
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.2;
}

.contact-page .contact-location-inner p{
  margin: 0 0 12px;
  color: var(--muted);
}

.contact-page .contact-location-inner p:last-child{
  margin-bottom: 0;
}

.contact-page .page-section + .page-section{
  margin-top: 44px;
}

.contact-page .faq-section{
  padding: 0;
}

.contact-page .faq-section .faq-cta{
  display: flex;
  justify-content: center;
  margin-top: 24px;
  margin-bottom: 24px;
}

@media (max-width: 900px){
  .contact-page .contact-module{
    padding: 16px 0 0;
  }

  .contact-page .contact-grid{
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .contact-page .contact-card{
    padding: 20px;
  }

  .contact-page .page-section + .page-section{
    margin-top: 32px;
  }

  .contact-page .contact-location-inner{
    padding-top: 20px;
  }

  .contact-page .faq-section{
    padding: 0;
  }

  .contact-page .faq-section .faq-cta{
    margin-top: 24px;
    margin-bottom: 24px;
  }
}

@media (max-width: 520px){
  .contact-page .contact-row{
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

/* =========================
   Shared Info Cards (Other Services + How It Works)
========================= */
.info-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 18px;
}

@media (min-width: 900px){
  .info-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .info-card--full{
    grid-column: 1 / -1;
  }
}

.info-card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.05);
}

.info-card h2{
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
}

.info-card h3{
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.25;
}

.info-card p{
  margin: 0 0 12px;
}

.info-card p + p{
  margin-top: 10px;
}

.info-card ul{
  margin: 0;
  padding-left: 18px;
  list-style: disc;
}

.info-card li{
  margin: 6px 0;
}

.info-card .btn-primary{
  margin-top: 6px;
}

.info-card--full{
  margin-top: 18px;
}

.service-area-page .service-area-list{
  columns: 2;
  column-gap: 28px;
  margin-top: 14px;
}

.service-area-page .service-area-list li{
  break-inside: avoid;
}

.service-area-page .service-area-cta-card{
  align-items: center;
}

@media (max-width: 768px){
  .service-area-page .service-area-list{
    columns: 1;
  }

  .service-area-page .service-area-cta-card{
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================
   Other Services Page (middle section)
========================= */
.other-services-page .page-hero .section-lead{
  padding-left: calc(16px + 20px);
}

.other-services-page .other-services .services-section-intro{
  margin-bottom: 16px;
  padding: 2px 2px 14px;
  border-bottom: 1px solid var(--border);
}

.other-services-page .other-services .services-section-intro h2{
  margin-bottom: 6px;
}

.other-services-page .other-services .services-section-intro p{
  margin: 0;
  max-width: 72ch;
  color: var(--muted);
}

.other-services-page .other-services-panel{
  background: #f5f7fa;
  border: 1px solid #e5e9ef;
  border-radius: 18px;
  padding: 16px;
  padding-top: 16px;
  margin-top: 0;
}

.other-services-page .other-services-panel .info-grid{
  margin-top: 0;
  gap: 16px;
}

.other-services-page .other-services .info-grid .info-card{
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 12px;
  padding: 22px;
  box-shadow: 0 9px 22px rgba(11, 61, 98, 0.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.other-services-page .other-services .info-grid .info-card--intro{
  grid-column: 1 / -1;
}

@media (min-width: 900px){
  .other-services-page .other-services .info-grid .info-card--featured{
    grid-column: 1 / -1;
  }
}

.other-services-page .other-services .info-grid .info-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 16px 28px rgba(11, 61, 98, 0.11);
  border-color: #d4dbe4;
}

.other-services-page .other-services .info-card-head{
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.other-services-page .other-services .info-card-badge{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(11, 61, 98, 0.08);
  color: rgba(11, 61, 98, 0.78);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.other-services-page .other-services .info-card-badge svg{
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.other-services-page .other-services .info-card-head h2{
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
}

.other-services-page .other-services .info-card-head h2 a{
  text-decoration: none;
}

.other-services-page .other-services .info-card-head h2 a:hover{
  text-decoration: underline;
  text-underline-offset: 2px;
}

.other-services-page .other-services .info-grid .info-card > p{
  margin: 0;
  color: var(--muted);
}

.other-services-page .other-services .info-grid .info-card > ul{
  margin: 0;
  padding-left: 20px;
  list-style: disc;
  display: grid;
  gap: 8px;
}

.other-services-page .other-services .info-grid .info-card li{
  margin: 0;
  line-height: 1.5;
}

.other-services-page .other-services .info-grid .info-card > ul + p{
  margin-top: auto;
}

@media (max-width: 900px){
  .other-services-page .page-hero .section-lead{
    padding-left: 10px;
  }

  .other-services-page .other-services-panel{
    padding: 12px;
    padding-top: 12px;
  }

  .other-services-page .other-services .info-grid .info-card{
    padding: 18px;
    gap: 10px;
  }

  .other-services-page .other-services .info-card-head h2{
    font-size: 19px;
  }
}

.other-services-page main.site-main .page-hero{
  padding-bottom: var(--space-2);
}

.other-services-page .other-services.page-section{
  padding-top: var(--space-2);
}

/* =========================
   How It Works Page (scoped)
========================= */
.how-it-works-page .how-steps-grid{
  grid-template-columns: 1fr;
}


.how-it-works-page .how-it-works-intro{
  padding-top: 18px;
}

.how-it-works-page .how-it-works-intro h2{
  margin-top: 0;
}

/* =========================
   Legal Notice Page (scoped)
========================= */
.legal-notice-page .legal-notice-card{
  display: block;
  padding: 28px 32px;
}

.legal-notice-page .legal-notice-card .legal-content{
  width: 100%;
}

.legal-notice-page .legal-notice-card h2,
.legal-notice-page .legal-notice-card h3{
  margin-top: 0;
  margin-bottom: 16px;
}

.legal-notice-page .legal-notice-card .legal-content p{
  margin: 0 0 16px;
  max-width: none;
}

.legal-notice-page .legal-notice-card .legal-content p:last-of-type{
  margin-bottom: 0;
}

.legal-notice-page .legal-notice-card .notice-address{
  font-size: 0.95rem;
  color: var(--muted);
}

/* Optical alignment for section leads above card grids */
.section-lead{
  padding-left: 10px;
}

.service-area-line{
  margin: 12px 0 0;
  color: var(--muted);
  max-width: 72ch;
}

.home .hero-text p.service-area-line{
  max-width: 72ch;
  margin: 10px 0 0;
  text-align: left;
}

.service-area-note{
  margin-top: 14px;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--muted);
  max-width: 72ch;
}

@media (max-width: 700px){
  .section-lead{
    padding-left: 6px;
  }
}

@media (max-width: 768px){
  .service-area-line{
    font-size: 14px;
    line-height: 1.5;
  }

  .service-area-note{
    font-size: 14px;
    line-height: 1.5;
  }

  .home .hero-text p.service-area-line{
    max-width: 45ch;
    margin: 8px auto 0;
    text-align: center;
  }
}

/* Header brand positioning + logo clarity */
.site-header .header-inner{
  padding-left: clamp(18px, 2.4vw, 30px);
  padding-right: clamp(18px, 2.4vw, 30px);
}

.site-header .brand-logo{
  height: 60px;
  width: auto;
  max-height: none;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

@media (max-width: 900px){
  .site-header .header-inner{
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-header .brand-logo{
    height: 46px;
  }
}

/* =========================
   Primary Nav Dropdown
========================= */
.nav-item.has-dropdown{
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
}

@media (min-width: 901px){
  .site-header,
  .site-header .header-inner,
  .site-header .navbar{
    overflow: visible;
  }

  .nav-item.has-dropdown::after{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 10px;
    background: transparent;
  }
}

.nav-item.has-dropdown > a{
  white-space: nowrap;
}

.submenu-toggle{
  display: none;
  width: 28px;
  height: 28px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.submenu-toggle:hover,
.submenu-toggle:focus-visible{
  background: #f3f4f6;
  border-color: var(--border);
}

.dropdown-menu{
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1200;
  min-width: 300px;
  max-width: min(360px, calc(100vw - 32px));
  max-height: none;
  overflow-y: visible;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity .14s ease, transform .14s ease, visibility 0s linear .14s;
}

.nav-item.has-dropdown:hover .dropdown-menu,
.nav-item.has-dropdown:focus-within .dropdown-menu,
.dropdown-menu.is-open{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

.dropdown-menu a{
  display: block;
  width: 100%;
  padding: 9px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  white-space: normal;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible{
  background: #f3f4f6;
  color: var(--brand);
  outline: none;
}

@media (max-width: 900px){
  .nav-item.has-dropdown{
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 6px;
  }

  .nav-item.has-dropdown > a{
    width: 100%;
  }

  .submenu-toggle{
    display: inline-flex;
  }

  .submenu-toggle[aria-expanded="true"]{
    transform: rotate(180deg);
  }

  .dropdown-menu{
    display: none;
    position: static;
    grid-column: 1 / -1;
    min-width: 0;
    max-width: 100%;
    max-height: none;
    overflow: visible;
    margin-top: 2px;
    padding: 6px 0 0;
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .dropdown-menu a{
    padding: 9px 12px;
  }

  .dropdown-menu.is-open{
    display: block;
  }
}

@media (max-width: 900px){
  .nav-item.has-dropdown{
    display: block;
  }

  .services-btn{
    width: 100%;
    justify-content: space-between;
    padding: 12px 12px;
  }

  .services-btn::after{
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.15s ease;
    margin-left: 8px;
    flex-shrink: 0;
  }

  .services-btn[aria-expanded="true"]::after{
    transform: rotate(-135deg);
  }

  .nav-item.has-dropdown .dropdown-menu{
    display: none;
    position: static;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    max-height: none;
    overflow: visible;
    margin-top: 2px;
    padding: 6px 0 0;
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .nav-item.has-dropdown.is-open .dropdown-menu,
  .nav-item.has-dropdown .dropdown-menu.is-open{
    display: block;
    /* Scroll the submenu internally so it never overflows the panel,
       preventing the "blank space" bug on short screens */
    max-height: 55vh; /* safe fallback */
    max-height: max(calc(100dvh - 380px), 160px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-item.has-dropdown .dropdown-menu a{
    padding: 9px 12px 9px 22px;
  }
}

/* =========================
   Service Detail Hero
========================= */
main.page > .service-hero{
  padding: 40px 0 16px;
}

/* Reduce the large top gap created when a standard .section follows directly after service-hero */
main.page > .service-hero + .section{
  padding-top: 28px;
}

main.page > .service-hero .service-hero-inner{
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 42px;
  align-items: center;
}

main.page > .service-hero .service-hero-image{
  width: min(420px, 100%);
  justify-self: center;
  margin-top: 0;
}

main.page > .service-hero .service-hero-image img{
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 14px 28px rgba(11, 61, 98, 0.12);
}

@media (max-width: 900px){
  main.page > .service-hero{
    padding: 32px 0 10px;
  }

  main.page > .service-hero .service-hero-inner{
    grid-template-columns: 1fr;
    gap: 24px;
  }

  main.page > .service-hero .service-hero-image{
    order: 2;
    width: min(520px, 100%);
    justify-self: start;
    margin-top: 0;
  }
}

@media (max-width: 768px){
  main.page > .service-hero .service-hero-inner{
    gap: 20px;
  }

  main.page > .service-hero .service-hero-image{
    width: min(360px, 100%);
    justify-self: center;
    margin: 0 auto;
  }

  main.page > .service-hero .service-hero-image img{
    width: 100%;
    aspect-ratio: 4 / 3;
    height: 100%;
    object-fit: cover;
    object-position: 50% 22%;
  }
}

@media (max-width: 600px){
  main.page > .service-hero .service-hero-image{
    width: min(320px, 100%);
  }
}

/* =========================
   Service Detail Flow
========================= */
main.page > .service-body{
  display: block;
  height: auto;
  padding: 0;
  gap: 0;
  margin-top: -10px;
}

main.page > .service-body .service-band{
  padding: 52px 0;
}

main.page > .service-body .service-band:first-child{
  padding-top: 40px;
}

main.page > .service-body .service-band--muted{
  background: #f7f8fa;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

main.page > .service-body .service-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

main.page > .service-body .service-grid-full{
  grid-column: 1 / -1;
}

main.page > .service-body .service-grid .info-card{
  margin: 0;
  height: 100%;
  padding: 22px;
}

main.page > .service-body .service-grid .info-card h2{
  margin: 0 0 12px;
}

main.page > .service-body .service-grid .info-card p{
  margin: 0 0 12px;
}

main.page > .service-body .service-grid .info-card p:last-child{
  margin-bottom: 0;
}

main.page > .service-body .service-grid .info-card ul{
  margin: 0;
  padding-left: 20px;
  list-style: disc;
  display: grid;
  gap: 8px;
}

main.page > .service-body .service-grid .info-card li{
  margin: 0;
}

main.page > .service-body .service-next-step{
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 24px;
}

main.page > .service-body .service-next-step h3{
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
}

main.page > .service-body .service-next-step p{
  margin: 0;
  max-width: 62ch;
}

main.page > .service-body .service-next-step .btn-primary{
  margin-top: 4px;
}

@media (max-width: 900px){
  main.page > .service-body{
    margin-top: -10px;
  }

  main.page > .service-body .service-band{
    padding: 40px 0;
  }

  main.page > .service-body .service-band:first-child{
    padding-top: 30px;
  }

  main.page > .service-body .service-grid{
    grid-template-columns: 1fr;
    gap: 14px;
  }

  main.page > .service-body .service-grid .info-card{
    padding: 18px;
  }

  main.page > .service-body .service-next-step{
    padding: 20px;
  }
}

/* =========================
   ARTICLES SECTION
========================= */

/* Landing page — article preview list */
.articles-section{
  padding-top: 8px;
  padding-bottom: 12px;
}

@media (max-width: 700px){
  .articles-section{
    padding-bottom: 20px;
  }
}

.articles-list{
  display: grid;
  gap: 16px;
  padding-top: 4px;
}

.article-preview{
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.05);
  transition: box-shadow 0.15s, border-color 0.15s;
}

.article-preview:hover{
  box-shadow: 0 14px 30px rgba(0,0,0,0.09);
  border-color: #d1d5db;
}

.article-preview h2{
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.3;
  color: var(--navy);
}

.article-preview p{
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.6;
}

.article-read-more{
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
}

/* Article page — back link */
.article-back{
  display: inline-block;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--brand);
  text-decoration: none;
}

.article-back:hover{
  text-decoration: underline;
}

/* Article page — prose body */
.article-section{
  padding-top: 4px;
}

.article-body{
  max-width: 72ch;
}

.article-body > h2{
  margin: 36px 0 10px;
  font-size: 21px;
  line-height: 1.3;
  color: var(--navy);
}

.article-body > p{
  margin: 0 0 14px;
  line-height: 1.75;
}

.article-body > ul{
  margin: 0 0 14px;
  padding-left: 20px;
}

.article-body > ul li{
  margin: 7px 0;
  line-height: 1.65;
}

.article-body a{
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body a:hover{
  text-decoration: none;
}

/* Article page — CTA band */
.article-cta{
  background: #f7f8fa;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
  margin-top: 24px;
}

.article-cta-card{
  max-width: 720px;
  display: grid;
  gap: 12px;
  justify-items: start;
}

.article-cta-card h3{
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.article-cta-card > p{
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
}

.article-disclaimer{
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
}

@media (max-width: 900px){
  .article-cta{
    padding: 36px 0;
  }
}

@media (max-width: 700px){
  .article-body > h2{
    font-size: 19px;
  }

  .article-preview h2{
    font-size: 18px;
  }
}

/* =========================
   Services Nav Button
========================= */

/* Looks and behaves like .navbar a, but is a <button> with integrated caret */
.services-btn{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  padding: 9px 10px;
  border-radius: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.services-btn:hover,
.services-btn:focus-visible{
  background: #f3f4f6;
  color: var(--navy);
  outline: none;
}

.services-btn[aria-current="page"]{
  background: var(--navy);
  color: #fff;
}

.services-caret{
  font-size: 10px;
  line-height: 1;
  transition: transform 0.15s ease;
}

/* Mobile/tablet: full-width button, caret rotates when open */
@media (max-width: 900px){
  /* Override the 1fr+auto grid — single button needs 1 column only */
  .nav-item.has-services-btn{
    grid-template-columns: 1fr;
    gap: 0;
  }

  .services-btn{
    width: 100%;
    justify-content: space-between;
    padding: 12px 12px;
  }

  .services-btn[aria-expanded="true"] .services-caret{
    transform: rotate(180deg);
  }
}

/* Dropdown divider between estate planning items and Other Services */
.dropdown-divider{
  border: none;
  border-top: 1px solid var(--border);
  margin: 6px 4px;
}

/* =========================
   Articles + Mobile Nav Fixes
========================= */

/* Articles index hero: align heading block with article card content inset */
.articles-index-page .page-hero .section-lead{
  padding-left: 16px;
}

/* Articles index: tighten hero-to-list spacing */
.articles-index-page main.site-main .page-hero{
  padding-bottom: var(--space-3);
}

.articles-index-page main.site-main .articles-section{
  padding-top: var(--space-3);
}

/* Article detail: consistent, readable article typography rhythm */
.article-page .page-hero .section-lead,
.article-page .article-section .article-body{
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.article-page .page-hero .section-lead{
  padding-left: 0;
  padding-right: 0;
}

.article-page .page-hero h1{
  max-width: 50ch;
  text-wrap: balance;
}

.article-page main.site-main .page-hero{
  padding-bottom: var(--space-2);
}

.article-page main.site-main .article-section{
  padding-top: var(--space-2);
  padding-bottom: var(--divider-gap-desktop);
}

.article-page main.site-main .article-cta{
  margin-top: 0;
}

@media (max-width: 768px){
  .article-page main.site-main .article-section{
    padding-bottom: var(--divider-gap-mobile);
  }
}

.article-page .article-section .container{
  padding-left: 0;
  padding-right: 0;
}

.article-page .article-back{
  margin-bottom: 14px;
  line-height: 1.4;
}

.article-page .article-body{
  line-height: 1.75;
}

.article-page .article-cta-card{
  max-width: 1100px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.article-page .article-cta-card > p{
  max-width: none;
}

.article-page .article-body > p{
  margin: 0 0 16px;
  padding-left: 0;
  text-indent: 0;
}

.article-page .article-body > h2{
  margin: 34px 0 12px;
  line-height: 1.3;
}

.article-page .article-body > h3{
  margin: 26px 0 10px;
  line-height: 1.35;
  color: var(--navy);
}

.article-page .article-body > ul,
.article-page .article-body > ol{
  margin: 0 0 16px;
  padding-left: 24px;
}

.article-page .article-body > ul{
  list-style: disc;
}

.article-page .article-body > ol{
  list-style: decimal;
}

.article-page .article-body > ul li,
.article-page .article-body > ol li{
  margin: 0 0 8px;
  line-height: 1.65;
}

.article-page .article-body > ul li:last-child,
.article-page .article-body > ol li:last-child,
.article-page .article-body > *:last-child{
  margin-bottom: 0;
}

/* Mobile/tablet nav panel: floating dropdown anchored near hamburger */
@media (max-width: 900px){
  .site-header .header-inner{
    position: relative;
  }

  .site-header .navbar{
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    width: min(320px, calc(100vw - 32px));
    max-height: calc(100vh - 110px);
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    z-index: 1200;
  }

  .site-header .navbar.is-open{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .site-header .navbar a,
  .site-header .services-btn{
    width: 100%;
    padding: 10px 12px;
  }

  main.page > .service-hero .service-hero-inner{
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
  }

  main.page > .service-hero .service-hero-text{
    display: grid;
    gap: 10px;
  }

  main.page > .service-hero .service-hero-text > p{
    margin: 0;
  }

  main.page > .service-hero .hero-actions{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 6px 0 0;
    width: 100%;
    max-width: none;
  }

  main.page > .service-hero .hero-actions .btn{
    width: auto;
    flex: 0 0 auto;
    text-align: center;
    white-space: nowrap;
  }

  main.page > .service-hero .hero-actions .btn-secondary{
    display: none;
  }

  main.page > .service-hero .service-hero-image{
    order: 2;
    width: 100%;
    max-width: none;
    justify-self: stretch;
    margin-top: 2px;
  }

  main.page > .service-hero .service-hero-image img{
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: cover;
  }
}

@media (max-width: 700px){
  .articles-index-page .page-hero .section-lead{
    padding-left: 10px;
  }

  .articles-index-page main.site-main .page-hero{
    padding-bottom: var(--space-2);
  }

  .articles-index-page main.site-main .articles-section{
    padding-top: var(--space-2);
  }
}

/* =========================
   Intake Page
========================= */
.intake-page .intake-form-section{
  padding-top: 8px;
}

.intake-page .page-hero .container.section-lead{
  width: min(1200px, 96%);
  padding-left: 10px;
}

.intake-page .intake-form-section .container{
  width: min(1200px, 96%);
}

.intake-form-wrap{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px;
  margin-bottom: 48px;
  box-shadow: var(--shadow);
}

.intake-form-wrap iframe{
  display: block;
  width: 100%;
  border: 0;
}

.intake-page main.site-main .page-hero{
  padding-bottom: var(--space-2);
}

.intake-page main.site-main .intake-form-section.page-section{
  padding-top: var(--space-2);
}

@media (max-width: 768px){
  .intake-page .page-hero .container.section-lead{
    width: 100%;
    padding-left: 16px;
    padding-right: 10px;
  }

  .intake-page .intake-form-section .container{
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }

  .intake-form-wrap{
    border-radius: 12px;
    padding: 6px;
    margin-bottom: 32px;
  }
}

/* =========================
   Intake Thank You Page
========================= */
.intake-thank-you-page .page-hero{
  padding-top: 72px;
  padding-bottom: 24px;
}

.intake-thank-you-page .intake-thank-you-note{
  max-width: 74ch;
  margin: 30px 0 0 14px;
  padding-right: 16px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.intake-thank-you-page .intake-thank-you-note p{
  margin: 0 0 14px;
}

.intake-thank-you-page .intake-thank-you-note p:last-child{
  margin-bottom: 0;
}

.intake-thank-you-page .intake-thank-you-note-sub{
  font-size: 0.95rem;
}

@media (max-width: 768px){
  .intake-thank-you-page .page-hero{
    padding-top: 52px;
    padding-bottom: 18px;
  }

  .intake-thank-you-page .intake-thank-you-note{
    margin-top: 24px;
    margin-left: 10px;
    max-width: 68ch;
    padding-right: 12px;
  }
}

/* =========================================
   Vertical Rhythm Normalization (Sitewide)
   ========================================= */
:root{
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;

  --section-pad-y-desktop: var(--space-6);
  --section-pad-y-mobile: var(--space-5);
}

/* Keep rhythm scoped to main content only */
main.site-main h1,
main.site-main h2,
main.site-main h3{
  margin-top: 0;
}

main.site-main h2{
  margin-bottom: var(--space-3);
}

main.site-main h3{
  margin-bottom: var(--space-2);
}

main.site-main p{
  margin: 0 0 var(--space-3);
}

main.site-main p:last-child{
  margin-bottom: 0;
}

/* Standard section rhythm */
main.site-main .page-hero{
  padding-top: var(--space-6);
  padding-bottom: var(--space-4);
}

main.site-main .section,
main.site-main .page-section,
main.site-main .faq-section,
main.site-main .services-note,
main.site-main .articles-section,
main.site-main .article-cta{
  padding-top: var(--section-pad-y-desktop);
  padding-bottom: var(--section-pad-y-desktop);
}

main.site-main .page-section + .page-section{
  margin-top: 0;
}

main.site-main .section-bottom-pad{
  padding-bottom: var(--section-pad-y-desktop);
}

/* Symmetric padding for bounded/divided sections */
main.site-main .section.section-alt,
main.site-main .choose-section,
main.site-main .how-to-choose,
main.site-main .service-body .service-band--muted,
main.site-main .article-cta{
  padding-top: var(--section-pad-y-desktop);
  padding-bottom: var(--section-pad-y-desktop);
}

main.site-main .choose-section,
main.site-main .how-to-choose{
  margin-top: 0;
  margin-bottom: 0;
}

/* Service pages: consistent vertical rhythm between bands/cards/FAQ */
main.page > .service-hero{
  padding-top: var(--space-6);
  padding-bottom: var(--space-4);
}

main.page > .service-hero + .section{
  padding-top: var(--space-5);
}

main.page > .service-body{
  margin-top: 0;
}

main.page > .service-body .service-band,
main.page > .service-body .service-band:first-child{
  padding-top: var(--section-pad-y-desktop);
  padding-bottom: var(--section-pad-y-desktop);
}

main.page > .service-body .faq-tight{
  padding-top: var(--space-5);
  padding-bottom: var(--space-5);
}

/* Stack spacing for common blocks */
main.site-main .section-lead > * + *{
  margin-top: var(--space-3);
}

main.site-main .hero-actions,
main.site-main .section-cta,
main.site-main .faq-cta{
  margin-top: var(--space-4);
}

main.site-main .service-area-note,
main.site-main .service-area-line,
main.site-main .faq-note{
  margin-top: var(--space-3);
}

main.site-main .cards-grid,
main.site-main .services-grid,
main.site-main .info-grid{
  margin-top: var(--space-4);
  gap: var(--space-4);
}

main.site-main .faq-head{
  margin-bottom: var(--space-4);
}

main.site-main .faq-grid{
  gap: var(--space-3);
}

main.site-main .info-card,
main.site-main .note-card{
  padding: var(--space-4);
}

main.site-main .info-card > :first-child,
main.site-main .note-card > :first-child{
  margin-top: 0;
}

main.site-main .info-card > :last-child,
main.site-main .note-card > :last-child{
  margin-bottom: 0;
}

main.site-main .faq-answer{
  padding: var(--space-2) var(--space-4);
}

main.site-main .faq-answer p + p{
  margin-top: var(--space-2);
}

main.site-main .service-next-step{
  gap: var(--space-3);
}

main.site-main .service-next-step .btn-primary{
  margin-top: var(--space-2);
}

/* Contact page spacing
   Selectors use .page-section to reach (0,3,0) > main.site-main .page-section (0,2,1).
   Hero override uses main.site-main to reach (0,3,1). */
.contact-page main.site-main .page-hero{
  padding-bottom: var(--space-2);
}

.contact-page .contact-module.page-section{
  padding-top: var(--space-3);
  padding-bottom: var(--space-5);
}

.contact-page .contact-location.page-section{
  padding-top: 0;
  padding-bottom: 0;
}

.contact-page .contact-location-inner{
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}

.contact-page .faq-section.page-section{
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}

.contact-page .page-section + .page-section{
  margin-top: 0;
}

.service-area-page main.site-main .page-hero{
  padding-bottom: var(--space-2);
}

.service-area-page main.site-main .page-hero + .section.page-section{
  padding-top: var(--space-3);
}

.legal-notice-page main.site-main .page-hero{
  padding-bottom: var(--space-2);
}

.legal-notice-page main.site-main .page-hero + .services-note.page-section{
  padding-top: var(--space-3);
}

@media (min-width: 769px){
  main.site-main .faq-section.page-section[aria-labelledby="faq-estate-overview-title"]{
    padding-bottom: var(--space-4);
  }

  main.site-main .faq-section.page-section[aria-labelledby="faq-estate-overview-title"] + .services-note.page-section{
    padding-top: var(--space-4);
  }
}

.intake-page .intake-form-section{
  padding-top: var(--space-4);
  padding-bottom: var(--section-pad-y-desktop);
}

.intake-page .intake-form-wrap{
  margin-bottom: 0;
}

.intake-thank-you-page main.site-main{
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.intake-thank-you-page main.site-main .page-hero{
  padding-top: var(--space-5);
  padding-bottom: var(--space-5);
}

.intake-thank-you-page .intake-thank-you-note{
  margin-top: var(--space-4);
}

/* Mobile rhythm pass */
@media (max-width: 768px){
  main.site-main .page-hero{
    padding-top: var(--space-5);
    padding-bottom: var(--space-3);
  }

  main.site-main .section,
  main.site-main .page-section,
  main.site-main .faq-section,
  main.site-main .services-note,
  main.site-main .articles-section,
  main.site-main .article-cta{
    padding-top: var(--section-pad-y-mobile);
    padding-bottom: var(--section-pad-y-mobile);
  }

  main.site-main .section.section-alt,
  main.site-main .choose-section,
  main.site-main .how-to-choose,
  main.site-main .service-body .service-band--muted,
  main.site-main .article-cta{
    padding-top: var(--section-pad-y-mobile);
    padding-bottom: var(--section-pad-y-mobile);
  }

  main.site-main .section-bottom-pad{
    padding-bottom: var(--section-pad-y-mobile);
  }

  main.page > .service-hero{
    padding-top: var(--space-5);
    padding-bottom: var(--space-3);
  }

  main.page > .service-hero + .section{
    padding-top: var(--space-4);
  }

  main.page > .service-body .service-band,
  main.page > .service-body .service-band:first-child,
  main.page > .service-body .faq-tight{
    padding-top: var(--section-pad-y-mobile);
    padding-bottom: var(--section-pad-y-mobile);
  }

  main.site-main .cards-grid,
  main.site-main .services-grid,
  main.site-main .info-grid{
    margin-top: var(--space-3);
    gap: var(--space-3);
  }

  main.site-main .section-lead > * + *,
  main.site-main .hero-actions,
  main.site-main .section-cta,
  main.site-main .faq-cta{
    margin-top: var(--space-3);
  }

  main.site-main .service-area-note,
  main.site-main .service-area-line,
  main.site-main .faq-note{
    margin-top: var(--space-2);
  }

  main.site-main .info-card,
  main.site-main .note-card{
    padding: var(--space-3);
  }

  main.site-main .services-overview-note-card{
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: start;
    column-gap: 20px;
    row-gap: var(--space-2);
  }

  main.site-main .services-overview-note-card h3{
    grid-column: 1;
    margin: 0;
  }

  main.site-main .services-overview-note-card p{
    grid-column: 1;
    margin: 0;
    max-width: none;
  }

  main.site-main .services-overview-note-card .btn-primary{
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    justify-self: end;
    margin-top: 0;
    padding: 10px 16px;
    border-radius: 10px;
  }

  main.site-main .faq-answer{
    padding: var(--space-2) var(--space-3);
  }

  .contact-page main.site-main .page-hero{
    padding-bottom: var(--space-1);
  }

  .contact-page .contact-module.page-section,
  .contact-page .faq-section.page-section{
    padding-top: var(--space-3);
    padding-bottom: var(--space-4);
  }

  .contact-page .contact-location.page-section{
    padding-top: 0;
    padding-bottom: 0;
  }

  .service-area-page main.site-main .page-hero{
    padding-bottom: var(--space-1);
  }

  .service-area-page main.site-main .page-hero + .section.page-section{
    padding-top: var(--space-2);
  }

  .service-area-page main.site-main .section.page-section{
    padding-bottom: var(--space-3);
  }

  .service-area-page main.site-main .services-note.page-section{
    padding-top: var(--space-3);
  }

  .legal-notice-page main.site-main .page-hero{
    padding-bottom: var(--space-1);
  }

  .legal-notice-page main.site-main .page-hero + .services-note.page-section{
    padding-top: var(--space-2);
  }

  .contact-page .contact-location-inner{
    padding-top: var(--space-3);
    padding-bottom: var(--space-3);
  }

  .intake-page .intake-form-section{
    padding-top: var(--space-3);
    padding-bottom: var(--section-pad-y-mobile);
  }

  .intake-thank-you-page .page-hero{
    padding-top: var(--space-5);
    padding-bottom: var(--section-pad-y-mobile);
  }

  .intake-thank-you-page .intake-thank-you-note{
    margin-top: var(--space-3);
  }
}

/* =========================================
   Symmetric Divider Spacing (Pattern A)
   ========================================= */
:root{
  --divider-gap-desktop: var(--space-4);
  --divider-gap-mobile: var(--space-3);
}

/* Sitewide section wrappers: consistent, natural vertical rhythm */
main.page > .section,
main.site-main > .faq-section.page-section,
main.site-main > .services-note.page-section,
main.site-main > .article-cta,
main.page > .service-body > .service-band,
main.page > .service-body > .service-band:first-child,
main.page > .service-body > .faq-section{
  padding-top: var(--divider-gap-desktop);
  padding-bottom: var(--divider-gap-desktop);
}

/* Divider-bearing sections/bands: top and bottom spacing stay symmetric */
main.site-main .section.section-alt,
main.site-main .choose-section,
main.site-main .how-to-choose,
main.site-main .article-cta,
main.page > .service-body > .service-band--muted,
.contact-page .contact-location-inner{
  padding-top: var(--divider-gap-desktop);
  padding-bottom: var(--divider-gap-desktop);
}

/*
  Reset first/last-child margins at section boundaries so wrapper padding
  defines divider distance instead of accumulated child margins.
*/
main.page > .section > .container > :first-child,
main.site-main > .faq-section.page-section > .container > :first-child,
main.site-main > .services-note.page-section > .container > :first-child,
main.page > .service-body > .service-band > .container > :first-child,
main.page > .service-body > .faq-section > .container > :first-child,
main.site-main .section.section-alt > .container > :first-child,
main.site-main .choose-section > .container > :first-child,
main.site-main .how-to-choose > .container > :first-child,
main.site-main .article-cta > .container > :first-child{
  margin-top: 0;
}

main.page > .section > .container > :last-child,
main.site-main > .faq-section.page-section > .container > :last-child,
main.site-main > .services-note.page-section > .container > :last-child,
main.page > .service-body > .service-band > .container > :last-child,
main.page > .service-body > .faq-section > .container > :last-child,
main.site-main .section.section-alt > .container > :last-child,
main.site-main .choose-section > .container > :last-child,
main.site-main .how-to-choose > .container > :last-child,
main.site-main .article-cta > .container > :last-child{
  margin-bottom: 0;
}

@media (max-width: 768px){
  main.page > .section,
  main.site-main > .faq-section.page-section,
  main.site-main > .services-note.page-section,
  main.site-main > .article-cta,
  main.page > .service-body > .service-band,
  main.page > .service-body > .service-band:first-child,
  main.page > .service-body > .faq-section,
  main.site-main .section.section-alt,
  main.site-main .choose-section,
  main.site-main .how-to-choose,
  main.site-main .article-cta,
  main.page > .service-body > .service-band--muted,
  .contact-page .contact-location-inner{
    padding-top: var(--divider-gap-mobile);
    padding-bottom: var(--divider-gap-mobile);
  }

}

/* ── Pre-footer CTA breathing room ─────────────────────────────
   Override the divider-gap rules for sections that sit directly
   above the footer and contain a primary CTA button. Restores
   full section-pad-y so the button has uniform, natural spacing.
   The margin-top on the CTA wrapper is set to match padding-bottom
   so space above and below the button is equal.
─────────────────────────────────────────────────────────────── */
main.site-main .section.section-alt.section-bottom-pad,
main.site-main > .faq-section.page-section:last-child,
main.site-main > .services-note.page-section:last-child,
main.site-main > .how-it-works-steps.section.page-section:last-child,
main.page > .service-body > .service-band:last-child{
  padding-bottom: var(--section-pad-y-desktop);
}

/* Equal space above CTA button (matches padding-bottom above) */
main.site-main .section.section-alt.section-bottom-pad .section-cta,
main.site-main > .faq-section.page-section:last-child .faq-cta{
  margin-top: var(--section-pad-y-desktop);
}

@media (max-width: 768px){
  main.site-main .section.section-alt.section-bottom-pad,
  main.site-main > .faq-section.page-section:last-child,
  main.site-main > .services-note.page-section:last-child,
  main.site-main > .how-it-works-steps.section.page-section:last-child,
  main.page > .service-body > .service-band:last-child{
    padding-bottom: var(--section-pad-y-mobile);
  }

  main.site-main .section.section-alt.section-bottom-pad .section-cta,
  main.site-main > .faq-section.page-section:last-child .faq-cta{
    margin-top: var(--section-pad-y-mobile);
  }
}
