/* ==========================================================================
   Gránit Klub — shared stylesheet
   Strict, clean, minimal-graphics design. System fonts only (no web-font
   requests) to keep pages fast on every device.
   ========================================================================== */

:root {
  --bg: #f7f5f0;
  --bg-alt: #efeada;
  --panel: #ffffff;
  --ink: #1b1c20;
  --ink-soft: #52545c;
  --ink-faint: #83848c;
  --navy: #14161c;
  --navy-soft: #1f2229;
  --line: #e2ddd0;
  --line-dark: #2b2e37;
  --gold: #a9832f;
  --gold-light: #c9a253;
  --gold-pale: #f1e6cc;
  --white: #ffffff;
  --radius: 2px;
  --shadow: 0 18px 40px -22px rgba(20, 22, 28, 0.35);
  --font-heading: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; margin: 0 0 .6em; color: var(--ink); }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }

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

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.9em;
}

.section {
  padding: 88px 0;
}
.section--tight { padding: 56px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark {
  background: var(--navy);
  color: #e9e7df;
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: #f5f3ea; }
.section--dark p { color: #c7c6bd; }

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
.lede { font-size: 1.1rem; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 14px 30px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: var(--gold);
  color: #1a1608;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: background .18s ease, color .18s ease, transform .18s ease, border-color .18s ease;
}
.btn:hover, .btn:focus-visible { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
}
.btn-outline:hover, .btn-outline:focus-visible { background: rgba(169, 131, 47, 0.1); border-color: var(--gold); color: inherit; }

.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  flex-shrink: 0;
}
.brand img { width: 34px; height: 34px; }
.brand span small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-top: 2px;
}

.main-nav { display: flex; }
.main-nav ul { display: flex; gap: 6px; flex-wrap: wrap; }
.main-nav a {
  display: inline-block;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: var(--radius);
  transition: color .15s ease, background .15s ease;
}
.main-nav a:hover, .main-nav a:focus-visible, .main-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--gold-pale);
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  align-items: center;
  justify-content: center;
}
.nav-toggle-icon { position: relative; display: block; width: 20px; height: 14px; }
.nav-toggle-icon span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease, top .2s ease;
}
.nav-toggle-icon span:nth-child(1) { top: 0; }
.nav-toggle-icon span:nth-child(2) { top: 6px; }
.nav-toggle-icon span:nth-child(3) { top: 12px; }
.nav-open .nav-toggle-icon span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-open .nav-toggle-icon span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-icon span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #f5f3ea;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,16,20,0.72) 0%, rgba(15,16,20,0.82) 55%, rgba(15,16,20,0.94) 100%);
  z-index: 1;
}
.hero picture, .hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 2; padding: 130px 0 100px; }
.hero-inner h1 { color: #f8f6ef; }
.hero-inner p.lede { color: #d9d7cd; max-width: 560px; }
.hero-badges { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  max-width: 640px;
}
.stat-row .num { font-family: var(--font-heading); font-size: 1.9rem; color: var(--gold-light); display: block; }
.stat-row .lbl { font-size: 0.82rem; color: #c7c6bd; letter-spacing: 0.02em; }

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background: var(--navy);
  color: #f0efe6;
  padding: 70px 0 56px;
}
.page-header .eyebrow { color: var(--gold-light); }
.page-header h1 { color: #f8f6ef; }
.breadcrumb { font-size: 0.85rem; color: #a7a59a; margin-bottom: 18px; }
.breadcrumb a { color: #d8d6ca; }
.breadcrumb a:hover { color: var(--gold-light); }

/* ---------- Cards / Grid ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.card h3 { margin-bottom: 0.5em; }
.card .icon-badge { margin-bottom: 18px; }

.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-pale);
  color: var(--gold);
  font-size: 1.2rem;
  font-family: var(--font-heading);
  font-weight: 700;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  cursor: pointer;
  border: 0;
  padding: 0;
  display: block;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(20,22,28,0) 0%, rgba(20,22,28,0.82) 100%);
  color: #f2f0e8;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 11, 14, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox figure { max-width: 900px; width: 100%; margin: 0; }
.lightbox img { width: 100%; border-radius: var(--radius); }
.lightbox figcaption { color: #e6e4da; text-align: center; margin-top: 14px; font-size: 0.95rem; }
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  background: transparent;
  color: #f2f0e8;
  font-size: 1.3rem;
  line-height: 1;
}
.lightbox-close:hover { background: rgba(255,255,255,0.12); }

/* ---------- Accordion ---------- */
.accordion { border-top: 1px solid var(--line); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: 0;
  text-align: left;
  padding: 22px 4px;
  font-family: var(--font-heading);
  font-size: 1.08rem;
  color: var(--ink);
}
.accordion-trigger .plus {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  position: relative;
  transition: transform .25s ease, background .2s ease;
}
.accordion-trigger .plus::before, .accordion-trigger .plus::after {
  content: "";
  position: absolute;
  background: var(--ink);
  top: 50%; left: 50%;
}
.accordion-trigger .plus::before { width: 10px; height: 1.5px; transform: translate(-50%, -50%); }
.accordion-trigger .plus::after { width: 1.5px; height: 10px; transform: translate(-50%, -50%); }
.accordion-item.is-open .accordion-trigger .plus { transform: rotate(135deg); background: var(--gold-pale); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.accordion-panel-inner { padding: 0 4px 24px; color: var(--ink-soft); }
.accordion-panel-inner ul { padding-left: 1.2em; list-style: disc; }
.accordion-panel-inner li { margin-bottom: 0.4em; }

/* ---------- Contact / Info blocks ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.info-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: var(--radius);
}
.info-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.info-card address { font-style: normal; color: var(--ink-soft); }
.info-card a.link { color: var(--gold); font-weight: 600; }
.info-card a.link:hover { text-decoration: underline; }

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.hours-table td:last-child { text-align: right; font-weight: 600; color: var(--ink); }
.hours-table tr:last-child td { border-bottom: 0; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--gold-light);
  outline-offset: 1px;
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.82rem; color: var(--ink-faint); margin-top: 6px; }
.form-success {
  display: none;
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--gold-pale);
  border: 1px solid var(--gold-light);
  border-radius: var(--radius);
  color: #4a3a10;
  font-size: 0.92rem;
}
.form-success.is-visible { display: block; }

/* ---------- Job listings ---------- */
.job-item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; }
.job-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 26px;
  background: none;
  border: 0;
  text-align: left;
}
.job-trigger h3 { margin: 0 0 6px; font-size: 1.1rem; }
.job-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 0.8rem; color: var(--ink-faint); }
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--ink-soft);
}
.job-panel-inner { padding: 0 26px 26px; color: var(--ink-soft); }
.job-panel-inner ul { list-style: disc; padding-left: 1.2em; margin-bottom: 1em; }
.job-panel-inner li { margin-bottom: 0.35em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c7c6bd; padding: 64px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { width: 30px; height: 30px; }
.footer-brand span { font-family: var(--font-heading); color: #f2f0e8; font-size: 1.1rem; }
.footer-col h4 { color: #f2f0e8; font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #c7c6bd; font-size: 0.92rem; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.82rem;
  color: #8f8e85;
}
.footer-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--gold-light); }
.age-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* ---------- Age gate ---------- */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 11, 14, 0.97);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.age-gate.is-visible { display: flex; }
.age-gate-box {
  max-width: 460px;
  width: 100%;
  background: var(--navy-soft);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 44px 36px;
  text-align: center;
  color: #eceae0;
}
.age-gate-box .age-pill { width: 64px; height: 64px; font-size: 1.6rem; margin: 0 auto 20px; }
.age-gate-box h2 { color: #f5f3ea; font-size: 1.5rem; }
.age-gate-box p { color: #b9b8ad; font-size: 0.95rem; }
.age-gate-actions { display: flex; gap: 12px; margin-top: 26px; }
.age-gate-actions .btn { flex: 1; }
.age-gate-fine { margin-top: 20px; font-size: 0.76rem; color: #837f6f; }

/* ---------- Cookie bar ---------- */
.cookie-bar {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1500;
  max-width: 780px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: none;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-bar.is-visible { display: flex; }
.cookie-bar p { margin: 0; font-size: 0.88rem; color: var(--ink-soft); flex: 1 1 320px; }
.cookie-bar .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--line); border: 0; margin: 48px 0; }
.legal-content h2 { margin-top: 2em; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1.2em; }
.legal-content li { margin-bottom: 0.5em; }
.legal-updated { color: var(--ink-faint); font-size: 0.9rem; margin-bottom: 2.5em; }
.back-to-top { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--gold); font-weight: 600; }
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--gold);
  color: #1a1608;
  padding: 12px 18px;
  z-index: 3000;
  border-radius: var(--radius);
}
.skip-link:focus { left: 16px; top: 16px; }
.center-text { text-align: center; }
.mt-lg { margin-top: 48px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .site-header { overflow: visible; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-top: 1px solid var(--line);
    padding: 20px 24px 28px;
    max-height: calc(100dvh - 68px);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    overflow-y: auto;
    box-shadow: 0 20px 36px -28px rgba(20, 22, 28, 0.45);
  }
  .nav-open .main-nav { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { display: block; padding: 14px 12px; font-size: 1.02rem; }
  .nav-toggle { display: inline-flex; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}

@media (max-width: 640px) {
  .site-header .container,
  .hero .container { padding-left: 18px; padding-right: 18px; }
  .section { padding: 60px 0; }
  .section--tight { padding: 40px 0; }
  .hero-inner { padding: 100px 0 70px; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .age-gate-actions { flex-direction: column; }
  .header-actions .btn { display: none; }
  .main-nav { padding: 18px 18px 24px; max-height: calc(100dvh - 64px); }
  .cookie-bar { left: 12px; right: 12px; bottom: 12px; padding: 18px; }
  .stat-row { grid-template-columns: 1fr 1fr 1fr; }
  .stat-row .num { font-size: 1.4rem; }
}
