/* ============================================================
   HEADER-GLASS.CSS
   Forte Isolantes · Supreme Glass 2025
   Desenvolvido por Djalma Junior
============================================================ */

/* Variáveis */
:root {
    --glass-bg: rgba(255,255,255,0.08);
    --glass-bg-solid: rgba(255,255,255,0.45);
    --glass-border: rgba(255,255,255,0.35);
    --glass-shadow: 0 8px 22px rgba(0,0,0,0.18);
}

/* Base */
.header-glass {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    transition: 0.35s ease;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
}

/* Topo — transparente */
.header-top {
    background: var(--glass-bg);
    border-color: rgba(255,255,255,0.10);
}

/* Ao rolar — glass branco */
.header-scroll {
    background: var(--glass-bg-solid);
    border-color: var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Logo */
.header-logo {
    height: 58px;
    transition: 0.25s ease;
}

.header-scroll .header-logo {
    height: 52px;
}

/* Links */
.nav-link {
    color: #ffffff !important;
    font-weight: 600;
    margin: 0 8px;
    padding: 10px 18px !important;
    transition: 0.25s ease;
    border-radius: 12px;
}

.nav-link:hover {
    background: rgba(255,255,255,0.16);
    color: #bde0ff !important;
}

/* Links em scroll */
.header-scroll .nav-link {
    color: #1A2B47 !important;
}

.header-scroll .nav-link:hover {
    background: rgba(0,87,217,0.10);
    color: #0057D9 !important;
}

/* Botão orçamento */
.btn-orc {
    background: #0057D9;
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 14px;
    font-weight: 600;
    box-shadow: 0 4px 18px rgba(0,87,217,0.35);
    transition: 0.3s ease;
}

.btn-orc:hover {
    background: #0047b3;
    box-shadow: 0 6px 24px rgba(0,87,217,0.45);
    transform: translateY(-2px);
}

/* Mobile */
.navbar-toggler {
    background: rgba(255,255,255,0.25);
    border: none;
}

.navbar-toggler-icon {
    filter: invert(1);
}

/* ============================================================
   CORREÇÃO ESPECIAL PARA O INDEX (FUNDO CLARO DO CARROSSEL)
   — Ajuste criado exclusivamente para a página inicial —
============================================================ */

body.index-page #inicio {
    position: relative;
    overflow: hidden;
}

body.index-page #inicio::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.48),
        rgba(0,0,0,0.08)
    );
    z-index: 2;
}

body.index-page #inicio .carousel-inner,
body.index-page #inicio .carousel-item,
body.index-page #inicio .carousel-item img {
    position: relative;
    z-index: 1;
}

/* BOTÃO WHATSAPP NO HEADER */
.btn-whats-header {
    background: #25D366 !important;
    color: #fff !important;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 18px rgba(37,211,102,0.40);
    transition: 0.3s ease;
}

.btn-whats-header:hover {
    background: #1ebe57 !important;
    box-shadow: 0 6px 24px rgba(37,211,102,0.55);
    transform: translateY(-2px);
}

.header-scroll .btn-whats-header {
    color: #fff !important;
}

/* ==========================================================
   AUTO HIDE SUPREME GLASS DJW — 2025
   Desenvolvido por Djalma Junior
========================================================== */

.header-glass {
    transition: top 0.45s ease, background 0.35s ease, padding 0.35s ease;
}

/* Quando esconder */
.header-hidden {
    top: -110px !important;
    opacity: 0;
    pointer-events: none;
}

/* Quando mostrar */
.header-visible {
    top: 0 !important;
    opacity: 1;
    pointer-events: all;
}

/* ================================
   HEADER INTELIGENTE DJW 2025
================================ */

.header-transparent {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    transition: 0.35s ease;
}

.header-solid {
    background: rgba(255, 255, 255, 0.90) !important;
    border-bottom: 1px solid rgba(0,0,0,0.10);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.12);
}

.header-solid .nav-link {
    color: #1A2B47 !important;
}

.header-solid .nav-link:hover {
    background: rgba(0,87,217,0.10);
    color: #0057D9 !important;
}

.header-solid .btn-orc {
    background: #0057D9 !important;
}
