/* ==========================================================================
   Global — Reset, base styles, utilities
   ========================================================================== */

/* @font-face — Fontes locais */
@font-face {
    font-family: 'Helvetica Neue';
    src: url('../fonts/HelveticaNeue-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Raleway';
    src: url('../fonts/Raleway-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Barlow Condensed';
    src: url('../fonts/BarlowCondensed-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    /* Tela-raiz escura: o overscroll (e a área de safe-area no mobile) combina
       com o top-bar e o footer (ambos --color-dark), evitando a faixa branca no
       fim da página. O body (#FAFAFA) cobre todo o conteúdo, então o claro das
       seções não muda. */
    background-color: var(--color-dark);
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.5;
    color: var(--color-text-dark);
    background-color: var(--color-bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a,
button,
[role="button"] {
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* Hero scroll button (shared across all pages) */
.hero__scroll {
    position: absolute;
    bottom: var(--gap-card);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    width: var(--scroll-btn);
    height: var(--scroll-btn);
    padding: clamp(6px, 0.42vw, 8px);
    background: var(--scroll-btn-bg);
    border: var(--scroll-btn-border);
    backdrop-filter: var(--scroll-btn-blur);
    -webkit-backdrop-filter: var(--scroll-btn-blur);
    border-radius: 100px;
    color: var(--color-white);
    flex-shrink: 0;
    transition: background var(--transition-fast);
    z-index: 3;
    text-decoration: none;
}

.hero__scroll:hover {
    background: rgba(255, 255, 255, 0.35);
}

.hero__scroll-arrow {
    animation: scrollPulse 2s ease-in-out infinite;
}

.hero__scroll-arrow--bottom {
    animation-delay: 0.3s;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.15; }
}

/* Utilities */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Botão flutuante do WhatsApp (todas as páginas) */
.whatsapp-float {
    position: fixed;
    right: clamp(16px, 1.6vw, 28px);
    bottom: clamp(16px, 1.6vw, 28px);
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(52px, 4vw, 60px);
    height: clamp(52px, 4vw, 60px);
    border-radius: 50%;
    background: #25D366;            /* verde WhatsApp */
    color: #FFFFFF;                /* logo branco */
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.whatsapp-float:hover {
    background: #1EBE5B;            /* verde um pouco mais escuro */
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.whatsapp-float svg {
    width: clamp(30px, 2.4vw, 36px);
    height: clamp(30px, 2.4vw, 36px);
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-float { transition: background var(--transition-fast); }
    .whatsapp-float:hover { transform: none; }
}
