/* ============================================
   Xelaju — Café & Bar
   Premium Dark Luxury Design
   ============================================ */

/* ── Reset & Base ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0D0D0D;
    --bg-secondary: #141414;
    --bg-tertiary: #1A1A1A;
    --bg-card: #161616;
    --text-primary: #F5F0EB;
    --text-secondary: #A8A29E;
    --text-muted: #6B6560;
    --coral: #E8604C;
    --coral-light: #F07868;
    --coral-dark: #C94E3C;
    --coral-glow: rgba(232, 96, 76, 0.15);
    --coral-glow-strong: rgba(232, 96, 76, 0.25);
    --gold: #C9A96E;
    --gold-light: #D4BA8A;
    --gold-muted: rgba(201, 169, 110, 0.3);
    --border: rgba(245, 240, 235, 0.08);
    --border-light: rgba(245, 240, 235, 0.12);
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

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

/* ── Section Labels & Titles ── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 16px;
}

.section-label::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: var(--coral);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.text-coral {
    color: var(--coral);
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: 6px;
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
}

.btn--primary {
    background: var(--coral);
    color: #fff;
    box-shadow: 0 4px 20px rgba(232, 96, 76, 0.3);
}

.btn--primary:hover {
    background: var(--coral-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(232, 96, 76, 0.4);
}

.btn--ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn--ghost:hover {
    border-color: var(--coral);
    color: var(--coral);
    transform: translateY(-2px);
}

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

/* ── Navigation ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
    transition: all 0.4s var(--ease-out);
}

.nav.scrolled {
    background: rgba(13, 13, 13, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: opacity 0.3s;
}

.nav__logo:hover {
    opacity: 0.8;
}

.nav__logo-text {
    letter-spacing: 0.02em;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav__link {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.03em;
    transition: color 0.3s;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--coral);
    transition: width 0.3s var(--ease-out);
}

.nav__link:hover {
    color: var(--text-primary);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link--cta {
    padding: 8px 20px;
    border: 1px solid var(--coral);
    border-radius: 5px;
    color: var(--coral);
    transition: all 0.3s var(--ease-out);
}

.nav__link--cta::after {
    display: none;
}

.nav__link--cta:hover {
    background: var(--coral);
    color: #fff;
}

/* Mobile Toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
    z-index: 1001;
}

.nav__toggle-line {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
    transform-origin: center;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(2) {
    opacity: 0;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(13, 13, 13, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out);
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu__link {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text-secondary);
    padding: 12px 24px;
    transition: color 0.3s;
}

.mobile-menu__link:hover {
    color: var(--coral);
}

.mobile-menu__link--cta {
    margin-top: 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--coral);
    border: 1px solid var(--coral);
    border-radius: 6px;
    padding: 12px 32px;
}

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(13, 13, 13, 0.55) 0%,
        rgba(13, 13, 13, 0.4) 40%,
        rgba(13, 13, 13, 0.7) 80%,
        rgba(13, 13, 13, 0.95) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    width: 100%;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 28px;
    padding: 8px 16px;
    border: 1px solid rgba(232, 96, 76, 0.3);
    border-radius: 100px;
    background: rgba(232, 96, 76, 0.08);
}

.hero__headline {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    color: var(--text-primary);
    margin-bottom: 24px;
    max-width: 800px;
}

.hero__accent {
    color: var(--coral);
    font-style: italic;
}

.hero__sub {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 40px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 56px;
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hero__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.hero__meta-item svg {
    color: var(--coral);
    opacity: 0.8;
}

.hero__meta-sep {
    color: var(--text-muted);
    opacity: 0.4;
}

.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--coral), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* ── About ── */
.about {
    padding: 120px 0;
    background: var(--bg-primary);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about__media {
    position: relative;
}

.about__img-wrap {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5);
}

.about__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.about__img-wrap:hover img {
    transform: scale(1.03);
}

.about__img-secondary {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 55%;
    border-radius: 10px;
    overflow: hidden;
    border: 4px solid var(--bg-primary);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.about__img-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about__content {
    padding: 24px 0;
}

.about__text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.about__stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat__number {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--coral);
}

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

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-light);
}

/* ── Menu ── */
.menu {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.menu__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 56px;
}

.menu__desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.menu__tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.menu__tab {
    padding: 10px 24px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 100px;
    transition: all 0.3s var(--ease-out);
    letter-spacing: 0.02em;
}

.menu__tab:hover {
    color: var(--text-primary);
    border-color: var(--border-light);
}

.menu__tab.active {
    background: var(--coral);
    color: #fff;
    border-color: var(--coral);
}

.menu__panel {
    display: none;
}

.menu__panel.active {
    display: block;
    animation: fadeIn 0.4s var(--ease-out);
}

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

.menu__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.menu__item {
    background: var(--bg-card);
    padding: 28px 32px;
    transition: background 0.3s;
}

.menu__item:hover {
    background: rgba(232, 96, 76, 0.04);
}

.menu__item-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.menu__item-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.menu__note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 32px;
    font-style: italic;
}

/* ── Gallery ── */
.gallery {
    padding: 120px 0;
    background: var(--bg-primary);
}

.gallery__header {
    text-align: center;
    margin-bottom: 56px;
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 280px);
    gap: 16px;
}

.gallery__item {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.gallery__item:hover img {
    transform: scale(1.05);
}

.gallery__item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,13,13,0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery__item:hover::after {
    opacity: 1;
}

.gallery__item--large {
    grid-column: 1 / 8;
    grid-row: 1 / 3;
}

.gallery__item--wide {
    grid-column: 1 / 13;
    grid-row: 2 / 3;
}

/* ── Hours ── */
.hours {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.hours__card {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 56px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.hours__content {
    padding-top: 8px;
}

.hours__schedule {
    display: flex;
    flex-direction: column;
}

.hours__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.hours__row:first-child {
    padding-top: 0;
}

.hours__day {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.hours__time {
    font-size: 0.9rem;
    color: var(--coral);
    font-weight: 500;
}

.hours__divider {
    height: 1px;
    background: var(--border-light);
    margin: 8px 0;
}

.hours__note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.hours__note svg {
    color: var(--coral);
    flex-shrink: 0;
}

/* ── Contact ── */
.contact {
    padding: 120px 0;
    background: var(--bg-primary);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact__text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact__detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--coral-glow);
    color: var(--coral);
    flex-shrink: 0;
}

.contact__detail-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact__detail-value {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.contact__detail-value a {
    color: var(--coral);
    transition: color 0.3s;
}

.contact__detail-value a:hover {
    color: var(--coral-light);
}

/* Form */
.contact__form-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
}

.form__group {
    margin-bottom: 20px;
}

.form__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form__input,
.form__textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s;
}

.form__input::placeholder,
.form__textarea::placeholder {
    color: var(--text-muted);
}

.form__input:focus,
.form__textarea:focus {
    border-color: var(--coral);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.form__success {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: rgba(232, 96, 76, 0.1);
    border: 1px solid rgba(232, 96, 76, 0.3);
    border-radius: 8px;
    color: var(--coral);
    font-size: 0.9rem;
    margin-top: 16px;
}

.form__success.show {
    display: flex;
}

.form__success svg {
    flex-shrink: 0;
}

/* ── Map Section ── */
.map-section {
    position: relative;
    height: 350px;
    filter: invert(90%) hue-rotate(180deg);
}

.map-section iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* ── Footer ── */
.footer {
    padding: 64px 0 32px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.footer__top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 48px;
    align-items: start;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.footer__tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__links a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.footer__links a:hover {
    color: var(--coral);
}

.footer__contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer__contact a {
    color: var(--coral);
    transition: color 0.3s;
}

.footer__contact a:hover {
    color: var(--coral-light);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
    }
    
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .about__grid {
        gap: 48px;
    }
    
    .hours__card {
        grid-template-columns: 1fr;
        padding: 40px;
    }
    
    .footer__top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav__menu {
        display: none;
    }
    
    .nav__toggle {
        display: flex;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    .hero__headline {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
    }
    
    .hero__actions {
        flex-direction: column;
    }
    
    .hero__actions .btn {
        justify-content: center;
    }
    
    .about__grid {
        grid-template-columns: 1fr;
        gap: 56px;
    }
    
    .about__img-secondary {
        position: relative;
        bottom: auto;
        right: auto;
        width: 100%;
        margin-top: 16px;
    }
    
    .menu__grid {
        grid-template-columns: 1fr;
    }
    
    .gallery__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    
    .gallery__item--large {
        grid-column: 1 / 3;
        grid-row: auto;
        min-height: 280px;
    }
    
    .gallery__item--wide {
        grid-column: 1 / 3;
        grid-row: auto;
        min-height: 200px;
    }
    
    .gallery__item {
        min-height: 200px;
    }
    
    .contact__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer__top {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero__content {
        padding: 100px 16px 60px;
    }
    
    .about, .menu, .gallery, .hours, .contact {
        padding: 80px 0;
    }
    
    .menu__tabs {
        gap: 6px;
    }
    
    .menu__tab {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .menu__item {
        padding: 20px 20px;
    }
    
    .gallery__grid {
        grid-template-columns: 1fr;
    }
    
    .gallery__item--large,
    .gallery__item--wide {
        grid-column: 1;
    }
    
    .hours__card {
        padding: 28px;
    }
    
    .contact__form-wrap {
        padding: 24px;
    }
}
