/**
 * MERCI COFFEE — PREMIUM DIGITAL MENU THEME
 * "The Merci Salon" Design System & Root Tokens
 * Primary colors: Petrol-Teal, Antique Gold, Warm Ivory, Dark Mahogany, Dusty Rose
 */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&display=swap');

@font-face {
    font-family: 'Vazirmatn';
    src: url('../../fonts/Vazirmatn/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../../fonts/Vazirmatn/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../../fonts/Vazirmatn/Vazirmatn-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../../fonts/Vazirmatn/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Iranian-Sans';
    src: url('../../fonts/Iranian-Sans.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Brand Color Palette */
    --mc-teal: #075565;              /* Primary brand teal (from wall panels) */
    --mc-teal-dark: #063B47;         /* Midnight petrol */
    --mc-teal-deep: #03252E;         /* Deep background shadow */
    --mc-teal-surface: #0A6477;      /* Elevated teal surface */
    --mc-teal-light: #0D7A91;        /* Subtle hover highlights */
    --mc-teal-overlay: rgba(7, 85, 101, 0.92);

    /* Luxury Gold & Metal Accents */
    --mc-gold: #C8A45D;              /* Antique gold (from moldings & logo) */
    --mc-gold-light: #E5CC91;        /* Champagne gold */
    --mc-gold-bright: #F5E4B8;       /* Bright gold highlight */
    --mc-gold-dark: #8F6B2A;         /* Dark antique burnish */
    --mc-gold-glow: rgba(200, 164, 93, 0.35);
    --mc-gold-border: rgba(200, 164, 93, 0.45);
    --mc-gold-hairline: rgba(200, 164, 93, 0.28);

    /* Warm Light Surfaces */
    --mc-ivory: #F6F0E5;             /* Primary light surface / menu card face */
    --mc-cream: #E9DFCD;             /* Soft secondary cream */
    --mc-cream-dark: #DCCFBA;        /* Cream borders & dividers */

    /* Wood & Floral Accents */
    --mc-mahogany: #38231F;          /* Rich dark warm mahogany furniture */
    --mc-mahogany-dark: #221411;     /* Deep mahogany shadow */
    --mc-rose: #B97883;              /* Dusty rose floral accent */
    --mc-rose-soft: #DDA7A5;         /* Soft dusty rose tint */
    --mc-rose-deep: #7B3542;         /* Deep burgundy petal */

    /* Atmosphere & Lighting */
    --mc-amber-glow: rgba(255, 214, 138, 0.55);
    --mc-sconce-warmth: rgba(255, 198, 107, 0.18);

    /* Text & Legibility */
    --mc-charcoal: #25292B;          /* Readable dark text on ivory */
    --mc-text-body: #3B4245;         /* Body copy on light surfaces */
    --mc-text-muted: #727C80;        /* Subtle secondary text */
    --mc-text-light: #F6F0E5;        /* Light text on teal/dark surfaces */
    --mc-text-light-muted: rgba(246, 240, 229, 0.75);

    /* Semantic Status */
    --mc-success: #2E7D5B;
    --mc-danger: #A33535;
    --mc-warning: #C87D2A;

    /* Typography */
    --mc-font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --mc-font-sans: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --mc-font-num: 'Cormorant Garamond', 'Vazirmatn', sans-serif;

    /* Layout & Sizing */
    --mc-header-h: 70px;
    --mc-dock-h: 64px;
    --mc-container: 1140px;
    --mc-radius-sm: 4px;
    --mc-radius-md: 8px;
    --mc-radius-lg: 12px;
    --mc-radius-pill: 9999px;

    /* Shadows */
    --mc-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.12);
    --mc-shadow-md: 0 6px 20px rgba(4, 37, 46, 0.22);
    --mc-shadow-lg: 0 12px 36px rgba(4, 37, 46, 0.35);
    --mc-shadow-gold: 0 4px 20px rgba(200, 164, 93, 0.28);
    --mc-shadow-sconce: 0 0 40px var(--mc-amber-glow);

    /* Transitions */
    --mc-transition-fast: 160ms cubic-bezier(0.2, 0, 0, 1);
    --mc-transition-normal: 280ms cubic-bezier(0.2, 0, 0, 1);
    --mc-transition-smooth: 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Typography */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body.mc-body {
    margin: 0;
    padding: 0;
    font-family: var(--mc-font-sans);
    font-size: 15px;
    line-height: 1.65;
    color: var(--mc-text-light);
    background-color: var(--mc-teal-dark);
    background-image: 
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(13, 122, 145, 0.18) 0%, transparent 70%),
        url('../../images/damask-pattern.jpg');
    background-repeat: repeat;
    background-size: auto, 360px 360px;
    background-attachment: fixed;
    direction: rtl;
    text-align: right;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--mc-gold-light);
    text-decoration: none;
    transition: color var(--mc-transition-fast);
}

a:hover, a:focus-visible {
    color: var(--mc-gold-bright);
}

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

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* Container */
.mc-container {
    width: 100%;
    max-width: var(--mc-container);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

@media (max-width: 576px) {
    .mc-container {
        padding-left: 14px;
        padding-right: 14px;
    }
}

/* Main Content Wrapper */
.mc-main {
    flex: 1 0 auto;
    padding-top: var(--mc-header-h);
    padding-bottom: calc(var(--mc-dock-h) + 24px);
    position: relative;
    z-index: 2;
}

@media (min-width: 992px) {
    .mc-main {
        padding-bottom: 48px;
    }
}

/* Antique Gold Decorative Frames & Flourishes */
.mc-gold-frame {
    position: relative;
    border: 1px solid var(--mc-gold-border);
    box-shadow: 0 0 0 1px rgba(200, 164, 93, 0.15) inset, var(--mc-shadow-md);
}

.mc-gold-frame::before,
.mc-gold-frame::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: var(--mc-gold);
    border-style: solid;
    pointer-events: none;
    z-index: 2;
}

.mc-gold-frame::before {
    top: -2px;
    right: -2px;
    border-width: 2px 2px 0 0;
}

.mc-gold-frame::after {
    bottom: -2px;
    left: -2px;
    border-width: 0 0 2px 2px;
}

/* Editorial Serif Headings */
.mc-display-title {
    font-family: var(--mc-font-display);
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--mc-gold-bright);
    margin: 0;
}

.mc-kicker {
    font-family: var(--mc-font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--mc-gold);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.mc-kicker::before,
.mc-kicker::after {
    content: '';
    width: 18px;
    height: 1px;
    background: var(--mc-gold);
    opacity: 0.6;
}

/* Ornamental Section Divider */
.mc-divider-wrap {
    text-align: center;
    margin: 28px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mc-divider-svg {
    max-width: 260px;
    width: 80%;
    height: auto;
    opacity: 0.85;
}

/* Ambient Wall Sconce Glow Effect */
.mc-sconce-glow {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--mc-amber-glow) 0%, rgba(255, 214, 138, 0.1) 45%, transparent 70%);
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: 1;
    filter: blur(12px);
    animation: mcLampFlicker 6s ease-in-out infinite alternate;
}

@keyframes mcLampFlicker {
    0% { opacity: 0.75; transform: scale(0.98); }
    50% { opacity: 0.92; transform: scale(1.02); }
    100% { opacity: 0.80; transform: scale(1.0); }
}

/* Buttons */
.mc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 22px;
    font-family: var(--mc-font-sans);
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--mc-radius-md);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--mc-transition-fast);
    text-decoration: none;
    line-height: 1.3;
}

.mc-btn--primary {
    background: linear-gradient(135deg, #E5CC91 0%, #C8A45D 60%, #9E7836 100%);
    color: var(--mc-mahogany-dark);
    border-color: var(--mc-gold-bright);
    box-shadow: 0 4px 14px rgba(200, 164, 93, 0.35);
}

.mc-btn--primary:hover {
    background: linear-gradient(135deg, #F5E4B8 0%, #D4B26C 60%, #B08842 100%);
    color: #000;
    box-shadow: 0 6px 20px rgba(200, 164, 93, 0.5);
    transform: translateY(-1px);
}

.mc-btn--outline {
    background: rgba(7, 85, 101, 0.45);
    color: var(--mc-gold-bright);
    border-color: var(--mc-gold-border);
    backdrop-filter: blur(4px);
}

.mc-btn--outline:hover {
    background: rgba(200, 164, 93, 0.15);
    border-color: var(--mc-gold-light);
    color: #fff;
}

.mc-btn--mahogany {
    background: var(--mc-mahogany);
    color: var(--mc-gold-light);
    border: 1px solid var(--mc-gold-border);
}

.mc-btn--mahogany:hover {
    background: var(--mc-mahogany-dark);
    color: var(--mc-gold-bright);
    border-color: var(--mc-gold);
}

/* Page Loader */
.mc-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--mc-teal-dark);
    background-image: radial-gradient(circle at 50% 40%, rgba(13, 122, 145, 0.28) 0%, transparent 70%), url('../../images/damask-pattern.jpg');
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.mc-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.mc-loader__crest {
    width: 96px;
    height: auto;
    margin-bottom: 18px;
    animation: mcPulseCrest 2.2s ease-in-out infinite;
}

@keyframes mcPulseCrest {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 8px rgba(200, 164, 93, 0.3)); }
    50% { transform: scale(1.06); filter: drop-shadow(0 0 20px rgba(200, 164, 93, 0.7)); }
}

.mc-loader__title {
    font-family: var(--mc-font-display);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--mc-gold-bright);
    letter-spacing: 2px;
    margin: 0 0 6px 0;
}

.mc-loader__subtitle {
    font-size: 0.85rem;
    color: var(--mc-gold);
    opacity: 0.85;
    margin: 0;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: var(--mc-teal-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--mc-gold-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--mc-gold);
}

