/* ============================================================
   RESERVIA — Guest Interface
   ============================================================ */

/* Variables */
:root {
    --gold:        #C9A84C;
    --gold-light:  #E8D5A3;
    --gold-dim:    rgba(201,168,76,0.15);
    --dark:        #0D0D0D;
    --dark-2:      #141414;
    --dark-3:      #1A1A1A;
    --dark-4:      #252525;
    --border:      rgba(255,255,255,0.07);
    --border-gold: rgba(201,168,76,0.25);
    --text:        #E5E5E5;
    --text-muted:  #888888;
    --white:       #FFFFFF;
    --green:       #4ade80;
    --red:         #f87171;
    --radius:      2px;
}

/* Reset */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }
body { background:var(--dark); color:var(--text); font-family:'Inter',sans-serif; font-weight:300; line-height:1.7; -webkit-font-smoothing:antialiased; }
img { display:block; max-width:100%; }
a { color:inherit; }

/* Typography */
h1,h2,h3,h4 { font-family:'Cormorant Garamond',Georgia,serif; font-weight:400; letter-spacing:0.02em; line-height:1.15; }
h1 { font-size:clamp(2.5rem,5vw,5rem); }
h2 { font-size:clamp(2rem,3.5vw,3.2rem); }
h3 { font-size:clamp(1.4rem,2.5vw,2rem); }
p  { font-size:0.9rem; }

/* ── Navigation ─────────────────────────────────────────── */
.nav {
    position:fixed; top:0; left:0; right:0; z-index:100;
    padding:1.2rem 3rem;
    display:flex; align-items:center; justify-content:space-between;
    background:linear-gradient(to bottom,rgba(13,13,13,0.97),rgba(13,13,13,0));
    backdrop-filter:blur(6px);
}
.nav__logo {
    font-family:'Cormorant Garamond',serif;
    font-size:1.6rem; color:var(--gold);
    letter-spacing:0.2em; text-decoration:none;
}
.nav__links { display:flex; align-items:center; gap:2rem; }
.nav__links a {
    color:rgba(255,255,255,0.65); text-decoration:none;
    font-size:0.78rem; letter-spacing:0.1em; text-transform:uppercase;
    transition:color 0.2s;
}
.nav__links a:hover { color:var(--gold); }

/* Language switcher */
.lang { position:relative; }
.lang__btn {
    background:transparent; border:1px solid var(--border-gold);
    color:var(--gold); padding:0.35rem 0.8rem;
    font-size:0.75rem; letter-spacing:0.1em; cursor:pointer;
    font-family:'Inter',sans-serif; transition:all 0.2s;
}
.lang__btn:hover { background:var(--gold-dim); }
.lang__dropdown {
    display:none; position:absolute; top:calc(100% + 6px); right:0;
    background:var(--dark-3); border:1px solid var(--border-gold);
    min-width:170px; z-index:200; box-shadow:0 8px 32px rgba(0,0,0,0.5);
}
.lang__dropdown a {
    display:flex; align-items:center; gap:0.6rem;
    padding:0.65rem 1rem; color:rgba(255,255,255,0.75);
    text-decoration:none; font-size:0.82rem; transition:background 0.15s;
}
.lang__dropdown a:hover { background:var(--gold-dim); color:var(--gold); }
.lang:hover .lang__dropdown { display:block; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn-gold {
    display:inline-block; background:var(--gold); color:var(--dark);
    padding:0.9rem 2.5rem; font-size:0.8rem; letter-spacing:0.15em;
    text-transform:uppercase; text-decoration:none; font-weight:600;
    border:none; cursor:pointer; font-family:'Inter',sans-serif;
    transition:background 0.25s, transform 0.15s;
}
.btn-gold:hover { background:#b8923e; transform:translateY(-1px); }

.btn-outline {
    display:inline-block; background:transparent;
    border:1px solid var(--gold); color:var(--gold);
    padding:0.85rem 2rem; font-size:0.8rem; letter-spacing:0.12em;
    text-transform:uppercase; text-decoration:none;
    font-family:'Inter',sans-serif; transition:all 0.25s; cursor:pointer;
}
.btn-outline:hover { background:var(--gold); color:var(--dark); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
    height:100vh; display:flex; align-items:center; justify-content:center;
    text-align:center; position:relative; overflow:hidden;
    background:linear-gradient(160deg,#0D0D0D 0%,#1a1208 50%,#0D0D0D 100%);
}
.hero__inner { position:relative; z-index:1; max-width:720px; padding:2rem; }
.hero__eyebrow {
    font-size:0.72rem; letter-spacing:0.35em; text-transform:uppercase;
    color:var(--gold); margin-bottom:1.5rem;
}
.hero__title { color:var(--white); margin-bottom:1.5rem; }
.hero__subtitle { color:rgba(255,255,255,0.5); font-size:0.95rem; max-width:460px; margin:0 auto 2.5rem; }

/* Divider */
.divider { display:flex; align-items:center; gap:1.5rem; margin:1.2rem 0; }
.divider::before,.divider::after { content:''; flex:1; height:1px; background:var(--border-gold); }
.divider span { color:var(--gold); font-size:0.85rem; }

/* ── Section ─────────────────────────────────────────────── */
.section { padding:6rem 3rem; max-width:1400px; margin:0 auto; }
.section--sm { padding:3rem 3rem; max-width:1400px; margin:0 auto; }
.section__eyebrow { font-size:0.72rem; letter-spacing:0.3em; text-transform:uppercase; color:var(--gold); margin-bottom:0.6rem; }
.section__title { margin-bottom:3rem; }

/* ── Restaurant Cards ────────────────────────────────────── */
.restaurants-grid {
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(360px,1fr));
    gap:2px; margin-top:3rem;
}
.restaurant-card {
    background:var(--dark-3); border:1px solid var(--border);
    display:flex; flex-direction:column; overflow:hidden;
    transition:border-color 0.3s;
}
.restaurant-card:hover { border-color:var(--border-gold); }

.restaurant-card__image {
    aspect-ratio:16/9; overflow:hidden; position:relative;
    background:var(--dark-4);
}
.restaurant-card__image img {
    width:100%; height:100%; object-fit:cover;
    transition:transform 0.6s ease;
}
.restaurant-card:hover .restaurant-card__image img { transform:scale(1.04); }
.restaurant-card__placeholder {
    width:100%; height:100%; display:flex; align-items:center;
    justify-content:center; font-size:3rem; opacity:0.2;
}
.restaurant-card__body { padding:1.8rem; flex:1; display:flex; flex-direction:column; }
.restaurant-card__cuisine {
    font-size:0.7rem; letter-spacing:0.15em; text-transform:uppercase;
    color:var(--gold); margin-bottom:0.5rem;
}
.restaurant-card__name { font-size:1.65rem; margin-bottom:0.3rem; }
.restaurant-card__location { font-size:0.8rem; color:var(--text-muted); margin-bottom:0.8rem; }
.restaurant-card__desc { font-size:0.85rem; color:rgba(255,255,255,0.5); line-height:1.65; margin-bottom:1rem; }

.menu-tags { display:flex; flex-wrap:wrap; gap:0.4rem; margin-bottom:1.2rem; }
.menu-tag {
    font-size:0.72rem; padding:0.2rem 0.6rem;
    border:1px solid var(--border); color:rgba(255,255,255,0.5);
    transition:all 0.2s;
}
.menu-tag:hover { border-color:var(--border-gold); color:var(--gold); }

.restaurant-card__actions { display:flex; gap:0.8rem; margin-top:auto; }
.restaurant-card__actions .btn-outline,
.restaurant-card__actions .btn-gold { flex:1; text-align:center; padding:0.75rem 0.5rem; font-size:0.75rem; }

/* Badge */
.badge {
    position:absolute; top:1rem; left:1rem;
    display:inline-block; padding:0.2rem 0.7rem;
    font-size:0.68rem; letter-spacing:0.1em; text-transform:uppercase;
    font-weight:500; background:rgba(13,13,13,0.85);
    border:1px solid var(--border-gold); color:var(--gold);
    backdrop-filter:blur(4px);
}

/* ── Restaurant Single Page ──────────────────────────────── */
.restaurant-hero {
    height:55vh; min-height:380px; position:relative;
    display:flex; align-items:flex-end; padding:3rem;
    overflow:hidden; background:var(--dark-3);
}
.restaurant-hero__img {
    position:absolute; inset:0; width:100%; height:100%;
    object-fit:cover; opacity:0.45;
}
.restaurant-hero__overlay {
    position:absolute; inset:0;
    background:linear-gradient(to top,rgba(13,13,13,0.95) 0%,rgba(13,13,13,0.2) 100%);
}
.restaurant-hero__content { position:relative; z-index:1; max-width:700px; }

/* Menu Navigation */
.menu-nav {
    position:sticky; top:72px; z-index:50; background:rgba(13,13,13,0.95);
    backdrop-filter:blur(8px); border-bottom:1px solid var(--border);
    padding:0 3rem; display:flex; gap:0; overflow-x:auto;
}
.menu-nav::-webkit-scrollbar { height:2px; }
.menu-nav::-webkit-scrollbar-thumb { background:var(--border-gold); }
.menu-nav__link {
    padding:1rem 1.5rem; font-size:0.78rem; letter-spacing:0.1em;
    text-transform:uppercase; color:var(--text-muted); text-decoration:none;
    white-space:nowrap; border-bottom:2px solid transparent;
    transition:all 0.2s;
}
.menu-nav__link:hover,.menu-nav__link.active { color:var(--gold); border-bottom-color:var(--gold); }

/* Menu Section */
.menu-section { padding:3rem; max-width:1200px; margin:0 auto; }
.menu-section__header { margin-bottom:2rem; padding-bottom:1rem; border-bottom:1px solid var(--border); }
.menu-section__title { font-size:1.8rem; }

.menu-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:1px; }
.menu-item {
    background:var(--dark-3); padding:1.4rem;
    border:1px solid var(--border); transition:border-color 0.2s;
    display:flex; gap:1rem;
}
.menu-item:hover { border-color:var(--border-gold); }
.menu-item__image { width:80px; height:80px; object-fit:cover; flex-shrink:0; border-radius:2px; }
.menu-item__body { flex:1; }
.menu-item__name { font-size:1.05rem; margin-bottom:0.3rem; }
.menu-item__desc { font-size:0.8rem; color:var(--text-muted); line-height:1.5; margin-bottom:0.5rem; }
.menu-item__footer { display:flex; align-items:center; justify-content:space-between; }
.menu-item__price { font-size:1.05rem; color:var(--gold); font-weight:400; }
.menu-item__dietary {
    font-size:0.68rem; padding:0.15rem 0.5rem;
    border-radius:2px; letter-spacing:0.06em;
}
.dietary--vegetarian { background:rgba(74,222,128,0.1); color:#4ade80; }
.dietary--vegan      { background:rgba(74,222,128,0.1); color:#4ade80; }
.dietary--halal      { background:rgba(201,168,76,0.1); color:var(--gold); }
.dietary--gluten_free { background:rgba(251,191,36,0.1); color:#fbbf24; }

/* ── Reservation Form ────────────────────────────────────── */
.res-page { padding-top:100px; min-height:100vh; }
.res-container { max-width:700px; margin:0 auto; padding:3rem 1.5rem 6rem; }
.res-back {
    display:inline-flex; align-items:center; gap:0.5rem;
    color:var(--gold); text-decoration:none; font-size:0.78rem;
    letter-spacing:0.1em; text-transform:uppercase; margin-bottom:2rem;
    transition:gap 0.2s;
}
.res-back:hover { gap:0.8rem; }
.res-eyebrow { font-size:0.72rem; letter-spacing:0.25em; text-transform:uppercase; color:var(--gold); }
.res-title { font-size:2.5rem; margin:0.4rem 0 0.2rem; }
.res-location { color:var(--text-muted); font-size:0.85rem; }

.res-step {
    background:var(--dark-3); border:1px solid var(--border);
    padding:2rem; margin-top:1.5rem;
}
.res-step__title {
    font-size:0.78rem; letter-spacing:0.15em; text-transform:uppercase;
    color:var(--gold); margin-bottom:1.5rem;
    display:flex; align-items:center; gap:0.8rem;
}
.res-step__num {
    width:24px; height:24px; border:1px solid var(--border-gold);
    border-radius:50%; display:flex; align-items:center; justify-content:center;
    font-size:0.7rem;
}

/* Form elements */
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:1.2rem; }
.form-grid--full { grid-column:1 / -1; }
.form-group { display:flex; flex-direction:column; gap:0.4rem; }
.form-label { font-size:0.72rem; letter-spacing:0.1em; text-transform:uppercase; color:rgba(255,255,255,0.45); }
.form-label span { color:var(--text-muted); font-style:italic; letter-spacing:0; text-transform:none; }
.form-control {
    background:var(--dark-4); border:1px solid rgba(255,255,255,0.08);
    color:var(--white); padding:0.85rem 1rem; font-size:0.88rem;
    font-family:'Inter',sans-serif; outline:none; transition:border-color 0.2s;
    border-radius:0; appearance:none;
}
.form-control:focus { border-color:var(--gold); }
.form-control::placeholder { color:rgba(255,255,255,0.2); }
select.form-control { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C9A84C' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 1rem center; padding-right:2.5rem; }
select.form-control option { background:var(--dark-4); }
textarea.form-control { resize:vertical; min-height:90px; }

/* Slot message */
.slot-msg { font-size:0.78rem; margin-top:0.4rem; height:1.2em; }
.slot-msg--ok  { color:var(--green); }
.slot-msg--err { color:var(--red); }

/* Alerts */
.alert { padding:1rem 1.2rem; margin-bottom:1rem; font-size:0.85rem; border-radius:2px; }
.alert--error   { background:rgba(239,68,68,0.08); border:1px solid rgba(239,68,68,0.25); color:#fca5a5; }
.alert--success { background:rgba(74,222,128,0.08); border:1px solid rgba(74,222,128,0.25); color:#86efac; }
.alert ul { list-style:none; display:flex; flex-direction:column; gap:0.3rem; }

/* Submit */
.res-submit { width:100%; padding:1.1rem; font-size:0.85rem; margin-top:1.5rem; }
.res-note { text-align:center; font-size:0.75rem; color:var(--text-muted); margin-top:0.8rem; }

/* ── Success Page ─────────────────────────────────────────── */
.success-page { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:2rem; padding-top:100px; }
.success-card { background:var(--dark-3); border:1px solid var(--border-gold); max-width:560px; width:100%; padding:3rem; text-align:center; }
.success-icon { font-size:3rem; margin-bottom:1rem; }
.success-ref { font-family:monospace; font-size:1.2rem; color:var(--gold); background:var(--gold-dim); padding:0.5rem 1rem; display:inline-block; margin:1rem 0; letter-spacing:0.1em; }
.success-details { background:var(--dark-4); border:1px solid var(--border); padding:1.2rem; margin:1.5rem 0; text-align:left; }
.success-details dt { font-size:0.7rem; letter-spacing:0.1em; text-transform:uppercase; color:var(--text-muted); margin-bottom:0.2rem; }
.success-details dd { font-size:0.9rem; margin-bottom:0.8rem; }
.success-details dd:last-child { margin-bottom:0; }

/* ── Footer ──────────────────────────────────────────────── */
footer { border-top:1px solid var(--border); padding:2.5rem 3rem; text-align:center; color:var(--text-muted); font-size:0.78rem; letter-spacing:0.05em; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width:900px) {
    .section,.section--sm { padding:4rem 1.5rem; }
    .restaurants-grid { grid-template-columns:1fr; }
    .menu-grid { grid-template-columns:1fr; }
    .form-grid { grid-template-columns:1fr; }
    .nav { padding:1rem 1.5rem; }
    .restaurant-hero { padding:2rem 1.5rem; height:45vh; }
    .menu-nav { padding:0 1.5rem; }
    .menu-section { padding:2rem 1.5rem; }
}
