/* Caminhos da Umbanda — Identidade ancestral */

:root {
    --ink: #38251d;
    --muted: #796454;
    --night: #38251d;
    --night-2: #563629;
    --plum: #75432f;
    --plum-light: #a65335;
    --gold: #bd8744;
    --gold-light: #e4c99b;
    --paper: #f3ebdd;
    --paper-2: #e8dcc8;
    --white: #fffaf2;
}

/* Identidade geral */
body {
    background: var(--paper);
    color: var(--ink);
}

.site-header {
    background: rgba(56, 37, 29, .97);
    border-bottom: 1px solid rgba(189, 135, 68, .5);
}

.hero {
    background:
        radial-gradient(ellipse at 85% 20%, rgba(189,135,68,.2), transparent 38%),
        linear-gradient(125deg, #38251d, #75432f);
}

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

.hero-symbol {
    border-color: rgba(228,201,155,.55);
    color: var(--gold-light);
}

.topic-icon {
    color: #75432f;
    background: #ead9bd;
}

.topic-card:hover {
    border-color: var(--gold);
}

.button-secondary {
    background: var(--night-2);
}

.button-secondary:hover {
    background: #75432f;
}

.button-ghost {
    color: var(--night);
    border-color: rgba(56,37,29,.3);
}

.site-footer {
    background: var(--night);
}

/* Fotografia principal */
.hero {
    background-image:
        linear-gradient(90deg,
            rgba(38,25,19,.94) 0%,
            rgba(56,37,29,.82) 52%,
            rgba(86,54,37,.35) 100%),
        url('/assets/images/cachoeira-hero.jpg');
    background-position: center, center 48%;
    background-size: cover, cover;
    background-repeat: no-repeat;
    min-height: 390px;
}

.hero-copy,
.hero-symbol {
    position: relative;
    z-index: 2;
}

@media (max-width: 760px) {
    .hero {
        background-position: center, 55% center;
    }
}

/* Hero — ornamento solar e identidade ancestral */
.hero {
    grid-template-columns: minmax(0, 1.5fr) minmax(190px, .7fr);
}

.hero-copy > p:not(.hero-footnote) {
    color: #f0e5d5;
}

.hero-footnote {
    color: #e0cba9;
}

.hero-symbol {
    border: 1px solid rgba(228, 201, 155, .65);
    background: radial-gradient(circle, rgba(189,135,68,.16), transparent 68%);
    box-shadow:
        0 0 0 12px rgba(228,201,155,.06),
        0 0 0 28px rgba(228,201,155,.035),
        0 0 45px rgba(189,135,68,.15);
}

.hero-symbol span {
    font-size: 0;
    width: 118px;
    height: 118px;
    display: grid;
    place-items: center;
    align-self: end;
    border: 1px solid rgba(228,201,155,.55);
    border-radius: 50%;
    box-shadow: 0 0 0 8px rgba(228,201,155,.07);
}

.hero-symbol span::before {
    content: "☼";
    font: 94px/1 Georgia, serif;
    color: #e4c99b;
    text-shadow: 0 0 28px rgba(228,201,155,.4);
}

.hero-symbol small {
    color: #f0dfc1;
}

@media (max-width: 760px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-symbol {
        width: 150px;
        margin-top: 28px;
    }
}

/* Cartões temáticos — elevação e destaque dourado */
.topic-card {
    border: 1px solid rgba(189, 135, 68, .25);
    border-radius: 14px;
    transition: transform .25s ease, box-shadow .25s ease,
                border-color .25s ease, background-color .25s ease;
}

.topic-card:hover {
    transform: translateY(-5px);
    border-color: #bd8744;
    box-shadow: 0 12px 28px rgba(56, 37, 29, .14),
                0 0 0 1px rgba(189, 135, 68, .12);
}

.topic-card:hover .topic-icon {
    background: #f0dfc1;
    transform: scale(1.06);
}

.topic-icon {
    transition: transform .25s ease, background-color .25s ease;
}

.topic-card:focus-visible {
    outline: 2px solid #bd8744;
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .topic-card,
    .topic-icon {
        transition: none;
    }
    .topic-card:hover {
        transform: none;
    }
}

/* Os caminhos da Umbanda */
.pathways-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.pathway-card {
    display: flex;
    flex-direction: column;
    padding: 22px;
    border: 1px solid rgba(189, 135, 68, .28);
    border-radius: 17px;
    background: linear-gradient(160deg, #fffaf1, #f1e5d1);
    color: #38251d;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease,
                border-color .25s ease;
}

.pathway-card:hover {
    transform: translateY(-5px);
    border-color: #bd8744;
    box-shadow: 0 12px 28px rgba(56, 37, 29, .13);
}

.pathway-art {
    display: grid;
    place-items: center;
    min-height: 135px;
    margin-bottom: 18px;
    border-radius: 12px;
    color: #75432f;
    background: rgba(189, 135, 68, .09);
}

.pathway-art svg {
    width: 100%;
    max-width: 190px;
    height: 120px;
}

.pathway-card h3 {
    margin: 9px 0;
    font: 500 23px/1.25 Georgia, serif;
}

.pathway-card p {
    margin: 0 0 20px;
    color: #705c4b;
    font-size: 13px;
    line-height: 1.7;
}

.pathway-link {
    margin-top: auto;
    color: #75432f;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 760px) {
    .pathways-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pathway-card {
        transition: none;
    }
    .pathway-card:hover {
        transform: none;
    }
}

/* Subtitulos das paginas de leitura */
.prose h2 {
    margin: 2.2rem 0 1rem;
    color: #704a2c;
    font-family: Georgia, serif;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.3;
    padding-bottom: .55rem;
    border-bottom: 1px solid rgba(189, 135, 68, .35);
}

/* Hierarquia dos titulos nas paginas de leitura */
.reading-page .prose h2 {
    display: block;
    margin: 2.5rem 0 1.2rem;
    color: #8a5b32;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    border-bottom: 2px solid #bd8744;
    padding-bottom: 0.65rem;
}

/* Adaptacao para telemoveis e tablets */
@media (max-width: 760px) {
    .header-inner {
        gap: 12px;
        align-items: center;
    }

    .brand {
        min-height: 44px;
    }

    .main-nav {
        order: 3;
        flex: 1 0 100%;
        width: 100%;
        justify-content: flex-start;
        gap: 5px 8px;
        padding: 8px 0;
    }

    .main-nav a {
        display: inline-flex;
        align-items: center;
        min-height: 40px;
        padding: 7px 9px;
        font-size: 12px;
        line-height: 1.35;
        border: 1px solid rgba(240, 223, 185, .18);
        border-radius: 8px;
    }

    .search-form {
        display: flex;
        order: 2;
        flex: 1 1 100%;
        width: 100%;
        margin: 0;
        min-height: 42px;
    }

    .search-form input {
        flex: 1;
        width: auto;
        min-height: 40px;
        font-size: 16px;
    }

    .search-form button {
        min-width: 44px;
        min-height: 40px;
    }

    .video-frame {
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    .video-frame iframe {
        width: 100%;
        height: 100%;
    }

    img, video {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .container {
        width: calc(100% - 24px);
    }

    .main-nav {
        gap: 5px;
    }

    .main-nav a {
        font-size: 12px;
        padding: 7px 8px;
    }

    h1 {
        overflow-wrap: break-word;
    }

    .prose {
        font-size: 16px;
        line-height: 1.75;
    }
}

/* Menu recolhivel para telemoveis */
.menu-toggle {
    display: none;
    border: 1px solid rgba(240, 223, 185, .35);
    border-radius: 8px;
    background: #493653;
    color: #fff4dc;
    padding: 10px 14px;
    min-height: 44px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    align-items: center;
    gap: 9px;
}

@media (max-width: 760px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: inline-flex;
        order: 2;
        margin-left: auto;
    }

    .main-nav {
        display: none;
        order: 4;
        flex: 1 0 100%;
        width: 100%;
        padding: 10px 0;
        border-top: 1px solid rgba(240, 223, 185, .2);
    }

    .main-nav.is-open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .main-nav a {
        display: flex;
        width: 100%;
        min-height: 44px;
        align-items: center;
        padding: 10px 12px;
        font-size: 14px;
    }

    .search-form {
        order: 3;
        flex: 1 0 100%;
    }
}

/* Navegacao visivel em computadores */
@media screen and (min-width: 761px) {
    .main-nav {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .menu-toggle {
        display: none !important;
    }
}

/* Menu recolhivel tambem em computadores */
@media screen and (min-width: 761px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: inline-flex !important;
        margin-left: auto;
    }

    .main-nav {
        display: none !important;
        flex: 1 0 100%;
        width: 100%;
    }

    .main-nav.is-open {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
    }

    .main-nav a {
        display: flex;
        width: 100%;
        padding: 10px 12px;
    }
}
