/* Reset e Estilos Gerais */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    color: #2c3e50;
    line-height: 1.6;
}

/* Navegação Moderna */
.navbar { 
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-brand i {
    font-size: 2rem;
    color: #ff6b6b;
}

.navbar ul { 
    list-style: none; 
    display: flex;
    gap: 10px;
}

.navbar ul li { 
    display: inline; 
}

.navbar ul li a { 
    color: #e0e0e0; 
    text-decoration: none; 
    font-size: 16px;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar ul li a:hover { 
    color: #fff; 
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.navbar ul li a.active { 
    color: #fff;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    box-shadow: 0 4px 15px rgba(238,90,36,0.3);
}

.nav-toggle {
    display: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

/* Container */
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 20px; 
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Home Header */
.header-info { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 30px; 
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.header-info:hover {
    transform: translateY(-5px);
}

.logo-img {
    max-width: 180px;
    height: auto;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.contact-info h1 { 
    font-size: 2.5em; 
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
}

.contact-info .address { 
    color: #2980b9; 
    font-weight: 600;
}

.contact-info .phones { 
    color: #e74c3c; 
    font-weight: 700; 
    font-size: 1.2em;
}

/* Conteúdo Home */
.home-body { 
    display: flex; 
    gap: 30px; 
    margin-top: 20px;
}

.home-text { 
    flex: 1; 
    text-align: justify; 
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.home-text:hover {
    transform: translateY(-3px);
}

.home-text p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.home-img { 
    width: 45%; 
}

.machine-img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.machine-img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* Quem Somos */
.quem-somos-grid { 
    display: flex; 
    gap: 40px; 
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.quem-somos-imgs {
    flex: 1;
}

.caixas-img {
    width: 100%;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.caixas-img:hover {
    transform: scale(1.02);
}

.quem-somos-text { 
    flex: 1.5;
}

.quem-somos-text h3 { 
    color: #2c3e50; 
    margin-bottom: 20px; 
    font-size: 2em;
    position: relative;
    padding-bottom: 10px;
}

.quem-somos-text h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.quem-somos-text p { 
    margin-bottom: 20px; 
    text-align: justify;
    line-height: 1.8;
}

/* Modelos (Formulário) */
.modelos-container { 
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.modelos-container h3 {
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 1.5em;
}

.form-row { 
    display: flex; 
    gap: 25px; 
    margin-bottom: 25px; 
}

.form-group { 
    flex: 1; 
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group.dimensions { 
    width: 100%; 
}

.dimensions-group { 
    display: flex; 
    gap: 15px; 
    flex-wrap: wrap; 
}

.dimensions-group span { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    flex: 1; 
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 10px;
}

input[type="number"], select { 
    padding: 10px; 
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    width: 100%;
    font-size: 14px;
    transition: all 0.3s ease;
}

input[type="number"]:focus, select:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255,107,107,0.1);
}

.quality-row { 
    display: flex; 
    gap: 25px; 
}

.quality-box { 
    flex: 1; 
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 20px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.quality-box:hover {
    border-color: #ff6b6b;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.quality-box h4 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 10px 0;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.btn-calc { 
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: #fff; 
    padding: 14px 30px; 
    border: none; 
    border-radius: 50px;
    cursor: pointer; 
    margin-top: 20px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-calc:hover { 
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(238,90,36,0.3);
}

/* Resultado da Simulação */
.quote-result { 
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border: none;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.quote-result h3 { 
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 3px solid #ff6b6b;
    padding-bottom: 12px;
    display: inline-block;
}

.result-info p { 
    margin-bottom: 10px; 
    font-size: 1.05em;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 10px;
}

/* CAIXA 3D CSS */
.box-3d-container { 
    margin: 40px 0; 
    text-align: center; 
}

.box-3d-container h4 { 
    margin-bottom: 20px; 
    color: #2c3e50;
}

.scene { 
    width: 200px; 
    height: 200px; 
    margin: 50px auto; 
    perspective: 600px; 
}

.cube { 
    width: 100%; 
    height: 100%; 
    position: relative; 
    transform-style: preserve-3d; 
    transform: rotateX(-30deg) rotateY(45deg); 
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.scene:hover .cube { 
    transform: rotateX(-30deg) rotateY(405deg); 
}

.face { 
    position: absolute; 
    background: linear-gradient(135deg, rgba(210, 180, 140, 0.95), rgba(184, 134, 11, 0.95));
    border: 2px solid #8B7355;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.3);
    backdrop-filter: blur(2px);
    transition: all 0.3s ease;
}

.face:hover {
    background: rgba(210, 180, 140, 1);
    transform: scale(1.02);
}

.face.front { transform: rotateY(0deg) translateZ(calc(var(--depth, 100px) / 2)); left: calc(50% - var(--width, 150px) / 2); top: calc(50% - var(--height, 100px) / 2); }
.face.back { transform: rotateY(180deg) translateZ(calc(var(--depth, 100px) / 2)); left: calc(50% - var(--width, 150px) / 2); top: calc(50% - var(--height, 100px) / 2); }
.face.right { width: var(--depth, 100px); transform: rotateY(90deg) translateZ(calc(var(--width, 150px) / 2)); left: calc(50% - var(--depth, 100px) / 2); top: calc(50% - var(--height, 100px) / 2); }
.face.left { width: var(--depth, 100px); transform: rotateY(-90deg) translateZ(calc(var(--width, 150px) / 2)); left: calc(50% - var(--depth, 100px) / 2); top: calc(50% - var(--height, 100px) / 2); }
.face.top { width: var(--width, 150px); height: var(--depth, 100px); transform: rotateX(90deg) translateZ(calc(var(--height, 100px) / 2)); left: calc(50% - var(--width, 150px) / 2); top: calc(50% - var(--depth, 100px) / 2); }
.face.bottom { width: var(--width, 150px); height: var(--depth, 100px); transform: rotateX(-90deg) translateZ(calc(var(--height, 100px) / 2)); left: calc(50% - var(--width, 150px) / 2); top: calc(50% - var(--depth, 100px) / 2); }

.box-legend { 
    font-size: 0.9em; 
    color: #666; 
    font-style: italic; 
    margin-top: 15px;
}

/* Contato */
.contact-page { 
    display: flex; 
    gap: 40px; 
    align-items: flex-start;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.via-email-box {
    flex: 1;
}

.email-icon-box {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 30px;
    transition: transform 0.3s ease;
}

.email-icon-box:hover {
    transform: scale(1.02);
}

.email-icon-box i {
    font-size: 80px;
    margin-bottom: 20px;
}

.contact-details { 
    flex: 1;
    text-align: left;
}

.contact-details h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.contact-details p {
    margin-bottom: 10px;
}

.contact-person {
    font-weight: 700;
    color: #ff6b6b;
    font-size: 1.1em;
}

.contact-links { 
    list-style: none; 
    margin-top: 25px;
}

.contact-links li { 
    margin-bottom: 10px;
}

.contact-links li a { 
    color: #3498db;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.contact-links li a:hover {
    color: #ff6b6b;
}

/* Página Caixas */
.caixas-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.caixas-modelos-img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.caixas-modelos-img:hover {
    transform: scale(1.02);
}

.caixas-descricao p {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* Página Como Chegar */
.chegar-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.fachada-img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.fachada-img:hover {
    transform: scale(1.02);
}

.map-link {
    text-align: center;
    margin-top: 20px;
}

.btn-map {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.btn-map:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(52,152,219,0.3);
}

/* Page Title */
.page-title {
    font-size: 2.2em;
    margin-bottom: 30px;
    color: #2c3e50;
    position: relative;
    padding-bottom: 15px;
}

.page-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-radius: 2px;
}

/* Footer */
.footer { 
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    margin-top: 60px;
    padding: 40px 0 20px;
    color: #e0e0e0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h4 {
    color: white;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ff6b6b;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.credits { 
    color: #ff6b6b; 
    font-weight: 600;
    margin-top: 5px;
}

/* Utilitários */
.alert { 
    padding: 15px 20px; 
    margin-bottom: 20px; 
    border-radius: 12px;
    font-weight: 500;
    animation: fadeInUp 0.4s ease-out;
}

.alert.error { 
    background: #fee; 
    color: #c0392b;
    border-left: 4px solid #c0392b;
}

.alert.success { 
    background: #e8f8f5; 
    color: #27ae60;
    border-left: 4px solid #27ae60;
}

/* Responsivo */
@media (max-width: 768px) {
    .navbar ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #1a1a2e;
        padding: 20px;
        gap: 15px;
    }
    
    .navbar ul.show {
        display: flex;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .form-row { 
        flex-direction: column; 
    }
    
    .home-body { 
        flex-direction: column; 
    }
    
    .home-img { 
        width: 100%; 
    }
    
    .quem-somos-grid { 
        flex-direction: column; 
    }
    
    .contact-page { 
        flex-direction: column; 
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-section h4 {
        justify-content: center;
    }
    
    .header-info {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .page-title:after {
        left: 50%;
        transform: translateX(-50%);
    }
}