@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700;800&display=swap");

:root {
    --black: #030303;
    --black-2: #101010;
    --black-3: #1b1b1b;
    --gold: #d2ad62;
    --gold-dark: #a47b34;
    --paper: #f8f6f0;
    --white: #ffffff;
    --ink: #111111;
    --muted: #6f6a60;
    --line: rgba(210, 173, 98, 0.22);
}

* {
    letter-spacing: 0;
}

body {
    color: var(--ink);
    background: var(--paper);
    font-family: "Manrope", Arial, Helvetica, sans-serif;
    font-weight: 500;
}

h1,
h2,
.hero-title,
.display-4,
.display-5,
.display-6 {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 800;
}

h3,
h4,
h5,
h6 {
    font-family: "Manrope", Arial, Helvetica, sans-serif;
    font-weight: 800;
}

a {
    color: var(--gold-dark);
}

a:hover {
    color: var(--black);
}

.site-navbar {
    background: rgba(3, 3, 3, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.site-footer {
    color: rgba(255, 255, 255, 0.72);
    background: var(--black);
    border-top: 1px solid var(--line);
}

.brand-wrap {
    align-items: center;
    display: inline-flex;
    gap: 12px;
}

.brand-logo {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 0;
    background: transparent;
    object-fit: contain;
}

.navbar-brand span,
.nav-link {
    font-weight: 800;
}

.text-gold {
    color: var(--gold) !important;
}

.btn {
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.55rem 1.1rem;
    letter-spacing: 0.01em;
}

.btn-sm {
    padding: 0.38rem 0.75rem;
    font-size: 0.82rem;
}

.btn-lg {
    padding: 0.65rem 1.4rem;
    font-size: 0.95rem;
}

.btn-primary {
    color: #fff;
    background: var(--black);
    border-color: var(--black);
}

.btn-primary:hover {
    color: var(--gold);
    background: var(--black-2);
    border-color: var(--gold);
}

.btn-gold {
    color: #111;
    background: var(--gold);
    border-color: var(--gold);
}

.btn-gold:hover {
    color: #fff;
    background: var(--gold-dark);
    border-color: var(--gold-dark);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.45);
}

.site-page {
    background: var(--black);
}

.hero-section {
    position: relative;
    min-height: 92vh;
    padding-top: 74px;
    color: #fff;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.98), rgba(0, 0, 0, 0.78) 52%, rgba(0, 0, 0, 0.58)),
        url("../img/igreja/hero-culto.jpg") center/cover;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 34%;
    background: linear-gradient(180deg, rgba(3, 3, 3, 0), var(--black));
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    max-width: 840px;
    line-height: 0.98;
}

.hero-copy {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
}

.section-pad {
    padding: 92px 0;
    position: relative;
}

/* Logos decorativas nas transições e laterais */
.bg-warm,
.moments-section,
.contact-section {
    position: relative;
}

/* Sobre — logo pequena na lateral esquerda (fundo escuro: screen) */
.bg-warm::before {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    left: 24px;
    top: 50%;
    transform: translateY(-50%) rotate(-12deg);
    background: url("../img/logo-nos-bracos-do-pai.jpg") center / cover;
    border-radius: 50%;
    opacity: 0.18;
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 1;
}

/* Momentos — logo pequena no canto superior direito (fundo escuro: screen) */
.moments-section::before {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    right: 32px;
    top: 48px;
    transform: rotate(8deg);
    background: url("../img/logo-nos-bracos-do-pai.jpg") center / cover;
    border-radius: 50%;
    opacity: 0.18;
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 1;
}

/* Contato — logo pequena no canto inferior esquerdo */
.contact-section {
    position: relative;
}

.contact-section::before {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    left: 32px;
    bottom: 32px;
    transform: rotate(-6deg);
    background: url("../img/logo-nos-bracos-do-pai.jpg") center / cover;
    border-radius: 50%;
    opacity: 0.1;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 1;
}

.bg-warm {
    color: #fff;
    background: var(--black);
}

.bg-warm .text-muted {
    color: rgba(255, 255, 255, 0.68) !important;
}

.story-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    border: 1px solid var(--line);
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.contact-section {
    background: var(--paper);
}

.moments-section {
    color: #fff;
    background: linear-gradient(180deg, var(--black), #111);
}

.moments-copy {
    color: rgba(255, 255, 255, 0.68);
    font-size: 1.05rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 240px;
    gap: 16px;
}

.gallery-item {
    position: relative;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(210, 173, 98, 0.24);
    border-radius: 8px;
    background: #111;
}

.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.62));
    pointer-events: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.92) contrast(1.04);
    transition: transform 0.45s ease, filter 0.45s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
    filter: saturate(1.04) contrast(1.06);
}

.gallery-item figcaption {
    position: absolute;
    left: 18px;
    bottom: 16px;
    z-index: 1;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 900;
    text-transform: uppercase;
}

.gallery-wide {
    grid-column: span 2;
}

.gallery-tall {
    grid-row: span 2;
}

.auth-page,
.dashboard-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(210, 173, 98, 0.16), transparent 30%),
        linear-gradient(135deg, #050505, #161616 48%, #f8f6f0 48%);
}

.eyebrow {
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.eyebrow.dark {
    color: var(--gold-dark);
}

.church-mark,
.info-card,
.auth-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.church-mark {
    color: #fff;
    padding: 28px;
}

.logo-card {
    background: rgba(3, 3, 3, 0.78);
    backdrop-filter: blur(12px);
}

.church-logo {
    width: min(340px, 100%);
    aspect-ratio: 1;
    border: 1px solid rgba(210, 173, 98, 0.55);
    border-radius: 8px;
    object-fit: cover;
}

.auth-logo {
    display: block;
    width: 116px;
    height: 116px;
    margin: 0 auto 24px;
    border: 1px solid rgba(210, 173, 98, 0.58);
    border-radius: 8px;
    object-fit: cover;
}

.info-card {
    min-height: 100%;
    padding: 28px;
    background: #fff;
}

.info-card strong {
    color: var(--black);
    font-size: 1rem;
}

.info-card p {
    margin: 8px 0 20px;
    color: var(--muted);
}

.auth-card {
    padding: 36px;
}

.form-control,
.form-select {
    min-height: 48px;
    border-radius: 8px;
    border-color: rgba(17, 17, 17, 0.14);
    background: #fff;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.22rem rgba(210, 173, 98, 0.2);
}

.dashboard-navbar {
    position: sticky;
    top: 0;
    z-index: 10;
}

.dashboard-shell {
    min-height: calc(100vh - 70px);
    background: var(--paper);
}

.admin-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    padding: 58px max(24px, calc((100vw - 1140px) / 2)) 52px;
    color: #fff;
    background:
        linear-gradient(120deg, rgba(3, 3, 3, 0.98), rgba(3, 3, 3, 0.88)),
        url("../img/logo-nos-bracos-do-pai.jpg") right center/420px auto no-repeat;
    border-bottom: 1px solid var(--line);
}

.admin-hero p:not(.eyebrow) {
    max-width: 640px;
    color: rgba(255, 255, 255, 0.76);
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.finance-total {
    min-width: min(100%, 280px);
    padding: 22px;
    border: 1px solid rgba(210, 173, 98, 0.28);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.finance-total span {
    display: block;
    color: rgba(255, 255, 255, 0.68);
    font-weight: 800;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.finance-total strong {
    display: block;
    color: #fff;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 2rem;
    line-height: 1;
}

.finance-overview .metric-card {
    min-height: 118px;
}

.finance-summary-card strong {
    font-size: clamp(1.8rem, 3vw, 2.35rem);
}

.dashboard-content {
    max-width: 1140px;
    margin: 0 auto;
    padding: 36px 24px 58px;
}

.users-content {
    max-width: 1480px;
}

.users-layout {
    display: grid;
    grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.panel-block,
.metric-card,
.member-card {
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
}

.panel-block {
    padding: 0;
    overflow: hidden;
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 26px;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.panel-block > p {
    padding: 24px 26px;
}

.panel-form {
    padding: 26px;
}

.metric-card {
    position: relative;
    min-height: 132px;
    padding: 24px;
    overflow: hidden;
    background: linear-gradient(145deg, #fff, #f4efe4);
}

.metric-card::after {
    content: "";
    position: absolute;
    right: 20px;
    top: 20px;
    width: 32px;
    height: 4px;
    border-radius: 8px;
    background: var(--gold);
}

.metric-card small {
    color: var(--muted);
    display: block;
    font-weight: 900;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.metric-card strong {
    color: var(--black);
    display: block;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2rem, 4vw, 2.7rem);
    line-height: 1;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    color: var(--muted);
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.table > :not(caption) > * > * {
    padding: 1rem 1.4rem;
    border-color: rgba(17, 17, 17, 0.07);
}

.table tbody tr:hover {
    background: #fbf8ef;
}

.member-thumb {
    width: 58px;
    height: 58px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid rgba(210, 173, 98, 0.58);
}

.badge {
    border-radius: 8px;
    padding: 0.5em 0.7em;
}

.status-pendente {
    background: #fff3cd;
    color: #7a5b00;
}

.status-aprovado {
    background: #d1e7dd;
    color: #0f5132;
}

.status-expirado,
.status-reprovado {
    background: #f8d7da;
    color: #842029;
}

.finance-badge {
    color: #151515;
    background: #f4e4bd;
}

.user-list {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.user-card-row {
    display: grid;
    grid-template-columns: 112px minmax(300px, 1.1fr) minmax(360px, 0.9fr);
    gap: 20px;
    align-items: start;
    padding: 18px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 8px;
    background: #fbf8ef;
}

.user-card-photo {
    width: 104px;
    height: 104px;
    min-width: 104px;
    max-width: 104px;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    align-self: start;
    border: 1px solid rgba(17, 17, 17, 0.12);
    background: #111;
}

.user-card-main {
    display: grid;
    gap: 6px;
    min-width: 0;
    font-size: 0.9rem;
}

.user-card-main strong {
    color: #151515;
    font-size: 1.08rem;
}

.user-card-main span {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.user-row-form {
    display: grid;
    grid-column: auto;
    grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) auto;
    gap: 10px;
    align-items: end;
    justify-content: stretch;
}

.user-row-form .form-select {
    min-height: 40px;
    font-size: 0.88rem;
}

.user-row-form label {
    display: grid;
    gap: 4px;
    margin: 0;
}

.user-row-form label span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.user-card-actions {
    display: flex;
    grid-column: 3 / -1;
    flex-wrap: wrap;
    gap: 8px;
    align-items: end;
    justify-content: flex-start;
}

.user-card-actions .btn,
.user-card-actions form {
    width: auto;
}

.user-card-actions .btn {
    white-space: nowrap;
}

.profile-photo-edit {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 8px;
    background: #fbf8ef;
}

.profile-photo-edit img {
    width: 88px;
    height: 88px;
    border: 1px solid rgba(17, 17, 17, 0.12);
    border-radius: 8px;
    background: #111;
    object-fit: cover;
}

.member-card {
    color: #fff;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(0, 0, 0, 0.98), rgba(31, 31, 31, 0.96)),
        url("../img/logo-nos-bracos-do-pai.jpg") right center/280px auto no-repeat;
}

.card-download-wrap {
    max-width: 860px;
    margin: 0 auto;
    overflow-x: auto;
    padding-bottom: 8px;
}

.member-card-download {
    width: min(100%, 820px);
    aspect-ratio: 95 / 62;
    margin: 0 auto;
}

.member-card-top,
.member-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 28px;
}

.member-card-top span,
.member-card-footer {
    color: #f5dfb0;
    font-weight: 800;
}

.member-card-top h2 {
    margin: 4px 0 0;
    font-weight: 900;
}

.card-logo {
    width: 74px;
    height: 74px;
    border: 1px solid rgba(210, 173, 98, 0.65);
    border-radius: 8px;
    object-fit: cover;
}

.member-card-body {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 28px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.08);
}

.member-card-body img {
    width: 140px;
    height: 180px;
    border-radius: 8px;
    object-fit: cover;
    border: 3px solid var(--gold);
}

.member-card-body p {
    color: #f5dfb0;
    font-size: 0.78rem;
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
}

.member-card-body h3,
.member-card-body h4 {
    margin: 4px 0 18px;
}

.report-page {
    background: #e9e5dc;
    padding: 32px 16px;
    overflow-x: auto;
}

.report-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.report-sheet {
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: 42px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.18);
}

.report-header {
    display: flex;
    align-items: center;
    gap: 22px;
    padding-bottom: 24px;
    border-bottom: 2px solid #151515;
}

.report-header img {
    width: 86px;
    height: 86px;
    border-radius: 8px;
    object-fit: cover;
}

.report-header p {
    margin: 0;
    color: var(--gold-dark);
    font-weight: 900;
    text-transform: uppercase;
}

.report-header h1 {
    margin: 2px 0;
    color: #151515;
}

.report-header span {
    color: var(--muted);
    font-weight: 700;
}

.report-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 26px 0;
}

.report-summary div {
    padding: 18px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 8px;
    background: #f8f6f0;
}

.report-summary span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.report-summary strong {
    color: #151515;
}

.report-section {
    margin-top: 28px;
    max-width: 100%;
}

.report-section h2 {
    font-family: "Manrope", Arial, Helvetica, sans-serif;
    font-size: 1.1rem;
    font-weight: 900;
    margin-bottom: 12px;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.report-table th,
.report-table td {
    padding: 10px;
    border: 1px solid rgba(17, 17, 17, 0.14);
    vertical-align: top;
}

.report-table th {
    color: #151515;
    background: #f4e4bd;
    font-weight: 900;
}

/* ---- Animações de entrada ---- */
.anim-reveal,
.anim-reveal-left,
.anim-reveal-right {
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.anim-reveal        { transform: translateY(36px); }
.anim-reveal-left   { transform: translateX(-40px); }
.anim-reveal-right  { transform: translateX(40px); }

.anim-delay-1 { transition-delay: 0.12s; }
.anim-delay-2 { transition-delay: 0.22s; }
.anim-delay-3 { transition-delay: 0.32s; }
.anim-delay-4 { transition-delay: 0.42s; }
.anim-delay-5 { transition-delay: 0.52s; }
.anim-delay-6 { transition-delay: 0.62s; }

.anim-reveal.is-visible,
.anim-reveal-left.is-visible,
.anim-reveal-right.is-visible {
    opacity: 1;
    transform: none;
}

@media print {
    .site-navbar,
    .admin-hero,
    .report-actions,
    .btn {
        display: none !important;
    }

    body,
    .dashboard-shell,
    .dashboard-page,
    .report-page {
        background: #fff !important;
        padding: 0 !important;
    }

    .dashboard-content {
        padding: 0 !important;
    }

    .member-card {
        width: 100% !important;
        box-shadow: none !important;
    }

    .report-sheet {
        width: 100% !important;
        padding: 18px !important;
        box-shadow: none !important;
    }

    .report-summary {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991.98px) {
    .admin-hero {
        align-items: flex-start;
        flex-direction: column;
        background:
            linear-gradient(120deg, rgba(3, 3, 3, 0.98), rgba(3, 3, 3, 0.9)),
            url("../img/logo-nos-bracos-do-pai.jpg") right bottom/260px auto no-repeat;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 220px;
    }

    .users-layout,
    .user-card-row {
        grid-template-columns: 1fr;
    }

    .user-row-form,
    .user-card-actions {
        grid-column: auto;
    }

    .user-card-photo {
        width: 92px;
        height: 92px;
        min-width: 92px;
        max-width: 92px;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: auto;
        padding: 112px 0 72px;
    }

    .hero-title {
        font-size: 2.55rem;
    }

    .section-pad {
        padding: 64px 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 260px;
    }

    .gallery-wide,
    .gallery-tall {
        grid-column: auto;
        grid-row: auto;
    }

    .auth-page,
    .dashboard-page {
        background:
            radial-gradient(circle at top left, rgba(210, 173, 98, 0.14), transparent 42%),
            linear-gradient(180deg, #050505 0 240px, #f8f6f0 240px);
    }

    .auth-card {
        padding: 26px;
    }

    .admin-hero {
        padding: 42px 20px;
    }

    .dashboard-content {
        padding: 28px 16px 48px;
    }

    .panel-heading {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }

    .member-card-body {
        grid-template-columns: 1fr;
    }

    .member-card-body img {
        width: 120px;
        height: 150px;
    }

    .member-card-download {
        min-width: 520px;
    }

    .member-card-download .member-card-top,
    .member-card-download .member-card-footer {
        padding: 16px 20px;
    }

    .member-card-download .member-card-body {
        grid-template-columns: 110px 1fr;
        gap: 18px;
        padding: 18px 20px;
    }

    .member-card-download .member-card-body img {
        width: 110px;
        height: 140px;
    }

    .member-card-download .member-card-body h3,
    .member-card-download .member-card-body h4 {
        margin-bottom: 10px;
    }

    .user-row-form {
        grid-template-columns: 1fr;
    }

    .user-card-row {
        grid-template-columns: 1fr;
    }

    .user-card-photo {
        width: 104px;
        height: 104px;
        min-width: 104px;
        max-width: 104px;
    }

    .profile-photo-edit {
        grid-template-columns: 1fr;
    }

    .report-sheet {
        padding: 24px;
        overflow: hidden;
    }

    .report-header,
    .report-summary {
        grid-template-columns: 1fr;
    }

    .report-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .report-section {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .report-section h2,
    .report-section > p {
        min-width: 0;
    }

    .report-table {
        min-width: 760px;
        font-size: 0.84rem;
    }

    .report-table th,
    .report-table td {
        padding: 8px;
        overflow-wrap: anywhere;
    }
}
