/* ============================================================
   McKenzie Road Baptist Church — modern homepage
   Palette: sky-blue (brand) + warm gold + ivory surfaces
   Type: Fraunces (display) + Inter (body)
   ============================================================ */

:root,
[data-theme='light'] {
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', 'Helvetica Neue', system-ui, sans-serif;

  /* Surfaces — warm ivory */
  --color-bg: #f6f1e9;
  --color-surface: #fffdf9;
  --color-surface-2: #f3eee4;
  --color-surface-offset: #efe9dd;
  --color-divider: #e7e1d4;
  --color-border: #e0d9ca;

  /* Text — softened, less stark */
  --color-text: #33424a;
  --color-text-muted: #6b7a82;
  --color-text-faint: #a4aca8;
  --color-text-inverse: #f7fbf9;

  /* Brand — soft muted blue */
  --color-primary: #4f8193;
  --color-primary-hover: #3d6f81;
  --color-primary-deep: #2f5868;
  --color-sky: #74a8bc;
  --color-sky-light: #e8eef0;

  /* Accent — soft warm amber */
  --color-gold: #c8954a;
  --color-gold-hover: #ab7e36;
  --color-gold-soft: #f1e4cd;

  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(40,55,60,0.05);
  --shadow-md: 0 8px 24px rgba(40,55,60,0.07);
  --shadow-lg: 0 20px 50px rgba(40,55,60,0.12);

  --content-narrow: 760px;
  --content-default: 1080px;

  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.83rem + 0.3vw, 0.9375rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.3vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.3rem + 2.8vw, 3.5rem);
  --text-hero: clamp(2.4rem, 1rem + 6vw, 5rem);

  --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme='dark'] {
  --color-bg: #0e1a22;
  --color-surface: #142431;
  --color-surface-2: #182a38;
  --color-surface-offset: #15252f;
  --color-divider: #21313d;
  --color-border: #2c404d;

  --color-text: #d9e3ea;
  --color-text-muted: #93a4ad;
  --color-text-faint: #647079;
  --color-text-inverse: #0e1a22;

  --color-primary: #7fb6c8;
  --color-primary-hover: #93c6d8;
  --color-primary-deep: #0e1a22;
  --color-sky: #5fa3bb;
  --color-sky-light: #1d3340;

  --color-gold: #d9b06a;
  --color-gold-hover: #ecc078;
  --color-gold-soft: #2a2418;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 18px 48px rgba(0,0,0,0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0e1a22; --color-surface: #142431; --color-surface-2: #182a38;
    --color-surface-offset: #15252f; --color-divider: #21313d; --color-border: #2c404d;
    --color-text: #d9e3ea; --color-text-muted: #93a4ad; --color-text-faint: #647079;
    --color-primary: #6fb3dc; --color-primary-hover: #8cc3e6; --color-sky: #4ea3d4;
    --color-sky-light: #1c3343; --color-gold: #e0b25a; --color-gold-hover: #ecc078;
    --color-gold-soft: #2a2418;
  }
}

/* ---- Base ---- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { min-height: 100dvh; line-height: 1.65; font-family: var(--font-body); font-size: var(--text-base); color: var(--color-text); background: var(--color-bg); }
img,svg { display: block; max-width: 100%; height: auto; }
ul[role='list'] { list-style: none; }
input,button,textarea,select { font: inherit; color: inherit; }
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.12; text-wrap: balance; font-weight: 600; }
p,li,figcaption { text-wrap: pretty; max-width: 72ch; }
::selection { background: rgba(31,143,200,0.25); color: var(--color-text); }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; transition: color var(--transition), background var(--transition); }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--color-primary); color: #fff; padding: .6rem 1rem; border-radius: 0 0 var(--radius-md) 0; }
.skip-link:focus { left: 0; }

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--content-default); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.container--narrow { max-width: var(--content-narrow); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tint { background: var(--color-surface-2); }
.eyebrow { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-primary); margin-bottom: 0.75rem; }
.section__title { font-size: var(--text-xl); margin-bottom: 1rem; }
.section__lede { font-size: var(--text-lg); color: var(--color-text-muted); max-width: 60ch; margin-bottom: 2.5rem; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600; padding: .75rem 1.4rem; border-radius: var(--radius-full); border: 1.5px solid transparent; transition: all var(--transition); white-space: nowrap; }
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--gold { background: var(--color-gold); color: #1a1206; }
.btn--gold:hover { background: var(--color-gold-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn--ghost:hover { background: rgba(255,255,255,0.14); border-color: #fff; }

/* ---- Header ---- */
.header { position: sticky; top: 0; z-index: 100; background: color-mix(in oklab, var(--color-bg) 88%, transparent); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid transparent; transition: box-shadow var(--transition), border-color var(--transition); }
.header--scrolled { box-shadow: var(--shadow-sm); border-color: var(--color-border); }
.header__inner { max-width: var(--content-default); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); height: 100px; display: flex; align-items: center; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.brand__logo { height: 84px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--color-text); }
.brand__sub { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); }

.nav { margin-inline-start: auto; }
.nav__list { display: flex; align-items: center; gap: .25rem; }
.nav__list > li > a, .nav__list > li > .dropdown__btn { display: inline-flex; align-items: center; gap: .25rem; font-size: var(--text-sm); font-weight: 500; color: var(--color-text-muted); padding: .55rem .7rem; border-radius: var(--radius-sm); white-space: nowrap; }
.nav__list > li > a:hover, .nav__list > li > .dropdown__btn:hover { color: var(--color-text); background: var(--color-surface-2); }
.dropdown__btn::after { content: ''; width: 8px; height: 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform var(--transition); }
.dropdown--open .dropdown__btn::after { transform: rotate(225deg) translateY(1px); }

.dropdown { position: relative; }
.dropdown__menu { position: absolute; top: 100%; left: 0; min-width: 260px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: .4rem; margin-top: .4rem; opacity: 0; visibility: hidden; transform: translateY(6px); transition: all var(--transition); }
.dropdown--open .dropdown__menu, .dropdown:hover .dropdown__menu, .dropdown:focus-within .dropdown__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown__menu li a { display: block; font-size: var(--text-sm); color: var(--color-text-muted); padding: .6rem .75rem; border-radius: var(--radius-sm); }
.dropdown__menu li a:hover { color: var(--color-text); background: var(--color-surface-2); }

.header__actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.header__cta { padding: .6rem 1.15rem; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: var(--radius-full); color: var(--color-text-muted); transition: all var(--transition); }
.theme-toggle:hover { color: var(--color-text); background: var(--color-surface-2); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: var(--radius-sm); }
.nav-toggle span { width: 22px; height: 2px; background: var(--color-text); border-radius: 2px; transition: all var(--transition); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; padding-top: clamp(4.5rem, 10vw, 7rem); padding-bottom: clamp(5rem, 12vw, 9rem); isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(120% 90% at 80% -10%, #7fb3c8 0%, transparent 55%),
  linear-gradient(165deg, #578a9c 0%, #44787f 45%, #35606e 100%); }
.hero__bg::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1px); background-size: 22px 22px; opacity: .5; }
.hero__inner { max-width: var(--content-default); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); color: #fff; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__logo { display: flex; justify-content: center; margin-bottom: 1.75rem; }
.hero__logo img { width: 100%; max-width: 440px; height: auto; filter: brightness(0) invert(1) drop-shadow(0 6px 20px rgba(0,0,0,0.18)); opacity: 0.96; }
.hero__eyebrow { font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.85); margin-bottom: 1rem; }
.hero__title { font-size: var(--text-hero); font-weight: 600; letter-spacing: -0.02em; max-width: 18ch; color: #fff; }
.hero__lede { font-size: var(--text-lg); color: rgba(255,255,255,0.92); max-width: 52ch; margin-top: 1.25rem; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }
.hero__ridge { position: absolute; left: 0; right: 0; width: 100%; bottom: -1px; height: 90px; z-index: -1; display: block; }

/* ---- Welcome ---- */
.welcome__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--color-sky); }
.card h3 { font-size: var(--text-lg); margin-bottom: .5rem; }
.card p { color: var(--color-text-muted); font-size: var(--text-base); }
.card--pastor .card__icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: var(--radius-md); background: var(--color-sky-light); color: var(--color-primary); margin-bottom: 1.1rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-size: var(--text-sm); font-weight: 600; color: var(--color-primary); margin-top: 1rem; }
.link-arrow::after { content: '→'; transition: transform var(--transition); }
.link-arrow:hover { color: var(--color-primary-hover); }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---- Beliefs ---- */
.beliefs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 2rem; margin-top: 2rem; }
.beliefs li { font-size: var(--text-base); color: var(--color-text-muted); padding-left: 1.6rem; position: relative; }
.beliefs li::before { content: ''; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; background: var(--color-gold); border-radius: 2px; transform: rotate(45deg); }
.beliefs strong { color: var(--color-text); font-weight: 600; }

/* ---- Gatherings ---- */
.gatherings { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.gathering { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); }
.gathering--accent { background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-deep) 100%); color: #fff; border-color: transparent; }
.gathering--wide { grid-column: 1 / -1; }
.gathering--accent p, .gathering--accent .gathering__day { color: rgba(255,255,255,0.92); }
.gathering__day { font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-primary); margin-bottom: .6rem; }
.gathering h3 { font-size: var(--text-xl); margin-bottom: .5rem; }
.gathering a { color: var(--color-primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.gathering a:hover { color: var(--color-primary-hover); }
.gathering--accent a { color: #fff; text-decoration: underline; }

/* ---- Cards grid (ministries / outreach) ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.card--feature { background: linear-gradient(160deg, var(--color-gold-soft) 0%, var(--color-surface) 100%); border-color: var(--color-gold); }

/* Media cards (ministries with images) */
.card--media { padding: 0; overflow: hidden; }
.card__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 1px solid var(--color-border); background: var(--color-surface-2); }
.card__body { padding: 1.5rem 1.5rem 1.75rem; }
.card--media h3 { margin-top: 0; }

/* Deacon / teacher boards */
.board { margin: 0; }
.board img { display: block; width: 100%; max-width: 460px; margin-inline: auto; border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); background: var(--color-surface); }

/* Pastor feature */
.pastor { display: grid; grid-template-columns: 0.8fr 1fr; gap: 2.5rem; align-items: center; margin-top: 2.5rem; }
.pastor__photo { width: 100%; max-width: 300px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--color-border); }
.pastor__bio p { color: var(--color-text-muted); margin-bottom: 1rem; line-height: 1.65; }
.pastor__bio p:last-child { margin-bottom: 0; }
.pastor__tag { font-size: var(--text-lg); color: var(--color-text); font-weight: 500; }

/* Card role label */
.card__role { color: var(--color-primary); font-weight: 600; font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .05em; margin: .2rem 0 .75rem; }

/* Sunday School people grid */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem 1.25rem; margin-top: 2.5rem; }
.person { text-align: center; }
.person__img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto .65rem; border: 3px solid var(--color-surface); box-shadow: var(--shadow-sm); background: var(--color-surface-2); }
.person figcaption strong { display: block; font-size: var(--text-base); }
.person figcaption span { color: var(--color-text-muted); font-size: var(--text-sm); }

@media (max-width: 760px) {
  .pastor { grid-template-columns: 1fr; gap: 1.5rem; }
  .pastor__photo { max-width: 240px; margin-inline: auto; }
  .people { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Contact ---- */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: stretch; margin-top: 2.5rem; }
.contact__info { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); }
.contact__list { display: grid; gap: 1.25rem; }
.contact__list dt { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-faint); margin-bottom: .2rem; }
.contact__list dd { font-size: var(--text-base); color: var(--color-text); }
.contact__list a:hover { color: var(--color-primary); }
.contact__prayer { background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-deep) 100%); color: #fff; border-radius: var(--radius-lg); padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
.contact__prayer h3 { font-size: var(--text-lg); color: #fff; margin-bottom: .6rem; }
.contact__prayer p { color: rgba(255,255,255,0.92); margin-bottom: 1.25rem; }
.contact__prayer .btn--primary { background: var(--color-gold); color: #1a1206; align-self: flex-start; }
.contact__prayer .btn--primary:hover { background: var(--color-gold-hover); }

/* ---- Footer ---- */
.footer { background: var(--color-primary-deep); color: rgba(255,255,255,0.92); padding-block: 3rem 2rem; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: space-between; }
.footer__brand { display: flex; align-items: center; gap: 1rem; }
.footer__brand .brand__logo { height: 54px; filter: brightness(0) invert(1); }
.footer__motto { font-family: var(--font-display); font-style: italic; color: rgba(255,255,255,0.85); }
.footer__nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; max-width: 560px; }
.footer__nav a { font-size: var(--text-sm); color: rgba(255,255,255,0.75); }
.footer__nav a:hover { color: #fff; }
.footer__copy { width: 100%; padding-top: 1.5rem; margin-top: 1rem; border-top: 1px solid rgba(255,255,255,0.15); font-size: var(--text-xs); color: rgba(255,255,255,0.6); }

/* ---- Responsive ---- */
@media (min-width: 1321px) { .header__inner { max-width: 1640px; } }
@media (max-width: 1639px) {
  .header__inner { gap: 1rem; }
  .nav__list { gap: .15rem; }
  .nav__list > li > a, .nav__list > li > .dropdown__btn { padding: .5rem .55rem; }
}
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 1279px) {
  .nav-toggle { display: flex; }
  .header__cta { display: none; }
  .nav { position: absolute; top: 100px; left: 0; right: 0; background: var(--color-surface); border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-lg); max-height: 0; overflow: hidden; transition: max-height var(--transition); }
  .nav--open { max-height: 80vh; overflow-y: auto; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem clamp(1rem,4vw,2rem) 1rem; }
  .nav__list > li > a, .nav__list > li > .dropdown__btn { padding: .8rem .5rem; justify-content: space-between; border-radius: 0; border-bottom: 1px solid var(--color-divider); }
  .dropdown__menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; margin: 0; padding: 0 0 .3rem 1rem; background: transparent; }
  .dropdown__menu li a { padding: .55rem .5rem; }
  .dropdown__btn::after { display: none; }
}
@media (max-width: 860px) {
  .welcome__grid, .gatherings, .beliefs { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .cards { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
}

/* ============ MINISTRY PAGES ============ */
.page-hero { padding: clamp(2.5rem, 5vw, 3.5rem) 0 clamp(1.75rem, 3vw, 2.5rem); border-bottom: 1px solid var(--color-border); background: var(--color-surface-2); }
.page-hero--tint { background: var(--color-sky-light); }
.page-hero__title { font-size: var(--text-xl); font-family: var(--font-display); color: var(--color-text); margin-bottom: .35rem; }
.ministry { padding-block: clamp(2.5rem, 5vw, 4rem); }
.ministry__hero { margin: 0 0 2rem; }
.ministry__hero img { width: 100%; max-width: 520px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--color-border); display: block; }
.ministry__text p { color: var(--color-text-muted); line-height: 1.75; margin-bottom: 1rem; font-size: var(--text-lg); }
.ministry__text p:last-child { margin-bottom: 0; }
.ministry__back { margin-top: 2.5rem; }
.link-arrow { color: var(--color-primary); font-weight: 600; font-size: var(--text-sm); text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.link-arrow::after { content: '\2192'; transition: transform var(--transition); }
.link-arrow:hover { color: var(--color-primary-hover); }
.link-arrow:hover::after { transform: translateX(3px); }

/* Clickable ministry cards (overview grid) */
.cards--ministry { grid-template-columns: repeat(3, 1fr); }
.card--ministry { display: block; text-decoration: none; color: inherit; }
.card--ministry .card__body h3 { margin-bottom: .35rem; }
.card--ministry .card__body p { color: var(--color-text-muted); font-size: var(--text-sm); }
.card--ministry:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--color-sky); }

/* 4-col grid + portrait image for teacher cards */
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card__img--portrait { aspect-ratio: 3 / 4; object-fit: cover; }
@media (max-width: 980px) { .cards--4 { grid-template-columns: repeat(3, 1fr); } .cards--ministry { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards--4 { grid-template-columns: repeat(2, 1fr); } .cards--ministry { grid-template-columns: 1fr; } }

/* ============ PRAYER REQUEST FORM ============ */
.prayer-form { max-width: 620px; margin-top: 1.5rem; }
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-size: var(--text-sm); font-weight: 600; color: var(--color-text); margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: var(--text-base); color: var(--color-text);
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: .7rem .8rem; transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--color-sky); box-shadow: 0 0 0 3px var(--color-sky-light);
}
.field textarea { resize: vertical; min-height: 130px; }
.prayer-form__btn { margin-top: .5rem; }
.honey { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); left: 0; top: 0; opacity: 0; pointer-events: none; }
.form-status { margin-top: 1rem; font-size: var(--text-sm); font-weight: 600; min-height: 1.2em; }
.form-status--ok { color: var(--color-gold-hover); }
.form-status--err { color: #b3261e; }
.prayer-alt { margin-top: 1.5rem; font-size: var(--text-sm); color: var(--color-text-muted); }
.prayer-alt a { color: var(--color-primary); font-weight: 600; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* ===== Sermon Notes ===== */
.sermon__header { margin-bottom: 1.75rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--color-border); }
.sermon__date { font-size: var(--text-sm); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--color-primary); margin-bottom: .5rem; }
.sermon__title { font-family: var(--font-display); font-size: var(--text-xl); color: var(--color-text); margin-bottom: .25rem; line-height: 1.15; }
.sermon__series { font-size: var(--text-base); color: var(--color-text-muted); font-style: italic; }
.sermon__body p { color: var(--color-text-muted); line-height: 1.85; margin-bottom: 1.15rem; font-size: var(--text-lg); }
.sermon__body p:last-child { margin-bottom: 0; }

/* ===== Bulletins / resource list ===== */
.resource-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.resource-item a { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); margin-bottom: .75rem; text-decoration: none; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.resource-item a:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--color-sky); }
.resource-item__date { flex: 0 0 auto; font-weight: 600; color: var(--color-primary); min-width: 9rem; }
.resource-item__title { flex: 1 1 auto; color: var(--color-text); font-weight: 500; }
.resource-item__icon { flex: 0 0 auto; width: 22px; height: 22px; color: var(--color-text-muted); }
.resource-item a:hover .resource-item__icon { color: var(--color-sky); }
.resource-empty { padding: 2.25rem 1.5rem; text-align: center; color: var(--color-text-muted); background: var(--color-surface-2); border: 1px dashed var(--color-border); border-radius: var(--radius-lg); font-size: var(--text-base); }

/* ===== Calendar ===== */
.cal-current { margin: 1.75rem 0 2.5rem; }
.cal-current img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--color-border); box-shadow: var(--shadow-md); display: block; }
.cal-current figcaption { margin-top: .85rem; color: var(--color-text-muted); font-size: var(--text-sm); }
.cal-current figcaption a { color: var(--color-primary); font-weight: 600; }
.cal-current--empty { padding: 3rem 1.5rem; text-align: center; background: var(--color-surface-2); border: 1px dashed var(--color-border); border-radius: var(--radius-lg); }
.cal-current--empty p { color: var(--color-text-muted); font-size: var(--text-base); margin-bottom: .5rem; }
.cal-current__note a { color: var(--color-primary); font-weight: 600; }
.cal-archive__title { font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-text); margin: 2rem 0 1rem; }
.cal-archive { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.cal-archive__item a { display: block; text-decoration: none; }
.cal-archive__item img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--color-border); transition: transform var(--transition), box-shadow var(--transition); }
.cal-archive__item a:hover img { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cal-archive__label { display: block; margin-top: .5rem; text-align: center; color: var(--color-text-muted); font-size: var(--text-sm); font-weight: 500; }
@media (max-width: 720px) { .cal-archive { grid-template-columns: repeat(2, 1fr); } .resource-item__date { min-width: 7rem; } }
@media (max-width: 480px) { .cal-archive { grid-template-columns: 1fr; } }

/* ===== Bulletins (inline view) ===== */
.bulletin__latest { margin-top: 1.5rem; }
.bulletin__latest-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--color-border); }
.bulletin__date { font-family: var(--font-display); font-size: var(--text-xl); color: var(--color-text); line-height: 1.1; }
.bulletin__label { font-size: var(--text-sm); color: var(--color-primary); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-top: .15rem; }
.bulletin__download { display: inline-flex; align-items: center; gap: .5rem; padding: .65rem 1.1rem; background: var(--color-primary); color: #fff; border-radius: var(--radius-lg); font-size: var(--text-sm); font-weight: 600; text-decoration: none; transition: background var(--transition), transform var(--transition); }
.bulletin__download:hover { background: var(--color-sky); transform: translateY(-1px); }
.bulletin__download svg { width: 18px; height: 18px; }
.bulletin__pages { display: flex; flex-direction: column; gap: 1.25rem; }
.bulletin__page { width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--color-border); box-shadow: var(--shadow-md); display: block; background: var(--color-surface); }

/* ===== Partners & Affiliations ===== */
.partners { margin-top: 3rem; padding-top: 2.25rem; border-top: 1px solid var(--color-border); }
.partners__title { font-family: var(--font-display); font-size: var(--text-xl); color: var(--color-text); text-align: center; }
.partners__lede { text-align: center; color: var(--color-text-muted); margin-top: .35rem; margin-bottom: 1.75rem; }
.cards--partner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card--partner { display: flex; flex-direction: column; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; transition: transform var(--transition), box-shadow var(--transition); }
.card--partner:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card--partner .card__logo { display: flex; align-items: center; justify-content: center; height: 180px; background: var(--color-surface-2); padding: 1rem; }
.card--partner .card__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.card--partner .card__body { padding: 1rem 1.15rem 1.25rem; }
.card--partner .card__body h3 { font-family: var(--font-display); font-size: 1.15rem; color: var(--color-text); }
.card--partner .card__body p { color: var(--color-text-muted); font-size: var(--text-sm); margin-top: .3rem; }
@media (max-width: 980px) { .cards--partner { grid-template-columns: 1fr; } }

/* Hero logo responsive */
@media (max-width: 860px) {
  .hero__logo img { max-width: 300px; }
}
