/* ============================================================
   PORTAL DO VIDRO - CSS PRINCIPAL (style.css)
   Desenvolvido para: Portal do Vidro
   Arquiteto Front-end: Carlos Eduardo Baraldi
   ============================================================ */

/* ============================================================
   VARIÁVEIS DO TEMA (CSS CUSTOM PROPERTIES)
   ============================================================ */
:root {
    /* Paleta principal */
    --primary: #0A1A2F;          /* Azul aço (cor principal) */
    --primary-light: #123456;
    --secondary: #E5EAF0;        
    
    /* Cinzas */
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-600: #6c757d;
    --gray-900: #1a1a1a;

    /* Textos */
    --text-dark: #0A0A0A;
    --text-light: #ffffff;

    /* Glass effect */
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.25);

    /* Tipografia */
    --font-primary: 'Inter', Arial, sans-serif;

    /* Sombras */
    --shadow-soft: 0px 4px 20px rgba(0,0,0,0.08);
    --shadow-medium: 0px 6px 28px rgba(0,0,0,0.12);

    /* Transições */
    --transition: all 0.3s ease;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background: #fff;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Links */
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    opacity: 0.8;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    padding: 1rem 0;
    background: var(--primary) !important;
}

.navbar-brand {
    font-size: 1.4rem;
    color: var(--text-light) !important;
}

.nav-link {
    color: #dbe1e7 !important;
    font-weight: 500;
}

.nav-link.active {
    color: #fff !important;
}

/* ============================================================
   HERO (Home, Sobre, Projetos, Serviços, Contato)
   ============================================================ */

.hero,
.hero-sobre,
.hero-projetos,
.hero-servicos,
.hero-contato {
    min-height: 70vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero {
    background-image: url('https://via.placeholder.com/1920x900');
}

.hero-sobre {
    background-image: url('https://via.placeholder.com/1920x800');
}

.hero-projetos {
    background-image: url('https://via.placeholder.com/1920x800');
}

.hero-servicos {
    background-image: url('https://via.placeholder.com/1920x800');
}

.hero-contato {
    background-image: url('https://via.placeholder.com/1920x800');
}

/* Vidro/Glass effect */
.hero::before,
.hero-sobre::before,
.hero-projetos::before,
.hero-servicos::before,
.hero-contato::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: brightness(0.7);
}

/* ============================================================
   SEÇÕES GERAIS
   ============================================================ */
section {
    position: relative;
    z-index: 2;
}

/* Títulos */
h1, h2, h3, h4, h5 {
    font-weight: 700;
}

/* ============================================================
   SERVIÇOS (Home + Página Serviços)
   ============================================================ */
.service-card,
.service-box {
    transition: var(--transition);
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow-soft);
}

.service-card:hover,
.service-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.service-box img {
    border-radius: 6px;
}

/* ============================================================
   GALERIA (Projetos)
   ============================================================ */

.gallery-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
}

.gallery-img {
    transition: var(--transition);
}

.gallery-card:hover .gallery-img {
    transform: scale(1.1);
    opacity: 0.9;
}

/* Botões de filtro */
.filter-btn {
    border-radius: 50px;
    padding: 8px 22px;
}

.filter-btn.active {
    background: var(--primary);
    color: #fff;
}

/* ============================================================
   FORMULÁRIOS (Contato)
   ============================================================ */
form .form-control {
    border-radius: 6px;
    padding: 12px;
    border: 1px solid var(--gray-300);
    font-size: 1rem;
}

form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.15rem rgba(10, 26, 47, 0.25);
}

button[type="submit"] {
    padding: 12px 24px;
}

/* ============================================================
   CTA (Chamada para Ação)
   ============================================================ */

.cta-section {
    background: var(--primary);
    padding: 60px 0;
}

/* ============================================================
   WHATSAPP FLUTUANTE
   ============================================================ */

.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
}

.whatsapp-float img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
}

.whatsapp-float img:hover {
    transform: scale(1.08);
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
    background: var(--primary);
}

.footer-link {
    color: #dce2e9 !important;
    font-size: 0.95rem;
}

.footer-link:hover {
    color: #fff !important;
}

footer p {
    color: #dce2e9;
}

footer h5, footer h6 {
    color: #fff;
}
