@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #0b2545; /* Navy */
    --primary-light: #13315c;
    --secondary: #d4af37; /* Gold / Premium Accent */
    --secondary-hover: #b8962c;
    --text-main: #2b2b2b;
    --text-light: #6c757d;
    --bg-main: #ffffff;
    --bg-alt: #f8f9fa;
    --transition-speed: 0.3s;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { background-color: var(--bg-main); color: var(--text-main); line-height: 1.6; overflow-x: hidden; }

/* Scroll Animation Base Classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.reveal.reveal-from-left {
    transform: translateX(-70px);
}
.reveal.reveal-from-right {
    transform: translateX(70px);
}
.reveal.reveal-from-left.active,
.reveal.reveal-from-right.active {
    transform: translateX(0);
}

h1, h2, h3, h4, h5, h6 { font-weight: 600; color: var(--primary); }
h1 { font-size: 3.5rem; line-height: 1.1; font-weight: 800; }
h2 { font-size: 2.2rem; margin-bottom: 1rem; }
p { margin-bottom: 1rem; color: var(--text-light); }
a { text-decoration: none; color: inherit; transition: color var(--transition-speed); }

/* Header */
header { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); position: fixed; width: 100%; top: 0; z-index: 1000; padding: 1rem 0; transition: all var(--transition-speed); box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
header.scrolled { padding: 0.5rem 0; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }
.logo { cursor: pointer; }
.logo img { height: 119px; width: auto; transition: transform var(--transition-speed), height var(--transition-speed); }
header.scrolled .logo img { height: 101px; }
.logo img:hover { transform: scale(1.05); }
nav ul { display: flex; list-style: none; gap: 2rem; }
nav ul li a { font-weight: 500; font-size: 1.05rem; position: relative; color: var(--primary); }
nav ul li a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background-color: var(--secondary); transition: width var(--transition-speed); }
nav ul li a:hover::after, nav ul li a.active::after { width: 100%; }
.mobile-menu-btn { display: none; font-size: 1.8rem; color: var(--primary); cursor: pointer; background:none; border:none; }

main { margin-top: 100px; min-height: calc(100vh - 200px); }
section { padding: 5rem 0; }
section.alt-bg { background-color: var(--bg-alt); }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { display: inline-block; position: relative; }
.section-title h2::after { content: ''; position: absolute; width: 50px; height: 3px; bottom: -10px; left: 50%; transform: translateX(-50%); background-color: var(--secondary); }

/* Buttons */
.btn { display: inline-block; padding: 0.8rem 2rem; border-radius: 50px; font-weight: 600; transition: all var(--transition-speed); border: none; cursor: pointer; text-align: center; }
.btn-primary { background-color: var(--secondary); color: #fff; box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3); }
.btn-primary:hover { background-color: var(--secondary-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4); color: #fff; }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background-color: var(--primary); color: #fff; }

/* Hero Section */
.hero { display: flex; align-items: center; min-height: 80vh; background: linear-gradient(to right, rgba(255,255,255,0.9), rgba(255,255,255,0.7)), url('https://verticeforros.com.br/imagens/85d514a6-f514-418b-aad4-212677c9d6b1.jpg') center/cover; }
.hero-content { max-width: 600px; }
.hero-content h1 { margin-bottom: 1.5rem; }
.hero-content p { font-size: 1.1rem; margin-bottom: 2rem; }

/* Cards (Services) */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.service-card { background: #fff; padding: 2rem; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: all 0.4s ease; border-bottom: 4px solid transparent; }
.service-card:hover { transform: translateY(-15px) scale(1.02); border-bottom-color: var(--secondary); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.service-icon { font-size: 2.5rem; color: var(--secondary); margin-bottom: 1rem; transition: transform 0.4s ease; }
.service-card:hover .service-icon { transform: scale(1.2) rotate(5deg); }

/* Clients */
.clients-section { padding-top: 4rem; }
.clients-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1.5rem; align-items: center; }
.client-logo { background: #fff; border-radius: 10px; padding: 1.25rem 1.5rem; display: flex; align-items: center; justify-content: center; min-height: 110px; box-shadow: 0 4px 15px rgba(0,0,0,0.06); transition: transform var(--transition-speed), box-shadow var(--transition-speed); }
.client-logo:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.client-logo img { max-width: 100%; max-height: 70px; width: auto; height: auto; object-fit: contain; transition: transform var(--transition-speed), opacity var(--transition-speed); }
.client-logo:hover img { transform: scale(1.05); }

/* Projects list (Projetos) */
.projects-section { padding-top: 3rem; padding-bottom: 4rem; }
.projects-list { display: flex; flex-direction: column; }
.project-item {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 3rem 0;
    border-bottom: 1px solid #e2e8f0;
    overflow: hidden;
}
.project-item:last-child { border-bottom: none; padding-bottom: 0; }
.project-item:first-child { padding-top: 0; }
.project-item-image { flex: 0 0 42%; max-width: 520px; }
.project-item-image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.project-item-content { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.project-item-content.reveal { transition-delay: 0.12s; }
.project-item-content h3 {
    font-size: 1.65rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}
.project-item-content p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-light);
    margin-bottom: 0;
}

/* Gallery (legacy) */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.gallery-item { border-radius: 10px; overflow: hidden; height: 300px; position: relative; cursor: pointer; transform: scale(1); transition: transform 0.4s ease, box-shadow 0.4s ease; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.gallery-item:hover { transform: scale(1.03); box-shadow: 0 10px 25px rgba(0,0,0,0.2); z-index: 10; }
.gallery-item:hover img { transform: scale(1.1); }

.gallery-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(11, 37, 69, 0.7);
    display: flex; justify-content: center; align-items: center;
    color: #fff; font-size: 2.5rem;
    opacity: 0; transition: all 0.4s ease;
    transform: translateY(20px);
}
.gallery-item:hover .gallery-overlay { opacity: 1; transform: translateY(0); }

/* Lightbox */
@keyframes fadeInLightbox { from { opacity: 0; } to { opacity: 1; } }
.lightbox {
    display: none; position: fixed; z-index: 9999; top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: rgba(0, 0, 0, 0.9); justify-content: center; align-items: center;
    backdrop-filter: blur(5px); margin: 0; padding: 0;
}
.lightbox.show { display: flex; animation: fadeInLightbox 0.3s forwards; }
.lightbox-content { display: flex; justify-content: center; align-items: center; position: relative; max-width: 90vw; max-height: 90vh; }
.lightbox-content img { max-width: 100%; max-height: 90vh; border-radius: 5px; box-shadow: 0 0 30px rgba(0,0,0,0.5); object-fit: contain; }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 40px; font-weight: bold; cursor: pointer; transition: color 0.3s; z-index: 10000; }
.lightbox-close:hover { color: var(--secondary); }
.lightbox-prev, .lightbox-next {
    cursor: pointer; position: absolute; top: 50%; transform: translateY(-50%); width: auto;
    padding: 16px; color: white; font-weight: bold; font-size: 24px; transition: 0.3s;
    user-select: none; background: rgba(0,0,0,0.5); border-radius: 50%; height: 60px; width: 60px;
    display: flex; justify-content: center; align-items: center;
}
.lightbox-prev:hover, .lightbox-next:hover { background-color: var(--secondary); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* About / Content Side by Side */
.split-content { display: flex; gap: 4rem; align-items: center; }
.split-text { flex: 1; }
.split-image { flex: 1; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.split-image img { width: 100%; height: auto; display: block; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; }
.contact-item i { font-size: 1.5rem; color: var(--secondary); background: rgba(212,175,55,0.1); padding: 1rem; border-radius: 50%; }
.contact-form { background: #fff; padding: 3rem; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--primary); }
.form-group input, .form-group textarea { width: 100%; padding: 1rem; border: 1px solid #ddd; border-radius: 5px; font-family: inherit; transition: border-color var(--transition-speed); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--secondary); }

/* Floats */
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; background-color: #25d366; color: #fff; width: 60px; height: 60px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 30px; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); z-index: 1000; transition: transform var(--transition-speed); text-decoration: none; }
.whatsapp-float:hover { transform: scale(1.1); }
.scroll-top { position: fixed; bottom: 30px; left: 30px; background-color: var(--primary); color: #fff; width: 50px; height: 50px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); z-index: 1000; cursor: pointer; transition: all var(--transition-speed); opacity: 1; visibility: visible; }
.scroll-top:hover { background-color: var(--secondary); transform: translateY(-3px); }

/* Footer */
footer { background-color: var(--primary); color: #fff; padding: 3rem 0 1rem; text-align: center; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-bottom: 2rem; text-align: left; }
.footer-col h4 { color: var(--secondary); margin-bottom: 1rem; }
.footer-col p, .footer-col a { color: #cbd5e1; font-size: 0.95rem; margin-bottom: 0.5rem; display: block; }
.footer-col a:hover { color: var(--secondary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1rem; font-size: 0.9rem; }

/* Mapa (entre conteúdo e rodapé) */
.map-section {
    background-color: var(--primary);
    width: 100%;
    margin: 0;
    padding: 0;
}
.map-section-frame {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}
.map-section iframe {
    display: block;
    width: 100%;
    height: clamp(320px, 50vh, 560px);
    min-height: 320px;
    border: 0;
}
.toflow-link { color: var(--secondary); font-weight: 600; position: relative; display: inline-block; transition: transform 0.3s ease; }
.toflow-link:hover { transform: scale(1.05); color: #fff; }

/* Responsive */
@media (max-width: 1200px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 992px) {
    .split-content { flex-direction: column; }
    .contact-grid { grid-template-columns: 1fr; }
    .project-item { gap: 2rem; }
    .project-item-image { flex: 0 0 38%; }
}
@media (max-width: 768px) {
    h1 { font-size: 2.6rem; font-weight: 800; }
    .services-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .service-card { padding: 1.5rem; }
    .clients-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .client-logo { min-height: 90px; padding: 1rem; }
    .client-logo img { max-height: 55px; }
    .project-item { flex-direction: column; gap: 1.5rem; padding: 2.5rem 0; }
    .project-item-image { flex: none; max-width: 100%; width: 100%; }
    .project-item-content { padding-top: 0; }
    .project-item-content h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }
    main { margin-top: 92px; }
    .logo img { height: 105px; }
    header.scrolled .logo img { height: 91px; }
    .map-section iframe { height: clamp(260px, 42vh, 400px); min-height: 260px; }
    .nav-wrapper { flex-wrap: nowrap; position: relative; justify-content: flex-start; }
    .mobile-menu-btn {
        display: block;
        margin-left: auto;
        flex-shrink: 0;
        padding: 0.25rem 0.15rem 0.25rem 0.5rem;
    }
    nav { position: absolute; top: 100%; left: 0; right: 0; width: 100%; }
    nav ul { display: none; flex-direction: column; width: 100%; background: rgba(255, 255, 255, 0.98); padding: 1rem 0; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,0.05); position: static; }
    nav ul.active { display: flex; }
    nav ul li { margin-bottom: 1rem; }
    .hero { min-height: 60vh; text-align: center; padding: 5rem 0; }
    .hero-content { margin: 0 auto; }
}
