/* ===== VARIÁVEIS CSS ===== */
:root {
    --primary-color: #c41e3a;
    --primary-dark: #a01830;
    --secondary-color: #4a4a4a;
    --gray-light: #f5f5f5;
    --gray-medium: #e0e0e0;
    --gray-dark: #333333;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-strong: 0 8px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* ===== RESET E BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--gray-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ===== MENU LATERAL ===== */
.lateral-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: var(--secondary-color);
    z-index: 1000;
    transition: left 0.4s ease;
    display: flex;
}

.lateral-menu.open {
    left: 0;
}

.menu-tab {
    position: absolute;
    right: -45px;
    top: 120px;
    width: 45px;
    height: 140px;
    background: var(--secondary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
    transition: var(--transition);
}

.menu-tab:hover {
    background: var(--gray-dark);
}

.menu-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: var(--white);
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.menu-arrow {
    color: var(--white);
    font-size: 20px;
    font-weight: 300;
    transition: var(--transition);
}

.lateral-menu.open .menu-arrow {
    transform: rotate(180deg);
}

.menu-content {
    width: 100%;
    padding: 60px 30px;
}

.menu-content ul li {
    margin-bottom: 20px;
}

.menu-content ul li a {
    color: var(--white);
    font-size: 16px;
    font-weight: 400;
    transition: var(--transition);
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-content ul li a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: relative;
    z-index: 10;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--white);
    font-size: 18px;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
}

.btn-orcamento {
    background: var(--secondary-color);
    color: var(--white);
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn-orcamento:hover {
    background: var(--primary-color);
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    position: relative;
    z-index: 10;
}

.hero-logo {
    margin-bottom: 40px;
}

.hero-logo img {
    height: 450px;
    width: auto;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content h1 span {
    color: var(--primary-color);
}

.hero-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-bottom: 30px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 40px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ===== QUEM SOMOS ===== */
.quem-somos {
    padding: 100px 0;
    background: var(--white);
}

.quem-somos-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.quem-somos-text {
    flex: 1;
}

.quem-somos-text h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--gray-dark);
    margin-bottom: 15px;
}

.quem-somos-text .destaque {
    font-size: 20px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.quem-somos-text p {
    font-size: 16px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.quem-somos-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.quem-somos-image img {
    max-width: 100%;
    height: auto;
    transform: scaleX(-1);
}

/* ===== DIFERENCIAIS ===== */
.diferenciais {
    padding: 100px 0;
    background: var(--gray-light);
}

.diferenciais h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--gray-dark);
    text-align: center;
    margin-bottom: 60px;
}

.diferenciais-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.diferencial-item {
    background: var(--white);
    padding: 40px 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.diferencial-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.diferencial-item i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.diferencial-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: 15px;
}

.diferencial-item p {
    font-size: 14px;
    color: var(--secondary-color);
}

.selo-qualidade {
    text-align: center;
    margin-top: 60px;
}

.selo-qualidade img {
    max-width: 200px;
    height: auto;
}

/* ===== SERVIÇOS - CARROSSEL 3D ===== */
.servicos {
    padding: 100px 0;
    background: var(--white);
    overflow: hidden;
}

.servicos h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--gray-dark);
    text-align: center;
    margin-bottom: 15px;
}

.servicos-subtitulo {
    font-size: 18px;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 60px;
}

.carousel-3d {
    perspective: 1200px;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-container {
    position: relative;
    width: 320px;
    height: 400px;
    transform-style: preserve-3d;
    animation: rotate3d 20s linear infinite;
}

.carousel-container:hover {
    animation-play-state: paused;
}

@keyframes rotate3d {
    from {
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(360deg);
    }
}

.carousel-card {
    position: absolute;
    width: 320px;
    height: 400px;
    background: linear-gradient(145deg, var(--white), var(--gray-light));
    border: 2px solid var(--gray-medium);
    border-radius: 15px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    backface-visibility: hidden;
    transition: transform 0.5s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow);
}

.carousel-card:nth-child(1) {
    transform: rotateY(0deg) translateZ(280px);
}

.carousel-card:nth-child(2) {
    transform: rotateY(90deg) translateZ(280px);
}

.carousel-card:nth-child(3) {
    transform: rotateY(180deg) translateZ(280px);
}

.carousel-card:nth-child(4) {
    transform: rotateY(270deg) translateZ(280px);
}

.carousel-card:hover {
    transform: scale(1.08);
    box-shadow: var(--shadow-strong);
    z-index: 100;
    background: var(--white);
}

.carousel-card i {
    font-size: 64px;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.carousel-card h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: 15px;
}

.carousel-card p {
    font-size: 16px;
    color: var(--secondary-color);
    line-height: 1.6;
}

/* ===== CONTATO ===== */
.contato {
    padding: 100px 0;
    background: var(--gray-dark);
}

.contato h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--white);
    text-align: center;
    margin-bottom: 15px;
}

.contato-subtitulo {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-bottom: 60px;
}

.contato-info {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    text-align: left;
}

.info-item i {
    font-size: 32px;
    color: var(--primary-color);
    margin-top: 5px;
}

.info-item h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
}

.info-item p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gray-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo img {
    height: 60px;
    width: auto;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 1024px) {
    .diferenciais-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quem-somos-content {
        flex-direction: column;
    }
    
    .carousel-container {
        width: 280px;
        height: 350px;
    }
    
    .carousel-card {
        width: 280px;
        height: 350px;
    }
    
    .carousel-card:nth-child(1) {
        transform: rotateY(0deg) translateZ(220px);
    }
    
    .carousel-card:nth-child(2) {
        transform: rotateY(90deg) translateZ(220px);
    }
    
    .carousel-card:nth-child(3) {
        transform: rotateY(180deg) translateZ(220px);
    }
    
    .carousel-card:nth-child(4) {
        transform: rotateY(270deg) translateZ(220px);
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-logo img {
        height: 250px;
    }
    
    .hero-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .diferenciais-grid {
        grid-template-columns: 1fr;
    }
    
    .contato-info {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .info-item {
        text-align: center;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .carousel-3d {
        height: 380px;
    }
    
    .carousel-container {
        width: 240px;
        height: 300px;
    }
    
    .carousel-card {
        width: 240px;
        height: 300px;
        padding: 30px 20px;
    }
    
    .carousel-card i {
        font-size: 48px;
    }
    
    .carousel-card h3 {
        font-size: 20px;
    }
    
    .carousel-card p {
        font-size: 14px;
    }
    
    .carousel-card:nth-child(1) {
        transform: rotateY(0deg) translateZ(180px);
    }
    
    .carousel-card:nth-child(2) {
        transform: rotateY(90deg) translateZ(180px);
    }
    
    .carousel-card:nth-child(3) {
        transform: rotateY(180deg) translateZ(180px);
    }
    
    .carousel-card:nth-child(4) {
        transform: rotateY(270deg) translateZ(180px);
    }
}

