/* ==========================================================
   EaglePokerClub – styles
   1. Tokens  2. Base  3. Layout helpers  4. Header  5. Hero
   6. Sections (about, events, menu, visit)  7. Footer  8. Mobile  9. Contact page
   ========================================================== */

/* ---------- 1. Tokens: change colors and fonts here ---------- */
:root {
  --ink: #171313;      /* text, footer */
  --red: #a3282b;      /* from the logo's feathers */
  --gold: #f2b31d;     /* from the logo's beak */
  --paper: #f4f3ef;    /* light section background */
  --felt: #12392c;     /* poker-table green, menu section */
  --white: #ffffff;

  --font-display: "Big Shoulders Display", Impact, "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --space: 1.5rem;
  --radius: 6px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 5rem; } /* keeps anchored sections clear of the sticky header */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; margin: 0 0 .5em; }
h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; }
h3 { font-size: 1.6rem; font-weight: 700; margin-top: 1.75em; }
p { margin: 0 0 1em; }

/* ---------- 3. Layout helpers ---------- */
.container { width: min(1100px, 100% - 2 * var(--space)); margin-inline: auto; }
.narrow { max-width: 680px; margin-inline: auto; text-align: center; }
.section { padding: 5rem 0; }
.section--paper { background: var(--paper); }
.section--felt { background: var(--felt); color: var(--white); }
.plain-list { list-style: none; margin: 0; padding: 0; }

.btn {
  display: inline-block;
  padding: .7em 1.4em;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--red);
}
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: #8a2124; border-color: #8a2124; }
.btn--ghost { color: var(--red); }
.btn--ghost:hover { background: var(--red); color: var(--white); }

/* ---------- 4. Header + brand (logo and name always together) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--white);
  border-bottom: 4px solid var(--red);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space); padding: .5rem 0; }

.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand__logo { height: 56px; width: auto; border-radius: 6px; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; letter-spacing: .01em; }

/* New full logo already has its own dark background — no white badge needed */
.brand--dark .brand__logo { height: 64px; background: none; padding: 0; }

.site-nav { display: flex; gap: 1.5rem; }
.site-nav a { text-decoration: none; font-weight: 500; padding: .25rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--gold); }

.nav-toggle { display: none; }

/* ---------- 5. Hero ---------- */
.hero { background: var(--white); padding: 4rem 0 5rem; }
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 3rem; }
.hero__title { font-size: clamp(3.5rem, 9vw, 7rem); font-weight: 800; color: var(--ink); margin-bottom: .2em; }
.hero__tagline { font-size: 1.35rem; max-width: 30ch; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero__logo { width: min(100%, 380px); justify-self: center; border-radius: 12px; }

/* ---------- 6a. About ---------- */
#about p { font-size: 1.15rem; }

/* ---------- 6b. Events & gallery ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space); margin-top: 2rem; }
.card { background: var(--paper); border-radius: var(--radius); overflow: hidden; }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card__body { padding: 1.1rem 1.25rem 1.4rem; }
.card__date { color: var(--red); font-weight: 600; margin: 0 0 .25rem; }
.card__title { font-size: 1.7rem; margin: 0 0 .4em; }
.card__text { margin: 0; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

/* ---------- 6c. Menu (image slider) ---------- */
.menu-intro { text-align: center; opacity: .85; margin: -0.5rem 0 1.5rem; }

.menu-slider {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  background: #0d2a22;
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
}

.menu-slider__track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}

.menu-slide {
  min-width: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 0.75rem 1.25rem;
}

.menu-slide img {
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 8px;
  background: #000;
}

.menu-slide__label {
  margin: 0.75rem 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.menu-slider__btn {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background .2s;
}
.menu-slider__btn:hover { background: rgba(0,0,0,.8); }
.menu-slider__btn--prev { left: 8px; }
.menu-slider__btn--next { right: 8px; }

.menu-slider__dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.4rem 0 0.8rem;
}

.menu-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.menu-dot.is-active { background: var(--gold); }

@media (max-width: 600px) {
  .menu-slider { max-width: 100%; }
  .menu-slider__btn { width: 36px; height: 36px; font-size: 1.3rem; }
}

/* ---------- 6d. Location & hours ---------- */
.visit-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.visit-grid h2 { margin-bottom: 0; }
.visit-grid h3 { margin-top: 1.25em; }
address { font-style: normal; }

.hours { border-collapse: collapse; width: 100%; max-width: 360px; }
.hours th, .hours td { text-align: left; padding: .4rem .6rem; border-bottom: 1px solid #d8d5cd; }
.hours th { font-weight: 500; }
.hours tr.is-today { background: var(--gold); font-weight: 600; } /* set by script.js */

.map-placeholder { display: grid; place-items: center; min-height: 380px; background: #d9d6cf; border-radius: var(--radius); color: #6b675f; }
.visit-grid iframe { width: 100%; min-height: 380px; border: 0; border-radius: var(--radius); }

/* ---------- 7. Footer / contact ---------- */
.site-footer { background: var(--ink); color: var(--white); padding: 3.5rem 0 1.5rem; border-top: 4px solid var(--red); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer-grid h3 { margin-top: 0; color: var(--gold); }
.footer-blurb { margin-top: 1rem; opacity: .8; }
.plain-list li { margin-bottom: .4rem; }
.site-footer a { text-decoration-color: var(--gold); text-underline-offset: 3px; }
.footer-legal { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .2); font-size: .9rem; opacity: .75; }

/* ---------- 8. Mobile ---------- */
@media (max-width: 800px) {
  .hero-inner, .visit-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero__logo { order: -1; width: 200px; justify-self: start; }
  .section { padding: 3.5rem 0; }

  .nav-toggle { display: block; background: none; border: 2px solid var(--ink); border-radius: var(--radius); padding: .4rem .9rem; font: inherit; font-weight: 600; cursor: pointer; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--white); border-bottom: 4px solid var(--red); padding: .5rem var(--space) 1rem; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .75rem 0; }
  .brand__name { font-size: 1.4rem; }
}

/* ---------- 9. Contact page ---------- */
.site-nav a[aria-current="page"] { border-bottom-color: var(--red); }

.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }
.page-title { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; }
.contact-intro { font-size: 1.15rem; max-width: 52ch; }

.contact-form { margin-top: 1.5rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .3rem; }
.field input, .field textarea {
  width: 100%; padding: .7em .85em;
  font: inherit; color: var(--ink);
  background: var(--white); border: 2px solid #cfcbc1; border-radius: var(--radius);
}
.field input:focus, .field textarea:focus { border-color: var(--red); outline: none; box-shadow: 0 0 0 3px rgba(242, 179, 29, .5); }
.field textarea { resize: vertical; min-height: 9rem; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-form .btn { cursor: pointer; font: inherit; font-weight: 600; }
.contact-form .btn:disabled { opacity: .6; cursor: wait; }
.form-status { margin: 1rem 0 0; min-height: 1.6em; font-weight: 500; }
.form-status.is-ok { color: #1c6b3a; }
.form-status.is-error { color: var(--red); }

.contact-details h2 { font-size: 2rem; }
.contact-details h3 { font-size: 1.3rem; margin-top: 1.25em; }

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.visit-phone { margin: .75rem 0 0; font-weight: 600; }

/* 5 photos: 3 on the first row, 2 wider on the second */
@media (min-width: 700px) {
  .gallery { grid-template-columns: repeat(6, 1fr); }
  .gallery img { grid-column: span 2; }
  .gallery img:nth-child(n+4) { grid-column: span 3; }
}

/* ---------- 10. Booking page ---------- */
.booking { margin-top: 2rem; }
.booking-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 3rem; align-items: start; }
.booking-steps { display: grid; gap: 2rem; min-width: 0; }

.booking-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.booking-step legend {
  display: flex; align-items: center; gap: .6rem; padding: 0; margin-bottom: 1rem;
  font-family: var(--font-display); font-weight: 800; font-size: 2rem; line-height: 1;
}
.step-num {
  display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--red); color: var(--white); font-size: 1.15rem;
}

.field-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.field-row--2 { grid-template-columns: 1fr 1fr; }
.field select {
  width: 100%; padding: .7em .85em; font: inherit; color: var(--ink);
  background: var(--white); border: 2px solid #cfcbc1; border-radius: var(--radius);
}
.field select:focus { border-color: var(--red); outline: none; box-shadow: 0 0 0 3px rgba(242, 179, 29, .5); }
.field textarea { min-height: 6rem; }
.optional { font-weight: 400; color: #6b675f; }
.field-hint { margin: 0 0 .75rem; color: #5d5951; font-size: .98rem; }

/* facilities */
.facility-group h3 { font-size: 1.35rem; margin: 1.25rem 0 .5rem; color: var(--red); }
.facility-group:first-child h3 { margin-top: 0; }
.facility-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .75rem; }
.facility { position: relative; display: block; cursor: pointer; }
.facility input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.facility__body {
  display: flex; flex-direction: column; gap: .15rem; height: 100%;
  padding: .85rem 1rem; background: var(--white);
  border: 2px solid #cfcbc1; border-radius: var(--radius);
  transition: border-color .15s, background-color .15s;
}
.facility:hover .facility__body { border-color: var(--gold); }
.facility input:focus-visible + .facility__body { outline: 3px solid var(--gold); outline-offset: 3px; }
.facility__name { font-weight: 600; font-size: 1.1rem; }
.facility__meta, .facility__desc { font-size: .92rem; color: #5d5951; }
.facility__status { margin-top: auto; padding-top: .35rem; font-size: .9rem; font-weight: 600; min-height: 1.6em; }
.facility__status.is-free { color: #1c6b3a; }
.facility.is-selected .facility__body { border-color: var(--red); background: #fbf2f2; }
.facility.is-selected .facility__status { color: var(--red); }
.facility.is-unavailable { cursor: not-allowed; }
.facility.is-unavailable input { cursor: not-allowed; }
.facility.is-unavailable:hover .facility__body { border-color: #cfcbc1; }
.facility.is-unavailable .facility__body { background: #e9e7e1; border-style: dashed; color: #7a766d; }
.facility.is-unavailable .facility__meta, .facility.is-unavailable .facility__desc { color: #7a766d; }
.facility.is-unavailable .facility__status { color: #8a2124; }

/* summary */
.booking-summary {
  position: sticky; top: 6rem; background: var(--white);
  border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.5rem;
}
.booking-summary h2 { font-size: 2rem; margin-bottom: .75rem; }
.summary-list { margin: 0 0 1.25rem; }
.summary-list dt { font-weight: 600; color: var(--red); font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; margin-top: .85rem; }
.summary-list dd { margin: .1rem 0 0; }
.summary-list dd.is-empty { color: #6b675f; font-style: italic; }
.summary-list .plain-list li { margin-bottom: .1rem; }
.booking-summary .btn { width: 100%; cursor: pointer; font: inherit; font-weight: 600; text-align: center; }
.booking-summary .btn:disabled { opacity: .6; cursor: wait; }
.summary-note { margin: 1rem 0 0; font-size: .95rem; color: #5d5951; }

.booking-success { margin-top: 2rem; padding: 2rem; background: var(--white); border: 2px solid var(--felt); border-radius: var(--radius); max-width: 640px; }
.booking-success:focus { outline: none; }
.booking-success h2 { color: var(--felt); }
.booking-success .btn { cursor: pointer; font: inherit; font-weight: 600; }

@media (max-width: 800px) {
  .booking-grid { grid-template-columns: 1fr; gap: 2rem; }
  .booking-summary { position: static; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .field-row .field:first-child:nth-last-child(3) { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .field-row, .field-row--2 { grid-template-columns: 1fr; }
}
