/* ========== BASE GLOBAL ========== */
/* Variáveis CSS, tipografia, container, botões e placeholders de mídia */

/* Tokens de design (cores, espaçamentos, tipografia) */
:root {
    --blue-900: #003A8D;
    --blue-800: #003A8D;
    --blue-700: #003A8D;
    --blue-200: #d6e2f5;
    --ink: #0f2230;
    --muted: #5b6b78;
    --bg: #ffffff;
    --card: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --radius: 14px;
    --container: 1600px;
    --container-padding-x: 24px;
    --container-padding-x-lg: 20px;
    --container-padding-x-md: 16px;
    --container-padding-x-sm: 16px;
    --header-bar-height: 60px;
    --section-space-y: clamp(48px, 5vw, 72px);
    --section-space-y-lg: clamp(56px, 6vw, 88px);
    --section-space-y-sm: clamp(40px, 8vw, 56px);
    --text-section: clamp(26px, 1.85vw, 34px);
    --text-section-sm: 24px;
    --text-section-xs: 20px;
}

/* Fonte Rubik (variable, normal + itálico) */
@font-face {
    font-family: "Rubik";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/rubik/Rubik/Rubik-VariableFont_wght.ttf")
        format("truetype");
}

@font-face {
    font-family: "Rubik";
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/rubik/Rubik/Rubik-Italic-VariableFont_wght.ttf")
        format("truetype");
}

/* Reset e layout base do body */
* {
    box-sizing: border-box;
}
html,
body {
    height: 100%;
}
html,
body {
    overflow-x: hidden;
}
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family:
        "Rubik",
        system-ui,
        -apple-system,
        Segoe UI,
        Roboto,
        Arial,
        sans-serif;
    color: var(--ink);
    background: #fff;
}
main {
    flex: 1 0 auto;
}
a {
    color: inherit;
    text-decoration: none;
}
img {
    max-width: 100%;
    display: block;
}

/* Container responsivo (padding adaptativo por breakpoint) */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding-left: var(--container-padding-x);
    padding-right: var(--container-padding-x);
}

@media (max-width: 1200px) {
    .container {
        padding-left: var(--container-padding-x-lg);
        padding-right: var(--container-padding-x-lg);
    }
}

@media (max-width: 980px) {
    .container {
        padding-left: var(--container-padding-x-md);
        padding-right: var(--container-padding-x-md);
    }
}

@media (max-width: 720px) {
    .container {
        padding-left: var(--container-padding-x-sm);
        padding-right: var(--container-padding-x-sm);
    }
}

/* Botões reutilizáveis (variantes primary, outline, ghost) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.2px;
    font-size: 13px;
    border: 1px solid transparent;
    cursor: pointer;
}
.btn--primary {
    background: var(--blue-800);
    color: #fff;
}
.btn--outline {
    background: #fff;
    border-color: rgba(0, 58, 141, 0.45);
    color: var(--blue-800);
}
.btn--ghost {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}
.btn--header {
    height: 36px;
    padding: 0 12px;
    font-size: 12px;
}
.btn--hero {
    height: 34px;
    padding: 0 14px;
    font-size: 12px;
    gap: 10px;
}
.btn--hero:after {
    content: "";
    width: 16px;
    height: 16px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.25);
    display: inline-block;
    position: relative;
}
.btn--hero:before {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    border-right: 2px solid #fff;
    border-top: 2px solid #fff;
    transform: rotate(45deg);
    right: 18px;
}

/* Botão flutuante do WhatsApp */
.float-btn {
    position: fixed;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 80;
}
.float-btn--whatsapp {
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}
.float-btn--whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
.float-btn--whatsapp:focus-visible {
    outline: 3px solid #075e54;
    outline-offset: 3px;
}
.float-btn--whatsapp img {
    width: 60px;
    height: 60px;
    max-width: none;
    border-radius: 50%;
}
