/* =========================================
   1. CORE VARIABLES & RESET
   ========================================= */
:root {
    /* Colors */
    --bg-body: #ffffff;
    --bg-surface: #fcfcfc;
    --bg-surface-hover: #f7f7f7;

    --text-main: #09090b;
    --text-secondary: #52525b;
    --text-muted: #a1a1aa;

    --border-light: #e4e4e7;
    --border-hover: #d4d4d8;

    --primary: #000000;
    --primary-foreground: #ffffff;

    /* Semantic */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;

    /* Spacing */
    --section-gap: 120px;

    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

button,
input {
    font-family: inherit;
}

/* =========================================
   2. ANIMATIONS & TRANSITIONS
   ========================================= */

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.reveal-active {
    animation: revealUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-500 { animation-delay: 0.5s; }

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin-slow {
    animation: spin 8s linear infinite;
}

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

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

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

.animate-marquee {
    display: flex;
    width: fit-content;
    animation: marquee 30s linear infinite;
}

/* =========================================
   3. UTILITIES & HELPERS
   ========================================= */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.grid-bg {
    background-image:
        linear-gradient(to right, #f0f0f0 1px, transparent 1px),
        linear-gradient(to bottom, #f0f0f0 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.display-text {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.95;
    word-break: break-word;
}

.h1 { font-size: 3.5rem; letter-spacing: -0.02em; font-weight: 700; }
.h2 { font-size: 2.5rem; letter-spacing: -0.02em; font-weight: 600; }
.h3 { font-size: 2rem; letter-spacing: -0.01em; font-weight: 600; }
.h4 { font-size: 1.5rem; letter-spacing: -0.01em; font-weight: 500; }

.body-lg { font-size: 1.125rem; line-height: 1.7; }
.body-base { font-size: 1rem; line-height: 1.6; }
.body-sm { font-size: 0.875rem; line-height: 1.5; color: var(--text-secondary); }

.caption {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.text-gradient {
    background: linear-gradient(135deg, #000 0%, #666 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-stroke {
    color: transparent;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.15);
    transition: all 0.5s ease;
}

.text-stroke:hover {
    -webkit-text-stroke: 1px rgba(0, 0, 0, 1);
}

/* =========================================
   4. COMPONENTS
   ========================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-main);
    border-color: var(--border-light);
}

.btn-secondary:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-hover);
}

.btn-whatsapp {
    background: #25d366;
    color: white;
}

.btn-whatsapp:hover {
    background: #20b355;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(37, 211, 102, 0.4);
}

.btn-beam {
    position: relative;
    padding: 1px;
    border-radius: 9999px;
    overflow: hidden;
    display: inline-flex;
}

@keyframes beamSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.btn-beam-bg {
    position: absolute;
    inset: -100%;
    background: conic-gradient(from 0deg, transparent 0 340deg, #000 360deg);
    animation: beamSpin 3s linear infinite;
}

.btn-beam-inner {
    position: relative;
    background: white;
    color: black;
    border-radius: 9999px;
    padding: 0.75rem 2rem;
    font-weight: 700;
    font-size: 0.875rem;
    z-index: 1;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.flashlight-card {
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-light);
    overflow: hidden;
    border-radius: 1.5rem;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.flashlight-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(0, 0, 0, 0.04),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 2;
}

.flashlight-card:hover::before {
    opacity: 1;
}

/* =========================================
   5. LAYOUT & SECTIONS
   ========================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    color: white; /* Default to white for dark hero bg */
    width: 100%;
    overflow: hidden;
}

.navbar .brand-text {
    color: white !important;
}

.navbar .nav-links a {
    color: rgba(255,255,255,0.7) !important;
}

.navbar .nav-links a:hover {
    color: white !important;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 2rem;
    color: black;
}

.navbar.scrolled .brand-text {
    color: black !important;
}

.navbar.scrolled .nav-links a {
    color: var(--text-secondary) !important;
}

.navbar.scrolled .nav-links a:hover {
    color: black !important;
}

.nav-links {
    display: flex;
    gap: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}

section {
    padding: var(--section-gap) 0;
    position: relative;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 8rem;
    position: relative;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('asset/drinks.png');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-section .caption, 
.hero-section .display-text, 
.hero-section .body-lg {
    color: white !important;
}

.hero-section .text-stroke {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
}

.hero-section .text-stroke:hover {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 1);
}

.hero-section .section-line,
.hero-section span[style*="background: black"] {
    background: white !important;
}

.hero-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    z-index: 1;
}

.hero-visual img {
    width: 100%;
    border-radius: 2rem;
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.15);
}

.social-bar {
    position: fixed;
    left: 2rem;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 50;
}

/* Banner Dobra 2 */
.banner-container {
    padding: 2rem 0;
}

.banner-visual {
    width: 100%;
    height: 600px;
    border-radius: 2rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.2);
}

.banner-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.banner-visual:hover img {
    transform: scale(1.05);
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 4rem;
    color: white;
}

/* Map Section */
.map-container {
    width: 100%;
    height: 500px;
    border-radius: 2rem;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(0.8) contrast(1.1) invert(0.05);
}

/* =========================================
   6. RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .hero-visual {
        position: relative;
        width: 100%;
        right: 0;
        top: 0;
        transform: none;
        margin-top: 4rem;
    }
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-bottom: 4rem;
    }
    .display-text {
        font-size: 4rem;
    }
}

@media (max-width: 480px) {
    :root {
        --section-gap: 60px;
    }

    .container {
        padding: 0 1.25rem;
    }

    .navbar {
        padding: 1rem 1.25rem;
    }

    .navbar.scrolled {
        padding: 0.75rem 1.25rem;
    }

    .navbar .brand-text {
        font-size: 1rem !important;
    }

    .display-text {
        font-size: 2.25rem !important;
        line-height: 1.05;
        letter-spacing: -0.05em;
    }

    .display-text br {
        display: none;
    }

    .display-text {
        font-size: 2rem !important;
        line-height: 1.1;
        letter-spacing: -0.04em;
        word-break: normal;
    }

    .btn-whatsapp span {
        display: none !important;
    }

    .btn-whatsapp {
        padding: 0 0.5rem !important;
        width: 2.5rem !important;
        height: 2.5rem !important;
        min-width: unset !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
    }

    .btn-whatsapp iconify-icon {
        font-size: 1.5rem !important;
        margin: 0 !important;
    }

    .hero-section {
        padding-top: 5rem;
        min-height: auto;
    }

    .hero-visual {
        margin-top: 1rem;
    }

    .banner-overlay {
        padding: 1.5rem;
    }

    .banner-visual {
        height: 400px;
    }

    .flashlight-card {
        padding: 1.25rem;
    }
    
    .btn-beam {
        width: 100%;
        max-width: 280px;
    }

    .btn-beam-inner {
        width: 100%;
        justify-content: center;
    }

    .btn-beam-bg {
        inset: -20%; /* Minimal expansion to avoid any risk of overflow */
    }
}
