/* ============================================================
   Reino de Maria — Estilos principais
   Paleta: Azul-marinho #1a2e4a | Dourado #c9a84c | Branco #fff
   ============================================================ */

/* ---- Variáveis ---- */
:root {
    --azul:   #1a2e4a;
    --azul2:  #243d61;
    --dourado: #c9a84c;
    --dourado2: #e8c96e;
    --branco: #ffffff;
    --cinza:  #f8f7f5;
    --texto:  #333333;
    --sombra: 0 4px 24px rgba(26,46,74,.12);
}

/* ---- Reset / Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--texto);
    background: var(--branco);
    overflow-x: hidden;
}

a { color: var(--dourado); text-decoration: none; }
a:hover { color: var(--dourado2); }

/* ---- Navbar ---- */
.navbar-reino {
    background: var(--azul) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
    padding: .75rem 1rem;
}
.navbar-reino .navbar-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dourado) !important;
    letter-spacing: .5px;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}
.navbar-reino .brand-logo {
    width: 90rem;
    height: 90rem;
    object-fit: contain;
    border-radius: 8px;
}
.navbar-reino .brand-text {
    line-height: 1;
}
.navbar-reino .nav-link {
    color: rgba(255,255,255,.88) !important;
    font-weight: 500;
    padding: .5rem .85rem !important;
    transition: color .2s;
}
.navbar-reino .nav-link:hover,
.navbar-reino .nav-link.active {
    color: var(--dourado) !important;
}
.navbar-reino .btn-blog-nav {
    background: var(--dourado);
    color: var(--azul) !important;
    border-radius: 20px;
    padding: .4rem 1.1rem !important;
    font-weight: 700;
}
.navbar-reino .btn-blog-nav:hover {
    background: var(--dourado2);
}
.navbar-toggler { border-color: var(--dourado); }
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28201%2C168%2C76%2C1%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---- Hero / Carrossel ---- */
#banner { margin-top: 0; }
#carrosselBanners .carousel-item { height: 92vh; min-height: 480px; max-height: 780px; }
#carrosselBanners .carousel-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(.55);
}
.carousel-caption {
    bottom: 50%;
    transform: translateY(50%);
    text-shadow: 0 2px 8px rgba(0,0,0,.6);
}
.carousel-caption h2 {
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 800;
    color: var(--branco);
}
.carousel-caption p {
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: rgba(255,255,255,.9);
}
.carousel-caption .btn-banner {
    background: var(--dourado);
    color: var(--azul);
    border: none;
    border-radius: 25px;
    padding: .6rem 2rem;
    font-weight: 700;
    font-size: 1rem;
    transition: background .2s, transform .2s;
}
.carousel-caption .btn-banner:hover { background: var(--dourado2); transform: scale(1.05); }
.carousel-indicators [data-bs-target] {
    background-color: var(--dourado);
    width: 10px; height: 10px;
    border-radius: 50%;
}
#carrosselBanners .carousel-caption {
    left: 10%;
    right: 10%;
}

/* ---- Seções Gerais ---- */
section { padding: 80px 0; }
section:nth-child(even) { background: var(--cinza); }

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--azul);
    position: relative;
    display: block;
    max-width: 100%;
    white-space: normal;
    line-height: 1.25;
    padding-bottom: .5rem;
}
.section-title h2::after {
    content: '';
    position: absolute;
    left: 50%; bottom: 0;
    transform: translateX(-50%);
    width: 60px; height: 3px;
    background: var(--dourado);
    border-radius: 2px;
}
.section-title p {
    color: #666;
    font-size: 1.05rem;
    max-width: 620px;
    margin: 1rem auto 0;
}

/* ---- Quem Somos ---- */
#quem-somos .card-missao {
    border: none;
    border-radius: 16px;
    box-shadow: var(--sombra);
    padding: 2rem;
    height: 100%;
    background: var(--branco);
}
#quem-somos .card-missao .icone-topo {
    width: 56px; height: 56px;
    background: var(--azul);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
}
#quem-somos .card-missao .icone-topo i {
    color: var(--dourado);
    font-size: 1.6rem;
}
#quem-somos .card-missao h3 { color: var(--azul); font-weight: 700; }

/* ---- Consagração ---- */
#consagracao {
    background: linear-gradient(135deg, var(--azul) 0%, var(--azul2) 100%);
    color: var(--branco);
    position: relative;
    overflow: hidden;
}
#consagracao::before {
    content: '✦';
    position: absolute;
    font-size: 22rem;
    color: rgba(201,168,76,.05);
    top: -80px; right: -60px;
    pointer-events: none;
}
#consagracao .badge-subtitulo {
    background: var(--dourado);
    color: var(--azul);
    border-radius: 20px;
    padding: .35rem 1.2rem;
    font-weight: 700;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
#consagracao h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 800; }
#consagracao p  { font-size: 1.08rem; line-height: 1.8; opacity: .92; }
#consagracao .consagracao-carousel {
    padding: .5rem 0 2.5rem;
}
#consagracao .consagracao-slide {
    min-height: 430px;
    display: flex;
    align-items: center;
    padding: 1rem 0 2rem;
}
#consagracao .consagracao-texto p:last-child {
    margin-bottom: 0;
}
#consagracao .consagracao-media-card {
    min-height: 320px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 26px;
    box-shadow: 0 18px 45px rgba(0,0,0,.18);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
#consagracao .consagracao-side-image {
    width: 100%;
    height: 100%;
    min-height: 288px;
    object-fit: cover;
    border-radius: 20px;
}
#consagracao .consagracao-icon-fallback {
    width: 100%;
    min-height: 288px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: .22;
}
#consagracao .consagracao-icon-fallback i {
    font-size: clamp(5rem, 16vw, 12rem);
    color: #fff;
}
#consagracao .consagracao-video-frame {
    padding: 1rem;
}
#consagracao .consagracao-video-frame .ratio,
#consagracao .consagracao-video-frame video {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
}
#consagracao .consagracao-video-placeholder {
    opacity: .28;
}
#consagracao .consagracao-control {
    width: 42px;
    height: 42px;
    top: auto;
    bottom: 0;
    transform: none;
    background: rgba(255,255,255,.14);
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.18);
}
#consagracao .carousel-control-prev.consagracao-control { left: 0; }
#consagracao .carousel-control-next.consagracao-control { right: 0; }
#consagracao .consagracao-indicators {
    bottom: 0;
    margin-bottom: 0;
}
#consagracao .consagracao-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
#consagracao .btn-consagracao {
    background: var(--dourado);
    color: var(--azul);
    border: none;
    border-radius: 25px;
    padding: .7rem 2.2rem;
    font-weight: 700;
    font-size: 1rem;
    transition: background .2s, transform .2s;
}
#consagracao .btn-consagracao:hover { background: var(--dourado2); transform: scale(1.04); }

/* ---- Graças ---- */
.card-graca {
    border: none;
    border-radius: 14px;
    box-shadow: var(--sombra);
    padding: 1.6rem 1.2rem;
    text-align: center;
    transition: transform .25s, box-shadow .25s;
    background: var(--branco);
    height: 100%;
    overflow: hidden;
}
.card-graca:hover { transform: translateY(-6px); box-shadow: 0 8px 32px rgba(26,46,74,.18); }
.card-graca .icone-graca {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--azul), var(--azul2));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
    overflow: hidden;
}
.card-graca .icone-graca i { color: var(--dourado); font-size: 1.6rem; }
.card-graca .icone-graca img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-graca h5 {
    color: var(--azul);
    font-weight: 700;
    font-size: .95rem;
    margin-bottom: .55rem;
    max-width: 100%;
    overflow-wrap: anywhere;
}
.card-graca p  {
    color: #666;
    font-size: .85rem;
    line-height: 1.6;
    margin: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}

/* ---- Loja ---- */
#loja { background: var(--cinza); }
#carrosselProdutos .carousel-item {
    height: auto;
    min-height: 0;
    max-height: none;
}
.card-produto {
    border: none;
    border-radius: 14px;
    box-shadow: var(--sombra);
    overflow: hidden;
    transition: transform .25s;
    background: var(--branco);
}
.card-produto:hover { transform: translateY(-5px); }
.card-produto img {
    width: 100%; height: 220px;
    object-fit: cover;
}
.card-produto .card-body { padding: 1.2rem; }
.card-produto .card-title { font-size: .95rem; font-weight: 700; color: var(--azul); }
.card-produto .preco { font-size: 1.2rem; font-weight: 800; color: var(--dourado); }
.card-produto .btn-comprar {
    background: var(--azul);
    color: var(--branco);
    border: none;
    border-radius: 20px;
    width: 100%;
    padding: .5rem;
    font-weight: 600;
    transition: background .2s;
}
.card-produto .btn-comprar:hover { background: var(--azul2); }

/* ---- Blog ---- */
#blog { background: var(--branco); }
.card-post {
    border: none;
    border-radius: 14px;
    box-shadow: var(--sombra);
    overflow: hidden;
    transition: transform .25s;
    height: 100%;
    display: flex; flex-direction: column;
}
.card-post:hover { transform: translateY(-5px); }
.card-post img { width: 100%; height: 200px; object-fit: cover; }
.card-post .card-body { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; }
.card-post .card-title { font-size: 1rem; font-weight: 700; color: var(--azul); }
.card-post .card-text  { font-size: .88rem; color: #666; flex: 1; }
.card-post .data-post  { font-size: .78rem; color: #999; margin-bottom: .5rem; }
.card-post .btn-leiamais {
    background: transparent;
    border: 2px solid var(--azul);
    color: var(--azul);
    border-radius: 20px;
    padding: .35rem 1rem;
    font-size: .85rem;
    font-weight: 600;
    transition: all .2s;
    align-self: flex-start;
    margin-top: auto;
}
.card-post .btn-leiamais:hover { background: var(--azul); color: var(--branco); }

/* ---- Contato ---- */
#contato { background: var(--cinza); }
#contato .form-control, #contato .form-select {
    border: 1.5px solid #ddd;
    border-radius: 10px;
    padding: .75rem 1rem;
    font-size: .95rem;
    transition: border-color .2s;
}
#contato .form-control:focus {
    border-color: var(--dourado);
    box-shadow: 0 0 0 .2rem rgba(201,168,76,.2);
}
#contato .btn-enviar {
    background: var(--azul);
    color: var(--branco);
    border: none;
    border-radius: 25px;
    padding: .7rem 2.5rem;
    font-weight: 700;
    font-size: 1rem;
    transition: background .2s, transform .2s;
}
#contato .btn-enviar:hover { background: var(--azul2); transform: scale(1.03); }
.contato-info i { color: var(--dourado); font-size: 1.4rem; }

.pix-doacao-card {
    background: #fff;
    border: 1px solid #e6e9ef;
    border-radius: 14px;
    padding: 1rem;
    box-shadow: 0 2px 12px rgba(26,46,74,.06);
}
.pix-doacao-card h5 {
    color: var(--azul);
    font-weight: 700;
    font-size: 1.05rem;
}
.pix-doacao-card p {
    color: #5f6a7a;
    font-size: .92rem;
    line-height: 1.55;
}
.pix-qr-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #d8dde6;
}
.pix-chave-box {
    font-size: .86rem;
    background: #f4f7fb;
    border: 1px dashed #b9c6db;
    border-radius: 10px;
    padding: .55rem .65rem;
    color: #35465f;
    overflow-wrap: anywhere;
}

/* ---- Footer ---- */
footer {
    background: var(--azul);
    color: rgba(255,255,255,.8);
    padding: 60px 0 20px;
}
footer h5 { color: var(--dourado); font-weight: 700; margin-bottom: 1rem; }
footer a  { color: rgba(255,255,255,.7); transition: color .2s; }
footer a:hover { color: var(--dourado); }
footer .social-icons a {
    width: 38px; height: 38px;
    background: rgba(255,255,255,.1);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1rem;
    transition: background .2s;
}
footer .social-icons a:hover { background: var(--dourado); color: var(--azul); }
footer hr { border-color: rgba(255,255,255,.15); }
footer .copy { font-size: .85rem; color: rgba(255,255,255,.5); }

/* ---- Utilitários ---- */
.btn-dourado {
    background: var(--dourado);
    color: var(--azul);
    border: none;
    border-radius: 25px;
    font-weight: 700;
    transition: background .2s, transform .2s;
}
.btn-dourado:hover { background: var(--dourado2); color: var(--azul); transform: scale(1.03); }
.btn-azul {
    background: var(--azul);
    color: var(--branco);
    border: none;
    border-radius: 25px;
    font-weight: 700;
    transition: background .2s;
}
.btn-azul:hover { background: var(--azul2); color: var(--branco); }

/* Placeholder para imagens sem foto */
.img-placeholder {
    background: linear-gradient(135deg, #d8e4f0, #b8cfe6);
    display: flex; align-items: center; justify-content: center;
    color: #8aaac8;
}
.img-placeholder i { font-size: 3rem; }

/* Toast de feedback */
#toast-contato { min-width: 260px; }

/* WhatsApp flutuante */
.btn-whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1080;
    background: #25d366;
    color: #fff;
    border-radius: 999px;
    padding: .62rem .95rem;
    font-weight: 700;
    box-shadow: 0 8px 28px rgba(37,211,102,.45);
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}
.btn-whatsapp-float i { font-size: 1.25rem; }
.btn-whatsapp-float:hover { background: #1da851; color: #fff; }

/* ---- Blog / Post pages ---- */
.blog-header {
    background: linear-gradient(135deg, var(--azul), var(--azul2));
    color: var(--branco);
    padding: 80px 0 50px;
    margin-top: 72px;
}
.blog-header h1 { font-weight: 800; }
.card-post-blog { border: none; border-radius: 14px; box-shadow: var(--sombra); overflow: hidden; transition: transform .25s; }
.card-post-blog:hover { transform: translateY(-4px); }
.card-post-blog img { width: 100%; height: 210px; object-fit: cover; }
.card-post-blog .card-body { padding: 1.3rem; }
.pagination .page-link { color: var(--azul); border-radius: 8px; margin: 0 2px; }
.pagination .page-item.active .page-link { background: var(--azul); border-color: var(--azul); }
.post-content { font-size: 1.08rem; line-height: 1.9; color: #444; }
.post-content h2, .post-content h3 { color: var(--azul); font-weight: 700; margin-top: 2rem; }
.post-content img { max-width: 100%; border-radius: 12px; margin: 1.5rem 0; }

/* ---- Admin ---- */
.sidebar-admin {
    width: 240px;
    min-height: 100vh;
    background: var(--azul);
    position: fixed;
    top: 0; left: 0;
    overflow-y: auto;
    z-index: 100;
    transition: width .25s;
}
.sidebar-admin .logo-admin {
    padding: 1.5rem 1rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.sidebar-admin .logo-admin span { color: var(--dourado); font-weight: 800; font-size: 1.1rem; }
.sidebar-admin .nav-link {
    color: rgba(255,255,255,.75);
    padding: .7rem 1.2rem;
    border-radius: 8px;
    margin: 2px 8px;
    font-size: .92rem;
    transition: all .2s;
}
.sidebar-admin .nav-link:hover,
.sidebar-admin .nav-link.active {
    background: rgba(201,168,76,.15);
    color: var(--dourado);
}
.sidebar-admin .nav-link i { margin-right: .5rem; width: 18px; }
.admin-content {
    margin-left: 240px;
    padding: 2rem;
    min-height: 100vh;
    background: #f0f2f5;
}
.admin-topbar {
    background: var(--branco);
    padding: .85rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.admin-topbar h4 { margin: 0; color: var(--azul); font-weight: 700; }
.admin-card {
    background: var(--branco);
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0,0,0,.07);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.admin-card h5 { color: var(--azul); font-weight: 700; margin-bottom: 1.2rem; }
.table-admin th { background: var(--azul); color: var(--branco); font-size: .88rem; }
.table-admin td { vertical-align: middle; font-size: .9rem; }
.badge-lida   { background: #28a745; }
.badge-nolida { background: #dc3545; }
.stat-card {
    background: var(--branco);
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0,0,0,.07);
    padding: 1.5rem;
    display: flex; align-items: center; gap: 1rem;
}
.stat-card .stat-icon {
    width: 56px; height: 56px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
}
.stat-card .stat-num  { font-size: 2rem; font-weight: 800; color: var(--azul); }
.stat-card .stat-label{ font-size: .85rem; color: #888; }

@media (max-width: 767px) {
    .sidebar-admin { width: 100%; min-height: auto; position: relative; }
    .admin-content { margin-left: 0; padding: 1rem; }
    #carrosselBanners .carousel-item { height: 65vw; min-height: 260px; }
    #carrosselBanners .carousel-caption {
        display: block !important;
        left: 6%;
        right: 6%;
        bottom: 1.2rem;
        transform: none;
    }
    #carrosselBanners .carousel-caption h2 { font-size: clamp(1.1rem, 6vw, 1.6rem); }
    #carrosselBanners .carousel-caption p { font-size: .95rem; margin-bottom: .6rem; }
    #carrosselBanners .carousel-caption .btn-banner { padding: .45rem 1.2rem; font-size: .9rem; }
    #consagracao .consagracao-slide {
        min-height: auto;
        padding: .25rem 0 2.5rem;
    }
    #consagracao .consagracao-media-card {
        min-height: 230px;
        padding: .75rem;
    }
    #consagracao .consagracao-side-image,
    #consagracao .consagracao-icon-fallback {
        min-height: 210px;
    }
    #consagracao .consagracao-control {
        width: 38px;
        height: 38px;
    }
    .navbar-reino .brand-logo { width: 90rem; height: 90rem; }
    .btn-whatsapp-float span { display: none; }
}

