/* =========================================================
   Fortello theme layer. Load AFTER each page's own styles.
   Dark is the default and is not touched. Everything below
   only applies when <html data-theme="light">.
   ========================================================= */

/* ---------- Toggle button (both themes) ---------- */
.theme-toggle {
    background: transparent; border: 1px solid var(--gold); color: var(--gold);
    width: 38px; height: 38px; border-radius: 0; cursor: pointer; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    margin-left: 1.5rem; padding: 0; transition: all 0.4s ease;
}
.theme-toggle:hover { background: var(--gold); color: var(--black); }
.theme-toggle svg { display: block; }
.theme-toggle.floating { position: fixed; top: 1rem; right: 1rem; z-index: 1100; margin: 0; background: var(--black); }
nav .nav-links { margin-left: auto; }
@media (max-width: 768px) {
    .theme-toggle { margin-left: auto; margin-right: 1rem; }
}

/* ---------- Light palette (same variable names the pages already use) ---------- */
:root[data-theme="light"] {
    --black: #faf7f2;      /* page background */
    --dark: #f1ece3;       /* alternate sections, footer */
    --white: #1a1a1a;      /* main text */
    --gray: #5f5a50;       /* secondary text */
    --gold: #a8832f;
    --gold-light: #8f6d24;
    --gold-dark: #6f5219;
    color-scheme: light;
}

/* Areas on top of photos stay dark-styled: hero and the transparent header over it */
:root[data-theme="light"] .hero,
:root[data-theme="light"] body.has-hero header:not(.scrolled) {
    --black: #000000; --dark: #0d0d0d; --white: #ffffff; --gray: #b5b0a6;
    --gold: #c9a45c; --gold-light: #e3c98a; --gold-dark: #9c7a35;
}

/* ---------- Header ---------- */
:root[data-theme="light"] body:not(.has-hero) header:not(.scrolled) {
    background: linear-gradient(180deg, rgba(250,247,242,0.95), rgba(250,247,242,0));
}
:root[data-theme="light"] header.scrolled {
    background: rgba(250,247,242,0.96);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

/* ---------- Buttons: one consistent look in light mode ---------- */
:root[data-theme="light"] .btn {
    background: linear-gradient(135deg, #e3c98a, #c9a45c 50%, #9c7a35);
    color: #1a1a1a; border: 1px solid #a8832f;
}
:root[data-theme="light"] .btn:hover {
    background: linear-gradient(135deg, #ecd9a8, #d6b36a 50%, #a8832f); color: #1a1a1a;
}
:root[data-theme="light"] .btn-outline { background: transparent; color: #1a1a1a; border: 1px solid rgba(0,0,0,0.45); }
:root[data-theme="light"] .btn-outline:hover { background: #1a1a1a; color: #faf7f2; border-color: #1a1a1a; }
:root[data-theme="light"] .hero .btn-outline { background: transparent; color: #c9a45c; border-color: #c9a45c; }
:root[data-theme="light"] .hero .btn-outline:hover { background: #c9a45c; color: #000; }

/* ---------- Borders and panels that were hard-coded for a dark page ---------- */
:root[data-theme="light"] .menu-grid { background: rgba(255,255,255,0.7); border-color: rgba(0,0,0,0.08); }
:root[data-theme="light"] .menu-item { border-bottom-color: rgba(0,0,0,0.1); }
:root[data-theme="light"] .cat-nav { border-top-color: rgba(0,0,0,0.12); border-bottom-color: rgba(0,0,0,0.12); }
:root[data-theme="light"] .tabs,
:root[data-theme="light"] .search input,
:root[data-theme="light"] .staff-card { border-color: rgba(0,0,0,0.12); }
:root[data-theme="light"] .cta,
:root[data-theme="light"] footer,
:root[data-theme="light"] .footer-bottom,
:root[data-theme="light"] .policies { border-top-color: rgba(0,0,0,0.12); }
:root[data-theme="light"] .reservation-box { border-color: rgba(168,131,47,0.35); }
:root[data-theme="light"] .form-group input,
:root[data-theme="light"] .form-group select,
:root[data-theme="light"] .form-group textarea { border-color: rgba(0,0,0,0.18); color-scheme: light; }
:root[data-theme="light"] .form-group input:focus,
:root[data-theme="light"] .form-group select:focus,
:root[data-theme="light"] .form-group textarea:focus,
:root[data-theme="light"] .search input:focus { border-color: #1a1a1a; }

/* Category banners: fade into the light page instead of black */
:root[data-theme="light"] .banner::after {
    background: linear-gradient(to top, #faf7f2, rgba(250,247,242,0.55) 40%, rgba(250,247,242,0));
}

/* WhatsApp tooltip */
:root[data-theme="light"] .whatsapp-float .tooltip {
    background: rgba(250,247,242,0.97); color: #1a1a1a; border-color: rgba(0,0,0,0.15);
}
