﻿:root {
    --bg: #FFFFFF;
    --text: #0F0F0F;
    --muted: #6E6E6E;
    --card: rgba(255,255,255,.78);
    --stroke: rgba(15,15,15,.10);
    --green: #1F7A3A; /* institucional */
    --green2: #2FA866; /* secundário */

    --radius: 18px;
    --shadow: 0 18px 60px rgba(0,0,0,.18);
    --container: 1120px;
    --trans: 220ms ease;
    --trans2: 420ms cubic-bezier(.2,.9,.2,1);
}

* {
    box-sizing: border-box
}

html, body {
    height: 100%
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
    background: #fff;
    color: var(--text);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

.skip {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

    .skip:focus {
        left: 18px;
        top: 18px;
        width: auto;
        height: auto;
        padding: 10px 12px;
        background: #fff;
        color: #000;
        border-radius: 10px;
        z-index: 9999;
    }

/* ===== Topbar ===== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(15,15,15,.08);
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

    .brand img {
        height: 34px;
        width: auto;
        display: block;
    }

.nav {
    display: flex;
    gap: 18px;
    align-items: center;
}

.nav__link {
    position: relative;
    font-weight: 700;
    opacity: .92;
    transition: opacity var(--trans), transform var(--trans);
}

    .nav__link:hover {
        opacity: 1;
        transform: translateY(-1px)
    }

    .nav__link::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -8px;
        width: 0;
        height: 2px;
        border-radius: 2px;
        background: linear-gradient(90deg, var(--green), var(--green2));
        transition: width var(--trans2);
    }

    .nav__link:hover::after {
        width: 100%
    }

.nav__cta {
    padding: 10px 14px;
    border: 1px solid rgba(31,122,58,.35);
    border-radius: 999px;
    background: rgba(31,122,58,.06);
    color: var(--green);
}

    .nav__cta::after {
        display: none
    }

.hamb {
    display: none;
    width: 44px;
    height: 40px;
    border: 1px solid rgba(15,15,15,.14);
    background: rgba(255,255,255,.8);
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

    .hamb span {
        display: block;
        width: 18px;
        height: 2px;
        background: #111;
        border-radius: 2px;
        opacity: .9;
    }

.content {
    min-height: calc(100vh - 170px)
}

/* ===== Sections ===== */
.section {
    padding: 54px 0
}

.section--soft {
    background: #f6f6f6;
    border-top: 1px solid rgba(15,15,15,.06);
    border-bottom: 1px solid rgba(15,15,15,.06);
}

.grid2 {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 18px;
}

.grid3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

/* ===== Card ===== */
.card {
    border-top: 0;
    padding-top: 0;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .18);
    padding: 20px;
    border-radius: 30px;
}

/* ===== Hero / Pagehead com fundo ===== */
.parallax {
    background-size: cover;
    background-position: center;
    transform: translateZ(0);
}

.hero, .pagehead {
    position: relative;
    overflow: hidden;
    background-color: #ddd; /* fallback enquanto carrega */
}

.hero {
    min-height: 72vh;
    display: flex;
    align-items: center;
    padding: 56px 0;
}

.pagehead {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: flex-start; /* fica em cima */
    padding: 80px 0 44px;    /* espaço do topo */
    overflow: hidden;
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.pagehead__fade {
    position: absolute;
    inset: 0;    
    pointer-events: none;
}

    /* Camada de escurecimento sobre a imagem (para leitura) */
.hero::before,
.pagehead::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(357deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.20) 52%, rgba(0,0,0,.05) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero__inner,
.pagehead__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-left: 20px;
}

/* Quadro com blur */
.hero__card {
    background: rgba(255,255,255,.55); /* mais transparente */
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 22px;
    box-shadow: 0 18px 60px rgba(0,0,0,.18);
    padding: 22px;
    max-width: 980px;
}

/* fade do HERO (home) */
.hero__fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.35));
    pointer-events: none;
}

/* Logo dentro do quadro */
.hero__logo {
    height: 42px;
    width: auto;
    display: block;
    margin-bottom: 10px;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid rgba(15,15,15,.10);
    background: rgba(255,255,255,.7);
    border-radius: 999px;
    font-weight: 800;
    font-size: .85rem;
    color: #111;
    margin-bottom: 10px;
}

/* Títulos menores + verde institucional */
.hero h1,
.pagehead h1 {
    margin: 12px 0;
    font-weight: 800;
    letter-spacing: .02em;
    color: var(--green);
    text-transform: uppercase;
    font-size: 1.8rem; /* menor que antes */
    line-height: 1.08;
}

.hero p,
.pagehead p {
    margin: 0;
    color: rgba(15,15,15,.72);
    font-size: 1rem;
    max-width: 60ch;
}

.titlebox {
    max-width: 980px;
    border-radius: 20px;
    padding: 22px 22px 20px;
    background: rgba(255, 255, 255, .58); /* <<< MAIS TRANSPARENTE */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.45);
    box-shadow: 0 18px 60px rgba(0,0,0,.18);
}

.titlebox__logo {
    width: 170px;
    height: auto;
    display: block;
    margin-bottom: 10px;
}

/* badge pequeno (opcional) */
.titlebox__badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .85rem;
    background: rgba(255,255,255,.65);
    border: 1px solid rgba(0,0,0,.08);
    margin-bottom: 10px;
}

/* título e subtítulo */
.titlebox h1 {
    margin: 8px 0 10px;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--green); /* verde institucional */
    font-size: clamp(1.9rem, 3.2vw, 3rem);
    line-height: 1.05;
}

.titlebox p {
    margin: 0;
    color: rgba(0,0,0,.70);
    max-width: 70ch;
    font-size: 1.05rem;
}


/* Botões */
.hero__actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 14px;
    font-weight: 800;
    border: 1px solid rgba(15,15,15,.12);
    background: rgba(255,255,255,.70);
    transition: transform var(--trans), opacity var(--trans), background var(--trans);
}

    .btn:hover {
        transform: translateY(-1px);
        opacity: 1
    }

.btn--primary {
    border: 1px solid rgba(31,122,58,.35);
    background: linear-gradient(90deg, var(--green), var(--green2));
    color: #fff;
}

.btn--ghost {
    background: rgba(255,255,255,.85)
}

h2, h3 {
    margin: 0 0 10px;
    color: var(--green)
}

p {
    color: rgba(15,15,15,.78)
}

.check {
    list-style: none;
    padding: 0;
    margin: 12px 0 0
}

    .check li {
        padding-left: 26px;
        position: relative;
        margin: 10px 0;
        color: rgba(15,15,15,.70);
    }

        .check li::before {
            content: "✓";
            position: absolute;
            left: 0;
            top: 0;
            width: 18px;
            height: 18px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 6px;
            background: rgba(31,122,58,.14);
            border: 1px solid rgba(31,122,58,.25);
            color: var(--green);
            font-weight: 900;
            font-size: .85rem;
        }

/* ===== Portfólio (3 cards na mesma linha) ===== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-items: start;
}

.portfolio-card h3 {
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.portfolio-meta {
    color: rgba(15,15,15,.70);
    font-size: .95rem;
    margin-bottom: 12px;
}

.portfolio-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

    .portfolio-tiles img {
        width: 100%;
        height: 86px;
        object-fit: cover;
        border-radius: 12px;
        border: 1px solid rgba(15,15,15,.08);
        cursor: pointer;
        transition: transform 160ms ease;
    }

        .portfolio-tiles img:hover {
            transform: scale(1.02)
        }

/* ===== Modal (galeria) ===== */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    place-items: center;
    z-index: 1000;
}

    .modal.is-open {
        display: grid
    }

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.6);
}

.modal__panel {
    position: relative;
    z-index: 2;
    width: min(980px, calc(100% - 28px));
    background: rgba(255,255,255,.96);
    border-radius: 18px;
    box-shadow: 0 26px 80px rgba(0,0,0,.35);
    overflow: hidden;
}

.modal__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(15,15,15,.10);
}

.modal__title {
    font-weight: 800;
    color: var(--green);
}

.modal__close {
    border: 1px solid rgba(15,15,15,.12);
    background: #fff;
    border-radius: 12px;
    padding: 8px 10px;
    font-weight: 800;
    cursor: pointer;
}

.modal__body {
    position: relative;
    background: #111;
}

.modal__img {
    width: 100%;
    height: min(60vh, 640px);
    margin: 10px auto;
    object-fit: contain;
    display: block;
    background: #f6f6f6;
}

.modal__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    cursor: pointer;
    background: rgba(255,255,255,.18);
    color: #fff;
    font-size: 20px;
    font-weight: 900;
}

.modal__prev {
    left: 12px
}

.modal__next {
    right: 12px
}

.modal__nav:hover {
    background: rgba(255,255,255,.28)
}

/* ===== Footer ===== */
.footer {
    border-top: 1px solid rgba(15,15,15,.08);
    background: #fff;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0;
    flex-wrap: wrap;
}

.footer__brand {
    font-weight: 900;
    color: #111
}

.footer__muted {
    color: rgba(15,15,15,.65);
    font-size: .95rem;
    margin-top: 6px
}

.footer__links {
    display: flex;
    gap: 14px;
    opacity: .9
}

/* ===== Mobile ===== */
@media (max-width: 920px) {
    .grid2 {
        grid-template-columns: 1fr
    }

    .grid3 {
        grid-template-columns: 1fr
    }

    .portfolio-grid {
        grid-template-columns: 1fr
    }

    .portfolio-tiles {
        grid-template-columns: repeat(2, 1fr)
    }

    .hamb {
        display: inline-flex
    }

    .nav {
        position: fixed;
        top: 64px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        padding: 14px;
        border-radius: 16px;
        background: rgba(255,255,255,.96);
        border: 1px solid rgba(15,15,15,.10);
        box-shadow: var(--shadow);
    }

        .nav.is-open {
            display: flex
        }

    .nav__link::after {
        display: none
    }

    .hero__inner,
    .pagehead__inner {
        position: relative;
        z-index: 2;
        width: 90%;
        margin-left: 5px;
    }

    .hero h1,
    .pagehead h1 {
        margin: 12px 0;
        font-weight: 800;
        letter-spacing: .02em;
        color: var(--green);
        text-transform: uppercase;
        font-size: 1.4rem; /* menor que antes */
        line-height: 1.08;
    }

    .hero {
        min-height: 50vh;
        display: flex;
        align-items: center;
        padding: 56px 0;
    }


}

/* mobile */
@media (max-width: 920px) {
    .pagehead {
        padding-top: 72px;
        min-height: 300px;
    }

    .titlebox {
        padding: 18px;
    }

    .titlebox__logo {
        width: 150px;
    }
}


.portfolio-card--group {
    padding: 22px;
}

.portfolio-group-title {
    margin: 0 0 18px 0;
    font-size: 1.4rem;
    line-height: 1.2;
}

.portfolio-group {
    display: grid;
    gap: 22px;
}

.portfolio-item {
    border-top: 0;
    padding-top: 0;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .18);
    padding: 20px;
    border-radius: 30px;
}

    .portfolio-item:first-child {
        border-top: 0;
        padding-top: 0;
        box-shadow: 0 18px 60px rgba(0, 0, 0, .18);
        padding: 20px;
        border-radius: 30px;
    }
.pagehead.parallax {
    background-position: center center !important;
}

@media (max-width: 768px) {
    .pagehead.parallax {
        background-position: center top !important;
    }
}