/* ============================================================
   ASCENSION FAMILY MINISTRY — STYLES
   ============================================================ */

/* ---- Design Tokens ---------------------------------------- */
:root {
  /* Brand blue — #53688b is the ministry's colour; the rest are
     derived shades of it so headings and bars keep AA contrast. */
  --blue: #53688b;
  --blue-light: #6d82a6;
  --blue-pale: #dbe2ed;
  --blue-dark: #36445e;
  --blue-deep: #232c3c;

  --cream: #f5f7fa;
  --cream-mid: #eaeef4;

  --text: #1e2430;
  --text-sec: #414b5c;
  --text-muted: #626c7e;
  --white: #ffffff;
  --border: rgba(54, 68, 94, 0.13);

  --font: 'Lora', Georgia, 'Times New Roman', serif;
  --font-script: 'Dancing Script', 'Segoe Script', 'Brush Script MT', cursive;

  --shadow-sm: 0 1px 4px rgba(35, 44, 60, 0.07);
  --shadow-md: 0 4px 16px rgba(35, 44, 60, 0.10), 0 1px 4px rgba(35, 44, 60, 0.05);
  --shadow-lg: 0 12px 40px rgba(35, 44, 60, 0.13), 0 4px 12px rgba(35, 44, 60, 0.07);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --transition: 0.3s var(--ease);

  --header-h: 84px;
}

/* ---- Reset ------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.75;
  color: var(--text);
  background: var(--cream);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

button {
  font: inherit;
}

/* ---- Skip Link -------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--blue-dark);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-size: 0.875rem;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

/* ---- Container -------------------------------------------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ---- Typography ------------------------------------------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font);
  line-height: 1.25;
  color: var(--blue-dark);
  font-weight: 600;
}

h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.3rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
}

p {
  color: var(--text-sec);
  line-height: 1.8;
}

/* "Ascension" is always set in the script face */
.script {
  font-family: var(--font-script);
  font-weight: 700;
  letter-spacing: 0.005em;
}

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

.section-header .eyebrow::after {
  content: '';
  display: block;
  width: 36px;
  height: 1.5px;
  background: var(--blue);
  margin: 0.625rem auto 0;
  opacity: 0.6;
}

.section-title {
  margin-bottom: 1.25rem;
  color: var(--blue-dark);
}

.section-title .script {
  font-size: 1.22em;
  line-height: 1.1;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 55ch;
  margin-inline: auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header .eyebrow {
  display: block;
}

/* Marks copy that is still waiting on real content */
.is-placeholder {
  color: var(--text-muted);
  font-style: italic;
}

/* ---- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.9rem;
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: 0.925rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn--white {
  background: var(--white);
  color: var(--blue-dark);
}

.btn--white:hover {
  background: var(--blue-pale);
}

.btn--outline-white {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--white);
}

.btn--blue {
  background: var(--blue);
  color: var(--white);
}

.btn--blue:hover {
  background: var(--blue-dark);
  color: var(--white);
}

.btn--outline-blue {
  background: transparent;
  color: var(--blue-dark);
  box-shadow: inset 0 0 0 2px var(--blue);
}

.btn--outline-blue:hover {
  background: var(--blue);
  color: var(--white);
}

/* ---- Text Link -------------------------------------------- */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--blue);
  transition: color var(--transition), gap var(--transition);
}

.text-link:hover {
  color: var(--blue-dark);
  gap: 0.55rem;
}

/* Inline links in body copy get a taller hit area than their line box,
   so phone numbers stay comfortably tappable on a phone. */
.program-details a,
.faq-answer a,
.form-fallback a {
  padding: 0.45rem 0.2rem;
  margin: -0.45rem -0.2rem;
}

/* ---- Scroll-reveal ---------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}

.reveal--left {
  transform: translateX(-32px);
}

.reveal--right {
  transform: translateX(32px);
}

.reveal.visible {
  opacity: 1;
  transform: translate(0);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(35, 44, 60, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
}

html.no-hero-tab .site-header {
  background: var(--blue-dark);
}

.nav {
  width: 100%;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1180px;
  margin-inline: auto;
  padding: 0 1.5rem;
  height: var(--header-h);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-logo {
  height: 52px;
  width: auto;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.nav-brand-parish {
  font-size: 1.5rem;
  color: var(--white);
  line-height: 1.1;
}

.nav-brand-ministry {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 0.85rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-full);
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.nav-link--active {
  color: var(--white);
  position: relative;
}

.nav-link--active::after {
  content: '';
  position: absolute;
  bottom: 0.25rem;
  left: 0.85rem;
  right: 0.85rem;
  height: 2px;
  background: var(--blue-light);
  border-radius: 2px;
}

.nav-link--cta {
  background: var(--white);
  color: var(--blue-dark);
  font-weight: 700;
  padding: 0.6rem 1.25rem;
  margin-left: 0.6rem;
}

.nav-link--cta:hover {
  background: var(--blue-pale);
  color: var(--blue-dark);
}

.nav-link--cta.nav-link--active::after {
  display: none;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  z-index: 101;
}

.nav-hamburger:hover {
  background: rgba(255, 255, 255, 0.12);
}

.bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s, width 0.3s;
  transform-origin: center;
}

.nav-hamburger.open .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open .bar:nth-child(2) {
  opacity: 0;
  width: 0;
}

.nav-hamburger.open .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg,
      rgba(23, 30, 44, 0.74) 0%,
      rgba(23, 30, 44, 0.60) 60%,
      rgba(23, 30, 44, 0.52) 100%);
}

.hero-body {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  text-align: center;
}

.hero-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-crest {
  width: clamp(190px, 23vw, 310px);
  height: auto;
  filter: drop-shadow(0 2px 16px rgba(0, 0, 0, 0.45));
}

.hero-name {
  font-size: clamp(2.1rem, 5.6vw, 3.9rem);
  color: var(--white);
  line-height: 1.1;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.hero-name .script {
  display: block;
  font-size: 1.4em;
  line-height: 1.08;
}

.hero-name-line {
  display: block;
  font-size: 0.42em;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 0.35rem;
}

.hero-parish-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   HOME — MISSION
   ============================================================ */
.home-mission {
  background: var(--cream);
  padding: 5.5rem 0;
  text-align: center;
}

.home-mission-inner {
  max-width: 720px;
}

.home-mission-inner::before,
.home-mission-inner::after {
  content: '';
  display: block;
  width: 52px;
  height: 1.5px;
  background: var(--blue);
  margin: 0 auto;
  opacity: 0.6;
}

.home-mission-inner::before {
  margin-bottom: 2.5rem;
}

.home-mission-inner::after {
  margin-top: 2.5rem;
}

.home-mission-tagline {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 600;
  font-style: italic;
  color: var(--blue-dark);
  line-height: 1.35;
  margin-bottom: 1.25rem;
}

.home-mission-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 58ch;
  margin: 0 auto;
}

/* ============================================================
   HOME — SERVICE CARDS
   ============================================================ */
.home-services {
  background: var(--white);
  padding: 5rem 0 6rem;
}

.home-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 4px rgba(35, 44, 60, 0.08), 0 6px 20px rgba(35, 44, 60, 0.06);
  overflow: hidden;
  transition: box-shadow 0.28s ease, transform 0.28s ease;
}

.service-card:hover {
  box-shadow: 0 6px 16px rgba(35, 44, 60, 0.13), 0 16px 48px rgba(35, 44, 60, 0.1);
  transform: translateY(-6px);
}

.service-card-img {
  width: 100%;
  height: 210px;
  overflow: hidden;
  flex-shrink: 0;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card-img img {
  transform: scale(1.04);
}

.service-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.75rem 1.9rem;
  border-top: 3px solid var(--blue);
}

.service-card-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.6rem;
}

.service-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--blue-dark);
  line-height: 1.35;
  margin-bottom: 1rem;
  flex: 1;
}

.service-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  transition: gap 0.25s ease;
}

.service-card:hover .service-card-cta {
  gap: 0.6rem;
}

/* ============================================================
   TAB PAGE HEADER
   ============================================================ */
.tab-page-header {
  background: var(--cream);
  padding: calc(var(--header-h) + 2.75rem) 0 3.25rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.tab-page-title {
  font-size: clamp(1.95rem, 4.2vw, 3rem);
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.2;
  margin-top: 0.25rem;
}

.tab-page-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 56ch;
  margin: 1.1rem auto 0;
}

.tab-page-actions {
  margin-top: 1.9rem;
}

/* ============================================================
   ABOUT
   ============================================================ */
.section-about {
  padding: 6rem 0;
  background: var(--white);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}

.about-image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 28%;
  transition: transform 0.6s var(--ease);
}

.about-image-frame:hover .about-img {
  transform: scale(1.03);
}

.about-location-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.about-content-col p {
  margin-bottom: 1.2rem;
}

.about-content-col .section-title {
  margin-bottom: 1.5rem;
}

.about-audience-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* ============================================================
   MISSION QUOTE
   ============================================================ */
.section-quote {
  position: relative;
  padding: 7rem 0;
  overflow: hidden;
}

.section-quote-bg {
  position: absolute;
  inset: 0;
}

.section-quote-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.section-quote-overlay {
  position: absolute;
  inset: 0;
  background: rgba(23, 30, 44, 0.82);
}

.pull-quote {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}

.pull-quote::before {
  content: '\201C';
  display: block;
  font-size: 5rem;
  color: var(--blue-light);
  line-height: 0.7;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.pull-quote p {
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  font-style: italic;
  color: var(--white);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.pull-quote cite {
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-light);
}

/* ============================================================
   COMMUNITY GALLERY
   ============================================================ */
.section-gallery {
  padding: 6rem 0;
  background: var(--white);
}

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

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius-md);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.gallery-item:nth-child(1) img {
  object-position: center 62%;
}

.gallery-item:nth-child(2) img {
  object-position: center 38%;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ============================================================
   SERVE ROW — image beside copy
   ============================================================ */
.serve-row {
  display: grid;
  grid-template-columns: 56% 44%;
  min-height: 520px;
}

.serve-row--flipped {
  grid-template-columns: 44% 56%;
}

.serve-row--flipped .serve-row-media {
  order: 2;
}

.serve-row-media {
  overflow: hidden;
  position: relative;
}

/* Absolutely positioned so a portrait photo's intrinsic height cannot
   stretch the grid row — the image fills whatever the row turns out to be. */
.serve-row-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.serve-row:hover .serve-row-media img {
  transform: scale(1.04);
}

/* Each photo is anchored so the faces survive the wide crop */
#page-parents .serve-row-media img {
  object-position: center 26%;
}

#page-families .serve-row-media img {
  object-position: center 55%;
}

#page-nfp .serve-row-media img {
  object-position: center;
}

.serve-row-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 4rem 4.5rem;
  background: var(--cream);
}

.serve-row--flipped .serve-row-content {
  background: var(--white);
}

.serve-row-content .eyebrow {
  margin-bottom: 0.875rem;
}

.serve-row-title {
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  font-weight: 600;
  color: var(--blue-dark);
  line-height: 1.3;
  margin-bottom: 1.125rem;
  max-width: 22ch;
}

.serve-row-content p {
  font-size: 0.975rem;
  color: var(--text-sec);
  line-height: 1.85;
  margin-bottom: 1.85rem;
  max-width: 44ch;
}

/* ============================================================
   PROGRAMS / MINISTRIES
   ============================================================ */
.section-programs {
  padding: 5.5rem 0;
  background: var(--cream-mid);
  scroll-margin-top: calc(var(--header-h) + 8px);
}

.programs-heading {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.program-grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.program-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.program-grid--1 {
  grid-template-columns: minmax(0, 580px);
}

.program-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2.1rem 2rem;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--blue-pale);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100%;
}

.program-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.program-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.35;
}

/* .program-name::before {
  content: '✝';
  display: block;
  font-size: 0.7rem;
  color: var(--blue);
  margin-bottom: 0.5rem;
  opacity: 0.9;
} */

.program-name::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--blue);
  margin: 0.7rem 0 0.9rem;
  opacity: 0.65;
}

.program-desc {
  font-size: 0.925rem;
  color: var(--text-sec);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.program-desc em {
  color: var(--blue-dark);
}

.program-details {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.program-details li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.program-details a {
  color: var(--blue);
  font-weight: 700;
  transition: color var(--transition);
}

.program-details a:hover {
  color: var(--blue-dark);
}

.detail-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--blue);
}

.faq-link {
  margin-top: 0.85rem;
}

/* ============================================================
   INSTRUCTOR CARD (NFP page)
   ============================================================ */
.instructor-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: start;
  /* Capped so the bio keeps a readable line length on a wide screen */
  max-width: 820px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--blue-pale);
}

.instructor-photo {
  position: relative;
  width: 100%;
}

.instructor-photo>img:first-child {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* Certification badge, tucked onto the corner of the portrait */
.instructor-badge {
  position: absolute;
  right: -12px;
  bottom: -12px;
  width: 72px;
  height: 72px;
  padding: 5px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}

.instructor-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.3;
}

.instructor-credentials {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--blue);
  margin-top: 0.3rem;
}

.instructor-credentials::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--blue);
  margin: 0.85rem 0 1rem;
  opacity: 0.65;
}

/* Label/value facts people can scan before deciding to read the bio */
.instructor-facts {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.4rem;
}

.instructor-fact {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  font-size: 0.9rem;
}

.instructor-fact dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.instructor-fact dd {
  color: var(--text-sec);
  line-height: 1.6;
}

.instructor-fact dd a {
  color: var(--blue);
  font-weight: 700;
  padding: 0.55rem 0.2rem;
  margin: -0.55rem -0.2rem;
}

.instructor-fact dd a:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

/* Collapsible full bio */
.bio-toggle {
  border-top: 1px solid var(--border);
}

.bio-toggle > summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 0 0;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--blue);
  cursor: pointer;
  list-style: none;
}

.bio-toggle > summary::-webkit-details-marker {
  display: none;
}

.bio-toggle > summary::marker {
  content: none;
}

.bio-toggle > summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.25s var(--ease);
}

.bio-toggle[open] > summary::after {
  transform: rotate(45deg);
}

.bio-toggle > summary:hover {
  color: var(--blue-dark);
}

.bio-answer {
  padding-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-sec);
  line-height: 1.85;
}

/* ============================================================
   FAQ
   ============================================================ */
.section-faq {
  background: var(--cream);
  padding: 5rem 0 6rem;
  scroll-margin-top: calc(var(--header-h) + 8px);
}

.faq-list {
  max-width: 800px;
  margin: 2.5rem auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-dark);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::marker {
  content: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--blue);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.25s var(--ease);
}

details[open]>.faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 0 1.25rem;
  color: var(--text-sec);
  line-height: 1.8;
  font-size: 0.95rem;
}

.faq-answer a {
  color: var(--blue);
  font-weight: 700;
}

.faq-answer a:hover {
  text-decoration: underline;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.section-form {
  padding: 3.5rem 0 1rem;
  background: var(--cream);
}

/* Google Forms renders a ~640px column, so the card is capped rather than
   left floating in a very wide panel. The height is set to the form's own
   rendered height (measured at ~1760px wide-screen / ~1830px on a phone) so
   the page scrolls instead of trapping the reader in a nested scrollbar. */
.form-embed {
  max-width: 780px;
  margin-inline: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  padding: 0.5rem;
}

.form-embed iframe {
  display: block;
  width: 100%;
  height: 1820px;
  border: 0;
}

.form-fallback {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
}

.form-fallback a {
  color: var(--blue);
  font-weight: 700;
}

.form-fallback a:hover {
  text-decoration: underline;
}

.section-contact {
  padding: 3.5rem 0 6rem;
  background: var(--cream);
}

.contact-section-intro {
  text-align: center;
  max-width: 52ch;
  margin: 0 auto 3rem;
}

/* Each ministry is a full-width band, so a group with one contact
   fills its row instead of leaving a gap beside a taller column. */
.contact-groups {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.contact-group-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1rem;
}

.contact-item {
  padding: 1.25rem 1.4rem;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--blue);
}

.contact-role {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.contact-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 0.2rem;
}

.contact-link {
  display: inline-block;
  padding: 0.45rem 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue);
  transition: color var(--transition);
}

a.contact-link:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

.contact-link--email {
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.contact-parish-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 2rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

.contact-parish-strip strong {
  color: var(--blue-dark);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--blue-deep);
  padding: 4rem 0 0;
  color: rgba(255, 255, 255, 0.65);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-logo {
  height: 56px;
  width: auto;
  flex-shrink: 0;
  opacity: 0.9;
}

.footer-name {
  font-size: 1.05rem;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 0.1rem;
}

.footer-name .script {
  font-size: 1.35em;
}

.footer-tagline {
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
  margin-bottom: 0.35rem;
}

.footer-church {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition);
  white-space: nowrap;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.6;
}

/* ============================================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .about-layout {
    gap: 3rem;
  }

  .serve-row,
  .serve-row--flipped {
    grid-template-columns: 50% 50%;
  }

  .serve-row-content {
    padding: 3rem 2.5rem;
  }

  .program-grid--3 {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE NAV (≤900px)
   ============================================================ */
@media (max-width: 900px) {
  :root {
    --header-h: 70px;
  }

  .nav-logo {
    height: 42px;
  }

  .nav-brand-parish {
    font-size: 1.3rem;
  }

  .nav-brand-ministry {
    font-size: 0.6rem;
    letter-spacing: 0.14em;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    inset: 0;
    background: rgba(35, 44, 60, 0.985);
    backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    padding: 5rem 1.5rem 2rem;
    overflow-y: auto;
    z-index: 99;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
  }

  .nav-menu.open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    font-size: 1.25rem;
    padding: 0.85rem 2rem;
  }

  .nav-link--active::after {
    left: 2rem;
    right: 2rem;
    bottom: 0.45rem;
  }

  .nav-link--cta {
    margin-left: 0;
    margin-top: 0.75rem;
    font-size: 1.05rem;
    padding: 0.85rem 2.5rem;
  }
}

/* ============================================================
   RESPONSIVE — SMALL TABLET (≤860px)
   ============================================================ */
@media (max-width: 860px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-image-col {
    max-width: 440px;
    margin-inline: auto;
    width: 100%;
  }

  .home-services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-about {
    padding: 4rem 0;
  }

  .form-embed iframe {
    height: 1980px;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤640px)
   ============================================================ */
@media (max-width: 640px) {
  .container {
    padding-inline: 1.25rem;
  }

  .hero-body {
    padding: calc(var(--header-h) + 2rem) 0 3rem;
  }

  .hero-lockup {
    gap: 0.75rem;
    margin-bottom: 1.75rem;
  }

  .hero-crest {
    width: clamp(165px, 46vw, 220px);
  }

  .hero-name-line {
    letter-spacing: 0.16em;
  }

  .hero-parish-label {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 340px;
  }

  .home-mission {
    padding: 4rem 0;
  }

  .home-mission-inner::before {
    margin-bottom: 2rem;
  }

  .home-mission-inner::after {
    margin-top: 2rem;
  }

  .home-services {
    padding: 3.5rem 0 4rem;
  }

  .home-services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-card-img {
    height: 190px;
  }

  .tab-page-header {
    padding: calc(var(--header-h) + 2rem) 0 2.5rem;
  }

  .tab-page-actions {
    margin-top: 1.5rem;
  }

  .tab-page-actions .btn {
    width: 100%;
    max-width: 340px;
  }

  .section-quote {
    padding: 4.5rem 0;
  }

  .section-gallery {
    padding: 3.5rem 0 4rem;
  }

  .gallery {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }

  .serve-row,
  .serve-row--flipped {
    grid-template-columns: 1fr;
    grid-template-rows: 280px auto;
    min-height: auto;
  }

  .serve-row--flipped .serve-row-media {
    order: 0;
  }

  .serve-row-content {
    padding: 2.5rem 1.25rem;
  }

  .serve-row-content p {
    max-width: 100%;
  }

  .serve-row-title {
    max-width: 100%;
  }

  .serve-row-content .btn {
    width: 100%;
    max-width: 340px;
  }

  .section-programs {
    padding: 3.5rem 0 4rem;
  }

  .programs-heading {
    margin-bottom: 1.75rem;
  }

  .program-grid--3,
  .program-grid--1 {
    grid-template-columns: 1fr;
  }

  .program-card {
    padding: 1.75rem 1.5rem;
  }

  .instructor-card {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 1.75rem 1.5rem;
  }

  .instructor-photo {
    width: 190px;
    margin-inline: auto;
  }

  .instructor-badge {
    width: 62px;
    height: 62px;
    right: -8px;
    bottom: -8px;
  }

  /* Label above value — 9.5rem of label column is too wide on a phone */
  .instructor-fact {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .section-faq {
    padding: 3rem 0 4rem;
  }

  .faq-list {
    margin-top: 2rem;
  }

  .faq-question {
    font-size: 0.95rem;
  }

  .section-form {
    padding: 2.5rem 0 0.5rem;
  }

  .form-embed {
    padding: 0.25rem;
    border-radius: var(--radius-md);
  }

  .form-embed iframe {
    height: 2010px;
  }

  .section-contact {
    padding: 2.5rem 0 4rem;
  }

  .contact-groups {
    gap: 2rem;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding-top: 3rem;
  }

  .footer-brand {
    gap: 1rem;
    align-items: flex-start;
  }

  .footer-logo {
    height: 46px;
  }

  .footer-links {
    gap: 0.1rem 1.25rem;
  }
}

/* ============================================================
   RESPONSIVE — SMALL PHONES (≤380px)
   ============================================================ */
@media (max-width: 380px) {
  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
  }

  .nav-brand-ministry {
    font-size: 0.55rem;
  }

  .serve-row,
  .serve-row--flipped {
    grid-template-rows: 240px auto;
  }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 3px;
}

.site-header :focus-visible,
.hero :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--white);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}