/* ==============================================================================
   ESTILOS PRINCIPAIS - SUBMARINO BAR (SAQUAREMA)
   Paleta: Preto Metálico Submarino (#080b0f, #111620) e Dourado Chopp (#f5a623, #d4af37, #ffe082)
   ============================================================================== */

/* Bloco de importação de fontes tipográficas modernas do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&family=Outfit:wght@300;400;500;600;700&display=swap');

/* Bloco de variáveis de design e tokens de cor */
:root {
    --bg-dark: #07090d;
    --bg-surface: rgba(14, 18, 25, 0.72);
    --bg-surface-border: rgba(212, 175, 55, 0.28);
    --gold-primary: #f5a623;
    --gold-bright: #ffc83b;
    --gold-metallic: #d4af37;
    --gold-glow: rgba(245, 166, 35, 0.45);
    --gold-pale: #fbf5de;
    --text-primary: #ffffff;
    --text-muted: #b8c4d4;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Outfit', sans-serif;
    --transition-smooth: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Bloco de reset básico e normalização */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow: hidden;
    position: relative;
    user-select: none;
    -webkit-font-smoothing: antialiased;
}

/* Bloco do container de vídeo e transição suave contínua */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    background-color: #07090d;
}

.video-element {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.video-element.active {
    opacity: 1;
}

/* Bloco de vinheta cinematográfica suave nas bordas (mantém total nitidez do vídeo central) */
.cinematic-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(circle at center, transparent 40%, rgba(4, 6, 10, 0.45) 85%, rgba(2, 3, 5, 0.75) 100%);
}

/* Bloco do canvas de partículas de chopp e espuma ao clicar */
#beer-splash-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99;
    pointer-events: none;
}

/* Bloco do botão de áudio minimalista (apenas ícone de alto-falante) */
.audio-control-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 30;
}

.audio-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(14, 18, 25, 0.6);
    border: 1px solid var(--bg-surface-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--gold-bright);
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.audio-btn:hover {
    border-color: var(--gold-bright);
    color: #ffffff;
    box-shadow: 0 0 20px var(--gold-glow);
    transform: scale(1.08);
}

.audio-btn.playing {
    border-color: var(--gold-bright);
    color: var(--gold-bright);
    box-shadow: 0 0 16px var(--gold-glow);
}

.audio-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.audio-icon-box svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* Bloco do conteúdo principal (Layout Aberto e Profissional sem caixas opacas) */
.main-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    text-align: center;
}

.hero-layout {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInCard 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Bloco da logo em destaque */
.logo-wrapper {
    position: relative;
    margin-bottom: 18px;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 135px;
    height: 135px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--gold-glow) 0%, rgba(245,166,35,0) 70%);
    filter: blur(16px);
    pointer-events: none;
    animation: pulseGlow 4s ease-in-out infinite alternate;
}

.brand-logo {
    position: relative;
    width: 105px;
    height: 105px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold-metallic);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.75), 0 0 25px rgba(212, 175, 55, 0.35);
    transition: var(--transition-smooth);
}

.brand-logo:hover {
    transform: scale(1.05) rotate(2deg);
    border-color: var(--gold-bright);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.8), 0 0 30px var(--gold-glow);
}

/* Bloco dos textos flutuantes com alta legibilidade */
.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gold-bright);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 14px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95);
}

.location-badge::before,
.location-badge::after {
    content: '';
    display: inline-block;
    width: 28px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-bright));
}

.location-badge::after {
    background: linear-gradient(90deg, var(--gold-bright), transparent);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 2px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #ffffff 20%, #ffe099 65%, #f5a623 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.95));
}

.offerings-text {
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    color: #e6edf7;
    letter-spacing: 3px;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 32px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.95);
}

.offerings-text span {
    color: var(--gold-bright);
    margin: 0 8px;
    font-weight: 600;
}

/* Bloco do botão de redirecionamento para o Instagram */
.cta-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.instagram-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 30px;
    background: rgba(14, 18, 25, 0.65);
    color: #ffffff;
    border: 1px solid var(--gold-metallic);
    border-radius: 50px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(212, 175, 55, 0.15);
}

.instagram-btn:hover {
    border-color: #ffffff;
    background: rgba(22, 28, 40, 0.85);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(225, 48, 108, 0.35);
    transform: translateY(-2px);
}

.instagram-icon {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

.instagram-btn:hover .instagram-icon {
    transform: scale(1.15) rotate(4deg);
}

/* Bloco da caneca de chopp zero grau como cursor no Desktop */
.beer-mug-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 44px;
    height: 44px;
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.25s ease;
    will-change: transform;
}

.beer-mug-cursor.visible {
    opacity: 1;
}

.beer-mug-inner {
    width: 100%;
    height: 100%;
    transform-origin: 30% 70%;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.75));
    transition: transform 0.15s ease-out;
}

.beer-mug-cursor.pour .beer-mug-inner {
    animation: mugPourClick 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Bloco de animações-chave */
@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulseGlow {
    0% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(0.95);
    }
    100% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes mugPourClick {
    0% {
        transform: rotate(0deg);
    }
    35% {
        transform: rotate(-44deg) scale(1.14);
    }
    100% {
        transform: rotate(0deg);
    }
}

/* Oculta completamente o cursor da caneca em dispositivos touch e telas móveis */
@media (hover: none) and (pointer: coarse), (max-width: 992px) {
    .beer-mug-cursor {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

/* Bloco de responsividade e adaptação para Mobile (Retrato e Paisagem) */
@media (max-width: 768px) {
    .main-wrapper {
        padding: 24px 16px;
    }

    .hero-layout {
        max-width: 100%;
    }

    .brand-logo {
        width: 85px;
        height: 85px;
    }

    .location-badge {
        font-size: 0.85rem;
        letter-spacing: 4px;
        margin-bottom: 10px;
    }

    .hero-title {
        font-size: clamp(1.8rem, 7vw, 2.4rem);
        margin-bottom: 12px;
    }

    .offerings-text {
        font-size: 0.92rem;
        letter-spacing: 2px;
        margin-bottom: 26px;
    }

    .audio-control-container {
        top: 16px;
        right: 16px;
    }

    .audio-btn {
        width: 40px;
        height: 40px;
    }
}

/* Adaptação específica para celular em orientação Paisagem (Landscape) */
@media (max-height: 540px) and (orientation: landscape) {
    html, body {
        overflow-y: auto;
    }

    .main-wrapper {
        min-height: auto;
        padding: 16px 20px;
    }

    .hero-layout {
        max-width: 580px;
    }

    .logo-wrapper {
        margin-bottom: 8px;
    }

    .brand-logo {
        width: 60px;
        height: 60px;
    }

    .location-badge {
        margin-bottom: 4px;
        font-size: 0.75rem;
        letter-spacing: 3px;
    }

    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 6px;
    }

    .offerings-text {
        font-size: 0.8rem;
        letter-spacing: 2px;
        margin-bottom: 14px;
    }

    .instagram-btn {
        padding: 8px 22px;
        font-size: 0.88rem;
    }

    .audio-control-container {
        top: 12px;
        right: 12px;
    }

    .audio-btn {
        width: 36px;
        height: 36px;
    }
}
