/* ===================================================================
   LAJES DO ENGENHEIRO - Modern Theme v3.0
   =================================================================== */

:root {
    --primary: #1a1a2e;
    --accent: #e2b714;
    --accent-hover: #c9a20e;
    --dark: #0f0f23;
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-800: #343a40;
    --gray-900: #212529;
    --text: #495057;
    --text-light: #868e96;
    --radius: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
}

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}

/* Preloader */
#preloader {
    position: fixed; inset: 0; z-index: 99999;
    background: var(--primary);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.4s, visibility 0.4s;
}
#preloader.loaded { opacity: 0; visibility: hidden; pointer-events: none; }
.spinner {
    width: 40px; height: 40px;
    border: 3px solid rgba(226,183,20,0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Navbar */
#mainNav {
    padding: 0.8rem 0;
    transition: var(--transition);
    background: transparent;
    z-index: 100000;
}
#mainNav.scrolled {
    background: rgba(26,26,46,0.95);
    backdrop-filter: blur(20px);
    padding: 0.5rem 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}
.logo-img { height: 45px; transition: var(--transition); }
#mainNav.scrolled .logo-img { height: 38px; }

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.9rem;
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active { color: var(--accent); }

.navbar-toggler { border: none; padding: 0.4rem; }
.navbar-toggler:focus { box-shadow: none; }

.dropdown-menu {
    border: none; border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 0.5rem; min-width: 200px;
    margin-top: 0.5rem;
}
.dropdown-item {
    padding: 0.6rem 0.9rem; border-radius: 8px;
    font-size: 0.9rem; font-weight: 500;
    transition: var(--transition);
}
.dropdown-item:hover { background: var(--accent); color: var(--white); }
.dropdown-item i { width: 18px; color: var(--accent); margin-right: 0.5rem; font-size: 0.85rem; }
.dropdown-item:hover i { color: var(--white); }
.dropdown-divider { border-color: var(--gray-200); margin: 0.3rem 0; }

.btn-nav-login {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
}
.btn-nav-login:hover { background: var(--accent); color: var(--dark); border-color: var(--accent); }

/* Hero */
.hero-section {
    position: relative;
    height: 50vh;
    min-height: 320px;
    max-height: 450px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(15,15,35,0.85) 0%, rgba(26,26,46,0.6) 100%);
}
.hero-content {
    position: relative; z-index: 10;
    text-align: center; width: 100%;
}
.hero-tag {
    display: inline-block;
    background: rgba(226,183,20,0.15);
    color: var(--accent);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}
.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}
.hero-content p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    max-width: 450px;
    margin: 0 auto 2rem;
}
.hero-buttons { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.btn-hero {
    padding: 0.75rem 1.8rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}
.btn-hero-primary { background: var(--accent); color: var(--dark); border: 2px solid var(--accent); }
.btn-hero-primary:hover { background: transparent; color: var(--accent); transform: translateY(-2px); }
.btn-hero-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.3); }
.btn-hero-outline:hover { border-color: var(--white); background: var(--white); color: var(--dark); }

/* Products Section */
.section-products { padding: 4rem 0; background: var(--gray-50); }
.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: var(--transition);
    height: 100%;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    color: var(--white);
}
.product-card:hover .product-card-icon { background: rgba(255,255,255,0.2); }
.product-card:hover .product-card-arrow { opacity: 1; transform: translateX(0); }
.product-card-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(226,183,20,0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 1rem;
    transition: var(--transition);
}
.product-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.3rem; color: var(--gray-900); }
.product-card:hover h3 { color: var(--white); }
.product-card p { font-size: 0.85rem; color: var(--text-light); margin: 0; }
.product-card:hover p { color: rgba(255,255,255,0.8); }
.product-card-arrow {
    position: absolute; top: 1rem; right: 1rem;
    opacity: 0; transform: translateX(-10px);
    transition: var(--transition);
    color: var(--white);
    font-size: 0.8rem;
}

/* Gallery */
.section-gallery { padding: 2.5rem 0; }
.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/11;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.gallery-item:hover img { transform: scale(1.05); }
.btn-link {
    color: var(--gray-800);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}
.btn-link:hover { color: var(--accent); }

/* Contact Section */
.section-contact {
    padding: 4rem 0;
    background: var(--primary);
    color: var(--white);
}
.section-contact h2 { color: var(--white); font-size: 1.8rem; margin-bottom: 1rem; }
.section-contact p { color: rgba(255,255,255,0.7); margin-bottom: 2rem; }
.section-tag {
    display: inline-block;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}
.contact-quick { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn-whatsapp {
    background: #25d366; color: var(--white); border: none;
    padding: 0.7rem 1.5rem; border-radius: 50px; font-weight: 600; font-size: 0.9rem;
}
.btn-whatsapp:hover { background: #1da851; color: var(--white); transform: translateY(-2px); }
.btn-phone {
    background: rgba(255,255,255,0.1); color: var(--white);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.7rem 1.5rem; border-radius: 50px; font-weight: 600; font-size: 0.9rem;
}
.btn-phone:hover { background: rgba(255,255,255,0.2); color: var(--white); }
.map-mini {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    height: 280px;
}
.map-mini iframe { width: 100%; height: 100%; border: none; }

/* Footer */
.site-footer { background: var(--dark); padding: 2rem 0 0; }
.footer-content {
    display: flex; flex-wrap: wrap; align-items: center;
    justify-content: space-between; gap: 1.5rem;
    padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-info p { color: rgba(255,255,255,0.5); font-size: 0.85rem; margin: 0.2rem 0; }
.footer-info a { color: rgba(255,255,255,0.6); }
.footer-info a:hover { color: var(--accent); }
.footer-info i { color: var(--accent); width: 16px; text-align: center; }
.footer-links-row { display: flex; gap: 1.5rem; }
.footer-links-row a { color: rgba(255,255,255,0.5); font-size: 0.85rem; font-weight: 500; }
.footer-links-row a:hover { color: var(--accent); }
.footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between;
    align-items: center; padding: 1rem 0 0; gap: 0.5rem;
}
.footer-bottom p { margin: 0; font-size: 0.75rem; color: rgba(255,255,255,0.35); }
.footer-bottom .developer { color: rgba(255,255,255,0.5); }
.footer-bottom .developer strong { color: var(--accent); font-weight: 600; }

/* Back to Top */
.back-to-top {
    position: fixed; bottom: 1.5rem; right: 1.5rem;
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--accent); color: var(--dark);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 15px rgba(226,183,20,0.4);
    opacity: 0; visibility: hidden; transform: translateY(15px);
    transition: var(--transition); z-index: 999;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-hover); color: var(--dark); }

/* Page Banner */
.page-banner {
    position: relative; height: 25vh; min-height: 160px;
    display: flex; align-items: center; justify-content: center;
    text-align: center; overflow: hidden;
    background: var(--primary);
}
.page-banner::before {
    content: ''; position: absolute; inset: 0;
    background: url('../images/all-bg-title.jpg') center/cover;
    opacity: 0.15;
}
.page-banner-content { position: relative; z-index: 10; }
.page-banner h1 { font-size: 1.8rem; font-weight: 800; color: var(--white); margin-bottom: 0.3rem; }
.page-banner .breadcrumb { justify-content: center; margin: 0; font-size: 0.8rem; }
.page-banner .breadcrumb-item a { color: rgba(255,255,255,0.6); }
.page-banner .breadcrumb-item.active { color: var(--accent); }
.page-banner .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* Sections */
.section { padding: 2.5rem 0; }
.section-dark { background: var(--primary); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-gray { background: var(--gray-50); }

.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem; }
.section-title p { color: var(--text-light); font-size: 1rem; max-width: 450px; margin: 0 auto; }

/* Cards */
.card-modern {
    background: var(--white); border: none; border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: var(--transition); height: 100%;
}
.card-modern:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.card-modern .card-img-top { height: 200px; object-fit: cover; }
.card-modern .card-body { padding: 1.25rem; }
.card-modern .card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.card-modern .card-text { color: var(--text-light); font-size: 0.9rem; }
.card-modern .card-link {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-weight: 600; color: var(--accent); font-size: 0.9rem; margin-top: 0.75rem;
}

/* Product Carousel */
.carousel.slide { border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.carousel-item { height: 320px; }
.carousel-item img { width: 100%; height: 100%; object-fit: cover; }
.carousel-control-prev, .carousel-control-next {
    width: 32px; height: 32px; top: 50%; bottom: auto;
    transform: translateY(-50%); background: rgba(0,0,0,0.5); border-radius: 50%;
    opacity: 0; transition: var(--transition);
}
.carousel-control-prev { left: 0.5rem; }
.carousel-control-next { right: 0.5rem; }
.carousel:hover .carousel-control-prev, .carousel:hover .carousel-control-next { opacity: 1; }
.carousel-control-prev-icon, .carousel-control-next-icon { width: 14px; height: 14px; }

/* Thumbnails Row */
.thumbs-row {
    display: flex; gap: 0.4rem; padding: 0.4rem;
    background: var(--gray-100); border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    overflow-x: auto;
}
.thumb-item {
    width: 55px; height: 38px; object-fit: cover; border-radius: 4px;
    cursor: pointer; opacity: 0.5; transition: var(--transition);
    border: 2px solid transparent; flex-shrink: 0;
}
.thumb-item:hover, .thumb-item.active { opacity: 1; border-color: var(--accent); }

/* Feature List */
.feature-list { list-style: none; padding: 0; margin: 1rem 0; }
.feature-list li {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.35rem 0; font-size: 0.85rem; color: var(--text);
    border-bottom: 1px solid var(--gray-100);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li i { color: var(--accent); font-size: 0.75rem; }

/* Section Tag */
.section-tag {
    display: inline-block; color: var(--accent); font-size: 0.7rem;
    font-weight: 600; text-transform: uppercase; letter-spacing: 2px;
    margin-bottom: 0.4rem;
}

/* Product Info */
.text-muted { color: var(--text-light) !important; font-size: 0.85rem; }

/* Contact Form */
.contact-form-card {
    background: var(--white); border-radius: var(--radius-lg);
    padding: 1.5rem; box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.form-control {
    border: 2px solid var(--gray-200); border-radius: var(--radius);
    padding: 0.6rem 0.8rem; font-size: 0.9rem; transition: var(--transition);
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(226,183,20,0.1); }
.form-label { font-weight: 600; color: var(--gray-800); font-size: 0.8rem; margin-bottom: 0.2rem; }
.btn-submit {
    background: var(--accent); color: var(--dark); font-weight: 700;
    padding: 0.65rem 1.5rem; border-radius: 50px; border: none; font-size: 0.85rem;
    transition: var(--transition); text-transform: uppercase; letter-spacing: 1px;
}
.btn-submit:hover { background: var(--accent-hover); transform: translateY(-2px); }

.contact-info-card {
    background: var(--primary); color: var(--white);
    border-radius: var(--radius-lg); padding: 1.5rem; height: 100%;
}
.contact-info-item { display: flex; align-items: flex-start; gap: 0.6rem; margin-bottom: 1rem; }
.contact-info-item:last-child { margin-bottom: 0; }
.contact-info-item i {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(226,183,20,0.15); color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; flex-shrink: 0;
}
.contact-info-item h5 { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.1rem; color: var(--white); }
.contact-info-item p, .contact-info-item a { color: rgba(255,255,255,0.6); font-size: 0.85rem; margin: 0; }
.contact-info-item a:hover { color: var(--accent); }

/* Login */
.login-section {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--dark)); padding: 2rem;
}
.login-card {
    background: var(--white); border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2); overflow: hidden;
    width: 100%; max-width: 800px; display: grid; grid-template-columns: 1fr 1fr;
}
.login-brand {
    background: linear-gradient(135deg, var(--primary), #16213e);
    padding: 2.5rem; display: flex; flex-direction: column;
    justify-content: center; align-items: center; text-align: center; color: var(--white);
}
.login-brand img { height: 70px; margin-bottom: 1.2rem; filter: brightness(0) invert(1); }
.login-brand h2 { color: var(--white); font-size: 1.5rem; margin-bottom: 0.5rem; }
.login-brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.login-form-section { padding: 2.5rem; }
.login-form-section h3 { font-size: 1.3rem; margin-bottom: 0.3rem; }
.login-form-section .subtitle { color: var(--text-light); margin-bottom: 1.5rem; font-size: 0.9rem; }
.login-form .form-floating { position: relative; }
.login-form .form-floating i {
    position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
    color: var(--gray-400); z-index: 5;
}
.login-form .form-control { padding-left: 2.5rem; }
.login-form .form-floating label { padding-left: 2.5rem; }
.btn-login { width: 100%; padding: 0.8rem; font-weight: 700; border-radius: 50px; margin-top: 0.75rem; }

/* Animations */
.fade-in-up { opacity: 0; transform: translateY(25px); transition: opacity 0.5s, transform 0.5s; }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }
.fade-in-left { opacity: 0; transform: translateX(-25px); transition: opacity 0.5s, transform 0.5s; }
.fade-in-left.visible { opacity: 1; transform: translateX(0); }
.fade-in-right { opacity: 0; transform: translateX(25px); transition: opacity 0.5s, transform 0.5s; }
.fade-in-right.visible { opacity: 1; transform: translateX(0); }
.stagger > * { opacity: 0; transform: translateY(15px); transition: opacity 0.4s, transform 0.4s; }
.stagger > *:nth-child(1) { transition-delay: 0.05s; }
.stagger > *:nth-child(2) { transition-delay: 0.1s; }
.stagger > *:nth-child(3) { transition-delay: 0.15s; }
.stagger > *:nth-child(4) { transition-delay: 0.2s; }
.stagger > *:nth-child(5) { transition-delay: 0.25s; }
.stagger > *:nth-child(6) { transition-delay: 0.3s; }
.stagger > *.visible { opacity: 1; transform: translateY(0); }

/* Form Messages */
.form-message { padding: 0.8rem; border-radius: var(--radius); margin-top: 0.75rem; display: none; }
.form-message.success { background: #d4edda; color: #155724; display: block; }
.form-message.error { background: #f8d7da; color: #721c24; display: block; }

/* Video */
.video-wrapper { border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.1); aspect-ratio: 16/9; }
.video-wrapper video { width: 100%; height: 100%; object-fit: cover; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.about-video { }
.video-wrapper-sm {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    aspect-ratio: 16/9;
}
.video-wrapper-sm video { width: 100%; height: 100%; object-fit: cover; }
.about-content h2 { font-size: 1.7rem; margin-bottom: 0.75rem; }
.about-content p { color: var(--text); margin-bottom: 0.75rem; font-size: 0.95rem; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-top: 1.25rem; }
.stat-item { text-align: center; padding: 1rem; background: var(--gray-50); border-radius: var(--radius); }
.stat-number { font-size: 1.8rem; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 0.2rem; }
.stat-label { font-size: 0.7rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; }

/* Feature Cards Small */
.feature-card-sm {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
    height: 100%;
}
.feature-card-sm:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
.feature-card-sm i {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
}
.feature-card-sm h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.25rem; }
.feature-card-sm p { font-size: 0.8rem; color: var(--text-light); margin: 0; }

/* Responsive */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(26,26,46,0.98); padding: 1rem;
        border-radius: var(--radius); margin-top: 0.5rem;
    }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-links-row { justify-content: center; }
    .footer-bottom { justify-content: center; text-align: center; }
    .about-grid { grid-template-columns: 1fr; }
    .login-card { grid-template-columns: 1fr; }
    .login-brand { padding: 1.5rem; }
}
@media (max-width: 767px) {
    .section { padding: 2.5rem 0; }
    .hero-section { height: 45vh; min-height: 280px; }
    .hero-content h1 { font-size: 1.6rem; }
    .page-banner { height: 25vh; min-height: 180px; }
    .page-banner h1 { font-size: 1.8rem; }
    .product-carousel .carousel-item { height: 280px; }
}
@media (max-width: 575px) {
    .footer-content { gap: 1rem; }
    .footer-links-row { gap: 1rem; flex-wrap: wrap; justify-content: center; }
}
