/* 
   SMF Engenharia - Custom Premium Styles
   V2.6 - Contact Spacing & Final UI Refinement
*/

:root {
    --primary: #333895;
    --secondary: #E38233;
    --accent: #F3F4F6;
    --light: #FFFFFF;
    --dark: #000000;
    --gray: #4B5563;
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-alt: 'Montserrat', sans-serif;
}

html, body { width: 100%; margin: 0; padding: 0; overflow-x: hidden; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }

body { font-family: var(--font-body); line-height: 1.6; color: var(--primary); background-color: var(--light); }
body::before { content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-image: radial-gradient(circle at 2px 2px, rgba(51, 56, 149, 0.03) 1px, transparent 0); background-size: 40px 40px; z-index: -1; pointer-events: none; }

.container { width: 92%; max-width: 1200px; margin: 0 auto; }

/* Header */
header { background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); position: fixed; width: 100%; top: 0; z-index: 1000; padding: 12px 0; border-bottom: 2px solid var(--secondary); }
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-alt); font-size: 22px; font-weight: 900; color: var(--primary); text-decoration: none; display: flex; align-items: center; white-space: nowrap; }
.logo span { color: var(--secondary); margin-left: 4px; }
.logo-img { width: 35px; margin-right: 8px; }
.nav-links { display: flex; list-style: none; }
.nav-links li { margin-left: 25px; }
.nav-links a { text-decoration: none; color: var(--primary); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; transition: var(--transition); }
.nav-links a:hover { color: var(--secondary); }
.menu-toggle { display: none; font-size: 26px; cursor: pointer; color: var(--primary); }

/* Hero */
.hero { height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; color: white; background-size: cover; background-position: center; position: relative; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(51, 56, 149, 0.6), rgba(0, 0, 0, 0.8)); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 900px; padding: 0 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; }
.hero h1 { font-size: 4.2rem; margin-bottom: 20px; line-height: 1.1; text-align: center; }
.hero h1 span { color: var(--secondary); }
.hero p { font-size: 1.3rem; margin-bottom: 40px; font-weight: 300; max-width: 700px; line-height: 1.4; text-align: center; }

/* Trust Bar */
.trust-bar { background: var(--accent); padding: 15px 0; border-bottom: 1px solid #ddd; }
.trust-container { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 25px; }
.trust-container span { color: var(--primary); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.trust-container i { color: var(--secondary); font-size: 1.1rem; }

/* Sections */
section { padding: 100px 0; }
.section-title { text-align: center; margin-bottom: 50px; padding: 0 10px; }
.section-title h2 { font-size: 3.2rem; color: var(--primary); position: relative; padding-bottom: 15px; line-height: 1.2; }
.section-title h2::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 4px; background: var(--secondary); }

/* About */
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-lead { font-family: var(--font-heading); font-size: 2.2rem; color: var(--primary); margin-bottom: 20px; line-height: 1.2; }
.about-signature-highlight { margin-top: 40px; border-left: 5px solid var(--secondary); padding: 15px 0 15px 25px; background: rgba(51, 56, 149, 0.03); border-radius: 0 10px 10px 0; }
.about-signature-highlight strong { display: block; font-size: 1.8rem; color: var(--primary); font-family: var(--font-alt); }
.about-signature-highlight span { color: var(--secondary); font-weight: 700; text-transform: uppercase; font-size: 1rem; letter-spacing: 1px; }
.about-image { border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); width: 100%; height: 500px; }
.about-image img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.5s ease; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-bottom: 50px; }
.service-card { background: white; padding: 40px 30px; border: 1px solid rgba(51, 56, 149, 0.1); transition: var(--transition); opacity: 0; transform: translateY(20px); height: 100%; }
.service-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; }
.services-cta { text-align: center; margin-top: 40px; }

/* Projects */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 25px; }
.project-card { position: relative; border-radius: 8px; overflow: hidden; height: 380px; cursor: pointer; opacity: 0; transform: translateY(20px); transition: var(--transition); }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; }
.project-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px 20px 20px; background: linear-gradient(to top, var(--primary), transparent); color: white; opacity: 0; transition: 0.3s; }
.project-card:hover .project-overlay { opacity: 1; }

/* Contact & Maps Organization */
.contact-header { text-align: center; margin-bottom: 80px; } /* Aumentado para dar mais respiro */
.contact-header p { margin-top: 15px; color: var(--gray); font-size: 1.1rem; }

.contact-striking-container { display: flex; flex-direction: column; gap: 25px; max-width: 800px; margin: 0 auto 60px; }
.contact-striking-card { display: flex; align-items: center; gap: 25px; background: white; padding: 30px; border-radius: 12px; text-decoration: none; color: var(--primary); box-shadow: var(--shadow); transition: 0.3s; border: 1px solid rgba(51, 56, 149, 0.05); }
.contact-striking-card:hover { transform: translateY(-5px); border-color: var(--secondary); box-shadow: 0 15px 35px rgba(51, 56, 149, 0.1); }
.contact-striking-icon { font-size: 2.5rem; color: var(--secondary); flex-shrink: 0; }
.contact-striking-info strong { font-size: 1.5rem; display: block; }

.contact-map-full { margin-top: 50px; border-radius: 15px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.05); }

/* Footer */
footer { background: var(--primary); color: white; padding: 60px 0 30px; text-align: center; }
.footer-logo { font-size: 24px; font-weight: 900; color: white; text-decoration: none; margin-bottom: 20px; display: inline-block; }
.footer-logo span { color: var(--secondary); }
.social-icons-footer { display: flex; justify-content: center; gap: 25px; margin-bottom: 30px; }
.social-icons-footer a { color: white; font-size: 1.5rem; opacity: 0.7; transition: 0.3s; }

/* Lightbox */
.lightbox-modal { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.98); backdrop-filter: blur(12px); justify-content: center; align-items: center; flex-direction: column; }
.lightbox-content { position: relative; max-width: 95%; max-height: 80vh; }
.lightbox-image { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 4px; }
.lightbox-close { position: absolute; top: -60px; right: 0; color: white; font-size: 50px; cursor: pointer; z-index: 10000; transition: 0.3s; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); color: white; font-size: 30px; padding: 15px; cursor: pointer; background: rgba(255,255,255,0.08); border-radius: 50%; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.lightbox-prev { left: -80px; } .lightbox-next { right: -80px; }

/* WhatsApp Floating */
.whatsapp-float { position: fixed; width: 65px; height: 65px; bottom: 35px; right: 25px; background: #25D366; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 35px; box-shadow: 0 10px 25px rgba(0,0,0,0.3); text-decoration: none; z-index: 1000; transition: 0.3s; }

/* CTA Button Base */
.cta-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; background: var(--secondary); color: white; padding: 18px 45px; border-radius: 4px; text-decoration: none; font-weight: 700; text-transform: uppercase; font-size: 15px; letter-spacing: 2px; transition: var(--transition); border: none; cursor: pointer; }
.cta-button:hover { background: var(--primary); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(51, 56, 149, 0.4); }

/* RESPONSIVE */
@media (max-width: 992px) {
    .menu-toggle { display: block; }
    .nav-links { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: white; flex-direction: column; padding: 80px 40px; transition: 0.4s; z-index: 1001; }
    .nav-links.active { right: 0; }
    .services-grid { display: flex; flex-direction: column; gap: 20px; }
    .service-card { opacity: 1 !important; transform: none !important; padding: 30px 20px; width: 100%; }
    .about-content { grid-template-columns: 1fr; }
    .hero h1 { font-size: 3.2rem; }
    .hero p { font-size: 1.1rem; }
    .lightbox-prev { left: 10px; } .lightbox-next { right: 10px; }
    .lightbox-close { top: 20px; right: 20px; font-size: 40px; }
    .about-signature-highlight strong { font-size: 1.5rem; }
}

@media (max-width: 600px) {
    header { padding: 10px 0; }
    .logo { font-size: 19px; }
    .hero h1 { font-size: 2.4rem; padding: 0 5px; }
    .section-title h2 { font-size: 2.2rem; }
    .about-lead { font-size: 1.8rem; }
    .about-image { height: 380px; }
    .contact-header { margin-bottom: 50px; }
    .contact-striking-card { padding: 25px 20px; gap: 15px; }
    .contact-striking-info strong { font-size: 1.1rem; }
    .contact-striking-icon { font-size: 2rem; }
}

.in-view { opacity: 1 !important; transform: translateY(0) !important; }
