/* ═══════════════════════════════════════════
   X CREM — Premium Dark Luxury
   Terracotta + Sand Palette
   ═══════════════════════════════════════════ */

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

:root {
    /* Dark luxury base */
    --bg-primary: #0f0c08;
    --bg-secondary: #1a1510;
    --bg-tertiary: #241e17;
    --bg-card: #1e1812;

    /* Terracotta palette */
    --terracotta-50: #fdf0e8;
    --terracotta-100: #f8dcc8;
    --terracotta-200: #f0b898;
    --terracotta-300: #e89068;
    --terracotta-400: #d46a42;
    --terracotta-500: #c0522a;
    --terracotta-600: #a8411e;
    --terracotta-700: #8a3319;
    --terracotta-800: #6e2916;
    --terracotta-900: #4a1c0e;

    /* Sand palette */
    --sand-50: #faf6f0;
    --sand-100: #f3ebe0;
    --sand-200: #e8d9c4;
    --sand-300: #d4be9e;
    --sand-400: #c4a77a;
    --sand-500: #b49460;
    --sand-600: #9e7e4e;
    --sand-700: #7a6038;
    --sand-800: #524022;
    --sand-900: #2a2010;

    /* Gold accent */
    --gold-300: #e8c47c;
    --gold-400: #d4a84b;
    --gold-500: #c8956c;
    --gold-600: #b07840;

    /* Neutrals */
    --text-primary: #f5efe6;
    --text-secondary: #c4b8a8;
    --text-muted: #8a7e70;
    --text-dark: #1a1510;

    /* Borders */
    --border-subtle: rgba(200, 149, 108, 0.12);
    --border-medium: rgba(200, 149, 108, 0.25);

    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Manrope', -apple-system, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    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 {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 12, 8, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.4s var(--ease-out);
}

.nav.scrolled {
    background: rgba(15, 12, 8, 0.92);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.nav-logo-mark {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gold-500);
    line-height: 1;
}

.nav-logo-text {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    list-style: none;
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: color 0.3s var(--ease-out);
    position: relative;
}

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

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

.nav-link:hover::after {
    width: 100%;
}

.nav-link--cta {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--border-medium);
    border-radius: 100px;
    color: var(--sand-300);
    transition: all 0.3s var(--ease-out);
}

.nav-link--cta::after {
    display: none;
}

.nav-link--cta:hover {
    background: var(--gold-500);
    border-color: var(--gold-500);
    color: var(--text-dark);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s var(--ease-out);
    transform-origin: center;
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

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

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

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.mobile-menu-link {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-secondary);
    transition: color 0.3s var(--ease-out);
}

.mobile-menu-link:hover {
    color: var(--gold-500);
}

.mobile-menu-cta {
    margin-top: var(--space-md);
    font-family: var(--font-body);
    font-size: 1rem;
    letter-spacing: 0.1em;
    color: var(--gold-500) !important;
    border: 1px solid var(--border-medium);
    padding: 0.75rem 2rem;
    border-radius: 100px;
}

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

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 12, 8, 0.55) 0%,
        rgba(15, 12, 8, 0.75) 50%,
        rgba(15, 12, 8, 0.92) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 0 var(--space-md);
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
}

.hero-tagline {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: var(--space-md);
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.hero-accent {
    font-style: italic;
    color: var(--gold-500);
}

.hero-sub {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto var(--space-lg);
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 100px;
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
}

.btn--primary {
    background: var(--gold-500);
    color: var(--text-dark);
    border: 2px solid var(--gold-500);
}

.btn--primary:hover {
    background: var(--gold-400);
    border-color: var(--gold-400);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(200, 149, 108, 0.3);
}

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

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

/* Hero Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

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

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

/* ═══════════════════════════════════════════
   SECTION SHARED
   ═══════════════════════════════════════════ */
.section-tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.text-accent {
    font-style: italic;
    color: var(--gold-500);
}

/* ═══════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════ */
.about {
    padding: var(--space-3xl) 0;
    background: var(--bg-primary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.about-image-wrap {
    position: relative;
}

.about-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.about-image-accent {
    position: absolute;
    top: -16px;
    left: -16px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--gold-500);
    border-radius: 4px;
    z-index: -1;
    opacity: 0.4;
}

.about-text {
    padding: var(--space-md) 0;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: var(--space-sm);
}

.about-stats {
    display: flex;
    gap: var(--space-xl);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-subtle);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--gold-500);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   MENU
   ═══════════════════════════════════════════ */
.menu {
    padding: var(--space-3xl) 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.menu-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-xl);
}

.menu-intro {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

.menu-tabs {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.menu-tab {
    padding: 0.75rem 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    transition: all 0.3s var(--ease-out);
    background: transparent;
}

.menu-tab:hover {
    color: var(--text-primary);
    border-color: var(--border-medium);
}

.menu-tab.active {
    background: var(--gold-500);
    border-color: var(--gold-500);
    color: var(--text-dark);
}

.menu-panel {
    display: none;
}

.menu-panel.active {
    display: block;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.menu-category {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: var(--space-lg);
    transition: border-color 0.3s var(--ease-out);
}

.menu-category:hover {
    border-color: var(--border-medium);
}

.category-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gold-500);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-subtle);
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(200, 149, 108, 0.06);
}

.menu-item:last-child {
    border-bottom: none;
}

.item-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.item-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.item-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--sand-400);
    white-space: nowrap;
}

/* ═══════════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════════ */
.gallery {
    padding: var(--space-3xl) 0;
    background: var(--bg-primary);
}

.gallery-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 280px);
    gap: var(--space-sm);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}

.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-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-md);
    background: linear-gradient(to top, rgba(15, 12, 8, 0.85), transparent);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-primary);
    transform: translateY(100%);
    transition: transform 0.4s var(--ease-out);
}

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
}

.gallery-item--large {
    grid-column: span 7;
    grid-row: span 1;
}

.gallery-item--tall {
    grid-column: span 5;
    grid-row: span 2;
}

/* ═══════════════════════════════════════════
   VISIT
   ═══════════════════════════════════════════ */
.visit {
    padding: var(--space-3xl) 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.visit-detail {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.visit-icon {
    width: 24px;
    height: 24px;
    color: var(--gold-500);
    flex-shrink: 0;
    margin-top: 2px;
}

.visit-detail h4 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.visit-detail p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.visit-detail a {
    color: var(--gold-500);
    transition: color 0.3s var(--ease-out);
}

.visit-detail a:hover {
    color: var(--gold-400);
    text-decoration: underline;
}

.visit-cta {
    margin-top: var(--space-lg);
}

.visit-map {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.map-link {
    display: block;
    position: relative;
}

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

.map-link:hover img {
    transform: scale(1.03);
}

.map-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 12, 8, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--text-primary);
    transition: background 0.3s var(--ease-out);
}

.map-link:hover .map-overlay {
    background: rgba(15, 12, 8, 0.3);
}

.map-overlay svg {
    width: 32px;
    height: 32px;
    color: var(--gold-500);
}

.map-overlay span {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
    padding: var(--space-2xl) 0 var(--space-lg);
    background: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold-500);
    line-height: 1;
}

.footer-logo-text {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: -0.5rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-links h5,
.footer-contact h5 {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.3rem 0;
    transition: color 0.3s var(--ease-out);
}

.footer-links a:hover {
    color: var(--gold-500);
}

.footer-contact p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-contact a {
    color: var(--gold-500);
    transition: color 0.3s var(--ease-out);
}

.footer-contact a:hover {
    color: var(--gold-400);
}

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    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.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: ensure content is visible without JS */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .gallery-item--large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .gallery-item--tall {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    :root {
        --space-3xl: 5rem;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content {
        padding-top: var(--space-2xl);
    }

    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .about-image-wrap {
        max-height: 400px;
    }

    .about-stats {
        gap: var(--space-md);
    }

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

    .menu-tabs {
        flex-direction: column;
        align-items: center;
    }

    .menu-tab {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .gallery-item--large {
        grid-column: span 1;
    }

    .gallery-item--tall {
        grid-column: span 1;
        grid-row: span 1;
        min-height: 300px;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
        padding: 0 var(--space-sm);
    }

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

    .about-stats {
        flex-direction: column;
        gap: var(--space-md);
    }
}
