/* =================================================================
   POLITAKIS LAW — main.css
   Tokens match the intake form to keep the brand consistent across
   politakislaw.com and the /intake/ worksheet.
   ================================================================= */

:root {
  --navy:           #1b3a6b;
  --navy-deep:      #122747;
  --blue:           #2c5f9e;
  --blue-dark:      #234d85;
  --blue-light:     #e8eef8;
  --page-bg:        #f4f7fc;
  --white:          #ffffff;
  --border:         #c8d4e8;
  --border-light:   #dde6f0;
  --text:           #555759;
  --text-strong:    #1a1a1a;
  --text-muted:     #777b7e;
  --success:        #1e6b45;
  --error:          #b3261e;
  --gold:           #afa46e;     /* brand gold — button hover, service icons, active nav (live-site match) */
  --gold-dark:      #8e7f4d;
  --ink:         #1b213a;      /* dark navy button base — live-site .et_pb_button */
  --slate:          #6e7da6;     /* footer background (screenshot match) */
  --slate-dark:     #1a2a4a;     /* footer subscribe button */
  --heading-muted:  #747474;     /* large display titles (grey serif — live-site #747474) */
  --cta-navy:       #0d1a33;     /* dark "Free Case Evaluation" band */

  /* Typography mirrors the live Divi site: Abhaya Libre headings, Roboto body,
     Playfair Display reserved for the large grey display titles. */
  --font-serif:     'Abhaya Libre', Georgia, 'Times New Roman', serif;
  --font-display:   'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:      'Roboto', Helvetica, Arial, 'Lucida Sans Unicode', sans-serif;

  --container:      1200px;
  --container-narrow: 880px;

  --radius-sm:      3px;
  --radius-md:      6px;

  --shadow-sm:      0 2px 8px rgba(27, 58, 107, 0.06);
  --shadow-md:      0 6px 24px rgba(27, 58, 107, 0.10);

  --header-h:       86px;
  --header-h-mobile: 68px;

  --ease:           cubic-bezier(.4, 0, .2, 1);
}

/* =================================================================
   RESET / BASE
   ================================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--navy); }
button { font-family: inherit; cursor: pointer; }
ul, ol { padding-left: 1.2em; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }
p, li { margin: 0 0 1em; }
strong { color: var(--text-strong); font-weight: 600; }

.eyebrow {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: .5em;
  display: inline-block;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: var(--container-narrow); }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--navy); color: #fff; padding: 10px 16px;
  z-index: 1000; border-radius: var(--radius-sm); font-weight: 700;
}
.skip-link:focus { left: 8px; color: #fff; }

/* =================================================================
   BUTTONS
   ================================================================= */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  background: var(--ink);
  color: #fff !important;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease);
}
.btn:hover { background: var(--gold); border-color: var(--ink); color: #fff !important; letter-spacing: .14em; }
.btn:active { transform: translateY(1px); }
.btn--blue { background: var(--blue); border-color: var(--blue); }
.btn--blue:hover { background: var(--gold); border-color: var(--ink); }
.btn--ghost {
  background: transparent;
  color: var(--navy) !important;
}
.btn--ghost:hover { background: var(--gold); border-color: var(--ink); color: #fff !important; }
.btn--on-dark {
  background: #fff; color: var(--navy) !important; border-color: #fff;
}
.btn--on-dark:hover { background: var(--blue-light); border-color: var(--blue-light); color: var(--navy) !important; }

/* =================================================================
   HEADER + NAV
   ================================================================= */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.site-header__top {
  background: #fff;
  color: var(--navy);
  font-size: .82rem;
  border-bottom: 1px solid var(--border-light);
}
.site-header__top-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.site-header__top a { color: var(--navy); }
.site-header__top a:hover { color: var(--blue); }
.site-header__top-contact { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.site-header__top-item { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.site-header__top-item svg { color: var(--blue); }
.site-header__social { display: flex; align-items: center; gap: 14px; }
.site-header__social a { display: inline-flex; color: var(--navy); }
.site-header__social a:hover { color: var(--blue); }
@media (max-width: 1100px) {
  .site-header__top { display: none; }
}

.site-header__main {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 0;
}
.site-header__brand-img { height: 48px; width: auto; }
.site-header__brand-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: .02em;
  line-height: 1.1;
}
.site-header__cta {
  flex-shrink: 0;
  padding: 12px 26px;
  font-size: .72rem;
}

/* Primary nav */
.primary-nav { display: flex; }
.primary-nav .menu {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 4px;
}
.primary-nav .menu-item { position: relative; }
.primary-nav .menu-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  background: none; border: none;
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .08em;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color .15s var(--ease);
}
.primary-nav .menu-link:hover,
.primary-nav .menu-link:focus,
.primary-nav .menu-item.is-current > .menu-link,
.primary-nav .menu-item.is-current-ancestor > .menu-link,
.primary-nav .menu-item.current-menu-item > .menu-link {
  color: var(--gold);
  background: transparent;
}
.primary-nav .menu-caret { font-size: .65em; opacity: .6; transition: transform .2s var(--ease); display: inline-block; }
.primary-nav .menu-item.has-children > .menu-link[aria-expanded="true"] .menu-caret { transform: rotate(180deg); }
.primary-nav .sub-menu {
  position: absolute;
  top: calc(100% + 2px); left: 0;
  min-width: 240px;
  list-style: none;
  margin: 0; padding: 6px 0;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .15s var(--ease), transform .15s var(--ease), visibility 0s .15s;
  z-index: 5;
}
.primary-nav .menu-item.has-children:hover > .sub-menu,
.primary-nav .menu-item.has-children:focus-within > .sub-menu,
.primary-nav .menu-item.has-children > .menu-link[aria-expanded="true"] + .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity .15s var(--ease), transform .15s var(--ease);
}
.primary-nav .sub-menu .menu-link {
  display: block;
  padding: 9px 18px;
  font-size: .88rem;
  border-radius: 0;
}
.primary-nav .sub-menu .menu-link:hover { background: var(--blue-light); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none; border: 0; padding: 8px;
  cursor: pointer;
}
.nav-toggle__bar {
  display: block; width: 26px; height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) {
  .nav-toggle { display: block; width: 44px; height: 44px; padding: 10px; }
  .primary-nav {
    position: fixed;
    top: var(--header-h-mobile); left: 0; right: 0; bottom: 0;
    background: #fff;
    padding: 24px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .25s var(--ease);
    z-index: 99;
  }
  .primary-nav[data-open="true"] { transform: translateX(0); }
  .primary-nav .menu { flex-direction: column; gap: 0; }
  .primary-nav .menu-item { width: 100%; border-bottom: 1px solid var(--border-light); }
  .primary-nav .menu-link { width: 100%; padding: 16px 4px; font-size: 1rem; justify-content: space-between; min-height: 44px; }
  .primary-nav .sub-menu {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none;
    padding: 0 0 8px 16px;
    transition: none;
    display: none;
  }
  .primary-nav .menu-item.has-children > .menu-link[aria-expanded="true"] + .sub-menu { display: block; }
  .primary-nav .sub-menu .menu-link { padding: 12px 4px; }
  .site-header__top-contact { gap: 12px; font-size: .75rem; }
  .site-header__brand-img { height: 38px; }
  .site-header__brand-text { font-size: 1rem; }
  .site-header__cta { min-height: 44px; padding: 10px 22px; }
}

/* =================================================================
   HOMEPAGE HERO — family photo cropped to a cover band with text overlay.
   Matches the live Divi section: banner3.jpg (small baked-in P) sized cover
   in a ~2.256:1 band, heading + CTA clustered in the lower-middle.
   ================================================================= */

.hero--family {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--page-bg);
  aspect-ratio: 1900 / 842;   /* live hero band ratio ≈ 2.256 */
}
.hero--family__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.hero--family__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 24px;
  text-align: center;
  /* Shift the centered cluster down so the heading clears the baked-in P
     watermark and sits below it. translateY % is height-relative. */
  transform: translateY(24%);
  pointer-events: none;
}
.hero--family__overlay > * { pointer-events: auto; }

.hero--family__title {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--ink);
  font-size: clamp(1.6rem, 2.7vw, 3.1rem);
  line-height: 1.2;
  margin: 0;
  max-width: 40ch;   /* one line on desktop (live-site match), wraps on small screens */
  /* Subtle shadow for legibility on bright photo highlights */
  text-shadow: 0 1px 14px rgba(255,255,255,0.55);
}
/* CTA inherits .btn-pill — keep this hook only for hero-specific tuning */
.hero--family__cta { padding: 16px 40px; font-size: .82rem; }

@media (max-width: 720px) {
  /* Taller covered hero on phones so the title clears the baked-in P watermark. */
  .hero--family { aspect-ratio: auto; min-height: 70vh; overflow: hidden; }
  .hero--family__bg { object-position: 50% 40%; }
  .hero--family__overlay {
    padding-top: 0;
    padding-bottom: 14vh;
    justify-content: flex-end;
    gap: 18px;
  }
  .hero--family__title { max-width: 18ch; }
  .hero--family__cta { padding: 14px 30px; font-size: .75rem; min-height: 44px; }
}

/* =================================================================
   INTERIOR HERO — full-bleed dark navy with city skyline (live-site match)
   ================================================================= */

.hero-interior {
  position: relative;
  width: 100%;
  background-color: var(--navy-deep);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 110px 24px 140px;
  text-align: center;
  color: #fff;
}
.hero-interior__inner {
  max-width: 1000px;
  margin: 0 auto;
}
.hero-interior__eyebrow {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  font-weight: 600;
  margin-bottom: 14px;
}
.hero-interior__title {
  font-family: var(--font-serif);
  font-weight: 600;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 0;
}
.hero-interior__divider {
  width: clamp(120px, 30%, 360px);
  height: 1px;
  background: rgba(255,255,255,0.4);
  margin: 36px auto;
}
.hero-interior__sub {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: rgba(255,255,255,.9);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.55;
}

/* =================================================================
   2-COL LAYOUT (sidebar + main) — interior pages, homepage-below-hero
   ================================================================= */

.section--with-sidebar {
  padding: 56px 0 72px;
}
.layout-2col {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: flex-start;
}
.layout-2col__main {
  min-width: 0;
}
.layout-2col__main p,
.layout-2col__main .entry-content p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 1.4em;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
@media (max-width: 880px) {
  .layout-2col {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  /* On mobile, the welcome content is the priority — push the sidebar contact
     card below so users see the body first. */
  .layout-2col__main { order: 1; }
  .contact-card { order: 2; }
}

/* =================================================================
   CONTACT-CARD SIDEBAR
   ================================================================= */

.contact-card {
  position: sticky;
  top: 110px;
  padding: 8px;
  background: #f5f5f3;
  border: 1px solid var(--border-light);
}
.contact-card__photo {
  position: relative;
  margin-bottom: 0;
  overflow: hidden;
  background: #ccc;
}
/* The source photo ships with a baked-in decorative frame (blue side-bars +
   white double-line). Matching the live site: the photo is zoomed (origin biased
   high) so the blue side-bars and side frame are cropped away while the thin
   white top line stays just visible; hovering enlarges it a touch more. */
.contact-card__photo img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1.27);
  transform-origin: center 8%;
  transition: transform .5s var(--ease);
}
.contact-card__photo:hover img {
  transform: scale(1.33);
}
/* Black gradient shadow overlay, matching the live photo: clear over the face,
   darkening toward the bottom behind the social icons. Sits above the photo but
   below the icons (which carry the higher z-index below). */
.contact-card__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 38%, rgba(0,0,0,.30) 72%, rgba(0,0,0,.66) 100%);
}
.contact-card__social {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 4px;
}
.contact-card__social a {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(70, 70, 70, .82);
  color: #fff;
  border-radius: 0;
  transition: background .15s var(--ease);
}
.contact-card__social a:hover { background: var(--navy); }
.contact-card__list {
  list-style: none;
  margin: 18px 0 18px;
  padding: 0 8px;
  font-size: .85rem;
  color: var(--text);
}
.contact-card__list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  padding: 7px 0;
  margin: 0;
  line-height: 1.45;
}
/* Touch viewports: bigger tap target for phone / email links */
@media (max-width: 1100px) {
  .contact-card__list li { padding: 6px 0; align-items: center; }
  .contact-card__list a { display: block; padding: 14px 0; line-height: 1.3; min-height: 44px; }
}
.contact-card__icon {
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.contact-card__list a {
  color: var(--text);
  text-decoration: none;
}
.contact-card__list a:hover { color: var(--navy); }

@media (max-width: 880px) {
  .contact-card { position: static; max-width: 380px; margin: 0 auto; }
}

/* =================================================================
   PILL BUTTONS
   ================================================================= */

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #fff !important;
  padding: 14px 32px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), letter-spacing .2s var(--ease);
}
.btn-pill:hover {
  background: var(--gold);
  border-color: var(--ink);
  color: #fff !important;
  letter-spacing: .16em;
}
.btn-pill--full { width: 100%; }
.btn-pill--small {
  padding: 10px 22px;
  font-size: .7rem;
}
/* Touch viewports: enforce 44x44 minimum tap target (Apple HIG / WCAG 2.5.5) */
@media (max-width: 1100px) {
  .btn-pill,
  .btn-pill--small {
    min-height: 44px;
  }
}
.contact-card > .btn-pill {
  display: flex;
  text-align: center;
  width: calc(100% - 16px);
  margin: 4px 8px 8px;
}

/* =================================================================
   SECTION HEADINGS — dashed (matches "Angelo Politakis" treatment)
   ================================================================= */

.dashed-heading {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--navy);
  margin: 0 0 1em;
  display: flex;
  align-items: center;
  gap: 18px;
}
.dashed-heading > span {
  white-space: nowrap;
}
.dashed-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border) 0%, transparent 100%);
  background-size: 8px 1px;
  background-image: repeating-linear-gradient(90deg, var(--border) 0 4px, transparent 4px 8px);
}

.centered-heading {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--navy);
  margin: 2.5em 0 1.5em;
  font-weight: 600;
}

/* "Welcome to Politakis Law" — heading with a subtle trailing rule */
.rule-heading {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--navy);
  font-size: clamp(1.7rem, 2.6vw, 2.1rem);
  margin: 0 0 1em;
}
.rule-heading > span { white-space: nowrap; line-height: 1.1; }
/* Dashed trailing rule, top-aligned to the heading — matches live site */
.rule-heading::after {
  content: "";
  flex: 1;
  margin-top: .5em;
  height: 1px;
  background-image: repeating-linear-gradient(90deg, var(--border) 0 4px, transparent 4px 8px);
}

/* =================================================================
   SERVICE CARDS (gold/olive line icons — homepage + bio page)
   ================================================================= */

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 32px 0 40px;
}
@media (max-width: 720px) {
  .service-cards { grid-template-columns: 1fr; }
}
.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 44px 20px 32px;
  background: #fff;
  border: 1px solid #e3dcc6;
  text-decoration: none;
  color: inherit;
  min-height: 200px;
  transition: border-color .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease);
}
.service-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: inherit;
}
.service-card__icon {
  color: var(--gold);
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.service-card__title {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--navy);
  margin: 0;
  font-weight: 600;
  letter-spacing: .01em;
}

/* Privacy CTA at the foot of the bio column — right-aligned per screenshot.
   Selector lifted to .layout-2col__main p.bio-privacy-cta so it outweighs
   the .layout-2col__main p { text-align: justify } rule above. */
.layout-2col__main p.bio-privacy-cta {
  margin: 2.5em 0 0;
  text-align: right;
}

/* =================================================================
   LEGACY HERO (interior pages — kept for templates not yet migrated)
   ================================================================= */

.hero {
  position: relative;
  background: linear-gradient(180deg, var(--page-bg) 0%, #fff 100%);
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--border-light);
}
.hero--home {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: #fff;
  padding: 96px 0 88px;
}
.hero--home .hero__title,
.hero--home .hero__sub,
.hero--home .eyebrow { color: #fff; }
.hero--home .eyebrow { color: rgba(255,255,255,.85); }
.hero--home .hero__sub { color: rgba(255,255,255,.92); }

.hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.hero__title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  margin-bottom: .4em;
  max-width: 22ch;
}
.hero__sub {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  color: var(--text);
  max-width: 56ch;
  margin: 0 0 28px;
  line-height: 1.55;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* =================================================================
   SECTION SPACING
   ================================================================= */

.section {
  padding: 72px 0;
}
.section--tight { padding: 48px 0; }
.section--alt {
  background: var(--page-bg);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.section__head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}
.section__head .eyebrow { color: var(--blue); }
.section__head h2 { margin-bottom: .3em; }
.section__lead {
  font-size: 1.05rem;
  color: var(--text);
}

/* =================================================================
   PRACTICE CARDS / GRID
   ================================================================= */

.grid {
  display: grid;
  gap: 24px;
}
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.practice-card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy);
  padding: 32px 28px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
  display: flex;
  flex-direction: column;
}
.practice-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--blue);
  color: inherit;
}
.practice-card__icon {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.practice-card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--navy);
  margin: 0 0 .5em;
}
.practice-card__desc {
  font-size: .95rem;
  color: var(--text);
  margin: 0 0 1em;
  flex-grow: 1;
}
.practice-card__link {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
}

/* Service grid (sub-services on practice pages) */
.service-grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.service-grid li {
  background: #fff;
  border: 1px solid var(--border);
  padding: 14px 18px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-strong);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--blue);
  margin: 0;
}

/* =================================================================
   ESTATE PLANNING PROCESS PAGE (/our-estate-planning-process/)
   ================================================================= */

/* Muted grey serif display titles — hero, intro, testimonial, CTA.
   Live site renders these in Playfair Display grey (#747474). */
.display-title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--heading-muted);
  line-height: 1.15;
}
.display-title__accent { color: var(--blue); }

/* --- Hero: covered duotone photo + gold-icon feature links --- */
.proc-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy-deep);
  color: #fff;
}
.proc-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}
.proc-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(13,26,51,.74) 0%, rgba(13,26,51,.58) 52%, rgba(13,26,51,.82) 100%);
}
.proc-hero__inner {
  padding: 84px 24px 68px;
  text-align: center;
}
.proc-hero__title { margin: 0 0 38px; }
.proc-hero__title-sm,
.proc-hero__title-lg { display: block; font-family: var(--font-serif); font-weight: 400; }
.proc-hero__title-sm {
  color: rgba(255,255,255,.6);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.1;
}
.proc-hero__title-lg {
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.1;
  margin-top: .08em;
}
.proc-hero__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 940px;
  margin: 0 auto;
  padding-top: 34px;
  border-top: 1px solid rgba(255,255,255,.22);
}
.proc-feature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-decoration: none;
  color: #fff;
  transition: transform .15s var(--ease);
}
.proc-feature:hover { color: #fff; transform: translateY(-2px); }
.proc-feature:hover .proc-feature__bottom { color: #b9c6e0; }
.proc-feature__icon { flex-shrink: 0; display: inline-flex; color: var(--gold); }
.proc-feature__text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.proc-feature__top { font-size: .82rem; color: rgba(255,255,255,.9); }
.proc-feature__bottom {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: #8ea0c4;
  transition: color .15s var(--ease);
}
@media (max-width: 760px) {
  .proc-hero__inner { padding: 56px 24px 48px; }
  .proc-hero__features { grid-template-columns: 1fr; gap: 22px; max-width: 320px; }
  .proc-feature { justify-content: flex-start; }
}

/* --- Intro: muted display heading (left) / body copy (right) --- */
.proc-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
}
.proc-intro__title {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  text-align: center;
  margin: 0 0 1em;
}
.proc-intro__sub {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
}
.proc-intro__sub-rule {
  flex: 0 0 56px;
  height: 1px;
  background-image: repeating-linear-gradient(90deg, var(--border) 0 5px, transparent 5px 10px);
}
.proc-intro__sub-text {
  flex: 1;
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--blue);
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  line-height: 1.3;
}
.proc-intro__body p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  margin: 0 0 1.2em;
  text-align: justify;
  hyphens: auto;
}
.proc-intro__expect {
  text-align: left;
  color: var(--text-strong);
  font-weight: 600;
  margin: 0;
}
@media (max-width: 880px) {
  .proc-intro__grid { grid-template-columns: 1fr; gap: 28px; }
}

/* --- Step cards: slate header box + gold icon, body below --- */
.proc-steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: start;
}
.proc-step__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--slate);
  padding: 24px 26px;
  min-height: 116px;
}
.proc-step__icon { flex-shrink: 0; display: inline-flex; color: var(--gold); }
.proc-step__title {
  font-family: var(--font-serif);
  font-weight: 600;
  color: #f2eede;
  font-size: clamp(1.4rem, 2.2vw, 1.7rem);
  line-height: 1.05;
  margin: 0;
  text-align: right;
}
.proc-step__body { padding-top: 22px; }
.proc-step__body p {
  font-size: .98rem;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 1.2em;
  text-align: justify;
  hyphens: auto;
}
.proc-step__body p:last-child { margin-bottom: 0; }
.proc-step__plain-link { color: inherit; }
.proc-step__plain-link:hover { color: var(--blue); text-decoration: underline; }
@media (max-width: 860px) {
  .proc-steps__grid { grid-template-columns: 1fr; gap: 36px; max-width: 560px; margin: 0 auto; }
}

/* --- Testimonial band: client photo + navy gradient + quote --- */
.testimonial { padding: 0; }
.testimonial__media {
  position: relative;
  background-color: var(--navy-deep);
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.testimonial__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
.testimonial__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(13,26,51,.94) 0%, rgba(13,26,51,.85) 34%, rgba(13,26,51,.45) 56%, rgba(13,26,51,0) 78%);
}
.testimonial__panel {
  position: relative;
  z-index: 2;
  width: 48%;
  min-width: 320px;
  padding: 48px 56px;
  color: #fff;
  text-align: center;
}
.testimonial__rule {
  display: block;
  height: 1px;
  margin-bottom: 26px;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 6px, transparent 6px 12px);
}
.testimonial__eyebrow { color: #8ea0c4; }
.testimonial__title {
  color: rgba(255,255,255,.5);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 .4em;
}
.testimonial__quote { margin: 0; position: relative; }
.testimonial__mark {
  position: absolute;
  left: -32px;
  top: 22px;
  font-family: var(--font-serif);
  font-size: 5rem;
  line-height: 0;
  color: #5d7099;
}
.testimonial__text {
  margin: 0;
  font-style: italic;
  font-weight: 600;
  color: rgba(255,255,255,.92);
  font-size: 1.02rem;
  line-height: 1.7;
  text-align: justify;
}
@media (max-width: 880px) {
  .testimonial__media { min-height: 0; }
  .testimonial__img { object-position: center 18%; }
  .testimonial__media::before { background: linear-gradient(180deg, rgba(13,26,51,.84), rgba(13,26,51,.92)); }
  .testimonial__panel { width: 100%; min-width: 0; padding: 64px 28px; }
  .testimonial__mark { position: static; display: block; margin-bottom: 8px; }
}

/* --- Dark "Get A Free Case Evaluation" CTA box --- */
.proc-cta-section { padding: 0; background: #fff; }
.proc-cta {
  background: var(--cta-navy);
  padding: 62px 24px 70px;
  text-align: center;
}
.proc-cta__title {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  margin: 0 0 .3em;
}
.proc-cta__sub {
  color: rgba(255,255,255,.62);
  font-size: 1rem;
  margin: 0 0 30px;
}
.proc-cta__btn {
  display: inline-block;
  background: #2c3e63;
  color: #fff;
  padding: 18px 36px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .15s var(--ease);
}
.proc-cta__btn:hover { background: var(--gold); color: #fff; letter-spacing: .16em; }

/* --- Right-aligned privacy pill --- */
.proc-privacy { padding: 44px 0 80px; background: #fff; }
.proc-privacy .container { display: flex; justify-content: flex-end; }
@media (max-width: 600px) {
  .proc-privacy .container { justify-content: center; }
}

/* =================================================================
   SCHEDULE APPOINTMENT PAGE (/schedule-appointment/)
   ================================================================= */

/* --- Banner hero: dark leather-journal photo + centered gradient title --- */
.sched-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy-deep);
  min-height: clamp(240px, 20vw, 300px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sched-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}
.sched-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10,16,28,.58) 0%, rgba(10,16,28,.66) 100%);
}
.sched-hero__inner {
  width: 100%;
  padding: 40px 24px;
  text-align: center;
}
.sched-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.15;
  background: linear-gradient(95deg, #a99a63 0%, #c4bda9 46%, #9095a0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.38));
}

/* --- Calendly inline widget band --- */
.sched-cal { background: #fff; }
.sched-cal .calendly-inline-widget {
  max-width: 1000px;
  margin: 0 auto;
}

/* =================================================================
   ESTATE PLANNING SUB-PAGES (/revocable-living-trusts/, etc.)
   Shared layout — see template-parts/ep-subpage.php
   ================================================================= */

/* --- Hero: dark documents banner + gradient title + subtitle --- */
.ep-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy-deep);
  min-height: clamp(220px, 18vw, 280px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ep-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}
.ep-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10,16,28,.28) 0%, rgba(10,16,28,.40) 100%);
}
.ep-hero__inner { width: 100%; padding: 44px 24px; text-align: center; }
.ep-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  line-height: 1.15;
  color: #fff; /* live hero title is plain white serif (no gradient) */
}
.ep-hero__sub {
  margin: 0;
  font-family: var(--font-sans);
  font-size: .95rem;
  color: rgba(255,255,255,.82);
}

/* --- Intro: centered blue heading + justified body (matches live Divi) --- */
.ep-intro { background: #fff; text-align: center; }
.ep-intro__heading {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin: 0 0 1em;
  color: #51648e; /* live intro-heading blue-slate (overrides .display-title grey) */
}
.ep-intro__body {
  max-width: 1000px;
  margin: 0 auto 1.1em;
  font-size: 1rem;
  color: #464646; /* live body ink */
  line-height: 1.7;
  text-align: justify; /* live paragraphs are justified, not centered */
}
/* secondary (mid-body) sub-heading — blue, a touch smaller than the main heading */
.ep-intro__subheading {
  color: #51648e;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem); /* x-large default */
  line-height: 1.2;
  margin: 1.2em 0 .7em;
}
.ep-intro__subheading--xxl { font-size: clamp(1.8rem, 3.6vw, 2.6rem); } /* matches main heading size */
/* intro bullet list (e.g. "Other Benefits of a Retirement Trust") */
.ep-intro__list {
  max-width: 1000px;
  margin: 0 auto 1.1em;
  padding-left: 1.2em;
  text-align: left;
  color: #464646;
  line-height: 1.7;
}
.ep-intro__list li { margin-bottom: .4em; }
/* image + text row (alternating left/right), matches the live block layout */
.ep-row {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1000px;
  margin: 2.2em auto;
  text-align: left;
}
.ep-row--imgright { flex-direction: row-reverse; }
.ep-row__media { flex: 0 0 42%; }
.ep-row__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}
.ep-row__text { flex: 1 1 auto; }
.ep-row__heading {
  color: #51648e;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 .6em;
}
.ep-row__heading--xl  { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.ep-row__heading--xxl { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.ep-row__body { color: #464646; line-height: 1.7; margin: 0 0 1em; text-align: justify; }
.ep-row__list { color: #464646; line-height: 1.7; padding-left: 1.2em; margin: .4em 0 0; }
.ep-row__list li { margin-bottom: .35em; }
@media (max-width: 760px) {
  .ep-row, .ep-row--imgright { flex-direction: column; }
  .ep-row__media { flex-basis: auto; width: 100%; max-width: 420px; }
}
/* static two-column bullet comparison (open) */
.ep-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  max-width: 1000px;
  margin: 1.6em auto;
  text-align: left;
}
.ep-cols__title {
  color: #51648e;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  text-align: center;
  margin: 0 0 .8em;
}
.ep-cols__list { margin: 0; padding-left: 1.2em; color: #464646; line-height: 1.7; font-size: .95rem; }
.ep-cols__list li { margin-bottom: .4em; }
@media (max-width: 760px) { .ep-cols { grid-template-columns: 1fr; gap: 24px; } }
/* term/definition glossary */
.ep-glossary { max-width: 1000px; margin: 1.6em auto; }
.ep-glossary__grid { display: grid; gap: 48px; text-align: left; }
.ep-glossary__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ep-glossary__grid--1 { grid-template-columns: 1fr; }
.ep-glossary__colhead {
  color: #51648e;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  text-align: center;
  margin: 0 0 .6em;
}
.ep-term { margin-bottom: 1em; }
.ep-term__t {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  color: var(--ink);
  margin: 0 0 .1em;
  line-height: 1.15;
}
.ep-term__d { color: #464646; font-size: .92rem; line-height: 1.6; margin: 0; }
@media (max-width: 760px) { .ep-glossary__grid--2 { grid-template-columns: 1fr; gap: 24px; } }
.ep-intro__vs { text-align: center; font-style: italic; margin: .4em auto; }
.ep-lead { color: #51648e; }

/* --- Two-column panels --- */
.ep-panels { background: #fff; }
.ep-panels__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
@media (max-width: 760px) { .ep-panels__grid { grid-template-columns: 1fr; } }

/* --- Accordion (shared by panels + terms): blue closed, gold open --- */
.ep-acc {
  border: 1px solid var(--border);
  background: #fff;
}
.ep-terms__list .ep-acc { margin-bottom: 16px; }
.ep-acc__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
}
.ep-acc__summary::-webkit-details-marker { display: none; }
.ep-acc__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: #51648e; /* live brand blue-slate (closed state) */
  transition: color .15s var(--ease);
}
.ep-acc__chevron {
  flex-shrink: 0;
  color: #51648e;
  transition: transform .25s var(--ease), color .15s var(--ease);
}
.ep-acc__summary:hover .ep-acc__title,
.ep-acc__summary:hover .ep-acc__chevron { color: var(--gold); }
.ep-acc[open] .ep-acc__title,
.ep-acc[open] .ep-acc__chevron { color: var(--gold); }
.ep-acc[open] .ep-acc__chevron { transform: rotate(180deg); }
.ep-acc__body { padding: 0; }
.ep-acc__inner { padding: 2px 22px 22px; }
/* JS-enhanced smooth expand/collapse (degrades to instant native toggle
   without JS or under prefers-reduced-motion). The body height is driven
   in px by main.js; padding lives on __inner so height:0 clips cleanly. */
.ep-acc.js-acc .ep-acc__body {
  height: 0;
  overflow: hidden;
  transition: height .38s var(--ease);
}
.ep-acc.js-acc[open] .ep-acc__body { height: auto; }
@media (prefers-reduced-motion: reduce) {
  .ep-acc.js-acc .ep-acc__body { transition: none; }
}
.ep-acc__list {
  margin: 0;
  padding-left: 1.1em;
  font-size: .92rem;
  color: var(--text);
  line-height: 1.7;
}
.ep-acc__list li { margin-bottom: .35em; }
.ep-acc__body p { margin: 0; font-size: .95rem; color: var(--text); line-height: 1.7; }

/* --- Terms section --- */
.ep-terms { background: #fff; }
.ep-terms__heading {
  text-align: center;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin: 0 0 1.2em;
}
.ep-terms__list { max-width: 1000px; margin: 0 auto; }

/* =================================================================
   FAQ ACCORDION
   ================================================================= */

.faq-section { background: #fff; }
.faq-heading {
  text-align: center;
  font-family: var(--font-display);
  color: var(--heading-muted);
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  margin: 0 0 1.05em;
}

.faq { max-width: 1080px; margin: 0 auto; }
.faq__item {
  background: #ededed;
  margin-bottom: 14px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq__summary {
  cursor: pointer;
  list-style: none;
  display: block;
  padding: 22px 64px;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  color: var(--navy);
  font-weight: 600;
  text-align: center;
  position: relative;
  user-select: none;
  transition: color .15s var(--ease);
}
.faq__summary::-webkit-details-marker { display: none; }
.faq__summary::after {
  content: "";
  position: absolute;
  right: 28px; top: 50%;
  width: 11px; height: 11px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-60%) rotate(45deg);
  transition: transform .2s var(--ease);
}
.faq__summary:hover { color: var(--gold); }
details[open] .faq__summary { color: var(--gold); }
details[open] .faq__summary::after { transform: translateY(-30%) rotate(-135deg); }

.faq__body {
  padding: 4px 40px 32px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.75;
  text-align: left;
}
.faq__body p { margin: 0 0 1.1em; }
.faq__body p:last-child { margin-bottom: 0; }
.faq__list { margin: 0; padding-left: 1.4em; }
.faq__list li { margin: 0 0 .5em; }

@media (max-width: 600px) {
  .faq__summary { padding: 18px 46px 18px 20px; text-align: left; }
  .faq__summary::after { right: 18px; }
  .faq__body { padding: 4px 20px 26px; }
}

/* =================================================================
   CTA STRIP
   ================================================================= */

.cta-strip {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: #fff;
  padding: 72px 0;
  text-align: center;
}
.cta-strip h2 {
  color: #fff;
  margin-bottom: .4em;
}
.cta-strip p {
  color: rgba(255,255,255,.92);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto 28px;
}

/* =================================================================
   WHY CHOOSE US — own full-width section with centered "~Why Choose Us~"
   heading, image left, body + privacy-policy pill right
   ================================================================= */

.why-choose-us-section {
  padding: 24px 0 96px;
  background: #fff;
}
.why-choose-us-section__heading {
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  color: var(--navy);
  margin: 0 0 56px;
}
.why-choose-us-section__tilde {
  display: inline-block;
  margin: 0 .35em;
  font-weight: 400;
  color: var(--navy);
}

.why-choose-us {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr);
  gap: 64px;
  align-items: start;
}
.why-choose-us__photo {
  padding: 6px;
  border: 1px solid var(--navy);
  background: #fff;
}
.why-choose-us__photo img {
  display: block;
  width: 100%;
  height: auto;
}
.why-choose-us__photo-fallback {
  aspect-ratio: 16 / 10;
  background: var(--navy-deep);
}
.why-choose-us__body p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  margin: 0 0 1.6em;
  text-align: justify;
  hyphens: auto;
}
.why-choose-us__action {
  display: flex;
  justify-content: flex-end;
  margin-top: 56px;
}
@media (max-width: 880px) {
  .why-choose-us-section { padding: 16px 0 64px; }
  .why-choose-us {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .why-choose-us__action { justify-content: center; margin-top: 24px; }
}

/* =================================================================
   ATTORNEY / BIO
   ================================================================= */

.attorney {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}
.attorney__photo-wrap {
  position: sticky; top: 110px;
}
.attorney__photo {
  border: 1px solid var(--border);
  border-bottom: 4px solid var(--navy);
}
.attorney__name {
  font-size: 2rem;
  margin-bottom: .2em;
}
.attorney__title {
  font-family: var(--font-sans);
  font-size: .9rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
  margin: 0 0 1.5em;
}
.attorney__placeholder {
  aspect-ratio: 4 / 5;
  background: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  font-size: 4rem;
  font-family: var(--font-serif);
}
@media (max-width: 760px) {
  .attorney { grid-template-columns: 1fr; }
  .attorney__photo-wrap { position: static; max-width: 320px; margin: 0 auto; }
}

/* =================================================================
   LOCATIONS
   ================================================================= */

.locations {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.location-card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy);
  overflow: hidden;
}
.location-card__body { padding: 28px; }
.location-card__city {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--navy);
  margin: 0 0 .4em;
}
.location-card__address {
  font-style: normal;
  font-size: 1rem;
  color: var(--text);
  margin: 0 0 1.2em;
  line-height: 1.65;
}
.location-card__map {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

/* =================================================================
   CONTACT FORM
   ================================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }

.contact-info { font-size: 1rem; }
.contact-info h3 {
  font-size: 1.05rem;
  margin: 1.4em 0 .3em;
  color: var(--navy);
}
.contact-info h3:first-child { margin-top: 0; }
.contact-info address { font-style: normal; line-height: 1.7; }

.form { background: #fff; border: 1px solid var(--border); padding: 36px; border-radius: var(--radius-sm); }
.form__row { display: grid; gap: 18px; margin-bottom: 18px; }
.form__row.cols-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 580px) { .form__row.cols-2 { grid-template-columns: 1fr; } }
.form__field { display: flex; flex-direction: column; gap: 6px; }
.form__field label {
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--navy);
}
.form__field input,
.form__field textarea {
  background: #fff;
  border: 1.5px solid var(--border);
  padding: 11px 14px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-strong);
  border-radius: var(--radius-sm);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.form__field input:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(44, 95, 158, .15);
}
.form__field textarea { min-height: 140px; resize: vertical; }
.form__honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; height: 0; width: 0; overflow: hidden; }
.form__notice { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: .95rem; }
.form__notice--ok { background: #e6f4ed; color: var(--success); border: 1px solid #bfe3d0; }
.form__notice--err { background: #fbe8e7; color: var(--error); border: 1px solid #f5c8c5; }

/* =================================================================
   POSTS / BLOG
   ================================================================= */

.post-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.post-card {
  background: #fff;
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  text-decoration: none;
  color: inherit;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: inherit; }
.post-card__img { aspect-ratio: 16 / 9; object-fit: cover; }
.post-card__img-fallback { aspect-ratio: 16 / 9; background: var(--blue-light); }
.post-card__body { padding: 24px; flex-grow: 1; display: flex; flex-direction: column; }
.post-card__meta {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: .8em;
}
.post-card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--navy);
  margin: 0 0 .4em;
}
.post-card__excerpt { font-size: .95rem; color: var(--text); flex-grow: 1; }
.post-card__more {
  margin-top: 1em;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
}

.single-post { max-width: 760px; margin: 0 auto; }
.single-post__meta {
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 1em;
}
.single-post__hero-img { width: 100%; max-height: 460px; object-fit: cover; margin-bottom: 32px; }
.single-post .entry-content p { font-size: 1.05rem; line-height: 1.75; }
.single-post .entry-content h2,
.single-post .entry-content h3 { margin-top: 1.6em; }
.single-post .entry-content img { margin: 1.6em auto; }

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 56px;
}
.pagination .page-numbers {
  padding: 8px 14px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* =================================================================
   FOOTER — slate-blue 4-col panel: brand / contact / services / newsletter
   ================================================================= */

.site-footer {
  background: var(--slate);
  color: rgba(255, 255, 255, .92);
  padding: 72px 0 64px;
  font-size: .95rem;
}
.site-footer a {
  color: rgba(255, 255, 255, .9);
  text-decoration: none;
}
.site-footer a:hover { color: #fff; }
.site-footer__grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 1.05fr 1fr 1fr 1.1fr;
  align-items: start;
}
@media (max-width: 980px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .site-footer__grid { grid-template-columns: 1fr; gap: 36px; } }

.site-footer__col--brand .site-footer__logo {
  height: 40px;
  width: auto;
  margin-bottom: 22px;
  filter: brightness(0) invert(1);
}
.site-footer__col--brand .site-footer__logo-text {
  font-family: var(--font-serif);
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 14px;
}
.site-footer__tagline {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: .95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .92);
  margin: 0;
  max-width: 28ch;
}

.site-footer__heading {
  font-family: var(--font-serif);
  font-weight: 600;
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: .01em;
  margin: 0 0 1.4em;
}

.site-footer__address {
  font-style: normal;
  line-height: 1.7;
  margin: 0 0 1em;
}
.site-footer__address strong { color: #fff; font-weight: 600; }
.site-footer__phone { margin: 0; line-height: 1.7; }

.site-footer__services {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer__services li {
  margin: 0 0 .65em;
}
.site-footer__services a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .85);
  font-size: .95rem;
}
.site-footer__services a::before {
  content: "›";
  display: inline-block;
  font-size: 1.05rem;
  line-height: 1;
  color: rgba(255, 255, 255, .65);
  transition: transform .15s var(--ease), color .15s var(--ease);
}
.site-footer__services a:hover { color: #fff; }
.site-footer__services a:hover::before { color: #fff; transform: translateX(2px); }

/* Newsletter */
.newsletter { max-width: 320px; }
.newsletter__field {
  position: relative;
  background: #fff;
  border-radius: 4px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}
.newsletter__icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}
.newsletter__field input[type="email"] {
  flex: 1;
  padding: 12px 14px 12px 0;
  border: 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: .95rem;
  color: var(--text-strong);
  border-radius: 4px;
  min-width: 0;
}
.newsletter__field input[type="email"]:focus { outline: none; }
.newsletter__field input[type="email"]::placeholder { color: var(--text-muted); }
.newsletter__submit {
  position: relative;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--slate-dark);
  color: #fff;
  border: 0;
  padding: 14px 44px;
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: background .15s var(--ease);
}
.newsletter__submit svg {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}
.newsletter__submit:hover { background: #0f1d36; }
.newsletter__submit:hover svg { transform: translateY(-50%) translateX(3px); }
.newsletter__msg {
  margin: 12px 0 0;
  font-size: .82rem;
  color: rgba(255, 255, 255, .92);
}

/* =================================================================
   UTILITIES
   ================================================================= */

.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* =================================================================
   ESTATE PLANNING PAGE
   ================================================================= */

/* Hero — house photo + navy overlay, centered content */
.pa-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy-deep);
  color: #fff;
}
.pa-hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  z-index: -2;
}
.pa-hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(13,26,51,.62) 0%, rgba(13,26,51,.48) 50%, rgba(13,26,51,.66) 100%);
}
.pa-hero__inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 116px 24px 126px;
  text-align: center;
}
.pa-hero__title {
  font-family: var(--font-serif);
  font-weight: 600;
  color: #fff;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  margin: 0 0 .35em;
}
.pa-hero__sub {
  color: rgba(255,255,255,.9);
  font-size: clamp(.95rem, 1.5vw, 1.1rem);
  margin: 0 0 1.9em;
}
.pa-hero__btn {
  display: inline-block;
  background: rgba(20,32,58,.6);
  color: #fff;
  padding: 16px 30px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .15s var(--ease);
}
.pa-hero__btn:hover { background: var(--gold); color: #fff; }

/* Intro — ruled heading + paragraph */
.pa-intro__title {
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  color: var(--navy);
  font-weight: 600;
  margin: 0 0 1em;
}
.pa-intro__title-text { flex: 0 0 auto; }
.pa-intro__rule { flex: 1 1 auto; height: 1px; background: var(--border); }
.pa-intro__body { color: var(--text); line-height: 1.8; }

/* Centered heading variant (Elder Law) */
.pa-intro--center { text-align: center; }
.pa-intro--center .pa-intro__title { justify-content: center; }
.pa-intro--center .pa-intro__rule { display: none; }
.pa-split--ctitle .pa-split__title { text-align: center; }
.pa-split__media--bordered img { border: 1px solid rgba(110,125,166,.5); }

/* Privacy / legal content page */
.pp-page { background: #fff; }
.pp-head { text-align: center; padding-top: 8px; }
.pp-logo { width: 250px; max-width: 72%; height: auto; margin: 0 auto 22px; }
.pp-title {
  font-family: var(--font-serif);
  font-weight: 700;
  color: #141414;
  font-size: clamp(2rem, 4.2vw, 3rem);
  text-align: center;
  margin: 0 0 1.4em;
}
.pp-body { color: var(--text); }
.pp-body h2 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 2em 0 .7em;
  line-height: 1.35;
}
.pp-body p { margin: 0 0 1.1em; line-height: 1.75; }
.pp-body ul { padding-left: 1.3em; margin: 0 0 1.3em; }
.pp-body li { margin: 0 0 .7em; line-height: 1.7; }
.pp-body .pp-addr { margin: 0 0 .35em; }
.pa-center-heading {
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--navy);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 1.5em;
}

/* Featured tiles — row of 2 then row of 3; label slides up + Read More on hover */
.ep-featured__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.ep-tile {
  position: relative;
  grid-column: span 2;            /* second row: three across */
  aspect-ratio: 3 / 2;
  overflow: hidden;
  display: block;
  color: #fff;
  isolation: isolate;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.ep-tile--wide { grid-column: span 3; }   /* first row: two across */
.ep-tile__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.ep-tile__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(13,26,51,.10) 0%, rgba(13,26,51,.20) 55%, rgba(13,26,51,.58) 100%);
}
.ep-tile__content {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .25s var(--ease);
}
.ep-tile__label {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.15;
}
.ep-tile__more {
  font-size: .92rem;
  color: rgba(255,255,255,.92);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.ep-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(13,26,51,.38);
  color: #fff;
}
.ep-tile:hover .ep-tile__content { transform: translateY(-12px); }
.ep-tile:hover .ep-tile__more { opacity: 1; transform: translateY(0); }

/* Other Services Offered — 4 cards then 5 cards; lift + shadow on hover */
.ep-other__heading {
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--navy);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 1.5em;
}
.ep-other__grid {
  display: grid;
  gap: 34px 26px;
}
.ep-other__grid + .ep-other__grid { margin-top: 40px; }
.ep-other__grid--4 { grid-template-columns: repeat(4, 1fr); }
.ep-other__grid--5 { grid-template-columns: repeat(5, 1fr); }
.ep-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--navy);
  border-radius: var(--radius-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.ep-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius-sm);
}
.ep-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ep-card__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--navy);
  margin-top: 16px;
  line-height: 1.3;
}
.ep-card__more {
  font-size: .8rem;
  letter-spacing: .06em;
  color: var(--blue);
  margin-top: 10px;
  transition: color .15s var(--ease);
}
.ep-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(13,26,51,.16);
  color: var(--navy);
}
.ep-card:hover .ep-card__more { color: var(--navy); }

/* Alternating image / copy splits */
.pa-split__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.pa-split__title {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--navy);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin: 0 0 .8em;
}
.pa-split__body p { color: var(--text); line-height: 1.8; margin: 0 0 1.1em; }
.pa-split__body p:last-child { margin-bottom: 0; }
.pa-split__body ul { margin: 0; padding-left: 1.2em; color: var(--text); line-height: 1.7; }
.pa-split__body li { margin: 0 0 .55em; }
.pa-split__body li:last-child { margin-bottom: 0; }
/* Split images ship with their decorative frame baked into the artwork. */
.pa-split__media { position: relative; text-align: center; }
.pa-split__media img { max-width: 100%; height: auto; display: inline-block; }

/* Closing — centered block */
.pa-closing { text-align: center; }
.pa-closing__title {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--navy);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  margin: 0 0 .9em;
}
.pa-closing__body { color: var(--text); line-height: 1.85; }

@media (max-width: 900px) {
  .ep-other__grid--4, .ep-other__grid--5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .pa-split__grid { grid-template-columns: 1fr; gap: 30px; }
  .pa-split--reverse .pa-split__body { order: 2; }
  .pa-split--reverse .pa-split__media { order: 1; }
}
@media (max-width: 760px) {
  .pa-hero__inner { padding: 84px 24px 92px; }
  .ep-featured__grid { grid-template-columns: 1fr; }
  .ep-tile, .ep-tile--wide { grid-column: auto; }
  .ep-tile__more { opacity: 1; transform: none; }  /* no hover on touch */
}
@media (max-width: 520px) {
  .ep-other__grid--4, .ep-other__grid--5 { grid-template-columns: 1fr; }
}

/* =================================================================
   PRINT
   ================================================================= */

@media print {
  .site-header, .site-footer, .cta-strip, .nav-toggle { display: none; }
  body { color: #000; background: #fff; }
}
