/* =========================================
   Alternativa Turismo - Design System
   ========================================= */

/* CSS Variables - Cores da Marca com Contraste Aprimorado */
:root {
    /* Cores Primárias - Vermelho Institucional */
    --color-primary: #b91c1c;
    --color-primary-dark: #991b1b;
    --color-primary-light: #dc2626;
    --color-primary-50: #fef2f2;
    --color-primary-100: #fee2e2;
    
    /* Cores Secundárias - Turquesa/Teal da Marca */
    --color-secondary: #0d9488;
    --color-secondary-dark: #0f766e;
    --color-secondary-light: #14b8a6;
    --color-secondary-50: #f0fdfa;
    --color-secondary-100: #ccfbf1;
    
    /* Cores de Texto - Alto Contraste */
    --color-text: #0f172a;
    --color-text-secondary: #334155;
    --color-text-muted: #64748b;
    
    /* Backgrounds */
    --color-bg-light: #f8fafc;
    --color-bg-dark: #0f172a;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(15, 118, 110, 0.95) 0%, rgba(13, 148, 136, 0.85) 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow-primary: 0 0 30px rgba(185, 28, 28, 0.3);
    --shadow-glow-secondary: 0 0 30px rgba(13, 148, 136, 0.3);
    
    /* Espaçamento */
    --spacing-unit: 8px;
    
    /* Transições */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* =========================================
   Base Styles
   ========================================= */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--color-text);
    line-height: 1.7;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
    background-color: var(--color-secondary);
    color: white;
}

/* =========================================
   Typography Enhancements
   ========================================= */

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.025em;
    font-weight: 700;
}

/* =========================================
   Focus Styles - Acessibilidade
   ========================================= */

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* =========================================
   Header / Navigation
   ========================================= */

#header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition-base);
}

#header.scrolled {
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.98);
}

/* Nav Links Hover Effect */
.nav-link {
    position: relative;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width var(--transition-base);
}

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

/* =========================================
   Hero Section
   ========================================= */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.85) 0%,
        rgba(13, 148, 136, 0.75) 50%,
        rgba(15, 118, 110, 0.85) 100%
    );
}

/* Geometric Pattern Overlay */
.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: 
        linear-gradient(30deg, #fff 12%, transparent 12.5%, transparent 87%, #fff 87.5%, #fff),
        linear-gradient(150deg, #fff 12%, transparent 12.5%, transparent 87%, #fff 87.5%, #fff),
        linear-gradient(30deg, #fff 12%, transparent 12.5%, transparent 87%, #fff 87.5%, #fff),
        linear-gradient(150deg, #fff 12%, transparent 12.5%, transparent 87%, #fff 87.5%, #fff),
        linear-gradient(60deg, rgba(255,255,255,0.5) 25%, transparent 25.5%, transparent 75%, rgba(255,255,255,0.5) 75%, rgba(255,255,255,0.5)),
        linear-gradient(60deg, rgba(255,255,255,0.5) 25%, transparent 25.5%, transparent 75%, rgba(255,255,255,0.5) 75%, rgba(255,255,255,0.5));
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
}

/* Hero Title Gradient Text */
.hero-title {
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* =========================================
   Buttons
   ========================================= */

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    overflow: hidden;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-lg), var(--shadow-glow-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(185, 28, 28, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* Button Ripple Effect */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before {
    width: 400px;
    height: 400px;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

/* =========================================
   Stats Section
   ========================================= */

.stats-section {
    background: var(--color-bg-light);
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
}

.stat-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), var(--shadow-glow-secondary);
}

.stat-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-secondary);
    color: white;
    margin: 0 auto 24px;
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 4rem;
    font-weight: 800;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

/* =========================================
   Benefits Section
   ========================================= */

.benefits-section {
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

/* Decorative Elements */
.benefits-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.benefits-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(185, 28, 28, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    padding: 28px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all var(--transition-base);
}

.benefit-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(8px);
    box-shadow: 0 0 40px rgba(13, 148, 136, 0.2);
}

.benefit-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-secondary);
    color: white;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.benefit-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.benefit-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* Benefits Image */
.benefits-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.benefits-image::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    pointer-events: none;
    z-index: 1;
}

.benefits-image img {
    transition: transform var(--transition-slow);
}

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

/* =========================================
   About Section
   ========================================= */

.about-section {
    background: linear-gradient(180deg, #ffffff 0%, var(--color-bg-light) 100%);
    position: relative;
}

.section-title {
    position: relative;
    display: inline-block;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    margin: 16px auto 0;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--color-text-secondary);
}

.about-text p:first-letter {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--color-text);
}

.about-highlight {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary) !important;
    position: relative;
    display: inline-block;
    margin-top: 24px;
}

.about-highlight::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Timeline Style for About */
.timeline-item {
    position: relative;
    padding-left: 32px;
    margin-bottom: 24px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gradient-secondary);
    box-shadow: var(--shadow-sm);
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 24px;
    width: 2px;
    height: calc(100% + 12px);
    background: linear-gradient(180deg, var(--color-secondary) 0%, transparent 100%);
}

.timeline-item:last-child::after {
    display: none;
}

/* =========================================
   CTA Section
   ========================================= */

.cta-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.cta-title {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.btn-cta {
    background: white;
    color: var(--color-primary);
    font-weight: 700;
    padding: 18px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-base);
}

.btn-cta:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
}

/* =========================================
   Contact Section - Modern Redesign
   ========================================= */

.contact-section-modern {
    position: relative;
}

/* Phone Card Modern */
.phone-card-modern {
    position: relative;
    transition: all var(--transition-base);
}

.phone-card-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 2px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.phone-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(185, 28, 28, 0.1);
}

.phone-card-modern:hover::before {
    opacity: 1;
}

/* Phone number link */
.phone-card-modern a[href^="tel:"] {
    display: inline-block;
    position: relative;
}

.phone-card-modern a[href^="tel:"]::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width var(--transition-base);
}

.phone-card-modern a[href^="tel:"]:hover::after {
    width: 100%;
}

/* Pulse animation for availability indicator */
@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

.phone-card-modern .animate-pulse {
    animation: pulse-dot 2s ease-in-out infinite;
}

/* Trust indicators */
.contact-section-modern .text-slate-500 {
    transition: color var(--transition-fast);
}

.contact-section-modern .text-slate-500:hover {
    color: var(--color-text-secondary);
}

/* =========================================
   Footer
   ========================================= */

.footer {
    background: var(--gradient-dark);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-fast);
    position: relative;
}

.footer-link:hover {
    color: white;
    padding-left: 8px;
}

.footer-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    transform: translateY(-50%);
    transition: width var(--transition-fast);
}

.footer-link:hover::before {
    width: 4px;
}

/* =========================================
   Scroll to Top Button
   ========================================= */

#scroll-top {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-lg), var(--shadow-glow-primary);
    transition: all var(--transition-base);
    border-radius: var(--radius-md);
}

#scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
}

#scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(185, 28, 28, 0.5);
}

/* =========================================
   Counter Animation
   ========================================= */

.counter {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* =========================================
   Image Lazy Loading
   ========================================= */

img[loading="lazy"] {
    opacity: 0;
    transition: opacity var(--transition-slow);
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* =========================================
   Mobile Menu Animation
   ========================================= */

#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

#mobile-menu.open {
    max-height: 400px;
}

#mobile-menu a {
    display: block;
    padding: 12px 0;
    font-weight: 500;
    color: var(--color-text);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition-fast);
}

#mobile-menu a:hover {
    color: var(--color-primary);
    padding-left: 8px;
}

/* =========================================
   Section Spacing
   ========================================= */

section {
    scroll-margin-top: 80px;
}

/* =========================================
   Animations
   ========================================= */

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: var(--shadow-lg), 0 0 20px rgba(13, 148, 136, 0.3); }
    50% { box-shadow: var(--shadow-lg), 0 0 40px rgba(13, 148, 136, 0.5); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* =========================================
   Responsive Adjustments
   ========================================= */

@media (max-width: 768px) {
    .stat-number {
        font-size: 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .benefit-card {
        padding: 20px;
    }
}

/* =========================================
   Print Styles
   ========================================= */

@media print {
    header,
    footer,
    #scroll-top,
    .btn {
        display: none !important;
    }
    
    body {
        color: black;
        background: white;
    }
}

/* =========================================
   Reduced Motion
   ========================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* =========================================
   High Contrast Mode
   ========================================= */

@media (prefers-contrast: high) {
    :root {
        --color-primary: #000000;
        --color-text: #000000;
    }
    
    .benefit-card,
    .stat-card,
    .contact-card {
        border-width: 2px;
        border-color: currentColor;
    }
}
