/* ============================================
   MEHFIL RESTAURANT — GLOBAL DESIGN SYSTEM
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Backgrounds */
    --mf-bg-primary: #0B0B0F;
    --mf-bg-secondary: #141318;
    --mf-bg-tertiary: #1E1D24;
    --mf-bg-card: #19181F;

    /* Accent Colors */
    --mf-gold: #D4A04A;
    --mf-gold-light: #E8C06A;
    --mf-gold-glow: rgba(212, 160, 74, 0.15);
    --mf-red: #C43030;
    --mf-red-dark: #8B1A1A;
    --mf-red-glow: rgba(196, 48, 48, 0.12);

    /* Text */
    --mf-text-primary: #F5EFE6;
    --mf-text-secondary: #9A9590;
    --mf-text-muted: #5A5550;
    --mf-text-inverse: #0B0B0F;

    /* Borders & Surfaces */
    --mf-border: #2A2520;
    --mf-border-light: #3A3530;
    --mf-overlay-dark: rgba(11, 11, 15, 0.7);
    --mf-overlay-deeper: rgba(11, 11, 15, 0.85);

    /* Typography */
    --mf-font-display: 'Playfair Display', Georgia, serif;
    --mf-font-body: 'DM Sans', 'Segoe UI', sans-serif;

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

    /* Layout */
    --mf-container: 1280px;
    --mf-container-narrow: 960px;
    --mf-container-wide: 1440px;
    --mf-gutter: 1.5rem;

    /* Border Radius */
    --mf-radius-sm: 4px;
    --mf-radius-md: 8px;
    --mf-radius-lg: 12px;
    --mf-radius-xl: 20px;
    --mf-radius-full: 9999px;

    /* Transitions */
    --mf-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --mf-ease-out: cubic-bezier(0, 0, 0.2, 1);
    --mf-duration-fast: 200ms;
    --mf-duration: 350ms;
    --mf-duration-slow: 600ms;

    /* Shadows */
    --mf-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --mf-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --mf-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --mf-shadow-gold: 0 4px 30px rgba(212, 160, 74, 0.2);
}


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

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

body {
    font-family: var(--mf-font-body);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--mf-text-primary);
    background-color: var(--mf-bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img,
picture,
video,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--mf-duration-fast) var(--mf-ease);
}

ul, ol {
    list-style: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    border: none;
    outline: none;
    background: none;
}

button {
    cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--mf-font-display);
    font-weight: 700;
    line-height: 1.15;
    color: var(--mf-text-primary);
}


/* ---------- Typography Scale ---------- */
.mf-display-xl {
    font-size: clamp(2.75rem, 5vw + 1rem, 5rem);
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.mf-display-lg {
    font-size: clamp(2rem, 3.5vw + 0.5rem, 3.5rem);
    letter-spacing: -0.015em;
    line-height: 1.1;
}

.mf-heading-1 {
    font-size: clamp(1.75rem, 2.5vw + 0.5rem, 2.75rem);
    line-height: 1.15;
}

.mf-heading-2 {
    font-size: clamp(1.35rem, 2vw + 0.25rem, 2rem);
    line-height: 1.2;
}

.mf-heading-3 {
    font-size: clamp(1.15rem, 1.5vw + 0.25rem, 1.5rem);
    line-height: 1.25;
}

.mf-subheading {
    font-family: var(--mf-font-body);
    font-weight: 500;
    font-size: clamp(0.8rem, 1vw + 0.25rem, 0.95rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--mf-gold);
}

.mf-body-lg {
    font-size: 1.125rem;
    line-height: 1.7;
}

.mf-body {
    font-size: 1rem;
    line-height: 1.6;
}

.mf-body-sm {
    font-size: 0.875rem;
    line-height: 1.5;
}

.mf-caption {
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--mf-text-secondary);
}


/* ---------- Layout Utilities ---------- */
.mf-container {
    width: 100%;
    max-width: var(--mf-container);
    margin: 0 auto;
    padding: 0 var(--mf-gutter);
}

.mf-container--narrow {
    max-width: var(--mf-container-narrow);
}

.mf-container--wide {
    max-width: var(--mf-container-wide);
}

.mf-section {
    padding: var(--mf-space-5xl) 0;
}

.mf-section--compact {
    padding: var(--mf-space-4xl) 0;
}


/* ---------- Buttons ---------- */
.mf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--mf-font-body);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    padding: 0.875rem 2rem;
    border-radius: var(--mf-radius-sm);
    transition: all var(--mf-duration) var(--mf-ease);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.mf-btn--primary {
    background: var(--mf-gold);
    color: var(--mf-text-inverse);
}
.mf-btn--primary:hover {
    background: var(--mf-gold-light);
    box-shadow: var(--mf-shadow-gold);
    transform: translateY(-2px);
}

.mf-btn--secondary {
    background: transparent;
    color: var(--mf-text-primary);
    border: 1px solid var(--mf-border-light);
}
.mf-btn--secondary:hover {
    border-color: var(--mf-gold);
    color: var(--mf-gold);
    transform: translateY(-2px);
}

.mf-btn--red {
    background: var(--mf-red);
    color: #ffffff;
}
.mf-btn--red:hover {
    background: #d63636;
    box-shadow: 0 4px 25px rgba(196, 48, 48, 0.3);
    transform: translateY(-2px);
}

.mf-btn--sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.8rem;
}

.mf-btn--lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.mf-btn .mf-btn__icon {
    font-size: 0.85em;
    transition: transform var(--mf-duration-fast) var(--mf-ease);
}
.mf-btn:hover .mf-btn__icon {
    transform: translateX(3px);
}


/* ---------- Scroll Animations ---------- */
.mf-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--mf-duration-slow) var(--mf-ease-out),
                transform var(--mf-duration-slow) var(--mf-ease-out);
}

.mf-reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

.mf-reveal--delay-1 { transition-delay: 100ms; }
.mf-reveal--delay-2 { transition-delay: 200ms; }
.mf-reveal--delay-3 { transition-delay: 300ms; }
.mf-reveal--delay-4 { transition-delay: 400ms; }


/* ---------- Decorative ---------- */
.mf-gold-line {
    display: block;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--mf-gold), var(--mf-gold-light));
    border-radius: 2px;
}

.mf-gold-line--center {
    margin-left: auto;
    margin-right: auto;
}

.mf-section-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mf-section-label::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 1px;
    background: var(--mf-gold);
}


/* ---------- Responsive Helpers ---------- */
@media (max-width: 768px) {
    :root {
        --mf-gutter: 1.25rem;
        --mf-space-5xl: 5rem;
        --mf-space-4xl: 3.5rem;
    }

    .mf-section {
        padding: var(--mf-space-4xl) 0;
    }
}

@media (max-width: 480px) {
    :root {
        --mf-gutter: 1rem;
    }
}


/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .mf-reveal {
        opacity: 1;
        transform: none;
    }
}

:focus-visible {
    outline: 2px solid var(--mf-gold);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
