/* ============================================
   JUULS — Modern Redesign
   Inspired by Bar Leone HK aesthetic
   ============================================ */

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

:root {
    --ink:    #0c0c0c;
    --ink2:   #141414;
    --paper:  #FEECC7;
    --paper2: #F5E0B0;
    --yellow: #F5C200;
    --white:  #FAFAF8;
    --muted:  rgba(12,12,12,0.5);
    --mutedW: rgba(250,250,248,0.55);

    --f-display: 'Barlow Condensed', sans-serif;
    --f-body:    'Space Grotesk', sans-serif;
    --f-copy:    'DM Sans', sans-serif;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }

body {
    background: var(--ink);
    color: var(--white);
    font-family: var(--f-copy);
    font-weight: 300;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a   { color: inherit; text-decoration: none; }
address { font-style: normal; }
em  { font-style: italic; }


/* ============================================
   NAVIGATION
   ============================================ */

#navbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.8rem 3rem;
    transition: padding .4s var(--ease), background .5s ease, border-color .5s ease;
    border-bottom: 1px solid transparent;
}

#navbar.scrolled {
    background: rgba(12,12,12,.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1.1rem 3rem;
    border-bottom-color: rgba(245,194,0,.12);
}

.nav-logo {
    display: flex;
    align-items: center;
    line-height: 1;
    transition: opacity .3s;
}
.nav-logo:hover { opacity: .75; }

.nav-logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2.8rem;
}
.nav-links a {
    font-family: var(--f-body);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #fff;
    transition: color .3s;
}
.nav-links a:hover { color: var(--yellow); }

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 7px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-hamburger span {
    display: block;
    width: 26px;
    height: 1.5px;
    background: var(--white);
    transition: transform .35s var(--ease), opacity .3s;
    transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(6px,6px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }

/* Mobile menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--ink);
    z-index: 199;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 3rem;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform .55s var(--ease);
}
.mobile-menu.open { transform: translateX(0); }

.mobile-close {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    background: none;
    border: none;
    color: rgba(250,250,248,.5);
    font-size: 1.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: color .3s;
}
.mobile-close:hover { color: var(--yellow); }

.mobile-link {
    font-family: var(--f-display);
    font-size: clamp(3.2rem, 11vw, 5.5rem);
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--white);
    transition: color .3s;
    line-height: 1;
}
.mobile-link:hover { color: var(--yellow); }


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

.hero {
    position: relative;
    height: 100vh;
    min-height: 640px;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

/* Background set via inline style (gradient + image multi-layer) — no z-index conflicts */
.hero {
    background-color: #1a1510;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Content rows */
.hero-top {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7rem 3rem 0;
    gap: 2rem;
}
.hero-loc,
.hero-since {
    font-family: var(--f-body);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: rgba(250,250,248,1);
    white-space: nowrap;
    opacity: 0;
    animation: fadeIn .8s var(--ease) .8s forwards;
}

/* Center — absolutely positioned so it's independent of grid stacking */
.hero-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo image in hero */
.hero-logo {
    width: auto;
    max-width: min(50vh, 480px);
    max-height: 50vh;
    object-fit: contain;
    display: block;
}

/* Fallback title (shown only if no logo) */
.hero-title {
    font-family: var(--f-display);
    font-size: clamp(5rem, 17vw, 20rem);
    font-weight: 900;
    line-height: .88;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--white);
    text-align: center;
    white-space: nowrap;
    opacity: 0;
    animation: heroReveal 1.1s var(--ease) .3s forwards;
}

/* Footer wrapper inside hero (marquee + bottom row) — anchored to bottom */
.hero-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

/* Marquee inside hero — transparent background */
.hero .marquee-band {
    background: transparent;
    border-top: 1px solid rgba(245,194,0,.3);
    border-bottom: 1px solid rgba(245,194,0,.3);
    position: relative;
    z-index: 1;
}

/* Bottom row */
.hero-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 3rem 2.5rem;
}

.hero-sub {
    font-family: var(--f-display);
    font-size: clamp(1rem, 1.8vw, 1.5rem);
    font-weight: 300;
    font-style: italic;
    color: #5cb85c;
    opacity: 0;
    animation: fadeIn .8s var(--ease) 1.1s forwards;
}

.hero-cta {
    font-family: var(--f-body);
    font-size: .62rem;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--yellow);
    border-bottom: 1px solid rgba(245,194,0,.4);
    padding-bottom: 3px;
    transition: border-color .3s;
    opacity: 0;
    animation: fadeIn .8s var(--ease) 1.3s forwards;
}
.hero-cta:hover { border-color: var(--yellow); }


/* ============================================
   MARQUEE
   ============================================ */

.marquee-band {
    overflow: hidden;
    background: var(--ink2);
    border-top: 1px solid rgba(245,194,0,.15);
    border-bottom: 1px solid rgba(245,194,0,.15);
    padding: 1.2rem 0;
    cursor: default;
    user-select: none;
}

.marquee-run {
    display: flex;
    width: max-content;
    animation: marquee 28s linear infinite;
}
.marquee-band:hover .marquee-run { animation-play-state: paused; }

.marquee-set {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding-right: 2.5rem;
    flex-shrink: 0;
}

.marquee-set span {
    font-family: var(--f-display);
    font-size: clamp(2.4rem, 5.5vw, 5rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--yellow);
    white-space: nowrap;
}

.marquee-set b {
    font-size: 1.2rem;
    font-weight: 400;
    color: rgba(245,194,0,.4);
    flex-shrink: 0;
}


/* ============================================
   STORY
   ============================================ */

.story {
    background: var(--paper);
    color: var(--ink);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    min-height: 80vh;
}

.story-img-col {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 1.5rem;
    overflow: hidden;
}

.story-collage {
    width: 100%;
    height: 100%;
}

.story-collage img:nth-child(1) {
    width: 100%;
    height: auto;
    object-fit: unset;
    display: block;
}

/* location — colonna destra, sfasata in basso */
.story-collage img:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    height: auto !important;
    object-fit: unset !important;
    margin-top: 1.8rem;
    transition: transform .5s ease;
}

/* party — colonna destra, sotto location */
.story-collage img:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    height: auto !important;
    object-fit: unset !important;
    transition: transform .5s ease;
}

/* dj str — colonna sinistra, sotto people2 */
.story-collage img:nth-child(4) {
    grid-column: 1;
    grid-row: 3;
    width: 100%;
    height: 200px !important;
    object-fit: cover !important;
    object-position: top center;
    margin-top: -.35rem;
    transition: transform .5s ease;
}

/* location2 — colonna destra, riga 3 */
.story-collage img:nth-child(5) {
    grid-column: 2;
    grid-row: 3;
    width: 100%;
    height: auto !important;
    object-fit: unset !important;
    transition: transform .5s ease;
}

.story-collage img:hover { transform: scale(1.03); }

.story-img-frame {
    background: var(--paper2);
    width: 100%;
}

.story-img-frame img {
    display: block;
    width: 100%;
    height: auto !important;
    object-fit: unset !important;
    transition: transform 6s ease;
}
.story-img-frame:hover img { transform: scale(1.04); }

.story-img-placeholder {
    font-family: var(--f-body);
    font-size: .65rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: rgba(12,12,12,.25);
    pointer-events: none;
}

.story-stamp {
    position: absolute;
    bottom: 2.5rem;
    right: -1.5rem;
    font-family: var(--f-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-align: center;
    line-height: 1.1;
    color: var(--yellow);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    background: var(--ink);
    padding: 1rem .7rem;
    z-index: 2;
}

.story-text-col {
    padding: clamp(2rem, 5vw, 4rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.story-text-col .body-text {
    max-width: none;
}

.overtitle {
    font-family: var(--f-body);
    font-size: .65rem;
    font-weight: 500;
    letter-spacing: .38em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: 2rem;
    display: block;
}
.overtitle.light { color: rgba(245,194,0,.8); }
.story-text-col .overtitle {
    font-size: .78rem;
    font-weight: 700;
    color: #5cb85c;
}

.story-text-col h2 {
    font-family: var(--f-display);
    font-size: clamp(3.5rem, 7vw, 7rem);
    font-weight: 700;
    line-height: .95;
    text-transform: uppercase;
    letter-spacing: -.01em;
    color: var(--ink);
    margin-bottom: 2.5rem;
}
.story-text-col h2 em {
    font-weight: 300;
    text-transform: none;
}

.body-text {
    font-family: var(--f-copy);
    font-size: 1rem;
    line-height: 1.85;
    color: rgba(12,12,12,.65);
    margin-bottom: 1.25rem;
    max-width: 480px;
}
.body-text.light { color: #ffffff; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--f-body);
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink);
    margin-top: 1rem;
    border-bottom: 1px solid rgba(12,12,12,.25);
    padding-bottom: 3px;
    transition: border-color .3s, color .3s;
}
.link-arrow:hover {
    color: var(--ink);
    border-color: var(--ink);
}
.link-arrow span { transition: transform .3s; }
.link-arrow:hover span { transform: translateX(4px); }

.link-arrow.sm { font-size: .65rem; }

/* ============================================
   PULL QUOTE
   ============================================ */

.pullquote-band {
    background: var(--ink);
    border-top: 1px solid rgba(245,194,0,.12);
    border-bottom: 1px solid rgba(245,194,0,.12);
    text-align: center;
    padding: 5rem 2rem;
}
.pullquote-band p {
    font-family: var(--f-display);
    font-size: clamp(2.2rem, 5vw, 5rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.15;
    color: #5cb85c;
    letter-spacing: .02em;
}


/* ============================================
   MENU SECTION
   ============================================ */

.menu {
    position: relative;
    min-height: 80vh;
    display: grid;
    grid-template-columns: 1fr 40%;
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "title  image"
        "content image";
    overflow: hidden;
}

.menu-title-wrap {
    grid-area: title;
    position: relative;
    z-index: 2;
    padding: 5rem 3rem 0;
}

.menu-img-col {
    grid-area: image;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.menu-img-col img {
    width: 100%;
    height: auto;
    object-fit: unset;
    display: block;
}

.menu-media {
    position: absolute;
    inset: 0;
    background: #1a1510 center/cover no-repeat;
    opacity: .45;
    transition: opacity .6s ease;
}
.menu:hover .menu-media { opacity: .55; }

.menu-dim {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(12,12,12,.85) 35%, rgba(12,12,12,.4));
}

.menu-content {
    grid-area: content;
    position: relative;
    z-index: 2;
    padding: 2rem 3rem 5rem;
    max-width: 700px;
}

.menu-title {
    font-family: var(--f-display);
    font-size: clamp(5rem, 13vw, 13rem);
    font-weight: 800;
    text-transform: uppercase;
    line-height: .88;
    letter-spacing: -.01em;
    color: var(--white);
    margin-bottom: 2.5rem;
}

.btn-yellow {
    display: inline-block;
    margin-top: 1rem;
    padding: 1rem 3.5rem;
    background: var(--yellow);
    color: var(--ink);
    font-family: var(--f-body);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    transition: background .3s, color .3s;
}
.btn-yellow:hover { background: var(--white); }

.menu-sub {
    margin-top: 1.4rem;
    font-family: var(--f-display);
    font-size: clamp(1rem, 1.8vw, 1.5rem);
    font-weight: 300;
    font-style: italic;
    color: #5cb85c;
}


/* ============================================
   EVENTS
   ============================================ */

.events {
    background: var(--paper);
    color: var(--ink);
    padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 4vw, 3rem);
}

.events-head {
    margin-bottom: 4rem;
}

.events-head h2 {
    font-family: var(--f-display);
    font-size: clamp(3.5rem, 7vw, 7rem);
    font-weight: 700;
    text-transform: uppercase;
    line-height: .95;
    letter-spacing: -.01em;
    color: var(--ink);
}
.events-head h2 em { font-weight: 300; text-transform: none; }

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .8rem;
}

.ev-card {
    background: var(--paper2);
    overflow: hidden;
    border: 1px solid rgba(12,12,12,.08);
    transition: border-color .3s;
}
.ev-card:hover { border-color: var(--ink); }

.ev-img {
    height: 260px;
    position: relative;
    overflow: hidden;
    background: rgba(12,12,12,.06);
}
.ev-img img { transition: transform .7s var(--ease); }
.ev-card:hover .ev-img img { transform: scale(1.06); }

.ev-img-ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .62rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: rgba(12,12,12,.2);
    pointer-events: none;
    z-index: 0;
}
.ev-img img + .ev-img-ph { display: none; }

.ev-body { padding: 1.8rem 2rem 2rem; }

.ev-tag {
    display: block;
    font-family: var(--f-body);
    font-size: .6rem;
    font-weight: 500;
    letter-spacing: .35em;
    text-transform: uppercase;
    color: var(--yellow);
    background: var(--ink);
    display: inline-block;
    padding: .3rem .75rem;
    margin-bottom: 1.1rem;
}

.ev-body h3 {
    font-family: var(--f-display);
    font-size: 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--ink);
    line-height: .95;
    margin-bottom: .8rem;
    letter-spacing: -.01em;
}

.ev-body p {
    font-size: .9rem;
    line-height: 1.7;
    color: rgba(12,12,12,.55);
}


/* ============================================
   INFO / CONTACT
   ============================================ */

.info {
    background: var(--ink);
    border-top: 1px solid rgba(245,194,0,.12);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
}

.info-col {
    padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3.5rem);
    border-right: 1px solid rgba(245,194,0,.1);
}
.info-col:last-child { border-right: none; }

.info-label {
    font-family: var(--f-body);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .38em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1.5rem;
}

.info-col address,
.info-col p {
    font-family: var(--f-copy);
    font-size: .98rem;
    font-weight: 700;
    line-height: 1.8;
    color: #fff;
    margin-bottom: .75rem;
}
.dimmed { opacity: .35 !important; font-size: .85rem !important; }

.info-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.info-wordmark-logo {
    height: 100px;
    width: auto;
    object-fit: contain;
    margin-bottom: .75rem;
}

.info-tagline {
    font-family: var(--f-display);
    font-size: 1.1rem;
    font-weight: 300;
    font-style: italic;
    color: var(--yellow) !important;
    line-height: 1.5;
    margin-bottom: 2.5rem !important;
    opacity: 1 !important;
}

.info-socials {
    display: flex;
    flex-direction: column;
    gap: .8rem;
    align-items: center;
}
.info-socials a {
    font-family: var(--f-body);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: #fff;
    transition: color .3s;
}
.info-socials a:hover { color: var(--yellow); }

.info-right { text-align: right; }

.link-arrow.sm {
    color: #fff;
    font-weight: 700;
    border-color: rgba(250,250,248,.4);
    margin-top: .5rem;
}
.link-arrow.sm:hover {
    color: var(--yellow);
    border-color: rgba(245,194,0,.4);
}

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

.footer {
    background: var(--ink2);
    border-top: 1px solid rgba(255,255,255,.04);
    text-align: center;
    padding: 1.8rem;
}
.footer p {
    font-family: var(--f-body);
    font-size: .6rem;
    font-weight: 400;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(250,250,248,.2);
}


/* ============================================
   REVEAL ANIMATION
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .12s; }
.reveal-d2 { transition-delay: .24s; }


/* ============================================
   KEYFRAMES
   ============================================ */

@keyframes heroReveal {
    from { opacity: 0; transform: translateY(20px) skewY(.4deg); }
    to   { opacity: 1; transform: translateY(0) skewY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}


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

@media (max-width: 1100px) {
    .story          { grid-template-columns: 1fr; min-height: auto; }
    .story-img-col  { height: auto; min-height: unset; position: relative; }
    .story-text-col { padding: 3rem 2rem 4rem; }

    .events-grid { grid-template-columns: 1fr 1fr; }

    .info {
        grid-template-columns: 1fr;
    }
    .info-col {
        border-right: none;
        border-bottom: 1px solid rgba(245,194,0,.1);
    }
    .info-col:last-child { border-bottom: none; }
    .info-center { align-items: flex-start; text-align: left; }
    .info-socials { align-items: flex-start; }
    .info-right { text-align: left; }
}

@media (max-width: 768px) {
    .nav-links      { display: none; }
    .nav-hamburger  { display: flex; }
    #navbar         { padding: 1.5rem 1.5rem; }
    #navbar.scrolled{ padding: 1rem 1.5rem; }

    .hero-top       { padding: 6rem 1.5rem 0; }
    .hero-loc       { font-size: .6rem; letter-spacing: .12em; white-space: normal; max-width: 60%; }
    .hero-since     { font-size: .6rem; letter-spacing: .12em; }
    .hero-bottom    { padding: 0 1.5rem 2rem; }
    .hero-title     { font-size: clamp(7rem, 30vw, 14rem); }

    .menu           { display: flex; flex-direction: column; min-height: auto; }
    .menu-title-wrap { padding: 3rem 1.5rem 0; order: 1; }
    .menu-img-col   { display: block; width: 100%; max-width: 100%; height: auto; order: 2; }
    .menu-content   { padding: 2rem 1.5rem 3rem; order: 3; }

    .events         { padding: 3.5rem 1.5rem; }
    .events-grid    { grid-template-columns: 1fr; gap: .6rem; }

    .pullquote-band { padding: 3rem 1.5rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: clamp(5.5rem, 32vw, 10rem); }
    .marquee-set span { font-size: 2.2rem; }
    .menu-title { font-size: clamp(4rem, 18vw, 8rem); }
}

/* ── WhatsApp floating button ── */
.whatsapp-btn {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: .55rem;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    font-family: var(--f-body);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .7rem 1.1rem .7rem .9rem;
    border-radius: 999px;
    box-shadow: 0 4px 20px rgba(0,0,0,.35);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,.45);
}
@media (max-width: 600px) {
    .whatsapp-btn span { display: none; }
    .whatsapp-btn { padding: .8rem; }
}
