/* ========================================
   SCENG - Soethe Cursino Engenharia
   Stylesheet Principal - Portugal
   ======================================== */

/* Cores da identidade SCENG original */
:root {
    --cor-principal: #801313;
    --cor-secundaria: #b73232;
    --cor-texto: #4a2c2a;
    --cor-fundo: #f9f5f4;
    --cor-link: #4a90e2;
    --cor-branco: #ffffff;
    --cor-cinza-claro: #f0f0f0;
    --cor-cinza-medio: #ddd;
}

/* Reset e Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: var(--cor-texto);
    background-color: var(--cor-fundo);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   HEADER STYLES
   ======================================== */
header {
    background: var(--cor-branco);
    padding: 15px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-top: 5px solid var(--cor-principal);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo:hover {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--cor-texto);
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--cor-principal);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--cor-principal);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--cor-principal);
    cursor: pointer;
}

/* ========================================
   MAIN CONTENT STYLES
   ======================================== */
main {
    margin-top: 80px;
    min-height: calc(100vh - 160px);
}

.page-header {
    background: linear-gradient(135deg, var(--cor-principal) 0%, var(--cor-secundaria) 100%);
    color: var(--cor-branco);
    padding: 80px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-header p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--cor-principal);
    font-weight: 600;
}

.section-subtitle {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--cor-principal);
    font-weight: 600;
}

/* ========================================
   HERO SECTION (Home Page)
   ======================================== */
.hero-section {
    background: linear-gradient(135deg, var(--cor-principal) 0%, var(--cor-secundaria) 100%);
    color: var(--cor-branco);
    padding: 10px 0 80px;
    text-align: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-content h1 {
    font-size: 40px;
    margin-bottom: 10px;
    font-weight: 500;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 10px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ========================================
   CAROUSEL STYLES
   ======================================== */
.carousel-container {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 40px;
    margin-bottom: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 650px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(100%);
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.carousel-slide.prev {
    transform: translateX(-100%);
}

.carousel-slide img,
.carousel-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(128, 19, 19, 0.8));
    color: white;
    padding: 30px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.carousel-slide.active .carousel-overlay {
    transform: translateY(0);
}

.carousel-overlay h3 {
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 600;
}

.carousel-overlay p {
    font-size: 16px;
    line-height: 1.4;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carousel-dot.active {
    background: var(--cor-branco);
    transform: scale(1.2);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: var(--cor-principal);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-nav:hover {
    background: var(--cor-branco);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.video-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.video-controls:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* ========================================
   SERVICES STYLES
   ======================================== */
.services-section {
    padding: 80px 0;
    background: var(--cor-branco);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--cor-fundo);
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    transition: all 0.3s ease;
    border: 1px solid var(--cor-cinza-medio);
    border-top: 5px solid var(--cor-principal);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--cor-principal);
    font-weight: 600;
}

.service-card p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--cor-texto);
}

.service-detail {
    background: var(--cor-branco);
    padding: 0;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 5px solid var(--cor-principal);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1fr 30%;
    overflow: hidden;
}

.service-detail-content {
    padding: 40px;
}

.service-detail h3 {
    color: var(--cor-principal);
    font-size: 24px;
    margin-bottom: 20px;
}

.service-detail ul {
    list-style: none;
    margin-top: 15px;
}

.service-detail li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.service-detail li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--cor-principal);
    font-weight: bold;
}

/* Service Carousel */
.service-carousel {
    position: relative;
    height: 100%;
    overflow: hidden;
    background: var(--cor-fundo);
}

.service-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.service-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.6s ease;
    transform: translateX(100%);
}

.service-carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.service-carousel-slide.prev {
    transform: translateX(-100%);
}

.service-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(128, 19, 19, 0.9));
    color: white;
    padding: 15px;
    font-size: 14px;
    text-align: center;
    font-weight: 600;
}

/* Service Carousel Navigation */
.service-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    color: var(--cor-principal);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.service-carousel-nav:hover {
    background: var(--cor-branco);
    transform: translateY(-50%) scale(1.1);
}

.service-carousel-prev {
    left: 8px;
}

.service-carousel-next {
    right: 8px;
}

/* Service Carousel Dots */
.service-carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.service-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-carousel-dot.active {
    background: var(--cor-branco);
    transform: scale(1.2);
}

/* ========================================
   ABOUT STYLES
   ======================================== */
.about-section {
    padding: 80px 0;
    background: var(--cor-fundo);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 50px;
}

.about-text h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: var(--cor-principal);
    font-weight: 600;
}

.about-text p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--cor-texto);
}

.quote-box {
    background: var(--cor-branco);
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid var(--cor-principal);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.quote-box blockquote {
    font-size: 18px;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
    color: var(--cor-texto);
}

.quote-box cite {
    font-weight: bold;
    font-style: normal;
    font-size: 16px;
    color: var(--cor-principal);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    background: var(--cor-branco);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-top: 5px solid var(--cor-principal);
}

.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 20px;
    object-fit: cover;
}

.team-member h4 {
    color: var(--cor-principal);
    font-size: 20px;
    margin-bottom: 10px;
}

.team-member .role {
    color: var(--cor-secundaria);
    font-weight: 600;
    margin-bottom: 15px;
}

/* ========================================
   CONTACT STYLES
   ======================================== */
.contact-section {
    padding: 80px 0;
    background: var(--cor-fundo);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.contact-item {
    background: var(--cor-branco);
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    border-top: 5px solid var(--cor-principal);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
}

.contact-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--cor-principal);
}

.contact-item p {
    font-size: 16px;
    color: var(--cor-texto);
}

.contact-form {
    background: var(--cor-branco);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-top: 5px solid var(--cor-principal);
    margin-top: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--cor-texto);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--cor-cinza-medio);
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cor-principal);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-primary {
    background-color: var(--cor-principal);
    color: var(--cor-branco);
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--cor-secundaria);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* ========================================
   FOOTER STYLES
   ======================================== */
footer {
    background: var(--cor-principal);
    color: var(--cor-branco);
    text-align: center;
    padding: 40px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
    text-align: left;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--cor-branco);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    line-height: 1.6;
}

.footer-section a:hover {
    color: var(--cor-branco);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */
@media screen and (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--cor-branco);
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        border-bottom: 1px solid var(--cor-cinza-medio);
    }
    
    .nav-menu a {
        display: block;
        padding: 15px 20px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .service-detail {
        grid-template-columns: 1fr;
    }
    
    .service-carousel {
        height: 200px;
        order: -1;
    }
    
    .service-detail-content {
        padding: 20px;
    }
    
    .carousel-container {
        max-width: 95%;
        height: 300px;
    }
    
    .carousel-wrapper {
        height: 300px;
    }
    
    .carousel-overlay {
        padding: 20px;
    }
    
    .carousel-overlay h3 {
        font-size: 18px;
    }
    
    .carousel-overlay p {
        font-size: 14px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .footer-content {
        text-align: center;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mt-40 {
    margin-top: 40px;
}