/* ==========================================================================
   FONTS
   ========================================================================== */
@font-face {
    font-family: 'Ageo';
    src: url('fonts/Ageo-Light.woff2') format('woff2'),
         url('fonts/Ageo-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ageo';
    src: url('fonts/Ageo-Regular.woff2') format('woff2'),
         url('fonts/Ageo-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ageo';
    src: url('fonts/Ageo-Bold.woff2') format('woff2'),
         url('fonts/Ageo-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Arenta';
    src: url('fonts/Arenta-Zenna.woff2') format('woff2'),
         url('fonts/Arenta-Zenna.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}


/* ==========================================================================
   VARIABLES
   ========================================================================== */
:root {
    --color-areia: #EAE3DA;
    --color-amarelo: #D29650;
    --color-roxo: #52557A;
    --color-whatsapp: #19CC60;
}


/* ==========================================================================
   BASE RESETS
   ========================================================================== */
* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: 'Ageo', sans-serif;
    font-weight: 400;
    color: var(--color-areia);
    background: #142A20; /* dark green fallback matching the leaves photo */
    display: flex;
    flex-direction: column;
}

img, svg {
    max-width: 100%;
    height: auto;
}

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

p {
    margin: 0;
}


/* ==========================================================================
   HERO (single full-page section)
   ========================================================================== */
.hero {
    flex: 1;
    position: relative;
    overflow: hidden;
    background-image: url('img/bg.jpg');
    /* mobile: tile the texture vertically like the Figma frame (414x877 per tile) */
    background-size: auto 877px;
    background-repeat: repeat;
    background-position: center top;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 464px;
    margin: 0 auto;
    padding: 40px 25px;
}

.hero-left,
.hero-right {
    display: contents;
}


/* ==========================================================================
   BIRD (decorative)
   ========================================================================== */
/* below 1280px the containing block is .hero-inner (centered, max 464px);
   the min() keeps the bird bleeding off the viewport's left edge (-131px
   viewport coords from the Figma mobile frame) at any container position */
.bird {
    position: absolute;
    left: min(-131px, calc(101px - 50vw));
    top: 129px;
    width: 464px;
    height: 455px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: -1;
    pointer-events: none;
}

.bird img {
    flex: none;
    width: 297px;
    height: 357px;
    max-width: none;
    transform: rotate(128.82deg);
}


/* ==========================================================================
   LOGO
   ========================================================================== */
.logo {
    order: 1;
    width: 100%;
    max-width: 365px;
    margin: 0 auto 71px;
}

.logo img {
    display: block;
    width: 100%;
    height: auto;
}


/* ==========================================================================
   TAGLINE — staggered display text (Arenta, same face as the card title;
   the Figma vectors are outlined Arenta at 52px desktop / 37.34px mobile).
   All internal offsets are in em so the lockup scales with font-size.
   Vertical values convert Figma ink positions to line boxes using the font
   metrics (ascent 1.09em, descent 0.31em -> ink sits 0.08em below box top).
   ========================================================================== */
.tagline {
    order: 2;
    width: max-content;
    /* -0.08em aligns the ink top; ink descends 0.11em past the last box */
    margin: -0.08em auto calc(123px + 0.11em);
    font-family: 'Arenta', serif;
    font-weight: 400;
    font-size: 2.334rem; /* 37.34px */
    line-height: 1;
    letter-spacing: 0;
    color: var(--color-areia);
    white-space: nowrap;
}

.tagline-l1,
.tagline-l2,
.tagline-l3 {
    display: block;
}

.tagline-l2 {
    position: relative;
    margin-top: 0.5385em;  /* ink gap: 80px at 52px font */
    padding-left: 3.846em; /* "de viver" indent: 200px at 52px font */
}

.tagline-l3 {
    margin-top: 0.2815em;  /* ink gap: 69.24px at 52px font */
    padding-left: 0.04em;
}

.tagline-dot {
    display: inline-block;
    width: 0.27em;
    height: 0.27em;
    background: var(--color-areia);
    border-radius: 50%;
}

.tagline-dot-a {
    position: absolute;
    left: 0.25em;
    top: 0.5415em;
}

.tagline-dot-b {
    margin-left: 0.615em;
    transform: translateY(-0.1873em);
}

/* scale the whole lockup down so it fits a 320px viewport */
@media (max-width: 359px) {
    .tagline {
        font-size: 1.98rem;
    }
}


/* ==========================================================================
   FORM CARD
   ========================================================================== */
.card {
    order: 3;
    width: 100%;
    max-width: 365px;
    min-height: 570px;
    margin: 0 auto;
    padding: 50px 21px 43px;
    background: var(--color-roxo);
    border-radius: 38px;
    text-align: center;
}

.card-title {
    margin: 0 0 12px;
    font-family: 'Arenta', serif;
    font-weight: 400;
    font-size: 1.4375rem; /* 23px */
    line-height: 1.4;
    letter-spacing: 0.03em;
    color: var(--color-areia);
}

.card-stats {
    margin-bottom: 30px;
    font-size: 1.125rem; /* 18px */
    line-height: 1.556; /* 28px */
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.card-stats strong {
    font-weight: 700;
}

.card-description {
    max-width: 322px;
    margin: 0 auto 21px;
    font-weight: 300;
    font-size: 1.125rem; /* 18px */
}


/* ==========================================================================
   FORM
   ========================================================================== */
.form-group {
    margin-bottom: 12px;
}

.form-control {
    display: block;
    width: 100%;
    height: 45px;
    padding: 0 17px;
    border: 1px solid var(--color-areia);
    border-radius: 23px;
    background: transparent;
    color: var(--color-areia);
    font-family: inherit;
    font-size: 1rem; /* 16px */
}

.form-control::placeholder {
    color: var(--color-areia);
    opacity: 0.85;
}

.form-control:focus-visible,
.btn-send:focus-visible,
.whatsapp:focus-visible,
.privacy a:focus-visible {
    outline: 2px solid var(--color-areia);
    outline-offset: 2px;
}

.form-actions {
    margin-top: 22px;
    text-align: left;
}

.btn-send {
    min-width: 135px;
    height: 45px;
    padding: 0 20px;
    border: none;
    border-radius: 30px;
    background: var(--color-amarelo);
    color: var(--color-areia);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.8125rem; /* 13px */
    letter-spacing: 0.24em;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.btn-send:hover {
    opacity: 0.85;
}

.btn-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#form-response .msg {
    margin-top: 15px;
    font-size: 0.875rem;
    text-align: left;
}

#form-response .msg ul {
    margin: 8px 0 0;
    padding-left: 18px;
}

#card-response .msg.success {
    max-width: 376px;
    margin: 110px auto 20px;
    font-weight: 300;
    font-size: 1.125rem;
    color: var(--color-amarelo);
}

#card-response .msg.success strong {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
}


/* ==========================================================================
   ADDRESS
   ========================================================================== */
.address {
    order: 4;
    margin: 30px auto 0;
    text-align: center;
    font-size: 1rem; /* 16px */
    line-height: 1.25; /* 20px */
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.address span {
    display: block;
}


/* ==========================================================================
   PRIVACY LINK
   ========================================================================== */
.privacy {
    order: 5;
    margin: 30px auto 0;
    text-align: center;
    font-size: 0.8125rem; /* 13px */
    letter-spacing: 0.03em;
}

.privacy a {
    text-decoration: underline;
}


/* ==========================================================================
   WHATSAPP — fixed button, bottom right on every screen size
   ========================================================================== */
.whatsapp {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 100;
    width: 63px;
    height: 63px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-whatsapp);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.whatsapp:hover {
    transform: scale(1.07);
}

.whatsapp img {
    width: 35px;
    height: 35px;
}


/* keep the card title on two lines on very narrow screens */
@media (max-width: 399px) {
    .card-title {
        font-size: 1.25rem; /* 20px */
    }
}


/* ==========================================================================
   RESPONSIVE — desktop two-column layout (Figma frame: 1920x950)
   ========================================================================== */
@media (min-width: 1280px) {
    .hero {
        display: flex;
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
    }

    .hero-inner {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: clamp(40px, calc(100vw - 1250px), 130px);
        width: 100%;
        max-width: none;
        min-height: 100vh;
        margin: 0;
        /* 120px top/bottom keeps the card at the Figma y (133 at 950 tall)
           and reserves room below the hanging privacy link at any height */
        padding: 120px 20px;
    }

    .hero-left,
    .hero-right {
        display: flex;
        flex-direction: column;
        flex: none;
    }

    .hero-left {
        width: 670px;
        position: relative;
    }

    /* bird anchored to the left column (Figma: column x=375, bird x=-189,
       bird y=142 vs column y=133) so the head/eye-dot and address/tail
       relationships hold at every desktop width */
    .bird {
        left: -564px;
        top: 9px;
        width: 940px;
        height: 922px;
    }

    .bird img {
        width: 602px;
        height: 722px;
    }

    /* the card top-aligns with the logo (both y=133 in Figma); the privacy
       link hangs below the card without affecting the vertical centering */
    .hero-right {
        width: 505px;
        position: relative;
    }

    /* offsets inside the 670px left column, straight from Figma */
    .logo {
        width: 469px;
        max-width: none;
        margin: 0 0 112px 101px;
    }

    .tagline {
        margin-bottom: 0;
        font-size: 3.25rem; /* 52px */
    }

    .address {
        /* 221px ink gap + the 0.11em the tagline ink descends past its box */
        margin: 227px 0 0;
        width: 100%;
    }

    .address span {
        display: inline-block;
    }

    .address .sep {
        margin: 0 14px;
    }

    .card {
        max-width: none;
        min-height: 685px;
        margin: 0;
        padding: 95px 64px 86px;
    }

    .card-title {
        margin-bottom: 33px;
        font-size: 1.6875rem; /* 27px */
    }

    .card-stats {
        margin-bottom: 47px;
    }

    .card-description {
        max-width: 376px;
    }

    #card-response .msg.success {
        margin-top: 149px;
    }

    .privacy {
        position: absolute;
        top: calc(100% + 44px);
        left: 0;
        right: 0;
        margin: 0;
    }

    .whatsapp {
        right: 40px;
        bottom: 40px;
    }
}

/* replicate the Figma 1920 asymmetry: composition center is 67.5px right of
   the geometric center (left margin 375 vs right margin 240). Starts at
   1520px — the exact width where the columns + 175/40 padding fit — so the
   card is never squeezed against the right edge. */
@media (min-width: 1520px) {
    .hero-inner {
        padding: 120px 40px 120px 175px;
    }
}
