/**
 * CIEL Rooftop — assets/css/main.css
 * Global design system. Shared across all pages.
 * "Matte & Arches" — Dark Navy / Copper
 *
 * Developed by Zentrix | All Rights Reserved
 */

/* ═══════════════════════════════════════════════════════════════════════════
   TOKENS
═══════════════════════════════════════════════════════════════════════════ */
:root {
    /* Palette */
    --c-void: #07080a;
    --c-bg: #0d0f12;
    --c-surface: #121418;
    --c-card: #181b20;
    --c-card-2: #1d2027;
    --c-navy: #0f1929;
    --c-navy-lit: #162236;

    /* Borders */
    --c-border: rgba(255, 255, 255, .065);
    --c-border-lit: rgba(255, 255, 255, .13);

    /* Copper / Gold accent */
    --c-copper: #c9936e;
    --c-copper-dim: #a07050;
    --c-copper-glow: rgba(201, 147, 110, .16);
    --c-copper-glass: rgba(201, 147, 110, .07);

    /* Text */
    --c-text-primary: #eceae5;
    --c-text-secondary: #7d7a76;
    --c-text-muted: #474440;

    /* Semantic */
    --c-success: #4caf7d;
    --c-success-bg: rgba(76, 175, 125, .1);
    --c-error: #e07070;
    --c-error-bg: rgba(224, 112, 112, .1);
    --c-warning: #e0b870;
    --c-warning-bg: rgba(224, 184, 112, .1);

    /* Radii */
    --r-sm: 6px;
    --r-md: 12px;
    --r-lg: 18px;
    --r-xl: 28px;
    --r-pill: 999px;

    /* Shadows */
    --shadow-card: 0 4px 24px rgba(0, 0, 0, .5);
    --shadow-glow: 0 0 32px rgba(201, 147, 110, .1);

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

    /* Transitions */
    --t-base: 200ms cubic-bezier(.4, 0, .2, 1);
    --t-slow: 380ms cubic-bezier(.4, 0, .2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--c-bg);
    color: var(--c-text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
video {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button {
    font-family: var(--font-body);
    cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TYPOGRAPHY UTILITIES
═══════════════════════════════════════════════════════════════════════════ */
.font-display {
    font-family: var(--font-display);
}

.text-copper {
    color: var(--c-copper);
}

.text-muted {
    color: var(--c-text-muted);
}

.text-secondary {
    color: var(--c-text-secondary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   MENU TABS  (used by menu.js on index.php)
═══════════════════════════════════════════════════════════════════════════ */
.menu-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.menu-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 22px;
    border-radius: var(--r-pill);
    border: 1px solid var(--c-border);
    background: var(--c-card);
    color: var(--c-text-secondary);
    font-family: var(--font-body);
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .04em;
    cursor: pointer;
    transition: all var(--t-base);
    white-space: nowrap;
}

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

.menu-tab-btn.active {
    background: var(--c-copper-glass);
    border-color: rgba(201, 147, 110, .3);
    color: var(--c-copper);
}

/* ── Menu items grid ─────────────────────────────────────────────────────── */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.menu-item-card {
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}

.menu-item-card:hover {
    border-color: var(--c-border-lit);
    box-shadow: var(--shadow-card);
    transform: translateY(-3px);
}

.menu-item-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: var(--c-surface);
}

.menu-item-body {
    padding: 16px 18px 20px;
}

.menu-item-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--c-text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
}

.menu-item-desc {
    font-size: .8rem;
    color: var(--c-text-secondary);
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.menu-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.menu-item-price {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--c-copper);
}

.menu-item-price .old-price {
    font-size: .8rem;
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--c-text-muted);
    text-decoration: line-through;
    margin-left: 4px;
}

.menu-item-badge {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: var(--r-pill);
    background: var(--c-copper-glass);
    border: 1px solid rgba(201, 147, 110, .25);
    color: var(--c-copper);
}

.menu-item-badge.unavailable {
    background: rgba(255, 255, 255, .04);
    border-color: var(--c-border);
    color: var(--c-text-muted);
}

/* ── Category intro ──────────────────────────────────────────────────────── */
.category-intro {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--c-border);
}

.category-intro h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--c-text-primary);
    margin-bottom: 4px;
}

.category-intro p {
    font-size: .82rem;
    color: var(--c-text-secondary);
}

/* ── Menu loading / empty states ─────────────────────────────────────────── */
.menu-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 0;
    gap: 16px;
    color: var(--c-text-muted);
    font-size: .85rem;
}

.menu-spinner {
    width: 36px;
    height: 36px;
    border: 2.5px solid rgba(201, 147, 110, .2);
    border-top-color: var(--c-copper);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

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

.menu-error {
    text-align: center;
    padding: 48px 24px;
    color: var(--c-text-secondary);
    font-size: .85rem;
}

.menu-error strong {
    display: block;
    color: var(--c-error);
    font-size: 1rem;
    margin-bottom: 6px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   GLOBAL FORM ELEMENTS
═══════════════════════════════════════════════════════════════════════════ */
input,
select,
textarea {
    appearance: none;
    -webkit-appearance: none;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    color: var(--c-text-primary);
    font-family: var(--font-body);
    font-size: .88rem;
    padding: 12px 16px;
    width: 100%;
    outline: none;
    transition: border-color var(--t-base), box-shadow var(--t-base);
}

input::placeholder,
textarea::placeholder {
    color: var(--c-text-muted);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--c-copper-dim);
    box-shadow: 0 0 0 3px var(--c-copper-glow);
}

label {
    display: block;
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--c-text-secondary);
    margin-bottom: 7px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   GLOBAL BUTTON UTILITIES
═══════════════════════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--r-pill);
    border: none;
    font-family: var(--font-body);
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--t-base);
}

.btn-primary {
    background: linear-gradient(135deg, var(--c-copper) 0%, var(--c-copper-dim) 100%);
    color: var(--c-void);
    box-shadow: 0 3px 18px rgba(201, 147, 110, .25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(201, 147, 110, .38);
}

.btn-primary:active {
    transform: none;
}

.btn-primary:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
}

.btn-ghost {
    background: transparent;
    border: 1.5px solid rgba(201, 147, 110, .35);
    color: var(--c-copper);
}

.btn-ghost:hover {
    background: var(--c-copper-glass);
    border-color: var(--c-copper);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SCROLLBAR (WebKit)
═══════════════════════════════════════════════════════════════════════════ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--c-void);
}

::-webkit-scrollbar-thumb {
    background: rgba(201, 147, 110, .3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 147, 110, .55);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SELECTION
═══════════════════════════════════════════════════════════════════════════ */
::selection {
    background: rgba(201, 147, 110, .25);
    color: var(--c-text-primary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOCUS VISIBLE (keyboard accessibility)
═══════════════════════════════════════════════════════════════════════════ */
:focus-visible {
    outline: 2px solid var(--c-copper);
    outline-offset: 3px;
}