/* =========================================================
   FUNDO
========================================================= */

body {
    background:
        radial-gradient(
            ellipse at 50% -20%,
            rgba(255, 250, 232, 0.95),
            transparent 55%
        ),
        linear-gradient(
            135deg,
            #c9b18d 0%,
            #eadbc0 45%,
            #c5aa82 100%
        );
}

.page {
    min-height: 100vh;
    overflow: hidden;
}


/* =========================================================
   CABEÇALHO
========================================================= */

.site-header {
    width: min(1180px, 90%);
    margin: 0 auto;
    padding: 28px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid rgba(72, 49, 30, 0.18);
}

.logo {
    display: flex;
    align-items: center;
    gap: 13px;
}

.logo-mark {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(72, 49, 30, 0.35);
    border-radius: 50%;

    font-size: 21px;

    background: rgba(255, 249, 232, 0.38);
}

.logo-name {
    font-size: 27px;
    letter-spacing: 1px;
    font-weight: bold;
}

.logo-subtitle {
    display: block;
    margin-top: 3px;

    font-family: Arial, sans-serif;
    font-size: 8px;
    letter-spacing: 3px;

    opacity: 0.55;
}

.login-link {
    padding: 11px 20px;

    border: 1px solid rgba(72, 49, 30, 0.35);
    border-radius: 3px;

    font-size: 15px;

    background: rgba(255, 250, 238, 0.22);

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

.login-link:hover {
    background: rgba(255, 250, 238, 0.55);
    transform: translateY(-1px);
}


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

.hero {
    width: min(1180px, 90%);
    margin: 0 auto;

    min-height: 590px;

    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 70px;
}


/* =========================================================
   TEXTO
========================================================= */

.hero-content {
    padding: 50px 0;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 22px;

    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;

    opacity: 0.58;
}

.eyebrow::before {
    content: "";

    width: 35px;
    height: 1px;

    background: #60452e;
}

.hero-title {
    font-size: clamp(52px, 6vw, 82px);
    line-height: 0.94;
    font-weight: normal;
    letter-spacing: -2px;

    margin-bottom: 27px;
}

.hero-title em {
    font-style: italic;
}

.hero-description {
    max-width: 470px;

    font-size: 18px;
    line-height: 1.8;

    color: #5a4737;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;

    margin-top: 35px;
}

.btn {
    min-height: 50px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 22px;

    border-radius: 3px;

    font-size: 15px;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.btn-primary {
    color: #fffaf0;
    background: #69452e;

    box-shadow:
        0 7px 18px rgba(72, 46, 27, 0.18);
}

.btn-primary:hover {
    background: #573723;
    transform: translateY(-2px);

    box-shadow:
        0 10px 23px rgba(72, 46, 27, 0.25);
}

.btn-secondary {
    border: 1px solid rgba(72, 49, 30, 0.3);

    background: rgba(255, 249, 233, 0.28);
}

.btn-secondary:hover {
    background: rgba(255, 249, 233, 0.55);
    transform: translateY(-2px);
}


/* =========================================================
   ENVELOPE / CARTA
========================================================= */

.hero-mail {
    position: relative;

    min-height: 490px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.mail-shadow {
    position: absolute;

    width: 400px;
    max-width: 80%;

    height: 45px;

    bottom: 75px;

    background: rgba(55, 37, 23, 0.2);

    border-radius: 50%;

    filter: blur(18px);
}


/* papel atrás */

.letter-paper {
    position: absolute;

    width: 300px;
    height: 365px;

    padding: 45px 38px;

    background:
        repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent 29px,
            rgba(110, 82, 53, 0.08) 30px
        ),
        #f9f0dc;

    box-shadow:
        0 17px 30px rgba(66, 43, 25, 0.22);

    transform:
        translate(-48px, -35px)
        rotate(-7deg);

    z-index: 1;
}

.letter-paper::after {
    content: "";

    position: absolute;
    inset: 15px;

    border: 1px solid rgba(99, 71, 44, 0.15);
}

.letter-paper-title {
    font-size: 24px;
    font-style: italic;

    margin-bottom: 24px;
}

.letter-lines {
    position: relative;
    z-index: 2;
}

.letter-lines span {
    display: block;

    height: 1px;

    margin-bottom: 21px;

    background: rgba(93, 68, 43, 0.16);
}

.letter-signature {
    margin-top: 30px;

    text-align: right;

    font-size: 20px;
    font-style: italic;
}


/* envelope */

.envelope {
    position: relative;

    width: 430px;
    max-width: 90vw;

    aspect-ratio: 1.55;

    background: #d8b98d;

    box-shadow:
        0 25px 45px rgba(60, 39, 23, 0.27);

    transform: rotate(3deg);

    z-index: 3;

    overflow: hidden;
}

.envelope::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            32deg,
            transparent 49.5%,
            rgba(116, 78, 45, 0.3) 50%,
            transparent 50.7%
        ),
        linear-gradient(
            -32deg,
            transparent 49.5%,
            rgba(116, 78, 45, 0.3) 50%,
            transparent 50.7%
        );
}

.envelope-flap {
    position: absolute;

    top: -1px;
    left: 0;

    width: 100%;
    height: 58%;

    background: #e0c49c;

    clip-path: polygon(
        0 0,
        100% 0,
        50% 100%
    );

    z-index: 4;

    border-bottom: 1px solid rgba(93, 63, 37, 0.25);
}


/* selo */

.stamp {
    position: absolute;

    right: 26px;
    top: 25px;

    width: 65px;
    height: 76px;

    z-index: 6;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 4px;

    background: #eee0c5;

    border: 2px dashed #785438;

    transform: rotate(-4deg);

    color: #69452e;
}

.stamp-symbol {
    font-size: 25px;
}

.stamp-text {
    font-family: Arial, sans-serif;
    font-size: 7px;
    letter-spacing: 1px;
}


/* selo de cera */

.wax-seal {
    position: absolute;

    left: 50%;
    bottom: 18px;

    transform: translateX(-50%);

    width: 62px;
    height: 62px;

    border-radius: 50%;

    z-index: 7;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            circle at 35% 30%,
            #955b49,
            #642d25 70%
        );

    color: #d9b394;

    font-size: 24px;

    box-shadow:
        0 5px 10px rgba(40, 20, 15, 0.25);
}


/* =========================================================
   FRASE ABAIXO DA CARTA
========================================================= */

.mail-caption {
    position: absolute;

    bottom: 12px;

    width: 100%;

    text-align: center;

    font-size: 14px;
    font-style: italic;

    opacity: 0.55;
}


/* =========================================================
   FUNCIONALIDADES
========================================================= */

.features {
    width: min(1180px, 90%);
    margin: 0 auto;

    padding: 25px 0 70px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    border-top: 1px solid rgba(72, 49, 30, 0.15);
}

.feature {
    padding: 25px 30px;

    border-right: 1px solid rgba(72, 49, 30, 0.13);
}

.feature:last-child {
    border-right: none;
}

.feature-icon {
    font-size: 26px;

    margin-bottom: 15px;
}

.feature h2 {
    font-size: 20px;
    font-weight: normal;

    margin-bottom: 9px;
}

.feature p {
    max-width: 280px;

    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.65;

    color: #665342;
}


/* =========================================================
   RODAPÉ
========================================================= */

.site-footer {
    padding: 25px;

    text-align: center;

    font-family: Arial, sans-serif;
    font-size: 11px;

    letter-spacing: 1px;

    opacity: 0.5;
}


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

@media (max-width: 850px) {

    .site-header {
        width: 92%;
    }

    .hero {
        width: 92%;

        grid-template-columns: 1fr;

        gap: 10px;

        padding-top: 30px;
    }

    .hero-content {
        text-align: center;
        padding-bottom: 0;
    }

    .eyebrow {
        justify-content: center;
    }

    .hero-description {
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-mail {
        min-height: 430px;
    }

    .features {
        width: 92%;

        grid-template-columns: 1fr;

        padding-top: 15px;
    }

    .feature {
        border-right: none;
        border-bottom: 1px solid rgba(72, 49, 30, 0.13);
        padding: 25px 10px;
        text-align: center;
    }

    .feature:last-child {
        border-bottom: none;
    }

    .feature p {
        margin: auto;
    }
}


@media (max-width: 500px) {

    .site-header {
        padding: 20px 0;
    }

    .logo-name {
        font-size: 23px;
    }

    .logo-mark {
        width: 39px;
        height: 39px;
    }

    .login-link {
        padding: 9px 14px;
    }

    .hero-title {
        font-size: 53px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-mail {
        min-height: 360px;
    }

    .envelope {
        width: 340px;
    }

    .letter-paper {
        width: 240px;
        height: 300px;

        padding: 35px 27px;

        transform:
            translate(-35px, -28px)
            rotate(-7deg);
    }

    .stamp {
        width: 52px;
        height: 61px;

        right: 17px;
        top: 17px;
    }

    .wax-seal {
        width: 52px;
        height: 52px;
    }
}
