/* ==========================================================================
   Alliance Ministry International U.A.E Church
   Elegant green and gold theme. Version 106.
   One stylesheet for all seven pages; site.js and the page markup stay as is.
   ========================================================================== */

:root {
  --deep: #08352c;
  --darker: #04211b;
  --green: #0f6b56;
  --ink: #16211d;
  --muted: #5d6b64;
  --gold: #c9a227;
  --gold-soft: #e3ca81;
  --mist: #f5f2ea;
  --paper: #ffffff;
  --line: #e3ded1;
  --gutter: 48px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; overflow-x: clip; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Inter", "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.65; letter-spacing: 0; overflow-x: clip; }
body.gallery-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, input, textarea { color: inherit; }
button { border: 0; }
img, video { display: block; max-width: 100%; }
img { height: auto; }
figure, h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; line-height: 1.08; letter-spacing: -.008em; text-wrap: balance; }
h2 { font-size: 54px; font-weight: 400; }
h3 { font-size: 30px; }
h2 em { color: var(--green); font-weight: 400; }
p + p { margin-top: 18px; }
svg.lucide { width: 21px; height: 21px; stroke-width: 1.5; flex: 0 0 auto; }
::selection { color: var(--deep); background: #e9dca4; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 200; top: 8px; left: 8px; padding: 12px 20px; background: #fff; color: var(--deep); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.content-width { width: min(1200px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.eyebrow { display: block; color: var(--gold); font-family: "Inter", "Segoe UI", Arial, sans-serif; font-size: 11px; font-weight: 600; line-height: 1.6; letter-spacing: .3em; text-transform: uppercase; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 24px; min-height: 54px; padding: 15px 28px; border: 1px solid transparent; border-radius: 2px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1.4; transition: color .3s, background .3s, border-color .3s, transform .4s var(--ease), box-shadow .4s var(--ease); }
.button.primary { background: var(--gold); color: var(--darker); box-shadow: 0 10px 26px #c9a22733; }
.button.secondary { border-color: #ffffff59; color: white; background: #ffffff08; }
.button.dark { background: var(--deep); color: #f6f2e7; }
.button.light { background: white; color: var(--deep); border-color: var(--line); }
.button:hover { transform: translateY(-3px); }
.button.primary:hover { background: #dbb93a; box-shadow: 0 16px 34px #c9a22745; }
.button.secondary:hover { background: white; color: var(--deep); }
.button.dark:hover { background: var(--green); }
.button.light:hover { border-color: var(--gold); }
.button svg, .text-link svg, .card-arrow svg { transition: transform .3s var(--ease); }
.button:hover svg, .text-link:hover svg { transform: translate(3px, -2px); }
.text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 26px; padding: 9px 0; border-bottom: 1px solid #c9a22780; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; transition: border-color .3s, color .3s; }
.text-link:hover { border-bottom-color: var(--gold); }
.icon-button, .mobile-icon-button { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #ffffff40; border-radius: 50%; color: inherit; background: transparent; transition: background .2s, color .2s, border-color .2s; }
.icon-button:hover, .mobile-icon-button:hover { background: #ffffff1f; border-color: var(--gold-soft); }

/* The header keeps its flex columns at every width; only the link row centres. */
.site-header { position: fixed; z-index: 50; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 30px; height: 104px; padding: 12px var(--gutter); color: white; background: linear-gradient(180deg, #04211bb3, #04211b00); border-bottom: 1px solid #ffffff1f; transition: height .35s var(--ease), background .35s, box-shadow .35s, border-color .35s; }
.site-header.is-scrolled, .site-header:has(.is-open) { height: 84px; background: #062a22f2; backdrop-filter: blur(12px); box-shadow: 0 10px 34px #04211b33; border-bottom-color: #ffffff14; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-glass { position: relative; display: block; width: 58px; height: 64px; }
.brand-logo { width: 100%; height: 100%; object-fit: contain; }
.logo-glass::after { content: ""; position: absolute; top: 59%; left: 21%; width: 42%; height: 24%; background: linear-gradient(110deg, transparent 25%, #fff8c0 48%, white 50%, transparent 73%); background-size: 300% 100%; clip-path: polygon(0 0,30% 48%,50% 0,70% 48%,100% 0,85% 100%,15% 100%); animation: crown-shine 7s ease-in-out infinite; pointer-events: none; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-family: "Cormorant Garamond", Georgia, serif; font-size: 21px; font-weight: 500; line-height: 1.1; letter-spacing: .01em; }
.brand-copy small { font-size: 8.5px; letter-spacing: .26em; text-transform: uppercase; line-height: 1.5; color: #e5dbc2; }
.nav { display: flex; align-items: center; justify-content: center; gap: 32px; flex: 1; order: 1; }
.nav a { position: relative; padding: 16px 0; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: center; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--gold-soft); }
.mobile-header-actions { order: 2; display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; position: relative; }
.menu-toggle > span { position: absolute; width: 18px; height: 1.5px; background: currentColor; transition: transform .25s, opacity .25s; }
.menu-toggle > span:nth-child(1) { transform: translateY(-6px); }
.menu-toggle > span:nth-child(3) { transform: translateY(6px); }
.menu-toggle.is-active > span:nth-child(1) { transform: rotate(45deg); }
.menu-toggle.is-active > span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active > span:nth-child(3) { transform: rotate(-45deg); }
.search-icon { display: block; width: 16px; height: 16px; border: 1.5px solid currentColor; border-radius: 50%; position: relative; }
.search-icon::after { content: ""; width: 7px; height: 1.5px; background: currentColor; position: absolute; bottom: -4px; right: -5px; transform: rotate(45deg); }
.site-search-panel { position: absolute; top: 100%; right: var(--gutter); width: min(440px, calc(100vw - var(--gutter) * 2)); padding: 26px; background: white; border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: 0 0 4px 4px; color: var(--ink); box-shadow: 0 24px 60px #04211b2e; display: none; }
.site-search-panel.is-open { display: block; animation: panel-enter .25s var(--ease); }
.site-search { display: flex; gap: 12px; border-bottom: 1px solid var(--line); }
.site-search input { width: 100%; min-width: 0; background: transparent; padding: 10px 2px; border: 0; outline-offset: 0; }
.search-submit { display: grid; place-items: center; flex-shrink: 0; width: 44px; padding: 10px; background: transparent; color: var(--green); }
.search-result { display: flex; align-items: center; justify-content: space-between; padding: 13px 2px; border-bottom: 1px solid var(--line); font-size: 13px; letter-spacing: .06em; transition: color .2s, background .2s; }
.search-result:hover { color: var(--deep); background: #f7f4ec; }
.search-empty { padding-top: 16px; font-size: 13px; color: var(--muted); }
.scroll-progress { position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; transform: scaleX(var(--scroll-progress, 0)); transform-origin: left; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); pointer-events: none; }

/* Home hero: full-bleed worship video under a deep green veil. */
.hero { position: relative; isolation: isolate; min-height: 700px; height: min(900px, 92svh); display: grid; place-items: center; overflow: hidden; color: white; background: var(--deep); }
.hero-slideshow { position: absolute; inset: -60px 0; z-index: -3; transform: translateY(var(--hero-shift, 0px)); }
.hero-video { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero-overlay { position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, #04211bcc 0%, #04211b73 34%, #04211b8c 72%, #04211be6 100%); }
.hero-content { width: min(980px, calc(100% - 2 * var(--gutter))); padding: 130px 0 150px; text-align: center; }
.hero-content .eyebrow { color: var(--gold-soft); margin-bottom: 26px; }
.hero h1 { font-size: 96px; line-height: .99; font-weight: 400; text-shadow: 0 4px 40px #04211b59; }
.hero h1 span, .hero h1 em { display: block; }
.hero h1 em { font-style: italic; font-weight: 400; color: #f0e6c9; }
.hero-tagline { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 26px; line-height: 1.5; margin-top: 30px; color: #f4eeda; }
.hero-copy { font-size: 15px; line-height: 1.8; color: #ffffffb8; margin-top: 14px; }
.hero-actions { display: flex; justify-content: center; gap: 14px; margin-top: 38px; }
.hero-bottom { position: absolute; bottom: 46px; left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; align-items: center; }
.scroll-cue { display: inline-flex; align-items: center; gap: 13px; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: #ffffffc4; }
.scroll-cue svg { animation: scroll-nudge 2.8s ease-in-out infinite; color: var(--gold-soft); }
.video-toggle { width: 40px; height: 40px; }
.video-toggle svg { width: 16px; height: 16px; }

.service-strip { border-bottom: 1px solid var(--line); background: white; }
.service-strip-inner { width: min(1200px, calc(100% - 2 * var(--gutter))); min-height: 132px; display: flex; align-items: center; justify-content: space-between; gap: 32px; margin: auto; padding-block: 26px; }
.service-detail { display: flex; gap: 18px; align-items: center; }
.service-detail > svg { width: 26px; height: 26px; color: var(--gold); }
.service-detail span { display: block; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.service-detail strong { font-family: "Cormorant Garamond", Georgia, serif; font-size: 21px; font-weight: 600; letter-spacing: .01em; }
.service-strip .text-link { white-space: nowrap; }

.welcome-section { padding-block: 130px 140px; }
.welcome-inner { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 116px; }
.welcome-photos { position: relative; padding: 0 40px 60px 0; }
.welcome-photo-main { position: relative; }
.welcome-photo-main img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 37% center; border-radius: 2px; }
.welcome-photo-main figcaption { position: absolute; bottom: 18px; left: 22px; color: white; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; text-shadow: 0 1px 10px #000; }
.welcome-photo-small { position: absolute; bottom: 0; right: -22px; width: 72%; border: 9px solid white; box-shadow: 0 26px 60px #04211b20; transform: translateY(var(--photo-shift, 0px)); }
.welcome-photo-small img { width: 100%; aspect-ratio: 1.8; object-fit: cover; }
.welcome-copy h2 { margin-block: 22px 26px; }
.welcome-copy > p:not(.eyebrow) { color: var(--muted); font-size: 15px; max-width: 470px; }
.welcome-copy .text-link { margin-top: 30px; }

.home-paths-section { padding: 104px 0 70px; background: var(--mist); }
.section-heading { margin: 0 auto 46px; }
.section-heading .eyebrow { margin-bottom: 18px; }
.section-heading.split { display: flex; justify-content: space-between; gap: 60px; align-items: flex-end; }
.section-heading.split > div { max-width: 720px; min-width: 0; }
.section-heading.split > p { max-width: 340px; flex: 0 1 340px; font-size: 14px; color: var(--muted); }
.home-link-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 30px; }
.home-link-card { display: block; min-width: 0; }
.card-image { position: relative; overflow: hidden; margin-bottom: 26px; border-radius: 2px; }
.card-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #04211b00 55%, #04211b59); }
.card-image img { width: 100%; aspect-ratio: 1.16; object-fit: cover; transition: transform .8s var(--ease); }
.home-link-card:nth-child(3) .card-image img { object-fit: contain; background: #e7e3d6; }
.card-arrow { position: absolute; z-index: 1; right: 16px; bottom: 16px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #ffffffeb; color: var(--deep); transition: color .25s, background .25s; }
.home-link-card:hover img { transform: scale(1.04); }
.home-link-card:hover .card-arrow { color: var(--darker); background: var(--gold); }
.home-link-card .eyebrow { margin-bottom: 12px; }
.home-link-card h3 { margin-bottom: 12px; font-size: 32px; }
.home-link-card > p { color: var(--muted); font-size: 14px; }
.home-celebration { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 64px; padding-top: 30px; border-top: 1px solid #dcd6c5; }
.home-celebration .eyebrow { margin-bottom: 6px; }
.home-celebration p { font-size: 14px; color: var(--muted); }
.home-celebration a { flex-shrink: 0; }

/* Callout band: the 2026 theme over a dimmed church photo. */
.page-callout { position: relative; isolation: isolate; overflow: hidden; padding: 108px var(--gutter); color: white; text-align: center; background: var(--darker); }
.page-callout::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("assets/gallery-3.jpeg") center 57% / cover; opacity: .22; transform: scale(1.04) translateY(var(--callout-shift,0px)); }
.page-callout::after { content: ""; position: absolute; z-index: -1; left: 50%; top: 44px; width: 62px; height: 1px; background: var(--gold); transform: translateX(-50%); }
.page-callout > .eyebrow { color: var(--gold-soft); }
.page-callout h2 { max-width: 860px; margin: 26px auto; font-size: 64px; }
.page-callout h2 em { color: var(--gold-soft); font-style: italic; }
.page-callout > p:not(.eyebrow) { color: #dfe6da; max-width: 580px; margin: 0 auto; font-size: 14px; }
.page-callout .button { margin-top: 34px; }

/* Interior pages share a photographic masthead and a generous reading width. */
body[data-page="purpose"] { --page-image: url("assets/gallery-3.jpeg"); }
body[data-page="ministries"] { --page-image: url("assets/gallery-1.jpeg"); }
body[data-page="lessons"] { --page-image: url("assets/gallery-2.jpeg"); }
body[data-page="gallery"], body[data-page="birthdays"] { --page-image: url("assets/gallery-mothers-day-2026-1.jpeg"); }
body[data-page="contact"] { --page-image: url("assets/gallery-4.jpeg"); }
.page-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: 570px; padding: 180px var(--gutter) 90px; color: white; background: var(--deep); }
.page-hero::before { content: ""; position: absolute; inset: -40px 0; z-index: -2; background: var(--page-image) center 46% / cover; transform: translateY(var(--hero-shift, 0px)); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #04211be6, #04211b73), linear-gradient(0deg, #04211b99, transparent); }
.page-hero-inner { width: min(1200px,100%); margin: auto; }
.page-hero .eyebrow { color: var(--gold-soft); margin-bottom: 24px; }
.page-hero h1 { font-size: 68px; font-weight: 400; max-width: 850px; }
.page-hero h1 em { color: var(--gold-soft); font-style: italic; font-weight: 400; }
.page-hero-copy { font-size: 16px; color: #eef1e9; max-width: 640px; margin-top: 28px; }
.intro-section, .ministries-section, .lessons-section, .gallery-section, .birthday-section, .contact-section { padding: 100px max(var(--gutter), calc((100% - 1200px) / 2)); }
.intro-section { position: relative; isolation: isolate; overflow: hidden; background: var(--mist); }
.intro-section::before { content: ""; position: absolute; z-index: -1; left: -25%; width: 150%; height: 150px; bottom: -95px; border-radius: 50%; background: #bcd6c84d; transform: translateX(var(--intro-grid-x,0px)) translateY(var(--intro-sheen-y,0px)); }
.intro-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 38px; margin: 54px 0 66px; counter-reset: principles; }
.intro-grid article { padding-top: 26px; border-top: 1px solid #c8c2ae; }
.intro-grid article::before { counter-increment: principles; content: "0" counter(principles); display: block; margin-bottom: 26px; color: var(--gold); font-size: 12px; letter-spacing: .2em; }
.intro-grid h3 { margin-bottom: 16px; font-size: 34px; }
.intro-grid p { color: var(--muted); font-size: 15px; }
.focus-panel { display: grid; grid-template-columns: 1fr 1.1fr; gap: 45px; border-top: 1px solid var(--line); padding-top: 34px; align-items: center; }
.focus-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.focus-tab { background: transparent; border: 1px solid var(--line); padding: 12px 18px; border-radius: 2px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; transition: color .25s, background .25s, border-color .25s; }
.focus-tab:hover { background: #eee9dc; border-color: #cfc7b1; }
.focus-tab.is-active { color: white; background: var(--deep); border-color: var(--deep); }
.focus-card { min-height: 176px; padding-left: 34px; border-left: 2px solid var(--gold); }
.focus-card span { font-size: 10px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.focus-card h3 { margin: 14px 0; }
.focus-card p { font-size: 14px; color: var(--muted); }
.focus-card.is-changing { animation: panel-enter .35s var(--ease); }
.ministry-item { display: grid; grid-template-columns: 80px 1fr 200px; align-items: center; gap: 28px; padding: 34px 0; border-top: 1px solid var(--line); }
.ministry-item:last-child { border-bottom: 1px solid var(--line); }
.ministry-number { color: var(--gold); font-size: 13px; letter-spacing: .18em; }
.ministry-item h3 { font-size: 34px; margin-bottom: 12px; }
.ministry-item p { color: var(--muted); font-size: 15px; max-width: 580px; }
.ministry-item > .text-link { justify-self: end; }
.ministry-list { margin-top: 62px; }
.ministry-photo { width: 100%; max-height: 450px; aspect-ratio: 2.7; object-fit: cover; margin-top: 50px; border-radius: 2px; }
.lessons-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px; }
.lesson-card { position: relative; display: flex; flex-direction: column; padding: 44px; border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: 2px; background: var(--mist); }
.lesson-card > span { font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.lesson-card > .lucide { margin: 0 0 30px; color: var(--green); width: 37px; height: 37px; }
.lesson-card h3 { margin: 24px 0 18px; font-size: 36px; }
.lesson-card p { color: var(--muted); font-size: 15px; margin-bottom: 32px; }
.lesson-card .button { align-self: flex-start; margin-top: auto; }
.gallery-folder-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; }
.gallery-folder { padding: 0; background: transparent; text-align: left; border-radius: 2px; }
.folder-tab { display: none; }
.gallery-folder > img { width: 100%; aspect-ratio: 1.2; object-fit: cover; border-radius: 2px; transition: filter .35s, transform .8s var(--ease); }
.gallery-folder[data-album="mothersday"] > img { object-fit: contain; background: #e7e3d6; }
.gallery-folder:hover > img { filter: brightness(1.06); }
.folder-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding-top: 24px; }
.folder-meta h3 { font-size: 27px; }
.folder-meta p { color: var(--muted); white-space: nowrap; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; padding-top: 8px; }
.video-feature { display: grid; grid-template-columns: .65fr 1fr; align-items: center; gap: 64px; margin-top: 90px; padding-top: 76px; border-top: 1px solid var(--line); }
.video-feature h3 { font-size: 40px; margin: 20px 0; }
.video-feature-copy > p:not(.eyebrow) { color: var(--muted); font-size: 15px; }
.story-video { width: 100%; max-height: 480px; background: #062a22; border-radius: 2px; }
.gallery-lightbox { display: none; position: fixed; z-index: 100; inset: 0; background: #04211bfa; padding: 70px 90px; color: white; }
.gallery-lightbox.is-open { display: grid; place-items: center; animation: panel-enter .2s ease; }
.gallery-lightbox figure { display: grid; place-items: center; gap: 16px; width: 100%; height: 100%; min-height: 0; }
.gallery-lightbox img { max-width: 100%; max-height: calc(100svh - 185px); width: auto; object-fit: contain; }
.gallery-lightbox figcaption { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; text-align: center; color: #e9e3d2; }
.gallery-close, .gallery-nav { display: grid; place-items: center; position: absolute; background: #ffffff0f; color: white; border: 1px solid #ffffff40; width: 46px; height: 46px; border-radius: 50%; transition: background .25s, border-color .25s; }
.gallery-close:hover, .gallery-nav:hover { background: #ffffff22; border-color: var(--gold-soft); }
.gallery-close { right: 22px; top: 22px; }
.gallery-nav { top: 50%; transform: translateY(-50%); }
.gallery-prev { left: 22px; }
.gallery-next { right: 22px; }
.birthday-card { display: grid; grid-template-columns: .5fr 1fr; gap: 60px; align-items: start; padding-top: 42px; border-top: 1px solid var(--line); }
.birthday-card-copy { position: sticky; top: 130px; }
.birthday-card-copy > span { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.birthday-card-copy h3 { margin: 20px 0; font-size: 36px; }
.birthday-card-copy p { color: var(--muted); font-size: 15px; }
.birthday-media { display: grid; gap: 24px; min-width: 0; }
.birthday-frame { overflow: hidden; border: 1px solid var(--line); border-radius: 2px; }
.birthday-frame img { width: 100%; height: auto; }
.contact-section { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.contact-copy h2 { margin: 20px 0 26px; }
.contact-copy > p:not(.eyebrow) { color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0; }
.social-links { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.social-link { display: flex; align-items: center; gap: 9px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.social-icon { display: grid; place-items: center; width: 24px; height: 24px; color: var(--green); }
.social-icon svg { width: 22px; height: 22px; }
.instagram-icon svg { fill: none; stroke: currentColor; stroke-width: 1.5; }
.facebook-icon svg { fill: currentColor; width: 17px; height: 17px; }
.copy-status, .form-status { min-height: 25px; font-size: 12px; margin-top: 12px; color: var(--green); }
.contact-form { padding: 0; }
.contact-form label { display: grid; gap: 9px; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 22px; }
.contact-form input, .contact-form textarea { width: 100%; max-width: 100%; border: 1px solid #d8d2c2; border-radius: 2px; padding: 14px 16px; background: #faf8f3; font-weight: 400; font-size: 16px; letter-spacing: 0; text-transform: none; transition: border-color .25s, background .25s; }
.contact-form input:focus, .contact-form textarea:focus { background: white; border-color: var(--gold); }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form > button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; background: var(--deep); color: white; padding: 17px 30px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; border-radius: 2px; transition: background .3s; }
.contact-form > button:hover { background: var(--green); }
.form-note { font-size: 12px; color: var(--muted); margin-top: 12px; }
.phone-showcase-section { display: grid; grid-template-columns: .8fr 1fr; align-items: center; gap: 70px; padding: 92px max(var(--gutter),calc((100% - 1200px)/2)); background: var(--mist); overflow: hidden; }
.phone-showcase-copy h2 { margin: 22px 0; }
.phone-showcase-copy > p:not(.eyebrow) { color: var(--muted); font-size: 15px; max-width: 410px; }
.online-social-actions { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 28px; }
.online-social-actions a { border-bottom: 1px solid #c9a22780; padding: 7px 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.phone-stage { position: relative; height: 490px; min-width: 0; perspective: 1000px; }
.phone-card { position: absolute; left: 50%; top: 50%; width: 182px; transform: translate(-50%,-50%); }
.phone-card-left { transform: translate(calc(-50% - 160px), -44%) rotate(-6deg) scale(.83); }
.phone-card-right { transform: translate(calc(-50% + 160px), -44%) rotate(6deg) scale(.83); }
.phone-card-center { z-index: 2; }
.phone-label { display: block; text-align: center; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; margin-bottom: 12px; color: var(--muted); }
.iphone-frame { padding: 6px; border: 2px solid #8d8873; border-radius: 30px; background: #16211d; box-shadow: 0 20px 40px #04211b29; }
.iphone-screen { aspect-ratio: 738/1600; overflow: hidden; border-radius: 22px; }
.iphone-screen img { width: 100%; height: 100%; object-fit: cover; }

.site-footer { padding: 66px max(var(--gutter),calc((100% - 1200px)/2)) 28px; color: #d9e2da; background: #04211b; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 60px; padding-bottom: 40px; margin-bottom: 26px; border-bottom: 1px solid #ffffff1a; }
.footer-top .brand-copy strong { font-size: 23px; }
.footer-invite { text-align: right; }
.footer-invite strong { display: block; color: white; font-family: "Cormorant Garamond", Georgia, serif; font-size: 21px; font-weight: 400; }
.footer-invite span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #a9bcae; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 26px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 26px; }
.footer-links a { transition: color .2s; }
.footer-links a:hover { color: var(--gold-soft); }
.footer-brand { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 10px; letter-spacing: .08em; color: #9db1a4; }
.visitor-counter { font-variant-numeric: tabular-nums; }
.back-top { position: fixed; z-index: 40; bottom: 24px; right: 24px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--deep); color: var(--gold-soft); border: 1px solid #c9a22766; box-shadow: 0 10px 30px #04211b3d; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s, transform .25s, visibility .25s, background .25s; }
.back-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--green); }

/* Motion: gentle reveals, then the small loops. */
.reveal-pending { opacity: 0; transform: translateY(30px); }
.reveal-pending[data-reveal="right"] { transform: translateX(36px); }
.reveal-pending[data-reveal="left"] { transform: translateX(-36px); }
.reveal { transition: opacity .95s var(--ease), transform .95s var(--ease); transition-delay: var(--reveal-delay,0ms); }
.reveal.is-visible { opacity: 1; transform: translate(0); }
@keyframes panel-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes crown-shine { 0%,65% { background-position: 150% 0; opacity: 0; } 70%,88% { opacity: .85; } 95%,100% { background-position: -80% 0; opacity: 0; } }
@keyframes scroll-nudge { 0%,100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: no-preference) {
  .hero-content > *, .page-hero-inner > * { animation: panel-enter 1.1s var(--ease) both; }
  .hero-content h1, .page-hero h1 { animation-delay: .1s; }
  .hero-tagline, .page-hero-copy { animation-delay: .2s; }
  .hero-copy { animation-delay: .3s; }
  .hero-actions { animation-delay: .4s; }
}
@media (min-width: 1800px) {
  .hero h1 { font-size: 108px; }
  .hero-content { width: 1160px; }
}

@media (max-width: 1200px) {
  :root { --gutter: 32px; }
  .site-header { gap: 22px; }
  .nav { gap: 21px; }
  .brand-copy strong { font-size: 19px; }
  .brand-copy small { font-size: 7.5px; }
  .logo-glass { width: 50px; height: 56px; }
  h2 { font-size: 47px; }
  .hero h1 { font-size: 84px; }
  .welcome-inner { gap: 72px; }
  .welcome-copy h2 { font-size: 46px; }
  .contact-section { gap: 50px; }
  .phone-showcase-section { gap: 25px; }
  .page-hero h1 { font-size: 60px; }
  .page-callout h2 { font-size: 58px; }
}
@media (max-width: 1050px) {
  .site-header, .site-header.is-scrolled, .site-header:has(.is-open) { height: 84px; }
  .mobile-header-actions { margin-left: auto; }
  .menu-toggle { display: inline-grid; }
  .nav { position: absolute; display: none; left: 0; right: 0; top: 100%; max-height: calc(100svh - 84px); overflow-y: auto; background: #062a22f7; backdrop-filter: blur(12px); border-top: 1px solid #ffffff20; padding: 22px var(--gutter) 32px; }
  .nav.is-open { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 32px; animation: panel-enter .3s var(--ease); box-shadow: 0 24px 40px #04211b40; }
  .nav a { padding: 16px 0; border-bottom: 1px solid #ffffff1c; font-size: 13px; letter-spacing: .18em; }
  .nav a::after { bottom: 0; }
  .hero { min-height: 660px; }
  .hero h1 { font-size: 72px; }
  .service-strip-inner { gap: 20px; }
  .service-detail { gap: 12px; }
  .service-detail strong { font-size: 18px; }
  .welcome-inner { gap: 45px; }
  .welcome-copy h2 { font-size: 42px; }
  .welcome-photos { padding-right: 15px; }
  .welcome-photo-small { right: -15px; }
  .home-link-grid { gap: 22px; }
  .section-heading.split { gap: 35px; }
  h2 { font-size: 43px; }
  h3 { font-size: 28px; }
  .page-hero h1 { font-size: 52px; }
  .focus-panel { grid-template-columns: 1fr; gap: 30px; }
  .focus-card { min-height: 145px; }
  .ministry-item { grid-template-columns: 48px 1fr 160px; }
  .folder-meta { display: block; }
  .phone-showcase-section { grid-template-columns: 1fr; text-align: center; }
  .phone-showcase-copy > p:not(.eyebrow) { margin-inline: auto; max-width: 560px; }
  .online-social-actions { justify-content: center; }
  .phone-stage { width: min(600px,100%); margin: auto; }
}
@media (max-width: 700px) {
  :root { --gutter: 22px; }
  h2 { font-size: 38px; }
  h3 { font-size: 27px; }
  .site-header { padding: 10px var(--gutter); gap: 10px; }
  .brand { gap: 9px; }
  .brand-copy strong { font-size: 17px; }
  .brand-copy small { font-size: 6.5px; letter-spacing: .2em; }
  .logo-glass { width: 40px; height: 48px; }
  .mobile-icon-button { width: 40px; height: 40px; }
  .site-search-panel { right: var(--gutter); left: var(--gutter); width: auto; }
  .hero { min-height: 640px; height: auto; padding-top: 40px; }
  .hero-content { padding: 140px 0 150px; }
  .hero h1 { font-size: 56px; }
  .hero-tagline { font-size: 22px; margin-top: 22px; }
  .hero-copy { font-size: 14px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 30px; }
  .hero-actions .button { min-height: 52px; padding: 14px 20px; gap: 14px; }
  .hero-bottom { bottom: 34px; }
  .scroll-cue { font-size: 9px; gap: 8px; letter-spacing: .18em; }
  .service-strip-inner { display: grid; grid-template-columns: 1fr; gap: 22px; padding: 28px 0; }
  .service-strip .text-link { justify-self: start; margin-left: 38px; padding-top: 0; }
  .welcome-section { padding: 72px 0 76px; }
  .welcome-inner { grid-template-columns: 1fr; gap: 45px; }
  .welcome-photos { padding: 0 38px 48px 0; }
  .welcome-photo-main img { aspect-ratio: 1.1; }
  .welcome-photo-small { right: 0; width: 65%; border-width: 6px; }
  .welcome-copy h2 { font-size: 40px; }
  .welcome-copy > p:not(.eyebrow) { max-width: none; }
  .home-paths-section { padding: 70px 0 48px; }
  .section-heading { margin-bottom: 32px; }
  .section-heading.split { display: block; }
  .section-heading.split > p { margin-top: 22px; max-width: 100%; }
  .home-link-grid { grid-template-columns: 1fr; gap: 42px; }
  .card-image { margin-bottom: 20px; }
  .card-image img { aspect-ratio: 1.3; }
  .home-link-card h3 { font-size: 31px; }
  .home-celebration { align-items: flex-start; flex-direction: column; margin-top: 40px; gap: 15px; }
  .page-callout { padding: 74px var(--gutter); }
  .page-callout::after { top: 32px; }
  .page-callout h2 { font-size: 46px; }
  .page-hero { min-height: 480px; padding: 150px var(--gutter) 68px; }
  .page-hero h1 { font-size: 44px; }
  .page-hero-copy { font-size: 14px; margin-top: 20px; }
  .intro-section, .ministries-section, .lessons-section, .gallery-section, .birthday-section, .contact-section { padding: 64px var(--gutter); }
  .intro-grid { grid-template-columns: 1fr; gap: 30px; margin: 40px 0; }
  .intro-grid article::before { margin-bottom: 12px; }
  .intro-grid h3 { margin-bottom: 12px; }
  .focus-tab { padding: 10px 13px; font-size: 10px; letter-spacing: .16em; }
  .focus-card { padding-left: 22px; min-height: 190px; }
  .ministry-item { grid-template-columns: 34px minmax(0,1fr); gap: 8px 15px; padding: 26px 0; }
  .ministry-item h3 { font-size: 29px; }
  .ministry-item > .text-link { grid-column: 2; justify-self: start; }
  .ministry-list { margin-top: 32px; }
  .ministry-photo { aspect-ratio: 1.3; margin-top: 32px; }
  .lessons-grid { grid-template-columns: 1fr; gap: 22px; }
  .lesson-card { padding: 30px; }
  .lesson-card h3 { font-size: 32px; }
  .gallery-folder-grid { grid-template-columns: 1fr; gap: 38px; }
  .gallery-folder > img { aspect-ratio: 1.35; }
  .folder-meta { display: flex; padding-top: 18px; }
  .folder-meta h3 { font-size: 28px; }
  .video-feature { grid-template-columns: 1fr; gap: 25px; margin-top: 48px; padding-top: 44px; }
  .video-feature h3 { font-size: 35px; }
  .gallery-lightbox { padding: 80px 16px 110px; }
  .gallery-lightbox img { max-height: calc(100svh - 250px); }
  .gallery-nav { top: auto; bottom: 23px; transform: none; }
  .gallery-prev { left: calc(50% - 55px); }
  .gallery-next { right: calc(50% - 55px); }
  .birthday-card { grid-template-columns: 1fr; gap: 30px; }
  .birthday-card-copy { position: static; }
  .contact-section { grid-template-columns: 1fr; gap: 40px; }
  .contact-form { padding-top: 34px; border-top: 1px solid var(--line); }
  .phone-showcase-section { padding: 64px var(--gutter) 44px; gap: 15px; }
  .phone-stage { height: 380px; }
  .phone-card { width: 144px; }
  .phone-card-left { transform: translate(calc(-50% - 90px),-44%) rotate(-6deg) scale(.72); }
  .phone-card-right { transform: translate(calc(-50% + 90px),-44%) rotate(6deg) scale(.72); }
  .phone-label { font-size: 9px; }
  .site-footer { padding: 46px var(--gutter) 26px; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 26px; padding-bottom: 30px; }
  .footer-invite { text-align: left; }
  .footer-top .brand-copy strong { font-size: 22px; }
  .footer-links { gap: 12px 20px; }
  .footer-brand { font-size: 10px; padding-right: 20px; }
  .back-top { bottom: 16px; right: 16px; width: 42px; height: 42px; }
  .reveal-pending[data-reveal="right"] { transform: translateY(24px); }
  .reveal-pending[data-reveal="left"] { transform: translateY(24px); }
}
@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .brand-copy strong { font-size: 15px; }
  .brand-copy small { font-size: 6px; }
  .logo-glass { width: 36px; height: 44px; }
  .mobile-icon-button { width: 36px; height: 36px; }
  .hero h1 { font-size: 48px; }
  .hero-content { padding-top: 140px; }
  .page-hero h1 { font-size: 38px; }
  .welcome-copy h2 { font-size: 35px; }
  .phone-card { width: 130px; }
}
@media (max-height: 650px) and (min-width: 701px) {
  .hero { height: auto; min-height: 650px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-pending { opacity: 1; transform: none !important; }
  .hero-slideshow, .page-hero::before, .page-callout::before, .welcome-photo-small { transform: none; }
}
