/* ==========================================================
   ENCICLOPÉDIA DOS FALANGEIROS — TUCTVC
   Versão 2.0.0
   Hero alinhado ao padrão visual da Enciclopédia dos Orixás
========================================================== */

:root {
    --fal-green-950: #061f16;
    --fal-green-900: #082c1e;
    --fal-green-800: #0d432d;
    --fal-green-700: #155c3d;
    --fal-green-600: #23754f;
    --fal-green-100: #eaf4ee;
    --fal-green-050: #f5f9f6;
    --fal-gold: #d4af37;
    --fal-gold-soft: #ead79a;
    --fal-ink: #23312a;
    --fal-muted: #66736c;
    --fal-line: rgba(13, 67, 45, 0.14);
    --fal-white: #ffffff;
    --fal-shadow: 0 18px 50px rgba(5, 42, 27, 0.10);
    --fal-radius: 22px;
}

html {
    scroll-behavior: smooth;
}

.falangeiro-page {
    color: var(--fal-ink);
    background: var(--fal-white);
    overflow: hidden;
}

.falangeiro-page *,
.falangeiro-page *::before,
.falangeiro-page *::after {
    box-sizing: border-box;
}

.falangeiro-page .container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

/* ==========================================================
   HERO
========================================================== */

.falangeiro-hero {
    position: relative;
    min-height: 440px;
    height: 440px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 78% 30%, rgba(80, 151, 101, 0.28), transparent 34%),
        linear-gradient(105deg, #061f16 0%, #0a3524 56%, #155c3d 100%);
}

.falangeiro-hero__art,
.falangeiro-hero__overlay {
    position: absolute;
    inset: 0;
}

.falangeiro-hero__art {
    z-index: -3;
    overflow: hidden;
}

.falangeiro-hero__art img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position:
        var(--hero-position-x, 72%)
        var(--hero-position-y, 32%);
    transform: scale(var(--hero-scale, 1));
    transform-origin: center center;
}

.falangeiro-hero__overlay {
    z-index: -2;
    background:
        linear-gradient(
            90deg,
            rgba(5, 29, 19, 0.99) 0%,
            rgba(7, 39, 25, 0.97) 34%,
            rgba(10, 51, 33, 0.78) 57%,
            rgba(10, 51, 33, 0.28) 78%,
            rgba(10, 51, 33, 0.06) 100%
        );
}

.falangeiro-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 24px;
    padding-bottom: 78px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.falangeiro-back {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 17px;
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.falangeiro-back:hover {
    color: var(--fal-gold-soft);
    transform: translateX(-3px);
}

.falangeiro-hero__text {
    width: min(650px, 58%);
}

.falangeiro-eyebrow {
    display: block;
    margin-bottom: 9px;
    color: var(--fal-gold-soft);
    font-size: 0.78rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.falangeiro-hero h1 {
    margin: 0;
    color: var(--fal-white);
    font-size: clamp(3.25rem, 5vw, 4.5rem);
    line-height: 0.98;
    font-weight: 800;
    letter-spacing: -0.045em;
    text-wrap: balance;
    text-shadow: 0 4px 22px rgba(0, 0, 0, 0.24);
}

.falangeiro-subtitle {
    max-width: 600px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.91);
    font-size: 1.12rem;
    line-height: 1.45;
    font-weight: 500;
}

.falangeiro-hero blockquote {
    margin: 16px 0 0;
    padding-left: 17px;
    border-left: 3px solid var(--fal-gold);
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
    line-height: 1.5;
    font-style: italic;
}

.falangeiro-salutation {
    display: inline-flex;
    width: fit-content;
    margin-top: 16px;
    padding: 8px 14px;
    border: 1px solid rgba(234, 215, 154, 0.55);
    border-radius: 999px;
    color: #fff4c9;
    background: rgba(6, 31, 22, 0.34);
    backdrop-filter: blur(5px);
    font-size: 0.89rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.falangeiro-hero__shape {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 70px;
    pointer-events: none;
}

.falangeiro-hero__shape svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ==========================================================
   ÍNDICE
========================================================== */

.falangeiro-index {
    position: relative;
    z-index: 5;
    background: #fff;
    border-bottom: 1px solid var(--fal-line);
    box-shadow: 0 8px 26px rgba(7, 42, 28, 0.05);
}

.falangeiro-index .container {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px 26px;
    flex-wrap: wrap;
    padding-block: 10px;
}

.falangeiro-index a {
    position: relative;
    padding: 8px 0;
    color: #355246;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 750;
}

.falangeiro-index a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 3px;
    height: 2px;
    background: var(--fal-gold);
    transition: right 0.22s ease;
}

.falangeiro-index a:hover {
    color: var(--fal-green-700);
}

.falangeiro-index a:hover::after {
    right: 0;
}

/* ==========================================================
   SEÇÕES
========================================================== */

.falangeiro-section {
    padding: 76px 0;
    scroll-margin-top: 90px;
}

.falangeiro-section--soft {
    background:
        radial-gradient(circle at 12% 8%, rgba(35, 117, 79, 0.07), transparent 31%),
        var(--fal-green-050);
}

.falangeiro-section--deep {
    position: relative;
    color: rgba(255, 255, 255, 0.9);
    background:
        radial-gradient(circle at 78% 18%, rgba(212, 175, 55, 0.12), transparent 30%),
        linear-gradient(135deg, var(--fal-green-950), var(--fal-green-800));
}

.falangeiro-reading {
    max-width: 980px;
}

.falangeiro-section__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--fal-green-600);
    font-size: 0.77rem;
    font-weight: 850;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.falangeiro-section--deep .falangeiro-section__eyebrow,
.falangeiro-house-card .falangeiro-section__eyebrow {
    color: var(--fal-gold-soft);
}

.falangeiro-section h2,
.falangeiro-house-card h2 {
    margin: 0 0 24px;
    color: var(--fal-green-900);
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.falangeiro-section--deep h2,
.falangeiro-house-card h2 {
    color: var(--fal-white);
}

.falangeiro-copy {
    max-width: 860px;
}

.falangeiro-copy p {
    margin: 0 0 17px;
    font-size: 1.05rem;
    line-height: 1.82;
}

.falangeiro-copy p:last-child {
    margin-bottom: 0;
}

.falangeiro-copy--lead p:first-child {
    color: #29483a;
    font-size: 1.16rem;
    line-height: 1.78;
    font-weight: 560;
}

.falangeiro-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 38px;
}

.falangeiro-info-card {
    min-height: 154px;
    padding: 25px 23px;
    border: 1px solid var(--fal-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.93);
    box-shadow: 0 12px 34px rgba(6, 48, 31, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.falangeiro-info-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 18px 40px rgba(6, 48, 31, 0.11);
}

.falangeiro-info-card h3 {
    margin: 0 0 9px;
    color: var(--fal-green-800);
    font-size: 1.08rem;
    line-height: 1.25;
}

.falangeiro-info-card p {
    margin: 0;
    color: var(--fal-muted);
    font-size: 0.96rem;
    line-height: 1.65;
}

/* ==========================================================
   TUCTVC
========================================================== */

.falangeiro-house-card {
    position: relative;
    overflow: hidden;
    padding: 48px 52px;
    border-radius: var(--fal-radius);
    color: rgba(255, 255, 255, 0.9);
    background:
        radial-gradient(circle at 88% 14%, rgba(234, 215, 154, 0.19), transparent 30%),
        linear-gradient(135deg, #082c1e, #155c3d);
    box-shadow: var(--fal-shadow);
}

.falangeiro-house-card::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -100px;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;
}

/* ==========================================================
   SAUDAÇÃO
========================================================== */

.falangeiro-salutation-banner {
    position: relative;
    overflow: hidden;
    padding: 58px 0;
    text-align: center;
    color: var(--fal-white);
    background:
        radial-gradient(circle at 50% -40%, rgba(234, 215, 154, 0.28), transparent 50%),
        var(--fal-green-900);
}

.falangeiro-salutation-banner span {
    display: block;
    margin-bottom: 6px;
    color: var(--fal-gold-soft);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.falangeiro-salutation-banner h2 {
    margin: 0;
    color: var(--fal-white);
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1.1;
}

/* ==========================================================
   FAQ
========================================================== */

.falangeiro-faq {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.falangeiro-faq details {
    border: 1px solid var(--fal-line);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(7, 42, 28, 0.05);
    overflow: hidden;
}

.falangeiro-faq summary {
    position: relative;
    padding: 20px 54px 20px 22px;
    color: var(--fal-green-900);
    cursor: pointer;
    list-style: none;
    font-weight: 780;
}

.falangeiro-faq summary::-webkit-details-marker {
    display: none;
}

.falangeiro-faq summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 22px;
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--fal-green-800);
    background: var(--fal-green-100);
    transform: translateY(-50%);
    font-size: 1.2rem;
    line-height: 1;
}

.falangeiro-faq details[open] summary::after {
    content: "−";
}

.falangeiro-faq details p {
    margin: 0;
    padding: 0 22px 21px;
    color: var(--fal-muted);
    line-height: 1.72;
}

.falangeiro-return {
    margin: 38px 0 0;
}

.falangeiro-return a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--fal-green-700);
    text-decoration: none;
    font-weight: 800;
}

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

@media (max-width: 980px) {
    .falangeiro-hero {
        min-height: 420px;
        height: 420px;
    }

    .falangeiro-hero__text {
        width: min(690px, 68%);
    }

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

@media (max-width: 800px) {
    .falangeiro-page .container {
        width: min(100% - 30px, 760px);
    }

    .falangeiro-hero {
        min-height: 410px;
        height: 410px;
    }

    .falangeiro-hero__art img {
        object-position:
            var(--hero-position-x, 67%)
            var(--hero-position-y, 30%);
    }

    .falangeiro-hero__overlay {
        background:
            linear-gradient(
                90deg,
                rgba(5, 30, 20, 1) 0%,
                rgba(7, 38, 25, 0.98) 43%,
                rgba(8, 43, 28, 0.76) 66%,
                rgba(8, 43, 28, 0.2) 100%
            );
    }

    .falangeiro-hero__content {
        padding-top: 22px;
        padding-bottom: 66px;
    }

    .falangeiro-hero__text {
        width: 66%;
    }

    .falangeiro-hero h1 {
        font-size: clamp(2.65rem, 8vw, 4rem);
    }

    .falangeiro-subtitle {
        font-size: 1rem;
    }

    .falangeiro-hero blockquote {
        display: none;
    }

    .falangeiro-hero__shape {
        height: 58px;
    }

    .falangeiro-section {
        padding: 62px 0;
    }

    .falangeiro-house-card {
        padding: 38px 32px;
    }
}

@media (max-width: 620px) {
    .falangeiro-hero {
        min-height: 390px;
        height: 390px;
    }

    .falangeiro-hero__overlay {
        background:
            linear-gradient(
                90deg,
                rgba(5, 30, 20, 0.99) 0%,
                rgba(7, 38, 25, 0.97) 58%,
                rgba(8, 43, 28, 0.58) 83%,
                rgba(8, 43, 28, 0.2) 100%
            );
    }

    .falangeiro-hero__text {
        width: 78%;
    }

    .falangeiro-eyebrow {
        font-size: 0.67rem;
        letter-spacing: 0.13em;
    }

    .falangeiro-hero h1 {
        font-size: clamp(2.35rem, 11vw, 3.25rem);
    }

    .falangeiro-subtitle {
        margin-top: 11px;
        line-height: 1.4;
    }

    .falangeiro-salutation {
        margin-top: 14px;
    }

    .falangeiro-index .container {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .falangeiro-index .container::-webkit-scrollbar {
        display: none;
    }

    .falangeiro-index a {
        flex: 0 0 auto;
    }

    .falangeiro-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .falangeiro-info-card {
        min-height: 0;
    }
}

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

    .falangeiro-hero {
        min-height: 370px;
        height: 370px;
    }

    .falangeiro-hero__art img {
        object-position:
            var(--hero-position-x, 76%)
            var(--hero-position-y, 30%);
    }

    .falangeiro-hero__content {
        padding-top: 17px;
        padding-bottom: 57px;
    }

    .falangeiro-back {
        margin-bottom: 13px;
        font-size: 0.82rem;
    }

    .falangeiro-hero__text {
        width: 84%;
    }

    .falangeiro-hero h1 {
        font-size: 2.42rem;
    }

    .falangeiro-subtitle {
        max-width: 250px;
        font-size: 0.93rem;
    }

    .falangeiro-salutation {
        padding: 7px 12px;
        font-size: 0.79rem;
    }

    .falangeiro-section {
        padding: 52px 0;
    }

    .falangeiro-section h2,
    .falangeiro-house-card h2 {
        margin-bottom: 19px;
        font-size: 2rem;
    }

    .falangeiro-copy p,
    .falangeiro-copy--lead p:first-child {
        font-size: 1rem;
        line-height: 1.72;
    }

    .falangeiro-house-card {
        padding: 31px 23px;
        border-radius: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .falangeiro-back,
    .falangeiro-info-card,
    .falangeiro-index a::after {
        transition: none;
    }
}
