/*
Theme Name: CarCoding
Description: Tema personalizado para site de Coding Automotivo
Version: 1.0
Author: CarCoding Team
*/

/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #1E293B;
    color: #FFFFFF;
    line-height: 1.6;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Mono', monospace;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    color: #64FFDA;
}

h2 {
    font-size: 2.5rem;
    color: #64FFDA;
}

h3 {
    font-size: 2rem;
}

p {
    margin-bottom: 1rem;
    color: #CBD5E1;
}

/* Links */
a {
    color: #64FFDA;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FFFFFF;
}

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

/* Header */
.site-header {
    background-color: #0A192F;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Roboto Mono', monospace;
    font-size: 1.5rem;
    font-weight: bold;
    color: #64FFDA;
}

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

/* Navegação */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: #CBD5E1;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    background-color: #64FFDA;
    color: #0A192F;
}

/* Conteúdo principal */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 160px);
}

/* Seções */
.section {
    padding: 4rem 0;
}

.section:nth-child(even) {
    background-color: #0F172A;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(10, 25, 47, 0.8), rgba(30, 41, 59, 0.8)), url('../assets/images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    padding: 6rem 0;
}

.hero h1 {
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.cta-button {
    display: inline-block;
    background-color: #64FFDA;
    color: #0A192F;
    padding: 1rem 2rem;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.4s both;
}

.cta-button:hover {
    background-color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.3);
}

/* Grid de serviços */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: #0A192F;
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #334155;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #64FFDA;
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.1);
}

.service-icon {
    font-size: 3rem;
    color: #64FFDA;
    margin-bottom: 1rem;
}

/* Footer */
.site-footer {
    background-color: #0A192F;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid #334155;
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Estilos adicionais */

/* Menu mobile */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #64FFDA;
    margin: 3px 0;
    transition: 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #0A192F;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 1rem;
    }
}

/* Header com scroll */
.site-header.scrolled {
    background-color: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
}

/* Animações de entrada */
.service-card, .contact-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.service-card.animate-in, .contact-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Detalhes dos serviços */
.service-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #334155;
}

.service-price, .service-duration {
    display: block;
    margin: 0.5rem 0;
    color: #64FFDA;
    font-weight: 500;
}

.service-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: #64FFDA;
    color: #0A192F;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.service-link:hover {
    background-color: #FFFFFF;
    transform: translateY(-2px);
}

/* Informações de contato */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background-color: #0A192F;
    border-radius: 10px;
    border: 1px solid #334155;
}

.contact-item h4 {
    color: #64FFDA;
    margin-bottom: 1rem;
}

/* Footer */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    color: #CBD5E1;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-links a {
    display: inline-block;
    padding: 0.5rem;
    background-color: #334155;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #64FFDA;
    transform: translateY(-2px);
}

/* Páginas internas */
.page-content, .single-content, .archive-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.page-header, .single-header, .archive-header {
    text-align: center;
    margin-bottom: 3rem;
}

.single-meta, .post-meta {
    color: #CBD5E1;
    margin-bottom: 2rem;
}

.service-meta {
    margin-top: 1rem;
}

.service-cta {
    background-color: #0A192F;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin: 2rem 0;
}

/* Posts list */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.post-item {
    display: flex;
    gap: 2rem;
    background-color: #0A192F;
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #334155;
}

.post-thumbnail {
    flex-shrink: 0;
    width: 200px;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.read-more {
    color: #64FFDA;
    font-weight: 500;
}

/* Paginação */
.archive-pagination {
    margin-top: 3rem;
    text-align: center;
}

.page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    background-color: #0A192F;
    border: 1px solid #334155;
    border-radius: 5px;
    color: #CBD5E1;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
    background-color: #64FFDA;
    color: #0A192F;
}

/* Tooltip */
.tooltip {
    position: absolute;
    background-color: #0A192F;
    color: #FFFFFF;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    z-index: 1000;
    border: 1px solid #334155;
}

/* FAQ */
.faq-question {
    cursor: pointer;
    padding: 1rem;
    background-color: #0A192F;
    border: 1px solid #334155;
    border-radius: 5px;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 1rem;
    background-color: #1E293B;
    border-radius: 5px;
    margin-bottom: 1rem;
    display: none;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-icon.rotated {
    transform: rotate(180deg);
}


/* Ícones de serviços */
.service-icon-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* Otimizações para mobile */
@media (max-width: 768px) {
    .logo-img {
        height: 30px;
    }
    
    .hero {
        background-attachment: scroll;
        padding: 4rem 0;
    }
    
    .service-icon-img {
        width: 50px;
        height: 50px;
    }
    
    .post-item {
        flex-direction: column;
    }
    
    .post-thumbnail {
        width: 100%;
    }
}

