/* ============================================================
   Projeto+ vs3 — CSS principal
   Design: vs2 (accent #a5cadc, white base, dark footer)
   Layout: Bootstrap grid + custom vs2 components
============================================================ */

/* -- Variáveis ---------------------------------------------- */
:root {
    --accent:       #a5cadc;
    --accent-dark:  #7aacbf;
    --accent-light: #d0e8f2;
    --text:         #1a2733;
    --muted:        #6b7a87;
    --bg:           #ffffff;
    --bg-alt:       #f4f8fb;
    --border:       #dde8ef;
    --footer-bg:    #1a2733;
    --footer-text:  #c8d8e0;
    --radius:       10px;
    --shadow:       0 2px 16px rgba(0,0,0,.10);
    --shadow-sm:    0 1px 6px rgba(0,0,0,.07);
    --navbar-h:     64px;
}

/* -- Base --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    font-size: 1rem; line-height: 1.6;
    background: var(--bg); color: var(--text);
    min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
h1, h2, h3, h4, h5, h6 { color: var(--text); }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* -- Body offset for fixed navbar --------------------------- */
body { padding-top: var(--navbar-h); }

/* -- Navbar (vs2 custom, fixed + over-hero) ----------------- */
.navbar {
    position: fixed !important; top: 0; left: 0; width: 100%; z-index: 1000;
    display: flex !important; align-items: center; justify-content: space-between;
    padding: 0 32px; height: var(--navbar-h);
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 8px rgba(0,0,0,.06);
    flex-wrap: nowrap !important;
    transition: background .3s, border-color .3s, box-shadow .3s;
}
/* Dark/transparent state when navbar floats over the hero */
.navbar.over-hero {
    background: rgba(26,39,51,.55) !important;
    border-bottom-color: transparent !important;
    box-shadow: none !important;
}
.navbar.over-hero .nav-brand,
.navbar.over-hero .nav-link,
.navbar.over-hero .nav-user { color: #fff !important; }
.navbar.over-hero .nav-link:hover { background: rgba(255,255,255,.15) !important; color: #fff !important; }
.navbar.over-hero .nav-dropdown-menu { background: rgba(26,39,51,.97) !important; border-color: #3a5060 !important; }
.navbar.over-hero .nav-dropdown-menu a { color: #e0ecf2 !important; }
.navbar.over-hero .nav-dropdown-menu a:hover { background: rgba(165,202,220,.2) !important; color: #fff !important; }
.navbar.over-hero .nav-cta-btn {
    background: rgba(255,255,255,.2) !important; color: #fff !important;
    border: 1px solid rgba(255,255,255,.4);
}
.navbar.over-hero .nav-cta-btn:hover { background: rgba(255,255,255,.35) !important; }
.nav-brand {
    font-size: 1.2rem; font-weight: 700; color: var(--text);
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; flex-shrink: 0;
}
.nav-brand:hover { color: var(--text); text-decoration: none; }
/* White logo: inverted to dark on light navbar, kept white over dark hero */
.nav-logo { height: 36px; width: auto; filter: invert(1) brightness(0); transition: filter .3s; }
.navbar.over-hero .nav-logo { filter: none; }
.nav-brand span { color: var(--accent-dark); }
.navbar.over-hero .nav-brand span { color: var(--accent-light, #d0e8f2); }
.nav-links {
    display: flex; align-items: center; gap: 2px;
    list-style: none; margin: 0; padding: 0;
}
.nav-links li { position: relative; }
.nav-link {
    display: block; padding: 8px 14px; border-radius: var(--radius);
    font-size: .9rem; font-weight: 500; color: var(--text);
    transition: background .2s, color .2s; text-decoration: none;
    white-space: nowrap;
}
.nav-link:hover { background: var(--accent-light); color: var(--text); text-decoration: none; }
.nav-link.active { color: var(--accent-dark); font-weight: 600; }

/* Dropdown */
.nav-dropdown-trigger { display: flex; align-items: center; gap: 4px; }
.nav-dropdown-trigger::after { content: "▾"; font-size: .7rem; opacity: .7; }
.nav-dropdown-menu {
    display: none; position: absolute; top: calc(100% + 6px); left: 0;
    min-width: 200px; background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 6px 0; z-index: 100;
}
.nav-links li:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
    display: block; padding: 9px 18px; font-size: .88rem; color: var(--text);
    transition: background .15s; text-decoration: none;
}
.nav-dropdown-menu a:hover { background: var(--bg-alt); text-decoration: none; }
.dd-icon { margin-right: 6px; }

.nav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-user  { font-size: .82rem; color: var(--muted); white-space: nowrap; }
.nav-cta-btn {
    display: inline-block; padding: 7px 18px;
    background: var(--accent); color: #1a2733;
    font-size: .88rem; font-weight: 700; border-radius: 20px;
    text-decoration: none; transition: background .2s; white-space: nowrap;
}
.nav-cta-btn:hover { background: var(--accent-dark); color: #fff; text-decoration: none; }

/* Hamburger */
.nav-hamburger {
    display: none; background: none; border: none; cursor: pointer;
    padding: 8px; color: var(--text); flex-direction: column; flex-shrink: 0;
}
.nav-hamburger span {
    display: block; width: 22px; height: 2px;
    background: currentColor; margin: 5px 0;
    transition: transform .3s, opacity .3s;
}

/* Mobile overlay */
.mobile-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1100;
}
.mobile-overlay.open { display: block; }

/* Mobile drawer */
.mobile-drawer {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100%;
    background: #fff; z-index: 1200; box-shadow: -4px 0 24px rgba(0,0,0,.15);
    transition: right .3s cubic-bezier(.4,0,.2,1);
    display: flex; flex-direction: column; overflow-y: auto;
}
.mobile-drawer.open { right: 0; }
.drawer-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.drawer-brand { font-weight: 700; font-size: 1.05rem; color: var(--text); }
.drawer-brand span { color: var(--accent-dark); }
.drawer-close {
    background: none; border: none; cursor: pointer;
    font-size: 1.3rem; color: var(--muted); padding: 4px;
}
.drawer-nav { padding: 8px 0; flex: 1; }
.drawer-nav a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 13px 24px; font-size: .95rem; color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: background .15s; text-decoration: none;
}
.drawer-nav a:hover { background: var(--bg-alt); text-decoration: none; }
.drawer-nav a::after { content: "›"; font-size: 1.1rem; color: var(--muted); }
.drawer-nav a.active { color: var(--accent-dark); font-weight: 600; }

/* Drawer group (details/summary for "Quem Somos?" submenu) */
.drawer-group { border-bottom: 1px solid var(--border); }
.drawer-group summary.drawer-group-title {
    display: flex; align-items: center; justify-content: space-between;
    padding: 13px 24px; font-size: .95rem; color: var(--text);
    cursor: pointer; list-style: none; font-weight: 500;
}
.drawer-group summary.drawer-group-title::after { content: "›"; font-size: 1.1rem; color: var(--muted); transition: transform .2s; }
.drawer-group[open] summary.drawer-group-title::after { transform: rotate(90deg); }
.drawer-sub-links a {
    display: block; padding: 10px 24px 10px 40px;
    font-size: .88rem; color: var(--muted);
    border-bottom: 1px solid var(--border);
    transition: background .15s; text-decoration: none;
}
.drawer-sub-links a:hover { background: var(--bg-alt); color: var(--text); text-decoration: none; }

/* -- Hero Slider (vs2 style: full screen) ------------------- */
.hero {
    position: relative; height: 100vh; min-height: 500px;
    overflow: hidden; display: flex; align-items: center; justify-content: center;
    margin-top: calc(-1 * var(--navbar-h)); /* slide under fixed navbar */
    color: #fff;
}
.hero-slider { background: linear-gradient(160deg, #1a2733 0%, #2d4a5e 55%, #1a3a4d 100%); }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1s ease; z-index: 0;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(26,39,51,.65) 0%, rgba(26,39,51,.3) 100%);
    z-index: 1;
}
.hero-content {
    position: relative; z-index: 10;
    text-align: center; color: #fff; padding: 0 20px; max-width: 760px;
}
.hero-eyebrow {
    display: inline-block; margin-bottom: 16px;
    background: var(--accent); color: #1a2733;
    font-size: .8rem; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; padding: 5px 16px; border-radius: 20px;
}
.hero-title {
    font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800;
    line-height: 1.15; margin-bottom: 18px; letter-spacing: -.5px; color: #fff;
}
.hero-title span { color: var(--accent); }
.hero-sub {
    font-size: clamp(.95rem, 2vw, 1.15rem); opacity: .9;
    margin-bottom: 32px; max-width: 560px; margin-left: auto; margin-right: auto;
}
.hero-cta {
    display: inline-block; padding: 14px 36px;
    background: var(--accent); color: #1a2733;
    font-weight: 700; border-radius: 50px; font-size: 1rem;
    transition: background .2s, transform .2s; text-decoration: none;
}
.hero-cta:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); text-decoration: none; }
.hero-cta-outline {
    display: inline-block; padding: 14px 36px;
    border: 2px solid rgba(255,255,255,.7); color: #fff;
    font-weight: 700; border-radius: 50px; font-size: 1rem;
    transition: background .2s, transform .2s; text-decoration: none;
}
.hero-cta-outline:hover { background: rgba(255,255,255,.15); color: #fff; transform: translateY(-2px); text-decoration: none; }
.hero-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 10; background: rgba(255,255,255,.2);
    border: none; color: #fff; font-size: 1.8rem; cursor: pointer;
    width: 48px; height: 48px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s; backdrop-filter: blur(4px); padding: 0;
}
.hero-arrow:hover { background: rgba(255,255,255,.4); }
.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }
.hero-dots {
    position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px; z-index: 10;
}
.hero-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,.5); cursor: pointer;
    border: none; padding: 0; transition: background .3s, transform .3s;
}
.hero-dot.active { background: #fff; transform: scale(1.3); }

/* -- Sections ----------------------------------------------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-label {
    font-size: .78rem; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; color: var(--accent-dark); margin-bottom: 10px;
}
.section-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800;
    color: var(--text); margin-bottom: 12px; line-height: 1.2;
}
.section-title::after { content: none !important; display: none !important; }
.section-lead { font-size: 1.05rem; color: var(--muted); }

/* -- Nossa História (homepage) — vs2 .qs-split -------------- */
.historia-home-section { padding: 72px 0; }
.qs-split {
    display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}
.qs-split-img {
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); position: sticky; top: 88px;
}
.qs-split-img img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.qs-lead {
    font-size: 1.05rem; color: var(--muted); margin-bottom: 36px; line-height: 1.7;
}
.qs-timeline { display: flex; flex-direction: column; gap: 0; }
.qs-timeline-item {
    display: flex; gap: 20px; position: relative;
    padding-bottom: 32px; align-items: flex-start;
}
.qs-timeline-item:last-child { padding-bottom: 0; }
.qs-timeline-item::before {
    content: ''; position: absolute; left: 42px; top: 28px; bottom: 0;
    width: 2px; background: var(--border);
}
.qs-timeline-item:last-child::before { display: none; }
.qs-timeline-year {
    flex-shrink: 0; min-width: 64px; height: 28px; line-height: 28px;
    background: var(--accent); color: #1a2733;
    border-radius: 20px; text-align: center; font-size: .75rem;
    font-weight: 800; letter-spacing: .5px; padding: 0 10px;
    margin-top: 2px;
}
.qs-timeline-body h4 { font-size: .95rem; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.qs-timeline-body p  { font-size: .88rem; color: var(--muted); margin: 0; line-height: 1.65; }

/* Larger timeline when there are few steps (≤ 5) */
.qs-timeline--large .qs-timeline-item { padding-bottom: 48px; }
.qs-timeline--large .qs-timeline-year {
    min-width: 80px; height: 36px; line-height: 36px; font-size: .88rem; padding: 0 14px;
}
.qs-timeline--large .qs-timeline-item::before { left: 50px; top: 36px; }
.qs-timeline--large .qs-timeline-body h4 { font-size: 1.05rem; margin-bottom: 6px; }
.qs-timeline--large .qs-timeline-body p  { font-size: .95rem; line-height: 1.7; }

/* -- Nossa Identidade (homepage) ---------------------------- */
.identidade-section { padding: 72px 0; }
.identity-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
    margin-top: 40px;
}
.identity-card {
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow-sm); padding: 32px 28px; text-align: center;
    transition: box-shadow .2s, transform .2s;
}
.identity-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.identity-icon {
    font-size: 2.4rem; line-height: 1; margin-bottom: 16px; display: block;
}
.identity-card h3 {
    font-size: 1.1rem; font-weight: 800; color: var(--text); margin-bottom: 10px;
}
.identity-card p { font-size: .92rem; color: var(--muted); margin: 0; line-height: 1.7; }

/* Santos Padroeiros */
.santos-subsection { margin-top: 56px; }
.santos-subsection .section-label { text-align: center; }
.santos-subsection h3 {
    font-size: 1.4rem; font-weight: 800; text-align: center;
    color: var(--text); margin-bottom: 32px;
}
.santos-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
    max-width: 640px; margin: 0 auto;
}
.santo-card { text-align: center; }
.santo-card img {
    width: 100%; aspect-ratio: 3/4; object-fit: cover;
    border-radius: var(--radius); box-shadow: var(--shadow);
    display: block; margin-bottom: 14px;
}
.santo-placeholder {
    width: 100%; aspect-ratio: 3/4;
    background: var(--bg-alt); border-radius: var(--radius);
    border: 2px dashed var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); font-size: .88rem; margin-bottom: 14px;
}
.santo-nome { font-weight: 700; font-size: 1rem; color: var(--text); }

/* -- Como Participar (homepage) ------------------------------ */
.cp-fotos {
    display: flex; gap: 24px; margin-top: 40px; flex-wrap: wrap;
}
.cp-foto {
    flex: 1 1 100%; margin: 0;
}
.cp-fotos-2 .cp-foto { flex: 1 1 calc(50% - 12px); }
.cp-foto img {
    width: 100%; aspect-ratio: 16/9; object-fit: cover;
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
    display: block; border: 1px solid var(--border);
}
.cp-foto figcaption {
    margin-top: 10px; text-align: center;
    font-size: .88rem; color: var(--muted);
}

/* -- Stats Bar ---------------------------------------------- */
.stats-bar {
    background: linear-gradient(135deg, #1a2733 0%, #2d4a5e 100%);
    color: #fff; padding: 2rem 0;
}
.stats-bar .stat-item { text-align: center; }
.stats-bar .stat-value {
    font-size: 2.5rem; font-weight: 800; line-height: 1.1; color: #fff;
}
.stats-bar .stat-label { font-size: .88rem; color: rgba(255,255,255,.75); margin-top: .25rem; }

/* -- Eventos / Agenda --------------------------------------- */
.evento-card {
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1rem 1.25rem; background: #fff;
    box-shadow: var(--shadow-sm); margin-bottom: .85rem;
    transition: box-shadow .2s;
}
.evento-card:hover { box-shadow: var(--shadow); }
.evento-card.destaque { border-left-color: #E07B2A; border-left-width: 5px; }
.evento-data { font-weight: 700; color: var(--accent-dark); font-size: .85rem; white-space: nowrap; }
.evento-titulo { font-weight: 700; font-size: 1.05rem; color: var(--text); margin: 0; }
.evento-desc   { font-size: .88rem; color: var(--muted); margin: .25rem 0 0; }
.evento-local  { font-size: .82rem; color: var(--muted); }
.evento-local i { color: var(--accent-dark); }

/* -- Datas Importantes -------------------------------------- */
.data-importante {
    background: linear-gradient(135deg, #E07B2A, #F09040);
    color: #fff; border-radius: var(--radius);
    padding: 1rem 1.25rem; margin-bottom: .75rem;
}
.data-importante .data  { font-weight: 800; font-size: 1.2rem; }
.data-importante .titulo { font-size: .95rem; opacity: .92; }

/* -- Depoimentos -------------------------------------------- */
.depoimentos-section { background: var(--bg-alt); padding: 72px 0; }
.depoimento-slide { padding: 1rem 2rem; text-align: center; }
.depoimento-texto {
    font-size: 1.1rem; color: var(--text); font-style: italic;
    max-width: 680px; margin: 0 auto 1.25rem; line-height: 1.8;
}
.depoimento-nome  { font-weight: 700; color: var(--text); font-size: 1rem; }
.depoimento-papel { font-size: .88rem; color: var(--muted); }

/* -- Correio do Céu ----------------------------------------- */
.correio-ceu-section {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #1a2733; padding: 72px 0;
}
.correio-ceu-section .section-title { color: #1a2733; }
.correio-ceu-section p { color: rgba(26,39,51,.8); }
.correio-ceu-section .form-control {
    border: 1.5px solid rgba(26,39,51,.25) !important;
    background: rgba(255,255,255,.65) !important;
}
.correio-ceu-section .form-control:focus {
    border-color: #1a2733 !important;
    box-shadow: 0 0 0 3px rgba(26,39,51,.12) !important;
}
.correio-ceu-section .form-label { color: rgba(26,39,51,.85); font-weight: 500; }

/* -- Correio do Céu — caixa de correio interativa ----------- */
.correio-mailbox {
    display: inline-flex; align-items: flex-start;
    background: none; border: none; padding: 0; margin: 0 auto 1.25rem;
    position: relative; cursor: pointer;
}
.correio-mailbox-body {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    background: var(--accent-light); color: #1a2733;
    padding: 28px 44px; border-radius: 18px 18px 8px 8px;
    border: 3px solid #fff;
    box-shadow: 0 6px 0 rgba(26,39,51,.25), 0 10px 20px rgba(0,0,0,.15);
    transition: transform .15s, box-shadow .15s;
}
.correio-mailbox-icon { font-size: 2.6rem; line-height: 1; color: #1a2733; }
.correio-mailbox-label { font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; }
.correio-mailbox-flag {
    position: absolute; top: -20px; right: 6px;
    color: #fff; font-size: 2.4rem;
    transform: rotate(-18deg);
    transition: transform .3s;
    filter: drop-shadow(0 3px 4px rgba(0,0,0,.2));
}
.correio-mailbox:hover .correio-mailbox-body {
    transform: translateY(2px);
    box-shadow: 0 4px 0 rgba(26,39,51,.25), 0 6px 14px rgba(0,0,0,.15);
}
.correio-mailbox:active .correio-mailbox-body,
.correio-mailbox.opened .correio-mailbox-body {
    transform: translateY(6px);
    box-shadow: 0 0 0 rgba(26,39,51,.25), 0 2px 8px rgba(0,0,0,.12);
}
.correio-mailbox.opened .correio-mailbox-flag { transform: rotate(25deg) translateY(-6px); }

.correio-mensagem {
    background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
    border-radius: var(--radius); padding: 24px 28px; margin: 0 auto 1.5rem;
    max-width: 820px; width: 100%; opacity: 0; transform: translateY(-8px);
    transition: opacity .35s, transform .35s;
}
.correio-mensagem.show { opacity: 1; transform: translateY(0); }
.correio-mensagem-texto {
    font-size: 1.35rem; font-style: italic; color: #fff;
    line-height: 1.6; margin-bottom: .5rem;
}
.correio-mensagem-autor { color: rgba(255,255,255,.7); font-weight: 600; font-size: .95rem; }

/* -- Galeria ------------------------------------------------ */
.galeria-item {
    position: relative; overflow: hidden;
    border-radius: var(--radius); cursor: pointer;
}
.galeria-item img {
    width: 100%; height: 220px; object-fit: cover;
    transition: transform .3s; display: block;
}
.galeria-item:hover img { transform: scale(1.05); }
.galeria-overlay {
    position: absolute; inset: 0;
    background: rgba(26,39,51,.6); opacity: 0;
    transition: opacity .25s;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.6rem;
}
.galeria-item:hover .galeria-overlay { opacity: 1; }

/* -- Equipa membros ----------------------------------------- */
.membro-card .membro-foto {
    width: 90px; height: 90px; border-radius: 50%;
    object-fit: cover; margin: 0 auto 1rem; display: block;
    border: 3px solid var(--accent-light);
}
.membro-avatar {
    width: 90px; height: 90px; border-radius: 50%;
    background: var(--accent-light); display: flex;
    align-items: center; justify-content: center;
    margin: 0 auto 1rem; font-size: 2rem; color: var(--accent-dark);
}

/* -- Correio categoria badges ------------------------------- */
.cat-badge {
    font-size: .74rem; padding: .25em .6em;
    border-radius: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .04em;
}
.cat-saude    { background: #d4edda; color: #155724; }
.cat-familia  { background: #fff3cd; color: #856404; }
.cat-missao   { background: #cce5ff; color: #004085; }
.cat-gratidao { background: #f8d7da; color: #721c24; }
.cat-outro    { background: #e2e3e5; color: #383d41; }

/* -- Bootstrap overrides ------------------------------------ */
.btn { border-radius: 24px !important; font-weight: 600; letter-spacing: .02em; }
.btn:hover { transform: translateY(-1px); }

.btn-primary {
    background: var(--accent-dark) !important;
    border-color: var(--accent-dark) !important; color: #fff !important;
}
.btn-primary:hover, .btn-primary:focus {
    background: #5e94a8 !important; border-color: #5e94a8 !important;
}

.btn-outline-primary {
    color: var(--accent-dark) !important; border-color: var(--accent-dark) !important;
    background: transparent !important;
}
.btn-outline-primary:hover {
    background: var(--accent) !important;
    border-color: var(--accent) !important; color: #1a2733 !important;
}

.btn-outline-light {
    background: transparent !important;
    border: 2px solid rgba(255,255,255,.7) !important; color: #fff !important;
}
.btn-outline-light:hover { background: rgba(255,255,255,.15) !important; }

.card {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important; box-shadow: var(--shadow-sm) !important;
}
.card:hover { box-shadow: var(--shadow) !important; transform: translateY(-2px); }
.card-header-blue {
    background: linear-gradient(90deg, #1a2733, #2d4a5e);
    color: #fff; font-weight: 600; font-size: .85rem;
    text-transform: uppercase; letter-spacing: .06em; padding: .65rem 1rem;
    border-radius: var(--radius) var(--radius) 0 0 !important;
}

.form-control {
    border: 1.5px solid var(--border) !important;
    border-radius: 8px !important;
    font-family: inherit; color: var(--text);
}
.form-control:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(165,202,220,.3) !important;
}
.alert { border-radius: 8px !important; font-size: .9rem; }
.alert-success { background: #f0fdf4 !important; color: #15803d !important; border-color: #bbf7d0 !important; }
.alert-danger  { background: #fef2f2 !important; color: #b91c1c !important; border-color: #fecaca !important; }
.alert-info    { background: var(--accent-light) !important; color: var(--text) !important; border-color: var(--accent) !important; }

.text-muted  { color: var(--muted) !important; }
.bg-purple   { background-color: #7B4FBF !important; }

/* -- Page content ------------------------------------------- */
.page-content h2  { font-size: 1.5rem; margin-top: 2rem; color: var(--text); }
.page-content p   { font-size: 1rem; line-height: 1.75; color: var(--text); }
.page-content img { border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* -- Footer ------------------------------------------------- */
footer {
    background: var(--footer-bg); color: var(--footer-text);
    padding: 48px 0 28px; font-size: .88rem; margin-top: auto;
}
.footer-inner {
    max-width: 1100px; margin: 0 auto; padding: 0 24px;
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
}
.footer-brand { font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.footer-brand span { color: var(--accent); }
.footer-desc { font-size: .88rem; line-height: 1.7; color: var(--footer-text); }
.footer-col h4, .footer-col h5 {
    font-size: .85rem; font-weight: 700; color: #fff;
    margin-bottom: 12px; text-transform: uppercase; letter-spacing: .5px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul li a { font-size: .88rem; color: var(--footer-text); transition: color .2s; }
.footer-col ul li a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom {
    max-width: 1100px; margin: 32px auto 0; padding: 16px 24px 0;
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: .82rem; color: rgba(200,216,224,.6); text-align: center;
}
.footer-social { display: flex; gap: .6rem; margin-top: 12px; }
.footer-social a {
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,.1); color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem; transition: background .18s, color .18s; text-decoration: none;
}
.footer-social a:hover { background: var(--accent-dark); color: #fff; text-decoration: none; }

/* -- Scroll to top ------------------------------------------ */
#btn-topo {
    position: fixed; bottom: 1.5rem; right: 1.5rem;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--accent-dark); color: #fff; border: none;
    font-size: 1.1rem; display: none;
    align-items: center; justify-content: center;
    box-shadow: var(--shadow); z-index: 999;
    cursor: pointer; transition: background .18s;
}
#btn-topo:hover { background: #5e94a8; }
#btn-topo.visible { display: flex; }

/* -- Portal da Equipa de Oração ------------------------------ */
.oracao-subnav {
    background: var(--bg-alt); border-bottom: 1px solid var(--border);
    position: sticky; top: var(--navbar-h); z-index: 90;
}
.oracao-subnav-nav { gap: .4rem; padding: .6rem 0; flex-wrap: wrap; }
.oracao-subnav-nav .nav-link {
    color: var(--text); font-weight: 600; font-size: .9rem;
    border-radius: 999px; padding: .45rem 1.1rem;
    border: 1px solid var(--border); background: var(--bg);
    transition: background .18s, color .18s, border-color .18s;
}
.oracao-subnav-nav .nav-link i { color: var(--accent-dark); margin-right: .35rem; }
.oracao-subnav-nav .nav-link:hover { background: var(--accent-light); border-color: var(--accent); }
.oracao-subnav-nav .nav-link.active {
    background: var(--accent-dark); border-color: var(--accent-dark); color: #fff;
}
.oracao-subnav-nav .nav-link.active i { color: #fff; }

.day-pill {
    display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid var(--border); background: var(--bg);
    color: var(--text); font-weight: 700; font-size: .95rem;
    text-decoration: none; transition: background .18s, color .18s, border-color .18s;
}
.day-pill:hover { background: var(--accent-light); border-color: var(--accent); text-decoration: none; }
.day-pill.active { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

.capela-card { cursor: pointer; overflow: hidden; }
.capela-foto {
    width: 100%; height: 140px; object-fit: cover;
    border-radius: var(--radius) var(--radius) 0 0;
}
.capela-foto-placeholder {
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-light); color: var(--accent-dark); font-size: 2rem;
}

/* -- Responsividade ----------------------------------------- */
@media (max-width: 900px) {
    .qs-split { grid-template-columns: 1fr; gap: 40px; }
    .qs-split-img { position: static; }
    .qs-split-img img { aspect-ratio: 4/3; }
    .identity-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .santos-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
    .navbar { padding: 0 16px; }
    .nav-links, .nav-right { display: none; }
    .nav-hamburger { display: flex; }
    .hero-arrow { display: none; }
    .section { padding: 48px 0; }
    .historia-home-section { padding: 48px 0; }
    .identidade-section { padding: 48px 0; }
    .identity-grid { grid-template-columns: 1fr; gap: 16px; }
    .santos-grid { max-width: 100%; }
    .cp-fotos { gap: 16px; }
    .cp-fotos-2 .cp-foto { flex: 1 1 100%; }
    .correio-mailbox-body { padding: 20px 32px; }
    .correio-mailbox-icon { font-size: 2.1rem; }
    .correio-mensagem { padding: 18px 20px; }
    .correio-mensagem-texto { font-size: 1.15rem; }
    .depoimentos-section { padding: 48px 0; }
    .footer-inner { grid-template-columns: 1fr; gap: 28px; }
    .stats-bar .stat-value { font-size: 2rem; }
    .evento-card { padding: .75rem 1rem; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 1.7rem; }
    .hero p  { font-size: .95rem; }
    .btn     { padding: .45rem 1.1rem; font-size: .9rem; }
}
