:root {
  --navy: #0b2d63;
  --navy-deep: #071f45;
  --gold: #c8a25a;
  --gold-soft: #e8d7b2;
  --cream: #f7f5f0;
  --cream-deep: #efe9dc;
  --text: #1f2937;
  --muted: #5d6674;
  --white: #ffffff;
  --line: rgba(11, 45, 99, 0.14);
  --shadow: 0 24px 70px rgba(11, 45, 99, 0.13);
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", "Open Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

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

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 0.98;
}

h1 {
  max-width: 780px;
  font-size: clamp(3.25rem, 7vw, 6.8rem);
}

h2 {
  font-size: clamp(2.3rem, 4vw, 4.7rem);
}

h3 {
  font-size: clamp(1.55rem, 2vw, 2rem);
}

ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

li {
  position: relative;
  margin: 0.55rem 0;
  padding-left: 1.35rem;
  color: var(--muted);
}

li::before {
  content: "";
  position: absolute;
  top: 0.72rem;
  left: 0;
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 50%;
  background: var(--gold);
}

.container {
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
}

.narrow {
  width: min(100% - 40px, 900px);
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 1000;
  top: 16px;
  left: 16px;
  width: auto;
  height: auto;
  padding: 0.7rem 1rem;
  clip: auto;
  background: var(--navy);
  color: var(--white);
}

.site-header {
  position: relative;
  z-index: 100;
  background: rgba(247, 245, 240, 0.96);
  border-bottom: 1px solid rgba(200, 162, 90, 0.3);
  backdrop-filter: blur(18px);
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "left brand right";
  height: 90px;
  align-items: center;
}

.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
}

/* Clips black padding inside pta.png so only the text shows */
.brand-logo-wrap {
  display: flex;
  align-items: center;
  height: 72px;
  overflow: hidden;
}

.brand-logo {
  height: 120px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 0;
}

/* nav-menu is invisible to the grid — its children participate directly */
.nav-menu {
  display: contents;
}

.nav-left {
  grid-area: left;
  display: flex;
  align-items: center;
  gap: 2rem;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-right {
  grid-area: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nav-left a {
  position: relative;
  padding: 0.4rem 0;
  color: var(--navy);
  transition: color 150ms ease;
}

.nav-left a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 200ms ease;
}

.nav-left a:hover::after,
.nav-left a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-left a[aria-current="page"] {
  color: var(--navy);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  border-radius: 4px;
  border: 1.5px solid var(--gold);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.nav-cta:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 0;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 10;
}

/* Three clean lines */
.nav-toggle span:not(.sr-only) {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: opacity 150ms ease, transform 200ms ease;
}

/* Animate to X when open */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(247, 245, 240, 0.96), rgba(255, 255, 255, 0.86)),
    radial-gradient(circle at 78% 28%, rgba(200, 162, 90, 0.2), transparent 34%);
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(11, 45, 99, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 45, 99, 0.055) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, transparent, black 18%, black 82%, transparent);
}

.hero-grid {
  position: relative;
  display: grid;
  min-height: 100vh;
  align-items: center;
  justify-items: center;
  text-align: center;
  padding: 5.2rem 0 5.8rem;
}

.hero-copy {
  max-width: 920px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-copy .eyebrow {
  justify-content: center;
}

.hero-copy .eyebrow::before {
  display: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: currentColor;
}

.hero-lede,
.page-hero p,
.section-heading p,
.bio-copy p,
.insight-grid p,
.cta-panel p {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.hero-lede {
  max-width: 730px;
  margin: 1.45rem auto 0;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.2rem;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-pill {
  border-radius: 999px;
  padding-left: 2rem;
  padding-right: 2rem;
}

.button-primary {
  background: var(--navy);
  color: var(--white);
}

.button-primary:hover {
  background: var(--navy-deep);
  border-color: var(--gold);
}

.button-secondary {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.54);
  color: var(--navy);
}

.button-secondary:hover {
  background: var(--white);
}

.logo-panel,
.portrait-card,
.family-photo-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(200, 162, 90, 0.36);
  background: var(--white);
  box-shadow: var(--shadow);
}

.logo-panel {
  padding: clamp(1.2rem, 3vw, 2.4rem);
}

.logo-panel img {
  width: min(100%, 430px);
  margin: auto;
}

.family-photo-card {
  isolation: isolate;
  background: var(--cream-deep);
}

.family-photo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 52%, rgba(7, 31, 69, 0.78));
  pointer-events: none;
}

.family-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-family-card {
  min-height: 590px;
}

.hero-family-card img {
  object-position: 50% 38%;
}

.about-family-card {
  min-height: 620px;
}

.about-family-card img {
  object-position: 50% 38%;
}

.about-portrait-card {
  min-height: 560px;
}

.about-portrait-card img {
  object-position: 50% 38%;
}

.photo-caption {
  position: absolute;
  z-index: 2;
  right: 1.2rem;
  bottom: 1.2rem;
  left: 1.2rem;
  padding: 1rem;
  border-left: 3px solid var(--gold);
  background: rgba(247, 245, 240, 0.92);
  color: var(--navy);
}

.photo-caption span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.photo-caption strong {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.05;
}

.section {
  padding: clamp(4.5rem, 8vw, 8rem) 0;
}

.about-story-section {
  background: linear-gradient(150deg, var(--cream) 0%, var(--white) 55%);
}

.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.about-pfp-wrap {
  position: relative;
}

/* Logo card */
.about-logo-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(200, 162, 90, 0.35);
  box-shadow: 0 32px 80px rgba(11, 45, 99, 0.18);
}

.about-logo-inner {
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2.5rem, 5vw, 4rem);
  min-height: clamp(260px, 28vw, 360px);
}

.about-pfp {
  width: min(100%, 220px);
  height: auto;
  object-fit: contain;
}

.about-nameplate {
  background: var(--white);
  border-top: 2px solid var(--gold);
  padding: 1.1rem 1.75rem;
  text-align: center;
}

.about-nameplate-name {
  margin: 0 0 0.18rem;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.1;
}

.about-nameplate-title {
  margin: 0;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Credentials bar */
.about-credentials {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.1rem 1.5rem;
  background: var(--cream);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
}

.about-cred {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.about-cred-num {
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1;
}

.about-cred-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about-cred-divider {
  width: 1px;
  height: 36px;
  background: var(--line);
  flex-shrink: 0;
}

.about-story-content {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.about-label-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.about-vert-line {
  display: block;
  width: 2px;
  height: 28px;
  background: var(--gold);
  flex-shrink: 0;
}

.script-label {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-style: italic;
}

.about-story-text {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  margin: 0;
}

.about-story-button {
  display: inline-flex;
  width: fit-content;
  padding: 0.85rem 2rem;
  margin-top: 0.4rem;
  align-self: center;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.8rem;
}

.section-heading p {
  max-width: 680px;
  margin-top: 1rem;
}

.advisory-image-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--white);
}

.advisory-image {
  width: min(100%, 1120px);
  height: auto;
  margin: 0 auto;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.service-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 38px rgba(11, 45, 99, 0.06);
}

.feature-card {
  min-height: 260px;
  padding: 1.45rem;
}

.feature-card p,
.service-card p,
.service-detail p {
  color: var(--muted);
}

.card-number,
.service-index {
  display: inline-flex;
  margin-bottom: 1.6rem;
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 700;
}

.split-layout {
  display: grid;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
}

.bio-section,
.services-list-section {
  background: var(--white);
}

.services-preview {
  background:
    linear-gradient(120deg, rgba(247, 245, 240, 0.96), rgba(255, 255, 255, 0.86)),
    radial-gradient(circle at 78% 28%, rgba(200, 162, 90, 0.2), transparent 34%);
}

.service-stack {
  display: grid;
  gap: 1rem;
}

.service-card {
  padding: 1.6rem;
}

.service-card:nth-child(2) {
  margin-left: 2.4rem;
}

.service-card:nth-child(3) {
  margin-left: 4.8rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.4rem;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-link::after {
  content: "";
  width: 46px;
  height: 1px;
  background: var(--gold);
  transition: width 180ms ease;
}

.text-link:hover::after {
  width: 72px;
}

.insight-band {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}

.insight-band h2,
.insight-band p {
  color: var(--white);
}

.insight-grid {
  position: relative;
  display: grid;
  align-items: start;
  gap: 4rem;
  grid-template-columns: 1fr 0.75fr;
}

.compass-accent {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(42vw, 420px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(45deg);
  border: 1px solid rgba(200, 162, 90, 0.28);
  border-radius: 50%;
  pointer-events: none;
}

.compass-accent::before,
.compass-accent::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 1px;
  height: 72%;
  transform: translate(-50%, -50%);
  background: rgba(200, 162, 90, 0.22);
}

.compass-accent::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.cta-section {
  padding: clamp(4.5rem, 7vw, 7rem) 0;
  background: linear-gradient(180deg, var(--cream), var(--cream-deep));
}

.cta-panel {
  padding: clamp(2rem, 5vw, 4.5rem);
  border: 1px solid rgba(200, 162, 90, 0.38);
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
}

.cta-panel .eyebrow {
  justify-content: center;
}

.cta-panel .eyebrow::before {
  display: none;
}

.cta-panel p {
  max-width: 680px;
  margin: 1rem auto 1.7rem;
}

.page-hero {
  padding: clamp(5rem, 10vw, 9rem) 0;
  text-align: center;
}

.page-hero .eyebrow {
  justify-content: center;
}

.page-hero .eyebrow::before {
  display: none;
}

.page-hero h1 {
  margin: auto;
}

.page-hero p {
  max-width: 760px;
  margin: 1.2rem auto 0;
}

/* Services intro section */
.services-intro {
  text-align: center;
  max-width: 760px;
}

.services-intro h2 {
  margin: 0 auto 1.4rem;
}

.services-intro p {
  color: var(--muted);
  margin: 0 auto 1rem;
}

.services-intro p + p {
  margin-bottom: 2rem;
}

/* Savings section — sticky split + scroll-driven pill stack */
.savings-section {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* Fill the left column with the navy so the gap below the sticky
     image doesn't show as bare white space */
  background: linear-gradient(90deg, var(--navy) 50%, transparent 50%);
  /* min-height set by JS based on pill count */
}

.savings-image {
  position: sticky;
  top: 0;
  height: 100vh;
  align-self: start;   /* start at section top, only occupies viewport height */
  overflow: hidden;
}

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

.savings-content {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
}

.savings-heading {
  flex-shrink: 0;
  margin: 0 0 1.75rem;
}

.savings-heading u {
  text-decoration-color: var(--gold);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 2px;
}

.savings-stack {
  position: relative;
  flex: 1;
  overflow: hidden;
}

/* Pills — absolutely positioned, JS drives their Y via transform */
.savings-pill {
  position: absolute;
  left: 0;
  right: 0;
  border-radius: 14px;
  overflow: hidden;
  will-change: transform;
}

/* Color progression: lightest sage → site navy */
.savings-pill:nth-child(1) { background: #edf2e8; color: var(--navy); z-index: 1; }
.savings-pill:nth-child(2) { background: #c9dbbe; color: var(--navy); z-index: 2; }
.savings-pill:nth-child(3) { background: #8fb882; color: var(--navy); z-index: 3; }
.savings-pill:nth-child(4) { background: #4d7d40; color: #fff;        z-index: 4; }
.savings-pill:nth-child(5) { background: var(--navy); color: #fff;    z-index: 5; }

.savings-pill-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.4rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.savings-pill-desc {
  padding: 0.25rem 2rem 1.75rem;
}

.savings-pill-desc p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.75;
  opacity: 0.88;
}

/* Mobile: single-column, image banner on top, sticky content below */
@media (max-width: 900px) {
  .savings-section {
    grid-template-columns: 1fr;
    background: none; /* remove desktop gradient on mobile */
    /* min-height still set by JS */
  }

  .savings-image {
    position: relative;
    top: 0;
    height: 260px;
    align-self: auto;
  }

  .savings-image img {
    height: 100%;
  }

  /* Keep savings-content sticky so the scroll animation still works */
  .savings-content {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 2rem 1.5rem;
  }

  .savings-stack {
    position: relative;
    overflow: hidden;
    display: block;
  }

  .savings-pill {
    position: absolute;
    border-radius: 12px;
  }
}

/* Adjust sticky offset for the smaller mobile nav */
@media (max-width: 760px) {
  .savings-content {
    top: 68px;
    height: calc(100vh - 68px);
  }

  .savings-image {
    height: 220px;
  }
}

/* Partner section */
.partner-section {
  text-align: center;
}

.partner-heading {
  margin: 0 auto 5rem;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem; /* breathing room so icon circles aren't clipped */
}

.partner-card {
  position: relative;
  overflow: visible;
  border: 1px solid rgba(200, 162, 90, 0.3);
  border-radius: 10px;
  padding: 2.75rem 2rem 2rem;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.partner-icon {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.partner-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.75rem;
}

.partner-card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

@media (max-width: 767px) {
  .partner-grid {
    grid-template-columns: 1fr;
    margin-top: 3rem;
    gap: 2.5rem;

  /* Increase navbar logo size on small phones while keeping navbar height fixed.
     Constrain the wrap to the nav height so the header doesn't grow. */
  .brand-logo-wrap {
    height: 64px;
    overflow: hidden;
  }

  .brand-logo {
    height: 56px;
    max-height: 56px;
    width: auto;
    object-fit: contain;
    margin-top: 0;
  }
  }
}

/* Next level section */
.next-level {
  max-width: 760px;
  text-align: center;
}

.next-level h2 {
  margin: 0 0 1.25rem;
}

.next-level p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

/* Explore button wrapper */
.explore-btn-wrap {
  max-width: 640px;
  margin-top: 1.75rem;
  text-align: center;
}

/* Accordion */
.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 640px;
  margin-top: 2.5rem;
}

.accordion-item {
  border: 1px solid rgba(200, 162, 90, 0.35);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
  transition: border-radius 0.3s ease, box-shadow 0.3s ease;
}

.accordion-item.is-open {
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem 2.25rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  text-align: center;
}

.accordion-trigger:hover {
  color: var(--gold);
}

.accordion-arrow {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--gold);
}

.accordion-item.is-open .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.accordion-item.is-open .accordion-body {
  grid-template-rows: 1fr;
}

/* Inner div is the overflow clip — required for 0fr collapse to work */
.accordion-body > div {
  overflow: hidden;
}

.accordion-body p {
  padding: 0 1.5rem 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
  margin: 0;
  text-align: center;
}

/* Split hero layout (services page) */
.page-hero--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0;
  text-align: left;
  min-height: clamp(380px, 55vw, 640px);
}

.page-hero--split .page-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 8vw, 7rem) clamp(2rem, 5vw, 5rem);
}

.page-hero--split .eyebrow {
  justify-content: flex-start;
}

.page-hero--split .eyebrow::before {
  display: block;
}

.page-hero--split h1 {
  margin: 0;
}

.page-hero--split p {
  max-width: 520px;
  margin: 1.2rem 0 0;
}

.page-hero-image {
  position: relative;
  overflow: hidden;
}

.page-hero-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 767px) {
  .page-hero--split {
    grid-template-columns: 1fr;
  }

  .page-hero-image {
    height: 260px;
    position: relative;
  }

  .page-hero-image img {
    position: absolute;
  }
}

.portrait-card {
  padding: 2rem;
}

.portrait-card img {
  width: min(100%, 420px);
  margin: auto;
}

.bio-copy {
  max-width: 680px;
}

.bio-copy h2 {
  margin-bottom: 1.2rem;
}

.philosophy-section {
  background: var(--navy);
  color: var(--white);
  text-align: center;
}

.philosophy-section h2,
.philosophy-section p {
  color: var(--white);
}

.philosophy-section .eyebrow {
  justify-content: center;
}

.philosophy-section .eyebrow::before {
  display: none;
}

.philosophy-section .button {
  margin-top: 1rem;
  border-color: var(--gold);
  background: var(--white);
  color: var(--navy);
}

.service-list {
  display: grid;
  gap: 1rem;
}

.service-detail {
  display: grid;
  align-items: start;
  gap: 2rem;
  grid-template-columns: 80px minmax(0, 0.9fr) minmax(280px, 0.75fr);
  padding: clamp(1.35rem, 3vw, 2.3rem);
  border: 1px solid var(--line);
  background: var(--cream);
}

.service-detail h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
}

.service-index {
  margin: 0;
}

.site-footer {
  padding: 3rem 0 1.4rem;
  background: var(--white);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.2fr 0.6fr 1fr;
}

.footer-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.site-footer h2 {
  margin-bottom: 0.9rem;
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer a {
  display: table;
  margin: 0.4rem 0;
  color: var(--navy);
  font-weight: 700;
}

.site-footer a:hover {
  color: var(--gold);
}

.footer-bottom {
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay {
  transition-delay: 120ms;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .split-layout,
  .insight-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    padding-top: 4rem;
  }

  .card-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-detail {
    grid-template-columns: 64px 1fr;
  }

  .service-detail ul {
    grid-column: 2;
  }
}

@media (max-width: 760px) {
  .container,
  .narrow {
    width: min(100% - 28px, 1180px);
  }

  .nav {
    display: flex;
    grid-template-columns: unset;
    grid-template-areas: unset;
    height: 64px;
    justify-content: flex-end;
  }

  .brand-logo-wrap {
    height: auto;
    overflow: visible;
  }

  .site-header {
    top: 0;
  }

  .brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    grid-area: unset;
  }

  .brand-logo {
    height: 130px;
  }

  .brand-tagline {
    font-size: 0.55rem;
    bottom: 14px;
  }

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

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 14px;
    left: 14px;
    flex-direction: column;
    gap: 0;
    padding: 0.75rem;
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: var(--shadow);
    border-radius: 10px;
    z-index: 200;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-left,
  .nav-right {
    display: contents;
  }

  .nav-left a,
  .nav-right a {
    display: block;
    padding: 0.9rem 1rem;
    border-radius: 6px;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy);
  }

  .nav-left a::after {
    display: none;
  }

  .nav-left a:hover,
  .nav-right a:hover {
    background: var(--cream);
  }

  .nav-cta {
    margin-top: 0.25rem;
    text-align: center;
    justify-content: center;
    border-radius: 6px;
    border: 1.5px solid var(--gold);
  }

  h1 {
    font-size: clamp(2.6rem, 13vw, 4.2rem);
  }

  .section {
    padding: clamp(3rem, 8vw, 5rem) 0;
  }

  /* Hero */
  .hero-grid {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .hero-lede {
    font-size: 1rem;
  }

  .hero-family-card,
  .about-family-card,
  .about-portrait-card {
    min-height: 460px;
  }

  /* About */
  .about-story-section {
    padding-top: 3.5rem;
  }

  .about-story-grid {
    display: block;
  }

  .about-pfp-wrap {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 2rem;
  }

  .about-pfp {
    width: min(100%, 200px);
    height: auto;
  }

  .about-logo-inner {
    min-height: 220px;
    padding: 2rem;
  }

  .about-credentials {
    flex-wrap: wrap;
    gap: 1rem;
  }

  /* Cards */
  .card-grid.four {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: unset;
  }

  .service-card:nth-child(2),
  .service-card:nth-child(3) {
    margin-left: 0;
  }

  .service-detail {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .service-detail ul {
    grid-column: auto;
  }

  /* Buttons */
  .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .button-row .button,
  .button-pill {
    width: 100%;
  }

  /* CTA panel */
  .cta-panel {
    padding: 2.5rem 1.5rem;
    border-radius: 14px;
  }

  /* Services page */
  .page-hero--split {
    grid-template-columns: 1fr;
  }

  .page-hero-image {
    height: 240px;
    position: relative;
  }

  .page-hero-image img {
    position: absolute;
  }

  .page-hero--split .page-hero-content {
    padding: 2.5rem 1.5rem;
  }

  .services-intro {
    text-align: left;
  }

  .next-level {
    text-align: left;
  }

  .accordion-list {
    max-width: 100%;
  }

  .accordion-trigger {
    padding: 1.15rem 1.5rem;
    text-align: left;
    justify-content: space-between;
  }

  /* Footer */
  .footer-grid {
    gap: 2rem;
  }

  .footer-logo {
    width: 72px;
    height: 72px;
    display: block;
    margin: 0 auto 0.5rem;
  }

  .footer-grid > div:first-child {
    text-align: center;
  }

  .footer-grid > div:nth-child(2) {
    text-align: center;
  }

  .footer-grid > div:nth-child(2) a {
    display: block;
  }

}

/* ── Extra-small phones (≤ 480px) ─────────────────────────────── */
@media (max-width: 480px) {
  .container,
  .narrow {
    width: min(100% - 20px, 1180px);
  }

  /* Keep the header height stable while increasing the visible logo size */
  .brand-logo-wrap {
    /* Increased to make the logo more prominent on very small screens */
    height: 140px;
    overflow: hidden;
  }

  .brand-logo {
    height: 128px;
    max-height: 128px;
    width: auto;
    object-fit: contain;
    margin-top: 0;
  }

  h1 {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
  }

  h2 {
    font-size: clamp(1.6rem, 8vw, 2.4rem);
  }

  .eyebrow {
    font-size: 0.7rem;
  }

  .hero-family-card,
  .about-family-card,
  .about-portrait-card {
    min-height: 360px;
  }

  .savings-pill-header {
    padding: 1.1rem 1.25rem;
    font-size: 0.72rem;
  }

  .savings-pill-desc {
    padding: 0 1.25rem 1.25rem;
  }

  .partner-card {
    padding: 2.5rem 1.5rem 1.5rem;
  }

  .partner-icon {
    width: 52px;
    height: 52px;
    top: -26px;
  }

  .accordion-trigger {
    padding: 1rem 1.25rem;
    font-size: 0.78rem;
  }

  .cta-panel {
    padding: 2rem 1.25rem;
  }

  .page-hero-image {
    height: 200px;
  }

  .footer-grid > div {
    text-align: center;
  }

  .footer-logo {
    width: 60px;
    height: 60px;
  }
}
