/* Reset & Variables */
:root {
    --primary-red: #E51E25; /* Madruga Red */
    --primary-yellow: #FFEA00; /* Madruga Yellow */
    --bg-dark: #121212;
    --bg-darker: #0a0a0a;
    --text-light: #f4f4f4;
    --text-muted: #aaaaaa;
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-darker);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

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

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

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.highlight-red { color: var(--primary-red); }
.highlight-yellow { color: var(--primary-yellow); }
.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 600;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-red);
    color: #fff;
    box-shadow: 0 4px 15px rgba(229, 30, 37, 0.4);
}

.btn-primary:hover {
    background-color: #c9171e;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(229, 30, 37, 0.6);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-yellow);
    border: 2px solid var(--primary-yellow);
}

.btn-secondary:hover {
    background-color: var(--primary-yellow);
    color: var(--bg-darker);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 234, 0, 0.3);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.4s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 10px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    position: relative;
}

.logo-mascot {
    height: 90px;
    width: auto;
    margin-top: -15px;
    margin-bottom: -10px;
    z-index: 10;
    transition: transform 0.3s ease;
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.5));
}

.logo:hover .logo-mascot {
    transform: scale(1.1) rotate(5deg);
}

.logo-text {
    display: flex;
    flex-direction: column;
    font-family: var(--font-heading);
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.logo-madruga {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-yellow);
    letter-spacing: 2px;
}

.logo-moto {
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    letter-spacing: 5px;
}

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

.nav-links a {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary-red);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
    background-color: var(--primary-yellow);
}

.btn-whatsapp-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #25D366;
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-whatsapp-nav:hover {
    background-color: #128C7E;
    transform: scale(1.05);
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-yellow);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    background-image: url('https://images.unsplash.com/photo-1558981806-ec527fa84c39?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(229,30,37,0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-top: 50px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 2px 4px 10px rgba(0,0,0,0.8);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 40px;
    max-width: 600px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
    animation: fadeInUp 1.2s ease-out;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1.4s ease-out;
}

.hero-features {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--primary-red);
    z-index: 2;
    display: flex;
    justify-content: center;
    padding: 20px 0;
    gap: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-item i {
    color: var(--primary-yellow);
    font-size: 1.2rem;
}

/* Services */
.services {
    background-color: var(--bg-dark);
}

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

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-red);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    color: var(--primary-yellow);
    transform: scale(1.1);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Products */
.products {
    background-color: var(--bg-darker);
}

.products-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.product-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
}

.product-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.accessories-bg { background-image: url('../assets/acessorios_branco.png'); background-color: #fff; background-size: contain; background-repeat: no-repeat; }
.helmets-bg { background-image: url('../assets/capacetes_branco.png'); background-color: #fff; background-size: contain; background-repeat: no-repeat; }
.parts-bg { background-image: url('../assets/pecas_branco.png'); background-color: #fff; background-size: contain; background-repeat: no-repeat; }
.stickers-bg { background-image: url('../assets/adesivos_branco.png'); background-color: #fff; background-size: contain; background-repeat: no-repeat; }
.raincoats-bg { background-image: url('../assets/capas_branco.png'); background-color: #fff; background-size: contain; background-repeat: no-repeat; }
.bags-bg { background-image: url('../assets/bags_branco.png'); background-color: #fff; background-size: contain; background-repeat: no-repeat; }

.product-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.9));
}

.product-item:hover .product-image {
    transform: scale(1.1);
}

.product-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 2;
    transition: all 0.4s ease;
}

.product-info h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-yellow);
    margin-bottom: 5px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.product-info p {
    font-size: 0.9rem;
    color: #e0e0e0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.product-item:hover .product-info p {
    opacity: 1;
    transform: translateY(0);
}

/* Promo Banner */
.promo-banner {
    background: linear-gradient(45deg, var(--primary-red), #900a0e);
    padding: 60px 0;
    text-align: center;
}

.promo-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.promo-text h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.promo-text p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.pulse-anim {
    animation: pulse 2s infinite;
    background-color: var(--bg-darker);
    color: var(--primary-yellow);
}

.pulse-anim:hover {
    background-color: #222;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 234, 0, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(255, 234, 0, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 234, 0, 0); }
}

/* Stores */
.stores {
    background-color: var(--bg-dark);
}

.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.store-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 10px;
    border-top: 4px solid var(--primary-yellow);
    transition: all 0.3s ease;
}

.store-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.store-icon {
    font-size: 2rem;
    color: var(--primary-yellow);
    margin-bottom: 15px;
}

.store-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #fff;
}

.store-card p {
    color: var(--text-muted);
    margin-bottom: 5px;
}

.address { font-weight: 600; color: #ccc !important; }

.btn-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-red);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.btn-link i { margin-left: 5px; transition: transform 0.3s ease; }
.btn-link:hover { color: var(--primary-yellow); }
.btn-link:hover i { transform: translateX(5px); }

/* Footer */
.footer {
    background-color: var(--bg-darker);
    border-top: 1px solid #222;
    padding-top: 60px;
}

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

.footer-brand p {
    color: var(--text-muted);
    margin: 20px 0;
    font-size: 0.95rem;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-red);
    transform: translateY(-3px);
}

.footer-links h3, .footer-contact h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary-yellow);
    text-transform: uppercase;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-red);
    padding-left: 5px;
}

.footer-contact p {
    color: var(--text-muted);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--primary-red);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    background-color: #050505;
    color: #666;
    font-size: 0.9rem;
}

/* WhatsApp Floating */
.floating-wpp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

.floating-wpp:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title { font-size: 3.5rem; }
    .hero-features { flex-wrap: wrap; gap: 20px; padding: 20px; }
    .feature-item { width: 45%; justify-content: center; }
}

@media (max-width: 768px) {
    .nav-links, .btn-whatsapp-nav { display: none; }
    .hamburger { display: block; }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.98);
        padding: 20px;
        text-align: center;
        border-bottom: 1px solid var(--primary-red);
    }
    
    .hero { 
        background-attachment: scroll; /* Fix background image on iOS */
        flex-direction: column;
        justify-content: flex-start;
        height: auto;
        min-height: 100vh;
        padding-top: 120px;
    }
    
    .hero-features {
        position: relative;
        margin-top: auto;
    }
    
    .hero-title { font-size: 2.5rem; }
    
    .hero-buttons { 
        flex-direction: column; 
        width: 100%;
        margin-bottom: 30px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
        padding: 12px 10px;
        font-size: 0.9rem;
        white-space: normal;
        box-sizing: border-box;
    }
    
    .promo-content { text-align: center; }
}
