/* ============================================================
   Twins Poker Club — Design System
   Palette: onyx bg, gold accents, emerald felt, ivory text
   Fonts: Cormorant Garamond (display) + Inter (UI/body)
   ============================================================ */

:root {
  --bg:        #0a0a0c;
  --panel:     #14151a;
  --panel-2:   #1b1d24;
  --line:      rgba(201, 162, 75, 0.16);
  --gold-1:    #c9a24b;
  --gold-2:    #e8c877;
  --emerald:   #2e9c74;
  --emerald-d: #1c6a4d;
  --text:      #eceae4;
  --muted:     #9a988f;
  --danger:    #c25b4e;
  --radius:    16px;
  --radius-sm: 10px;
  --maxw:      1180px;
  --gold-grad: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  --shadow:    0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 86px; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle felt/vignette backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1100px 600px at 78% -8%, rgba(46, 156, 116, 0.10), transparent 60%),
    radial-gradient(900px 520px at 8% 12%, rgba(201, 162, 75, 0.08), transparent 55%),
    var(--bg);
}

h1, h2, h3, .display {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1.1;
  margin: 0 0 0.4em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin: 0 0 14px;
  font-weight: 600;
}

.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: var(--gold-grad);
  color: #241d09;
  box-shadow: 0 10px 26px rgba(201, 162, 75, 0.28);
}
.btn-gold:hover { box-shadow: 0 14px 32px rgba(201, 162, 75, 0.4); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--gold-2); color: var(--gold-2); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(10, 10, 12, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--gold-grad);
  color: #1a1406; font-weight: 800; font-size: 1.15rem;
  font-family: "Cormorant Garamond", serif;
  box-shadow: var(--shadow-sm);
}
.brand-name { font-family: "Cormorant Garamond", serif; font-size: 1.35rem; line-height: 1; }
.brand-name small { display: block; font-family: "Inter", sans-serif; font-size: 0.6rem; letter-spacing: 0.22em; color: var(--muted); text-transform: uppercase; margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 0.9rem; color: var(--muted); transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }

.nav-right { display: flex; align-items: center; gap: 14px; }

/* language switch */
.lang {
  display: flex; gap: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.lang button {
  background: transparent; border: 0; cursor: pointer;
  color: var(--muted); font-size: 0.78rem; font-weight: 600;
  padding: 5px 10px; border-radius: 999px; transition: all 0.15s;
}
.lang button.active { background: var(--gold-grad); color: #241d09; }

.hamburger { display: none; background: transparent; border: 0; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: 0.25s; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--muted); margin: 0; }

/* ---------- Hero ---------- */
.hero { padding: 70px 0 88px; position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 54px;
  align-items: center;
}
.hero h1 { font-size: clamp(2.8rem, 6.5vw, 5rem); margin-bottom: 18px; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 520px; margin: 0 0 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.stat .num { font-family: "Cormorant Garamond", serif; font-size: 2.3rem; line-height: 1; }
.stat .lbl { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; }

.suit-row { color: var(--gold-2); letter-spacing: 6px; font-size: 1.1rem; margin-bottom: 22px; opacity: 0.85; }

/* Tonight card */
.tonight {
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.tonight::after {
  content: "♠";
  position: absolute;
  right: -18px; bottom: -30px;
  font-size: 9rem; color: rgba(201, 162, 75, 0.06);
  pointer-events: none;
}
.tonight .k {
  font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold-2); font-weight: 700;
}
.tonight .date { color: var(--muted); font-size: 0.85rem; margin: 6px 0 20px; }
.tonight .t-name { font-family: "Cormorant Garamond", serif; font-size: 2.1rem; margin-bottom: 4px; }
.tonight .t-detail { color: var(--muted); font-size: 0.9rem; margin-bottom: 22px; }
.tonight .t-meta { display: flex; gap: 14px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  flex: 1;
  min-width: 92px;
}
.chip .cl { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.chip .cv { font-size: 1.15rem; font-weight: 700; }
.chip .cv.gold { color: var(--gold-2); }
.chip .cv.em { color: var(--emerald); }

/* ---------- Program table ---------- */
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.prog-head, .prog-row {
  display: grid;
  grid-template-columns: 96px 1fr 120px 150px;
  gap: 16px;
  align-items: center;
  padding: 16px 22px;
}
.prog-head {
  background: var(--panel-2);
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.prog-row { border-top: 1px solid var(--line); background: var(--panel); transition: background 0.15s; }
.prog-row:hover { background: var(--panel-2); }
.prog-row.featured { background: linear-gradient(90deg, rgba(201,162,75,0.10), rgba(201,162,75,0.02)); }
.prog-time { font-family: "Cormorant Garamond", serif; font-size: 1.5rem; color: var(--gold-2); }
.prog-name { font-weight: 600; }
.prog-name small { display: block; color: var(--muted); font-weight: 400; font-size: 0.82rem; }
.prog-buyin { font-weight: 700; }
.prog-gtd { color: var(--emerald); font-weight: 700; }
.badge-featured {
  display: inline-block; margin-left: 8px; vertical-align: middle;
  font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--gold-grad); color: #241d09;
  padding: 2px 8px; border-radius: 999px; font-weight: 700;
}
.prog-date-label { text-align: center; color: var(--muted); margin-top: 18px; font-size: 0.9rem; }

/* ---------- Offers ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.offer {
  position: relative;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.18s, border-color 0.18s;
}
.offer:hover { transform: translateY(-4px); border-color: rgba(201,162,75,0.4); }
.offer .icon { font-size: 2rem; margin-bottom: 14px; }
.offer h3 { font-size: 1.5rem; margin-bottom: 8px; }
.offer p { color: var(--muted); margin: 0; font-size: 0.92rem; }
.ribbon {
  position: absolute; top: 16px; right: 16px;
  font-size: 0.62rem; letter-spacing: 0.12em; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
}
.ribbon.NEW { background: var(--emerald); color: #04140d; }
.ribbon.HOT { background: var(--gold-grad); color: #241d09; }

/* ---------- Festivals ---------- */
.fest {
  display: flex; gap: 22px; align-items: center;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  transition: transform 0.18s, border-color 0.18s;
}
.fest:hover { transform: translateY(-4px); border-color: rgba(46,156,116,0.4); }
.fest-date {
  flex-shrink: 0; text-align: center; width: 84px;
  border-right: 1px solid var(--line); padding-right: 20px;
}
.fest-date .d { font-family: "Cormorant Garamond", serif; font-size: 2.6rem; line-height: 1; color: var(--gold-2); }
.fest-date .m { font-size: 0.8rem; letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; }
.fest-body h3 { font-size: 1.55rem; margin-bottom: 4px; }
.fest-body .gtd { color: var(--emerald); font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; }
.fest-body p { color: var(--muted); margin: 0; font-size: 0.9rem; }
.fest-list { display: grid; gap: 18px; }

/* ---------- Club / About ---------- */
.club-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; margin-bottom: 46px; }
.feature { text-align: center; padding: 26px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.feature .fi { font-size: 1.9rem; margin-bottom: 12px; }
.feature h3 { font-size: 1.35rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 0.88rem; margin: 0; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 260px)); gap: 14px; justify-content: center; }
.gallery figure {
  margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--line);
  /* PLACEHOLDER: replace background with real photos in /assets */
  background: linear-gradient(135deg, var(--panel-2), var(--panel));
  display: grid; place-items: center; color: rgba(201,162,75,0.35); font-size: 2.4rem;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: stretch; }
.info-list { display: grid; gap: 20px; margin-bottom: 26px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; }
.info-item .ii { font-size: 1.3rem; }
.info-item .il { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.info-item .iv { font-size: 1.05rem; }
.socials { display: flex; gap: 12px; }
.socials a {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--line); font-size: 1.1rem; transition: all 0.18s;
}
.socials a:hover { border-color: var(--gold-2); color: var(--gold-2); transform: translateY(-2px); }
.map-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-height: 340px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; filter: grayscale(0.3) contrast(1.05); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 54px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 34px; margin-bottom: 34px; }
.footer p { color: var(--muted); font-size: 0.9rem; }
.footer h4 { font-family: "Inter", sans-serif; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-2); margin: 0 0 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer ul a { color: var(--muted); font-size: 0.9rem; }
.footer ul a:hover { color: var(--text); }
.responsible {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; display: flex; gap: 14px; align-items: center;
  background: var(--panel); margin-bottom: 26px;
}
.responsible .age { font-family: "Cormorant Garamond", serif; font-weight: 700; color: var(--gold-2); font-size: 1.5rem; border: 2px solid var(--gold-2); border-radius: 50%; width: 46px; height: 46px; display: grid; place-items: center; flex-shrink: 0; }
.responsible p { margin: 0; font-size: 0.85rem; }
.copyright { text-align: center; color: var(--muted); font-size: 0.82rem; border-top: 1px solid var(--line); padding-top: 22px; }

/* ---------- Gallery media ---------- */
.gallery figure.has-media { color: transparent; position: relative; padding: 0; }
.gallery figure.has-media img,
.gallery figure.has-media video { width: 100%; height: 100%; object-fit: cover; }
.gallery figure.has-media figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-size: 0.78rem; color: var(--text);
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  padding: 18px 12px 8px;
}

/* ---------- Reservation modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4,4,6,0.7); backdrop-filter: blur(4px); }
.modal-card {
  position: relative; z-index: 1; width: 100%; max-width: 520px;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: 20px; padding: 34px 32px;
  box-shadow: var(--shadow); max-height: 92vh; overflow-y: auto;
}
.modal-card h2 { font-size: 2rem; margin-bottom: 6px; }
.modal-sub { color: var(--muted); font-size: 0.9rem; margin: 0 0 22px; }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px;
  border-radius: 50%; border: 1px solid var(--line); background: transparent;
  color: var(--muted); cursor: pointer; font-size: 0.9rem; transition: all 0.15s;
}
.modal-close:hover { border-color: var(--gold-2); color: var(--gold-2); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.fld { display: block; margin-bottom: 14px; }
.fld span { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 6px; }
.fld input, .fld textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); padding: 11px 13px; font-family: "Inter", sans-serif; font-size: 0.95rem;
}
.fld input:focus, .fld textarea:focus { outline: 2px solid var(--gold-2); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { margin: 14px 0 0; font-size: 0.9rem; text-align: center; }
.form-msg.ok { color: var(--emerald); }
.form-msg.err { color: var(--danger); }
.modal-alt { text-align: center; margin: 18px 0 0; color: var(--muted); font-size: 0.88rem; }
.modal-alt a { color: var(--gold-2); }
@media (max-width: 480px) { .form-grid { grid-template-columns: 1fr; } .modal-card { padding: 28px 22px; } }

/* ---------- Festival card link ---------- */
.fest-clickable { cursor: pointer; }
.fest-link { display: inline-block; margin-top: 10px; color: var(--gold-2); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; }
.fest-clickable:hover .fest-link { text-decoration: underline; }

/* ---------- Festival detail page ---------- */
.fest-hero { padding: 70px 0 40px; }
.fest-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin-bottom: 16px; }
.fest-hero .lead { color: var(--muted); font-size: 1.1rem; max-width: 620px; margin: 0 0 26px; }
.fest-meta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.fest-meta-row .fm {
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 20px;
  display: flex; flex-direction: column; background: var(--panel);
}
.fest-meta-row .fm b { font-family: "Cormorant Garamond", serif; font-size: 1.7rem; line-height: 1; color: var(--gold-2); }
.fest-meta-row .fm.em b { color: var(--emerald); }
.fest-meta-row .fm small { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-top: 4px; }
.sched-title { font-size: clamp(1.8rem, 4vw, 2.6rem); text-align: center; margin-bottom: 34px; }
.sched-day { margin-bottom: 32px; }
.sched-day-title { font-size: 1.5rem; color: var(--gold-2); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
#schedule-section { padding-bottom: 90px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav .lang { display: none; }
  .hamburger { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
    position: absolute; top: 74px; left: 0; right: 0;
    background: rgba(10,10,12,0.97); padding: 24px 22px; border-bottom: 1px solid var(--line);
  }
  .nav.open .lang { display: flex; position: absolute; top: 74px; right: 22px; margin-top: 200px; }
}
@media (max-width: 620px) {
  section { padding: 68px 0; }
  .prog-head { display: none; }
  .prog-row { grid-template-columns: 1fr auto; gap: 6px 14px; padding: 16px; }
  .prog-time { grid-column: 1 / -1; }
  .prog-buyin, .prog-gtd { text-align: right; }
  .fest { flex-direction: column; text-align: center; }
  .fest-date { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 12px; width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .offer:hover, .fest:hover { transform: none; }
}
