/* ==========================================================================
   HOPE — style.css
   Estrutura: variáveis → reset/base → header → seções → footer → responsivo
   Ver docs/Design_System_HTML.md para convenções.
   ========================================================================== */

:root {
    /* Cores (extraídas do Figma, seção BASE) */
    --color-black: #000000;
    --color-cream: #FAF7F2;
    --color-gray: #D9D6D2;

    /* Tipografia */
    --font-behind-the-Nineties: "Behind-The-Nineties";
    --font-helvetica-neue: "HelveticaNeue", "Helvetica Neue", Arial, sans-serif;
    --font-jorg: "Jorg";
}

/* ==========================================================================
   Fontes (@font-face)
   ========================================================================== */

/* Behind-The-Nineties — títulos e navegação */
@font-face { font-family: "Behind-The-Nineties"; src: url("../fonts/Behind The Nineties/Behind-The-Nineties-Rg.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Behind-The-Nineties"; src: url("../fonts/Behind The Nineties/Behind-The-Nineties-It.otf") format("opentype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Behind-The-Nineties"; src: url("../fonts/Behind The Nineties/Behind-The-Nineties-Md.otf") format("opentype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Behind-The-Nineties"; src: url("../fonts/Behind The Nineties/Behind-The-Nineties-Md-It.otf") format("opentype"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Behind-The-Nineties"; src: url("../fonts/Behind The Nineties/Behind-The-Nineties-Smbd.otf") format("opentype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Behind-The-Nineties"; src: url("../fonts/Behind The Nineties/Behind-The-Nineties-Smbd-It.otf") format("opentype"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Behind-The-Nineties"; src: url("../fonts/Behind The Nineties/Behind-The-Nineties-Bd.otf") format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Behind-The-Nineties"; src: url("../fonts/Behind The Nineties/Behind-The-Nineties-Bd-It.otf") format("opentype"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Behind-The-Nineties"; src: url("../fonts/Behind The Nineties/Behind-The-Nineties-Xbd.otf") format("opentype"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Behind-The-Nineties"; src: url("../fonts/Behind The Nineties/Behind-The-Nineties-Xbd-It.otf") format("opentype"); font-weight: 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Behind-The-Nineties"; src: url("../fonts/Behind The Nineties/Behind-The-Nineties-Blk.otf") format("opentype"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Behind-The-Nineties"; src: url("../fonts/Behind The Nineties/Behind-The-Nineties-Blk-It.otf") format("opentype"); font-weight: 900; font-style: italic; font-display: swap; }

/* Jorg — destaques em itálico (ex.: chamadas do banner) */
@font-face { font-family: "Jorg"; src: url("../fonts/Jorg/Jorg-Thin.otf") format("opentype"); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: "Jorg"; src: url("../fonts/Jorg/Jorg-ThinItalic.otf") format("opentype"); font-weight: 100; font-style: italic; font-display: swap; }
@font-face { font-family: "Jorg"; src: url("../fonts/Jorg/Jorg-Light.otf") format("opentype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Jorg"; src: url("../fonts/Jorg/Jorg-LightItalic.otf") format("opentype"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Jorg"; src: url("../fonts/Jorg/Jorg-Regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Jorg"; src: url("../fonts/Jorg/Jorg-Italic.otf") format("opentype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Jorg"; src: url("../fonts/Jorg/Jorg-SemiBold.otf") format("opentype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Jorg"; src: url("../fonts/Jorg/Jorg-SemiBoldItalic.otf") format("opentype"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Jorg"; src: url("../fonts/Jorg/Jorg-Bold.otf") format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Jorg"; src: url("../fonts/Jorg/Jorg-BoldItalic.otf") format("opentype"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Jorg"; src: url("../fonts/Jorg/Jorg-Heavy.otf") format("opentype"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Jorg"; src: url("../fonts/Jorg/Jorg-HeavyItalic.otf") format("opentype"); font-weight: 800; font-style: italic; font-display: swap; }

/* HelveticaNeue.ttc é um TrueType Collection — navegadores não selecionam
   pesos individuais dele de forma confiável via @font-face, então usamos a
   fonte do sistema (comum em macOS) com fallback para Arial. */

/* ==========================================================================
   Reset / Base
   ========================================================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-helvetica-neue);
}

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

a {
    text-decoration: none;
}

:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    padding: 24px 0;
}

.header.fix {
    position: fixed;
    background: var(--color-black);
    padding: 16px 0;
    transform: translateY(-200%);
    transition: transform 0.3s ease;
}

.header.fix.active {
    transform: translateY(0);
}

.navbar-brand img {
    display: block;
    width: 120px;
}

.navbar .nav-link {
    color: var(--color-cream);
    font-family: var(--font-jorg);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    gap: 8px;
    padding: 8px 14px;
}

.navbar .dropdown-menu {
    background: transparent;
    border: 0;
    box-shadow: none;
    margin: 0;
    padding: 4px 14px 0;
}

.navbar .nav-item.dropdown {
    position: relative;
}

.navbar .dropdown-item {
    background: transparent;
    color: var(--color-cream);
    font-family: var(--font-jorg);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 0;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background: transparent;
    color: var(--color-gray);
}

.nav-social {
    display: flex;
    align-items: center;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-social img {
    display: block;
}

.navbar-toggler {
    border-color: rgba(250, 247, 242, .5);
}

.navbar-toggler-icon {
    filter: invert(1) grayscale(1) brightness(2);
}

/* ==========================================================================
   Utilitários — espaçamento entre seções
   ========================================================================== */

.padding-t  { padding-top: 100px; }
.padding-b  { padding-bottom: 100px; }
.padding-tb { padding-top: 100px; padding-bottom: 100px; }

/* ==========================================================================
   Seções
   ========================================================================== */

/* 1. HERO — banner-home
   (ver docs/Design_System_HTML.md, item 1.1 — ordem das seções) */

.banner-home__media {
    position: relative;
    overflow: hidden;
}

.banner-home__photo {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0;
}

/* Overlay leve só no topo (legibilidade do menu) — o layout não escurece a foto */
/* .banner-home__media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .08) 18%, rgba(0, 0, 0, 0) 42%);
    pointer-events: none;
    z-index: 1;
} */

.banner-home__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding-top: clamp(160px, 22vh, 234px);
}

.banner-home__content {
    width: min(38vw, 750px);
    max-width: 100%;
}

.banner-home__quote {
    margin: 0;
    color: var(--color-cream);
    font-family: var(--font-behind-the-Nineties);
    font-weight: 500;
    font-style: italic;
    font-size: clamp(36px, 4.05vw, 78px);
    line-height: 1;
    text-align: left;
    padding-left: 50px;
    visibility: hidden;
}

.banner-home__quote .split-line {
    overflow: hidden;
    padding-bottom: 0.08em;
}

.banner-home__line {
    display: block;
    width: 150px;
    height: 1px;
    margin: 50px 0;
    background: var(--color-cream);
    opacity: .85;
    transform: scaleX(0);
    transform-origin: left center;
}

.banner-home__caption {
    margin: 0;
    color: var(--color-cream);
    font-family: var(--font-jorg);
    font-weight: 600;
    font-size: clamp(16px, 1.15vw, 22px);
    line-height: 1.2;
    text-transform: uppercase;
    text-align: left;
    padding-left: 50px;
}

.banner-home__intro {
    background: var(--color-cream);
}

.banner-home__title {
    margin: 0;
    color: var(--color-black);
    font-family: var(--font-jorg);
    font-weight: 400;
    font-size: clamp(36px, 2.85vw, 55px);
    line-height: 1.29;
    text-transform: uppercase;
    visibility: hidden;
}

.banner-home__title .split-line {
    overflow: hidden;
}

.banner-home__title strong {
    font-weight: 800;
}

.banner-home__text p {
    margin: 0 0 24px;
    color: var(--color-black);
    font-family: var(--font-helvetica-neue);
    font-weight: 300;
    font-size: 18px;
    line-height: 1.2;
}

.banner-home__text p:last-child {
    margin-bottom: 0;
}

.banner-home__text strong {
    font-weight: 700;
}

/* ==========================================================================
   Botão (reutilizável)
   ========================================================================== */

.button {
    display: inline-block;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--color-cream);
    font-family: var(--font-jorg);
    font-weight: 800;
    font-size: 16px;
    line-height: 1.2;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: opacity .2s ease;
}

.button:hover,
.button:focus-visible {
    opacity: .7;
    color: var(--color-cream);
}

.button.black {
    padding: 10px 28px;
    background: var(--color-black);
    color: var(--color-cream);
}

.button.black:hover,
.button.black:focus-visible {
    color: var(--color-cream);
    opacity: .85;
}

/* ==========================================================================
   2. CATEGORIAS — categories-home
   ========================================================================== */

.categories-home {
    background: var(--color-black);
}

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

.categories-home__item {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.categories-home__media {
    position: relative;
    overflow: hidden;
    height: clamp(420px, 48vw, 920px);
}

.categories-home__media-inner {
    height: 100%;
}

.categories-home__media img {
    display: block;
    width: 100%;
    height: 120%;
    object-fit: cover;
    object-position: center top;
    will-change: transform;
}

.categories-home__body {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    margin-top: -80px;
    padding: 80px 12%;
    background: var(--color-black);
    z-index: 1;
}

.categories-home__item + .categories-home__item .categories-home__body::before {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    width: 1px;
    height: 80%;
    background: rgba(250, 247, 242, .25);
}

.categories-home__logo-mask {
    display: block;
    overflow: hidden;
    line-height: 0;
}

.categories-home__logo {
    display: block;
    width: 152px;
    height: auto;
}

.categories-home__text {
    margin: 0;
    max-width: 310px;
    color: var(--color-cream);
    font-family: var(--font-helvetica-neue);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.2;
}

.categories-home__body .button {
    margin-top: auto;
}

/* ==========================================================================
   3. NÚMEROS — numbers-home
   ========================================================================== */

.numbers-home {
    position: relative;
    overflow: hidden;
    background: var(--color-cream);
}

.numbers-home__watermark {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    opacity: .03;
    filter: brightness(0);
    pointer-events: none;
    z-index: 0;
}

.numbers-home .container {
    position: relative;
    z-index: 1;
}

.numbers-home__title {
    margin: 0 0 48px;
    color: var(--color-black);
    font-family: var(--font-jorg);
    font-weight: 300;
    font-size: clamp(28px, 2.3vw, 44px);
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
}

.numbers-home__title-mask {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
}

.numbers-home__title-text {
    display: block;
}

.numbers-home__grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 56px;
}

.numbers-home__item {
    display: flex;
    align-items: flex-start;
    flex: 0 0 auto;
    text-align: left;
}

.numbers-home__content {
    min-width: 0;
}

.numbers-home__value {
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
    white-space: nowrap;
    margin: 0;
    color: var(--color-black);
    line-height: 1;
}

.numbers-home__plus {
    font-family: var(--font-behind-the-Nineties);
    font-weight: 400;
    font-style: italic;
    font-size: clamp(32px, 2.85vw, 55px);
    line-height: 1;
    color: var(--color-black);
}

.numbers-home__suffix {
    font-family: var(--font-behind-the-Nineties);
    font-weight: 400;
    font-style: italic;
    font-size: clamp(32px, 2.85vw, 55px);
    line-height: 1;
}

.numbers-home__num {
    font-family: var(--font-behind-the-Nineties);
    font-weight: 500;
    font-style: normal;
    font-size: clamp(56px, 5.15vw, 99px);
    line-height: 1;
}

.numbers-home__label {
    margin: 0;
    color: var(--color-black);
    font-family: var(--font-jorg);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.2;
    text-transform: uppercase;
}

.numbers-home__cta {
    text-align: center;
}

/* ==========================================================================
   4. CONHEÇA A HOPE — conheca-hope
   ========================================================================== */

.conheca-hope {
    background: var(--color-gray);
}

.conheca-hope__title {
    margin: 0 0 48px;
    color: var(--color-black);
    font-family: var(--font-jorg);
    font-weight: 300;
    font-size: clamp(28px, 2.5vw, 48px);
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
}

.conheca-hope__title-mask {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
}

.conheca-hope__title-text {
    display: block;
}

.conheca-hope__video {
    position: relative;
    max-width: 1397px;
    margin: 0 auto;
    border: 1px solid var(--color-black);
    background: var(--color-gray);
    overflow: hidden;
    transform-origin: center center;
    will-change: transform;
}

.conheca-hope__video video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1397 / 503;
    object-fit: cover;
}

.conheca-hope__play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--color-black);
    color: var(--color-cream);
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: opacity .2s ease, transform .2s ease;
}

.conheca-hope__play svg {
    display: block;
    margin-left: 4px;
}

.conheca-hope__play:hover,
.conheca-hope__play:focus-visible {
    opacity: .85;
    transform: translate(-50%, -50%) scale(1.05);
}

.conheca-hope__video.is-playing .conheca-hope__play {
    opacity: 0;
    pointer-events: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background: var(--color-black);
    color: var(--color-cream);
    padding: 80px 0 0;
}

.footer__top {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    padding-bottom: 64px;
}

.footer__logo {
    flex: 0 0 auto;
    display: block;
}

.footer__logo img {
    display: block;
    width: 129px;
    height: auto;
}

.footer__nav {
    flex: 1 1 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 32px 24px;
    min-width: 0;
}

.footer__col {
    flex: 0 1 auto;
    min-width: 0;
}

.footer__title {
    margin: 0 0 24px;
    color: var(--color-cream);
    font-family: var(--font-jorg);
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5;
    text-transform: uppercase;
}

.footer__links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer__links li + li {
    margin-top: 0;
}

.footer__links a {
    display: block;
    color: var(--color-cream);
    font-family: var(--font-jorg);
    font-weight: 500;
    font-size: 11px;
    line-height: 1.8;
    text-transform: uppercase;
    transition: opacity .2s ease;
}

.footer__links a:hover,
.footer__links a:focus-visible {
    opacity: .7;
    color: var(--color-cream);
}

.footer__social {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity .2s ease;
}

.footer__social a:hover,
.footer__social a:focus-visible {
    opacity: .7;
}

.footer__social img {
    display: block;
}

.footer__bottom {
    border-top: 1px solid rgba(250, 247, 242, .35);
    padding: 24px 0;
}

.footer__bottom p {
    margin: 0;
    color: var(--color-cream);
    font-family: var(--font-helvetica-neue);
    font-weight: 400;
    font-size: 13px;
    line-height: 1.85;
    text-align: center;
}

/* ==========================================================================
   Responsivo
   Regra: todo @media deve ficar aqui, neste bloco único, no final do arquivo.
   ========================================================================== */

@media (max-width: 1399px) {
    header .container, .footer .container {
        max-width: 98%;
    }
}

@media (max-width: 1199.98px) {
    .footer__top {
        flex-direction: column;
        gap: 40px;
    }

    .footer__nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 32px 24px;
        justify-content: start;
    }
}

@media (max-width: 991.98px) {
    .header {
        background: var(--color-black);
        padding: 16px 0;
    }

    .navbar-collapse {
        margin-top: 16px;
    }

    .banner-home__photo {
        min-height: 560px;
        max-height: none;
    }

    .banner-home__overlay {
        padding-top: 120px;
        justify-content: flex-start;
    }

    .banner-home__content {
        width: 100%;
    }

    .banner-home__intro .col-lg-4 {
        margin-bottom: 24px;
    }

    .categories-home__grid {
        grid-template-columns: 1fr;
    }

    .categories-home__media {
        height: min(70vw, 520px);
    }

    .categories-home__body {
        margin-top: 0;
        padding: 40px 24px 48px;
        align-items: center;
        text-align: center;
    }

    .categories-home__item + .categories-home__item .categories-home__body::before {
        display: none;
    }

    .categories-home__text {
        max-width: 360px;
    }

    .categories-home__body .button {
        margin-top: 0;
    }

    .numbers-home__grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 24px;
        margin-bottom: 48px;
    }

    .numbers-home__item {
        justify-self: center;
    }

    .numbers-home__item:first-child {
        grid-column: 1 / -1;
    }

    .numbers-home__title {
        margin-bottom: 36px;
    }
}

@media (max-width: 767.98px) {
    .banner-home__photo {
        min-height: 480px;
        object-position: 30% top;
    }

    .banner-home__overlay {
        padding-top: 100px;
    }

    .banner-home__quote {
        font-size: clamp(28px, 8vw, 40px);
        line-height: 1.05;
    }

    .banner-home__line {
        width: 100px;
        margin: 20px 0;
    }

    .banner-home__caption {
        max-width: 280px;
        font-size: 14px;
        line-height: 1.25;
    }

    .conheca-hope__play {
        width: 64px;
        height: 64px;
    }

    .conheca-hope__play svg {
        width: 18px;
        height: 21px;
    }

    .footer {
        padding-top: 56px;
    }

    .footer__top {
        flex-direction: column;
        gap: 40px;
        padding-bottom: 48px;
    }

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

    .footer__bottom p {
        font-size: 11px;
        text-align: left;
    }

    .numbers-home__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .numbers-home__item,
    .numbers-home__item:first-child {
        grid-column: auto;
        justify-self: center;
        justify-content: center;
        text-align: center;
    }

    .numbers-home__value {
        justify-content: center;
    }

    .numbers-home__content {
        text-align: center;
    }
}

/* Desktop: submenu só no mouseover (não no clique/foco) */
@media (min-width: 992px) {
    .navbar .nav-item.dropdown:hover > .dropdown-menu {
        display: block !important;
    }

    .navbar .nav-item.dropdown:not(:hover) > .dropdown-menu {
        display: none !important;
    }

    .header.fix .dropdown-menu {
        background: var(--color-black);
        padding: 12px 16px 14px;
        min-width: 180px;
    }
}
