:root {
    --page-frame: 10px;
    --header-height: 158px;
    --page-gutter: clamp(18px, 5vw, 48px);
    --blue: #0a3c6e;
    --green: #81b34f;
    --teal: #23a099;
    --gold: #f1b239;
    --aqua-light: #57c9c3;
    --aqua-dark: #177b78;
}

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

html {
    color-scheme: light;
    background: #ffffff;
}

body {
    margin: 0;
    min-width: 280px;
    padding: var(--page-frame);
    overflow-x: hidden;
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
}

.site-header {
    position: absolute;
    z-index: 10;
    top: var(--page-frame);
    right: var(--page-frame);
    left: var(--page-frame);
    height: var(--header-height);
    background: transparent;
    pointer-events: none;
}

.logo-frame {
    position: absolute;
    top: calc(var(--page-frame) * -1);
    left: 50%;
    display: flex;
    width: min(calc(100% - 32px), 238px);
    height: 158px;
    align-items: center;
    justify-content: center;
    padding: 9px 30px 15px;
    overflow: hidden;
    border: 1px solid rgb(35 160 153 / 22%);
    border-top: 0;
    border-radius: 0 0 28px 28px;
    background: #ffffff;
    box-shadow:
        0 8px 0 rgb(35 160 153 / 18%),
        0 16px 30px rgb(10 60 110 / 24%);
    transform: translateX(-50%);
}

.logo-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.hero {
    display: flex;
    min-height: calc(100vh - (var(--page-frame) * 2));
    min-height: calc(100svh - (var(--page-frame) * 2));
    align-items: center;
    justify-content: center;
    padding:
        calc(var(--header-height) + clamp(34px, 7vh, 78px))
        var(--page-gutter)
        clamp(38px, 7vh, 76px);
    overflow: hidden;
    border-radius: clamp(20px, 2.5vw, 30px);
    background-color: var(--blue);
    background-image:
        linear-gradient(
            112deg,
            rgb(10 60 110 / 84%) 0%,
            rgb(10 60 110 / 66%) 52%,
            rgb(35 160 153 / 48%) 100%
        ),
        url("../assets/img/bg.jpg?1");
    background-position: center;
    background-size: cover;
}

.hero-content {
    display: flex;
    width: min(100%, 960px);
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.hero-title {
    max-width: 900px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(2rem, 4.6vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0;
    text-shadow: 0 3px 16px rgb(4 28 50 / 42%);
}

.hero-subtitle {
    max-width: 760px;
    margin: clamp(14px, 2.5vh, 24px) 0 0;
    color: rgb(255 255 255 / 92%);
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: 0;
    text-shadow: 0 2px 10px rgb(4 28 50 / 38%);
}

.whatsapp-actions {
    display: flex;
    width: min(100%, 470px);
    flex-direction: column;
    gap: clamp(14px, 2vh, 18px);
    margin-top: clamp(24px, 4vh, 38px);
}

.whatsapp-button {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 42%);
    border-radius: 999px;
    background:
        linear-gradient(
            135deg,
            var(--aqua-light) 0%,
            var(--teal) 52%,
            var(--aqua-dark) 100%
        );
    box-shadow:
        0 8px 20px rgb(3 48 70 / 24%),
        inset 0 1px 0 rgb(255 255 255 / 50%),
        inset 0 -1px 0 rgb(10 60 110 / 18%);
    color: #ffffff;
    font-size: clamp(0.94rem, 1.7vw, 1.03rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
    text-align: center;
    text-decoration: none;
    text-shadow: 0 1px 2px rgb(10 60 110 / 24%);
    transform: translateY(0);
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        filter 160ms ease;
}

.whatsapp-button__icon {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    fill: currentColor;
}

.whatsapp-button::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 46%;
    background: linear-gradient(
        180deg,
        rgb(255 255 255 / 18%),
        rgb(255 255 255 / 0%)
    );
    content: "";
    pointer-events: none;
}

.whatsapp-button:hover {
    box-shadow:
        0 11px 25px rgb(3 48 70 / 29%),
        inset 0 1px 0 rgb(255 255 255 / 58%),
        inset 0 -1px 0 rgb(10 60 110 / 16%);
    filter: saturate(1.02) brightness(1.04);
    transform: translateY(-2px);
}

.whatsapp-button:active {
    box-shadow:
        0 4px 10px rgb(3 48 70 / 20%),
        inset 0 2px 5px rgb(10 60 110 / 16%);
    transform: translateY(1px);
}

.whatsapp-button:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
}

@media (max-width: 1440px) {
    .hero-title {
        font-size: clamp(1.4rem, 3.22vw, 2.63rem);
    }
}

@media (max-width: 600px) {
    :root {
        --header-height: 132px;
    }

    .hero-title {
        font-size: clamp(1.2rem, 2.76vw, 2.25rem);
    }

    .logo-frame {
        width: min(calc(100% - 32px), 206px);
        height: 132px;
        padding: 8px 26px 13px;
        border-radius: 0 0 24px 24px;
        box-shadow:
            0 6px 0 rgb(35 160 153 / 16%),
            0 12px 24px rgb(10 60 110 / 22%);
    }

    .logo-frame img {
        height: 100%;
    }

    .hero {
        padding-top: calc(var(--header-height) + 36px);
        padding-bottom: 38px;
    }

    .whatsapp-button {
        min-height: 54px;
        padding-inline: 16px;
        border-radius: 999px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-button {
        transition: none;
    }
}
