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

/* ==========================================================================
   THEME / VARS
   ========================================================================== */
:root {
  --site-bg: url('images/nz11.jpg');
    --bg-scale: 1.00;   /* slight overscan on desktop */

  /* How far the darkening extends downward (desktop) */
  --top-fade-height: 150px;

  /* Darkness at the very top (0–1) */
  --top-fade-opacity: 0.90;

    /* Navbar sizing vars (desktop defaults) */
  --nav-pt: 0.6rem;
  --nav-pr: 3rem;
  --nav-pb: 0.4rem;
  --nav-pl: 2rem;
  --nav-logo-h: 70px;
  --nav-gap: 2.5rem;

  /* App top padding to clear fixed navbar */
  --app-top-pad: 5.5rem;

  /* Dark palette */
  --bg: #0b0d10;
  --panel: rgba(18,20,24,0.85);
  --panel-soft: rgba(18,20,24,0.80);

  --bright-white: #fafcfF;
  --less-white: #e2E8Ea;

  --muted: #b0b7c3;
  --ink-inverse: #0b0d10;
  --normal-white: #f3f6fb;
  --light-gray: #c6ccd9;

  --bright-white-ghost: rgba(17,182,170,.12);

  --border: #37404a;
  --border-soft: rgba(17,182,170,.12);
  --border-strong: #2e3945;

  --shadow-1: 0 10px 24px rgba(0,0,0,.35);
  --shadow-2: 0 16px 32px rgba(0,0,0,.45);

  --ease: .35s ease;

  /* Layout spacing */
  --section-gap: 8rem;
  --page-pad: 2rem;
}
@media (max-width: 760px) {
  :root {
    --bg-scale: 1.5; /* much larger scale to show more sky area */
    --top-fade-height: 140px;   /* extend farther down on phones */
    --top-fade-opacity: 0.95;   /* optional: a hair darker on phones */
    --bg-x: center; /* center the image horizontally on mobile */
  }
}

/* ==========================================================================
   BASE
   ========================================================================== */
html, body {
  height: 100%;
  font-family: 'Open Sans', sans-serif;
  color: var(--bright-white);
  background: var(--bg);
}
html { 
  background: var(--bg); 
  scroll-padding-top: 8rem;
}
body { 
  background: transparent; 
  position: relative; 
  --bg-y: 0px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Background image + light scrim + parallax */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
   background:
    linear-gradient(180deg, rgba(11,13,16,.05), rgba(11,13,16,.05)),
    var(--site-bg) center top / cover no-repeat; /* ← top baseline */
  background-position: var(--bg-x, center) calc(0px + var(--bg-y, 0px)); /* ← offset from TOP */
  /* Overscan so parallax never exposes black; scaled from the TOP */
  transform: scale(var(--bg-scale));
  transform-origin: center top;
  will-change: background-position, transform;
  opacity: 1;
  transition: opacity var(--ease);
}

/* Hide background until preloaded */
.bg-hidden body::before { opacity: 0; }

@media (max-width: 1279px) {
  :root {
    /* Mobile/small screen background */
    --site-bg: url('images/nz11.jpg');
  }
  body::before {
    transform-origin: center center; /* Center the image on mobile */
    /* Static background - no parallax, positioned to show middle of image */
    /* Completely override background-position to not use --bg-y at all */
    background: 
      linear-gradient(180deg, rgba(11,13,16,.05), rgba(11,13,16,.05)),
      var(--site-bg) center 35% / cover no-repeat !important; /* Static position, no --bg-y */
    --bg-y: 0px !important; /* Force static position, no parallax movement */
    /* Prevent any transform or position changes */
    will-change: auto !important;
  }
  body::after {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--top-fade-height);
  pointer-events: none;
  z-index: 9; /* below navbar (z=10), above page content */

  /* Smooth, long fade to clear */
  background: linear-gradient(
    to bottom,
    rgba(11,13,16, var(--top-fade-opacity)) 0%,
    rgba(11,13,16, calc(var(--top-fade-opacity) * .9)) 20%,
    rgba(11,13,16, calc(var(--top-fade-opacity) * 0.7)) 40%,
    rgba(11,13,16, calc(var(--top-fade-opacity) * 0.5)) 60%,
    rgba(11,13,16, calc(var(--top-fade-opacity) * 0.2)) 80%,
    rgba(11,13,16, calc(var(--top-fade-opacity) * 0)) 100%
  );
}
}@media (max-width: 900px) {
  #about .about-more::before {
    width: 0 !important;
    height: 0 !important;
  }
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--nav-pt) var(--nav-pr) var(--nav-pb) var(--nav-pl);
  z-index: 10;
  background: linear-gradient(
    to bottom,
    rgba(11,13,16,0.95) 0%,
    rgba(11,13,16,0.70) 25%,
    rgba(11,13,16,0.35) 55%,
    rgba(11,13,16,0.02) 97%
  );
}
.logo { margin-left: -.5rem; margin-top: 0.4rem; }
.logo img {
  height: var(--nav-logo-h);
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.45));
}

nav ul {
  list-style: none;
  display: flex;
  gap: var(--nav-gap);
  align-items: center;
}
nav a {
  text-decoration: none; color: var(--bright-white); font-weight: 700;
  padding-bottom: .25rem; border-bottom: 2px solid transparent;
  transition: color var(--ease), border-color var(--ease), opacity var(--ease);
  opacity: .95;
}
nav a:hover { color: #dff6f3; opacity: 1; }
nav a.active, nav a[aria-current="page"] { color: var(--bright-white); border-bottom-color: var(--bright-white); }

.app { padding-top: var(--app-top-pad); flex: 1; }

/* ---------- Mobile menu base (hidden on desktop) ---------- */
@media (max-width: 760px) {
.hidden-mobile {
  display: none;
}
.hide-mobile {
  display: none;
}
}

.menu-toggle {
  display: none;
  appearance: none;
  background: transparent;
  border: 0;
  padding: .35rem .4rem;
  cursor: pointer;
  margin-right: .25rem;
  border-radius: 10px;
}
.menu-toggle:focus-visible { outline: 3px solid rgba(17,182,170,0.5); outline-offset: 2px; }

/* Hamburger icon */
.menu-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--bright-white);
  margin: 4px 0;
  transition: transform var(--ease), opacity var(--ease);
}

/* ---------- Mobile layout ---------- */
@media (max-width: 760px) {
  /* Only logo + button visible in the fixed bar */
  .menu-toggle { display: inline-block; }
  nav ul {
    position: fixed;
    top: var(--nav-h, var(--app-top-pad)); /* falls back to app padding if JS didn't run yet */
    left: 0; right: 0;
    display: block;
    background: var(--panel-soft);
    backdrop-filter: blur(6px);
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-2);
    padding: .5rem .75rem;
    transform-origin: top center;
    transform: scaleY(0.96);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--ease), transform var(--ease);
  }
  nav ul li { margin: .35rem 0; }
  nav ul a {
    display: block;
    padding: .6rem .5rem;
    border-bottom: 2px solid transparent; /* keep underline-on-active look */
  }

  /* Hide desktop row layout */
  .navbar {
    padding-right: 1rem; /* plays nicely with your mobile var overrides */
  }
  nav ul, nav { gap: 0; }
  nav ul.tall { max-height: 70vh; overflow: auto; }

  /* When menu is open */
  .nav-open nav ul {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
  }

  /* Animate hamburger to “X” when open (optional) */
  .nav-open .menu-toggle .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-open .menu-toggle .bar:nth-child(2) { opacity: 0; }
  .nav-open .menu-toggle .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

@media (max-width: 760px) {
  /* Push the button to the far right */
  .navbar { justify-content: flex-start; }
  .menu-toggle { margin-left: auto; }

  /* Collapse the header's <nav> so it takes no horizontal space */
  header.navbar > nav { width: 0; flex: 0 0 0; overflow: visible; }

  /* (Optional) tighten right padding if you want it flush-er */
  .navbar { padding-right: 1rem; padding-top: 0.5rem;}  /* tweak to taste */
}

/* Desktop/default: keep current behavior */
.hero-title { line-height: 1.12; letter-spacing: .08em; }
.t-line { display: inline; }

/* Mobile: force a break + make it larger */
@media (max-width: 760px) {
  .t-line { display: block; }
  .t-line.t-2 { margin-top: .15rem; }

  /* Make the hero title larger on phones */
  #home .hero .hero-title {
    /* bigger than your base h1 clamp */
    font-size: clamp(2.3rem, 10vw, 3.8rem);
    letter-spacing: .02em;
  }
}


/* Sections (SPA pages) */
.section {
  opacity: 0; transform: translateX(20px);
  transition: opacity var(--ease), transform var(--ease);
  will-change: opacity, transform;
  padding-block: calc(var(--section-gap) * .25) calc(var(--section-gap) * .25);
}

/* Less top and bottom padding on desktop for non-home sections */
@media (min-width: 1025px) {
  .section:not(#home) {
    padding-top: 1.3rem;
    padding-bottom: 0.2rem;
  }
}

.hidden { display: none; }
.active { display: block; opacity: 1; transform: translateX(0); }
.leaving { opacity: 0; transform: translateX(-20px); }

/* Page container */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--page-pad) 1rem 0.2rem 1rem;
  text-align: center;
  background: none;
}

/* ==========================================================================
   HERO (HOME)
   ========================================================================== */
#home .hero {
  min-height: calc(100vh - 36rem);
  display: flex; align-items: flex-start; justify-content: center;
  text-align: center; position: relative;
  padding-top: 18vh;
  margin-bottom: 4vh;
}


.home-image {
  margin: 3rem auto;
  max-width: 1200px;
  text-align: center;
}
.home-image img {
  width: 100%;
  height: auto;
}
@media (max-width: 1100px) {
  #home .hero { padding-top: 15vh; }
}
@media (min-width: 1100px) {
  .home-image {
    margin-bottom: 5.5rem;
  }
}

h1, h2, h3 { margin-bottom: 0.75rem; }
p, li { line-height: 1.38; letter-spacing: 0.02em; color: var(--less-white); }
h2, h3 {
  letter-spacing: 0.04em;
}

.display { margin-bottom: 1rem; }

/* Reusable subtle text lift */
.text-lift { text-shadow: 0 2px 10px rgba(0,0,0,0.38), 0 1px 2px rgba(0,0,0,0.25); }
.text-lift-dark { text-shadow: 0 3px 14px rgba(0,0,0,0.60), 0 2px 4px rgba(0,0,0,0.45); }

/* Mobile: More emphasized text shadows for better readability */
@media (max-width: 760px) {
  .text-lift { text-shadow: 0 3px 14px rgba(0,0,0,0.60), 0 2px 4px rgba(0,0,0,0.45); }
  .text-lift-dark { text-shadow: 0 4px 18px rgba(0,0,0,0.70), 0 3px 6px rgba(0,0,0,0.55); }
  
  /* Smaller main headers on mobile for better fit */
  h1 { font-size: clamp(1.8rem, 8vw, 2.2rem); }
  h2 { font-size: clamp(1.4rem, 6vw, 1.7rem); }
}


.overlay { position: relative; z-index: 2; padding: 0 1rem; }
h1 { font-size: clamp(2rem, 3.9vw, 2.7rem); margin-bottom: 1rem; letter-spacing: .01em; }
.subhead { font-size: clamp(1.05rem, 2vw, 1.25rem); margin-bottom: 1.5rem; color: var(--ink); }
.subhead-thick { font-weight: 600; font-size: clamp(1.20rem, 2rem, 2.25rem); color: var(--ink); }

@media (max-width: 1100px) {
  .subhead { margin-bottom: 0rem !important; }
}
/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-block; border: 2px solid var(--bright-white);
  padding: 0.6rem 1.1rem; border-radius: 999px; text-decoration: none;
  color: var(--bright-white); font-weight: 700; background: transparent;
  transition: background-color var(--ease), color var(--ease),
              border-color var(--ease), box-shadow var(--ease), transform var(--ease), opacity var(--ease);
}
.btn:hover { color: var(--bright-white); background: rgba(255,255,255,0.05); box-shadow: var(--shadow-1); }
.btn:focus-visible { outline: 3px solid rgba(17,182,170,0.5); outline-offset: 3px; }
.btn-primary { background: var(--bright-white); border-color: var(--bright-white); color: #061e1c; }
.btn-primary:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); }

/* ==========================================================================
   TYPOGRAPHY HELPERS
   ========================================================================== */
.lead { max-width: 1100px; display:flex; justify-content: center; margin: 2.75rem auto 1.25rem; font-weight: 400; font-size: 1.27rem; line-height: 1.5; color: var(--bright-white); }

/* Tighter spacing on contact page */
#contact .lead {
  margin-top: 1.5rem;
}

.footnote { margin-top: .8rem; font-size: .95rem; color: var(--less-white); }
.divider { border: none; height: 1px; background: var(--border); margin: 1.5rem 0 1.25rem; }
.h2 { font-size: 1.6rem; margin-bottom: .75rem; }
.no-margin-bottom {
  margin-bottom: 0 !important;
}

/* ==========================================================================
   LISTS
   ========================================================================== */
.checklist { list-style: none; padding-left: 0; }
.checklist li { font-size: 1.05rem; padding-left: 1.5rem; position: relative; margin: .6rem 0 0 0; }
.checklist li::before { content: "•"; position: absolute; left: 0; top: 0; font-weight: 700; }

/* ==========================================================================
   TABLE (dark)
   ========================================================================== */
table {
  width: 100%; border-collapse: collapse; font-size: 1.05rem; background: #11161b;
  color: var(--bright-white); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-1); margin-top: .75rem;
}
thead { background: #172029; }
th, td { border: 1px solid var(--border); padding: 0.9rem 1rem; text-align: center; }
tbody tr:nth-child(even) { background: #0f1419; }
tbody tr:hover { background: #151c23; }
#services table { max-width: 600px; margin: 1.5rem auto; font-size: 1rem; }
#services th, #services td { padding: 0.75rem 1rem; }
.services-intro p { font-size: 1.27rem !important;}
.services-intro div { margin: 2.25rem auto 3rem; display: flex; justify-content: center;}

/* Tighter spacing for One-Time Plans view */
.services-onetime .services-intro {
  margin-bottom: 0;
}
.services-onetime .services-intro h1 {
  margin-bottom: 0.5rem;
}
.services-onetime .services-intro div {
  margin: 0.5rem auto 1rem;
}

#services p { font-size: 1.05rem; margin: .6rem 0;}

/* ==========================================================================
   CARDS & MEDIA
   ========================================================================== */
.card {
  background: var(--panel);
  border: 2px solid var(--border-soft);
  border-radius: 14px;
  box-shadow: var(--shadow-1);
  padding: 2.5rem 2.5rem 1.75rem 2.5rem;
  margin: 2rem auto;
  max-width: 1100px;
  text-align: left;
}
.media-banner {
  margin: 1rem auto 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-1);
  max-width: 1100px;
}
.media-banner img { width: 100%; height: auto; display: block; }

.media-wide {
  margin: 1rem auto;
  overflow: hidden;
  max-width: 1100px;
  text-align: center;
}
.media-wide img { width: 100%; height: auto; display: block; }
.media-wide figcaption {
  font-size: .95rem;
  color: var(--muted);
  padding: .6rem 1rem .2rem;
}

/* Laptop cross-fade container */
.laptop-fader {
  position: relative;
  width: min(675px, 78vw);
  margin: 2rem auto;
  padding: 1rem;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

/* Mobile laptop sizing */
@media (max-width: 760px) {
  .laptop-fader {
    width: calc(100% - 1rem);
    max-width: 350px;
    margin: 1.5rem auto;
    padding: 0.5rem;
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

/* Stacked images for cross-fade */
.laptop-fader img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 900ms var(--ease);
}
.laptop-fader img.show { opacity: 1; }

/* Reduce motion: no fade, instant swap */
@media (prefers-reduced-motion: reduce) {
  .laptop-fader img { transition: none; }
}

/* Custodian badges */
.badge-row {
  display: flex;
  gap: 3.5rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: .5rem;
}
.badge-row img {
  height: 96px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-card { text-align: left; }
.contact-card .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
}
.contact-card label { display: grid; gap: .5rem; font-size: 1.1rem; color: var(--bright-white); margin: .1rem; }
.contact-card label.full { grid-column: 1 / -1; }

/* Radio button groups (non-clickable wrapper) */
.radio-group { display: grid; gap: .5rem; font-size: 1.1rem; color: var(--bright-white); margin: .1rem; }
.radio-group.full { grid-column: 1 / -1; }

.contact-card input,
.contact-card select {
  font-size: .9rem;
  width: 100%;
  background: rgba(0,0,0,0.35);
  border: 3px solid var(--border);
  color: var(--bright-white);
  border-radius: 10px;
  padding: .65rem .75rem;
  font-family: 'Open Sans', sans-serif;
}
.contact-card input:focus,
.contact-card select:focus {
  outline: 3px solid rgba(17,182,170,0.35);
  border-color: var(--bright-white);
}

/* Override browser autofill styling */
.contact-card input:-webkit-autofill,
.contact-card input:-webkit-autofill:hover,
.contact-card input:-webkit-autofill:focus,
.contact-card input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px rgba(0,0,0,0.35) inset !important;
  -webkit-text-fill-color: var(--bright-white) !important;
  border: 3px solid var(--border) !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Firefox autofill */
.contact-card input:-moz-autofill,
.contact-card input:-moz-autofill-preview {
  filter: none;
  background: rgba(0,0,0,0.35) !important;
  color: var(--bright-white) !important;
}

/* Dropdown styling */
.contact-card select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ffffff' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
  padding-right: 2.5rem;
}

.contact-card select option {
  background: #0f1419;
  color: var(--bright-white);
  padding: 0.75rem;
  font-family: 'Open Sans', sans-serif;
}

.contact-card select option:hover,
.contact-card select option:checked {
  background: #1a2028;
  color: var(--bright-white);
}

/* Assets section - 3 columns */
.assets-section {
  grid-column: 1 / -1;
}

.assets-heading {
  margin-bottom: 0.5rem;
}

.assets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.assets-grid label {
  margin: 0;
}

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

.form-actions { display: flex; gap: .6rem; align-items: center; margin-top: .6rem; }
@media (max-width: 760px) { .contact-card .grid { grid-template-columns: 1fr; } }

/* Married radios */
.married-options {
  display: flex;
  gap: 1.25rem;
  margin-left: .25rem;
}
.married-options label {
  font-weight: normal;
  font-size: .93rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  padding: 0;
  width: fit-content;
}
.married-options input[type="radio"] { 
  accent-color: #393939;
  cursor: pointer;
  margin: 0;
}

/* Service interest radios (vertical stack) */
.service-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-left: 0;
}
.service-options label {
  font-weight: normal;
  font-size: .93rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}
.service-options input[type="radio"] { 
  accent-color: #393939;
  flex-shrink: 0;
}
#contact-submit { margin: 1.5rem 0rem 1rem 0rem; }
#contact-submit button {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: inherit;
}

/* Other inquiries + map */
.other-inquiries h2 { margin-bottom: 0.75rem; color: var(--bright-white); }
.other-inquiries p { margin-bottom: 1rem; }
.other-inquiries p a { 
  color: inherit; 
  text-decoration: none; 
  transition: color 0.3s ease, text-decoration 0.3s ease;
}
.other-inquiries p a:hover { 
  color: #dff6f3; 
  text-decoration: underline;
  text-decoration-color: rgba(17,182,170,0.6);
}
.contact-info { list-style: none; padding: 0; margin: 0; }
.contact-info li { margin: 0.4rem 0; color: var(--bright-white); }
.contact-info a { color: var(--bright-white); text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }
.map-embed, .map-image { margin: 1.5rem 0; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-1); }
.map-embed iframe, .map-image img { width: 100%; height: 325px; display: block; }
@media (min-width: 901px) {
  /* your desktop-only overrides */
  .map-embed, .map-image { margin: 2rem 10rem 1rem 10rem; }
  .map-embed iframe, .map-image img { width: 100%; height: 450px; display: block; }
}

/* ==========================================================================
   SERVICES - Multi-View Structure
   ========================================================================== */

/* Service view container management */
.services-view {
  display: block;
}
.services-view.hidden {
  display: none;
}

/* Main Landing - Two Choice Cards */
.service-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
  gap: 2rem;
  margin: 3rem auto;
  max-width: 1100px;
}

.choice-card {
  background: var(--panel);
  border: 2px solid var(--border-soft);
  border-radius: 14px;
  padding: 1.6rem 2.5rem 2.1rem 2.5rem;
  text-align: left;
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.choice-card h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--bright-white);
  min-height: 4.2rem; /* Ensures consistent height for 2-line titles */
  line-height: 1.15;
  text-align: center;
}

.choice-card > p {
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: 4.5rem;
  color: var(--less-white);
  flex-grow: 1; /* Pushes button to bottom */
}

.choice-card .btn {
  width: 100%;
  text-align: center;
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
}

/* One-Time Plans Grid */
.onetime-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin: 2rem auto 0;
  max-width: 1400px;
}

/* Stack vertically on mobile/tablet */
@media (max-width: 1024px) {
  .onetime-plans-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
    max-width: 900px;
  }
  
  .plan-card-preview.card {
    margin: 0.2rem auto !important;
  }
}

/* Plan Preview Cards (on One-Time Plans view) */
.plan-card-preview {
  text-align: left;
  padding: 2rem 2.5rem 2rem 2.5rem;
  display: flex;
  flex-direction: column;
}

.plan-summary {
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--less-white);
  margin: 1rem 0 1.5rem 0;
  flex-grow: 1;
}

@media (max-width: 1024px) {
  .plan-summary {
    margin: 0.25rem 0 0.5rem 0 !important;
  }
  
  .plan-card-preview .plan-summary {
    margin-top: 0.25rem !important;
    margin-bottom: 0.5rem !important;
  }
}

/* Plan Detail Cards (on individual plan detail views) */
.plan-detail-card {
  text-align: left;
  padding: 2rem 2.5rem 2rem 2.5rem;
  max-width: 1100px;
  margin: 2rem auto 0;
}

.plan-detail-card.card {
  margin-bottom: 0;
}

.plan-subtitle-large {
  font-size: 1.25rem;
  color: var(--muted);
  font-style: italic;
  text-align: center;
  margin: -1rem auto 2rem auto;
}

/* Value statement callout */
.plan-value-statement {
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.plan-value-statement p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--bright-white);
  margin: 0;
}

/* Plan sections grid (with headers) */
.plan-sections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.plan-section h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--bright-white);
  font-weight: 600;
}

.plan-section .checklist {
  margin-top: 0;
}

/* Plan benefits columns (no headers, just clean columns) */
.plan-benefits-columns {
  margin-bottom: 2rem;
}

.plan-benefits-columns .checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 2.5rem;
  margin: 0;
  padding: 0;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.plan-benefits-columns .checklist li {
  break-inside: avoid;
}

.plan-benefits-columns .checklist li::before {
  content: "✓";
}

/* Plan benefits enhanced (Option 2: visual background with larger emojis) */
.plan-benefits-enhanced {
  background: rgba(0,0,0,0.2);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}

.plan-benefits-enhanced .checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem 3rem;
  margin: 0;
  padding: 0;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

.plan-benefits-enhanced .checklist li {
  break-inside: avoid;
}

.plan-benefits-enhanced .checklist li::before {
  content: "✓";
  font-size: 1.3rem;
}

@media (max-width: 760px) {
  .plan-benefits-enhanced .checklist {
    grid-template-columns: 1fr;
  }
}

/* Plan benefits hybrid (Option 3: section breaks, no grid) */
.plan-benefits-hybrid {
  background: rgba(0,0,0,0.2);
  border-radius: 12px;
  padding: 2rem 2.5rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.benefit-group {
  margin-bottom: 2rem;
}

.benefit-group:last-child {
  margin-bottom: 0;
}

.benefit-group h4 {
  font-size: 1.35rem;
  color: var(--bright-white);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.benefit-group .checklist {
  margin: 0;
  padding: 0;
}

.benefit-group .checklist li::before {
  content: "✓";
  font-size: 1.2rem;
}

@media (max-width: 760px) {
  .plan-benefits-columns .checklist {
    grid-template-columns: 1fr;
  }
}

/* What to expect box */
.plan-expect {
  background: rgba(0,0,0,0.25);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
}

.plan-expect p {
  font-size: 0.98rem;
  color: var(--less-white);
  margin: 0;
  line-height: 1.5;
}

/* Stack sections on mobile */
@media (max-width: 900px) {
  .plan-sections-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Process section */
.plan-process-section {
  margin: 2.5rem 0 2rem 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.plan-process-section h3 {
  font-size: 1.5rem;
  color: var(--bright-white);
  margin-bottom: 1.5rem;
  text-align: center;
}

.process-timeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto 1.5rem;
  max-width: 1000px;
}

.timeline-step {
  flex: 1;
  text-align: center;
  min-width: 0;
}

.step-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 0.75rem;
}

.timeline-step h4 {
  font-size: 1.05rem;
  color: var(--bright-white);
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.timeline-step p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}

.timeline-arrow {
  font-size: 1.5rem;
  color: var(--muted);
  flex-shrink: 0;
  opacity: 0.5;
  margin: 0 0.5rem;
  padding-bottom: 2rem;
}

.process-timeline-note {
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
  margin: 0;
}

@media (max-width: 900px) {
  .process-timeline {
    flex-direction: column;
    gap: 1rem;
  }
  
  .timeline-arrow {
    transform: rotate(90deg);
    padding: 0;
    margin: 0.5rem 0;
  }
}

/* Investment section */
.plan-investment-section {
  margin: 2.5rem 0 2rem 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.plan-investment-section h3 {
  font-size: 1.5rem;
  color: var(--bright-white);
  margin-bottom: 1.5rem;
  text-align: center;
}

.investment-price {
  text-align: center;
  margin-bottom: 2rem;
}

.investment-price .price-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--bright-white);
  margin-bottom: 0.5rem;
}

.payment-terms {
  font-size: 1rem;
  color: var(--muted);
  margin: 0;
}

.investment-details {
  max-width: 750px;
  margin: 1.5rem auto 0;
  text-align: center;
}

.investment-details > p {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--less-white);
  margin-bottom: 0.75rem;
}

.investment-note {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.investment-includes {
  max-width: 700px;
  margin: 0 auto;
}

.investment-includes > p {
  margin-bottom: 0.75rem;
  color: var(--bright-white);
}

/* Bonus/optional section */
.plan-bonus {
  background: rgba(0,0,0,0.25);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  margin: 2rem 0 1.5rem 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.plan-bonus p {
  font-size: 0.98rem;
  color: var(--less-white);
  margin: 0;
  line-height: 1.5;
}

.plan-pricing-large {
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem auto 1.5rem auto;
  text-align: center;
  max-width: 400px;
}

.plan-cta-row {
  text-align: center;
  margin: 1.5rem 0;
}

.plan-cta-row .btn {
  min-width: 200px;
  font-size: 1.1rem;
  padding: 0.8rem 1.5rem;
}

.plan-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 1024px) {
  .plan-header {
    margin-bottom: 0.75rem !important;
    padding-bottom: 0.75rem !important;
  }
}

.plan-header h2 {
  font-size: 1.9rem;
  margin-bottom: 0.4rem;
  color: var(--bright-white);
}

.plan-subtitle {
  font-size: 1.15rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 0;
}

.plan-who,
.plan-includes {
  margin: 1.5rem 0;
}

.plan-who h3,
.plan-includes h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--bright-white);
}

.plan-pricing {
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0 1.5rem 0;
  text-align: center;
}

@media (max-width: 1024px) {
  .plan-pricing {
    padding: 1rem !important;
    margin: 1rem 0 1rem 0 !important;
  }
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--bright-white);
  margin-bottom: 0.5rem;
}

.price-note {
  font-size: 1rem;
  color: var(--muted);
  margin: 0;
}

.plan-cta {
  width: 100%;
  text-align: center;
  font-size: 1.1rem;
  padding: 0.8rem 1.5rem;
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  cursor: pointer;
}

/* CTA section (Get Started buttons) */
.cta-section {
  text-align: center;
  margin: 2.5rem auto 3.5rem;
}

.cta-section .btn {
  min-width: 200px;
  font-size: 1.1rem;
  padding: 0.8rem 1.5rem;
}

/* View Navigation (back buttons) */
.view-nav {
  text-align: center;
  margin: 1rem auto 3rem;
}

/* More spacing on detail pages */
.services-plan-detail .view-nav {
  margin: 2.5rem auto 3rem;
}

/* Mobile adjustments for back button spacing */
@media (max-width: 1024px) {
  .view-nav {
    margin: 2rem auto 2.5rem !important;
  }
  
  .services-plan-detail .view-nav {
    margin: 2.5rem auto 2.5rem !important;
  }
}

.view-nav .btn {
  min-width: 120px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.38), 0 1px 2px rgba(0,0,0,0.25);
}

.view-nav .btn:hover {
  background: var(--bright-white);
  color: #061e1c;
  border-color: var(--bright-white);
  text-shadow: none;
}

/* Mobile adjustments for service views */
@media (max-width: 760px) {
  .service-choice-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem auto;
  }

  .choice-card {
    padding: 2rem 1.5rem;
  }

  .choice-card h2 {
    font-size: 1.5rem;
  }

  .plan-card-preview {
    padding: 1.75rem 1.5rem;
    min-height: auto;
  }

  .plan-detail-card {
    padding: 1.75rem 1.5rem;
  }

  .plan-header h2 {
    font-size: 1.6rem;
  }

  .price-amount {
    font-size: 2rem;
  }
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about-intro { text-align: center; margin-bottom: 2.5rem; }

.about-intro-card { text-align: center;}

.about-points { margin: 1.25rem auto 0; text-align: left; }
.point { margin: 2.4rem auto 1rem; line-height: 1.55; font-size: 1.07rem; }
.point-lead { display: inline-block; font-weight: 700; color: var(--bright-white); margin-right: .35rem; font-size: 1.35rem; }
.caption {font-style: italic; margin-top: 0.6rem; display: block; }

/* Life is Long. Earth is Short. card - match About Me paragraph styling */
.life-earth-card p {
  line-height: 1.55;
  font-size: 1.07rem;
  color: var(--less-white);
}

.pill-list { list-style: none; display: inline-flex; gap: .5rem; flex-wrap: wrap; margin: 1rem 0 0; padding: 0; }
.pill-list li { font-weight: 700; padding: .4rem .7rem; border: 1px solid var(--border); border-radius: 999px; background: var(--panel); backdrop-filter: blur(2px); }

/* ---------- About card container ---------- */
.about-card { text-align: left; --gap: 2rem; --photo-w: clamp(240px, 28vw, 400px); }
/* ---------- Two-column layout: text left, image right ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 0.9rem;
  align-items: start;
  text-align: left;
}
#about-title { margin-bottom: 1rem; }
.about-text p { margin-bottom: 0.6rem; line-height: 1.55; font-size: 1.07rem; color: var(--less-white);}
/* photo: right column, spans two rows */
.about-photo {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-photo img {
  max-width: 380px;
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
  padding: 0 0 0.2rem 0.2rem;
}

/* “On a Personal Note”: left column, middle row */
.about-more {
  grid-column: 1 / -1;     /* was 1 */
  grid-row: 2 / span 2;    /* was 2 */
  position: relative;
}
.about-more::before {
  content: "";
  float: right;
  width: var(--wrap-w, 0px);   /* set via JS */
  height: var(--wrap-h, 0px);  /* set via JS */
  pointer-events: none;
}
.about-more h3 { margin-bottom: 0.9rem; font-size: 1.35rem; color: var(--bright-white); }
.about-more p { line-height: 1.6; font-size: 1.05rem; color: var(--less-white); }
/* Full-width row under the image for any overflow paragraphs */

/* Let .about-more sit in the left column when docked */
.about-more.in-grid { grid-column: 1; margin-top: 0.75rem; }

.about-spill {
  grid-column: 1 / -1;
  grid-row: 3;
  margin-top: .75rem;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { grid-row: auto; }
  .about-more { grid-column: 1; grid-row: auto; }
  .about-spill { grid-column: 1; grid-row: auto; margin-top: .5rem; }
}
/* ==========================================================================
   HOME BLOCKS
   ========================================================================== */
.why-block { margin-top: calc(1rem + var(--why-extra-top, 0px)); text-align: center; max-width: 800px; margin-left: auto; margin-right: auto; }
.why-block h2 { font-size: 1.9rem; margin-bottom: 1.75rem; color: var(--bright-white); }
.why-block p { font-size: 1.1rem; line-height: 1.5; margin-bottom: 1rem; }

.cta-final {
  margin: 3.25rem auto 0;
  max-width: 1100px; padding: 2rem 1.5rem;
}
.cta-final h2 { font-size: 1.6rem; margin-bottom: .35rem; }
.cta-final p { color: var(--muted); margin-bottom: .9rem; }

.section-cta {margin-bottom: 0 !important; margin-top: 1rem !important;}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
.fade-in, .fade-in-slow { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.fade-in.in-view, .fade-in-slow.in-view { opacity: 1; transform: translateY(0); }
/* Anchor variant: IO sees the container (no transform), we animate the inner content */
.fade-in.anchor,
.fade-in-slow.anchor { transform: none; }  /* override the base translateY */

.fade-in.anchor > *,
.fade-in-slow.anchor > * {
  transform: translateY(16px);              /* same visual offset as before */
  transition: transform 700ms ease;         /* inherit your timing feel */
}

.fade-in.anchor.in-view > *,
.fade-in-slow.anchor.in-view > * {
  transform: none;
}
.delay-1 { transition-delay: 100ms; }
.delay-2 { transition-delay: 180ms; }
.delay-3 { transition-delay: 260ms; }
.delay-4 { transition-delay: 800ms; }
.delay-5 { transition-delay: 1300ms; }
.delay-6 { transition-delay: 2275ms; }

@media (max-width: 760px) {
  .delay-3--sm { transition-delay: 260ms; }
}

/* Large screens */
@media (min-width: 761px) {
  .delay-5--lg { transition-delay: 1300ms; }
}

/* ==========================================================================
   ACCESSIBILITY / MOTION
   ========================================================================== */

/* Prevent non-interactive containers from showing teal outlines */
#app:focus { outline: none; }
.site-footer:focus, .site-footer:focus-visible { outline: none; }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .section { transform: none !important; }
  .fade-in, .fade-in-slow { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  /* More transparent at the top, darker at the very bottom */
  color: var(--less-white);
  font-size: 0.72rem;
  text-align: center;
  padding: 1.25rem 1rem; /* slightly less bottom space */
  border: 0; /* no hard border; gradient does the separation */
}
.site-footer .disclosure {
  max-width: 1400px;
  margin: 0 auto;
  line-height: 1.4;
}

/* ========================= Beliefs Doc (single unified card) ========================= */
.doc.card {
  max-width: 1100px;
  margin: 0 auto 4rem;
  padding: 2rem 3rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-1);
  text-align: left;
}
.doc.card p {
  font-size: 1.04rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}
.doc-image {
  width: calc(100% - 4rem);
  max-width: calc(100% - 4rem);
  height: auto;
  display: block;
  margin: 1.5rem auto;
  border-radius: 8px;
  box-shadow: var(--shadow-1);
}
.doc h1 { text-align: center; margin-bottom: 1rem; }
.doc-lead {
  color: var(--less-white);
  text-align: center;
  max-width: 70ch;
  margin: 0.25rem auto 2rem;
  line-height: 1.6;
}

/* ========================= TOC (vertical, outline style) ========================= */
.toc-root {
  list-style: none;
  margin: 2rem auto;
  padding: 0;
  display: block;
}
#toc-separation { border-top: 1px solid rgba(255, 255, 255, 0.15); }
.toc-root li { margin: 0.35rem 0; }

.toc-main-heading {
  display: block;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--bright-white);
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

.toc-group {
  display: block;
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--bright-white);
  text-decoration: none;
  margin-top: 0.75rem;
}
.toc-group:hover { text-decoration: underline; color: var(--bright-white); }

a.toc-sub {
  display: block !important;
  padding-left: 1.5rem !important;
  font-weight: 500 !important;
  font-size: 1.3rem !important;
  color: var(--bright-white) !important;
  text-decoration: none !important;
  margin: 0.35rem 0 0.35rem 0.5rem !important;
  border-bottom: none !important;
  opacity: 1 !important;
}
a.toc-sub:hover { 
  text-decoration: underline !important; 
  color: var(--bright-white) !important;
  opacity: 1 !important;
}

.doc-sections section {
  margin-bottom: 3.5rem;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
}
.doc-sections section h2 {
  margin-bottom: 0.6rem;
  margin-top: 0;
  color: var(--bright-white);
  font-size: 1.9rem;
  font-weight: 600;
}
.doc-sections section h3 {
  margin-bottom: 0.3rem;
  margin-top: 1.7rem;
  color: var(--bright-white);
  font-size: 1.35rem;
  font-weight: 400;
}
.doc-sections section p {
  margin-bottom: 1rem;
  margin-top: 0;
}

/* “Translation” / callout box */
.callout {
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .9rem 1rem;
  margin: 1rem 0;
}
.callout p { 
  color: var(--bright-white) !important;
  margin: 0 .3rem 0 .3rem !important;
}

/* Bottom action row */
.btn-row { display: flex; gap: .6rem; justify-content: center; margin-top: .25rem; }

/* Optional: tighten list spacing inside the doc */
.doc li { margin: .3rem 0; }

@media (max-width: 760px) {
  :root {
    /* Play with these */
    --nav-pt: 0.45rem;
    --nav-pr: 1.1rem;
    --nav-pb: 0.35rem;
    --nav-pl: 1rem;

    --nav-logo-h: 72px;
    --nav-gap: 1.1rem;

    /* Keep content clear of the fixed header */
    --app-top-pad: 4.4rem;
  }
}

/* Beliefs page: mobile-friendly gutters and spacing */
@media (max-width: 760px) {
  .doc.card {
    /* ensure side padding and prevent edge-to-edge on phones */
    margin: 2.5rem 1rem 2.5rem 1rem; /* start a touch lower on the screen */
    padding: 1.25rem 1.6rem 1.5rem 1.6rem; /* slightly more left/right + a bit more bottom */
  }
  .doc-image {
    /* let images use available width inside the padded card */
    width: calc(100% + 0rem);
    max-width: calc(100% + 0rem);
    margin: 1rem 0; /* respect card gutters */
  }
  .btn-row {
    margin-top: .55rem;
    margin-bottom: .95rem; /* a bit more space from meta line below */
  }
}

/* About: clean single-column layout on mobile */
@media (max-width: 900px) {
  #about .about-grid {
    grid-template-columns: 1fr;          /* one true column */
    gap: 1rem;
  }

  /* make every piece live in column 1 */
  #about .about-text,
  #about .about-more,
  #about .about-photo {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  /* center the image and give it breathing room */
  #about .about-photo {
    justify-self: center;
    margin: .5rem auto 1rem;
  }

  /* belt-and-suspenders: kill the desktop float spacer */
  #about .about-more::before {
    width: 0 !important;
    height: 0 !important;
  }

  /* allow paragraphs to use the full card width */
  #about .about-text p,
  #about .about-more p {
    max-width: none;
  }
}