/* ========================================
   CAMINHÃO PIPA LÉO - DESIGN PREMIUM
   ======================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables - Sistema de Design */
:root {
    /* Cores Principais */
    --primary-deep: #0a192f;
    --primary-ocean: #0f4c75;
    --primary-sky: #3282b8;
    --accent-gold: #d4a574;
    --accent-gold-light: #e8c9a8;
    --accent-teal: #64ffda;
    --accent-coral: #ff6b6b;
    
    /* Cores de Superfície */
    --surface-light: #f8fafc;
    --surface-white: #ffffff;
    --surface-cream: #fefcf9;
    --surface-glass: rgba(255, 255, 255, 0.85);
    
    /* Cores de Texto */
    --text-dark: #1a1a2e;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-light: #f1f5f9;
    --text-on-dark: #e2e8f0;
    
    /* Gradientes */
    --gradient-hero: linear-gradient(135deg, #0a192f 0%, #0f4c75 50%, #1a365d 100%);
    --gradient-gold: linear-gradient(135deg, #d4a574 0%, #b8956c 100%);
    --gradient-cta-primary: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
    --gradient-cta-secondary: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    --gradient-cta-tertiary: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    
    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(10, 25, 47, 0.06);
    --shadow-md: 0 4px 20px rgba(10, 25, 47, 0.08);
    --shadow-lg: 0 8px 40px rgba(10, 25, 47, 0.12);
    --shadow-xl: 0 20px 60px rgba(10, 25, 47, 0.15);
    --shadow-glow-gold: 0 0 30px rgba(212, 165, 116, 0.3);
    --shadow-glow-teal: 0 0 30px rgba(100, 255, 218, 0.2);
    
    /* Tipografia */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Espaçamento */
    --section-padding: 100px;
    --container-max: 1200px;
    
    /* Transições */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset e Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-body);
    background-color: var(--surface-cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background Pattern Sutil */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(212, 165, 116, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(50, 130, 184, 0.03) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4a574' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   HEADER - Elegante e Transparente
   ======================================== */
#header {
    background: var(--gradient-hero);
    padding: 1.2rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.logo {
    text-decoration: none;
    display: inline-block;
    position: relative;
}

.logo a {
    text-decoration: none;
}

.logo h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 0.02em;
    position: relative;
}


/* ========================================
   HERO SECTION - Impactante e Profissional
   ======================================== */
#hero {
    background:
        linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
        url('../images/empresa-de-caminhao-pipa-6.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-light);
    padding: 160px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

/* Decorações do Hero */
#hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.08) 0%, transparent 70%);
    animation: floatOrb 20s ease-in-out infinite;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.08) 0%, transparent 70%);
    animation: floatOrb 15s ease-in-out infinite reverse;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(180deg, rgba(10, 25, 47, 0.3) 0%, rgba(10, 25, 47, 0.1) 100%),
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%2364ffda' fill-opacity='0.02' fill-rule='evenodd'/%3E%3C/svg%3E");
    z-index: 1;
}

#hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

#hero h1 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-light);
    letter-spacing: -0.02em;
    line-height: 1.2;
    order: 1;
}

#hero h1 span {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#hero .cta-buttons {
    order: 2;
    width: 100%;
}

/* Subtítulo decorativo */
#hero .container > p:first-of-type::before {
    content: '✦';
    margin-right: 12px;
    color: var(--accent-gold);
}

#hero .container > p:first-of-type::after {
    content: '✦';
    margin-left: 12px;
    color: var(--accent-gold);
}

#hero p {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.9;
    color: var(--text-on-dark);
    opacity: 0.95;
    order: 3;
}

/* ========================================
   CTA BUTTONS - Premium e Atraentes
   ======================================== */
.cta-buttons, .hero-ctas {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.cta-primary, .cta-secondary, .cta-tertiary, .cta-button {
    padding: 18px 36px;
    border-radius: 60px;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

/* Efeito de brilho no hover */
.cta-primary::before, .cta-secondary::before, .cta-tertiary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.cta-primary:hover::before, .cta-secondary:hover::before, .cta-tertiary:hover::before {
    left: 100%;
}

.cta-primary {
    background: var(--gradient-cta-primary);
    color: white;
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.35);
}

.cta-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.45);
}

.cta-secondary {
    background: var(--gradient-cta-secondary);
    color: white;
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.35);
}

.cta-secondary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(239, 68, 68, 0.45);
}

.cta-tertiary {
    background: var(--gradient-cta-tertiary);
    color: white;
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.35);
}

.cta-tertiary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(245, 158, 11, 0.45);
}

/* Compatibility for other pages using different classes */
.cta-button.primary {
    background: var(--gradient-cta-primary);
    color: white;
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.35);
}

.cta-button.primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.45);
}

.cta-button.secondary {
    background: var(--gradient-cta-secondary);
    color: white;
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.35);
}

.cta-button.secondary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(239, 68, 68, 0.45);
}

.cta-button.whatsapp {
    background: var(--gradient-cta-tertiary);
    color: white;
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.35);
}

.cta-button.whatsapp:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(245, 158, 11, 0.45);
}

.cta-inline {
    text-align: center;
    margin-top: 1.5rem;
}

/* ========================================
   MAP EMBED - Elegante
   ======================================== */
#map-embed {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--surface-cream) 0%, var(--surface-white) 100%);
    position: relative;
}

#map-embed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, var(--primary-deep) 0%, transparent 100%);
    opacity: 0.03;
}

#map-container {
    width: 100%;
    height: 480px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(212, 165, 116, 0.2);
}

/* ========================================
   SEO CONTENT - Cards Premium
   ======================================== */
#seo-content {
    padding: var(--section-padding) 0;
    background: var(--surface-white);
    position: relative;
}

/* Decoração de seção */
#seo-content::before {
    content: '';
    position: absolute;
    top: 50px;
    right: 5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.content-section {
    margin-bottom: 50px;
    padding: 50px;
    background: var(--gradient-card);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(212, 165, 116, 0.12);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.content-section:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.content-section:hover::before {
    transform: scaleX(1);
}

.content-section h2 {
    font-family: var(--font-display);
    color: var(--primary-deep);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    position: relative;
    display: inline-block;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 3px;
}

.content-section p {
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    color: var(--text-body);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.content-section p:last-of-type {
    margin-bottom: 2rem;
}

.content-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-cta-primary);
    color: white;
    padding: 16px 32px;
    border-radius: 60px;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
}

.content-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.content-cta:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.4);
}

.content-cta:hover::before {
    left: 100%;
}

/* ========================================
   FOOTER - Sofisticado e Escuro
   ======================================== */
#footer {
    background: var(--gradient-hero);
    color: var(--text-on-dark);
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

#footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

#footer::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.footer-section {
    text-align: center;
}

.footer-section h3 {
    font-family: var(--font-display);
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--accent-teal);
    border-radius: 2px;
}

.footer-section p, .footer-section li {
    margin-bottom: 0.7rem;
    color: var(--text-on-dark);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--accent-teal);
    text-decoration: none;
    transition: var(--transition-smooth);
    position: relative;
}

.footer-section a:hover {
    color: var(--accent-gold-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* ========================================
   WHATSAPP FLUTUANTE - Atraente
   ======================================== */
#whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-link {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    font-size: 1.6rem;
    text-decoration: none;
    box-shadow: 
        0 8px 30px rgba(37, 211, 102, 0.4),
        0 0 0 0 rgba(37, 211, 102, 0.4);
    transition: var(--transition-smooth);
    animation: whatsappPulse 2s ease-in-out infinite;
}

@keyframes whatsappPulse {
    0%, 100% {
        box-shadow: 
            0 8px 30px rgba(37, 211, 102, 0.4),
            0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 
            0 8px 30px rgba(37, 211, 102, 0.4),
            0 0 0 15px rgba(37, 211, 102, 0);
    }
}

.whatsapp-link:hover {
    transform: scale(1.12) rotate(5deg);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.5);
}

.whatsapp-icon {
    font-size: 1.8rem;
}

/* ========================================
   RESPONSIVIDADE BÁSICA
   ======================================== */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    #hero {
        padding: 120px 0 80px;
    }

    #hero h1 {
        font-size: 2.2rem;
    }

    #hero p {
        font-size: 1rem;
    }

    .cta-buttons, .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .cta-primary, .cta-secondary, .cta-tertiary, .cta-button {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    .content-section {
        padding: 35px 25px;
    }

    .content-section h2 {
        font-size: 1.6rem;
    }

    #whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-link {
        width: 58px;
        height: 58px;
    }
}

/* ========================================
   ACESSIBILIDADE E PREFERÊNCIAS
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visível para acessibilidade */
:focus-visible {
    outline: 3px solid var(--accent-teal);
    outline-offset: 3px;
}

/* Selection customizada */
::selection {
    background: var(--accent-gold);
    color: var(--primary-deep);
}

::-moz-selection {
    background: var(--accent-gold);
    color: var(--primary-deep);
}
