/* Stare Miasto Lounge — core styles */
:root {
  --bg: #fafaf8;
  --bg-soft: #f2f0eb;
  --ink: #1a1a1a;
  --ink-muted: #5c5a56;
  --line: #e2dfd8;
  --gold: #9a7b4f;
  --gold-dark: #7a6040;
  --white: #ffffff;
  --shadow: 0 12px 40px rgba(26, 26, 26, 0.08);
  --radius: 2px;
  --max: 1120px;
  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.75rem);
}

h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1rem;
  color: var(--ink-muted);
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}

.logo img,
.logo svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.logo-text span {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  border-radius: var(--radius);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 4px auto;
  background: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.25rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold-dark);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.1rem;
  background: var(--ink);
  color: var(--white) !important;
  text-decoration: none !important;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-cta:hover {
  background: transparent;
  color: var(--ink) !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white) !important;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  background: transparent;
  color: var(--ink) !important;
}

.btn-outline {
  background: transparent;
  color: var(--ink) !important;
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--white) !important;
}

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white) !important;
}

.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--white) !important;
}

.btn-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff !important;
}

.btn-light:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink) !important;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.25) 0%,
    rgba(10, 10, 10, 0.55) 45%,
    rgba(10, 10, 10, 0.82) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 3.5rem;
  max-width: 720px;
  animation: rise 0.9s ease both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 500;
  margin: 0 0 0.85rem;
  color: var(--white);
  letter-spacing: 0.02em;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 38rem;
  font-size: 1.05rem;
}

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

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--bg-soft);
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section-head p {
  margin-bottom: 0;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
  aspect-ratio: 4 / 3;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery figure:hover img {
  transform: scale(1.04);
}

.gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.85rem 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

/* Info / contact grid */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.75rem;
}

.contact-panel h3 {
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.contact-list li {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.contact-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-list strong {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 500;
}

.contact-list a,
.contact-list span {
  color: var(--ink);
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--gold-dark);
}

.address-block + .address-block {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--line);
}

/* Cards avoided — use plain lists / rows */
.link-row {
  display: grid;
  gap: 0.75rem;
}

.link-row a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.link-row a span {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.link-row a:hover {
  color: var(--gold-dark);
}

/* Accordion */
.accordion {
  border-top: 1px solid var(--line);
}

.accordion-item {
  border-bottom: 1px solid var(--line);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
}

.accordion-trigger::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: var(--gold-dark);
  flex-shrink: 0;
}

.accordion-item.is-open .accordion-trigger::after {
  content: "–";
}

.accordion-panel {
  display: none;
  padding: 0 0 1.25rem;
  color: var(--ink-muted);
}

.accordion-item.is-open .accordion-panel {
  display: block;
  animation: fade 0.25s ease;
}

/* Forms */
.form {
  display: grid;
  gap: 1rem;
  max-width: 560px;
}

.form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  background: var(--white);
  font: inherit;
  color: var(--ink);
  border-radius: var(--radius);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.form-note {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.form-success {
  display: none;
  padding: 1rem;
  border: 1px solid var(--gold);
  background: rgba(154, 123, 79, 0.08);
  color: var(--ink);
}

.form-success.is-visible {
  display: block;
}

/* Legal pages */
.page-hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(154, 123, 79, 0.08), transparent 55%),
    var(--bg);
}

.prose {
  max-width: 760px;
  padding: 3rem 0 4.5rem;
}

.prose h2 {
  margin-top: 2.25rem;
}

.prose ul {
  color: var(--ink-muted);
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.site-footer h3 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  margin-right: 0.5rem;
}

/* Overlays */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.overlay.is-open {
  display: flex;
  animation: fade 0.25s ease;
}

.modal {
  width: min(100%, 460px);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  animation: rise 0.35s ease both;
}

.modal h2 {
  font-size: 1.85rem;
}

.modal p {
  margin-bottom: 1.25rem;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-bar {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  width: auto;
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.25rem;
  display: none;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cookie-bar.is-open {
  display: flex;
  animation: rise 0.35s ease both;
}

.cookie-bar p {
  margin: 0;
  flex: 1 1 280px;
  font-size: 0.92rem;
}

body.is-locked {
  overflow: hidden;
}

/* Hours table */
.hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.hours th,
.hours td {
  text-align: left;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
  font-weight: 400;
}

.hours th {
  color: var(--ink);
  width: 45%;
}

/* Vacancy chips as plain text tags — not pills cluster */
.meta-line {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 0.35rem;
}

/* Animations */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 900px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.25rem 1.25rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
  }

  .hero {
    min-height: 78vh;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 1.5rem, var(--max));
  }

  .section {
    padding: 3.25rem 0;
  }

  .modal {
    padding: 1.5rem 1.15rem;
  }

  .btn-group .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
