/* =========================================================
   HIFEM — HOME
   Página inicial com hero, camadas visuais, atualizações e atalhos
   ========================================================= */

@import "./global.css";

/* Remove aparência de página interna na home */
.home-main {
    width: 100%;
    margin: 0;
    padding: 0;
}

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

.hero {
    position: relative;
    min-height: 820px;
    overflow: hidden;

    display: grid;
    grid-template-columns: minmax(320px, 430px) 1fr minmax(260px, 330px);
    align-items: center;
    gap: 48px;

    padding: calc(var(--nav-height) + 82px) 7.5% 92px;

    background:
        linear-gradient(
            180deg,
            #F7F2EA 0%,
            #F1ECE2 52%,
            #EAE2D4 100%
        );
}

/* Camadas visuais */
.visual-layer {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    pointer-events: none;
}

/* Montanhas — fig01.png */
.layer-mountains {
    z-index: 1;
    background-image: url("../assets/img/fig01.png");
    background-size: 100% auto;
    background-position: bottom left;
    opacity: 0.72;
}

/* Imagem inferior direita — fig02.1.png até fig02.5.png */
.layer-building {
    z-index: 2;
    background-image: url("../assets/img/fig02.1.png");
    background-size: 58% auto;
    background-position: right bottom;
    opacity: 0.58;
    transition: opacity 1.2s ease;
}

/* Logo central — fig03.png */
.layer-logo {
    z-index: 5;
    background-image: url("../assets/img/fig03.png");
    background-size: 620px auto;
    background-position: 54% 50%;
    opacity: 0.95;

    mix-blend-mode: multiply;
    filter: saturate(0.86) contrast(0.96);
}

/* Véu de integração visual */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;

    background:
        radial-gradient(
            circle at 54% 46%,
            rgba(244, 240, 232, 0.02) 0%,
            rgba(244, 240, 232, 0.10) 24%,
            rgba(244, 240, 232, 0.38) 54%,
            rgba(244, 240, 232, 0.74) 100%
        );
}

/* Pequena textura/papel */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;

    background:
        linear-gradient(
            90deg,
            rgba(244, 240, 232, 0.72) 0%,
            rgba(244, 240, 232, 0.28) 38%,
            rgba(244, 240, 232, 0.18) 62%,
            rgba(244, 240, 232, 0.62) 100%
        );
}

/* Texto principal à esquerda */
.hero-text {
    position: relative;
    z-index: 10;
    grid-column: 1;
    max-width: 410px;
}

.hero-text h1 {
    color: var(--blue-dark);
    font-size: clamp(72px, 7vw, 104px);
    line-height: 0.84;
    font-weight: 500;
    letter-spacing: 9px;
    margin-bottom: 28px;
}

.hero-text .subtitle {
    color: var(--blue);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(27px, 2.3vw, 34px);
    line-height: 1.25;
    font-weight: 500;
}

.hero-text .subtitle em {
    font-style: italic;
    color: var(--blue-dark);
}

.hero-text .area {
    margin-top: 28px;
    color: var(--blue);
    font-size: 13px;
    line-height: 1.75;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3.4px;
}

.hero-text .since {
    margin-top: 24px;
    color: var(--muted);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 20px;
    font-style: italic;
}

/* Citação à direita */
.quote {
    position: relative;
    z-index: 10;
    grid-column: 3;

    width: min(100%, 320px);
    justify-self: end;

    color: var(--gold);
}

.quote p {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-style: italic;
    font-size: 24px;
    line-height: 1.35;
    transition: opacity 0.5s ease;
}

/* =========================================================
   SEÇÃO EM MOVIMENTO / ÚLTIMAS ATUALIZAÇÕES
   ========================================================= */

.movement {
    background: var(--blue-dark);
    color: var(--paper);
    padding: 68px 7.5%;
}

.movement-inner {
    width: min(var(--max-width), 100%);
    margin: 0 auto;

    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 72px;
    align-items: start;
}

.movement-heading {
    max-width: 320px;
}

.movement .kicker {
    display: block;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 16px;
}

.movement h2 {
    color: var(--paper);
    font-size: clamp(36px, 4vw, 46px);
    line-height: 1;
    font-weight: 500;
    letter-spacing: 1px;
}

.movement-heading p {
    margin-top: 20px;
    color: rgba(250, 248, 242, 0.72);
    font-size: 15px;
    line-height: 1.7;
}

.movement-more {
    display: inline-flex;
    width: fit-content;
    margin-top: 24px;

    color: var(--gold);
    text-decoration: none;

    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.6px;

    border-bottom: 1px solid rgba(184, 155, 96, 0.72);

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.movement-more:hover,
.movement-more:focus-visible {
    color: var(--paper);
    border-color: var(--paper);
    transform: translateX(3px);
}

/* Lista de atualizações */
.movement-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
}

.movement-item {
    position: relative;

    display: block;
    min-height: 250px;

    padding: 24px 0 0;
    border-top: 1px solid rgba(184, 155, 96, 0.46);

    color: inherit;
    text-decoration: none;

    transition:
        transform 0.22s ease,
        border-color 0.22s ease;
}

.movement-item:hover,
.movement-item:focus-visible {
    transform: translateY(-4px);
    border-color: var(--gold);
    outline: none;
}

.movement-date {
    display: block;

    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1.8px;
    font-size: 12px;
    font-weight: 800;
}

.movement-tag {
    display: inline-flex;
    margin-top: 12px;

    color: rgba(250, 248, 242, 0.68);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.8px;
}

.movement-item h3 {
    margin-top: 16px;

    color: var(--paper);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 28px;
    line-height: 1.1;
    font-weight: 500;
}

.movement-item p {
    margin-top: 13px;

    color: rgba(250, 248, 242, 0.74);
    font-size: 15px;
    line-height: 1.68;
}

.movement-item::after {
    content: "→";

    position: absolute;
    right: 0;
    bottom: 0;

    color: var(--gold);
    font-size: 18px;
    font-weight: 800;

    opacity: 0;
    transform: translateX(-6px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.movement-item:hover::after,
.movement-item:focus-visible::after {
    opacity: 1;
    transform: translateX(0);
}

/* =========================================================
   SOBRE RESUMIDO NA HOME
   ========================================================= */

.home-about {
    padding: 96px 7.5%;
    background: var(--bg);
}

.home-about-inner {
    width: min(var(--max-width), 100%);
    margin: 0 auto;

    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 70px;
    align-items: start;
}

.home-about .kicker {
    display: block;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 12px;
    font-weight: 800;
}

.home-about h2 {
    color: var(--blue-dark);
    font-size: clamp(40px, 5vw, 66px);
    line-height: 0.98;
    font-weight: 500;
}

.home-about p {
    max-width: 850px;
    color: var(--text);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(21px, 2vw, 27px);
    line-height: 1.65;
}

.home-about p + p {
    margin-top: 18px;
}

.home-about .btn {
    margin-top: 30px;
}

/* =========================================================
   ATALHOS
   ========================================================= */

.home-links {
    padding: 0 7.5% 96px;
    background: var(--bg);
}

.home-links-inner {
    width: min(var(--max-width), 100%);
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.home-link-card {
    min-height: 185px;
    padding: 28px;

    background: rgba(250, 248, 242, 0.72);
    border: 1px solid rgba(184, 155, 96, 0.24);
    text-decoration: none;

    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease;
}

.home-link-card:hover,
.home-link-card:focus-visible {
    transform: translateY(-5px);
    border-color: rgba(184, 155, 96, 0.58);
    background: rgba(250, 248, 242, 0.95);
    outline: none;
}

.home-link-card span {
    display: block;
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2.4px;
    margin-bottom: 18px;
}

.home-link-card h3 {
    color: var(--blue-dark);
    font-size: 30px;
    line-height: 1.05;
    font-weight: 500;
    margin-bottom: 16px;
}

.home-link-card p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

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

@media (max-width: 1180px) {
    .hero {
        min-height: 860px;
        grid-template-columns: minmax(300px, 420px) 1fr;
        align-items: center;
    }

    .hero-text {
        grid-column: 1;
    }

    .quote {
        grid-column: 1;
        justify-self: start;
        align-self: end;
        margin-top: 46px;
    }

    .layer-logo {
        background-size: 520px auto;
        background-position: 66% 52%;
    }

    .layer-building {
        background-size: 66% auto;
    }

    .movement-inner,
    .home-about-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .movement-heading {
        max-width: 680px;
    }

    .movement-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 28px;
    }

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

@media (max-width: 980px) {
    .movement-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .movement-item {
        min-height: 220px;
    }
}

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

        padding: calc(var(--nav-height) + 76px) 26px 72px;
        align-items: start;
    }

    .layer-mountains {
        background-size: auto 38%;
        background-position: bottom left;
        opacity: 0.62;
    }

    .layer-building {
        background-size: 92% auto;
        background-position: right bottom;
        opacity: 0.34;
    }

    .layer-logo {
        background-size: 330px auto;
        background-position: center 58%;
        opacity: 0.68;
    }

    .hero-text {
        grid-column: 1;
        max-width: 360px;
    }

    .hero-text h1 {
        font-size: 68px;
        letter-spacing: 6px;
    }

    .hero-text .subtitle {
        font-size: 26px;
        max-width: 340px;
    }

    .quote {
        display: none;
    }

    .movement,
    .home-about,
    .home-links {
        padding-left: 26px;
        padding-right: 26px;
    }

    .movement {
        padding-top: 58px;
        padding-bottom: 58px;
    }

    .movement-list {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .movement-item {
        min-height: auto;
        padding-bottom: 34px;
    }

    .movement-item::after {
        opacity: 1;
        transform: translateX(0);
    }

    .home-links-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .hero {
        min-height: 720px;
        padding-top: calc(var(--nav-height) + 58px);
    }

    .layer-logo {
        background-size: 280px auto;
        background-position: center 60%;
    }

    .layer-building {
        background-size: 110% auto;
        opacity: 0.28;
    }

    .hero-text h1 {
        font-size: 58px;
        letter-spacing: 5px;
    }

    .hero-text .subtitle {
        font-size: 23px;
        max-width: 310px;
    }

    .hero-text .area {
        font-size: 11px;
        letter-spacing: 2.4px;
    }

    .movement h2,
    .home-about h2 {
        font-size: 38px;
    }

    .movement-heading p {
        font-size: 14.5px;
    }

    .movement-item h3 {
        font-size: 27px;
    }

    .home-about p {
        font-size: 21px;
    }
}

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

    .hero-text h1 {
        font-size: 50px;
    }

    .hero-text .subtitle {
        font-size: 21px;
    }

    .layer-logo {
        background-size: 240px auto;
        background-position: center 63%;
    }
}