/* ========================================
   CSS COMPLETO - UNDERTECH LANDING PAGE
   Tema Claro Laranja + Modal + Melhorias
   ======================================== */

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

:root {
    /* Paleta Laranja Profissional */
    --primary-color: #FF6B35;
    --primary-dark: #E55A2B;
    --primary-light: #FF8C5A;
    --secondary-color: #FFD23F;
    
    /* Tema Claro */
    --light-bg: #F8FAFC;
    --white-bg: #FFFFFF;
    --light-gray: #F1F5F9;
    --medium-gray: #E2E8F0;
    --dark-text: #1E293B;
    --gray-text: #64748B;
    --light-text: #94A3B8;
    
    /* Sombras */
    --shadow: 0 10px 30px rgba(255,107,53,0.15);
    --shadow-hover: 0 20px 40px rgba(255,107,53,0.25);
    --card-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    overflow-x: hidden;
    background: var(--light-bg);
}

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

/* HEADER BRANCO */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--medium-gray);
}

.header.scrolled {
    background: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 4px 25px rgba(0,0,0,0.12);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
}

.nav-logo {
    display: flex; /* Garante que os elementos internos se alinhem bem */
    align-items: center; /* Alinha verticalmente */
}

/* Estilo específico para a imagem do logo */
.logo-img {
    width: 120px;      /* Mantém a proporção da imagem */
    display: block;   /* Remove espaços extras abaixo da imagem */
}

.nav-logo h2 {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    font-weight: 800;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    color: var(--dark-text) !important;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-text);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    background: 
        linear-gradient(135deg, 
            rgba(26, 32, 44, 0.78) 0%, 
            rgba(30, 41, 59, 0.82) 50%, 
            rgba(26, 32, 44, 0.78) 100%),

            url('../img/F4.JPG') center/cover no-repeat; 
       /* url('https://images.unsplash.com/photo-1552519507-da3b142c6e3d?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=85') center/cover no-repeat; */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 100px;
}

.hero-content {
    max-width: 900px;
    padding: 0 20px;
    z-index: 2;
    position: relative;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.hero-title {
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    font-weight: 800;
    margin-bottom: 1.8rem;
    color: var(--primary-color) !important; /* Laranja sólido */
    text-shadow: none !important; /* SEM sombra */
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    margin-bottom: 3.5rem;
    color: #F8FAFC !important;
    font-weight: 500;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.9);
}

/* BOTÕES */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 1.3rem 3.2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 60px;
    transition: all 0.4s ease;
    font-size: 1.1rem;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    color: white !important;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* SEÇÕES */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: clamp(2.2rem, 5vw, 3rem);
    margin-bottom: 4rem;
    font-weight: 800;
    color: var(--dark-text);
}

/* SERVICES */
.services {
    background: var(--white-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.service-card {
    background: var(--white-bg);
    padding: 2rem 1.6rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--light-gray);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    min-height: auto;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 28px 28px 0 0;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 1.8rem;
    display: block;
    text-shadow: none;
}

/* ÍCONE COLORIDOS */
.service-card:nth-child(1) .service-icon { color: #FF4444; }
.service-card:nth-child(2) .service-icon { color: #00C66F; }
.service-card:nth-child(3) .service-icon { color: #4285F4; }
.service-card:nth-child(4) .service-icon { color: #FF6B35; }
.service-card:nth-child(5) .service-icon { color: #9C27B0; }
.service-card:nth-child(6) .service-icon { color: #FFD23F; }

.service-card h3 {
    color: var(--dark-text);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.service-card p {
    color: var(--gray-text);
    line-height: 1.85;
    font-size: 1.1rem;
}

/* SOBRE - COM FUNDO PREMIUM */
.about {
    background: linear-gradient(135deg, 
        rgba(255,107,53,0.08) 0%, 
        rgba(255,210,63,0.05) 50%, 
        rgba(255,107,53,0.06) 100%),
        linear-gradient(45deg, 
            rgba(255,255,255,0.4) 25%, 
            transparent 25%, 
            transparent 75%, 
            rgba(255,255,255,0.4) 75%),
        linear-gradient(45deg, 
            transparent 25%, 
            rgba(255,255,255,0.4) 25%, 
            rgba(255,255,255,0.4) 75%, 
            transparent 75%),
        var(--light-gray);
    background-size: 60px 60px, 60px 60px, 20px 20px;
    position: relative;
    padding: 150px 0;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255,107,53,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,210,63,0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255,107,53,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.about-content {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    padding: 3.5rem 3rem;
    border-radius: 28px;
    border: 1px solid rgba(255,107,53,0.15);
    box-shadow: 
        0 20px 60px rgba(255,107,53,0.12),
        0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
}

.about-content:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 30px 80px rgba(255,107,53,0.18),
        0 15px 35px rgba(0,0,0,0.12);
}

.about {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(255, 210, 63, 0.05));
}

.about-bg {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08) 0%, rgba(255, 210, 63, 0.08) 100%), var(--white-bg);
    padding: 5rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content {
    flex: 1;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.car-img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.2);
    transition: transform 0.4s ease;
}

.car-img:hover {
    transform: scale(1.05);
}

.about-text {
    font-size: 1.35rem;
    margin-bottom: 2.5rem;
    color: var(--dark-text);
    line-height: 1.85;
    font-weight: 400;
}

/* CONTACT */
.contact {
    background: var(--white-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 5rem;
}

.contact-item {
    text-align: center;
    padding: 2rem 1.8rem;
    background: var(--light-gray);
    border-radius: 20px;
    transition: all 0.4s ease;
    border: 1px solid var(--medium-gray);
    min-height: auto;
}

.contact-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.contact-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.contact-item h3 {
    color: var(--dark-text);
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.contact-item p {
    color: var(--gray-text);
    font-size: 1.15rem;
    line-height: 1.7;
}

small {
    font-size: 0.9rem;
    opacity: 0.8;
}

.contact-cta {
    text-align: center;
}

/* MAPA */
.map-container {
    margin-top: 3rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: none;
}

/* INSTAGRAM SECTION */
.instagram {
    background: linear-gradient(135deg, #1b1f28 0%, #0d1117 100%);
    color: #ffffff;
    padding: 4rem 0;
}

.instagram-feed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.instagram-feed iframe {
    background: #0f131b;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.32);
}

.instagram-cta {
    text-align: center;
    margin-top: 3rem;
}

.instagram .btn-primary {
    background: #e1306c;
    border-color: #e1306c;
}

.instagram .btn-primary:hover {
    background: #c72b62;
    border-color: #c72b62;
}

/* INSTAGRAM BUTTON */
.instagram-btn {
    position: fixed;
    bottom: 120px;
    right: 35px;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(220, 39, 67, 0.4);
    z-index: 1001;
    transition: all 0.4s ease;
    text-decoration: none;
}

.instagram-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 15px 40px rgba(220, 39, 67, 0.5);
}

.instagram-icon {
    font-size: 2.4rem;
    filter: brightness(0) invert(1);
}

/* WHATSAPP */
.whatsapp-btn {
    position: fixed;
    bottom: 35px;
    right: 35px;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(37,211,102,0.4);
    z-index: 1001;
    transition: all 0.4s ease;
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 15px 40px rgba(37,211,102,0.5);
}

.whatsapp-icon {
    font-size: 2.4rem;
    filter: brightness(0) invert(1);
}

/* FOOTER */
.footer {
    background: var(--dark-text);
    padding: 3.5rem 0 2rem;
    text-align: center;
    color: white;
}

.footer p {
    color: white;
    font-size: 1rem;
}

/* MODAL DE AGENDAMENTO */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: var(--white-bg);
    border-radius: 28px;
    max-width: 650px;
    width: 95%;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,107,53,0.2);
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-header {
    padding: 2.5rem 2.5rem 1.5rem;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    font-weight: 800;
}

.close-modal {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--gray-text);
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.schedule-form {
    padding: 2rem 2.5rem 2.5rem;
}

.form-group {
    margin-bottom: 1.8rem;
}


.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--dark-text) !important; /* TEXTO PRETO normal */
    font-weight: 700;
    font-size: 1.05rem;
    background: none !important; /* Remove gradiente laranja */
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: var(--dark-text) !important; /* Força texto escuro */
    background-clip: initial !important;
}

/* Ícones emoji mantêm suas cores originais */
.form-group label::before {
    font-size: 1.2rem;
    margin-right: 0.5rem;
    filter: none !important; /* Remove qualquer filtro */
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1.2rem 1.4rem;
    border: 2px solid var(--light-gray);
    border-radius: 16px;
    font-size: 1.05rem;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--white-bg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: relative;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 
        0 0 0 4px rgba(255,107,53,0.15),
        0 8px 25px rgba(255,107,53,0.2),
        inset 0 1px 0 rgba(255,255,255,0.8);
    transform: translateY(-2px);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--primary-light);
    box-shadow: 0 4px 15px rgba(255,107,53,0.12);
    transform: translateY(-1px);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.8rem;
}

.form-footer {
    text-align: center;
    margin-top: 1rem;
}

/* RESPONSIVIDADE */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 85px;
        flex-direction: column;
        background: rgba(255,255,255,0.98) !important;
        backdrop-filter: blur(25px);
        width: 100%;
        text-align: center;
        transition: left 0.4s ease;
        box-shadow: 0 10px 40px rgba(0,0,0,0.15);
        padding: 3.5rem 0;
        gap: 2rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .section {
        padding: 90px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero {
        padding: 140px 20px 80px;
        min-height: calc(100vh - 85px);
    }

    .about {
        padding: 120px 0;
    }

    .about-content {
        padding: 2.5rem 2rem;
        margin: 0 20px;
    }

    .about-text {
        font-size: 1.2rem;
    }    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .modal-content {
        width: 98%;
        max-width: 500px;
    }

    .whatsapp-btn {
        bottom: 25px;
        right: 25px;
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 18px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .service-card,
    .contact-item {
        padding: 2.5rem 2rem;
    }
    
    .hero-title {
        margin-bottom: 1.5rem;
    }
    
    .btn {
        padding: 1.1rem 2.5rem;
        font-size: 1rem;
    }
    
.nav-logo h2 {
    color: var(--primary-color) !important; /* Laranja sólido */
    background: none !important; /* Remove gradiente */
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: var(--primary-color) !important;
    background-clip: initial !important;
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    font-weight: 800;
    text-shadow: none !important;
}

    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 1.1rem 1.2rem;
        font-size: 1rem;
    }
    
    .about-content {
        padding: 2rem 1.5rem;
    }
}

/* ANIMAÇÕES */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary-color), var(--primary-dark));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Acessibilidade */
.btn:focus,
.nav-link:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
