:root {
  --bg: #eaf1f6; --surface: #ffffff; --surface-alt: #f4f8fb; --text: #172b3a;
  --muted: #526575; --line: #d5e0e8; --accent: #1769aa; --accent-dark: #0e4d80;
  --focus: #0b75d1; --shadow: 0 18px 45px rgb(24 54 76 / .12); --soft-shadow: 0 8px 20px rgb(24 54 76 / .09);
  color-scheme: light;
}
html.dark-theme {
  --bg: #0b1926; --surface: #102a43; --surface-alt: #15344f; --text: #f1f7fc;
  --muted: #bdd0df; --line: #2b4d67; --accent: #6dc4ff; --accent-dark: #a8dcff;
  --focus: #a8dcff; --shadow: 0 18px 45px rgb(0 0 0 / .35); --soft-shadow: 0 8px 20px rgb(0 0 0 / .24);
  color-scheme: dark;
}
html.sabbath-mode { --bg: #f5f1eb; --surface: #fffdf9; --surface-alt: #f8f2eb; --text: #3e352c; --muted: #6e6257; --line: #e7dacf; --accent: #a6633d; --accent-dark: #814629; --focus: #8b4827; }
html.sabbath-mode.dark-theme { --bg: #211b16; --surface: #2c241e; --surface-alt: #352b23; --text: #f3eae0; --muted: #d5c5b6; --line: #58473a; --accent: #e1a47d; --accent-dark: #ffd1b1; --focus: #ffd1b1; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { min-width: 320px; margin: 0; background: radial-gradient(circle at 50% -20%, #ffffffa8 0, transparent 32%), var(--bg); color: var(--text); font: 400 1rem/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: inherit; } h1, h2, h3, p { margin-top: 0; } h1, h2, h3 { text-wrap: balance; }
.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; top: .75rem; left: .75rem; z-index: 30; padding: .7rem 1rem; border-radius: .5rem; background: var(--text); color: var(--surface); transform: translateY(-180%); transition: transform .2s ease; }
.skip-link:focus { transform: translateY(0); }

.site-nav { position: sticky; top: .75rem; z-index: 10; display: flex; justify-content: center; gap: .25rem; width: fit-content; max-width: calc(100% - 6rem); margin: .75rem auto -1.2rem; padding: .35rem; border: 1px solid color-mix(in srgb, var(--line), transparent 15%); border-radius: 999px; background: color-mix(in srgb, var(--surface), transparent 8%); box-shadow: var(--soft-shadow); backdrop-filter: blur(12px); }
.site-nav a { padding: .4rem .65rem; border-radius: 999px; color: var(--muted); font-size: .8rem; font-weight: 750; text-decoration: none; }
.site-nav a:hover { background: var(--surface-alt); color: var(--accent-dark); }

.page-shell { width: min(100% - 2rem, 820px); margin: clamp(2rem, 6vw, 4rem) auto; padding: clamp(1.25rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: 1.75rem; background: var(--surface); box-shadow: var(--shadow); overflow: clip; }
.hero { position: relative; isolation: isolate; padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid color-mix(in srgb, var(--accent), transparent 76%); border-radius: 1.25rem; background: linear-gradient(135deg, color-mix(in srgb, var(--accent), transparent 94%), transparent 52%), var(--surface-alt); text-align: center; overflow: hidden; }
.hero-art { position: absolute; inset: auto -7rem -15rem auto; z-index: -1; width: 29rem; pointer-events: none; opacity: .045; }
.hero-art img { width: 100%; height: auto; filter: brightness(0) invert(1); }
.logo { display: block; width: min(100%, 290px); height: auto; margin: 0 auto 1rem; }
.logo-fachada { width: min(100%, 480px); aspect-ratio: 3 / 2; border-radius: 1rem; object-fit: cover; box-shadow: var(--soft-shadow); }
.eyebrow, .section-kicker { margin-bottom: .35rem; color: var(--accent); font-size: .76rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
h1 { margin-bottom: .4rem; font-size: clamp(1.85rem, 6vw, 2.65rem); line-height: 1.08; letter-spacing: -.035em; }
h2 { margin-bottom: 0; font-size: clamp(1.45rem, 4vw, 1.85rem); line-height: 1.15; letter-spacing: -.025em; }
h3 { font-size: 1.06rem; line-height: 1.25; }
.welcome-message { margin-bottom: 1rem; font-weight: 700; }
.bible-verse { max-width: 42rem; margin: 1rem auto 0; padding: .9rem 1rem; border-inline-start: 4px solid var(--accent); border-radius: 0 .75rem .75rem 0; background: color-mix(in srgb, var(--surface), transparent 20%); color: var(--muted); font-size: .94rem; text-align: left; }
.bible-verse cite { display: block; margin-top: .2rem; font-style: normal; font-weight: 750; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; margin-top: 1.25rem; }
.hero-primary, .hero-secondary { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 2.8rem; padding: .65rem 1rem; border: 2px solid var(--accent); border-radius: .7rem; font-size: .9rem; font-weight: 800; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.hero-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 16px color-mix(in srgb, var(--accent), transparent 70%); }
.hero-secondary { color: var(--accent-dark); background: color-mix(in srgb, var(--surface), transparent 12%); }

section { margin-top: clamp(2.75rem, 7vw, 4.5rem); }
.section-heading { margin-bottom: 1rem; }
.schedule-section { padding: clamp(1rem, 3vw, 1.6rem); border: 1px solid var(--line); border-radius: 1.15rem; background: var(--surface-alt); }
.schedule-countdown { display: inline-flex; margin-bottom: 1rem; padding: .45rem .75rem; border: 1px solid color-mix(in srgb, var(--accent), transparent 72%); border-radius: 999px; color: var(--accent-dark); background: color-mix(in srgb, var(--accent), transparent 94%); font-size: .87rem; font-weight: 750; }
.schedule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; padding: 0; margin: 0; list-style: none; }
.schedule-card { display: flex; gap: .7rem; min-width: 0; padding: 1rem; border: 1px solid var(--line); border-radius: .85rem; background: var(--surface); box-shadow: 0 1px 0 rgb(255 255 255 / .3) inset; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.schedule-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent), var(--line) 55%); box-shadow: var(--soft-shadow); }
.schedule-card.is-next-event { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent), transparent 85%); }
.schedule-icon { font-size: 1.4rem; }.schedule-card h3 { margin-bottom: .1rem; }.schedule-card p { margin-bottom: 0; color: var(--muted); font-size: .85rem; }.schedule-card .schedule-time { color: var(--accent); font-size: 1.12rem; font-weight: 850; }.schedule-invite { margin: 1rem 0 0; color: var(--muted); }
.inline-action { display: inline-flex; gap: .35rem; align-items: center; margin-top: .75rem; padding: .45rem .6rem; border-radius: .5rem; background: #167d47; color: #fff; font-size: .78rem; font-weight: 750; text-decoration: none; }

.channels-section > p { color: var(--muted); }.link-list { display: grid; gap: .7rem; }.link { display: grid; grid-template-columns: 1.6rem 1fr auto; align-items: center; gap: .35rem; min-height: 3.65rem; padding: .75rem 1rem; border: 1px solid transparent; border-radius: .85rem; color: #fff; font-weight: 750; text-decoration: none; box-shadow: 0 3px 8px rgb(0 0 0 / .07); transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }.link:hover { transform: translateY(-2px); box-shadow: 0 9px 18px rgb(0 0 0 / .13); }.link span { font-size: .78rem; font-weight: 600; opacity: .88; }.instagram { background: #b92d67; }.instagram-jovens { background: linear-gradient(135deg, #168dcc, #9d3174); }.youtube-official { background: #c62828; }.location { background: #2764b2; }.prayer { background: #7b3c98; }.whatsapp { background: #167d47; }
.service-links { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: 1rem; }.service-links a { color: var(--accent-dark); font-size: .9rem; font-weight: 750; }

.department-list { display: grid; gap: 1rem; }.department-block { position: relative; padding: 1.3rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface-alt); overflow: hidden; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }.department-block:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent), var(--line) 55%); box-shadow: var(--soft-shadow); }.department-block h3 { margin-bottom: .5rem; }.department-block p { color: var(--muted); }.department-icon, .department-logo { display: grid; place-items: center; width: 3.75rem; height: 3.75rem; margin-bottom: .75rem; border-radius: .8rem; background: var(--surface); color: #138db8; font-size: 1.8rem; object-fit: contain; }.interessados .department-logo { border: 2px solid #c95454; }.aventureiros .department-logo { border: 2px solid #6a04f0; }.asa .department-logo { border: 2px solid #0a9d54; }.desbravadores .department-logo { border: 2px solid #f85d04; }
.button-group { display: flex; flex-wrap: wrap; gap: .6rem; }.btn-primary, .btn-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .6rem .9rem; border: 2px solid var(--accent); border-radius: .65rem; font-weight: 800; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }.btn-primary { color: #fff; background: var(--accent); }.btn-secondary { color: var(--accent-dark); background: transparent; }.interessados .btn-primary { background: #c95454; border-color: #c95454; }.aventureiros .btn-primary { background: #6a04f0; border-color: #6a04f0; }.asa .btn-primary { background: #09864a; border-color: #09864a; }.desbravadores .btn-primary { background: #dc5708; border-color: #dc5708; }
footer { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; text-align: center; }footer p { margin-bottom: .25rem; }
.theme-toggle { position: fixed; top: 1rem; right: 1rem; z-index: 20; display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface), transparent 5%); color: var(--text); box-shadow: var(--soft-shadow); backdrop-filter: blur(12px); cursor: pointer; }.theme-toggle-label { font-size: .78rem; font-weight: 750; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }.hero-primary:hover, .hero-secondary:hover, .btn-primary:hover, .btn-secondary:hover { transform: translateY(-2px); box-shadow: var(--soft-shadow); }
html.js-enabled [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }html.js-enabled [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (max-width: 540px) { .site-nav { max-width: calc(100% - 4.75rem); }.site-nav a { padding-inline: .5rem; font-size: .74rem; }.page-shell { width: min(100% - 1rem, 820px); padding: 1rem; border-radius: 1rem; }.hero { padding: 1.35rem 1rem; }.theme-toggle-label { display: none; }.schedule-grid { grid-template-columns: 1fr; }.link { grid-template-columns: 1.6rem 1fr; }.link span:not(.sr-only) { grid-column: 2; }.hero-actions { flex-direction: column; }.hero-actions a { width: 100%; }.button-group > * { flex: 1 1 100%; } }
@media (min-width: 640px) { .department-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; }*, *::before, *::after { transition: none !important; animation: none !important; } }

/* Portal dinâmico */
.portal-nav { position: relative; z-index: 10; display: flex; justify-content: center; flex-wrap: wrap; gap: .25rem; margin: 1rem auto -1rem; padding: .35rem; width: fit-content; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); box-shadow: var(--soft-shadow); }
.portal-nav a { padding: .4rem .65rem; border-radius: 999px; color: var(--muted); font-size: .82rem; font-weight: 750; text-decoration: none; }.portal-nav a[aria-current="page"], .portal-nav a:hover { background: var(--surface-alt); color: var(--accent-dark); }.dynamic-section { padding-top: .25rem; }.content-grid { display: grid; gap: 1rem; }.event-card, .album-card, .gallery-album { overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface-alt); }.event-card { display: grid; grid-template-columns: 10rem 1fr; }.event-card img { width: 100%; height: 100%; min-height: 10rem; object-fit: cover; }.event-card > div, .album-card > div { padding: 1rem 1.15rem; }.card-kicker { margin-bottom: .25rem; color: var(--accent); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }.event-card h3, .event-card h2, .album-card h3, .album-card h2 { margin-bottom: .4rem; }.event-card p:last-child, .album-card p:last-child { margin-bottom: 0; color: var(--muted); }.event-meta { color: var(--accent-dark) !important; font-weight: 700; font-size: .9rem; }.albums-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }.album-card { display: block; color: inherit; text-decoration: none; }.album-card img, .album-placeholder { display: grid; place-items: center; width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--line); font-size: 2rem; }.empty-state { padding: 1.2rem; border: 1px dashed var(--line); border-radius: .8rem; color: var(--muted); text-align: center; }.text-link { display: inline-block; margin-top: 1rem; color: var(--accent-dark); font-weight: 800; }.page-header { padding: 2rem 0 .5rem; text-align: center; }.page-header > p:last-child { color: var(--muted); }.agenda-grid { max-width: 50rem; margin: auto; }.gallery-album { margin-bottom: 1.5rem; }.photo-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(9rem,1fr)); gap: .35rem; padding: .35rem; }.photo-grid button { padding: 0; border: 0; background: none; cursor: zoom-in; }.photo-grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }.lightbox { width: min(96vw, 1100px); padding: 0; border: 0; background: #05090d; }.lightbox::backdrop { background: rgb(0 0 0 / .85); }.lightbox img { display: block; width: 100%; max-height: 85vh; object-fit: contain; }.lightbox button { position: absolute; top: 50%; border: 0; color: #fff; background: rgb(0 0 0 / .5); font-size: 2rem; cursor: pointer; }.lightbox-close { top: .5rem !important; right: .5rem; }.lightbox-previous { left: .5rem; }.lightbox-next { right: .5rem; }
.admin-body { min-height: 100vh; }.admin-shell { width: min(100% - 2rem, 1100px); margin: 2rem auto; padding: clamp(1.25rem,4vw,3rem); border: 1px solid var(--line); border-radius: 1.5rem; background: var(--surface); box-shadow: var(--shadow); }.admin-top { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }.admin-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem; }.admin-form { display: grid; gap: .8rem; }.admin-form label { display: grid; gap: .3rem; font-weight: 700; }.admin-form input, .admin-form textarea { width: 100%; padding: .7rem; border: 1px solid var(--line); border-radius: .5rem; color: var(--text); background: var(--surface-alt); font: inherit; }.check-label { display: flex !important; align-items: center; }.check-label input { width: auto; }.form-status { min-height: 1.5em; color: var(--accent-dark); font-weight: 700; }.admin-list { display: grid; gap: .5rem; }.admin-list div { display: flex; align-items: center; gap: .7rem; padding: .7rem; border: 1px solid var(--line); border-radius: .5rem; }.admin-list span { flex: 1; color: var(--muted); font-size: .9rem; }.admin-list button { border: 0; color: #fff; background: #b42318; border-radius: .4rem; padding: .4rem .6rem; cursor: pointer; }
.admin-form select { width: 100%; padding: .7rem; border: 1px solid var(--line); border-radius: .5rem; color: var(--text); background: var(--surface-alt); font: inherit; }.upload-area { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }.upload-area h3 { margin-bottom: 0; }.drop-zone { min-height: 8rem; place-items: center; padding: 1rem; border: 2px dashed var(--accent); border-radius: .75rem; color: var(--accent-dark); text-align: center; cursor: pointer; }.drop-zone input { width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; }.drop-zone.is-dragging { background: color-mix(in srgb, var(--accent), transparent 88%); }.upload-help { margin: -.4rem 0 0; color: var(--muted); font-size: .85rem; }
.gallery-album { padding: 0; }.gallery-album > button { display: block; width: 100%; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }.gallery-album > button:hover h2, .open-album { color: var(--accent-dark); }.open-album { display: inline-block; margin-top: .7rem; font-weight: 800; }.album-dialog { width: min(96vw, 1100px); max-height: 90vh; padding: 1rem; border: 0; border-radius: 1rem; color: var(--text); background: var(--surface); }.album-dialog::backdrop { background: rgb(0 0 0 / .72); }.dialog-header { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }.dialog-header h2 { margin-bottom: .35rem; }.dialog-header p { color: var(--muted); }.dialog-close { flex: 0 0 auto; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; color: var(--text); background: var(--surface-alt); font-size: 1.7rem; cursor: pointer; }.photo-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 1rem; }.photo-admin-grid article { overflow: hidden; border: 1px solid var(--line); border-radius: .7rem; background: var(--surface-alt); }.photo-admin-grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }.photo-admin-grid button { width: 100%; padding: .65rem; border: 0; color: #fff; background: #b42318; font-weight: 700; cursor: pointer; }
@media (max-width: 640px) { .portal-nav { margin-top: .75rem; }.albums-grid, .admin-grid { grid-template-columns: 1fr; }.event-card { grid-template-columns: 1fr; }.event-card img { max-height: 14rem; }.admin-top { display: grid; }.admin-list div { align-items: start; flex-wrap: wrap; }.admin-list span { flex-basis: 100%; } }

/* Galeria escalável: o diálogo rola e acrescenta apenas o próximo lote de fotos. */
.album-dialog { overflow: auto; }.gallery-sentinel { min-height: 2.5rem; padding: .75rem; color: var(--muted); font-size: .9rem; text-align: center; }.photo-skeleton { display: block; aspect-ratio: 1; border-radius: .25rem; background: linear-gradient(90deg, var(--surface-alt), var(--line), var(--surface-alt)); background-size: 200% 100%; animation: gallery-shimmer 1.2s infinite; }.download-photo { position: absolute; right: 1rem; bottom: 1rem; padding: .6rem .85rem; border-radius: .5rem; color: #fff; background: var(--accent); font-weight: 800; text-decoration: none; }@keyframes gallery-shimmer { to { background-position: -200% 0; } }

/* Home institucional */
:root { --navy: #071b33; --navy-2: #0c2e54; --gold: #d7ae62; --cream: #fbfaf7; --text-serif: "Playfair Display", Georgia, serif; --text-sans: "DM Sans", system-ui, sans-serif; }
body { background: var(--cream); font-family: var(--text-sans); }.site-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: clamp(.5rem, 2vw, 1.25rem); min-height: 5rem; padding: .7rem clamp(1rem, 4vw, 4rem); border-bottom: 1px solid rgb(255 255 255 / .12); color: #fff; background: rgb(7 27 51 / .84); backdrop-filter: blur(16px); transition: min-height .25s ease, background-color .25s ease, box-shadow .25s ease; }.site-header.is-scrolled { min-height: 4.25rem; background: rgb(7 27 51 / .96); box-shadow: 0 8px 24px rgb(0 0 0 / .18); }.brand { display: inline-flex; align-items: center; gap: .55rem; color: inherit; text-decoration: none; }.brand img { width: 2.5rem; height: 2.5rem; border-radius: 50%; object-fit: cover; }.brand span { display: grid; line-height: 1; }.brand strong { font-size: .95rem; letter-spacing: .13em; }.brand small { margin-top: .25rem; font-size: .72rem; letter-spacing: .06em; }.main-nav { display: flex; justify-content: center; gap: clamp(.65rem, 2vw, 1.5rem); flex: 1; }.main-nav a { color: rgb(255 255 255 / .82); font-size: .88rem; font-weight: 600; text-decoration: none; }.main-nav a:hover { color: #fff; }.visit-button { display: inline-flex; align-items: center; gap: .4rem; padding: .65rem .9rem; border-radius: 999px; color: var(--navy); background: var(--gold); font-size: .85rem; font-weight: 800; text-decoration: none; }.theme-toggle { position: static; min-height: 2.4rem; color: #fff; border-color: rgb(255 255 255 / .22); background: rgb(255 255 255 / .1); box-shadow: none; }.menu-toggle { display: none; min-width: 2.5rem; min-height: 2.5rem; border: 1px solid rgb(255 255 255 / .25); border-radius: .6rem; color: #fff; background: transparent; font-size: 1rem; cursor: pointer; }
.hero { min-height: min(48rem, calc(100vh - 5rem)); display: grid; place-items: center; padding: clamp(5rem, 12vw, 10rem) clamp(1.25rem, 7vw, 7rem); border: 0; border-radius: 0; background: var(--navy); text-align: left; }.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .8; }.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(4 20 38 / .93), rgb(4 20 38 / .7) 48%, rgb(4 20 38 / .22)), linear-gradient(0deg, rgb(4 20 38 / .55), transparent 45%); }.hero-content { position: relative; width: min(100%, 47rem); margin-right: auto; color: #fff; }.eyebrow-light { color: #f0cc87; }.hero h1 { max-width: 42rem; margin: .2rem 0 1rem; color: #fff; font-family: var(--text-serif); font-size: clamp(3rem, 7vw, 6rem); line-height: .98; letter-spacing: -.06em; }.hero-lead { max-width: 38rem; font-size: clamp(1.05rem, 2vw, 1.23rem); color: rgb(255 255 255 / .88); }.bible-verse-hero { margin: 1.5rem 0 0; max-width: 36rem; border-color: var(--gold); color: rgb(255 255 255 / .86); background: rgb(255 255 255 / .09); }.hero-primary { border: 0; color: var(--navy); background: var(--gold); }.hero-secondary { color: #fff; border-color: rgb(255 255 255 / .6); background: rgb(255 255 255 / .08); }.scroll-cue { position: absolute; bottom: 1.5rem; left: 50%; display: inline-flex; align-items: center; gap: .5rem; color: rgb(255 255 255 / .78); font-size: .78rem; text-decoration: none; transform: translateX(-50%); }.scroll-cue span { width: .6rem; height: .6rem; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }
.next-meeting { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(1rem, 3vw, 2rem); width: min(100% - 2rem, 1100px); margin: -3rem auto 0; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid rgb(215 174 98 / .45); border-radius: 1.25rem; background: var(--surface); box-shadow: 0 20px 45px rgb(5 28 52 / .16); position: relative; z-index: 2; }.meeting-icon { display: grid; place-items: center; width: 3.5rem; aspect-ratio: 1; border-radius: 1rem; color: var(--gold); background: var(--navy); font-size: 1.45rem; }.next-meeting h2 { font-family: var(--text-serif); }.next-meeting .schedule-countdown { margin: .5rem 0 0; }.meeting-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: .6rem; }.meeting-actions .btn-primary, .meeting-actions .btn-secondary { min-height: 2.5rem; font-size: .85rem; }
.section-wrap { width: min(100% - 2rem, 1100px); margin: clamp(4.5rem, 9vw, 7rem) auto; }.center-heading { max-width: 42rem; margin-inline: auto; text-align: center; }.center-heading > p:last-child, .section-heading > p:last-child { margin-top: .7rem; color: var(--muted); }.split-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }.section-heading h2, .visit-copy h2, .prayer-section h2, .giving-section h2 { font-family: var(--text-serif); font-size: clamp(2.1rem, 4vw, 3.3rem); }.schedules .schedule-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }.schedule-card { display: block; padding: 1.35rem; border: 1px solid rgb(7 27 51 / .1); border-radius: 1rem; background: #fff; }.schedule-card:hover { transform: translateY(-5px); }.schedule-icon { display: grid; place-items: center; width: 2.7rem; aspect-ratio: 1; margin-bottom: 1rem; border-radius: .8rem; color: var(--navy); background: #edf3f7; font-size: 1.15rem; }.sunday .schedule-icon { background: #fef1d8; }.wednesday .schedule-icon { background: #e4f0ff; }.friday .schedule-icon { background: #e8f7ef; }.sabbath .schedule-icon { background: #f4eafa; }.schedule-card.is-next-event { border-color: var(--gold); box-shadow: 0 0 0 3px rgb(215 174 98 / .2); }.inline-action { background: var(--navy-2); }
.visit-section { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); width: min(100% - 2rem, 1100px); margin: clamp(4.5rem, 9vw, 7rem) auto; overflow: hidden; border-radius: 1.5rem; color: #fff; background: var(--navy); }.visit-photo img { display: block; width: 100%; height: 100%; min-height: 26rem; object-fit: cover; }.visit-copy { padding: clamp(2rem, 5vw, 4.5rem); }.visit-copy .section-kicker { color: #f0cc87; }.visit-copy p { color: rgb(255 255 255 / .8); }.visit-list { display: grid; gap: .8rem; padding: 0; margin: 1.5rem 0; list-style: none; }.visit-list li { display: grid; grid-template-columns: 1.5rem 1fr; gap: .6rem; }.visit-list i { color: var(--gold); }.visit-copy .btn-secondary { color: #fff; border-color: rgb(255 255 255 / .55); }.content-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }.event-card { grid-template-columns: 1fr; }.event-card img { height: 12rem; min-height: auto; }.event-card > div, .album-card > div { padding: 1.25rem; }.text-link { color: var(--navy-2); }.prayer-section { display: grid; place-items: center; min-height: 27rem; padding: 3rem 1.5rem; color: #fff; background: radial-gradient(circle at 75% 0, rgb(215 174 98 / .36), transparent 35%), linear-gradient(125deg, #071b33, #0d3e6e); text-align: center; }.prayer-section > div { max-width: 48rem; }.prayer-section .section-kicker { color: #f0cc87; }.prayer-section h2 { color: #fff; }.prayer-section p { max-width: 35rem; margin: 1rem auto 1.5rem; color: rgb(255 255 255 / .82); font-size: 1.1rem; }
.connect-section { padding: clamp(2rem, 5vw, 4rem); border-radius: 1.5rem; background: #eef4f7; }.link-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }.link { grid-template-columns: 1.4rem 1fr auto; min-height: 5rem; color: var(--text); border: 1px solid var(--line); background: #fff !important; box-shadow: none; }.link:hover { border-color: var(--accent); }.link > i:first-child { color: var(--accent); font-size: 1.2rem; }.link span { display: grid; gap: .12rem; color: var(--text); font-size: .85rem; opacity: 1; }.link small { color: var(--muted); font-size: .73rem; font-weight: 600; }.link > i:last-child { color: var(--muted); font-size: .75rem; }.department-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }.department-block { display: flex; flex-direction: column; border-radius: 1rem; background: #fff; }.department-block .button-group { margin-top: auto; }.giving-section { display: flex; align-items: center; justify-content: space-between; gap: 2rem; width: min(100% - 2rem, 1100px); margin: 0 auto clamp(4.5rem, 9vw, 7rem); padding: clamp(2rem, 5vw, 3.5rem); border: 1px solid rgb(215 174 98 / .48); border-radius: 1.25rem; background: #fffaf0; }.giving-section > div:first-child { max-width: 38rem; }.giving-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.site-footer { padding: 3.5rem max(1rem, calc((100% - 1100px) / 2)) 1.25rem; color: rgb(255 255 255 / .72); background: #061729; }.site-footer .brand { color: #fff; }.site-footer .brand img { border: 1px solid rgb(255 255 255 / .3); }.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }.footer-grid h2 { margin-bottom: .75rem; color: #fff; font-family: var(--text-sans); font-size: .92rem; }.footer-grid a { display: block; margin-bottom: .45rem; color: rgb(255 255 255 / .72); font-size: .9rem; text-decoration: none; }.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid rgb(255 255 255 / .14); font-size: .82rem; }.footer-bottom p { margin-bottom: 0; }
@media (max-width: 900px) { .main-nav { gap: .75rem; }.visit-button { display: none; }.schedules .schedule-grid, .content-grid, .link-list, .department-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }.visit-section { grid-template-columns: 1fr; }.visit-photo img { min-height: 19rem; max-height: 25rem; }.giving-section { display: grid; }.next-meeting { grid-template-columns: auto 1fr; }.meeting-actions { grid-column: 1 / -1; justify-content: start; } }
@media (max-width: 640px) { .site-header { gap: .55rem; min-height: 4.4rem; padding-inline: 1rem; }.menu-toggle { display: inline-grid; place-items: center; }.main-nav { position: absolute; top: calc(100% + .4rem); left: 1rem; right: 1rem; display: none; padding: .75rem; border: 1px solid rgb(255 255 255 / .14); border-radius: .9rem; background: #09233f; box-shadow: 0 14px 30px rgb(0 0 0 / .22); }.main-nav.is-open { display: grid; }.main-nav a { padding: .55rem; }.theme-toggle { margin-left: auto; }.theme-toggle-label { display: none; }.hero { min-height: 43rem; padding: 6rem 1.25rem 5rem; }.hero h1 { font-size: clamp(2.8rem, 14vw, 4.1rem); }.hero-actions { align-items: stretch; }.hero-actions a { width: 100%; }.next-meeting { grid-template-columns: 1fr; margin-top: -1.5rem; }.meeting-icon { width: 3rem; }.schedules .schedule-grid, .content-grid, .link-list, .department-list { grid-template-columns: 1fr; }.split-heading, .footer-bottom { display: grid; }.section-wrap { width: min(100% - 1.5rem, 1100px); }.connect-section { padding: 1.25rem; }.visit-section { width: min(100% - 1.5rem, 1100px); }.visit-copy { padding: 2rem 1.4rem; }.footer-grid { grid-template-columns: 1fr; }.giving-section { width: min(100% - 1.5rem, 1100px); }.page-shell { width: min(100% - 1rem, 820px); } }

/* Temas com contraste revisado: todas as superfícies usam a mesma escala de cores. */
:root {
  --bg: #edf2f5; --surface: #fffdf9; --surface-alt: #f6f1e8; --text: #142536;
  --muted: #485b6a; --line: #c8d4dc; --accent: #0d6098; --accent-dark: #084a78;
  --focus: #075f9e; --navy: #08233f; --navy-2: #0d3d66; --gold: #c89542;
  --cream: #edf2f5; --header-bg: rgb(8 35 63 / .96); --section-tint: #e5eef2;
  --card-bg: #fffdf9; --card-hover: #f8fbfc; --footer-bg: #061a2d;
  --shadow: 0 18px 45px rgb(20 37 54 / .14); --soft-shadow: 0 8px 22px rgb(20 37 54 / .10);
  color-scheme: light;
}
html.dark-theme {
  --bg: #0b1723; --surface: #12263a; --surface-alt: #193149; --text: #f4f7fa;
  --muted: #c0cfdb; --line: #38536a; --accent: #74c9ff; --accent-dark: #b7e5ff;
  --focus: #9bdbff; --navy: #071522; --navy-2: #173e61; --gold: #f0c36c;
  --cream: #0b1723; --header-bg: rgb(5 16 28 / .97); --section-tint: #102337;
  --card-bg: #132b40; --card-hover: #19344c; --footer-bg: #050f19;
  --shadow: 0 18px 45px rgb(0 0 0 / .38); --soft-shadow: 0 8px 22px rgb(0 0 0 / .28);
  color-scheme: dark;
}
body { background: radial-gradient(circle at 50% -20%, rgb(255 255 255 / .36), transparent 32%), var(--bg); }
html.dark-theme body { background: radial-gradient(circle at 50% -20%, rgb(116 201 255 / .08), transparent 32%), var(--bg); }
.site-header, .site-header.is-scrolled { background: var(--header-bg); }
.theme-toggle { color: #fff; border-color: rgb(255 255 255 / .32); background: rgb(255 255 255 / .12); }
.schedule-card, .department-block, .link { border-color: var(--line); background: var(--card-bg) !important; }
.schedule-card:hover, .department-block:hover, .link:hover { background: var(--card-hover) !important; }
.schedule-card { border-color: var(--line); }
.schedule-icon { color: var(--accent-dark); background: var(--surface-alt); }
.connect-section { background: var(--section-tint); }
.giving-section { border-color: color-mix(in srgb, var(--gold), var(--line) 50%); background: var(--surface-alt); }
.next-meeting { border-color: color-mix(in srgb, var(--gold), var(--line) 45%); background: var(--surface); }
.text-link, .inline-action { color: var(--accent-dark); }
.inline-action { color: #fff; background: var(--navy-2); }
.department-age { margin-top: -.05rem; padding-left: .7rem; border-left: 3px solid var(--gold); color: var(--text) !important; font-size: .9rem; }
.child-ministry { border-color: color-mix(in srgb, #e71d27, var(--line) 55%); }
.child-ministry-logo { width: 4rem; height: 4rem; padding: .15rem; border-radius: .8rem; border: 2px solid #e71d27; background: #2d1a70; }
.child-ministry .btn-primary { background: #2d1a70; }
.child-ministry .btn-primary:hover { background: #24135b; }
html.dark-theme .child-ministry .btn-primary { color: #fff; background: #7d67d7; }
html.dark-theme .child-ministry .btn-primary:hover { background: #967fea; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
html.dark-theme .main-nav { background: #0c2034; }
html.dark-theme .visit-section { background: #0a1d30; }
html.dark-theme .prayer-section { background: radial-gradient(circle at 75% 0, rgb(240 195 108 / .24), transparent 35%), linear-gradient(125deg, #071522, #123959); }

.admin-optimization { margin-top: 1.5rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface-alt); }
.admin-optimization h2 { margin-bottom: .45rem; }
.admin-optimization p { max-width: 52rem; color: var(--muted); }
.admin-optimization button[disabled] { cursor: wait; opacity: .65; }
