/* ==========================================================================
   Crown Bar & Banquet — styles.css
   Theme: dark background, gold accents, white text.
   HOW TO TWEAK: change the variables below and the whole site updates.
   ========================================================================== */
:root {
  --bg: #0b0a08;            /* page background (near-black, warm) */
  --bg-2: #14120e;          /* slightly lifted surface */
  --bg-3: #1d1a14;          /* cards / panels */
  --gold: #d4af37;          /* main gold */
  --gold-light: #f0d98c;    /* light gold for headings/hover */
  --gold-dark: #9c7c1e;     /* deep gold for borders */
  --text: #f5f2ea;          /* main text (soft white) */
  --text-dim: #b8b0a0;      /* secondary text */
  --radius: 10px;
  --font-display: "Oswald", "Arial Narrow", sans-serif;  /* headings — condensed, uppercase */
  --font-body: "Manrope", "Segoe UI", sans-serif;        /* body */
  --max: 1180px;            /* content max width */
}

/* ---------- Base / reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: var(--gold-light); text-decoration: none; transition: color .25s; }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; color: var(--text); text-transform: uppercase; letter-spacing: .04em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
::selection { background: var(--gold-dark); color: #fff; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 90px 0; position: relative; }

/* Gold kicker line above section titles */
.kicker {
  display: flex; align-items: center; gap: 14px;
  color: var(--gold); letter-spacing: .35em; text-transform: uppercase;
  font-size: 12px; font-weight: 400; margin-bottom: 14px;
}
.kicker::before { content: ""; width: 48px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold)); }
.section-title { font-size: clamp(34px, 5vw, 52px); line-height: 1.1; margin-bottom: 18px; }
.section-sub { color: var(--text-dim); max-width: 620px; margin-bottom: 40px; }

/* ---------- Scroll reveal (elements animate in as you scroll) ----------
   JS adds .in-view when an element with .reveal enters the viewport.   */
.reveal { opacity: 0; transform: translateY(38px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.65,.25,1); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .12s; }  /* stagger helpers */
.reveal-d2 { transition-delay: .24s; }
.reveal-d3 { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s, box-shadow .4s;
  padding: 14px 0;
}
.site-header.scrolled { background: rgba(11,10,8,.92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(212,175,55,.25); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 52px; width: auto; }
.brand-name { font-family: var(--font-display); font-size: 20px; letter-spacing: .12em; color: var(--gold-light); text-transform: uppercase; white-space: nowrap; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { color: var(--text); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.nav-links a:hover { color: var(--gold); }
.nav-cta { border: 1px solid var(--gold); color: var(--gold-light); padding: 10px 22px; border-radius: 999px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; transition: background .3s, color .3s; white-space: nowrap; }
.nav-cta:hover { background: var(--gold); color: #14120e; }
/* Mobile hamburger */
.nav-toggle { display: none; background: none; border: 1px solid var(--gold-dark); border-radius: 8px; color: var(--gold); font-size: 22px; padding: 6px 12px; cursor: pointer; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 78px; right: 0; flex-direction: column; gap: 0;
    background: rgba(15,13,10,.98); width: min(320px, 84vw); padding: 18px 0;
    border-left: 1px solid var(--gold-dark); border-bottom: 1px solid var(--gold-dark);
    transform: translateX(105%); transition: transform .35s ease;
  }
  .nav-links.open { transform: none; }
  .nav-links li { padding: 12px 28px; }
  .nav-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 140px 0 80px; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { /* dark + gold-tinted overlay so text stays readable */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 50% 40%, rgba(11,10,8,.55), rgba(11,10,8,.93) 75%);
}
.hero-logo { width: min(300px, 60vw); margin: 0 auto 26px; filter: drop-shadow(0 12px 40px rgba(212,175,55,.25)); }
.hero h1 { font-size: clamp(40px, 6.5vw, 76px); line-height: 1.05; }
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero-tag { color: var(--text-dim); letter-spacing: .3em; text-transform: uppercase; font-size: 13px; margin: 18px 0 34px; }
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: 15px 36px; border-radius: 999px; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: all .3s; border: 1px solid var(--gold); font-family: var(--font-body); }
.btn-gold { background: linear-gradient(135deg, #e6c65c, var(--gold) 55%, #b18f24); color: #171307; font-weight: 500; }
.btn-gold:hover { filter: brightness(1.12); transform: translateY(-2px); color: #171307; }
.btn-outline { background: transparent; color: var(--gold-light); }
.btn-outline:hover { background: rgba(212,175,55,.14); color: var(--gold-light); }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: var(--gold); font-size: 22px; animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,10px); } }

/* ---------- Gold divider ornament ---------- */
.ornament { display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--gold); margin: 0 auto; }
.ornament::before, .ornament::after { content: ""; height: 1px; width: min(160px, 30vw); background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament::after { background: linear-gradient(270deg, transparent, var(--gold)); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.about-grid figure { position: relative; }
.about-grid figure img { border-radius: var(--radius); border: 1px solid rgba(212,175,55,.3); }
.about-grid figure::after { /* offset gold frame behind the photo */
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 1px solid var(--gold-dark); border-radius: var(--radius); z-index: -1;
}
.stat-row { display: flex; gap: 40px; margin-top: 34px; flex-wrap: wrap; }
.stat b { display: block; font-family: var(--font-display); font-size: 40px; color: var(--gold-light); line-height: 1; }
.stat span { color: var(--text-dim); font-size: 13px; letter-spacing: .15em; text-transform: uppercase; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about-grid figure { order: -1; } }

/* ---------- Menu ---------- */
#menu { background: var(--bg-2); }
.menu-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.menu-tab { background: none; border: 1px solid var(--gold-dark); color: var(--text-dim); padding: 10px 22px; border-radius: 999px; cursor: pointer; font-family: var(--font-body); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; transition: all .3s; }
.menu-tab:hover { color: var(--gold-light); border-color: var(--gold); }
.menu-tab.active { background: var(--gold); border-color: var(--gold); color: #171307; font-weight: 500; }
.menu-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 56px; }
.menu-item { display: flex; align-items: baseline; gap: 10px; padding: 14px 0; border-bottom: 1px solid rgba(212,175,55,.15); }
.menu-item .name { font-family: var(--font-display); font-size: 21px; color: var(--text); }
.menu-item .dots { flex: 1; border-bottom: 1px dotted rgba(212,175,55,.4); transform: translateY(-4px); }
.menu-item .price { color: var(--gold-light); font-size: 17px; white-space: nowrap; }
.menu-item .desc { display: block; color: var(--text-dim); font-size: 14px; margin-top: 2px; }
.menu-note { margin-top: 34px; color: var(--text-dim); font-size: 14px; }
@media (max-width: 760px) { .menu-list { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 14px; }
.gallery-grid > * { border-radius: var(--radius); overflow: hidden; position: relative; border: 1px solid rgba(212,175,55,.18); }
.gallery-grid img, .gallery-grid video { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.gallery-grid a:hover img { transform: scale(1.06); }
.g-wide { grid-column: span 2; }
.g-tall { grid-row: span 2; }
.g-caption { position: absolute; inset: auto 0 0 0; padding: 26px 14px 10px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); background: linear-gradient(transparent, rgba(0,0,0,.75)); pointer-events: none; }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; } }

/* ---------- Reviews ---------- */
#reviews { background: var(--bg-2); }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review-card { background: var(--bg-3); border: 1px solid rgba(212,175,55,.2); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.review-stars { color: var(--gold); letter-spacing: 4px; font-size: 15px; }
.review-text { color: var(--text); font-size: 15.5px; flex: 1; }
.review-who { display: flex; align-items: center; gap: 12px; }
.review-who img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 1px solid var(--gold-dark); }
.review-who b { display: block; font-weight: 500; font-size: 15px; }
.review-who span { color: var(--text-dim); font-size: 13px; }
@media (max-width: 860px) { .review-grid { grid-template-columns: 1fr; } }

/* ---------- Reservation ---------- */
.book-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.book-form { background: var(--bg-3); border: 1px solid rgba(212,175,55,.25); border-radius: var(--radius); padding: 34px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 8px; }
.field input, .field select {
  width: 100%; background: var(--bg); color: var(--text); border: 1px solid rgba(212,175,55,.35);
  border-radius: 8px; padding: 13px 14px; font-family: var(--font-body); font-size: 16px;
  color-scheme: dark; /* dark native date-picker */
}
.field input:focus, .field select:focus { border-color: var(--gold); outline: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
/* Time-slot grid: JS fills this with buttons, 4 slots per hour */
.slot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 20px; max-height: 240px; overflow-y: auto; padding-right: 4px; }
.slot-grid::-webkit-scrollbar { width: 6px; } .slot-grid::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }
.slot { background: var(--bg); border: 1px solid rgba(212,175,55,.3); color: var(--text); border-radius: 8px; padding: 9px 4px; font-size: 13.5px; cursor: pointer; font-family: var(--font-body); transition: all .2s; }
.slot:hover { border-color: var(--gold); color: var(--gold-light); }
.slot.selected { background: var(--gold); color: #171307; border-color: var(--gold); font-weight: 500; }
.slot.full { opacity: .32; cursor: not-allowed; text-decoration: line-through; }
.book-msg { margin-top: 16px; font-size: 15px; display: none; padding: 14px 16px; border-radius: 8px; }
.book-msg.ok { display: block; background: rgba(52,168,83,.12); border: 1px solid rgba(52,168,83,.5); color: #9ae6b4; }
.book-msg.err { display: block; background: rgba(200,60,60,.12); border: 1px solid rgba(200,60,60,.5); color: #feb2b2; }
.book-info li { margin: 10px 0 10px 4px; list-style: none; padding-left: 26px; position: relative; color: var(--text-dim); }
.book-info li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); }
@media (max-width: 900px) { .book-grid { grid-template-columns: 1fr; } }

/* ---------- Delivery partners ---------- */
.delivery-row { display: flex; gap: 18px; flex-wrap: wrap; }
.delivery-card { flex: 1; min-width: 200px; text-align: center; padding: 30px 20px; background: var(--bg-3); border: 1px solid rgba(212,175,55,.2); border-radius: var(--radius); transition: transform .3s, border-color .3s; }
.delivery-card:hover { transform: translateY(-5px); border-color: var(--gold); }
.delivery-card .d-logo { font-family: var(--font-display); font-size: 26px; color: var(--gold-light); margin-bottom: 6px; }
.delivery-card span { color: var(--text-dim); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Find us ---------- */
#find-us { background: var(--bg-2); }
.find-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 46px; align-items: stretch; }
.find-grid iframe { width: 100%; height: 100%; min-height: 380px; border: 1px solid var(--gold-dark); border-radius: var(--radius); filter: grayscale(.4) contrast(1.05); }
.info-block { margin-bottom: 26px; }
.info-block h4 { color: var(--gold-light); font-size: 20px; margin-bottom: 6px; }
.info-block p { color: var(--text-dim); }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 7px 0; border-bottom: 1px solid rgba(212,175,55,.12); color: var(--text-dim); font-size: 15px; }
.hours-table td:last-child { text-align: right; color: var(--text); }
@media (max-width: 860px) { .find-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
footer { padding: 60px 0 34px; border-top: 1px solid rgba(212,175,55,.25); text-align: center; }
.footer-logo { width: 130px; margin: 0 auto 18px; }
.socials { display: flex; gap: 16px; justify-content: center; margin: 22px 0; }
.socials a { width: 44px; height: 44px; border: 1px solid var(--gold-dark); border-radius: 50%; display: grid; place-items: center; color: var(--gold-light); transition: all .3s; }
.socials a:hover { background: var(--gold); color: #171307; transform: translateY(-3px); }
.socials svg { width: 20px; height: 20px; fill: currentColor; }
.footer-fine { color: var(--text-dim); font-size: 13px; margin-top: 8px; }
