/* =========================================================
   Bella Vista — custom theme on top of Bootstrap 5
   ========================================================= */
:root {
    --bv-bg: #fbf8f3;
    --bv-surface: #ffffff;
    --bv-ink: #2b2620;
    --bv-muted: #6f665b;
    --bv-primary: #8b2e2e;      /* deep bordeaux */
    --bv-primary-dark: #6f2323;
    --bv-gold: #c8a24a;
    --bv-line: #e8e0d3;
    --bv-dark: #1c1a17;
    --bv-font-head: "Playfair Display", Georgia, "Times New Roman", serif;
    --bv-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body {
    font-family: var(--bv-font-body);
    color: var(--bv-ink);
    background: var(--bv-bg);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, .font-head {
    font-family: var(--bv-font-head);
    font-weight: 700;
    letter-spacing: .2px;
}

a { color: var(--bv-primary); }
a:hover { color: var(--bv-primary-dark); }

.text-gold { color: var(--bv-gold) !important; }
.bg-cream { background: var(--bv-bg) !important; }
.bg-ink { background: var(--bv-dark) !important; }

.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--bv-primary);
}

.btn-primary {
    --bs-btn-bg: var(--bv-primary);
    --bs-btn-border-color: var(--bv-primary);
    --bs-btn-hover-bg: var(--bv-primary-dark);
    --bs-btn-hover-border-color: var(--bv-primary-dark);
    --bs-btn-active-bg: var(--bv-primary-dark);
    --bs-btn-disabled-bg: var(--bv-primary);
    --bs-btn-disabled-border-color: var(--bv-primary);
}
.btn-outline-light.btn-gold,
.btn-gold {
    --bs-btn-color: var(--bv-dark);
    --bs-btn-bg: var(--bv-gold);
    --bs-btn-border-color: var(--bv-gold);
    --bs-btn-hover-color: var(--bv-dark);
    --bs-btn-hover-bg: #b58f38;
    --bs-btn-hover-border-color: #b58f38;
    font-weight: 600;
}

.btn { border-radius: 999px; padding-inline: 1.6rem; }
.btn-lg { padding-inline: 2rem; }

/* ---------- Navbar ---------- */
.navbar {
    background: rgba(251, 248, 243, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--bv-line);
    transition: box-shadow .2s ease;
}
.navbar.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .07); }
.navbar-brand {
    font-family: var(--bv-font-head);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--bv-ink);
}
.navbar-brand span { color: var(--bv-primary); }
.navbar .nav-link {
    color: var(--bv-ink);
    font-weight: 500;
    padding-inline: 1rem;
}
.navbar .nav-link.active,
.navbar .nav-link:hover { color: var(--bv-primary); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    color: #fff;
    background:
        linear-gradient(rgba(20, 15, 12, .62), rgba(20, 15, 12, .72)),
        url("https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?auto=format&fit=crop&w=1920&q=80") center/cover no-repeat;
}
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); line-height: 1.08; }
.hero .lead { font-size: 1.2rem; max-width: 620px; color: rgba(255, 255, 255, .9); }
.hero .eyebrow { color: var(--bv-gold); }

/* ---------- Cards ---------- */
.card {
    border: 1px solid var(--bv-line);
    border-radius: 14px;
    overflow: hidden;
    background: var(--bv-surface);
    transition: transform .18s ease, box-shadow .18s ease;
}
.card.lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(40, 30, 20, .12);
}
.dish-media {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
}
.price-tag {
    font-family: var(--bv-font-head);
    font-weight: 700;
    color: var(--bv-primary);
    white-space: nowrap;
}
.dot-leader {
    flex: 1;
    border-bottom: 1px dotted var(--bv-line);
    margin: 0 .6rem;
    transform: translateY(-4px);
}
.badge-veg { background: #2f7d46; }
.badge-spicy { background: #b8451f; }
.badge-soft {
    background: var(--bv-bg);
    color: var(--bv-muted);
    border: 1px solid var(--bv-line);
    font-weight: 500;
}

/* ---------- Menu filter ---------- */
.menu-filter .btn {
    border-color: var(--bv-line);
    color: var(--bv-ink);
    background: var(--bv-surface);
}
.menu-filter .btn.active {
    background: var(--bv-primary);
    border-color: var(--bv-primary);
    color: #fff;
}

/* ---------- Stats ---------- */
.stat-num {
    font-family: var(--bv-font-head);
    font-size: 2.6rem;
    color: var(--bv-primary);
    line-height: 1;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
    background: var(--bv-surface);
    border: 1px solid var(--bv-line);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
}
.testimonial-card .stars { color: var(--bv-gold); letter-spacing: 2px; }
.avatar {
    width: 52px; height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bv-gold);
}

/* ---------- Reservation / forms ---------- */
.reserve-panel {
    background: var(--bv-dark);
    color: #fff;
    border-radius: 18px;
    padding: clamp(1.5rem, 4vw, 3rem);
}
.reserve-panel .form-control,
.reserve-panel .form-select {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .18);
    color: #fff;
}
.reserve-panel .form-control::placeholder { color: rgba(255, 255, 255, .55); }
.reserve-panel .form-control:focus,
.reserve-panel .form-select:focus {
    background: rgba(255, 255, 255, .1);
    border-color: var(--bv-gold);
    box-shadow: 0 0 0 .2rem rgba(200, 162, 74, .25);
    color: #fff;
}
.reserve-panel .form-select option { color: #222; }
.form-control:focus, .form-select:focus {
    border-color: var(--bv-primary);
    box-shadow: 0 0 0 .2rem rgba(139, 46, 46, .18);
}
.form-note { font-size: .85rem; }

/* ---------- Info strip ---------- */
.info-tile {
    background: var(--bv-surface);
    border: 1px solid var(--bv-line);
    border-radius: 14px;
    padding: 1.75rem;
    height: 100%;
}
.info-tile .bi {
    font-size: 1.6rem;
    color: var(--bv-primary);
}
.map-frame {
    border: 0;
    width: 100%;
    min-height: 340px;
    border-radius: 14px;
    filter: grayscale(.25) contrast(1.05);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--bv-dark);
    color: rgba(255, 255, 255, .78);
    padding: 4rem 0 1.5rem;
}
.site-footer h5 { color: #fff; }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: var(--bv-gold); }
.site-footer .social a {
    display: inline-flex;
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    margin-right: .5rem;
}

/* ---------- Page header ---------- */
.page-hero {
    background:
        linear-gradient(rgba(20, 15, 12, .68), rgba(20, 15, 12, .68)),
        url("https://images.unsplash.com/photo-1552566626-52f8b828add9?auto=format&fit=crop&w=1920&q=80") center/cover no-repeat;
    color: #fff;
    padding: 7rem 0 3.5rem;
    text-align: center;
}

/* ---------- Admin ---------- */
.admin-body { background: #f4f5f7; }
.admin-sidebar {
    background: var(--bv-dark);
    color: rgba(255, 255, 255, .8);
    min-height: 100vh;
    width: 250px;
}
.admin-sidebar .brand {
    font-family: var(--bv-font-head);
    color: #fff;
    font-size: 1.3rem;
}
.admin-sidebar a {
    color: rgba(255, 255, 255, .72);
    text-decoration: none;
    padding: .65rem 1rem;
    border-radius: 8px;
    display: flex;
    gap: .6rem;
    align-items: center;
}
.admin-sidebar a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.admin-sidebar a.active { background: var(--bv-primary); color: #fff; }
.admin-content { flex: 1; min-width: 0; }
.stat-card {
    border: 1px solid var(--bv-line);
    border-radius: 12px;
    background: #fff;
    padding: 1.25rem 1.4rem;
}
.stat-card .n { font-size: 1.9rem; font-weight: 700; font-family: var(--bv-font-head); }

@media (max-width: 991.98px) {
    .admin-sidebar { width: 100%; min-height: auto; }
    .hero { min-height: 80vh; }
}

/* small helpers */
.object-cover { object-fit: cover; }
.rounded-16 { border-radius: 16px; }
.divider-gold {
    width: 64px; height: 3px;
    background: var(--bv-gold);
    border-radius: 2px;
}
.is-invalid ~ .invalid-feedback { display: block; }
