/* ============================================
   IGREJA BATISTA NOVA VIDA — JD Ingá
   Brand: 2026 Manual — sage/forest green, olive,
   cream and brown. Signature motif: overlapping
   circles (from the palette page) + the tree-over-
   book mark used as a recurring, quiet device.
   ============================================ */

:root {
    /* Brand palette (from manual) */
    --green-deep: #455B2B;
    --green-olive: #8A9162;
    --cream: #E5DCCB;
    --cream-light: #FEF8E1;
    --brown: #4A3B19;
    --amber: #DEA25C; /* restricted use — campaigns only, not used site-wide */

    /* Applied roles */
    --bg-page: var(--cream-light);
    --bg-alternate: var(--cream);
    --bg-header: var(--green-deep);
    --text-main: var(--brown);
    --text-inverse: var(--cream-light);
    --text-muted: #6b6045;
    --border-soft: rgba(74, 59, 25, 0.14);

    --font-display: 'Fraunces', serif;
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Work Sans', sans-serif;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    --container-width: 1200px;
    --header-height: 84px;
    --radius-md: 14px;
    --radius-lg: 28px;
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition-fast); }
ul, li { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

:focus-visible {
    outline: 2px solid var(--green-olive);
    outline-offset: 3px;
    border-radius: 4px;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding { padding: 100px 0; }
.alternate-bg { background-color: var(--bg-alternate); }
.text-center { text-align: center; }
.text-left { text-align: left; }

/* ---------- Signature motif: overlapping circles ---------- */
.blob-cluster {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}
.blob-cluster svg { display: block; width: 100%; height: 100%; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 800; color: var(--green-deep); letter-spacing: -0.01em; }
.section-title { font-size: 2.5rem; margin-bottom: 4px; }
.section-title.text-left { text-align: left; }
.section-subtitle { font-family: var(--font-body); color: var(--text-muted); font-size: 1.05rem; max-width: 560px; margin: 16px auto 0; }
.section-header.text-center .section-subtitle { margin-left: auto; margin-right: auto; }
.section-divider {
    width: 56px; height: 4px; border-radius: 4px;
    background: linear-gradient(90deg, var(--green-deep), var(--green-olive));
    margin: 18px auto 0;
}
.text-left ~ .section-divider, .about-info .section-divider { margin-left: 0; }
.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green-olive);
    background: rgba(69, 91, 43, 0.08);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 14px;
}
.section-tag.light { background: rgba(254, 248, 225, 0.15); color: var(--cream-light); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: 100px;
    transition: var(--transition-fast);
    white-space: nowrap;
}
.btn-primary { background: var(--green-deep); color: var(--cream-light); }
.btn-primary:hover { background: #38491f; transform: translateY(-2px); }
.btn-outline { border: 1.5px solid var(--cream-light); color: var(--cream-light); }
.btn-outline:hover { background: rgba(254, 248, 225, 0.12); transform: translateY(-2px); }
.btn-secondary { background: var(--green-olive); color: var(--cream-light); }
.btn-secondary:hover { background: #737a52; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-lg { padding: 16px 34px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-icon { padding: 10px 18px; }

/* ---------- Top bar ---------- */
.top-bar { background: var(--brown); color: var(--cream-light); font-size: 0.82rem; }
.top-bar-content { display: flex; justify-content: flex-end; gap: 28px; padding: 8px 24px; }
.top-info { display: flex; align-items: center; gap: 6px; opacity: 0.9; }

/* ---------- Header ---------- */
.main-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--bg-header);
    height: var(--header-height);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.header-container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); color: var(--cream-light); }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-line-1 { font-size: 0.48rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: rgba(254, 248, 225, 0.82); }
.logo-line-2 { font-size: 1.55rem; font-weight: 800; letter-spacing: 0.02em; }
.logo-mark { height: 44px; width: auto; flex-shrink: 0; object-fit: contain; }
.nav-menu { display: flex; gap: 6px; }
.nav-link {
    font-family: var(--font-heading); font-weight: 600; font-size: 0.92rem;
    color: rgba(254, 248, 225, 0.78);
    padding: 10px 16px; border-radius: 100px; transition: var(--transition-fast);
}
.nav-link:hover, .nav-link.active { color: var(--cream-light); background: rgba(254, 248, 225, 0.12); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-actions .btn-primary { background: var(--cream-light); color: var(--green-deep); }
.header-actions .btn-primary:hover { background: #fff; }
.mobile-toggle { display: none; color: var(--cream-light); font-size: 1.4rem; }

/* ---------- Hero ---------- */
.hero-section {
    position: relative;
    min-height: 92vh;
    display: flex; align-items: center;
    overflow: hidden;
    background: var(--green-deep);
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
}
.hero-content { position: relative; z-index: 2; max-width: 640px; padding-top: 40px; padding-bottom: 40px; }
.badge {
    display: inline-block; font-family: var(--font-heading); font-weight: 700;
    font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--green-deep); background: var(--cream-light);
    padding: 8px 18px; border-radius: 100px; margin-bottom: 22px;
}
.hero-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--cream-light); line-height: 1.12; margin-bottom: 20px; }
.hero-subtitle { font-size: 1.15rem; color: rgba(254, 248, 225, 0.88); margin-bottom: 34px; max-width: 480px; }
.hero-verse { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--cream-light); opacity: 0.9; margin-bottom: 34px; }
.hero-verse span { font-family: var(--font-heading); font-style: normal; font-weight: 700; font-size: 0.85rem; color: var(--green-olive); margin-left: 6px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-scroll-indicator {
    position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
    color: var(--cream-light); font-size: 1.3rem; opacity: 0.75;
    animation: bob 2.2s ease-in-out infinite; z-index: 2;
}
@keyframes bob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ---------- Scroll reveal ---------- */
.scroll-reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.scroll-reveal.active { opacity: 1; transform: translateY(0); }

/* ---------- Schedule ---------- */
.schedule-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; }
.schedule-card {
    background: #fff; border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg); padding: 36px 30px;
    transition: var(--transition-smooth);
}
.schedule-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(69, 91, 43, 0.12); }
.card-icon {
    width: 56px; height: 56px; border-radius: 16px;
    background: rgba(69, 91, 43, 0.1); color: var(--green-deep);
    display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 20px;
}
.schedule-card h3 { font-size: 1.25rem; margin-bottom: 18px; }
.schedule-times { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.time-item { display: flex; align-items: baseline; gap: 12px; }
.time-item .time { font-family: var(--font-heading); font-weight: 800; color: var(--green-olive); font-size: 1.05rem; min-width: 62px; }
.time-item .label { font-size: 0.92rem; color: var(--text-muted); }
.card-desc { font-size: 0.92rem; color: var(--text-muted); }

/* ---------- Galeria de Fotos (Carrossel) ---------- */
.gallery-carousel { display: flex; align-items: center; gap: 1.25rem; max-width: 780px; margin: 0 auto; }
.carousel-viewport { flex: 1; overflow: hidden; border-radius: 18px; box-shadow: 0 16px 40px rgba(69, 91, 43, 0.16); background: var(--brown); }
.carousel-track { display: flex; transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1); }
.carousel-slide { flex: 0 0 100%; height: 480px; display: flex; align-items: center; justify-content: center; background: var(--brown); }
.carousel-slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.carousel-arrow {
    flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
    background: #fff; border: 1px solid var(--border-soft); color: var(--green-deep);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    box-shadow: 0 2px 8px rgba(54, 43, 30, 0.1); transition: var(--transition-fast);
}
.carousel-arrow:hover { background: var(--green-deep); color: var(--cream-light); transform: scale(1.06); }
.carousel-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.75rem; }
.carousel-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-soft); border: none; cursor: pointer; padding: 0; transition: var(--transition-fast); }
.carousel-dot.active { background: var(--green-deep); width: 22px; border-radius: 5px; }

@media (max-width: 768px) {
    .carousel-slide { height: 320px; }
    .gallery-carousel { gap: 0.5rem; }
    .carousel-arrow { width: 38px; height: 38px; font-size: 0.85rem; }
}
.pgs-content { max-width: 640px; margin: 0 auto; text-align: center; }
.pgs-intro { font-size: 1.05rem; color: var(--text-main); margin-bottom: 22px; }
.pgs-regions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 28px; }
.pg-region {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; border: 1px solid var(--border-soft);
    color: var(--green-deep); font-family: var(--font-heading); font-weight: 700; font-size: 0.92rem;
    padding: 10px 20px; border-radius: 100px;
}
.pg-region i { color: var(--green-olive); }
.pgs-cta { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 24px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.about-text { margin: 18px 0 12px; font-size: 1.02rem; color: var(--text-muted); }
.theme-verse { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--green-deep); margin-bottom: 28px; }
.theme-verse span { font-family: var(--font-heading); font-style: normal; font-weight: 700; font-size: 0.8rem; color: var(--green-olive); margin-left: 4px; }
.pillars-list { display: flex; flex-direction: column; gap: 20px; }
.pillar-item { display: flex; gap: 14px; align-items: flex-start; }
.pillar-item i { color: var(--green-olive); background: rgba(138, 145, 98, 0.16); width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; flex-shrink: 0; margin-top: 2px; }
.pillar-item h4 { font-size: 1rem; margin-bottom: 4px; }
.pillar-item p { font-size: 0.9rem; color: var(--text-muted); }

.about-pastors { background: #fff; border-radius: var(--radius-lg); padding: 36px; border: 1px solid var(--border-soft); }
.pastors-header h3 { font-size: 1.3rem; margin-bottom: 6px; }
.pastors-header p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 26px; }
.pastors-list { display: flex; flex-direction: column; gap: 18px; }
.pastor-card { display: flex; align-items: center; gap: 16px; }
.pastor-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--green-deep); color: var(--cream-light); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.pastor-details h4 { font-size: 1rem; }
.pastor-details p { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- Ministries ---------- */
.ministries-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; }
.ministry-card {
    background: var(--bg-alternate); border-radius: var(--radius-md);
    padding: 30px 24px; text-align: left; transition: var(--transition-smooth);
    border: 1px solid transparent;
}
.ministry-card:hover { background: #fff; border-color: var(--border-soft); transform: translateY(-4px); }
.ministry-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--green-deep); color: var(--cream-light); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-bottom: 16px; }
.ministry-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.ministry-card p { font-size: 0.88rem; color: var(--text-muted); }
.ministry-card p a { color: var(--green-deep); font-weight: 700; }

/* ---------- Giving ---------- */
.giving-card {
    background: var(--green-deep); border-radius: var(--radius-lg);
    padding: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
    position: relative; overflow: hidden;
}
.giving-info h2 { color: var(--cream-light); font-size: 2rem; margin-bottom: 16px; }
.giving-info p { color: rgba(254, 248, 225, 0.85); margin-bottom: 24px; }
.giving-info blockquote { border-left: 3px solid var(--green-olive); padding-left: 18px; color: rgba(254, 248, 225, 0.75); font-style: italic; font-size: 0.92rem; }
.giving-details { display: flex; flex-direction: column; gap: 24px; }
.pix-container, .bank-container { background: rgba(254, 248, 225, 0.08); border: 1px solid rgba(254, 248, 225, 0.18); border-radius: var(--radius-md); padding: 24px; }
.pix-container h3, .bank-container h3 { color: var(--cream-light); font-size: 1.05rem; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.pix-subtitle { color: rgba(254, 248, 225, 0.7); font-size: 0.85rem; margin-bottom: 14px; }
.pix-key-box { display: flex; align-items: center; gap: 12px; background: rgba(0,0,0,0.15); border-radius: 100px; padding: 6px 6px 6px 18px; }
.pix-key { font-family: var(--font-heading); font-weight: 700; color: var(--cream-light); flex: 1; letter-spacing: 0.02em; }
.copy-success { display: none; color: #c8e6a0; font-size: 0.82rem; margin-top: 10px; }
.bank-container p { color: rgba(254, 248, 225, 0.82); font-size: 0.88rem; margin-bottom: 4px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 56px; }
.contact-form-container { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 40px; }
.contact-form-container h3 { font-size: 1.3rem; margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-family: var(--font-heading); font-weight: 600; font-size: 0.85rem; margin-bottom: 6px; color: var(--text-main); }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 12px 16px; border: 1.5px solid var(--border-soft);
    border-radius: 10px; font-size: 0.95rem; color: var(--text-main); background: var(--bg-page);
    transition: var(--transition-fast);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--green-olive); outline: none; }
.form-status { margin-top: 16px; padding: 14px 18px; border-radius: 10px; font-size: 0.9rem; display: none; line-height: 1.4; }
.form-status.success { display: block; background: rgba(69, 91, 43, 0.12); color: var(--green-deep); border: 1px solid rgba(69, 91, 43, 0.25); }
.form-status.error { display: block; background: rgba(220, 53, 69, 0.1); color: #b02a37; border: 1px solid rgba(220, 53, 69, 0.25); }
.form-status.loading { display: block; background: rgba(0, 0, 0, 0.05); color: var(--text-muted); border: 1px solid var(--border-soft); }
.btn:disabled { opacity: 0.7; cursor: not-allowed; }

.contact-info-container { display: flex; flex-direction: column; gap: 24px; }
.info-card { background: var(--bg-alternate); border-radius: var(--radius-lg); padding: 36px; }
.info-card h3 { font-size: 1.2rem; margin-bottom: 20px; }
.info-card p { display: flex; align-items: flex-start; gap: 12px; font-size: 0.92rem; color: var(--text-muted); margin-bottom: 14px; }
.phone-text a { color: var(--green-deep); font-weight: 700; }
.phone-text a:hover { color: var(--green-olive); }
.info-card i { color: var(--green-olive); margin-top: 3px; }
.social-links { display: flex; gap: 12px; margin-top: 20px; }
.social-links a { width: 40px; height: 40px; border-radius: 50%; background: var(--green-deep); color: var(--cream-light); display: flex; align-items: center; justify-content: center; transition: var(--transition-fast); }
.social-links a:hover { background: var(--green-olive); transform: translateY(-3px); }

.map-mockup {
    background: var(--green-deep); border-radius: var(--radius-lg);
    min-height: 220px; display: flex; align-items: center; justify-content: center;
    padding: 30px; position: relative; overflow: hidden;
}
.map-overlay { position: relative; z-index: 1; text-align: center; color: var(--cream-light); }
.map-overlay i { font-size: 2rem; margin-bottom: 10px; color: var(--green-olive); }
.map-overlay h4 { color: var(--cream-light); font-size: 1.05rem; margin-bottom: 6px; }
.map-overlay p { font-size: 0.85rem; color: rgba(254, 248, 225, 0.75); margin-bottom: 18px; }

/* ---------- Footer ---------- */
.main-footer { background: var(--brown); padding: 48px 0; }
.footer-logo { font-family: var(--font-heading); color: var(--cream-light); margin-bottom: 12px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.footer-logo .logo-mark { height: 36px; width: auto; }
.footer-logo .logo-text { text-align: left; }
.footer-copyright, .footer-legal { font-size: 0.82rem; color: rgba(254, 248, 225, 0.6); }
.footer-legal { margin-top: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 968px) {
    .schedule-grid { grid-template-columns: 1fr; }
    .ministries-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .giving-card { grid-template-columns: 1fr; padding: 36px 28px; }
    .contact-grid { grid-template-columns: 1fr; }
    .top-bar-content { justify-content: center; flex-wrap: wrap; gap: 14px; text-align: center; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed; top: var(--header-height); left: 0; right: 0;
        background: var(--green-deep); flex-direction: column; gap: 2px;
        padding: 16px; transform: translateY(-120%); opacity: 0;
        transition: var(--transition-smooth); box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }
    .nav-menu.active { transform: translateY(0); opacity: 1; }
    .nav-link { padding: 14px 18px; border-radius: 10px; }
    .header-actions .btn-sm span, .header-actions .btn-primary span { display: none; }
    .mobile-toggle { display: block; }
    .header-actions .btn-primary.btn-sm { padding: 10px 14px; }
    .section-padding { padding: 70px 0; }
    .section-title { font-size: 2rem; }
    .ministries-grid { grid-template-columns: 1fr; }
    .hero-content { padding-top: 20px; }
}
