:root {
    --primary-color: #236a73;
    --primary-dark: #173f48;
    --secondary-color: #e94b8b;
    --accent-color: #f2b84b;
    --background-color: #faf9f5;
    --surface-color: #ffffff;
    --soft-color: #e9f4f2;
    --text-color: #1f2933;
    --muted-color: #5f6c72;
    --border-color: #d8e2df;
    --footer-bg-color: #1f2a32;
    --footer-text-color: #ffffff;
    --shadow: 0 18px 42px rgba(31, 41, 51, 0.1);
    --font-family: "Lato", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    min-width: 320px;
    margin: 0;
    color: var(--text-color);
    background: var(--background-color);
    font-family: var(--font-family);
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

.site-header {
    background-image: linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)), url("img/bg-header-3d.svg");
    background-size: 520px;
    background-position: center;
    text-align: center;
    padding: 14px 20px 18px;
    font-family: "Raleway", var(--font-family);
}

.logo {
    display: inline-flex;
}

.logo img {
    width: min(390px, 82vw);
    height: auto;
}

.site-header p {
    max-width: 840px;
    margin: 8px auto 0;
    color: var(--primary-dark);
    font-size: clamp(1rem, 2vw, 1.22rem);
    font-weight: 800;
}

nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

nav ul li a {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    color: var(--text-color);
    font-weight: 900;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

nav ul li a:hover,
nav ul li a.active {
    background: var(--soft-color);
    color: var(--primary-color);
}

.dropdown-content {
    display: none;
}

.menu-icon {
    display: none;
    width: 48px;
    height: 48px;
    margin: 0 auto;
    border: 0;
    background: transparent;
    color: var(--primary-color);
    font-size: 1.35rem;
    cursor: pointer;
}

main {
    min-height: 58vh;
}

h1,
h2,
h3 {
    font-family: "Raleway", var(--font-family);
    letter-spacing: 0;
}

.eyebrow {
    display: inline-flex;
    color: var(--secondary-color);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.page-heading {
    max-width: 780px;
    margin-bottom: 28px;
}

.page-heading h1 {
    margin: 10px 0 12px;
    color: var(--primary-dark);
    font-size: clamp(2.1rem, 5vw, 3.7rem);
    line-height: 1.04;
}

.page-heading p {
    color: var(--muted-color);
    font-size: 1.08rem;
    line-height: 1.65;
}

.btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font: inherit;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.btn.primary {
    background: var(--primary-color);
    color: #ffffff;
}

.btn.primary:hover {
    background: var(--primary-dark);
}

.btn.secondary {
    background: #ffffff;
    color: var(--primary-color);
    border-color: var(--border-color);
}

.btn.secondary:hover {
    border-color: var(--primary-color);
}

.text-link {
    color: var(--primary-color);
    font-weight: 900;
    text-decoration: none;
}

.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 20;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 999px;
    background: #25d366;
    color: #ffffff;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 16px 34px rgba(31, 41, 51, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 42px rgba(31, 41, 51, 0.28);
}

.whatsapp-float i {
    font-size: 1.45rem;
}

input,
textarea,
select {
    width: 100%;
    min-height: 44px;
    padding: 11px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #ffffff;
    color: var(--text-color);
    font: inherit;
    font-size: 16px;
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    outline: 3px solid rgba(35, 106, 115, 0.16);
    border-color: var(--primary-color);
}

footer {
    margin-top: 44px;
    padding: 28px 20px;
    background: var(--footer-bg-color);
    color: var(--footer-text-color);
    text-align: center;
}

footer p {
    margin: 6px 0;
}

footer .redes-sociais {
    margin-top: 12px;
}

footer .redes-sociais a {
    color: var(--footer-text-color);
    margin: 0 10px;
    font-size: 1.35rem;
    transition: color 0.2s ease;
}

footer .redes-sociais a:hover {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .site-header {
        padding: 12px 16px 14px;
        background-size: 360px;
    }

    .logo img {
        width: min(300px, 78vw);
    }

    .site-header p {
        font-size: 0.96rem;
        line-height: 1.35;
    }

    nav {
        top: 0;
        padding: 0;
        box-shadow: 0 10px 24px rgba(31, 41, 51, 0.08);
    }

    .menu-icon {
        min-height: 52px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: min(calc(100% - 24px), 360px);
        max-width: 360px;
        margin: 8px auto;
        border: 1px solid rgba(35, 106, 115, 0.18);
        border-radius: 8px;
        background: var(--primary-color);
        color: #ffffff;
        font: inherit;
        font-weight: 900;
        box-shadow: 0 10px 22px rgba(35, 106, 115, 0.22);
        transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    }

    .menu-icon::after {
        content: "Menu";
    }

    .menu-icon[aria-expanded="true"] {
        background: var(--primary-dark);
        box-shadow: 0 14px 28px rgba(23, 63, 72, 0.26);
    }

    .menu-icon[aria-expanded="true"]::after {
        content: "Fechar";
    }

    .menu-icon:active {
        transform: scale(0.98);
    }

    .menu-icon i {
        width: 20px;
        text-align: center;
    }

    .menu {
        width: 100%;
        max-height: 0;
        display: grid;
        gap: 8px;
        overflow: hidden;
        padding: 0 12px;
        border-top: 1px solid transparent;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-6px);
        transition: max-height 0.25s ease, opacity 0.2s ease, padding 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    }

    .menu.active {
        max-height: 420px;
        padding: 4px 12px 12px;
        border-top-color: var(--border-color);
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .menu li {
        width: 100%;
    }

    nav ul li a {
        min-height: 52px;
        justify-content: center;
        padding: 13px 16px;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        background: #ffffff;
        box-shadow: 0 8px 18px rgba(31, 41, 51, 0.05);
    }

    nav ul li a i {
        width: 20px;
        text-align: center;
    }

    nav ul li a.active {
        border-color: rgba(35, 106, 115, 0.28);
    }

    .page-heading {
        margin-bottom: 22px;
    }

    .page-heading h1 {
        font-size: clamp(2rem, 10vw, 2.7rem);
        line-height: 1.08;
    }

    .page-heading p {
        font-size: 1rem;
        line-height: 1.55;
    }

    .btn {
        min-height: 48px;
        padding: 13px 16px;
    }

    .whatsapp-float {
        right: max(14px, env(safe-area-inset-right));
        bottom: max(14px, env(safe-area-inset-bottom));
        width: 54px;
        justify-content: center;
        padding: 0;
    }

    .whatsapp-float span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    footer {
        margin-top: 34px;
        padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 430px) {
    .site-header p {
        font-size: 0.9rem;
    }

    nav ul li a {
        padding: 13px 14px;
    }

    .page-heading h1 {
        font-size: clamp(1.85rem, 9.5vw, 2.35rem);
    }

    .page-heading p {
        font-size: 0.98rem;
    }
}
