/* ============================================================
   SERRALHARIA POQUINHAS — base.css
   Reset · Variáveis · Tipografia · Utilitários · Botões
   ============================================================ */

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

:root {
    --red: #c8191a;
    --red-dark: #a01213;
    --red-bg: #fdf0f0;
    --black: #111;
    --gray-800: #2a2a2a;
    --gray-600: #4a4a4a;
    --gray-400: #7a7777;
    --gray-200: #ccc;
    --gray-100: #ebebeb;
    --gray-50: #f7f5f2;
    --white: #fff;
    --border: #e0dcd8;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --radius: 2px;
    --radius-lg: 4px;
    --ease: 0.22s ease;
}

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

body {
    background: var(--white);
    color: var(--black);
    overflow-x: hidden;
    max-width: 100vw;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

img {
    max-width: 100%;
    display: block;
}

input,
select,
textarea,
button {
    font-family: var(--font);
}

address {
    font-style: normal;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

/* ---- Scroll progress bar ---- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: var(--red);
    z-index: 9999;
    width: 0%;
    transition: width 0.08s linear;
    pointer-events: none;
}

/* ---- Ripple ---- */
@keyframes sp-ripple {
    to {
        transform: scale(60);
        opacity: 0;
    }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {

    .reveal,
    .reveal.visible {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .scroll-progress {
        display: none;
    }
}

/* ---- ICONS ---- */
.icon-xs {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.icon-sm {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.icon-md {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.icon-lg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.red {
    color: var(--red);
}

svg,
i[data-lucide] {
    display: inline-block;
    vertical-align: middle;
}

/* ---- REVEAL ---- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
    transition-delay: var(--delay, 0ms);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- SECTIONS ---- */
.section {
    padding: 5.5rem 0;
}

.section-alt {
    background: var(--gray-50);
}

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    color: var(--black);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.section-desc {
    font-size: 0.95rem;
    color: var(--gray-400);
    line-height: 1.75;
    max-width: 560px;
}

.section-header {
    margin-bottom: 2.5rem;
}

/* ---- BUTTONS ---- */
.btn-red {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--red);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.85rem 1.8rem;
    border-radius: 0;
    border: 2px solid var(--red);
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-red:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
}

.btn-red.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: transparent;
    color: var(--black);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.85rem 1.8rem;
    border-radius: 0;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-outline:hover {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.btn-outline-red {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: transparent;
    color: var(--red);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.85rem 1.8rem;
    border-radius: 0;
    border: 2px solid var(--red);
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-outline-red:hover {
    background: var(--red);
    color: var(--white);
}

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--white);
    color: var(--red);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.85rem 1.8rem;
    border-radius: 0;
    border: 2px solid var(--white);
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-white:hover {
    background: transparent;
    color: var(--white);
}

.btn-white-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: transparent;
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.85rem 1.8rem;
    border-radius: 0;
    border: 2px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-white-outline:hover {
    border-color: var(--white);
}

.btn-inline-flex {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1.75rem;
}

/* ---- WHATSAPP FLOAT ---- */
.wa-float {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    z-index: 999;
    width: 54px;
    height: 54px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.5);
    transition: transform var(--ease), box-shadow var(--ease);
}

.wa-float svg {
    display: block;
    flex-shrink: 0;
}

.wa-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 22px rgba(37, 211, 102, 0.65);
}
