/* ==========================================================================
   CSS Variables & Theming
   ========================================================================== */
:root {
    /* Brand Colors extracted from reference */
    --primary-color: #b94d02; /* Teal */
    --primary-dark: #a33c01;
    --primary-light: #c65c0e;
    
    --secondary-color: #fbb112; /* Premium Mustard/Gold */
    --secondary-hover: #dd9700;
    
    /* Neutrals */
    --bg-light: #FFFFFF;
    --bg-alt: #F9F9F9;
    --bg-beige: #ECE9DD; /* Cream/Beige transition background */
    --text-dark: #3A3A3A;
    --text-muted: #666666;
    --text-light: #FFFFFF;
    
    /* Layout */
    --max-width: 1200px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --box-shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.bg-light { background-color: var(--bg-alt); }
.center { text-align: center; }

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 20px; color: var(--text-light); }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); margin-bottom: 20px; }
h3 { font-size: 1.5rem; margin-bottom: 10px; }

p { margin-bottom: 15px; }

/* Section Badges */
.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(187, 158, 91, 0.15);
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 50px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.badge-light {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(44, 138, 121, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-light);
}
.btn-secondary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(187, 158, 91, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--text-light);
    color: var(--text-light);
}
.btn-outline:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background-color: transparent;
}

.header.scrolled {
    padding: 12px 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 70px; /* ~50% larger than 45px */
    width: auto;
    display: block;
    transition: var(--transition);
}

.logo .logo-scrolled {
    display: none;
}

.header.scrolled .logo img {
    height: 60px; /* ~50% larger than 40px */
}

.header.scrolled .logo .logo-default {
    display: none;
}

.header.scrolled .logo .logo-scrolled {
    display: block;
}

.footer .logo img {
    height: 80px; /* Pronounced footer logo */
}

.nav-menu { display: flex; align-items: center; }

.nav-list { display: flex; gap: 30px; }

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}
.header.scrolled .nav-link { color: var(--text-dark); }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover, .nav-link.active { color: var(--secondary-color); }

.social-icons a {
    color: var(--text-light);
    margin-left: 15px;
    font-size: 1.1rem;
}
.header.scrolled .social-icons a { color: var(--text-dark); }
.social-icons a:hover { color: var(--secondary-color); transform: translateY(-3px); display: inline-block;}

.mobile-only { display: none; }
.desktop-only { display: block; }
.header-right { display: flex; align-items: center; gap: 20px;}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-light);
    transition: var(--transition);
}
.header.scrolled .menu-toggle .bar { background-color: var(--text-dark); }

.menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-image: url('../assets/hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%;
    background: linear-gradient(135deg, rgba(185,77,2,0.80) 0%, rgba(151,63,1,0.5) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    text-align: left;
    padding-top: 80px;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
}

/* ==========================================================================
   Diagonal Transitions (The "Novo Horizonte" style)
   ========================================================================== */
.diagonal-bottom {
    position: relative;
    z-index: 2;
    background-color: var(--bg-light);
}
.diagonal-bottom::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: 0;
    width: 100%;
    height: 150px;
    background-color: var(--bg-light);
    clip-path: polygon(0 0, 100% 0, 100% 30%, 0 100%);
    z-index: -1;
}

.diagonal-top {
    position: relative;
    z-index: 1;
    background-color: var(--primary-color);
}
.diagonal-top::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 0;
    width: 100%;
    height: 150px;
    background-color: var(--primary-color);
    clip-path: polygon(0 80%, 100% 0, 100% 100%, 0 100%);
    z-index: -1;
}

/* ==========================================================================
   Empresa Section
   ========================================================================== */
.empresa {
    padding: 100px 0 120px;
}

.empresa-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.stats-container {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.stat-box { display: flex; flex-direction: column; }

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.stat-desc {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.empresa-image { position: relative; }

.image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.image-wrapper img {
    border-radius: var(--radius-lg);
    transition: transform 0.7s ease;
    min-height: 400px;
    object-fit: cover;
}
.image-wrapper:hover img { transform: scale(1.05); }

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--secondary-color);
    color: var(--bg-light);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 8px solid var(--bg-light);
    box-shadow: var(--box-shadow);
    z-index: 2;
}

.experience-badge .years { font-size: 2.5rem; font-weight: 800; line-height: 1; }
.experience-badge .text { font-size: 1rem; font-weight: 600; text-transform: uppercase; }

/* ==========================================================================
   Features Scroll Section
   ========================================================================== */
.features-scroll {
    background-color: var(--bg-beige);
    padding: 110px 0 80px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    margin-top: -30px; /* Overlap with diagonal slant */
}

.container-features {
    max-width: 100%;
    padding: 0;
}

.features-track {
    display: flex;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.features-track:hover {
    animation-play-state: paused;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 60px;
    flex-shrink: 0;
    min-width: 400px;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.feature-item:hover .feature-icon {
    background: var(--primary-color);
    color: var(--text-light);
    transform: scale(1.1) rotate(10deg);
}

.feature-text h3 {
    font-size: 1.15rem;
    margin-bottom: 5px;
    color: var(--text-dark);
    font-weight: 700;
}

.feature-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.4;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive adjustments for features */
@media screen and (max-width: 992px) {
    .feature-item { min-width: 350px; padding: 0 40px; }
}

@media screen and (max-width: 768px) {
    .features-scroll { padding: 60px 0 40px; }
    .feature-item { padding: 0 30px; min-width: 320px; }
    .feature-icon { width: 60px; height: 60px; font-size: 1.4rem; }
    .feature-text h3 { font-size: 1.05rem; }
    .feature-text p { font-size: 0.85rem; }
}

/* ==========================================================================
   Showroom Section
   ========================================================================== */
.showroom {
    padding: 100px 0 160px;
}

.showroom-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Gallery */
.showroom-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.showroom-photos a {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1;
}

.showroom-photos img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.showroom-photos a:hover img {
    transform: scale(1.08);
}

.photo-hover {
    position: absolute;
    inset: 0;
    background: rgba(185, 77, 2, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    color: #fff;
    font-size: 1.6rem;
}

.showroom-photos a:hover .photo-hover {
    opacity: 1;
}

/* Text col */
.showroom-text .section-badge {
    background-color: rgba(185, 77, 2, 0.1);
    color: var(--primary-color);
}

/* Lightbox */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-img-wrap {
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img-wrap img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: lb-zoom 0.2s ease;
}

@keyframes lb-zoom {
    from { transform: scale(0.9); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.lightbox-close, .modal-close {
    position: absolute !important;
    top: 30px !important;
    right: 30px !important;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff !important;
    font-size: 1.6rem;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 999999 !important;
    text-decoration: none;
    line-height: 1;
    margin: 0 !important;
}

.lightbox-close:hover, .modal-close:hover { 
    background: var(--primary-color);
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255,255,255,0.2) !important;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    font-size: 1.6rem;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10000;
}
.lightbox-nav:hover { background: var(--primary-color); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
}

/* Responsive */
@media screen and (max-width: 992px) {
    .showroom-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media screen and (max-width: 768px) {
    .showroom-photos { gap: 4px; }
    .lightbox-nav { width: 42px; height: 42px; font-size: 1.2rem; }
}

/* ==========================================================================
   Projetos Entregues Section
   ========================================================================== */
.projetos {
    padding: 120px 0;
    background-color: var(--bg-light);
    position: relative;
    z-index: 2;
}

/* Diagonal bottom pointing to Contato (primary color) */
.projetos::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: 0;
    width: 100%;
    height: 150px;
    background-color: var(--bg-light);
    clip-path: polygon(0 0, 100% 0, 100% 30%, 0 100%);
    z-index: -1;
}

/* Projetos Grid Section */
.projetos-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.projetos-grid a {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
}

.projetos-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.projetos-grid a:hover img {
    transform: scale(1.05);
}

.projetos-grid a .photo-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 15px;
    text-align: center;
}

.projetos-grid a:hover .photo-hover {
    opacity: 1;
}

.projetos-grid .photo-info h3 {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #fff;
    font-weight: 600;
}

.projetos-grid i {
    font-size: 1.2rem;
}

/* Responsive for Projetos Grid */
@media (max-width: 1200px) {
    .projetos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .projetos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .projetos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Produtos Section
   ========================================================================== */
.produtos { padding: 120px 0; }

.section-header {
    max-width: 650px;
    margin: 0 auto 60px;
}
.section-header p { color: var(--text-muted); }

.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.produto-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.produto-card:hover { box-shadow: var(--box-shadow-hover); transform: translateY(-10px); }

.produto-img {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.produto-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}
.produto-card:hover .produto-img img { transform: scale(1.1); }

.produto-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(185, 77, 2, 0.8);   /*cor do mouse over produtos*/
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}
.produto-card:hover .produto-overlay { opacity: 1; }

.produto-info {
    padding: 25px;
    text-align: center;
}
.produto-info p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0; }

.center-btn { text-align: center; margin-top: 20px;}

/* ==========================================================================
   Contato Section
   ========================================================================== */
.contato {
    padding: 120px 0;
    color: var(--text-light);
}

.contato h2 { color: var(--text-light); }
.contato p { color: rgba(255,255,255,0.8); }

.contato-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contact-list { margin-top: 40px; }
.contact-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}
.contact-list i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-top: 5px;
}
.contact-list strong { font-size: 1.1rem; display: block; margin-bottom: 5px; }
.contact-list p { margin: 0; }

.contato-form-wrapper {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--box-shadow);
}

.form-group { margin-bottom: 20px; }

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #E0E0E0;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--bg-alt);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--bg-light);
    box-shadow: 0 0 0 3px rgba(44, 138, 121, 0.1);
}

.btn-block { width: 100%; border: none; font-family: inherit;}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #802900;
    color: #fff;
    padding-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 20px;
    font-size: 1.8rem;
}
.footer-brand p { color: rgba(255,255,255,0.7); max-width: 350px; }

.footer-links h3, .footer-social h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--secondary-color);
    position: relative;
}
.footer-links h3::after, .footer-social h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links ul li { margin-bottom: 12px; }
.footer-links ul li a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}
.footer-links ul li a:hover { color: var(--secondary-color); padding-left: 5px; }

.social-wrapper {
    display: flex;
    gap: 15px;
}
.social-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: #fff;
}
.social-circle:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    background-color: rgba(0,0,0,0.2);
    padding: 20px 0;
    text-align: center;
}
.footer-bottom p {
    margin: 0;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.slide-right { transform: translateX(-50px); }
.animate-on-scroll.slide-left { transform: translateX(50px); }

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0);
}

/* ==========================================================================
   Responsive Queries
   ========================================================================== */
@media screen and (max-width: 992px) {
    .empresa-grid, .contato-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .experience-badge { right: 20px; bottom: -20px; }
    
    .footer-content { grid-template-columns: 1fr 1fr; }
}

@media screen and (max-width: 768px) {
    /* Mobile Navigation */
    .desktop-only { display: none; }
    .mobile-only { display: flex; margin-bottom: 20px; justify-content: center;}
    
    .menu-toggle { display: flex; }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--bg-light);
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        transition: right 0.4s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active { right: 0; }
    
    .nav-list {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        margin-bottom: 40px;
    }
    
    .nav-link { font-size: 1.2rem; color: var(--text-dark); }
    .nav-link.active { color: var(--primary-color); }
    
    .hero p { font-size: 1rem; }
    
    .footer-content { grid-template-columns: 1fr; gap: 40px; }
    
    .diagonal-bottom::after { height: 80px; bottom: -40px;}
    .diagonal-top::before { height: 80px; top: -40px;}
}

/* ==========================================================================
   Floating Action Buttons
   ========================================================================== */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.float-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn-whatsapp {
    background-color: #25D366;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    color: var(--text-light);
}

.btn-top {
    background-color: var(--primary-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.btn-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-top:hover {
    background-color: var(--primary-dark);
    color: var(--text-light);
    transform: translateY(-5px);
}

@media screen and (max-width: 768px) {
    .floating-buttons {
        bottom: 20px;
        right: 20px;
    }
    
    .float-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   Product Single Page
   ========================================================================== */
.product-single {
    padding: 150px 0 100px;
    min-height: 80vh;
}

.product-header {
    margin-bottom: 50px;
}
.product-header h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}
.product-header .breadcrumb {
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.breadcrumb {
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.breadcrumb a { color: var(--primary-color); font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb i { margin: 0 10px; font-size: 0.8rem; }

.product-single-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.product-single-grid .modal-left-col,
.product-single-grid .modal-right-col {
    width: 100%;
    border-left: none;
    padding: 0;
}

/* Product Gallery */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image {
    width: 100%;
    height: 500px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: zoom-in;
    position: relative;
    box-shadow: var(--box-shadow);
}
.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.main-image:hover img {
    transform: scale(1.02);
}
.main-image .zoom-hint {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(255,255,255,0.8);
    color: var(--text-dark);
    padding: 8px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    pointer-events: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.thumbnail-list {
    display: flex;
    gap: 15px;
}
.thumbnail {
    width: 100px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}
.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.thumbnail.active {
    border-color: var(--primary-color);
}
.thumbnail:hover {
    opacity: 0.8;
}

/* Product Details */
.product-details h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.product-price {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 25px;
}

.product-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.product-specs {
    background-color: var(--bg-alt);
    padding: 25px;
    border-radius: var(--radius-sm);
    margin-bottom: 30px;
    border-left: 4px solid var(--secondary-color);
}
.product-specs h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}
.product-specs ul li {
    display: flex;
    margin-bottom: 10px;
    font-size: 0.95rem;
}
.product-specs ul li strong {
    width: 120px;
    color: var(--text-dark);
}

.product-actions {
    display: flex;
    gap: 20px;
}
.product-actions .btn {
    flex: 1;
}

/* ==========================================================================
   Lightbox Modal
   ========================================================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 4px;
    object-fit: contain;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}
.lightbox-close:hover {
    color: var(--secondary-color);
}

@media screen and (max-width: 992px) {
    .product-single-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .main-image { height: 400px; }
}

@media screen and (max-width: 768px) {
    .main-image { height: 300px; }
    .thumbnail { width: 80px; height: 60px; }
    .product-actions { flex-direction: column; }
}

/* ==========================================================================
   Product Modal Quick View (Bassetti Style)
   ========================================================================== */
.product-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(5, 10, 15, 0.9);
    box-shadow: inset 0 0 150px rgba(0, 50, 100, 0.3); /* Subtle blue glow like reference */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.product-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.product-modal-content {
    background: #ffffff;
    width: 90vw;
    max-width: 1100px;
    height: 85vh;
    border-radius: 6px;
    position: relative;
    display: flex;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.product-modal-overlay.active .product-modal-content {
    transform: scale(1);
}

/* modal-close unified above */

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    z-index: 1000;
    transition: color 0.3s, transform 0.3s;
    background: transparent;
    border: none;
    box-shadow: none;
    width: auto;
    height: auto;
}
.modal-nav.prev { left: 40px; }
.modal-nav.next { right: 40px; }
.modal-nav:hover {
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

/* Modal Inner Columns */
.modal-left-col {
    width: 66.66%;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
}

/* Swiper Slider Customization */
.product-swiper {
    width: 100%;
    height: 100%; /* Fill the entire height of the parent column */
    border-radius: 0;
    overflow: hidden;
    position: relative;
}

.product-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    height: 100%;
}

.product-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-swiper:hover .swiper-slide img {
    transform: scale(0.95);
}

.product-swiper .swiper-pagination {
    bottom: 10px !important;
}

.product-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: transparent;
    border: 1.5px solid var(--secondary-color);
    opacity: 1;
}

.product-swiper .swiper-pagination-bullet-active {
    background: var(--secondary-color);
}

.product-swiper .swiper-button-next,
.product-swiper .swiper-button-prev {
    color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.8);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.product-swiper .swiper-button-next::after,
.product-swiper .swiper-button-prev::after {
    font-size: 1.2rem;
    font-weight: bold;
}

.product-swiper .swiper-button-next:hover,
.product-swiper .swiper-button-prev:hover {
    background: var(--secondary-color);
    color: #fff;
}

.modal-right-col {
    width: 33.33%;
    background-color: #ffffff;
    padding: 50px 40px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #f8f8f8;
}

.info-card {
    background: transparent;
    padding: 30px;
    padding-left: 0;
    margin-bottom: 20px;
}

.modal-right-col .modal-title {
    font-size: 1.8rem;
    font-weight: 700;
	text-transform: uppercase;
    color: #3b424c;
    margin-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 20px;
}

.modal-right-col .modal-metrics {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-right-col .modal-metrics li {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 12px;
    line-height: 1.5;
}

@media screen and (max-width: 1024px) {
    .modal-right-col { width: 33.33%; padding: 40px 30px; }
    .modal-left-col { width: 66.66%; }
}

@media screen and (max-width: 768px) {
    .product-modal-content {
        flex-direction: column;
        width: 100%;
        max-width: 100vw;
        height: 100vh; /* Full screen on mobile */
        border-radius: 0;
        overflow-y: auto;
    }
    .modal-left-col {
        width: 100%;
        height: auto;
        min-height: 50vh;
        padding: 30px 15px;
    }
    .modal-right-col {
        width: 100%;
        height: auto;
        border-left: none;
        padding: 30px 20px;
        overflow-y: visible;
    }
    .modal-close, .lightbox-close {
        top: auto !important;
        bottom: 30px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: 56px !important; 
        height: 56px !important;
        font-size: 1.6rem !important;
        background: var(--primary-color) !important;
        border: 2px solid #fff !important;
        box-shadow: 0 5px 15px rgba(0,0,0,0.4) !important;
    }
    /* Hide the huge external arrows on mobile to avoid overlapping */
    .modal-nav { display: none; }
}

/* Fix for iOS/Touch double tap issue: Make overlay always visible and remove hover transforms */
@media screen and (max-width: 768px) {
    .produto-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(185, 77, 2, 0.9) 0%, rgba(185, 77, 2, 0) 70%);
        align-items: flex-end;
        padding-bottom: 20px;
    }
    .produto-card:hover { transform: none; box-shadow: var(--box-shadow); }
    .produto-card:hover .produto-img img { transform: none; }
}

/* Showroom Layout Adjustments */
.showroom-text-top {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.showroom-text-top .section-badge {
  background-color: rgba(185, 77, 2, 0.1);
  color: var(--primary-color);
  margin-bottom: 15px;
}
.showroom-videos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.showroom-videos .video-container {
  width: 100%;
  aspect-ratio: 9/16;
  max-width: 320px;
  margin: 0 auto;
  background-color: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.showroom-videos video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.showroom-videos iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.showroom-videos .video-container:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.showroom-photos-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}
.showroom-photos-grid a {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1;
}
.showroom-photos-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.showroom-photos-grid a:hover img {
  transform: scale(1.05);
}
.showroom-photos-grid a .photo-hover {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  color: #fff; opacity: 0; transition: opacity 0.3s ease;
  font-size: 1.5rem;
}
.showroom-photos-grid a:hover .photo-hover {
  opacity: 1;
}

@media (max-width: 1200px) {
  .showroom-photos-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 992px) {
  .showroom-videos {
    grid-template-columns: repeat(2, 1fr);
  }
  .showroom-photos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .showroom-videos {
    grid-template-columns: 1fr;
  }
  .showroom-photos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
