:root {
  --ink: #172235;
  --muted: #5d6876;
  --blue: #46678f;
  --blue-dark: #304d70;
  --blue-soft: #e8eef5;
  --sand: #f4efe7;
  --paper: #fffdf9;
  --line: rgba(31, 51, 73, 0.16);
  --shadow: 0 18px 55px rgba(26, 46, 71, 0.14);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.7; }
img, video, iframe { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 100; transform: translateY(-180%); padding: .7rem 1rem; background: white; color: var(--ink); border-radius: .4rem; }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 50; color: white; background: rgba(48, 77, 112, .97); border-bottom: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(12px); }
.header-inner { width: min(1180px, calc(100% - 2rem)); min-height: 90px; margin: 0 auto; display: flex; align-items: center; gap: 2rem; }
.brand { margin-right: auto; display: flex; align-items: center; gap: .85rem; text-decoration: none; }
.brand img { width: 170px; height: auto; }
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { font-family: var(--serif); font-size: 1.05rem; }
.brand-copy span { margin-top: .28rem; font-size: .72rem; opacity: .82; }
.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav a { position: relative; font-weight: 650; font-size: .92rem; text-decoration: none; }
.nav a:not(.button)::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -.35rem; height: 2px; background: white; transition: right .2s ease; }
.nav a:hover::after, .nav a[aria-current='page']::after { right: 0; }
.menu-button { display: none; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: .55rem .8rem; color: white; background: transparent; font: inherit; }

.home-page .site-header { position: absolute; left: 0; right: 0; background: transparent; border-bottom: 0; backdrop-filter: none; }
.home-page .header-inner { width: calc(100% - 6rem); max-width: none; min-height: 250px; }
.home-page .brand img { width: min(500px, 36vw); }
.home-page .brand-copy { display: none; }
.home-page .nav a { text-shadow: 0 1px 12px rgba(13, 31, 51, .48); }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.1rem; border: 0; border-radius: 999px; color: white; background: var(--blue); box-shadow: 0 8px 24px rgba(38,65,97,.18); font-weight: 750; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); background: var(--blue-dark); }
.button-light { color: var(--blue-dark); background: white; }
.button-light:hover { background: var(--sand); }
.button-outline { color: var(--blue-dark); background: transparent; border: 1px solid var(--blue); box-shadow: none; }

.family-hero { position: relative; min-height: 100vh; overflow: hidden; color: white; background: var(--blue-dark); }
.family-hero-inner { position: absolute; inset: 0; }
.family-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.family-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(23, 42, 64, .46) 0%, rgba(23, 42, 64, .05) 35%, rgba(23, 42, 64, .08) 58%, rgba(23, 42, 64, .56) 100%); }
.home-verse { position: absolute; z-index: 2; left: 50%; bottom: clamp(3rem, 8vh, 6rem); width: min(900px, calc(100% - 2rem)); transform: translateX(-50%); text-align: center; text-shadow: 0 2px 18px rgba(13, 31, 51, .7); }
.home-verse h1 { margin: 0; font: clamp(1.8rem, 2.4vw, 2.05rem)/1.16 var(--serif); letter-spacing: -.015em; white-space: nowrap; }
.home-verse .reference { margin: 1.2rem 0 0; font: 1.55rem var(--serif); }
.hero { position: relative; min-height: 56vh; display: grid; place-items: center; overflow: hidden; color: white; background: var(--blue-dark); }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(31,54,83,.86), rgba(70,103,143,.65)), url('/assets/ocean.jpg') center/cover; transform: scale(1.02); }
.hero-inner { position: relative; width: min(1000px, calc(100% - 2rem)); padding: 7rem 0; text-align: center; }
.eyebrow { margin: 0 0 .8rem; color: var(--blue); font-size: .78rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.hero .eyebrow, .page-hero .eyebrow { color: #d9e9fb; }
.hero h1 { max-width: 900px; margin: 0 auto; font: clamp(2.35rem, 6vw, 5.4rem)/1.02 var(--serif); letter-spacing: -.025em; }
.hero .reference { margin: 1.2rem 0 0; font: italic clamp(1.15rem, 2vw, 1.6rem) var(--serif); }
.hero-actions { margin-top: 2.3rem; display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem; }

.section { padding: clamp(4.5rem, 8vw, 8rem) 0; }
.section-tint { background: var(--blue-soft); }
.section-sand { background: var(--sand); }
.container { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 2rem)); margin: 0 auto; }
.section-heading { max-width: 760px; margin: 0 auto 2.5rem; text-align: center; }
.section-heading h2, .content h1, .content h2, .page-hero h1 { margin: 0; font: clamp(2.25rem, 5vw, 4.1rem)/1.08 var(--serif); letter-spacing: -.025em; }
.section-heading p { color: var(--muted); }
.media-card { overflow: hidden; border-radius: 1.3rem; background: white; box-shadow: var(--shadow); }
.media-card video, .media-card .media-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; background: #0d1520; object-fit: cover; }
.home-video-section { padding: clamp(3.5rem, 6vw, 6rem) 0; }
.home-video-card { width: min(700px, 100%); margin: 0 auto; }
.home-video-section .section-heading h2 { font-size: clamp(2.2rem, 4vw, 3.25rem); }
.media-card-body { padding: 1.4rem 1.5rem 1.6rem; }
.media-card-body h3 { margin: 0; font: 1.7rem var(--serif); }
.media-card-body p { margin-bottom: 0; color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.split img { width: 100%; border-radius: 1.3rem; box-shadow: var(--shadow); }
.split-copy h2 { margin: 0 0 1rem; font: clamp(2.3rem, 5vw, 4rem)/1.08 var(--serif); }
.split-copy p { color: var(--muted); }

.page-hero { position: relative; min-height: 330px; display: grid; place-items: end center; overflow: hidden; color: white; background: var(--blue-dark); }
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(33,57,86,.76), rgba(33,57,86,.89)), url('/assets/ocean.jpg') center 48%/cover; }
.page-hero-inner { position: relative; width: min(1120px, calc(100% - 2rem)); padding: 6rem 0 3.5rem; }
.content { font-size: 1.06rem; }
.content > p:first-of-type { font-size: 1.25rem; color: var(--blue-dark); }
.content p { margin: 0 0 1.35rem; }
.closing-card { margin-top: 3rem; padding: 2rem; border-radius: 1rem; color: white; background: var(--blue-dark); }
.closing-card h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.gallery { margin-top: 3rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery img { width: 100%; height: 250px; object-fit: cover; border-radius: .8rem; }

.newsletter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem; }
.newsletter-card { overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: white; box-shadow: 0 12px 30px rgba(35,54,78,.08); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.newsletter-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.newsletter-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; background: #eef2f5; }
.newsletter-card h2 { margin: 0; padding: 1rem 1.1rem 1.2rem; font: 1.25rem/1.25 var(--serif); }
.newsletter-pages { display: grid; gap: 2rem; }
.newsletter-page { position: relative; display: block; width: min(100%, 940px); margin: 0 auto; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.newsletter-page img { width: 100%; height: auto; border-radius: .45rem; box-shadow: var(--shadow); }
.newsletter-pdf-card { display: grid; justify-items: center; gap: 1.25rem; }
.newsletter-pdf { width: min(100%, 940px); height: min(78vh, 1100px); border: 1px solid var(--line); border-radius: .8rem; background: white; box-shadow: var(--shadow); }
.newsletter-nav { margin-top: 3rem; display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; }
.newsletter-nav a { color: var(--blue-dark); font-weight: 750; }
.newsletter-nav a:last-child { justify-self: end; text-align: right; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.contact-card { min-height: 210px; padding: 1.7rem; border-radius: 1rem; background: white; box-shadow: var(--shadow); }
.contact-card h2 { margin: 0 0 .75rem; font: 1.55rem var(--serif); }
.contact-card p { color: var(--muted); }
.video-embed { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 1rem; background: #111; box-shadow: var(--shadow); }
.video-embed iframe, .video-embed video { width: 100%; height: 100%; border: 0; object-fit: cover; }
.story-quote { margin: 2rem 0; padding: 1.5rem 1.7rem; border-left: 5px solid var(--blue); background: var(--blue-soft); font: italic 1.12rem/1.65 var(--serif); }

dialog.lightbox { width: min(96vw, 1200px); max-width: none; max-height: 96vh; padding: 3rem 1rem 1rem; border: 0; border-radius: 1rem; background: #111820; }
dialog.lightbox::backdrop { background: rgba(7,12,18,.86); backdrop-filter: blur(6px); }
.lightbox img { max-height: calc(96vh - 4rem); margin: 0 auto; object-fit: contain; }
.lightbox-close { position: absolute; top: .6rem; right: .8rem; border: 0; color: white; background: transparent; font-size: 2rem; cursor: pointer; }

.site-footer { padding: 3.5rem 0; color: white; background: #1e344e; }
.footer-inner { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.footer-inner p { margin: .25rem 0; opacity: .8; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1rem; }
.footer-nav a { text-decoration: none; }

@media (max-width: 900px) {
  .brand-copy { display: none; }
  .menu-button { display: inline-flex; }
  .nav { display: none; position: absolute; top: 78px; left: 1rem; right: 1rem; padding: 1rem; border-radius: .9rem; background: var(--blue-dark); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
  .nav[data-open] { display: flex; }
  .nav .button { width: 100%; }
  .home-page .header-inner { width: calc(100% - 2rem); min-height: 116px; }
  .home-page .brand img { width: 245px; }
  .home-page .menu-button { color: white; background: rgba(30, 52, 78, .7); }
  .home-verse h1 { white-space: normal; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .newsletter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .header-inner { min-height: 76px; }
  .brand img { width: 140px; }
  .nav { top: 70px; }
  .home-page .header-inner { min-height: 94px; }
  .home-page .brand img { width: 185px; }
  .family-hero { min-height: 100svh; }
  .family-hero img { object-position: 52% center; }
  .home-verse { bottom: 2.25rem; }
  .home-verse h1 { font-size: clamp(1.65rem, 8vw, 2.2rem); }
  .home-verse .reference { font-size: 1.2rem; }
  .hero { min-height: 58vh; }
  .hero-inner { padding: 4.5rem 0; }
  .newsletter-grid, .gallery { grid-template-columns: 1fr; }
  .gallery img { height: auto; }
  .newsletter-nav { grid-template-columns: 1fr 1fr; }
  .newsletter-nav .archive-link { grid-row: 2; grid-column: 1 / -1; justify-self: center; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-nav { justify-content: center; }
}

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

/* Visual Editor / flexible page-block system */
.block-section { position: relative; }
.block-spacing-none { padding: 0; }
.block-spacing-compact { padding: clamp(2rem, 4vw, 3.5rem) 0; }
.block-spacing-normal { padding: clamp(4rem, 7vw, 6.5rem) 0; }
.block-spacing-roomy { padding: clamp(6rem, 10vw, 9rem) 0; }
.block-bg-white { background: var(--paper); }
.block-bg-tint { background: var(--blue-soft); }
.block-bg-sand { background: var(--sand); }
.block-bg-brand { color: white; background: var(--blue-dark); }
.block-bg-transparent { background: transparent; }
.block-bg-brand .eyebrow, .block-bg-brand .content p, .block-bg-brand .section-heading p { color: rgba(255,255,255,.84); }
.block-bg-brand .button-outline { color: white; border-color: rgba(255,255,255,.7); }
.block-align-center { text-align: center; }
.wide-container { width: min(1320px, calc(100% - 2rem)); margin: 0 auto; }
.full-container { width: 100%; margin: 0 auto; }
.button-text { min-height: auto; padding: .2rem 0; border-radius: 0; color: var(--blue-dark); background: transparent; box-shadow: none; text-decoration: underline; text-underline-offset: .22em; }
.button-text:hover { transform: none; background: transparent; }
.button-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: inherit; }
.button-block h2 { margin: 0 0 1.25rem; font: clamp(2rem, 4vw, 3.4rem)/1.08 var(--serif); }
.standalone-image { margin: 0; text-align: center; }
.standalone-image img { width: 100%; max-height: 760px; object-fit: cover; border-radius: 1.2rem; box-shadow: var(--shadow); }
.standalone-image figcaption, .gallery figcaption { margin-top: .65rem; color: var(--muted); font-size: .92rem; }
.image-text-layout { display: grid; grid-template-columns: minmax(260px,.95fr) minmax(0,1.05fr); gap: clamp(2rem,6vw,5rem); align-items: center; }
.image-text-layout.image-right .image-text-photo { order: 2; }
.image-text-photo { width: 100%; max-height: 680px; object-fit: cover; border-radius: 1.2rem; box-shadow: var(--shadow); }
.image-text-copy > .button, .image-text-copy > div { margin-top: .7rem; }
.generic-quote { max-width: 850px; margin: 0 auto; font-size: clamp(1.2rem,2.4vw,1.65rem); }
.generic-quote cite { display: block; margin-top: 1rem; font: 700 .9rem/1.4 var(--sans); color: var(--muted); }
.generic-cta { padding: clamp(2rem,5vw,4rem); border: 1px solid var(--line); border-radius: 1.2rem; background: rgba(255,255,255,.72); box-shadow: 0 12px 38px rgba(35,54,78,.07); }
.block-bg-brand .generic-cta { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.08); }
.generic-cta h2 { margin: 0 0 .8rem; font: clamp(2rem,4vw,3.4rem)/1.08 var(--serif); }
.generic-cta p { max-width: 760px; margin: 0 auto 1.4rem; }
.section-divider { width: min(760px, calc(100% - 2rem)); margin: 0 auto; border: 0; border-top: 1px solid var(--line); }
.editor-spacer.spacer-small { height: 2rem; }
.editor-spacer.spacer-medium { height: 4rem; }
.editor-spacer.spacer-large { height: 7rem; }
.newsletter-feature { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,.7fr); gap: clamp(2rem,5vw,4rem); align-items: center; }
.newsletter-feature h2 { margin: 0; font: clamp(2.2rem,4vw,3.7rem)/1.08 var(--serif); }
.newsletter-feature h3 { margin: .8rem 0 1.4rem; color: var(--muted); font: 1.25rem var(--serif); }
.newsletter-feature img { width: 100%; max-height: 520px; object-fit: cover; object-position: top; border-radius: 1rem; box-shadow: var(--shadow); }
.media-placeholder { aspect-ratio: 16/9; display: grid; place-items: center; gap: .5rem; background: #e9eef3; color: var(--blue-dark); text-align: center; }
.media-placeholder span { font-size: 2rem; }
.gallery figure { margin: 0; }
.block-bg-brand .contact-card { color: var(--ink); }

@media (max-width: 760px) {
  .image-text-layout, .newsletter-feature { grid-template-columns: 1fr; }
  .image-text-layout.image-right .image-text-photo { order: 0; }
  .button-row { justify-content: center; }
}

/* Preserve the approved v2 spacing/composition for existing pages while letting
   newly added blocks use the same visual system. */
.block-spacing-normal { padding: clamp(4.5rem, 8vw, 8rem) 0; }
.home-video-section.block-spacing-normal { padding: clamp(3.5rem, 6vw, 6rem) 0; }
.about-story-section { padding-bottom: 0; }
.about-cta-section { padding: 0; }
.about-cta-section .generic-cta.closing-card { margin-top: 3rem; padding: 2rem; border: 0; border-radius: 1rem; color: white; background: var(--blue-dark); box-shadow: none; }
.about-cta-section .generic-cta.closing-card h2 { margin: 0 0 .8rem; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.about-gallery-section { padding: 0 0 clamp(4.5rem, 8vw, 8rem); }
.about-gallery-section .gallery { margin-top: 3rem; }
