/* Reset e configurações gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-yellow: #FFD700;
    --secondary-yellow: #FFA500;
    --dark-yellow: #FF8C00;
    --black: #000000;
    --white: #FFFFFF;
    --gray: #333333;
    --light-gray: #666666;
    --lighter-gray: #F5F5F5;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Fallback para ícones caso Font Awesome falhe */
.icon-fallback {
    font-family: Arial, sans-serif;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    text-align: center;
}

/* Fallbacks específicos para ícones importantes */
.fa-car-wash::before,
.icon-fallback.car-wash::before {
    content: "🚗";
}

.fa-sparkles::before,
.icon-fallback.sparkles::before {
    content: "✨";
}

.fa-whatsapp::before,
.icon-fallback.whatsapp::before {
    content: "📱";
}

.fa-chevron-down::before,
.icon-fallback.chevron-down::before {
    content: "▼";
}

.fa-medal::before,
.icon-fallback.medal::before {
    content: "🥉";
}

.fa-crown::before,
.icon-fallback.crown::before {
    content: "👑";
}

.fa-star::before,
.icon-fallback.star::before {
    content: "⭐";
}

.fa-gem::before,
.icon-fallback.gem::before {
    content: "💎";
}

.fa-check::before,
.icon-fallback.check::before {
    content: "✓";
}

.fa-home::before,
.icon-fallback.home::before {
    content: "🏠";
}

.fa-clock::before,
.icon-fallback.clock::before {
    content: "⏰";
}

.fa-shield-alt::before,
.icon-fallback.shield::before {
    content: "🛡️";
}

.fa-leaf::before,
.icon-fallback.leaf::before {
    content: "🌿";
}

.fa-instagram::before,
.icon-fallback.instagram::before {
    content: "📷";
}

.fa-phone::before,
.icon-fallback.phone::before {
    content: "📞";
}

.fa-map-marker-alt::before,
.icon-fallback.map::before {
    content: "📍";
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--black);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    transition: background 0.3s ease;
}

.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2.5rem 3rem 2.5rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.nav-logo {
    position: absolute;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
}

.nav-logo i {
    color: var(--primary-yellow);
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--black);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-yellow);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-yellow);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    right: 2rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--black);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--black) 0%, var(--gray) 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/carwash.webp') center center;
    background-size: cover;
    filter: blur(1px) brightness(0.4);
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-text {
    width: 100%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--lighter-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
    
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    justify-content: center;
}

.btn-primary {
    background: var(--primary-yellow);
    color: var(--black);
}

.btn-primary:hover {
    background: var(--secondary-yellow);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--primary-yellow);
}

.btn-secondary:hover {
    background: var(--primary-yellow);
    color: var(--black);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.5rem 3rem;
    font-size: 1.2rem;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 2;
}

.scroll-indicator {
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-yellow);
}

.scroll-indicator:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    padding: 0;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    max-width: 340px;
    margin: 0 auto;
    width: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-yellow);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card.featured {
    border: 3px solid var(--primary-yellow);
    transform: scale(1.05);
}

.service-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #0fdfb5, #00B894);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
    z-index: 10;
}

.service-header {
    text-align: center;
    margin-bottom: 2rem;
}

.service-icon {
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: var(--black);
    position: relative;
    overflow: visible;
}

.service-icon i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    font-size: inherit;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 1rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--black);
}

.currency {
    font-size: 1.5rem;
    vertical-align: top;
}

.period {
    font-size: 1rem;
    color: var(--light-gray);
}

.service-features {
    margin-bottom: 2rem;
}

.service-features ul {
    list-style: none;
}

.service-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
}

.service-features i {
    color: var(--primary-yellow);
    font-size: 0.9rem;
}

.btn-bronze {
    background: linear-gradient(45deg, #CD7F32, #B8860B);
    color: var(--white);
    text-align: center;
}

.btn-silver {
    background: linear-gradient(45deg, #C0C0C0, #A9A9A9);
    color: var(--white);
    text-align: center;
}

.btn-gold {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: var(--black);
    text-align: center;
}

.btn-diamond {
    background: linear-gradient(45deg, #00CED1, #9370DB);
    color: var(--white);
    text-align: center;
}

/* Estrelas coloridas para os serviços */
.bronze-star {
    color: #8B4513 !important; /* Marrom escuro para contraste */
}

.silver-star {
    color: #696969 !important; /* Cinza escuro para contraste */
}

.gold-star {
    color: #B8860B !important; /* Dourado escuro para contraste */
}

.diamond-star {
    color: #4682B4 !important; /* Azul aço para contraste */
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--lighter-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 2rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--black);
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: var(--light-gray);
    line-height: 1.6;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.gallery-item:nth-child(1) {
    grid-column: 1 / -1;
}

/* Contact Section */
.contact {
    padding: 0;
    background: var(--white);
}

.contact-background {
    background: url('../images/carroEnsaboado.webp') center center;
    background-size: cover;
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.contact-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
}

.contact-content-simple {
    text-align: center;
    color: var(--white);
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-content-simple .btn {
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.contact-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.contact-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--lighter-gray);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo i {
    color: var(--primary-yellow);
    font-size: 2rem;
}

.footer-section p {
    color: var(--lighter-gray);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary-yellow);
    transform: translateY(-2px);
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-yellow);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--lighter-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-yellow);
}

.footer-section ul li i {
    color: var(--primary-yellow);
    margin-right: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray);
    color: var(--lighter-gray);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1.2rem;
        padding: 0 0.5rem;
    }
}

@media (max-width: 768px) {
    .logo-img {
        height: 100px !important;
        max-width: 200px !important;
        margin: 0 auto;
        display: block;
    }
    .nav {
        display: flex;
        align-items: center;
        padding: 0.7rem 0.7rem !important;
        position: relative;
    }
    .nav-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100px;
        margin: 0 auto;
        position: static;
        left: unset;
        top: unset;
        transform: unset;
    }
    .nav-toggle {
        display: flex;
        position: absolute;
        right: 0.7rem;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        padding: 0;
    }
    .hero {
        padding-top: 70px !important;
    }
    .nav-logo {
        position: static;
        left: auto;
        font-size: 1.2rem;
    }
    
    .nav-logo i {
        font-size: 1.5rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding: 0 0.5rem;
    }
    
    .service-card {
        padding: 1.2rem;
        max-width: 98vw;
        width: 100%;
        margin: 0 auto 1rem auto;
    }
    
    .service-icon {
        margin-bottom: 1rem;
    }
    
    .service-img {
        width: 48px;
        height: 48px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-item img {
        height: 250px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .contact-title {
        font-size: 2.5rem;
    }
    
    .contact-subtitle {
        font-size: 1.1rem;
    }
    
    .contact-content-simple {
        padding: 3rem 1rem;
    }
    
    .contact-content-simple .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .logo-img {
        height: 140px;
        max-width: 340px;
    }
    
    .nav {
        padding: 1rem 0.5rem 1rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 128px !important;
        max-width: 360px !important;
    }
    .nav {
        padding: 0.1rem 0.1rem !important;
    }
    .header {
        margin: 0;
    }
    .nav-logo {
        margin: 0;
    }
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .service-card {
        padding: 0.7rem;
        margin: 0 auto 1rem auto;
        max-width: 100vw;
        width: 100%;
    }
    
    .service-img {
        width: 36px;
        height: 36px;
        max-width: 36px;
        max-height: 36px;
    }
    
    .services-grid {
        padding: 0 0.1rem;
    }
    
    .price {
        font-size: 2rem;
    }
    
    .contact-title {
        font-size: 2rem;
    }
    
    .btn-large {
        padding: 1.2rem 2rem;
        font-size: 1rem;
    }
    
    .nav-logo {
        font-size: 1rem;
    }
    
    .nav-logo i {
        font-size: 1.2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .logo-img {
        height: 80px;
        max-width: 200px;
    }
    
    .nav {
        padding: 1rem 0.5rem 1rem 0.5rem;
    }
}

/* Melhorias para telas muito pequenas */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .service-card {
        padding: 1rem;
    }
    
    .price {
        font-size: 1.8rem;
    }
    
    .contact-title {
        font-size: 1.8rem;
    }
}

/* Melhorias para orientação landscape em mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: auto;
        max-width: none;
    }
}

/* Melhorias de performance */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-scroll {
        animation: none;
    }
}

/* Melhorias de contraste para acessibilidade */
@media (prefers-contrast: high) {
    :root {
        --primary-yellow: #FFD700;
        --secondary-yellow: #FFA500;
        --black: #000000;
        --white: #FFFFFF;
        --gray: #000000;
        --light-gray: #000000;
        --lighter-gray: #FFFFFF;
    }
    
    .btn {
        border: 2px solid var(--black);
    }
    
    .service-card {
        border: 2px solid var(--black);
    }
}

/* Menu Mobile */
.nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Melhorias de acessibilidade */
.btn:focus,
.nav-menu a:focus,
.social-links a:focus {
    outline: 2px solid var(--primary-yellow);
    outline-offset: 2px;
}

.scroll-indicator:focus {
    outline: 2px solid var(--primary-yellow);
    outline-offset: 2px;
    border-radius: 50%;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Estados de carregamento de imagens */
.gallery-item img.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item img.loaded {
    opacity: 1;
}

.gallery-item img.error {
    opacity: 0.7;
    filter: grayscale(100%);
}

/* Placeholder para imagens carregando */
.gallery-item img:not([src]), 
.gallery-item img[src=""] {
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
                linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    animation: loading-pulse 1.5s ease-in-out infinite;
}

@keyframes loading-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.service-img {
    width: 48px;
    height: 48px;
    max-width: 48px;
    max-height: 48px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    background: #fff;
}

.logo-img {
    height: 150px;
    width: auto;
    max-width: 420px;
    margin-right: 0;
    display: block;
}

@media (min-width: 481px) and (max-width: 768px) {
    .logo-img {
        height: 140px !important;
        max-width: 280px !important;
    }
}

.social-icon {
    width: 2.5rem;
    height: 2.5rem;
    max-width: 100%;
    object-fit: contain;
    margin: 0 0.5rem;
    transition: transform 0.2s;
    vertical-align: middle;
}

.social-links a:hover .social-icon {
    transform: scale(1.12);
}

@media (max-width: 600px) {
    .social-icon {
        width: 2rem;
        height: 2rem;
        margin: 0 0.3rem;
    }
} 