/* ============================================================
TOKENS
============================================================ */
:root {
        --green-deep: #1C3A2B;
        --green-mid: #2A5240;
        --sage: #A8BFA8;
        --parchment: #F2EDE4;
        --parchment-dark: #E8E1D4;
        --sienna: #8B4A2F;
        --sienna-light: #A85C3C;
        --ink: #141414;
        --ink-muted: #4A4A4A;
        --white: #FFFFFF;

        --font-display: 'Playfair Display', Georgia, serif;
        --font-body: 'Inter', system-ui, sans-serif;

        --radius: 4px;
        --radius-lg: 8px;
        --nav-h: 72px;

        --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
RESET
============================================================ */
*,
*::before,
*::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
}

html {
        scroll-behavior: smooth;
        font-size: 16px;
}

body {
        font-family: var(--font-body);
        color: var(--ink);
        background: var(--parchment);
        line-height: 1.6;
        -webkit-font-smoothing: antialiased;
}

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

a {
        color: inherit;
        text-decoration: none;
}

ul {
        list-style: none;
}

/* ============================================================
UTILITIES
============================================================ */
.container {
        width: min(1140px, 100% - 2 * clamp(1.25rem, 5vw, 3rem));
        margin-inline: auto;
}

.section__eyebrow {
        font-family: var(--font-body);
        font-size: 0.72rem;
        font-weight: 600;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: var(--sienna);
        margin-bottom: 0.9rem;
}

.section__eyebrow--light {
        color: var(--sage);
}

.section__title {
        font-family: var(--font-display);
        font-size: clamp(2rem, 4vw, 2.8rem);
        font-weight: 700;
        line-height: 1.15;
        color: var(--green-deep);
        margin-bottom: 1.5rem;
}

.section__title--light {
        color: var(--parchment);
}

.btn {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1.6rem;
        border-radius: var(--radius);
        font-family: var(--font-body);
        font-size: 0.9rem;
        font-weight: 600;
        cursor: pointer;
        border: 2px solid transparent;
        transition: all 0.2s var(--ease-out);
        white-space: nowrap;
}

.btn--primary {
        background: var(--sienna);
        color: var(--white);
        border-color: var(--sienna);
}

.btn--primary:hover {
        background: var(--sienna-light);
        border-color: var(--sienna-light);
}

.btn--ghost {
        background: transparent;
        color: var(--parchment);
        border-color: rgba(242, 237, 228, 0.5);
}

.btn--ghost:hover {
        background: rgba(242, 237, 228, 0.1);
        border-color: var(--parchment);
}

.btn--submit {
        width: 100%;
        background: var(--sienna);
        color: var(--white);
        border-color: var(--sienna);
        justify-content: center;
        padding: 0.85rem 1.6rem;
        font-size: 0.95rem;
}

.btn--submit:hover {
        background: var(--sienna-light);
        border-color: var(--sienna-light);
}

/* ============================================================
NAV
============================================================ */
.nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: var(--nav-h);
        z-index: 100;
        background: rgba(28, 58, 43, 0.0);
        transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
        background: rgba(28, 58, 43, 0.97);
        box-shadow: 0 1px 20px rgba(0, 0, 0, 0.25);
}

.nav__inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 100%;
        width: min(1140px, 100% - 2 * clamp(1.25rem, 5vw, 3rem));
        margin-inline: auto;
}

.nav__logo {
        display: flex;
        flex-direction: column;
        gap: 0.1rem;
}

.nav__logo-name {
        font-family: var(--font-display);
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--parchment);
        line-height: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: min(280px, 55vw);
}

.nav__logo-title {
        font-size: 0.65rem;
        font-weight: 400;
        color: var(--sage);
        letter-spacing: 0.06em;
}

.nav__links {
        display: flex;
        align-items: center;
        gap: 2rem;
}

.nav__links a {
        font-size: 0.85rem;
        font-weight: 500;
        color: rgba(242, 237, 228, 0.85);
        letter-spacing: 0.03em;
        transition: color 0.15s;
}

.nav__links a:hover {
        color: var(--parchment);
}

.nav__cta {
        background: var(--sienna) !important;
        color: var(--white) !important;
        padding: 0.45rem 1.1rem;
        border-radius: var(--radius);
}

.nav__cta:hover {
        background: var(--sienna-light) !important;
}

.nav__burger {
        display: none;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 4px;
}

.nav__burger span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--parchment);
        border-radius: 2px;
        transition: all 0.3s;
}

/* ============================================================
HERO
============================================================ */
.hero {
        position: relative;
        min-height: 100svh;
        background: var(--green-deep);
        display: flex;
        flex-direction: column;
        overflow: hidden;
}

.hero__topo {
        position: absolute;
        inset: 0;
        pointer-events: none;
}

.topo__svg {
        width: 100%;
        height: 100%;
        object-fit: cover;
}

.hero__inner {
        position: relative;
        z-index: 2;
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        flex: 1;
        width: min(1140px, 100% - 2 * clamp(1.25rem, 5vw, 3rem));
        margin-inline: auto;
        padding-top: calc(var(--nav-h) + clamp(2rem, 6vh, 4rem));
        padding-bottom: clamp(3rem, 6vh, 5rem);
        gap: 2rem;
}

.hero__rule {
        position: absolute;
        left: 0;
        top: calc(var(--nav-h) + clamp(2rem, 6vh, 4rem));
        bottom: clamp(3rem, 6vh, 5rem);
        width: 2px;
        background: var(--sienna);
        opacity: 0.7;
}

.hero__text {
        padding-left: 1.5rem;
        max-width: 680px;
}

.hero__eyebrow {
        font-family: var(--font-body);
        font-size: 0.72rem;
        font-weight: 600;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: var(--sage);
        margin-bottom: 1.2rem;
}

.hero__headline {
        font-family: var(--font-display);
        font-size: clamp(2.6rem, 6vw, 4.5rem);
        font-weight: 700;
        line-height: 1.08;
        color: var(--parchment);
        margin-bottom: 1.5rem;
}

.hero__headline em {
        font-style: italic;
        color: var(--sage);
        font-weight: 400;
}

.hero__sub {
        font-size: clamp(1rem, 1.5vw, 1.1rem);
        color: rgba(242, 237, 228, 0.75);
        max-width: 520px;
        margin-bottom: 2.2rem;
        line-height: 1.7;
}

.hero__actions {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
}

.hero__badge {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        padding: 1.5rem;
        border: 1px solid rgba(168, 191, 168, 0.3);
        border-radius: var(--radius);
        min-width: 110px;
        text-align: center;
        flex-shrink: 0;
        align-self: flex-end;
}

.badge__number {
        font-family: var(--font-display);
        font-size: 2.5rem;
        font-weight: 700;
        color: var(--sage);
        line-height: 1;
}

.badge__label {
        font-size: 0.72rem;
        color: rgba(242, 237, 228, 0.6);
        letter-spacing: 0.04em;
        text-transform: uppercase;
}

.hero__scroll {
        position: absolute;
        bottom: 1.5rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 2;
}

.hero__scroll span {
        display: block;
        width: 1px;
        height: 40px;
        background: linear-gradient(to bottom, var(--sage), transparent);
        animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

        0%,
        100% {
                opacity: 0.4;
                transform: scaleY(1);
        }

        50% {
                opacity: 1;
                transform: scaleY(1.15);
        }
}

/* ============================================================
SOBRE
============================================================ */
.sobre {
        padding: clamp(4rem, 8vw, 7rem) 0;
        background: var(--parchment);
}

.sobre__grid {
        display: grid;
        grid-template-columns: 320px 1fr;
        gap: clamp(2rem, 5vw, 5rem);
        align-items: start;
}

.sobre__photo-frame {
        position: relative;
}

.sobre__photo-placeholder {
        width: 100%;
        aspect-ratio: 4/5;
        background: var(--parchment-dark);
        border-radius: var(--radius-lg);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        border: 1px dashed var(--sage);
        overflow: hidden;
}

.sobre__photo-placeholder svg {
        width: 120px;
        opacity: 0.6;
}

.photo__caption {
        font-size: 0.72rem;
        color: var(--ink-muted);
        letter-spacing: 0.06em;
        text-transform: uppercase;
}

.sobre__crea-badge {
        position: absolute;
        bottom: -1rem;
        right: -1rem;
        background: var(--green-deep);
        color: var(--parchment);
        padding: 0.7rem 1rem;
        border-radius: var(--radius);
        display: flex;
        flex-direction: column;
        align-items: center;
}

.crea__label {
        font-size: 0.6rem;
        font-weight: 700;
        letter-spacing: 0.14em;
        color: var(--sage);
        text-transform: uppercase;
}

.crea__num {
        font-family: var(--font-display);
        font-size: 1rem;
        font-weight: 700;
}

.sobre__bio {
        color: var(--ink-muted);
        margin-bottom: 1.1rem;
        font-size: 1rem;
        line-height: 1.75;
}

.sobre__attrs {
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid var(--parchment-dark);
}

.sobre__attrs li {
        display: flex;
        gap: 0.75rem;
        align-items: baseline;
        font-size: 0.9rem;
        color: var(--ink-muted);
}

.attr__icon {
        color: var(--sienna);
        font-size: 0.55rem;
        flex-shrink: 0;
        position: relative;
        top: -1px;
}

/* ============================================================
SERVIÇOS
============================================================ */
.servicos {
        padding: clamp(4rem, 8vw, 7rem) 0;
        background: var(--green-deep);
}

.servicos__header {
        margin-bottom: 3rem;
}

.servicos__grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.25rem;
}

.servico__card {
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(168, 191, 168, 0.15);
        border-radius: var(--radius-lg);
        padding: 2rem;
        transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.servico__card:hover {
        background: rgba(168, 191, 168, 0.07);
        border-color: rgba(168, 191, 168, 0.35);
        transform: translateY(-2px);
}

.card__icon {
        width: 40px;
        height: 40px;
        margin-bottom: 1.2rem;
}

.card__title {
        font-family: var(--font-display);
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--parchment);
        margin-bottom: 0.65rem;
        line-height: 1.25;
}

.card__desc {
        font-size: 0.88rem;
        color: rgba(242, 237, 228, 0.65);
        line-height: 1.7;
}

/* ============================================================
PROCESSO
============================================================ */
.processo {
        padding: clamp(4rem, 8vw, 7rem) 0;
        background: var(--parchment);
}

.processo__steps {
        display: flex;
        align-items: flex-start;
        gap: 0;
        margin-top: 3rem;
        flex-wrap: nowrap;
}

@media (max-width: 860px) {
        .processo__steps {
                flex-direction: column;
                gap: 2rem;
        }

        .step__connector {
                display: none;
        }
}

.step {
        flex: 1;
        min-width: 200px;
        display: flex;
        flex-direction: column;
        gap: 1rem;
}

.step__marker {
        font-family: var(--font-display);
        font-size: 2.5rem;
        font-weight: 700;
        color: var(--parchment-dark);
        line-height: 1;
        border-bottom: 2px solid var(--sienna);
        padding-bottom: 0.5rem;
        width: fit-content;
}

.step__title {
        font-family: var(--font-display);
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--green-deep);
        margin-top: 0.5rem;
}

.step__desc {
        font-size: 0.88rem;
        color: var(--ink-muted);
        line-height: 1.7;
}

.step__connector {
        flex: 0 0 2rem;
        height: 2px;
        background: var(--parchment-dark);
        margin-top: 1.25rem;
        align-self: flex-start;
}

/* ============================================================
CONTATO
============================================================ */
.contato {
        padding: clamp(4rem, 8vw, 7rem) 0;
        background: var(--green-mid);
}

.contato__grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: clamp(2rem, 5vw, 5rem);
        align-items: start;
        max-width: 600px;
}

.contato__sub {
        color: rgba(242, 237, 228, 0.7);
        margin-bottom: 2rem;
        line-height: 1.7;
}

.contato__info {
        display: flex;
        flex-direction: column;
        gap: 1rem;
}

.contato__info li {
        display: flex;
        gap: 0.85rem;
        align-items: center;
        font-size: 0.92rem;
        color: rgba(242, 237, 228, 0.85);
}

.contato__info a:hover {
        color: var(--sage);
}

.contact__icon {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
}

.contato__form-wrapper {
        background: var(--parchment);
        border-radius: var(--radius-lg);
        padding: clamp(1.5rem, 3vw, 2.5rem);
}

.form__label {
        font-size: 0.72rem;
        font-weight: 600;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--sienna);
        margin-bottom: 1.5rem;
}

.contato__form {
        display: flex;
        flex-direction: column;
        gap: 1rem;
}

.field {
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
}

.field label {
        font-size: 0.78rem;
        font-weight: 600;
        color: var(--ink-muted);
        letter-spacing: 0.04em;
}

.field input,
.field select,
.field textarea {
        width: 100%;
        padding: 0.7rem 0.9rem;
        border: 1px solid var(--parchment-dark);
        border-radius: var(--radius);
        background: var(--white);
        font-family: var(--font-body);
        font-size: 0.9rem;
        color: var(--ink);
        transition: border-color 0.15s;
        outline: none;
        appearance: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
        border-color: var(--green-deep);
        box-shadow: 0 0 0 3px rgba(28, 58, 43, 0.08);
}

.field textarea {
        resize: vertical;
        min-height: 110px;
}

.form__note {
        margin-top: 0.75rem;
        font-size: 0.85rem;
        color: var(--green-deep);
        min-height: 1.2em;
}

.form__disclaimer {
        margin-top: 1rem;
        font-size: 0.75rem;
        color: var(--ink-muted);
        line-height: 1.5;
        padding: 0.65rem;
        border-left: 2px solid var(--sienna);
        background: var(--parchment-dark);
        border-radius: 0 var(--radius) var(--radius) 0;
}

.form__disclaimer a {
        color: var(--sienna);
        text-decoration: underline;
}

/* ============================================================
FOOTER
============================================================ */
.footer {
        background: var(--ink);
        padding: 3rem 0;
}

.footer__grid {
        display: grid;
        grid-template-columns: 1fr 1fr 2fr;
        gap: 2rem;
        align-items: start;
}

.footer__name {
        font-family: var(--font-display);
        font-size: 1rem;
        font-weight: 700;
        color: var(--parchment);
        margin-bottom: 0.3rem;
}

.footer__cred,
.footer__region {
        font-size: 0.78rem;
        color: rgba(242, 237, 228, 0.45);
        line-height: 1.6;
}

.footer__nav {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
}

.footer__nav a {
        font-size: 0.83rem;
        color: rgba(242, 237, 228, 0.55);
        transition: color 0.15s;
}

.footer__nav a:hover {
        color: var(--sage);
}

.footer__legal {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
}

.footer__legal p:first-child {
        font-size: 0.78rem;
        color: rgba(242, 237, 228, 0.4);
}

.footer__integ-note {
        font-size: 0.75rem;
        color: rgba(242, 237, 228, 0.4);
        line-height: 1.6;
        padding: 0.75rem;
        border: 1px solid rgba(168, 191, 168, 0.15);
        border-radius: var(--radius);
}

.footer__integ-note strong {
        color: var(--sage);
}

.footer__integ-note a {
        color: var(--sage);
        text-decoration: underline;
}

.footer__integ-note code {
        font-family: monospace;
        background: rgba(255, 255, 255, 0.07);
        padding: 0 3px;
        border-radius: 2px;
}

/* ============================================================
FOCUS / A11Y
============================================================ */
:focus-visible {
        outline: 2px solid var(--sienna);
        outline-offset: 3px;
}

/* ============================================================
MOBILE NAV
============================================================ */
@media (max-width: 768px) {
        .nav__burger {
                display: flex;
                z-index: 110;
                position: relative;
        }

        .nav__links {
                position: fixed;
                top: var(--nav-h);
                left: 0;
                right: 0;
                background: var(--green-deep);
                flex-direction: column;
                padding: 1.5rem 1.5rem 2rem;
                gap: 1.25rem;
                transform: translateY(-110%);
                transition: transform 0.3s var(--ease-out), visibility 0.3s;
                border-top: 1px solid rgba(168, 191, 168, 0.15);
                z-index: 99;
                visibility: hidden;
                box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
        }

        .nav__links.open {
                transform: translateY(0);
                visibility: visible;
        }

        .nav__links a {
                font-size: 1rem;
        }

        /* Burger → X animation */
        .nav__burger[aria-expanded="true"] span:nth-child(1) {
                transform: translateY(7px) rotate(45deg);
        }

        .nav__burger[aria-expanded="true"] span:nth-child(2) {
                opacity: 0;
                transform: scaleX(0);
        }

        .nav__burger[aria-expanded="true"] span:nth-child(3) {
                transform: translateY(-7px) rotate(-45deg);
        }

        .nav__burger span {
                transition: transform 0.3s var(--ease-out), opacity 0.2s;
        }
}

/* ============================================================
RESPONSIVE
============================================================ */
@media (max-width: 900px) {
        .sobre__grid {
                grid-template-columns: 1fr;
        }

        .sobre__photo-frame {
                max-width: 280px;
        }

        .footer__grid {
                grid-template-columns: 1fr 1fr;
        }

        .footer__legal {
                grid-column: 1 / -1;
        }

        .hero__badge {
                display: none;
        }
}

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

        .hero__actions {
                flex-direction: column;
        }

        .hero__actions .btn {
                text-align: center;
                justify-content: center;
        }
}

/* ============================================================
REDUCED MOTION
============================================================ */
@media (prefers-reduced-motion: reduce) {
        html {
                scroll-behavior: auto;
        }

        .hero__scroll span {
                animation: none;
        }

        * {
                transition-duration: 0.01ms !important;
        }
}