/* Spark Life Global Styles */

/*==========================
/* Spark Life Brand Fonts */
@font-face {
  font-family: "Black Mango";
  src: url("assets/fonts/black-mango-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vincentia";
  src: url("assets/fonts/Vincentia.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Agrandir Tight";
  src: url("assets/fonts/agrandir-tight.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/*==========================
  Root CSS Variables
==========================*/
:root {
  /* Colors */
  --color-faith-blue: #023550;
  --color-belief: #EEEEE9;
  --color-devotion: #768779;
  --color-connection: #CC9752;
  --color-empowerment: #E4CB8A;
  --color-expression: #8CA2BD;
  --color-stability: #9B3636;

  /* Typography */
  --font-title: "Holla", "Vincentia", cursive;
  --font-header: "Black Mango", serif;
  --font-body: "Agrandir Tight", sans-serif;

  /* Font Sizes */
  --fs-hero-title: clamp(2.5rem, 4vw + 1rem, 4rem);
  --fs-hero-sub: clamp(1rem, 1.2vw + 0.5rem, 1.25rem);
  --fs-section-title: 1.5rem;
  --fs-body: 1rem;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-s: 1rem;
  --space-m: 2rem;
  --space-l: 4rem;
  --space-xl: 6rem;
  --radius-soft: 1.25rem;
  --transition-soft: 300ms ease;
}

/*==========================
  CSS Reset & Base
==========================*/
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  /* `clip` rather than `hidden`: hidden on body alone still let absolutely
     positioned nav menus widen the document, which made phones zoom out to
     fit. clip refuses to scroll sideways at all, without creating a scroll
     container that would break sticky positioning. */
  overflow-x: clip;
}
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.8;
  color: var(--color-faith-blue);
  background-color: var(--color-belief);
  overflow-x: clip;
  padding-top: 0;
}
/* Any author `display` beats the browser's own [hidden] rule, so components
   that set display (buttons, flex wrappers) stay visible when script marks
   them hidden. This makes the attribute mean what it says. */
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
  
/*==========================
  SITE NAVIGATION
==========================*/
.site-nav {
  display: flex;
  gap: 1.75rem;
}

.site-nav a {
  font-family: "Agrandir Tight", sans-serif;
  font-size: 0.95rem;
  color: #fdf8f3;
  text-decoration: none;
  opacity: 0.9;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background-color: #fdf8f3;
  transition: width 0.2s ease;
}

.site-nav a:hover::after {
  width: 100%;
}

/* NAV DROPDOWN */

.nav-dropdown {
  position: relative;
}

/* The "Programs" button */
.nav-dropdown-toggle {
  background: none;
  border: none;
  font-family: "Agrandir Tight", sans-serif;
  font-size: 0.95rem;
  color: #fdf8f3;
  cursor: pointer;
  opacity: 0.9;
  padding: 0;
  position: relative;
}

/* underline animation like other links */
.nav-dropdown-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background-color: #fdf8f3;
  transition: width 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle::after {
  width: 100%;
}

.nav-dropdown-toggle:hover {
  opacity: 1;
}

/* Dropdown menu container */
.nav-dropdown-menu {
  position: absolute;
  top: 1.8rem;
  left: 0;
  background: rgba(2, 53, 80, 0.92);
  backdrop-filter: blur(4px);
  border-radius: 0.75rem;
  padding: 0.75rem 0;
  min-width: 230px;

  display: flex;
  flex-direction: column;
  z-index: 999;

  /* animation state */
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition:
    opacity 240ms ease,
    transform 240ms ease;
}

/* On hover: reveal + slide down. Gated to real pointers because touch browsers
   leave a tapped element in :hover, which would hold one menu open while a tap
   opened the next and overlap the two. Touch uses .is-open instead. */
@media (hover: hover) and (pointer: fine) {
  .nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}


/* Links inside dropdown */
.nav-dropdown-menu a {
  padding: 0.6rem 1rem;
  color: #fdf8f3;
  text-decoration: none;
  font-family: "Agrandir Tight", sans-serif;
  font-size: 0.9rem;
  opacity: 0.9;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.nav-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.14);
  opacity: 1;
  border-radius: 0.5rem;
}

.tm {
  font-size: 0.38em;
  position: relative;
  top: -0.6em;
  opacity: 0.6;
  margin-left: 2px;
}
@media (max-width: 768px) {
  .site-header-inner {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .main-nav {
    font-size: 0.95rem;
    gap: 1.5rem;
  }

  .nav-dropdown-menu {
    min-width: 12rem;
  }
}

/* Keep menus on screen at every width. They are absolutely positioned, so a
   menu under a right-hand nav item reaches past the viewport edge unless it
   hangs from its right side instead. Any width where the nav sits near the
   edge is affected, not just phones. */
.nav-dropdown-menu {
  max-width: calc(100vw - 1.5rem);
}

.site-nav .nav-dropdown:nth-of-type(n + 3) > .nav-dropdown-menu {
  left: auto;
  right: 0;
}

/* Keyboard users get the same reveal on focus. Unlike hover, focus is only ever
   on one group at a time, so this cannot leave two menus open at once. */
.nav-dropdown:focus-within > .nav-dropdown-menu,
/* Touch has no hover, so a tap opens the menu instead (see script.js). */
.nav-dropdown.is-open > .nav-dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.site-brand img {
  max-width: 190px;
}

@media (max-width: 768px) {
  .site-brand img {
    max-width: 230px;
  }
}

.tm-nav {
  display: inline;
  font-size: 0.45em;
  position: relative;
  top: -0.35em;
  margin-left: 1px;
  opacity: 0.7;
}

.hide-mobile {
  display: inline;
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none;
  }
}

/*==========================
  Hero Section
==========================*/
.hero {
  position: relative;
  background-color: #023550;
  background-image: url('/assets/images/navy-flame-pattern.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #ffffff;
}

/* Background video */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Gradient overlay between video and content */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(2, 53, 80, 0.62),
    rgba(2, 53, 80, 0.35),
    rgba(2, 53, 80, 0.15)
  );
  z-index: 1;
}

/* Hero content wrapper */
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 4rem 1.5rem 6rem;
  max-width: 60rem;
}

/* Logo and tagline */
.hero-logo {
  max-width: 260px;
  width: 40vw;
  margin: 0 auto 0.75rem;
}

.hero-tagline {
  font-family: "Black Mango", serif;
  letter-spacing: 0.18em;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #fdf8f3;
  margin-bottom: 4.5rem;
  opacity: 0.9;
}

/* Hero actions */
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

/* Primary button */
.btn-primary {
  display: inline-block;
  padding: 0.95rem 3.5rem;
  border-radius: 999px;
  background-color: #f8c77e;
  color: #023550;
  font-family: "Agrandir Tight", sans-serif;
  font-size: 1rem;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

	.btn-primary:hover {
	  background-color: #f8d196;
	  transform: translateY(-2px);
	  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
	}
    
    .btn-secondary {
	  display: inline-flex;
	  align-items: center;
	  justify-content: center;
	  min-height: 3.25rem;
	  padding: 0.9rem 2.1rem;
	  border-radius: 999px;
	  font-family: var(--body);
	  font-size: 1rem;
	  color: var(--faith-blue);
	  border: 1px solid rgba(2, 53, 80, 0.22);
	  background: rgba(255, 255, 255, 0.55);
	  box-shadow: 0 18px 40px rgba(2, 53, 80, 0.08);
	  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
	}

	.btn-secondary:hover {
	  transform: translateY(-2px);
	  background: #ffffff;
	  box-shadow: 0 22px 50px rgba(2, 53, 80, 0.12);
	}

/* Secondary link */
.hero-secondary-link {
  font-family: "Agrandir Tight", sans-serif;
  font-size: 0.95rem;
  color: #fdf8f3;
  text-decoration: underline;
  text-underline-offset: 4px;
  opacity: 0.9;
}

/* Curved divider under hero */
.curve-divider {
  position: relative;
  height: 8vw;
  background: var(--color-belief);
  border-top-left-radius: 50% 100%;
  border-top-right-radius: 50% 100%;
  margin-top: -2vw;
  z-index: 2;
}

/* fade-up animation for scroll */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-soft), transform var(--transition-soft);
}

.fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Navy + flame pattern — cover prevents iOS tile/seam on mobile */
.waitlist-section,
#select-your-spark,
.quick-reference {
  background-color: #023550;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Mailing list */
.waitlist-section > .container {
  padding-top: calc(1.5rem + 0.25in);
}

.waitlist-section .waitlist-heading {
  font-family: var(--font-header, "Black Mango", serif);
  color: #fdf8f3;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.waitlist-section .waitlist-sub {
  font-family: var(--font-body, "Agrandir Tight", sans-serif);
  color: rgba(253, 248, 243, 0.9);
  max-width: 640px;
  margin: 0 auto 1.25rem;
  line-height: 1.6;
}

.waitlist-section iframe.waitlist-jotform,
.waitlist-section iframe[id^="JotFormIFrame"] {
  display: block;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  height: 539px;
  border: 0 !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Pull form up and clip the residual top seam/border from the embed */
.waitlist-section .waitlist-jotform-clip {
  margin-top: -0.25in;
  overflow: hidden;
}

.waitlist-section .waitlist-jotform-clip iframe {
  margin-top: -10px;
}

/* Footer */
.site-footer {
  background: var(--color-faith-blue);
  color: var(--color-belief);
  padding: var(--space-l) var(--space-m);
  text-align: center;
}

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

.footer-inner {
  max-width: 900px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

.footer-promise {
  font-family: "Black Mango", serif;
  font-size: 1rem;
}

.footer-nav {
  display: flex;
  gap: var(--space-s);
  justify-content: center;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--color-belief);
  font-family: var(--font-body);
  font-size: 0.9rem;
  opacity: 0.9;
  transition: opacity var(--transition-soft);
}

.footer-nav a:hover { opacity: 1; }

/*==========================
  Responsive Adjustments
==========================*/
@media (max-width: 600px) {
  .hero { padding: var(--space-l) var(--space-s); }
}

/* Intro wrapper fills the viewport */
/* Intro wrapper */
#spark-intro-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

#spark-intro {
  position: fixed;
  inset: 0;
  background: #023550;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 1s ease;
  padding: 0 2rem;
}

#spark-intro-logo {
  position: absolute;
  top: clamp(1.75rem, 4.5vw, 3rem);
  left: 50%;
  transform: translateX(-50%);
  width: min(200px, 40vw);
  height: auto;
  display: block;
}

#spark-intro-logo img {
  width: 100%;
  height: auto;
  display: block;
}

#spark-intro.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* First two lines: Black Mango */
#spark-intro-text {
  font-family: "Black Mango", serif;
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  font-weight: 400;
  color: #EEEEE9;
  opacity: 0;
  transition: opacity 0.7s ease;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

/* Final line: Vincentia */
#spark-intro-text.accent {
  font-family: "Vincentia", cursive;
  font-size: clamp(4rem, 7vw, 5.8rem);
  letter-spacing: 0.01em;
  line-height: 1.1;
}

#spark-intro-text.visible { opacity: 1; }
#spark-intro-text.hidden { opacity: 0; }

/* Fresh node per line. The container holds the type styles and stays
   opaque; each line element fades itself in and is discarded afterwards. */
#spark-intro-text.line-host {
  opacity: 1;
  transition: none;
}

#spark-intro-text .intro-line {
  opacity: 0;
  transition: opacity 0.7s ease;
}

#spark-intro-text .intro-line.visible {
  opacity: 1;
}

body.spark-intro-active { overflow: hidden; }

html.skip-intro #spark-intro-wrapper {
  display: none !important;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 1.25rem 3rem;
  display: flex;
  justify-content: center;
  pointer-events: none; /* so intro overlay still gets clicks */
}

.site-header-inner {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: auto;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Default logo size on desktop */
.site-mark {
  width: 52px;
  height: auto;
}

/* Mobile header layout */
@media (max-width: 768px) {
  .site-header {
    padding: 0.75rem 1.25rem;
  }

  .site-header-inner {
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
  }

  /* Make the logo bigger on mobile */
  .site-mark {
    width: 90px;
  }

  /* Make the nav wrap nicely under the logo */
  .site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    font-size: 0.95rem;
  }

  .site-nav a,
  .nav-dropdown-toggle {
    font-size: 0.95rem;
  }
}

.site-name {
  font-family: "Black Mango", serif;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fdf8f3;
}

/*==========================
  Assessments Section Soft Redesign
==========================*/
/* =========================
   21 Aspects cards (no parallax)
   ========================= */
   .assessments-heading {
    text-align: center;
    font-family: var(--font-header);
    font-size: 2.2rem;
    color: var(--color-faith-blue);
    margin-bottom: 0.3rem;
  }
  
  .assessments-sub {
    text-align: center;
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: var(--color-devotion);
    max-width: 700px;
    margin: 0 auto 3rem auto;
    line-height: 1.55;
  }
  
   .assessments {
    background-color: var(--color-belief);
    max-width: 1400px;
    margin: 0 auto;
    padding: calc(var(--space-xl) * 1.4) var(--space-m);
  }
  
  /* each card */
  .assessment-block {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0;
    background: #fdf8f3;
    border-radius: 54px;
    overflow: hidden;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  
    /* Apple-style inset */
    --elev: 0;
    box-shadow:
      0 30px 80px rgba(0, 0, 0, calc(0.04 + 0.10 * var(--elev))),
      0 0 0 1px rgba(255, 255, 255, 0.65) inset;
  
    /* animation base state */
    opacity: 0;
    transform: translateX(-80px);
    transition:
      opacity 700ms ease,
      transform 700ms ease,
      box-shadow 400ms ease;
  }
  
  /* spacing */
  .assessment-block + .assessment-block {
    margin-top: 4.5rem;
  }
  
  /* fixed gradient, soft edges */
  .assessment-block::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(
        to right,
        #023550 0%,
        #023550 28%,
        rgba(2, 53, 80, 0.45) 48%,
        rgba(2, 53, 80, 0.02) 78%,
        rgba(2, 53, 80, 0) 100%
      );
    background-repeat: no-repeat;
    background-size: 100% 100%;
    opacity: 0.98;
    pointer-events: none;
    z-index: 0;
  }
  
  /* PRO mirrored gradient */
  .assessment-block--pro::before {
    background:
      linear-gradient(
        to left,
        #023550 0%,
        #023550 28%,
        rgba(2, 53, 80, 0.45) 48%,
        rgba(2, 53, 80, 0.02) 78%,
        rgba(2, 53, 80, 0) 100%
      );
  }
  
  /* PRO slides from opposite side */
  .assessment-block--pro {
    flex-direction: row-reverse;
    transform: translateX(80px);
  }
  
  /* when in view */
  .assessment-block.in-view,
  .assessment-block--pro.in-view {
    opacity: 1;
    transform: translateX(0);
  }
  
  /* stable gradient glow */
  .assessment-block.in-view::before {
    opacity: 1;
  }
  
  /* ===== Logo Column ===== */
  .assessment-logo-bg {
    position: relative;
    flex: 0 0 48%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 3rem 2.5rem;
    z-index: 1;
  }
  
  /* nudge toward dark side */
  .assessment-block--personal .assessment-logo-bg {
    padding-left: 1.75rem;
    padding-right: 3.5rem;
  }
  .assessment-block--pro .assessment-logo-bg {
    padding-right: 1.75rem;
    padding-left: 3.5rem;
    justify-content: flex-end;
  }
  
  /* glow halo */
  .assessment-logo-bg::after {
    content: "";
    position: absolute;
    inset-inline: 10%;
    height: 72%;
    border-radius: 999px;
    background: radial-gradient(circle at 50% 40%, rgba(255,255,255,0.28), transparent 60%);
    opacity: 0;
    filter: blur(14px);
    mix-blend-mode: screen;
    transition:
      opacity 600ms ease,
      transform 600ms ease;
  }
  
  .assessment-block.in-view .assessment-logo-bg::after {
    opacity: 0.9;
    transform: translateY(0);
  }
  
  /* logo img */
  .assessment-logo {
    position: relative;
    z-index: 2;
  }
  .assessment-logo img {
    width: 100%;
    max-width: 520px;
    height: auto;
  }
  
  /* ===== Content Column ===== */
  .assessment-content {
    position: relative;
    flex: 1 1 52%;
    padding: 3.5rem 5rem 3.5rem 4rem; /* increased right padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    z-index: 1;
  }
  
  .assessment-content h2 {
    font-family: var(--font-header);
    font-size: clamp(2.1rem, 2.7vw, 2.6rem);
    color: var(--color-faith-blue);
    margin-left: 0.25rem;
	line-height: 1;
  }
  
  .assessment-content p {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-devotion);
    max-width: 42rem;
  }
  
/* Smaller, centered buttons ONLY in the Assessments section */
.assessment-content .btn-primary {
  display: inline-block;          /* no full-width */
  margin: 1.5rem auto 0 auto;     /* center under paragraph */
  padding: 0.8rem 2.3rem;         /* smaller than hero */
  font-size: 0.95rem;             /* a bit smaller text */
  text-align: center;             /* center the label */
  border-radius: 40px;            /* softer pill, optional */
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15); /* lighter shadow */
}

.assessment-content .btn-primary:hover {
  background-color: #f8d196;
  transform: translateY(-2px);
}
  
  /* =========================
     Responsive
     ========================= */
  
  @media (max-width: 900px) {
    .assessment-block,
    .assessment-block--pro {
      flex-direction: column;
      transform: translateY(40px);
    }
  
    .assessment-block.in-view,
    .assessment-block--pro.in-view {
      transform: translateY(0);
    }
  
    .assessment-block::before,
    .assessment-block--pro::before {
      background:
        radial-gradient(
          circle at top center,
          #023550 0%,
          #023550 32%,
          rgba(2,53,80,0.35) 52%,
          rgba(2,53,80,0.02) 80%,
          rgba(2,53,80,0) 100%
        );
      background-repeat: no-repeat;
      background-size: 100% 100%;
    }
  
    .assessment-logo-bg {
      justify-content: center;
      padding: 2.75rem 2.25rem;
    }
  
    .assessment-block--personal .assessment-logo-bg,
    .assessment-block--pro .assessment-logo-bg {
      padding-left: 2.25rem;
      padding-right: 2.25rem;
      justify-content: center;
    }
  
    .assessment-content {
      padding: 2.5rem 2rem 3rem;
    }
  }
  
  @media (max-width: 768px) {
    .assessment-logo-bg {
      width: 100%;
      padding: var(--space-l);
    }
  }

/* ==========================
   PROGRAMS + ASSESSMENTS CARD GRID
   ========================== */

   #programs.development,
   #assessments-section.development {
    padding: 3rem 1.5rem 4rem;
  }
  
  #programs .programs-inner,
  #assessments-section .programs-inner {
    max-width: 1600px;        /* wider container like your screenshot */
    margin: 0 auto;
  }
  
  #programs .development-heading,
  #assessments-section .development-heading {
    text-align: center;
    font-family: var(--font-header);
    font-size: 2.2rem;
    color: var(--color-faith-blue);
    margin-bottom: 0.3rem;
  }
  
  /* GRID — wide 4-column layout */
  #programs .development-grid,
  #assessments-section .development-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);    /* restored wide boxes */
    gap: 2.5rem;                               /* more breathing room */
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  /* Responsive */
  @media (max-width: 1050px) {
    #programs .development-grid,
    #assessments-section .development-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  @media (max-width: 650px) {
    #programs .development-grid,
    #assessments-section .development-grid {
      grid-template-columns: 1fr;
    }
  }

  #programs .development-grid > li,
  #assessments-section .development-grid > li {
    aspect-ratio: 1 / 1;   /* make each slot a square */
    display: flex;         /* so the card can flex to fill it */
  }
  
  /* Each card sized like your screenshot */
  #programs .dev-card,
  #assessments-section .dev-card {
    width: 100%;
    height: 100%; /* shorter rectangle, not tall */
    background: #ffffff;
    border-radius: 2rem;
    box-shadow:
      0 10px 20px rgba(0,0,0,0.07),
      0 3px 6px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.8rem;
    overflow: hidden;
    transition: transform 200ms ease, box-shadow 200ms ease;
    text-decoration: none;
    color: inherit;
  }
  
  #programs .dev-card:hover,
  #assessments-section .dev-card:hover {
    transform: translateY(-6px);
    box-shadow:
      0 16px 28px rgba(0,0,0,0.12),
      0 6px 14px rgba(0,0,0,0.08);
  }
  
  /* Title spacing */
  #programs .dev-card-header,
  #assessments-section .dev-card-header {
    text-align: center;
    margin-bottom: 1rem;
  }
  
  #programs .dev-title,
  #assessments-section .dev-title {
    font-family: var(--font-header);
    font-size: clamp(1.4rem, 1.6vw, 1.8rem);
    color: var(--color-faith-blue);
    margin: 0 0 0.6rem 0;   /* reduced bottom margin */
    line-height: 1;     /* much tighter line spacing */
  }  
  
  .programs-sub {
    text-align: center;
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: var(--color-devotion);
    max-width: 700px;
    margin: 0 auto 3rem auto;
    line-height: 1.21;
  }
  /* Body */
 /* ==== PROGRAMS: Fix hover overlay & alignment ==== */

/* The body holds the overlapping layers */
#programs .dev-card-body,
#assessments-section .dev-card-body {
  position: relative;              /* critical for absolute children */
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 1rem;
  min-height: 0;
}

/* Both layers share the same box and are stacked */
#programs .dev-photo,
#programs .dev-content,
#assessments-section .dev-photo,
#assessments-section .dev-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 1.5rem;
  text-align: center;
}

/* PHOTO layer – visible by default */
#programs .dev-photo,
#assessments-section .dev-photo {
  opacity: 1;
  transition: opacity 200ms ease, transform 200ms ease;
}

/* Circle image sizing */
#programs .dev-photo img,
#assessments-section .dev-photo img {
  width: 70%;
  max-width: 280px;
  max-height: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
}

/* Assessment logos are graphics, not photos — keep full mark visible */
#assessments-section .dev-photo img {
  object-fit: contain;
  border-radius: 0;
}

/* CONTENT layer – hidden by default */
#programs .dev-content,
#assessments-section .dev-content {
  opacity: 0;
  transition: opacity 200ms ease;
}

/* Hover swap, for real pointers only. Touch browsers keep a tapped element in
   :hover, so the swap would stick at random; touch uses .is-revealed, set by
   the first tap (see script.js). */
@media (hover: hover) and (pointer: fine) {
  #programs .dev-card:hover .dev-photo,
  #assessments-section .dev-card:hover .dev-photo {
    opacity: 0;
    transform: scale(0.85);
  }

  #programs .dev-card:hover .dev-content,
  #assessments-section .dev-card:hover .dev-content {
    opacity: 1;
  }
}

#programs .dev-card.is-revealed .dev-photo,
#assessments-section .dev-card.is-revealed .dev-photo {
  opacity: 0;
  transform: scale(0.85);
}

#programs .dev-card.is-revealed .dev-content,
#assessments-section .dev-card.is-revealed .dev-content {
  opacity: 1;
}

/* Text inside hover */
#programs .dev-subtitle,
#assessments-section .dev-subtitle {
  font-family: var(--font-header);
  font-size: 1.3rem;
  margin-bottom: 1.21rem;
  line-height: 1.21;
}

#programs .dev-description,
#assessments-section .dev-description {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.5;
  color: #4c4c4c;
  max-width: 18rem;
  line-height: 1.21;
}

/* Revealed program cards need an explicit affordance: on touch the description
   is the first tap, so nothing otherwise says the card still opens a page. */
#programs .dev-cta {
  display: inline-block;
  margin-top: 2.6rem;
  padding: 0.6rem 1.6rem;
  border-radius: 999px;
  border: 1px solid rgba(2, 53, 80, 0.35);
  background: rgba(2, 53, 80, 0.07);
  color: #023550;
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
  #programs .dev-card:hover .dev-cta {
    transform: translateY(-1px);
    border-color: rgba(2, 53, 80, 0.6);
    background: rgba(2, 53, 80, 0.14);
  }
}

/* ==========================
   Assessments — dynamic treatment
   ========================== */
#assessments-section.development {
  background:
    radial-gradient(ellipse 70% 55% at 12% 15%, rgba(228, 203, 138, 0.32), transparent 60%),
    radial-gradient(ellipse 65% 55% at 90% 85%, rgba(204, 151, 82, 0.26), transparent 58%),
    var(--color-belief);
  padding: clamp(4rem, 7vw, 6rem) 1.5rem;
}

#assessments-section .development-heading {
  color: var(--color-faith-blue);
}

#assessments-section .programs-sub {
  color: var(--color-devotion);
}

#assessments-section .assessments-grid {
  align-items: stretch;
  gap: 1.75rem;
}

#assessments-section .assessments-grid > li {
  aspect-ratio: 1 / 1;
  min-height: 0;
}

#assessments-section .assessment-card {
  position: relative;
  padding: 1.6rem 1.4rem 1.5rem;
  border-radius: 1.75rem;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 20px 44px rgba(2, 53, 80, 0.28),
    0 0 0 1px rgba(228, 203, 138, 0.22);
  transition:
    transform 280ms ease,
    box-shadow 280ms ease;
}

#assessments-section .assessment-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 78%, rgba(253, 248, 243, 0.16), transparent 52%);
  pointer-events: none;
  z-index: 0;
}

#assessments-section .assessment-card > * {
  position: relative;
  z-index: 1;
}

/* Unified navy theme — logos use #768779 + #EEEEE9 */
#assessments-section .assessment-card--core,
#assessments-section .assessment-card--jr,
#assessments-section .assessment-card--teen,
#assessments-section .assessment-card--pro {
  background:
    linear-gradient(160deg, #07506a 0%, var(--color-faith-blue) 55%, #012536 100%);
}

#assessments-section .assessment-card .dev-title,
#assessments-section .assessment-card .dev-subtitle {
  color: #EEEEE9;
}

#assessments-section .assessment-card .dev-description {
  color: rgba(238, 238, 233, 0.88);
}

#assessments-section .assessment-audience {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  background: rgba(228, 203, 138, 0.14);
  color: var(--color-empowerment);
  border: 1px solid rgba(228, 203, 138, 0.28);
}

#assessments-section .assessment-card .dev-card-header {
  text-align: left;
  margin-bottom: 0.5rem;
}

#assessments-section .assessment-card .dev-title {
  font-size: clamp(1.25rem, 1.5vw, 1.55rem);
  line-height: 1.05;
  margin: 0;
}

#assessments-section .assessment-card .dev-photo img {
  width: 92%;
  max-width: 280px;
  aspect-ratio: auto;
  height: auto;
  border-radius: 0;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.28));
  transition: transform 320ms ease, filter 320ms ease;
}

#assessments-section .assessment-cta {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-empowerment);
}

#assessments-section .assessment-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow:
    0 28px 50px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(228, 203, 138, 0.35);
}

#assessments-section .assessment-card:hover .dev-photo img {
  transform: scale(1.06);
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.35));
}

@media (max-width: 650px) {
  #assessments-section .assessments-grid > li {
    aspect-ratio: 5 / 6;
    max-width: 380px;
    margin: 0 auto;
    width: 100%;
  }
}

/* base state, before it is scrolled into view */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.connect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
  margin-top: 26px;
}

.connect-card {
  border-radius: 18px;
  padding: 22px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}

.connect-card-title {
  margin: 0 0 10px;
  font-size: 18px;
}

.connect-card-text {
  margin: 0;
  line-height: 1.65;
  opacity: .92;
}

.connect-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.connect-email {
  margin-top: 14px;
}

.connect-email a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: .95;
}

/* Make embed feel intentional and prevent it from hanging off-center */
.form-embed {
  margin-top: 14px;
  border-radius: 16px;
  overflow: hidden;
}

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


/* once visible */
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
  
.founders {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 32px;
}

.founders img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  object-fit: cover;
}

/* Stack on smaller screens */
@media (max-width: 768px) {
  .founders {
    grid-template-columns: 1fr;
  }
}

  /* ==========================
     FOOTER LOGO
     ========================== */
  
  .footer-logo {
    width: 140px;
    height: auto;
    display: block;
    margin: 0 auto 1rem;
  }

  /* --- MOBILE HEADER FIXES (override earlier rules) --- */
@media (max-width: 768px) {
  /* tighten header padding */
  .site-header {
    padding: 0.75rem 1.25rem;
  }

  /* stack logo and nav, centered */
  .site-header-inner {
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
  }

  /* make the logo feel intentional, not tiny */
  .site-mark,
  .site-brand img {
    width: 35px;
    max-width: 35px;
    height: auto;
  }

  /* real nav container (you don’t have .main-nav) */
  .site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem 1.4rem; /* row / column gaps */
  }

  .site-nav a,
  .nav-dropdown-toggle {
    font-size: 0.9rem;
  }

  /* keep “21 Aspects TM” on one line now that
     “Assessments” is hidden via .hide-mobile */
  .nav-link-with-menu {
    white-space: nowrap;
  }
}

/* ==========================
   The Hearth Feature Section
   ========================== */
.hearth-feature {
  background-color: var(--color-faith-blue);
  padding: clamp(56px, 6vw, 96px) 2rem;
}
.hearth-feature-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 800px) {
  .hearth-feature-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
.hearth-feature-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.hearth-feature-media img {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: block;
}
.hearth-feature-content .kicker {
  display: block;
  font-family: var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--color-empowerment);
  margin-bottom: 0.35rem;
}
.hearth-feature-content h2 {
  font-family: var(--font-header);
  color: #fdf8f3;
  font-size: clamp(1.9rem, 3.5vw, 2.5rem);
  margin: 0.5rem 0 1rem 0;
  line-height: 1.15;
}
.hearth-feature-content p {
  font-family: var(--font-body);
  color: #fdf8f3;
  opacity: 0.9;
  line-height: 1.65;
  margin: 0 0 1.75rem 0;
}
.hearth-feature-content .hearth-feature-lead {
  color: var(--color-empowerment);
  font-size: 1.15rem;
  margin: 0 0 1rem 0;
  opacity: 1;
}

/* ==========================
   Facilitator Sessions
   ========================== */
.facilitator-feature {
  background: var(--color-faith-blue);
  padding: clamp(64px, 7vw, 104px) 2rem;
  text-align: center;
}

.facilitator-feature-inner {
  max-width: 900px;
  margin: 0 auto;
}

.facilitator-feature .kicker {
  display: block;
  font-family: var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--color-empowerment);
  margin-bottom: 0.35rem;
}

.facilitator-feature h2 {
  font-family: var(--font-header);
  color: #fdf8f3;
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0.5rem 0 1.25rem 0;
  line-height: 1.15;
}

.facilitator-feature-lead {
  font-family: var(--font-body);
  color: var(--color-empowerment);
  font-size: 1.2rem;
  margin: 0 0 1rem 0;
}

.facilitator-feature-copy {
  font-family: var(--font-body);
  color: #fdf8f3;
  opacity: 0.9;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto clamp(40px, 5vw, 56px) auto;
}

.facilitator-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 800px) {
  .facilitator-options {
    grid-template-columns: 1fr;
  }
}

.facilitator-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  background: rgba(253, 248, 243, 0.06);
  border: 1px solid rgba(253, 248, 243, 0.18);
  border-radius: 1.5rem;
  padding: 2rem 1.25rem;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.facilitator-option:hover {
  transform: translateY(-6px);
  background: rgba(253, 248, 243, 0.12);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
}

.facilitator-option--featured {
  background: var(--color-empowerment);
  border-color: var(--color-empowerment);
}

.facilitator-option--featured:hover {
  background: #e8d399;
}

.facilitator-option--featured .facilitator-option-time,
.facilitator-option--featured .facilitator-option-label,
.facilitator-option--featured .facilitator-option-price {
  color: var(--color-faith-blue);
}

.facilitator-option-badge {
  position: absolute;
  top: -0.75rem;
  background: var(--color-faith-blue);
  color: #fdf8f3;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
}

.facilitator-option-time {
  font-family: var(--font-header);
  font-size: 1.5rem;
  color: #fdf8f3;
  line-height: 1;
}

.facilitator-option-label {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: rgba(253, 248, 243, 0.85);
  margin-bottom: 0.5rem;
}

.facilitator-option-price {
  font-family: var(--font-header);
  font-size: 1.8rem;
  color: var(--color-empowerment);
}

.facilitator-option-desc {
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(253, 248, 243, 0.75);
  margin: 0.75rem 0 0;
  max-width: 16rem;
}

.facilitator-option--featured .facilitator-option-desc {
  color: rgba(2, 53, 80, 0.78);
}

/* ==========================
   Pathway cards (program pages)
   ========================== */
.path-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  text-align: left;
}

.path-card {
  background: #fdf8f3;
  border-radius: 1.35rem;
  padding: 1.25rem 1.35rem 1.4rem;
  box-shadow: 0 10px 24px rgba(2, 53, 80, 0.06);
  border: 1px solid rgba(2, 53, 80, 0.08);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.path-card--soon {
  background: #fdf8f3;
  box-shadow: 0 6px 18px rgba(2, 53, 80, 0.04);
}

.path-card--available {
  border-color: rgba(204, 151, 82, 0.45);
  box-shadow: 0 12px 26px rgba(2, 53, 80, 0.08);
}

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

.path-card-status {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: #CC9752;
  margin: 0 0 0.35rem;
  line-height: 1.2;
}

.path-card h3 {
  font-family: var(--font-header);
  font-size: 1.35rem;
  color: var(--color-faith-blue);
  margin: 0 0 0.3rem;
  line-height: 1.15;
}

.path-card-line {
  font-family: var(--font-body);
  font-size: 1.02rem;
  color: #023550;
  font-weight: 600;
  margin: 0 0 0.55rem;
  line-height: 1.35;
}

.path-card > p:not(.path-card-status):not(.path-card-line):not(.path-card-price) {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-devotion);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.path-card-aspects {
  margin: 0.55rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.3rem;
}

.path-card-aspects li {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: #023550;
  line-height: 1.4;
}

.path-card-aspects strong {
  color: var(--color-faith-blue);
}

.path-card .pro-buy,
.path-card .page-buy,
.path-card .offer-actions {
  margin-top: 0.85rem;
}

.path-card-price,
.offer-price {
  font-family: var(--font-body, "Agrandir Tight", sans-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-devotion, #768779);
  line-height: 1.3;
  margin: 0;
}

/* Sit directly under the journal title */
.path-card > h3 + .path-card-price {
  margin: 0 0 0.45rem;
}

.featured-offer-card > h3 + .offer-price {
  margin: -0.35rem 0 0.95rem;
  font-size: 1.08rem;
}

.featured-offer-card .offer-actions {
  margin-top: 0.85rem;
}

/* Uniform action buttons in pathway cards and featured offers */
.path-card .btn-primary,
.path-card .page-buy-trigger,
.path-card .pro-buy-trigger,
.featured-offer-card .btn-primary,
.featured-offer-card .page-buy-trigger,
.featured-offer-card .pro-buy-trigger,
.offer-actions .btn-primary,
.offer-actions .page-buy-trigger,
.offer-actions .pro-buy-trigger,
.page-buy-options .btn-primary,
.pro-buy-options .btn-primary {
  min-width: 15rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  text-align: center;
  white-space: nowrap;
  font-size: 0.9rem;
  line-height: 1.2;
  border-radius: 999px;
}

@media (max-width: 520px) {
  .path-card .btn-primary,
  .path-card .page-buy-trigger,
  .path-card .pro-buy-trigger,
  .featured-offer-card .btn-primary,
  .featured-offer-card .page-buy-trigger,
  .featured-offer-card .pro-buy-trigger,
  .offer-actions .btn-primary,
  .offer-actions .page-buy-trigger,
  .offer-actions .pro-buy-trigger,
  .page-buy-options .btn-primary,
  .pro-buy-options .btn-primary {
    min-width: 100%;
    width: 100%;
  }
}

.recognition-list,
.soft-list {
  list-style: none;
  padding: 0;
  margin: 1.65rem 0 0;
  text-align: center;
}

.recognition-list li,
.soft-list li {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.3vw, 1.15rem);
  color: #023550;
  line-height: 1.55;
  margin: 0 0 0.85rem;
}

.recognition-list li:last-child,
.soft-list li:last-child {
  margin-bottom: 0;
}

/* ==========================
   Framework / 21 Aspects band
   ========================== */
.framework-section {
  background-color: var(--color-belief, #EEEEE9);
  padding-block: clamp(56px, 6vw, 96px);
  padding-inline: 2rem;
}

.framework-section .container {
  max-width: 1100px;
  margin: 0 auto;
}

.framework-section .kicker {
  font-family: var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--color-devotion, #768779);
  margin-bottom: 0.55rem;
  display: block;
}

.framework-section .aspects-band {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  text-align: left;
  max-width: 1100px;
  margin: 0 auto;
}

.framework-section .aspects-band h2 {
  font-family: var(--font-header);
  font-size: clamp(1.9rem, 3.5vw, 2.5rem);
  color: var(--color-faith-blue, #023550);
  margin: 0 0 clamp(12px, 1.5vw, 18px) 0;
  line-height: 1.1;
  text-align: inherit;
}

.framework-section .aspects-band p {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--color-devotion, #768779);
  line-height: 1.65;
  margin: 0 0 clamp(14px, 1.8vw, 20px) 0;
  text-align: inherit;
}

.framework-section .aspects-band p:last-child {
  margin-bottom: 0;
}

@media (max-width: 860px) {
  .framework-section .aspects-band {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .framework-section .aspects-band img {
    margin: 0 auto;
  }
}
