/* Templo da Oração V2.3 | components.css | sem imagens via CSS */
/* =========================================================
   TEMPLO DA ORAÇÃO V2.3
   CSS GLOBAL FINAL
   - Arial em todo o sistema
   - Rodapé maior e mais legível
   - Footer preso ao final da viewport em páginas curtas
   - Identidade: marfim, dourado, branco e tons quentes
   ========================================================= */

/* =========================================================
   VARIÁVEIS
   ========================================================= */
:root {
    --t22-bg: #fbf8f2;
    --t22-paper: #fffdf9;
    --t22-ink: #231d18;
    --t22-muted: #75695d;

    --t22-gold: #b67817;
    --t22-gold2: #d79a2d;
    --t22-gold-dark: #775017;

    --t22-line: rgba(182, 120, 23, .25);
    --t22-soft: #f5eee1;
    --t22-dark: #1b1714;

    /* V2.3: Arial é a única família tipográfica do sistema */
    --t22-serif: Arial, Helvetica, sans-serif;
    --t22-sans: Arial, Helvetica, sans-serif;
}

/* =========================================================
   BASE GLOBAL
   ========================================================= */

html {
    min-height: 100%;
    background: var(--t22-bg);
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: var(--t22-bg);
    color: var(--t22-ink);
}

/*
 * Força Arial em TODO o conteúdo, inclusive componentes
 * vindos de site.css e site-v4.css carregados anteriormente.
 */
body,
body * {
    font-family: Arial, Helvetica, sans-serif !important;
}

/*
 * Em páginas curtas, o rodapé ocupa naturalmente
 * a parte inferior da viewport, eliminando a faixa branca.
 */
.site-footer {
    margin-top: auto;
}

/* =========================================================
   HEADER
   ========================================================= */

.theme-light-v4 .site-header {
    height: 82px;
    background: rgba(255, 253, 249, .97);
    border-bottom: 1px solid var(--t22-line);
    box-shadow: none;
}

.theme-light-v4 .header-inner {
    width: min(1260px, calc(100% - 48px));
}

.theme-light-v4 .brand-image,
.theme-light-v4 .brand-image img {
    width: 185px;
    min-width: 185px;
    height: auto;
}

.theme-light-v4 .main-nav a {
    font-size: 17px;
    color: #342b24;
}

.theme-light-v4 .main-nav a::after {
    bottom: 11px;
    background: var(--t22-gold);
}

.theme-light-v4 .header-cta {
    border-radius: 10px;
    min-height: 46px;
}

/* =========================================================
   HOME
   ========================================================= */

/*
 * A imagem principal do hero NÃO é mais carregada pelo CSS.
 *
 * Ela deve ser inserida diretamente no HTML:
 *
 * <img
 *     class="t22-home-hero-bg"
 *     src="assets/img/v4/hero_home.jpg"
 *     alt=""
 *     aria-hidden="true"
 * >
 *
 * Estrutura esperada:
 *
 * <section class="t22-home-hero">
 *     <img class="t22-home-hero-bg" ...>
 *     <div class="t22-home-hero-overlay"></div>
 *     <div class="t22-home-hero-inner">...</div>
 * </section>
 */

.t22-home-hero {
    position: relative;
    min-height: 510px;
    overflow: hidden;
    background: #efe8dc;
    border-bottom: 1px solid var(--t22-line);
}

/* Imagem inserida pelo HTML */
.t22-home-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;

    width: 100%;
    height: 100%;

    display: block;
    object-fit: cover;
    object-position: center;
}

/* Camada de degradê independente da imagem */
.t22-home-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(255, 253, 248, .98) 0%,
            rgba(255, 253, 248, .92) 31%,
            rgba(255, 253, 248, .25) 58%,
            rgba(19, 14, 9, .32) 100%
        );
}

.t22-home-hero-inner {
    position: relative;
    z-index: 2;
    width: min(1260px, calc(100% - 48px));
    min-height: 510px;
    margin: auto;
    display: flex;
    align-items: center;
}

.t22-home-copy {
    width: min(510px, 45%);
}

.t22-home-copy h1 {
    margin: 0 0 14px;
    font-size: clamp(54px, 5.6vw, 82px);
    font-weight: 700;
    line-height: .92;
    letter-spacing: -.035em;
    color: #1f1a16;
}

.t22-home-copy h1 em {
    display: block;
    color: var(--t22-gold-dark);
    font-style: italic;
    font-weight: 600;
}

.t22-home-copy p {
    max-width: 470px;
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.55;
    color: #51473f;
}

.t22-home-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin: 24px 0 20px;
}

.t22-home-actions .btn {
    min-height: 50px;
    padding: 0 25px;
    font-size: 16px;
    font-weight: 700;
}

.t22-home-micro {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    color: #695d52;
    font-size: 13px;
    font-weight: 600;
}

.t22-home-micro span {
    display: flex;
    gap: 8px;
    align-items: center;
}

.t22-home-micro b {
    color: var(--t22-gold);
    font-size: 20px;
}

.t22-section {
    width: min(1260px, calc(100% - 48px));
    margin: auto;
    padding: 34px 0;
}

.t22-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 18px;
}

.t22-section-head h2 {
    margin: 0;
    color: #211b17;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.05;
}

.t22-section-head p {
    margin: 5px 0 0;
    color: var(--t22-muted);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.t22-section-head a {
    color: var(--t22-gold-dark);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

/* =========================================================
   COMO FUNCIONA
   ========================================================= */

.t22-how {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.t22-how article {
    min-height: 122px;
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 14px;
    align-items: center;
    padding: 20px;
    border: 1px solid rgba(115, 88, 51, .08);
    border-radius: 13px;
    background: rgba(255, 255, 255, .78);
}

.t22-how .ico {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #f7ead2;
    color: var(--t22-gold-dark);
    font-size: 26px;
}

.t22-how h3 {
    margin: 0 0 5px;
    color: #312820;
    font-size: 18px;
    font-weight: 700;
}

.t22-how p {
    margin: 0;
    color: #73675c;
    font-size: 13px;
    line-height: 1.5;
}

/* =========================================================
   HOME - BLOCOS INFERIORES
   ========================================================= */

.t22-home-lower {
    display: grid;
    grid-template-columns: 1.12fr .88fr;
    gap: 22px;
}

.t22-home-panel {
    border-top: 1px solid var(--t22-line);
    padding-top: 18px;
}

.t22-home-candles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.t22-mini-candle {
    display: grid;
    grid-template-columns: 42% 1fr;
    overflow: hidden;
    min-height: 160px;
    border: 1px solid rgba(110, 83, 45, .1);
    border-radius: 10px;
    background: #fff;
}

.t22-mini-candle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.t22-mini-candle div {
    padding: 13px 11px;
}

.t22-mini-candle h4 {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.t22-mini-candle p {
    margin: 0;
    color: #71665b;
    font-size: 11px;
    line-height: 1.45;
}

.t22-mini-candle small {
    display: block;
    margin-top: 12px;
    color: #8c755b;
}

.t22-prayer-box {
    min-height: 225px;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    overflow: hidden;
    border-radius: 15px;
    background: linear-gradient(135deg, #fffaf0, #efe0c5);
    border: 1px solid var(--t22-line);
}

.t22-prayer-copy {
    padding: 26px;
}

.t22-prayer-copy h3 {
    margin: 0 0 10px;
    font-size: 30px;
    font-weight: 700;
}

.t22-prayer-list {
    display: grid;
    gap: 11px;
    color: #65594f;
    font-size: 15px;
}

.t22-prayer-art {
    min-height: 225px;
    background: transparent;
}

.t22-quote-strip {
    padding: 18px 20px;
    text-align: center;
    background: #f4ede2;
    border-top: 1px solid rgba(175, 121, 35, .12);
    border-bottom: 1px solid rgba(175, 121, 35, .12);
    color: #574b42;
    font-size: 24px;
    font-style: italic;
}

/* =========================================================
   HEROS INTERNOS
   ========================================================= */

.t22-page-hero {
    position: relative;
    min-height: 250px;
    overflow: hidden;
    background: #efe6d8;
    border-bottom: 1px solid var(--t22-line);
}

.t22-page-hero.mural {
    background-image: none;
    background-position: center;
    background-size: cover;
}

.t22-page-hero.obituario {
    background-image: none;
    background-position: center;
    background-size: cover;
}

.t22-page-hero-inner {
    width: min(1260px, calc(100% - 48px));
    min-height: 250px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    position: relative;
    z-index: 2;
}

.t22-page-hero-copy {
    max-width: 650px;
}

.t22-page-hero h1 {
    margin: 0 0 6px;
    color: #201a16;
    font-size: clamp(48px, 5vw, 70px);
    font-weight: 700;
    line-height: 1;
}

.t22-page-hero p {
    max-width: 600px;
    margin: 0;
    color: #66594e;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.35;
}

/* =========================================================
   FILTROS
   ========================================================= */

.t22-filters {
    width: min(1260px, calc(100% - 48px));
    margin: 18px auto 22px;
    display: grid;
    grid-template-columns:
        minmax(240px, 1.4fr)
        repeat(3, minmax(145px, .5fr))
        auto;
    gap: 10px;
}

.t22-filters input,
.t22-filters select {
    height: 48px;
    border: 1px solid var(--t22-line);
    border-radius: 10px;
    background: #fff;
    padding: 0 14px;
    color: #40362d;
    font-size: 14px;
}

.t22-filters button {
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #ba7b18, #d89d32);
    color: #fff;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 700;
}

/* =========================================================
   MURAL DE VELAS
   ========================================================= */

.t22-mural-wrap {
    width: min(1260px, calc(100% - 48px));
    margin: auto;
    padding: 6px 0 55px;
}

.t22-mural-title {
    margin: 0 0 18px;
    font-size: 34px;
    font-weight: 700;
}

.t22-mural-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.t22-candle-card {
    overflow: hidden;
    border: 1px solid rgba(120, 91, 54, .13);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(69, 48, 27, .05);
}

.t22-candle-main {
    display: grid;
    grid-template-columns: 42% 1fr;
    min-height: 230px;
}

.t22-candle-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.t22-candle-copy {
    padding: 18px 14px;
}

.t22-candle-copy h3 {
    margin: 0 0 8px;
    color: #2b231e;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.1;
}

.t22-candle-copy p {
    margin: 0 0 15px;
    color: #675c53;
    font-size: 13px;
    line-height: 1.5;
}

.t22-candle-author {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7a6d61;
    font-size: 11px;
}

.t22-candle-card footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 13px;
    border-top: 1px solid rgba(120, 91, 54, .09);
}

.t22-candle-card footer a {
    min-height: 34px;
    padding: 0 13px;
    border: 1px solid var(--t22-line);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #7b521d;
    font-size: 12px;
    font-weight: 700;
}

/* =========================================================
   OBITUÁRIO / SANTINHOS
   ========================================================= */

.t22-ob-wrap {
    width: min(1260px, calc(100% - 48px));
    margin: auto;
    padding: 0 0 60px;
}

.t22-ob-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.t22-santinho-card {
    min-width: 0;
}

.t22-santinho-img {
    display: block;
    overflow: hidden;
    border-radius: 13px;
    border: 1px solid var(--t22-line);
    background: #fff;
    box-shadow: 0 9px 26px rgba(81, 54, 25, .08);
}

.t22-santinho-img img {
    width: 100%;
    display: block;
    aspect-ratio: 9 / 16;
    object-fit: cover;
}

.t22-social-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 8px;
}

.t22-social-actions form {
    margin: 0;
}

.t22-social-btn {
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--t22-line);
    border-radius: 9px;
    background: #fff;
    color: #79531f;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease;
}

.t22-social-btn.primary {
    background: linear-gradient(135deg, #b87816, #dca13a);
    color: #fff;
    border-color: #bc7c1a;
}

.t22-social-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(81, 54, 25, .08);
}

/* =========================================================
   MEMORIAL
   ========================================================= */

.memorial-page {
    background: #fbf8f2 !important;
}

.memorial-hero {
    background: transparent;
}

.memorial-hero-inner {
    max-width: 1260px !important;
    grid-template-columns: 330px minmax(0, 1fr) !important;
    gap: 38px !important;
    padding-top: 28px !important;
    padding-bottom: 28px !important;
}

.memorial-photo {
    width: 330px !important;
    height: 300px !important;
    border-radius: 12px !important;
}

.memorial-name {
    font-size: 58px !important;
    font-weight: 700 !important;
}

.memorial-phrase {
    max-width: 720px !important;
    font-size: 25px !important;
    line-height: 1.4 !important;
}

.memorial-dates {
    font-size: 16px !important;
}

.memorial-shell {
    max-width: 1260px !important;
}

.memorial-bio-text {
    font-size: 15px !important;
    line-height: 1.65 !important;
}

.memorial-tribute-text {
    font-size: 22px !important;
    line-height: 1.45 !important;
}

.memorial-actions-bar {
    grid-template-columns: repeat(4, 1fr) !important;
}

.memorial-action,
.memorial-action button {
    min-height: 46px !important;
    font-size: 13px !important;
}

.mem-card h2,
.mem-card h3 {
    font-size: 24px !important;
    font-weight: 700 !important;
}

/* =========================================================
   RODAPÉ
   ========================================================= */

.theme-light-v4 .site-footer {
    margin-top: auto;
    background: linear-gradient(135deg, #211b17, #151210);
    color: #ede3d4;
    border-top: 0;
    font-size: 16px;
    line-height: 1.65;
}

.theme-light-v4 .footer-inner {
    padding-top: 38px;
    padding-bottom: 30px;
}

.theme-light-v4 .site-footer h4 {
    margin: 0 0 14px;
    color: #ede3d4;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
}

.theme-light-v4 .site-footer p {
    margin-top: 14px;
    color: #c9beb0;
    font-size: 16px;
    line-height: 1.65;
}

.theme-light-v4 .site-footer a {
    color: #ede3d4;
}

.theme-light-v4 .footer-links-v4 {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.theme-light-v4 .footer-links-v4 a {
    color: #ded4c8;
    font-size: 16px;
    line-height: 1.65;
    text-decoration: none;
}

.theme-light-v4 .footer-links-v4 a:hover {
    color: #fff;
}

.theme-light-v4 .footer-brand img {
    width: 190px;
    height: auto;
}

.theme-light-v4 .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: #bdb2a6;
    font-size: 14px;
    line-height: 1.5;
    padding-top: 16px;
    padding-bottom: 16px;
}

.theme-light-v4 .footer-cross {
    color: var(--t22-gold2);
    font-size: 22px;
}

/* =========================================================
   RESPONSIVO - TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .t22-home-candles,
    .t22-mural-grid,
    .t22-ob-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .t22-home-lower {
        grid-template-columns: 1fr;
    }

    .t22-filters {
        grid-template-columns: 1fr 1fr;
    }

    .memorial-hero-inner {
        grid-template-columns: 260px 1fr !important;
    }

    .memorial-photo {
        width: 260px !important;
        height: 260px !important;
    }

    .memorial-name {
        font-size: 48px !important;
    }
}

/* =========================================================
   RESPONSIVO - MOBILE
   ========================================================= */

@media (max-width: 760px) {

    .t22-home-hero {
        min-height: 620px;
    }

    .t22-home-hero-bg {
        object-position: 64% center;
    }

    .t22-home-hero-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(255, 253, 248, .98) 0%,
                rgba(255, 253, 248, .92) 54%,
                rgba(255, 253, 248, .42) 100%
            );
    }

    .t22-home-hero-inner {
        min-height: 620px;
        align-items: flex-start;
        padding-top: 54px;
    }

    .t22-home-copy {
        width: 100%;
        max-width: 520px;
    }

    .t22-home-copy h1 {
        font-size: 56px;
    }

    .t22-how {
        grid-template-columns: 1fr;
    }

    .t22-prayer-box {
        grid-template-columns: 1fr;
    }

    .t22-prayer-art {
        min-height: 170px;
    }

    .t22-page-hero-inner {
        min-height: 220px;
    }

    .t22-filters {
        grid-template-columns: 1fr;
    }

    .t22-mural-grid,
    .t22-ob-grid {
        grid-template-columns: 1fr;
    }

    .t22-home-candles {
        grid-template-columns: 1fr;
    }

    .t22-candle-main {
        grid-template-columns: 38% 1fr;
    }

    .memorial-hero {
        background: #fffaf1 !important;
    }

    .memorial-hero-inner {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    .memorial-photo {
        width: min(100%, 390px) !important;
        height: 330px !important;
        margin: auto;
    }

    .memorial-name {
        font-size: 44px !important;
    }

    .memorial-dates {
        justify-content: center;
    }

    .memorial-phrase {
        margin-inline: auto;
        font-size: 21px !important;
    }

    .memorial-actions-bar {
        grid-template-columns: 1fr 1fr !important;
    }

    .theme-light-v4 .site-footer h4 {
        font-size: 19px;
    }

    .theme-light-v4 .footer-links-v4 a,
    .theme-light-v4 .site-footer p {
        font-size: 16px;
    }

    .theme-light-v4 .footer-bottom {
        font-size: 13px;
    }
}

/* =========================================================
   RESPONSIVO - CELULAR PEQUENO
   ========================================================= */

@media (max-width: 520px) {

    .t22-section,
    .t22-page-hero-inner,
    .t22-mural-wrap,
    .t22-ob-wrap,
    .t22-filters,
    .t22-home-hero-inner {
        width: min(100% - 28px, 1260px);
    }

    .t22-home-copy h1 {
        font-size: 48px;
    }

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

    .t22-social-btn {
        font-size: 10px;
        padding: 0 5px;
    }

    .memorial-actions-bar {
        grid-template-columns: 1fr !important;
    }
}
/* V2.3 utility classes for gradual removal of style attributes */
.u-full-width{width:100%}.u-mt-18{margin-top:18px}.u-mt-26{margin-top:26px}.u-mb-8{margin-bottom:8px}.u-mb-12{margin-bottom:12px}.u-mb-16{margin-bottom:16px}.u-text-inherit{color:inherit}.u-no-underline{text-decoration:none}
