/* style.css - Padrão do site Construtec Engineering */

:root {
    --navy: #0B1726;        /* Azul Marinho Base */
    --navy-light: #162639;  /* Azul Marinho Claro */
    --gold: #D4AF37;        /* Dourado Elegante */
    --gold-light: #E5C354;  /* Dourado Claro (Hover) */
    --white: #FFFFFF;
    --gray: #666666;
    --light-gray: #F4F7F9;
    --transition: all 0.4s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
    overflow-x: hidden;
    width: 100%;
}
body { 
    font-family: 'Open Sans', sans-serif; 
    color: var(--navy); 
    line-height: 1.6; 
    background-color: var(--white); 
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    text-align: center;
}
p {
    text-align: justify;
}

/* =========================================
   HEADER
   ========================================= */
header {
    background: rgba(11, 23, 38, 0.98);
    backdrop-filter: blur(10px);
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--gold);
    transition: var(--transition);
}

.logo img { 
    height: 45px; 
    transition: var(--transition); 
    filter: grayscale(100%) invert(100%); 
    mix-blend-mode: screen;
}

nav { display: flex; align-items: center; gap: 20px; }
nav ul { display: flex; list-style: none; gap: 20px; align-items: center; }
nav ul li a { 
    color: var(--white); 
    text-decoration: none; 
    font-weight: 700; 
    font-size: 13px; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    transition: var(--transition);
    white-space: nowrap;
}
nav ul li a:hover {
    color: var(--gold);
}

.btn-orcamento, .btn-primary { 
    background: var(--gold); 
    color: var(--navy) !important; 
    padding: 12px 25px; 
    border-radius: 4px; 
    font-weight: 800 !important; 
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    border: none;
    cursor: pointer;
}
.btn-orcamento:hover, .btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-orcamento {
    margin-left: 10px;
}

.header-socials { display: flex; gap: 15px; align-items: center; margin-right: 0px; }
.header-socials a { color: var(--white); font-size: 18px; transition: var(--transition); }
.header-socials a:hover { color: var(--gold); }
.header-separator { width: 1px; height: 30px; background-color: rgba(255,255,255,0.2); }

/* Menu Mobile Toggle */
.menu-toggle {
    display: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
}

/* =========================================
   FOOTER
   ========================================= */
footer { 
    background: var(--navy); 
    color: var(--white); 
    padding: 80px 8% 30px; 
    border-top: 4px solid var(--gold);
}
.footer-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 50px; 
}
.footer-col h4 { 
    color: var(--gold); 
    margin-bottom: 25px; 
    font-family: 'Montserrat'; 
    text-transform: uppercase;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; font-size: 14px; opacity: 0.9; display: flex; align-items: center; gap: 10px; }
.footer-col li a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}
.footer-col li a:hover {
    color: var(--gold);
}
.footer-col i {
    color: var(--gold);
}
.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 13px;
    opacity: 0.7;
}
.footer-bottom p {
    text-align: center !important;
}

/* =========================================
   WHATSAPP FLOAT
   ========================================= */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px;
    background: #25D366; color: white; width: 60px; height: 60px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 30px; z-index: 1000; box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
    transition: var(--transition);
}
.whatsapp-float:hover {
    transform: scale(1.1);
    background: #1EBE55;
    color: white;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* =========================================
   PAGE HEADERS (INTERNAL PAGES)
   ========================================= */
.page-header { 
    margin-top: 90px;
    background: linear-gradient(rgba(11, 23, 38, 0.85), rgba(11, 23, 38, 0.85)), url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white); 
    padding: 80px 8%; 
    text-align: center !important;
}
.page-header h1 { 
    font-size: 3rem; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    margin-bottom: 10px;
    text-align: center !important;
}
.page-header p {
    font-size: 1.1rem;
    color: var(--gold);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    text-align: center !important;
}

/* =========================================
   COMPONENTS
   ========================================= */
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.5rem; text-transform: uppercase; color: var(--navy); }
.section-title span { color: var(--gold); font-size: 0.9rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; display: block; margin-bottom: 10px; }
.section-title .bar { width: 80px; height: 4px; background: var(--gold); margin: 15px auto; border-radius: 2px; }

/* =========================================
   RESPONSIVE & ADAPTIVE LAYOUT
   ========================================= */

/* Para Telas Gigantes / TV (acima de 1600px) */
@media (min-width: 1600px) {
    body {
        max-width: 1920px;
        margin: 0 auto;
        box-shadow: 0 0 50px rgba(0,0,0,0.1);
        position: relative;
    }
    header {
        max-width: 1920px;
        left: 50%;
        transform: translateX(-50%);
    }
    .whatsapp-float {
        right: calc(50% - 920px + 30px);
    }
}

/* Tablets & Laptops Menores (até 1100px) */
@media (max-width: 1100px) {
    .header-socials { display: none; }
    nav ul { gap: 15px; }
}

/* Menu Mobile & Tablets (até 1024px) */
@media (max-width: 1024px) {
    /* Layout Adjustments */
    .page-header, .projects-section, .article-section, footer, .services, .stats { padding-left: 5%; padding-right: 5%; }
    
    /* Menu Navigation */
    .menu-toggle { display: block; }
    nav#nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--navy);
        flex-direction: column;
        padding: 100px 30px 40px;
        border-bottom: none;
        border-left: 2px solid var(--gold);
        display: flex !important;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 999;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    nav#nav-menu.active {
        right: 0;
    }
    nav ul { 
        flex-direction: column; 
        width: 100%;
        gap: 0; 
        align-items: flex-start;
    }
    nav ul li { width: 100%; text-align: left; }
    nav ul li a { 
        display: block; 
        padding: 18px 0; 
        border-bottom: 1px solid rgba(255,255,255,0.05);
        font-size: 1.1rem;
    }
    .header-socials {
        display: flex !important;
        width: 100%;
        justify-content: flex-start;
        margin-bottom: 20px;
        gap: 20px;
    }
    .header-separator { display: none; }
    .btn-orcamento {
        margin: 30px 0 0 0;
        width: 100%;
        text-align: center;
        display: inline-block !important;
    }
}

/* Mobile (até 768px) */
@media (max-width: 768px) {
    /* Typographic Adjustments */
    .hero-content h1 { font-size: 2.2rem !important; }
    .hero-content p { font-size: 1rem !important; margin-bottom: 30px; border-left: none; padding-left: 0; }
    .page-header h1 { font-size: 2rem !important; }
    .section-title h2 { font-size: 1.8rem !important; }
    
    /* Layout Adjustments */
    header { padding: 0 5%; }
    .stats { flex-direction: column; gap: 30px; }
    .services-grid, .projects-grid, .blog-grid { gap: 20px; }
    .footer-grid { gap: 30px; }

    /* Swiper adjusting */
    .swiper-slide { width: 300px !important; height: 400px !important; }
}

/* Small Mobile (Até 480px) */
@media (max-width: 480px) {
    .logo img { height: 35px; }
    .hero-content h1 { font-size: 1.8rem !important; }
    .service-card { padding: 30px 20px; }
    .stat-item h3 { font-size: 2.2rem; }
}
