:root {
    --color-ink: #ffffff;
    --color-focus: #b8fff4;
    --button-shadow: rgba(0, 42, 58, 0.35);
    --hero-image: url("../img/hero-novos-caminhos.jpg");
    --header-height: 96px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: #06262f;
}

body {
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
    color: var(--color-ink);
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    display: flex;
    width: 100%;
    height: var(--header-height);
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0 0 100% 100%;
    background-color: #ffffff;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.2);
}

.site-brand {
    position: relative;
    display: block;
    width: 140px;
    height: 92px;
    overflow: hidden;
    justify-self: center;
}

.site-brand img {
    position: absolute;
    top: -25px;
    left: 0;
    display: block;
    width: 140px;
    max-width: none;
    height: auto;
}

.site-brand:focus-visible {
    outline: 3px solid #0c8f91;
    outline-offset: -5px;
}

.hero {
    position: relative;
    isolation: isolate;
    display: grid;
    min-height: 100vh;
    min-height: 100svh;
    place-items: center;
    padding: 36px 24px;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(3, 24, 44, 0.9), rgba(4, 63, 75, 0.76) 42%, rgba(13, 94, 69, 0.68)),
        linear-gradient(180deg, rgba(2, 20, 30, 0.38), rgba(3, 27, 35, 0.82)),
        var(--hero-image) center / cover no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 50% 28%, rgba(113, 239, 216, 0.26), transparent 34%),
        linear-gradient(90deg, rgba(1, 15, 26, 0.34), transparent 48%, rgba(2, 55, 45, 0.22));
}

.hero__content {
    width: min(100%, 1160px);
    min-width: 0;
    margin: 0 auto;
}

h1,
h4 {
    margin: 0 auto;
    letter-spacing: 0;
    text-wrap: balance;
    overflow-wrap: break-word;
}

h1 {
    max-width: 900px;
    font-size: 3.25rem;
    line-height: 1.28;
    font-weight: 800;
    text-shadow: 0 4px 26px rgba(0, 16, 24, 0.56);
}

.txt-bg {
    display: inline;
    padding: 0.08em 0.22em;
    background-color: #13b16d;
    color: #ffffff;
    font-size: 0.88em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

h4 {
    max-width: 780px;
    margin-top: 24px;
    font-size: 1.34rem;
    line-height: 1.5;
    font-weight: 500;
    text-shadow: 0 3px 18px rgba(0, 14, 24, 0.68);
}

.hero__actions {
    display: grid;
    width: min(100%, 500px);
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin: 38px auto 0;
}

.whatsapp-button {
    position: relative;
    display: inline-flex;
    width: 100%;
    min-width: 0;
    min-height: 60px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 42%),
        linear-gradient(135deg, rgba(0, 103, 180, 0.84), rgba(0, 210, 217, 0.75) 42%, rgba(19, 177, 109, 0.82));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.62),
        inset 0 -18px 24px rgba(2, 83, 81, 0.22),
        0 15px 34px var(--button-shadow);
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 750;
    line-height: 1.18;
    text-decoration: none;
    text-shadow: 0 1px 10px rgba(0, 28, 33, 0.42);
    transform: translateY(0);
    transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
    backdrop-filter: blur(16px) saturate(170%);
    -webkit-backdrop-filter: blur(16px) saturate(170%);
}

.whatsapp-button span {
    min-width: 0;
    overflow-wrap: break-word;
}

.whatsapp-button::before {
    content: "";
    position: absolute;
    top: 5px;
    right: 12px;
    left: 12px;
    height: 42%;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.08));
    opacity: 0.82;
    pointer-events: none;
}

.whatsapp-button::after {
    content: "";
    position: absolute;
    inset: -45% 28% 32% -18%;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    transform: rotate(-14deg);
    pointer-events: none;
}

.whatsapp-button > * {
    position: relative;
    z-index: 1;
}

.whatsapp-button__icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    fill: currentColor;
    filter: drop-shadow(0 1px 6px rgba(0, 33, 37, 0.38));
}

.whatsapp-button:hover {
    border-color: rgba(255, 255, 255, 0.72);
    filter: brightness(1.1) saturate(1.08);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        inset 0 -18px 26px rgba(2, 83, 81, 0.18),
        0 19px 42px rgba(0, 58, 72, 0.44);
}

.whatsapp-button:active {
    filter: brightness(0.98) saturate(1.02);
    transform: translateY(1px) scale(0.99);
}

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

@media (max-width: 1440px) {
    h1 {
        max-width: 860px;
        font-size: 2.65rem;
    }

    .hero__actions {
        width: 100%;
    }
}

@media (max-height: 820px) and (min-width: 681px) {
    :root {
        --header-height: 88px;
    }

    .site-brand {
        width: 130px;
        height: 84px;
    }

    .site-brand img {
        top: -23px;
        width: 130px;
    }

    .hero {
        padding: calc(var(--header-height) + 16px) 20px 24px;
    }
}

@media (max-width: 680px) {
    :root {
        --header-height: 84px;
    }

    .site-brand {
        width: 130px;
        height: 82px;
    }

    .site-brand img {
        top: -23px;
        width: 130px;
    }

    .hero {
        padding: 24px 16px;
        background-position: 58% center;
    }

    h1 {
        max-width: 560px;
        font-size: 1.75rem;
        line-height: 1.12;
    }

    h4 {
        margin-top: 18px;
        font-size: 1.02rem;
        line-height: 1.48;
    }

    .hero__actions {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 26px;
    }

    .whatsapp-button {
        min-height: 54px;
        padding: 12px 16px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    h1,
    h4 {
        max-width: 320px;
    }

    h1 {
        font-size: 1.55rem;
    }

    h4 {
        font-size: 0.9rem;
    }
}

@media (max-width: 380px) {
    .site-brand {
        width: 120px;
    }

    .site-brand img {
        top: -21px;
        width: 120px;
    }

    .hero {
        padding: 20px 12px;
    }

    h1,
    h4 {
        max-width: 292px;
    }

    h1 {
        font-size: 1.45rem;
    }

    h4 {
        font-size: 0.94rem;
    }

    .whatsapp-button {
        min-height: 50px;
        font-size: 0.9rem;
    }
}

@media (max-height: 620px) and (min-width: 681px) {
    .hero {
        padding: calc(var(--header-height) + 12px) 20px 20px;
    }

    h1 {
        font-size: 2.3rem;
    }

    h4 {
        margin-top: 16px;
        font-size: 1.05rem;
    }

    .hero__actions {
        margin-top: 24px;
    }

    .whatsapp-button {
        min-height: 52px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
