html {
    scroll-behavior: smooth;
}

:root {
    --brand: #FE0000;
    /* vermelho exato da logo */
    --brand-dark: #C80000;
    /* versão escura para hover */
    --brand-light: rgba(254, 0, 0, .08);
    --accent: #1E3A8A;
    --accent-light: rgba(30, 58, 138, .08);
    --ink: #111827;
    --muted: #6B7280;
    --soft: #F6F7FB;
    --border: #E5E7EB;
    --shadow: 0 14px 40px rgba(17, 24, 39, .08);
}

.bg-soft {
    background: var(--soft) !important;
}

/* ═══ TOPBAR ═══ */
.topbar {
    background: var(--ink);
    color: rgba(255, 255, 255, .85);
}

.topbar a {
    color: rgba(255, 255, 255, .9) !important;
    transition: color .2s;
}

.topbar a:hover {
    color: #fff !important;
}

.topbar .text-muted,
.topbar span.text-muted {
    color: rgba(255, 255, 255, .55) !important;
}

.topbar .d-flex.flex-wrap.gap-3 {
    color: rgba(255, 255, 255, .8);
}

/* ═══ LOGO ═══ */
.brand-logo {
    height: 44px;
    width: auto;
    max-height: 44px;
    max-width: 100%;
    object-fit: contain;
    filter: none;
    opacity: 1;
    transition: .2s ease;
}

.site-logo {
    height: 58px;
    width: auto;
    filter: none !important;
    mix-blend-mode: normal !important;
    opacity: 1 !important;
    transition: .2s ease;
}

@media (min-width: 992px) {
    .site-logo {
        height: 72px;
    }
}

/* ═══ NAVBAR — fundo vermelho da marca ═══ */
.navbar {
    padding-top: .6rem;
    padding-bottom: .6rem;
    background: var(--brand) !important;
    box-shadow: 0 2px 12px rgba(220, 38, 38, .25);
}

.navbar .nav-link {
    font-weight: 600;
    font-size: .88rem;
    color: rgba(255, 255, 255, .92);
    transition: color .2s;
    position: relative;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #fff;
}

.navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    border-radius: 999px;
    background: #fff;
}

/* ícone do menu mobile branco */
.navbar-toggler {
    border-color: rgba(255, 255, 255, .4);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 .15rem rgba(255, 255, 255, .25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255,255,255,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* botões na navbar quando fundo é vermelho */
.navbar .btn-outline-brand {
    --bs-btn-color: #fff;
    --bs-btn-border-color: rgba(255, 255, 255, .5);
    --bs-btn-hover-bg: #fff;
    --bs-btn-hover-border-color: #fff;
    --bs-btn-hover-color: var(--brand-dark);
}

.navbar .btn-brand {
    --bs-btn-bg: #fff;
    --bs-btn-border-color: #fff;
    --bs-btn-color: var(--brand-dark);
    --bs-btn-hover-bg: #111827;
    --bs-btn-hover-border-color: #111827;
    --bs-btn-hover-color: #fff;
}

.navbar .btn-brand:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
}

/* ═══ BUTTONS ═══ */
.btn-brand {
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: var(--brand-dark);
    --bs-btn-hover-border-color: var(--brand-dark);
    --bs-btn-hover-color: #fff;
    --bs-btn-focus-shadow-rgb: 220, 38, 38;
    font-weight: 700;
    border-radius: 999px;
    transition: all .2s ease;
}

.btn-brand:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, .25);
}

.btn-outline-brand {
    --bs-btn-color: var(--ink);
    --bs-btn-border-color: rgba(220, 38, 38, .3);
    --bs-btn-hover-bg: rgba(220, 38, 38, .08);
    --bs-btn-hover-border-color: rgba(220, 38, 38, .5);
    --bs-btn-hover-color: var(--brand-dark);
    border-radius: 999px;
    font-weight: 600;
    transition: all .2s ease;
}

.btn-whatsapp {
    --bs-btn-bg: #25D366;
    --bs-btn-border-color: #25D366;
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: #1fba58;
    --bs-btn-hover-border-color: #1fba58;
    --bs-btn-hover-color: #fff;
    border-radius: 999px;
    font-weight: 700;
}

.btn-accent {
    --bs-btn-bg: var(--accent);
    --bs-btn-border-color: var(--accent);
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: #1e3070;
    --bs-btn-hover-border-color: #1e3070;
    --bs-btn-hover-color: #fff;
    font-weight: 700;
    border-radius: 999px;
}

/* ═══ HERO — overlay MAIS TRANSPARENTE ═══ */
.hero-light {
    min-height: 72vh;
    display: grid;
    place-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
    filter: saturate(1.05) contrast(1.05);
}

.hero-overlay-light {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 520px at 8% 20%, rgba(255, 255, 255, .78), rgba(255, 255, 255, .35)),
        linear-gradient(90deg, rgba(246, 247, 251, .80), rgba(246, 247, 251, .25));
}

@media (max-width: 991px) {
    .hero-light {
        min-height: auto;
    }

    .hero-overlay-light {
        background: linear-gradient(180deg, rgba(246, 247, 251, .88), rgba(246, 247, 251, .65));
    }
}

/* ═══ CARDS ═══ */
.shadow-soft {
    box-shadow: var(--shadow) !important;
}

.card-soft {
    background: #fff;
    border: 1px solid var(--border);
}

/* ═══ BADGES / CHIPS ═══ */
.badge-soft {
    background: rgba(220, 38, 38, .10);
    color: var(--brand-dark);
    border: 1px solid rgba(220, 38, 38, .20);
    font-weight: 600;
}

.chip {
    font-size: .75rem;
    padding: .35rem .6rem;
    border-radius: 999px;
    background: rgba(17, 24, 39, .06);
    color: var(--ink);
    border: 1px solid rgba(17, 24, 39, .10);
}

.chip-soft {
    font-size: .8rem;
    padding: .35rem .65rem;
    border-radius: 999px;
    background: rgba(220, 38, 38, .08);
    color: var(--ink);
    border: 1px solid rgba(220, 38, 38, .18);
}

.chip-accent {
    font-size: .8rem;
    padding: .35rem .65rem;
    border-radius: 999px;
    background: var(--accent-light);
    color: var(--accent);
    border: 1px solid rgba(30, 58, 138, .18);
    font-weight: 600;
}

/* ═══ TILES ═══ */
.feature-tile {
    padding: 16px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 10px 26px rgba(17, 24, 39, .05);
    transition: transform .2s ease, box-shadow .2s ease;
}

.feature-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(17, 24, 39, .10);
}

.feature-tile .bi {
    color: var(--brand);
}

.pill {
    padding: 14px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--ink);
    box-shadow: 0 10px 26px rgba(17, 24, 39, .05);
}

.pill .bi {
    color: var(--brand);
}

/* ═══ CATEGORY / PRODUCT CARDS ═══ */
.category-card img {
    height: 210px;
    object-fit: cover;
}

.category-card {
    transition: transform .25s ease, box-shadow .25s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(17, 24, 39, .12);
}

.product-card {
    transition: transform .25s ease, box-shadow .25s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(17, 24, 39, .12);
}

/* ═══ BRAND TILES — LOGOS COLORIDAS ═══ */
.brand-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 96px;
    padding: 14px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, .06);
    transition: .2s ease;
    text-decoration: none;
}

.brand-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .10);
}

/* ═══ METAL WORK ═══ */
.metalwork-highlight {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.metalwork-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), #EF4444, var(--brand));
}

.metalwork-highlight .mw-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .9rem;
    border-radius: 999px;
    background: rgba(220, 38, 38, .15);
    border: 1px solid rgba(220, 38, 38, .3);
    color: #FCA5A5;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.metalwork-highlight h3 {
    color: #fff;
    font-weight: 800;
}

.metalwork-highlight p {
    color: rgba(255, 255, 255, .7);
}

.metalwork-highlight .btn-mw {
    background: #fff;
    color: var(--ink);
    font-weight: 700;
    border-radius: 999px;
    border: none;
    padding: .6rem 1.5rem;
    transition: all .2s ease;
}

.metalwork-highlight .btn-mw:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
}

.metalwork-highlight .btn-mw-outline {
    background: transparent;
    color: #fff;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .25);
    padding: .6rem 1.5rem;
    transition: all .2s ease;
    text-decoration: none;
}

.metalwork-highlight .btn-mw-outline:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .4);
    color: #fff;
}

/* ═══ CTA ═══ */
.cta-soft {
    background: rgba(220, 38, 38, .06);
    border: 1px solid rgba(220, 38, 38, .14);
    border-radius: 24px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* ═══ WHATSAPP FLOAT ═══ */
.whatsapp-float {
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: 60px;
    height: 60px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #25D366;
    color: #fff;
    font-size: 28px;
    box-shadow: 0 12px 30px rgba(17, 24, 39, .18);
    z-index: 1030;
    text-decoration: none;
    transition: .2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.05);
    color: #fff;
}

@keyframes pulse-wa {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, .7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float {
    animation: pulse-wa 2s infinite;
}

#brandsCarousel .carousel-control-prev,
#brandsCarousel .carousel-control-next {
    width: 42px;
}

/* ═══ STATS BAR ═══ */
.stats-bar {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
}

.stats-bar .stat-item {
    text-align: center;
    padding: 1rem;
}

.stats-bar .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}

.stats-bar .stat-label {
    font-size: .78rem;
    color: rgba(255, 255, 255, .8);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ═══ HELPERS ═══ */
.accent-stripe {
    width: 60px;
    height: 4px;
    background: var(--brand);
    border-radius: 999px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--brand);
    margin-bottom: .5rem;
}

/* ═══ FOOTER ═══ */
.footer-dark {
    background: #0F172A;
    color: rgba(255, 255, 255, .7);
}

.footer-dark a {
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
    transition: color .2s;
}

.footer-dark a:hover {
    color: #fff;
}

.footer-dark .footer-logo {
    height: 48px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: .9;
}

.footer-dark hr {
    border-color: rgba(255, 255, 255, .1);
}

/* ═══ FORM ═══ */
.form-control:focus,
.form-select:focus {
    border-color: rgba(220, 38, 38, .4);
    box-shadow: 0 0 0 .25rem rgba(220, 38, 38, .12);
}

/* ═══ QUOTE CARD ═══ */
.quote-card {
    position: relative;
    overflow: hidden;
}

.quote-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
}

/* ═══════════════════════════════════════
   MODAL SETORES ATENDIDOS
   ═══════════════════════════════════════ */
.modal-setor .modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
}

.modal-setor .modal-header {
    background: var(--ink);
    border: none;
    padding: 1.2rem 1.5rem;
}

.modal-setor .modal-title {
    color: #fff;
    font-weight: 700;
}

.modal-setor .btn-close {
    filter: brightness(0) invert(1);
}

.modal-setor .modal-body {
    padding: 1.5rem;
}

.modal-setor .setor-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.modal-setor .setor-caption {
    font-size: .78rem;
    color: var(--muted);
    margin-top: .35rem;
    text-align: center;
}

/* ═══ Product card — imagem ajustada sem margens ═══ */
.product-card .ratio.ratio-1x1 {
    --bs-aspect-ratio: 65%;
    /* era 100% (1:1), agora mais achatado */
}

.product-card .ratio img {
    object-fit: contain !important;
    background: #fff;
    padding: 0;
}

.product-card .card-body {
    display: flex;
    flex-direction: column;
}

.product-card .card-body>p {
    flex-grow: 1;
}