:root {
    --ink: #102028;
    --ink-soft: #3d4f5a;
    --paper: #eef3f6;
    --paper-deep: #d9e4ea;
    --accent: #0b7a78;
    --accent-deep: #065e5c;
    --warm: #e8a54b;
    --hero-text: #f4f8fa;
    --hero-muted: rgba(244, 248, 250, 0.82);
    --font-display: "Bricolage Grotesque", Georgia, serif;
    --font-body: "Figtree", Georgia, sans-serif;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background:
        radial-gradient(ellipse 80% 50% at 10% 0%, rgba(11, 122, 120, 0.08), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 20%, rgba(232, 165, 75, 0.1), transparent 50%),
        linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
    min-height: 100vh;
}

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

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

/* ——— Hero: one composition ——— */
.hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    align-items: end;
    overflow: hidden;
    color: var(--hero-text);
}

.hero__media {
    position: absolute;
    inset: 0;
    background:
        url("https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?auto=format&fit=crop&w=2000&q=80")
        center / cover no-repeat;
    transform: scale(1.06);
    animation: hero-drift 18s var(--ease-out) infinite alternate;
}

.hero__veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 20, 28, 0.35) 0%, rgba(8, 20, 28, 0.55) 45%, rgba(8, 20, 28, 0.88) 100%),
        linear-gradient(90deg, rgba(8, 20, 28, 0.55) 0%, transparent 55%);
}

.hero__content {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    padding: clamp(2rem, 6vw, 4.5rem);
    padding-bottom: clamp(2.5rem, 8vw, 5.5rem);
}

.brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(3.25rem, 10vw, 6.5rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: 1.1rem;
    animation: rise 0.9s var(--ease-out) both;
}

.brand--sm {
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    display: inline;
}

.hero h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.45rem, 3.4vw, 2.15rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    max-width: 18ch;
    margin-bottom: 1rem;
    animation: rise 0.9s var(--ease-out) 0.12s both;
}

.lede {
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 400;
    color: var(--hero-muted);
    max-width: 38ch;
    margin-bottom: 1.75rem;
    animation: rise 0.9s var(--ease-out) 0.22s both;
}

.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    animation: rise 0.9s var(--ease-out) 0.32s both;
}

.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.85rem 1.35rem;
    border-radius: 0.35rem;
    transition: transform 0.25s var(--ease-out), background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.cta:hover {
    transform: translateY(-2px);
}

.cta:focus-visible {
    outline: 2px solid var(--warm);
    outline-offset: 3px;
}

.cta--primary {
    background: var(--accent);
    color: #f7fffe;
}

.cta--primary:hover {
    background: var(--accent-deep);
}

.hero .cta--primary {
    background: var(--warm);
    color: var(--ink);
}

.hero .cta--primary:hover {
    background: #f0b35c;
}

.cta--ghost {
    border: 1px solid rgba(244, 248, 250, 0.45);
    color: var(--hero-text);
    background: transparent;
}

.cta--ghost:hover {
    border-color: rgba(244, 248, 250, 0.85);
    background: rgba(244, 248, 250, 0.08);
}

/* ——— Essência ——— */
.essencia {
    width: min(680px, 100%);
    margin: 0 auto;
    padding: clamp(4rem, 10vw, 7rem) clamp(1.5rem, 5vw, 2.5rem);
}

.essencia h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 1.25rem;
}

.essencia h2::after {
    content: "";
    display: block;
    width: 3.5rem;
    height: 3px;
    margin-top: 1rem;
    background: linear-gradient(90deg, var(--accent), var(--warm));
    border-radius: 2px;
}

.essencia p {
    color: var(--ink-soft);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

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

/* ——— Contato ——— */
.contato {
    width: min(680px, 100%);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 2.5rem) clamp(4rem, 10vw, 6rem);
}

.contato h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.6rem, 3.5vw, 2.25rem);
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.contato p {
    color: var(--ink-soft);
    max-width: 40ch;
    margin-bottom: 1.5rem;
}

/* ——— Footer ——— */
.footer {
    border-top: 1px solid rgba(16, 32, 40, 0.1);
    padding: 1.5rem clamp(1.5rem, 5vw, 2.5rem) 2rem;
    text-align: center;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.footer .brand {
    color: var(--ink);
}

/* ——— Motion ——— */
@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(1.25rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-drift {
    from {
        transform: scale(1.06) translate3d(0, 0, 0);
    }
    to {
        transform: scale(1.12) translate3d(-1.5%, -1%, 0);
    }
}

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

    .hero__media,
    .brand,
    .hero h1,
    .lede,
    .cta-group {
        animation: none;
    }

    .hero__media {
        transform: none;
    }

    .cta:hover {
        transform: none;
    }
}

@media (max-width: 640px) {
    .hero {
        align-items: end;
    }

    .hero__content {
        padding-top: 6rem;
    }

    .cta-group {
        flex-direction: column;
        align-items: stretch;
    }

    .cta {
        width: 100%;
    }
}
