/* ============================================
   RESET E CONFIGURAÇÕES GERAIS
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --color-primary: #d91518;
    --color-primary-dark: #bd1313;
    --color-secondary: #3fc99b;
    --color-accent: #f2b900;
    --color-bg-dark: #0a0a0a;
    --color-text-light: #ffffff;
    --color-text-gray: #e0e0e0;
    --font-primary: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--color-text-light);
    background-color: var(--color-bg-dark);
    overflow-x: hidden;
    height: 100vh;
}

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

/* ============================================
   HEADER
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(217, 21, 24, 0.3);
    min-height: 80px;
}

.header .container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
}

.logo {
    height: auto;
    max-height: 50px;
    width: auto;
}

/* ============================================
   HERO SECTION
   ============================================ */

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.7) 0%,
        rgba(10, 10, 10, 0.5) 50%,
        rgba(10, 10, 10, 0.8) 100%
    );
}

/* ============================================
   HERO MARQUEE GALERIA
   ============================================ */

.hero-marquee-container {
    position: absolute;
    bottom: 80px !important;
    left: 0;
    width: 100%;
    z-index: 1; /* REDUZIDO: Fica ATRÁS do conteúdo */
    overflow: hidden;
    padding: 10px 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.3), transparent);
    min-height: 160px; /* AUMENTADO: Altura mínima para evitar sobreposição com botão */
    pointer-events: none; /* NOVO: Evita interferência com cliques */
}

.hero-marquee {
    display: flex;
    gap: 0;
    width: fit-content;
    will-change: transform;
    pointer-events: auto; /* Habilita hover nas imagens */
}

.hero-marquee-track {
    display: flex;
    gap: 15px;
    animation: marqueeScroll 60s linear infinite;
    will-change: transform;
}

.hero-marquee-track img {
    width: 200px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, border-color 0.3s ease;
    flex-shrink: 0;
}

.hero-marquee-track img:hover {
    transform: scale(1.1) translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 8px 25px rgba(217, 21, 24, 0.6);
    z-index: 10;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pausar animação ao hover */
.hero-marquee-container:hover .hero-marquee-track {
    animation-play-state: paused;
}

.hero-content {
    position: relative;
    z-index: 10; /* AUMENTADO: Sempre na frente de tudo */
    text-align: center;
    padding: 0 20px;
    max-width: 800px;
    margin: 0 auto;
    margin-top: 120px; /* AUMENTADO: Espaço para o header */
    margin-bottom: 200px; /* AUMENTADO: Espaço para o marquee */
    padding-bottom: 80px; /* NOVO: Padding extra para evitar marquee */
}

/* ============================================
   HERO LOCATION TEXT
   ============================================ */

.hero-location {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 25px; /* AUMENTADO */
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.95;
    padding-top: 40px; /* AUMENTADO: Espaço adicional do header */
}

/* ============================================
   VOUCHER BADGE
   ============================================ */

.voucher-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    padding: 16px 32px;
    border-radius: 50px;
    margin-bottom: 50px; /* AUMENTADO */
    box-shadow: 0 0 30px rgba(217, 21, 24, 0.5);
    animation: pulse-glow 2s ease-in-out infinite;
    margin-top: 25px; /* AUMENTADO: Espaço do texto "Motel em Criciúma" */
}

.voucher-text {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 30px rgba(217, 21, 24, 0.5);
    }
    50% {
        box-shadow: 0 0 50px rgba(217, 21, 24, 0.8);
    }
}

/* ============================================
   CTA BUTTON
   ============================================ */

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    font-family: var(--font-primary);
    font-size: clamp(1.6rem, 2vw, 2rem);
    font-weight: 700;
    padding: 20px 40px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px; /* AUMENTADO: Espaço do voucher badge */
    margin-bottom: 60px; /* NOVO: Espaço extra para marquee */
    min-height: 60px; /* Altura mínima para manter espaço do marquee */
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.6);
}

.cta-button:active {
    transform: translateY(-1px);
}

.whatsapp-icon {
    width: 28px;
    height: 28px;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    z-index: 999;
    border-top: 1px solid rgba(217, 21, 24, 0.3);
}

.footer-text {
    font-size: 1.2rem;
    text-align: center;
    color: var(--color-text-gray);
    margin-bottom: 5px;
}

.footer-small {
    font-size: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 1s ease-out forwards;
}

.animate-bounce {
    animation: slideUp 1s ease-out forwards, bounce 2s ease-in-out 1s infinite;
}

.delay-1 {
    animation-delay: 0.2s;
    opacity: 0;
}

.delay-2 {
    animation-delay: 0.4s;
    opacity: 0;
}

.delay-3 {
    animation-delay: 0.6s;
    opacity: 0;
}

.delay-4 {
    animation-delay: 0.8s;
    opacity: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .header {
        padding: 10px 0;
    }
    
    .logo {
        max-height: 40px;
    }
    
    .hero-content {
        margin-top: 100px; /* AUMENTADO para tablet */
        margin-bottom: 180px; /* AUMENTADO para tablet */
        padding-bottom: 60px;
    }
    
    .hero-location {
        font-size: 1.8rem;
        margin-bottom: 20px; /* AUMENTADO */
        padding-top: 30px; /* AUMENTADO */
    }
    
    .cta-button {
        padding: 18px 30px;
        font-size: 1.6rem;
        gap: 10px;
        margin-top: 15px; /* AUMENTADO */
        margin-bottom: 50px; /* AUMENTADO */
        min-height: 55px;
    }
    
    .whatsapp-icon {
        width: 24px;
        height: 24px;
    }
    
    .voucher-badge {
        padding: 12px 24px;
        margin-bottom: 40px; /* AUMENTADO */
        margin-top: 20px; /* AUMENTADO */
    }
    
    .voucher-text {
        font-size: 1.4rem;
    }
    
    .footer-text {
        font-size: 1.1rem;
    }
    
    .footer-small {
        font-size: 0.9rem;
    }
    
    /* Marquee mobile adjustments */
    .hero-marquee-container {
        bottom: 70px !important;
        padding: 8px 0;
        min-height: 130px; /* AUMENTADO para tablet */
        z-index: 1; /* Garante que fica atrás */
    }
    
    .hero-marquee-track {
        gap: 10px;
        animation-duration: 45s;
    }
    
    .hero-marquee-track img {
        width: 150px;
        height: 90px;
        border-radius: 6px;
    }
    
    /* Posicionamento ajustado tablet */
    .hero .cta-button {
        position: relative;
        top: 140px;
    }
    
    .hero p {
        position: relative;
        top: -90px;
    }
    
    .hero .voucher-badge {
        position: relative;
        top: -103px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        margin-top: 90px; /* AUMENTADO para mobile */
        margin-bottom: 160px; /* AUMENTADO para mobile */
        padding-bottom: 50px;
    }
    
    .hero-location {
        font-size: 1.6rem;
        letter-spacing: 1px;
        padding-top: 25px; /* AUMENTADO */
        margin-bottom: 18px; /* AUMENTADO */
    }
    
    .cta-button {
        margin-top: 12px; /* AUMENTADO */
        margin-bottom: 40px; /* AUMENTADO */
        min-height: 50px;
    }
    
    .cta-button span {
        font-size: 1.4rem;
    }
    
    /* Ajuste fino de fonte mobile */
    .hero .cta-button span {
        font-size: 14px;
        line-height: 13px;
    }
    
    .voucher-badge {
        padding: 10px 20px;
        margin-top: 18px; /* AUMENTADO */
        margin-bottom: 35px; /* AUMENTADO */
    }
    
    .voucher-text {
        font-size: 1.2rem;
    }
    
    /* Marquee small mobile */
    .hero-marquee-container {
        bottom: 65px !important;
        min-height: 110px; /* AUMENTADO */
        z-index: 1;
    }
    
    .hero-marquee-track img {
        width: 120px;
        height: 75px;
    }
    
    .hero-marquee-track {
        animation-duration: 35s;
    }
    
    /* Posicionamento ajustado mobile */
    .hero .cta-button {
        position: relative;
        top: 140px;
    }
    
    .hero p {
        position: relative;
        top: -90px;
    }
    
    .hero .voucher-badge {
        position: relative;
        top: -103px;
    }
}

/* Ajuste de fonte para tablets e desktops */
@media (min-width: 481px) {
    .hero .cta-button span {
        font-size: 17px;
    }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

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