/* ═══════════════════════════════════════════════════════════
   SULTANA'S DINE — Glassmorphism Pro
   ═══════════════════════════════════════════════════════════ */

:root {
    color-scheme: light;
    /* Theme surfaces (light default) */
    --bg-primary: #f4f1e8;
    --bg-secondary: #ece7d8;
    --bg-tertiary: #e3dccb;
    --text-primary: #14231c;
    --text-secondary: #44544b;
    --border-color: rgba(20, 35, 28, 0.14);
    --shadow-color: rgba(16, 40, 30, 0.18);

    /* Glass system */
    --glass-bg: rgba(255, 255, 255, 0.55);
    --glass-bg-strong: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.65);
    --glass-edge: rgba(20, 35, 28, 0.08);

    /* Brand — deep green & gold */
    --primary: #0d3b2e;
    --secondary: #14523f;
    --accent: #b8912a;
    --accent-2: #d4af37;

    /* Gradients (theme-aware) */
    --mesh-gradient: radial-gradient(circle at 12% 18%, rgba(212,175,55,0.28), transparent 45%),
                     radial-gradient(circle at 85% 12%, rgba(13,59,46,0.18), transparent 40%),
                     radial-gradient(circle at 70% 85%, rgba(184,145,42,0.22), transparent 45%),
                     linear-gradient(160deg, var(--bg-primary), var(--bg-secondary));
    --hero-gradient: linear-gradient(180deg, rgba(13,59,46,0.85), rgba(13,59,46,0.55));

    --blur-sm: blur(10px);
    --blur-md: blur(20px);
    --blur-lg: blur(40px);

    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --shadow-sm: 0 4px 16px var(--shadow-color);
    --shadow-md: 0 8px 24px var(--shadow-color);
    --shadow-lg: 0 12px 40px var(--shadow-color);
    --shadow-xl: 0 20px 60px var(--shadow-color);

    --font-heading: 'DM Sans', -apple-system, sans-serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;

    --space-xs: 8px; --space-sm: 16px; --space-md: 24px;
    --space-lg: 32px; --space-xl: 48px;
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg-primary: #0a1929;
    --bg-secondary: #0f2438;
    --bg-tertiary: #14304a;
    --text-primary: #f1f5f9;
    --text-secondary: #c3d0dc;
    --border-color: rgba(255,255,255,0.14);
    --shadow-color: rgba(0,0,0,0.45);

    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-bg-strong: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-edge: rgba(255,255,255,0.08);

    --primary: #1f7a5c;
    --secondary: #2a9d74;
    --accent: #d4af37;
    --accent-2: #e8c96a;

    --mesh-gradient: radial-gradient(circle at 12% 18%, rgba(212,175,55,0.16), transparent 45%),
                     radial-gradient(circle at 85% 12%, rgba(31,122,92,0.3), transparent 40%),
                     radial-gradient(circle at 70% 85%, rgba(94,23,235,0.18), transparent 45%),
                     linear-gradient(160deg, var(--bg-primary), var(--bg-secondary));
    --hero-gradient: linear-gradient(180deg, rgba(6,16,26,0.8), rgba(6,16,26,0.5));
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; display: block; }
body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    background-image: var(--mesh-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ═══ Typography ═══ */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text-primary);
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
p { font-size: clamp(1rem, 1.6vw, 1.1rem); line-height: 1.7; color: var(--text-secondary); }
a { color: var(--accent); }

/* ═══ Layout ═══ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto var(--space-lg); }
.section-head .eyebrow {
    display: inline-block; text-transform: uppercase; letter-spacing: 0.18em;
    font-size: 0.8rem; font-weight: 700; color: var(--accent); margin-bottom: var(--space-sm);
}
.grid { display: grid; gap: var(--space-md); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ═══ Glass components ═══ */
.glass, .card {
    background: var(--glass-bg);
    backdrop-filter: var(--blur-md);
    -webkit-backdrop-filter: var(--blur-md);
    border: 1px solid var(--glass-border);
    outline: 1px solid var(--glass-edge);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-md);
}
.card { padding: var(--space-md); transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s cubic-bezier(0.4,0,0.2,1), background 0.3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); background: var(--glass-bg-strong); }

/* ═══ Buttons ═══ */
.btn {
    display: inline-block; padding: 14px 28px; min-height: 44px;
    border: 1px solid var(--glass-border); border-radius: 999px;
    background: var(--glass-bg); backdrop-filter: var(--blur-sm);
    color: var(--text-primary); font-weight: 600; font-family: inherit;
    font-size: 1rem; cursor: pointer; text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1); box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); background: var(--glass-bg-strong); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #14231c; border-color: transparent;
    box-shadow: 0 6px 20px rgba(184,145,42,0.35);
}
.btn-primary:hover { box-shadow: 0 10px 28px rgba(184,145,42,0.45); color: #14231c; }
.btn-ghost { background: transparent; }

/* ═══ Header / nav ═══ */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: var(--blur-md); -webkit-backdrop-filter: var(--blur-md);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); padding: 0.75rem 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-primary); }
.brand-mark {
    width: 44px; height: 44px; border-radius: 50%; flex: none;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--accent-2); font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem;
    border: 1px solid var(--accent);
}
.brand-name { font-weight: 700; font-size: 1.15rem; line-height: 1.1; }
.brand-name small { display: block; font-weight: 500; font-size: 0.7rem; color: var(--accent); letter-spacing: 0.12em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
    display: block; padding: 10px 14px; min-height: 44px;
    text-decoration: none; color: var(--text-secondary); font-weight: 600; font-size: 0.95rem;
    border-radius: 999px; transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}
.nav-links a:hover { color: var(--text-primary); background: var(--glass-bg-strong); }
.nav-links a.active { color: #14231c; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 4px 14px rgba(184,145,42,0.35); }
[data-theme="dark"] .nav-links a.active { color: #0a1929; }

.mobile-nav-toggle {
    display: none; width: 44px; height: 44px; border-radius: 12px;
    border: 1px solid var(--glass-border); background: var(--glass-bg);
    color: var(--text-primary); cursor: pointer; font-size: 1.4rem; line-height: 1;
}
.mobile-nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ═══ Hero ═══ */
.hero { position: relative; padding: 0; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: var(--hero-gradient); }
.hero-inner { position: relative; z-index: 2; padding: clamp(5rem, 12vw, 9rem) 0; }
.hero .glass-panel {
    max-width: 720px; padding: clamp(1.5rem, 4vw, 3rem);
    background: var(--glass-bg); border-radius: var(--radius-xl);
}
.hero h1 .gold { color: var(--accent); }
.hero .bn { font-size: 1.05rem; color: var(--accent); margin-top: 0.75rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-md); }
.hero-badges { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-md); }
.badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    color: var(--text-primary); backdrop-filter: var(--blur-sm);
}

/* ═══ Cards with media ═══ */
.dish-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.dish-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md) var(--radius-md) 0 0; }
.dish-card .dish-body { padding: var(--space-md); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dish-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.dish-price { color: var(--accent); font-weight: 700; white-space: nowrap; }
.dish-tag {
    align-self: flex-start; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; padding: 4px 10px; border-radius: 8px;
    background: rgba(184,145,42,0.15); color: var(--accent); border: 1px solid rgba(184,145,42,0.3);
}

/* ═══ Menu filters ═══ */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: var(--space-lg); }
.filter-btn {
    padding: 10px 20px; min-height: 44px; border-radius: 999px;
    border: 1px solid var(--glass-border); background: var(--glass-bg);
    color: var(--text-secondary); font-weight: 600; font-family: inherit; cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}
.filter-btn:hover { color: var(--text-primary); background: var(--glass-bg-strong); }
.filter-btn.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #14231c; border-color: transparent; }
[data-theme="dark"] .filter-btn.active { color: #0a1929; }
.filter-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.menu-note { text-align: center; font-size: 0.9rem; margin-top: var(--space-md); font-style: italic; }

/* ═══ Gallery ═══ */
.gallery-grid { display: grid; gap: var(--space-md); grid-template-columns: repeat(3, 1fr); }
.gallery-item { overflow: hidden; border-radius: var(--radius-md); position: relative; box-shadow: var(--shadow-md); border: 1px solid var(--glass-border); }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.4s cubic-bezier(0.4,0,0.2,1); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px;
    background: linear-gradient(transparent, rgba(6,16,12,0.75));
    color: #f1f5f9; font-size: 0.9rem; font-weight: 600;
}

/* ═══ About / story ═══ */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-lg); align-items: center; }
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--glass-border); aspect-ratio: 4/3; object-fit: cover; }
.value-list { list-style: none; display: grid; gap: var(--space-sm); margin-top: var(--space-md); }
.value-list li { display: flex; gap: 12px; align-items: flex-start; }
.value-list .dot { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(184,145,42,0.18); color: var(--accent); font-size: 0.85rem; margin-top: 2px; }
.team-card { text-align: center; }
.team-card img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; border: 2px solid var(--accent); }
.team-role { color: var(--accent); font-weight: 600; font-size: 0.9rem; }

/* ═══ Reservation form ═══ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
label { font-weight: 600; font-size: 0.92rem; color: var(--text-primary); }
input, textarea, select {
    width: 100%; padding: 12px 16px; min-height: 44px;
    background: var(--glass-bg); backdrop-filter: var(--blur-sm);
    border: 1px solid var(--glass-border); border-radius: var(--radius-sm);
    color: var(--text-primary); font-family: inherit; font-size: 1rem;
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
select option { color: #14231c; background: #fff; }
[data-theme="dark"] select option { color: #f1f5f9; background: #0f2438; }
input:focus, textarea:focus, select:focus {
    outline: none; border-color: var(--accent);
    background: var(--glass-bg-strong); box-shadow: 0 0 0 3px rgba(184,145,42,0.2);
}
textarea { min-height: 120px; resize: vertical; }
.form-status { margin-top: 1rem; padding: 1rem; border-radius: 8px; text-align: center; display: none; }
.form-status.success { display: block; background: rgba(13,59,46,0.15); color: var(--text-primary); border: 1px solid rgba(13,59,46,0.3); }
[data-theme="dark"] .form-status.success { background: rgba(31,122,92,0.25); border-color: rgba(31,122,92,0.5); }
.form-status.error { display: block; background: rgba(153,27,27,0.12); color: #991b1b; border: 1px solid rgba(153,27,27,0.35); }
[data-theme="dark"] .form-status.error { color: #fca5a5; background: rgba(153,27,27,0.25); }

/* ═══ Reviews ═══ */
.review-card blockquote { font-size: 1rem; line-height: 1.7; color: var(--text-secondary); margin-bottom: var(--space-sm); }
.review-card .stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 8px; }
.review-author { display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: var(--accent-2); border: 1px solid var(--accent); }
.rating-summary { text-align: center; margin-bottom: var(--space-lg); }
.rating-summary .big { font-size: clamp(3rem, 8vw, 4.5rem); font-weight: 700; color: var(--accent); line-height: 1; }

/* ═══ Chart ═══ */
.chart-wrap { padding: var(--space-md); }
.chart-wrap h3 { margin-bottom: 4px; }
.chart-canvas-box { position: relative; height: 320px; }

/* ═══ Info strip / contact ═══ */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-md); }
.info-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--accent); }
.info-card p, .info-card a { font-size: 0.98rem; }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--glass-border); box-shadow: var(--shadow-lg); margin-top: var(--space-md); }
.map-frame iframe { display: block; width: 100%; height: 400px; border: 0; }

/* ═══ CTA band ═══ */
.cta-band { text-align: center; }
.cta-band .glass { padding: clamp(2rem, 5vw, 3.5rem); border-radius: var(--radius-xl); }

/* ═══ Footer ═══ */
.site-footer {
    margin-top: var(--space-lg); padding: var(--space-lg) 0 var(--space-md);
    background: var(--glass-bg); backdrop-filter: var(--blur-md);
    border-top: 1px solid var(--glass-border);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: var(--space-md); }
.footer-grid h4 { font-size: 1rem; margin-bottom: 12px; color: var(--text-primary); }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.footer-grid a { color: var(--text-secondary); text-decoration: none; transition: color 0.25s; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { margin-top: var(--space-md); padding-top: var(--space-sm); border-top: 1px solid var(--border-color); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 0.85rem; color: var(--text-secondary); }

/* ═══ Theme toggle ═══ */
.theme-toggle {
    position: fixed; right: 20px; bottom: 20px; z-index: 200;
    width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
    border: 1px solid var(--glass-border); background: var(--glass-bg-strong);
    backdrop-filter: var(--blur-md); box-shadow: var(--shadow-lg);
    font-size: 1.3rem; display: grid; place-items: center;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s;
}
.theme-toggle:hover { transform: translateY(-2px) scale(1.05); box-shadow: var(--shadow-xl); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ═══ Reveal animation ═══ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1), transform 0.6s cubic-bezier(0.4,0,0.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ═══ Breakpoints ═══ */
@media (max-width: 1024px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .split { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .mobile-nav-toggle { display: grid; place-items: center; }
    .nav-links {
        position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
        align-items: stretch; padding: var(--space-sm); gap: 6px;
        background: var(--glass-bg-strong); backdrop-filter: var(--blur-md);
        border-bottom: 1px solid var(--glass-border); box-shadow: var(--shadow-lg);
        display: none;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 16px; }
    .gallery-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .chart-canvas-box { height: 260px; }
}


/* Header nav spacing floor (normalizer): keep the brand and the
   menu separated when the flex container runs out of width. */
header nav, header nav > div { gap: 1rem; flex-wrap: wrap; }
@media (max-width: 1280px) { header nav ul { gap: 1rem; } }
