/* =====================================================
   IGREJA BATISTA RENOVADA SHANGRILÁ
   style.css — Premium Modern Design
   ===================================================== */

/* ===============================
   VARIÁVEIS
   =============================== */
:root {
    /* Cores extraídas do brasão oficial da IBRS */
    --primary: #0d2c6b;
    /* azul royal, medido no arquivo da logo */
    --primary-light: #2c4b88;
    --primary-dark: #061a45;
    --secondary: #061a45;
    --gold: #c0a061;
    /* dourado antigo do brasão */
    --gold-light: #e4d3a6;
    --gold-dark: #8d7038;
    /* tom escuro do dourado, para texto branco por cima */
    --light: #f5f7fb;
    --white: #ffffff;
    --heading: #0b2153;
    --text: #475569;
    --muted: #94a3b8;
    --line: #e2e8f0;
    --danger: #dc2626;
    --success: #16a34a;

    --radius-sm: 14px;
    --radius: 22px;
    --radius-lg: 30px;
    --radius-pill: 999px;

    --shadow-sm: 0 4px 16px rgba(15, 23, 42, .06);
    --shadow: 0 20px 50px rgba(15, 23, 42, .10);
    --shadow-lg: 0 30px 70px rgba(15, 23, 42, .16);

    --header-h: 84px;
    --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ===============================
   RESET
   =============================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--heading);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

p {
    color: var(--text);
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    background: none;
    color: inherit;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: 16px;
    /* 16px evita zoom automático no iOS */
    color: var(--heading);
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
    border-radius: 6px;
}

/* Acessibilidade */
.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: absolute;
    top: -100px;
    left: 16px;
    z-index: 2000;
    background: var(--gold);
    color: var(--primary-dark);
    padding: 12px 22px;
    border-radius: 0 0 12px 12px;
    font-weight: 600;
    transition: top .25s var(--ease);
}

.skip-link:focus {
    top: 0;
}

.honeypot {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0;
    height: 0;
    width: 0;
}

/* ===============================
   LAYOUT BASE
   =============================== */
.container {
    width: min(1200px, 100% - 40px);
    margin-inline: auto;
}

.section {
    padding: clamp(70px, 9vw, 120px) 0;
}

.section.light {
    background: var(--light);
}

/* ===============================
   HEADER
   =============================== */
header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    padding: 18px 0;
    transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
}

header.scrolled {
    background: rgba(255, 255, 255, .88);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
    padding: 12px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    flex-shrink: 0;
}

.logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
    transition: width .4s var(--ease), height .4s var(--ease);
}

header.scrolled .logo-img {
    width: 42px;
    height: 42px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.logo-text strong {
    font-size: 17px;
    font-weight: 700;
}

.logo-text span {
    font-size: 13px;
    font-weight: 400;
    opacity: .9;
}

header.scrolled .logo {
    color: var(--heading);
}

/* Navegação desktop */
nav ul {
    display: flex;
    list-style: none;
    gap: clamp(18px, 2.2vw, 34px);
}

nav a {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    padding-block: 4px;
    transition: color .3s var(--ease);
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width .3s var(--ease);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a:hover,
nav a.active {
    color: var(--gold);
}

header.scrolled nav a {
    color: var(--heading);
}

header.scrolled nav a:hover,
header.scrolled nav a.active {
    color: var(--primary);
}

.btn-header {
    padding: 12px 26px;
    background: var(--gold);
    color: var(--primary-dark);
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(192, 160, 97, .32);
    transition: transform .3s var(--ease), background .3s var(--ease);
}

.btn-header:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
}

/* Botão hambúrguer */
.mobile-menu {
    display: none;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    place-items: center;
    background: rgba(255, 255, 255, .14);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .25);
    flex-shrink: 0;
}

header.scrolled .mobile-menu {
    background: rgba(15, 23, 42, .06);
    border-color: rgba(15, 23, 42, .1);
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .35s var(--ease), opacity .2s linear, background .3s var(--ease);
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: "";
    position: absolute;
    left: 0;
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

header.scrolled .hamburger,
header.scrolled .hamburger::before,
header.scrolled .hamburger::after {
    background: var(--heading);
}

.mobile-menu[aria-expanded="true"] .hamburger {
    background: transparent !important;
}

.mobile-menu[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

.nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 990;
    background: rgba(15, 23, 42, .55);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity .35s var(--ease);
}

.nav-backdrop.visible {
    opacity: 1;
}

/* ===============================
   HERO (gradiente, sem imagem)
   =============================== */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    padding: calc(var(--header-h) + 40px) 0 90px;
    /* Gradiente inspirado no azul royal e no navy do brasão */
    background:
        radial-gradient(1100px 620px at 18% 12%, rgba(44, 75, 136, .70), transparent 62%),
        radial-gradient(880px 520px at 84% 18%, rgba(192, 160, 97, .22), transparent 62%),
        radial-gradient(1000px 700px at 50% 112%, rgba(6, 26, 69, .88), transparent 66%),
        linear-gradient(158deg, #071e4e 0%, #0d2c6b 48%, #05132f 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-bg::after {
    /* textura sutil de "luz" */
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%);
    mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .5;
    animation: float 16s ease-in-out infinite;
}

.orb-1 {
    width: 380px;
    height: 380px;
    background: #2c4b88;
    top: -80px;
    left: -60px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--gold);
    bottom: -60px;
    right: -40px;
    animation-delay: -5s;
}

.orb-3 {
    width: 340px;
    height: 340px;
    background: #0d2c6b;
    top: 45%;
    left: 55%;
    animation-delay: -9s;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    animation: fadeUp 1s var(--ease) both;
}

.tag {
    display: inline-block;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 8px 22px;
    border-radius: var(--radius-pill);
    margin-bottom: 26px;
    font-size: 14px;
    letter-spacing: .3px;
}

.hero h1 {
    font-size: clamp(34px, 6vw, 72px);
    line-height: 1.08;
    margin-bottom: 22px;
    font-weight: 800;
    letter-spacing: -1px;
    text-wrap: balance;
}

.hero p {
    color: rgba(255, 255, 255, .88);
    font-size: clamp(16px, 2vw, 20px);
    max-width: 640px;
    margin-inline: auto;
    text-wrap: pretty;
}

.hero-buttons {
    margin-top: 38px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 34px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    transition: transform .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}

.btn-primary {
    background: var(--gold);
    color: var(--primary-dark);
    box-shadow: 0 18px 38px rgba(192, 160, 97, .34);
}

.btn-primary:hover {
    background: var(--gold-dark);
    transform: translateY(-4px);
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, .5);
    color: #fff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, .12);
    transform: translateY(-4px);
}

.hero-facts {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 52px;
}

.hero-facts li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    min-width: 190px;
}

.hero-facts strong {
    font-size: 15px;
    color: var(--gold);
    letter-spacing: .5px;
    text-transform: uppercase;
}

.hero-facts span {
    font-size: 14px;
    color: rgba(255, 255, 255, .85);
}

.scroll-hint {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-radius: var(--radius-pill);
    display: grid;
    place-items: start center;
    padding-top: 8px;
}

.scroll-hint span {
    width: 4px;
    height: 8px;
    border-radius: 2px;
    background: #fff;
    animation: scrollDot 1.8s ease-in-out infinite;
}

/* ===============================
   TÍTULOS DE SEÇÃO
   =============================== */
.section-title {
    text-align: center;
    margin-bottom: clamp(45px, 6vw, 70px);
}

.section-title span {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
}

.section-title h2 {
    font-size: clamp(28px, 4.2vw, 42px);
    margin-top: 12px;
    line-height: 1.2;
    letter-spacing: -.5px;
    text-wrap: balance;
}

/* ===============================
   SOBRE
   =============================== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.about-grid>div {
    padding: 38px 34px;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.about-grid>div:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.about-grid h3,
.card h3 {
    margin-bottom: 12px;
    font-size: 21px;
}

.icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #eaf0fa, #dde5f5);
    font-size: 26px;
    margin-bottom: 18px;
}

/* ===============================
   CARDS
   =============================== */
.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

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

.card {
    background: #fff;
    padding: 36px 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

/* Seletor mais específico para não ser sobrescrito por .reveal.show */
.cards .card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.card-event .day {
    display: inline-block;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.card-event .hour {
    display: inline-block;
    min-width: 46px;
    font-weight: 700;
    color: var(--gold-dark);
}

/* Evento com data marcada — destaque dourado, para diferenciar
   dos cultos regulares que acontecem toda semana */
.card-event .day-data {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff;
    letter-spacing: 1.5px;
}

.cards .card-datado {
    border-color: rgba(192, 160, 97, .55);
    box-shadow: 0 4px 16px rgba(192, 160, 97, .16);
}

.cards .card-datado:hover {
    box-shadow: 0 20px 50px rgba(192, 160, 97, .24);
}

.card-event .data-completa {
    margin: -6px 0 12px;
    font-size: 13.5px;
    color: var(--gold-dark) !important;
    font-weight: 600;
    text-transform: capitalize;
}

/* ===============================
   LEMA — ISAÍAS 40:31
   =============================== */
.lema {
    position: relative;
    padding: clamp(60px, 8vw, 100px) 0;
    text-align: center;
    color: #fff;
    overflow: hidden;
    background:
        radial-gradient(700px 340px at 50% 0%, rgba(44, 75, 136, .60), transparent 70%),
        linear-gradient(135deg, var(--primary-dark) 0%, #0d2c6b 55%, #05132f 100%);
}

.lema::before {
    /* brilho dourado sutil ao fundo */
    content: "";
    position: absolute;
    inset: auto 0 -60% 0;
    height: 100%;
    background: radial-gradient(closest-side, rgba(192, 160, 97, .20), transparent);
    pointer-events: none;
}

.lema .container {
    position: relative;
    z-index: 1;
    max-width: 860px;
}

.lema-ornamento {
    display: block;
    width: 120px;
    height: 2px;
    margin: 0 auto;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.lema-ref {
    color: var(--gold-light) !important;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 22px 0 14px;
}

.lema blockquote {
    font-size: clamp(20px, 3.2vw, 34px);
    line-height: 1.55;
    font-weight: 300;
    font-style: italic;
    text-wrap: balance;
    margin-bottom: 18px;
}

.lema-nota {
    color: rgba(255, 255, 255, .6) !important;
    font-size: 14px;
    margin-bottom: 22px;
}

/* ===============================
   BÍBLIA
   =============================== */
.bible-search {
    display: flex;
    max-width: 700px;
    margin-inline: auto;
    gap: 12px;
}

.bible-search input {
    flex: 1;
    min-width: 0;
    padding: 17px 24px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line);
    background: #fff;
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.bible-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(13, 44, 107, .14);
}

.bible-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--primary);
    color: #fff;
    padding: 0 34px;
    min-height: 56px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    white-space: nowrap;
    transition: background .3s var(--ease), transform .3s var(--ease);
}

.bible-search button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.bible-search button:disabled,
.prayer-form button:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
}

/* Spinner */
.spinner {
    display: none;
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

.is-loading .spinner {
    display: block;
}

.is-loading .btn-label {
    opacity: .8;
}

.bible-suggestions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 14px;
    color: var(--muted);
}

.bible-suggestions button {
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    background: #fff;
    border: 1px solid var(--line);
    font-size: 14px;
    color: var(--text);
    transition: all .25s var(--ease);
}

.bible-suggestions button:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #eaf0fa;
}

.verse {
    margin-top: 36px;
    padding: clamp(28px, 4vw, 46px);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-lg);
    color: #fff;
    box-shadow: var(--shadow);
    transition: opacity .3s var(--ease);
}

/* Só o conteúdo esmaece durante a busca — não o bloco inteiro,
   para não conflitar com a animação de entrada (.reveal) */
.verse.loading strong,
.verse.loading p,
.verse.loading small {
    opacity: .45;
}

.verse strong {
    display: block;
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--gold-light);
}

.verse p {
    color: rgba(255, 255, 255, .95);
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.8;
    white-space: pre-line;
}

.verse small {
    display: block;
    margin-top: 18px;
    color: rgba(255, 255, 255, .6);
    font-size: 13px;
}

.verse.error {
    background: linear-gradient(135deg, #b91c1c, #7f1d1d);
}

/* ===============================
   EXPLICADOR BÍBLICO
   =============================== */
.secao-descricao {
    text-align: center;
    max-width: 640px;
    margin: -35px auto 40px;
    font-size: 16px;
}

.btn-explicar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 11px 24px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .35);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    transition: background .3s var(--ease), transform .3s var(--ease);
}

.btn-explicar::before {
    content: "✨";
}

.btn-explicar:hover {
    background: rgba(255, 255, 255, .24);
    transform: translateY(-2px);
}

.explicador-box {
    max-width: 820px;
    margin-inline: auto;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    padding: clamp(22px, 3.5vw, 34px);
    box-shadow: var(--shadow);
}

.explicador-form {
    display: flex;
    gap: 12px;
}

.explicador-form input {
    flex: 1;
    min-width: 0;
    padding: 17px 24px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line);
    background: #fff;
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.explicador-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(13, 44, 107, .14);
}

.explicador-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--primary);
    color: #fff;
    padding: 0 34px;
    min-height: 56px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    white-space: nowrap;
    transition: background .3s var(--ease), transform .3s var(--ease);
}

.explicador-form button:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.explicador-form button:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
}

.explicador-box .bible-suggestions {
    margin-top: 18px;
    justify-content: flex-start;
}

/* Resultado */
.explicacao {
    margin-top: 28px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
    animation: fadeUp .5s var(--ease) both;
}

.explicacao-verso {
    padding: 22px 26px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    margin-bottom: 26px;
}

.explicacao-verso strong {
    display: block;
    font-size: 17px;
    color: var(--gold-light);
    margin-bottom: 8px;
}

.explicacao-verso p {
    color: rgba(255, 255, 255, .95);
    font-size: 16px;
    line-height: 1.75;
    font-style: italic;
}

.explicacao-conteudo h4 {
    font-size: 16px;
    color: var(--primary);
    margin: 24px 0 8px;
    padding-left: 14px;
    border-left: 3px solid var(--gold);
    border-radius: 0;
    line-height: 1.4;
}

.explicacao-conteudo h4:first-child {
    margin-top: 0;
}

.explicacao-conteudo p {
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.8;
}

.explicacao-conteudo p.topico {
    padding-left: 18px;
    position: relative;
}

.explicacao-conteudo p.topico::before {
    content: "•";
    position: absolute;
    left: 4px;
    color: var(--gold-dark);
}

.explicacao-fonte {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--muted) !important;
}

.explicacao.erro .explicacao-verso {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.explicacao.erro .explicacao-verso strong {
    color: #991b1b;
}

.explicacao.erro .explicacao-conteudo p {
    color: #991b1b;
}

/* Estado de carregamento da IA */
.carregando-ia {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 15px;
    padding: 10px 0;
}

.pontos {
    display: inline-flex;
    gap: 5px;
}

.pontos span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: blink 1.3s infinite;
}

.pontos span:nth-child(2) {
    animation-delay: .2s;
}

.pontos span:nth-child(3) {
    animation-delay: .4s;
}

.aviso-ia {
    max-width: 820px;
    margin: 22px auto 0;
    text-align: center;
    font-size: 13px;
    color: var(--muted) !important;
    line-height: 1.7;
}

.aviso-ia a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

/* ===============================
   FORMULÁRIO DE ORAÇÃO
   =============================== */
.prayer-form {
    max-width: 700px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.field-row {
    display: flex;
    gap: 20px;
}

.prayer-form label {
    font-size: 14px;
    font-weight: 600;
    color: var(--heading);
}

.prayer-form label span {
    color: var(--danger);
}

.prayer-form input,
.prayer-form textarea {
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: #fff;
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
    resize: vertical;
}

.prayer-form input:focus,
.prayer-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(13, 44, 107, .14);
}

.prayer-form input.invalid,
.prayer-form textarea.invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, .1);
}

.error {
    color: var(--danger);
    font-size: 13px;
    min-height: 0;
    font-weight: 500;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400 !important;
    font-size: 14px !important;
    color: var(--text) !important;
    cursor: pointer;
}

.checkbox input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.prayer-form>button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 17px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 16px;
    margin-top: 4px;
    transition: background .3s var(--ease), transform .3s var(--ease);
}

.prayer-form>button:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.form-status {
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    padding: 0;
    border-radius: var(--radius-sm);
    transition: all .3s var(--ease);
}

.form-status.success {
    color: #14532d;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    padding: 14px 18px;
}

.form-status.error {
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 14px 18px;
}

.form-alt {
    text-align: center;
    font-size: 14px;
    color: var(--muted);
}

.form-alt a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

/* ===============================
   FOOTER
   =============================== */
footer {
    background: #061a45;
    color: #fff;
    padding-top: clamp(56px, 7vw, 80px);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 56px;
}

footer h3 {
    font-size: 19px;
    margin-bottom: 14px;
}

footer h4 {
    font-size: 16px;
    margin-bottom: 14px;
    color: var(--gold);
}

footer p {
    color: #cbd5e1;
    font-size: 15px;
}

footer a:hover {
    color: var(--gold);
    text-decoration: underline;
}

.socials {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.socials a {
    padding: 9px 20px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, .2);
    font-size: 14px;
    transition: all .3s var(--ease);
}

.socials a:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
    text-decoration: none;
}

.copyright {
    padding: 22px 20px;
    background: #03102c;
    color: #93a4c4;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px 22px;
    flex-wrap: wrap;
    text-align: center;
}

.copyright .credito a {
    color: var(--gold-light);
    font-weight: 600;
    transition: color .25s var(--ease);
}

.copyright .credito a:hover {
    color: #fff;
    text-decoration: underline;
}

/* ===============================
   BOTÕES FLUTUANTES
   =============================== */
.floating-chat,
.back-to-top {
    position: fixed;
    z-index: 900;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    box-shadow: 0 15px 40px rgba(15, 23, 42, .3);
    transition: transform .3s var(--ease), opacity .3s var(--ease), visibility .3s;
}

.floating-chat {
    right: 24px;
    bottom: 24px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    font-size: 26px;
    animation: pulse 2.4s infinite;
}

.floating-chat:hover {
    transform: scale(1.08);
}

.back-to-top {
    right: 24px;
    bottom: 96px;
    width: 46px;
    height: 46px;
    background: var(--primary-dark);
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

/* ===============================
   ANIMAÇÕES DE ENTRADA
   =============================== */
.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    will-change: opacity, transform;
}

.reveal.show {
    opacity: 1;
    transform: none;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes msgIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.98);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 44, 107, .5), 0 15px 40px rgba(15, 23, 42, .3);
    }

    70% {
        box-shadow: 0 0 0 18px rgba(13, 44, 107, 0), 0 15px 40px rgba(15, 23, 42, .3);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(13, 44, 107, 0), 0 15px 40px rgba(15, 23, 42, .3);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes blink {

    0%,
    60%,
    100% {
        opacity: .25;
    }

    30% {
        opacity: 1;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -40px);
    }
}

@keyframes scrollDot {

    0%,
    100% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(12px);
        opacity: .3;
    }
}

/* ===============================
   RESPONSIVO
   =============================== */

/* Tablets grandes / notebooks pequenos */
@media (max-width: 1100px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    nav ul {
        gap: 20px;
    }

    nav a {
        font-size: 14px;
    }
}

/* Ponto de troca para o menu mobile */
@media (max-width: 980px) {

    .mobile-menu {
        display: grid;
    }

    .btn-header {
        display: none;
    }

    /* Drawer lateral */
    nav {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 1001;
        width: min(320px, 84vw);
        height: 100dvh;
        background: #fff;
        box-shadow: -20px 0 60px rgba(15, 23, 42, .2);
        padding: 100px 30px 40px;
        transform: translateX(105%);
        transition: transform .4s var(--ease);
        overflow-y: auto;
        visibility: hidden;
    }

    nav.active {
        transform: translateX(0);
        visibility: visible;
    }

    nav ul {
        flex-direction: column;
        gap: 4px;
        align-items: stretch;
    }

    nav li {
        border-bottom: 1px solid var(--line);
    }

    nav a,
    header.scrolled nav a {
        display: block;
        color: var(--heading);
        font-size: 17px;
        font-weight: 500;
        padding: 16px 4px;
    }

    nav a::after {
        display: none;
    }

    nav a:hover,
    nav a.active,
    header.scrolled nav a.active {
        color: var(--primary);
    }

    /* O botão do menu fica acima do drawer aberto */
    .mobile-menu {
        z-index: 1002;
    }

    body.nav-open .mobile-menu .hamburger::before,
    body.nav-open .mobile-menu .hamburger::after {
        background: var(--heading);
    }

    body.nav-open {
        overflow: hidden;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

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

/* Tablets em retrato */
@media (max-width: 768px) {
    :root {
        --header-h: 76px;
    }

    .hero-facts li {
        min-width: 0;
        flex: 1 1 100%;
    }

    .cards-3 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        gap: 32px;
    }

    .explicacao-verso {
        padding: 18px 20px;
    }
}

/* Celulares */
@media (max-width: 600px) {
    .container {
        width: min(1200px, 100% - 32px);
    }

    .hero {
        padding-top: calc(var(--header-h) + 24px);
        min-height: 92svh;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 15px 24px;
    }

    .hero-facts {
        margin-top: 38px;
        gap: 10px;
    }

    .cards,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .card,
    .about-grid>div {
        padding: 28px 24px;
    }

    /* Busca da Bíblia empilhada */
    .bible-search {
        flex-direction: column;
    }

    .bible-search button {
        padding: 15px;
        width: 100%;
    }

    /* Explicador empilhado no celular */
    .explicador-form {
        flex-direction: column;
    }

    .explicador-form button {
        width: 100%;
        padding: 15px;
    }

    .explicador-box .bible-suggestions {
        justify-content: center;
    }

    .field-row {
        flex-direction: column;
        gap: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .floating-chat {
        right: 16px;
        bottom: 16px;
        width: 54px;
        height: 54px;
        font-size: 23px;
    }

    .back-to-top {
        right: 16px;
        bottom: 82px;
        width: 42px;
        height: 42px;
    }

    .scroll-hint {
        display: none;
    }

    .logo-text strong {
        font-size: 15px;
    }

    .logo-text span {
        font-size: 12px;
    }

    .logo-mark {
        width: 38px;
        height: 38px;
        font-size: 19px;
    }
}

/* Celulares muito pequenos */
@media (max-width: 360px) {
    .logo-text span {
        display: none;
    }

    .section-title h2 {
        font-size: 25px;
    }
}

/* Telas muito largas */
@media (min-width: 1600px) {
    .container {
        width: min(1320px, 100% - 60px);
    }
}

/* ===============================
   PREFERÊNCIAS DO USUÁRIO
   =============================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ===============================
   IMPRESSÃO
   =============================== */
@media print {

    header,
    .floating-chat,
    .back-to-top,
    .scroll-hint,
    .explicador-form,
    .btn-explicar,
    .bible-search,
    .bible-suggestions,
    .prayer-form>button,
    .nav-backdrop {
        display: none !important;
    }

    .hero {
        min-height: auto;
        background: #0f172a !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .section {
        padding: 30px 0;
        break-inside: avoid;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
