/* Polonia Gdynia — Brass medal carte (heritage salon)
   Unique vs Lipka (Cormorant/Figtree rail), Horyzonty (Syne/magenta), Czerwony Piec (Rufina/kiln) */
:root {
  --brass: #C4A056;
  --brass-deep: #8A6B2E;
  --brass-soft: #D4BC8A;
  --brass-wash: #F5ECD8;
  --velvet: #5C1F2A;
  --velvet-deep: #3D141C;
  --velvet-soft: #7A3340;
  --linen: #FAF6EF;
  --linen-2: #F0E8DA;
  --ink: #1C1410;
  --muted: #5E5348;
  --line: rgba(196, 160, 86, 0.45);
  --shadow: 0 18px 50px rgba(28, 20, 16, 0.14);
  --radius: 2px;
  --font-display: "Bodoni Moda", "Times New Roman", Georgia, serif;
  --font-body: "Albert Sans", system-ui, sans-serif;
  --max: 1120px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 28px);
}

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

/* Linen grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--velvet); text-underline-offset: 3px; }
a:hover { color: var(--brass-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px;
  background: var(--velvet); color: #fff; padding: 0.75rem 1rem; z-index: 10000;
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

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

.eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brass-deep);
}

h1, h2, .display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.12;
  color: var(--ink);
}

/* —— Year ribbon —— */
.year-ribbon {
  background: var(--velvet-deep);
  color: var(--brass-soft);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.55rem 1rem;
  font-weight: 500;
}
.year-ribbon strong { color: var(--brass); font-weight: 600; }

/* —— Nav: floating brass underline drawer —— */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 239, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 32px rgba(28, 20, 16, 0.06);
}

.nav {
  width: min(100% - 1.5rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}
.logo img {
  width: 44px; height: 44px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--brass), 0 0 0 4px var(--linen);
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.logo-text em {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-top: 0.15rem;
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: var(--linen);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px;
  background: var(--velvet); transition: transform .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-menu {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 0.15rem 1.35rem;
}
.nav-menu a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 0.35rem 0;
}
.nav-menu a:not(.btn)::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav-menu a:not(.btn):hover::after,
.nav-menu a:not(.btn)[aria-current="page"]::after { transform: scaleX(1); }

.lang-switch {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.82rem; font-weight: 600;
}
.lang-switch a { text-decoration: none; color: var(--muted); }
.lang-switch a[aria-current="page"] { color: var(--velvet); }
.lang-sep { opacity: 0.4; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn-primary {
  background: var(--velvet);
  color: #fff;
  box-shadow: 0 8px 24px rgba(92, 31, 42, 0.28);
}
.btn-primary:hover {
  background: var(--velvet-deep);
  color: #fff;
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--brass);
}
.btn-ghost:hover {
  background: var(--brass-wash);
  color: var(--ink);
}
.btn-nav {
  background: var(--brass);
  color: var(--ink);
  padding: 0.5rem 1.1rem;
  min-height: 40px;
  font-size: 0.85rem;
}
.btn-nav:hover { background: var(--brass-deep); color: #fff; }
.btn-block { width: 100%; }
.btn-light {
  background: var(--brass);
  color: var(--ink);
}
.btn-light:hover { background: var(--brass-soft); color: var(--ink); }

/* —— Hero: split salon —— */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: min(88vh, 820px);
  background: var(--linen);
}
.hero-media {
  position: relative;
  overflow: hidden;
  min-height: 420px;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
  transform: scale(1.08);
  animation: kenBurns 22s ease-in-out infinite alternate;
}
@keyframes kenBurns {
  from { transform: scale(1.08) translate(0, 0); }
  to { transform: scale(1.16) translate(-2%, -1%); }
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 55%, var(--linen) 100%);
  pointer-events: none;
}
.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3.5rem);
  position: relative;
}
.medal {
  width: 88px; height: 88px;
  border-radius: 50%;
  margin-bottom: 1.25rem;
  box-shadow:
    0 0 0 3px var(--brass),
    0 0 0 7px var(--linen),
    0 0 0 8px var(--brass-soft),
    var(--shadow);
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-style: italic;
  margin: 0 0 0.75rem;
  color: var(--velvet-deep);
}
.hero-lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 34rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.25rem; }
.hero-meta {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass-deep);
  font-weight: 600;
}

/* —— Timeline heritage —— */
.timeline {
  background: var(--velvet);
  color: var(--linen);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.timeline-item {
  border-left: 2px solid var(--brass);
  padding-left: 1.15rem;
}
.timeline-item .year {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--brass);
  margin: 0 0 0.35rem;
  font-style: italic;
}
.timeline-item p { margin: 0; color: rgba(250, 246, 239, 0.88); font-size: 0.98rem; }
.timeline-item h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
  color: #fff;
  font-weight: 600;
}

/* —— Sections —— */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-head { max-width: 38rem; margin-bottom: 2.5rem; }
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  margin: 0 0 0.75rem;
  font-style: italic;
}
.section-lead { margin: 0; color: var(--muted); }

/* —— Formal carte menu —— */
.carte { background: var(--linen-2); }
.carte-list { display: flex; flex-direction: column; gap: 1.35rem; }
.carte-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem 1.15rem;
  background: var(--linen);
  border: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(28, 20, 16, 0.04);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s;
}
.carte-row:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(92, 31, 42, 0.12), 0 0 0 1px var(--brass);
  border-color: var(--brass);
}
.carte-photo {
  width: 140px; height: 105px;
  overflow: hidden;
  /* Oval / napkin-fold clip — not kiln circle */
  clip-path: ellipse(48% 46% at 50% 50%);
  background: var(--brass-wash);
}
.carte-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform .45s var(--ease);
}
.carte-row:hover .carte-photo img { transform: scale(1.08); }
.carte-copy h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
  font-weight: 600;
}
.carte-copy p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.carte-price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--velvet);
  white-space: nowrap;
  text-align: right;
  min-width: 5.5rem;
  border-bottom: 1.5px solid var(--brass);
  padding-bottom: 0.15rem;
}
.menu-note {
  margin: 2rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Text-only carte items (soups etc.) */
.carte-text {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 0.95rem 0;
  border-bottom: 1px dashed var(--line);
}
.carte-text:first-of-type { border-top: 1px dashed var(--line); }
.carte-text h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.25rem;
}
.carte-text p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.carte-subhead {
  margin: 2.75rem 0 1.25rem;
}
.carte-subhead h2 {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-style: italic;
  margin: 0;
}

/* —— Velvet oferta —— */
.oferta { background: var(--velvet-deep); color: var(--linen); }
.oferta .eyebrow { color: var(--brass-soft); }
.oferta .section-head h2 { color: #fff; }
.oferta .section-lead { color: rgba(250, 246, 239, 0.8); }
.oferta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.oferta-card {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  background: var(--velvet);
  border: 1px solid rgba(196, 160, 86, 0.35);
}
.oferta-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
  opacity: 0.55;
  transition: transform .5s var(--ease), opacity .3s;
}
.oferta-card:hover img { transform: scale(1.06); opacity: 0.7; }
.oferta-body {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
  background: linear-gradient(transparent 20%, rgba(61, 20, 28, 0.92));
}
.oferta-body h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 0 0 0.4rem;
  color: var(--brass);
  font-style: italic;
}
.oferta-body p { margin: 0; color: rgba(250, 246, 239, 0.9); font-size: 0.95rem; }

/* —— Klimat mosaic —— */
.klimat-mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  min-height: 480px;
}
.klimat-tile {
  position: relative;
  overflow: hidden;
  background: var(--linen-2);
}
.klimat-tile:first-child { grid-row: 1 / -1; }
.klimat-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  min-height: 200px;
  transition: transform .5s var(--ease);
}
.klimat-tile:hover img { transform: scale(1.05); }
.klimat-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem 1.15rem;
  background: linear-gradient(transparent, rgba(28, 20, 16, 0.75));
  color: #fff;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
}

/* —— Visit / hours —— */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.salon-card {
  background: var(--linen);
  border: 1px solid var(--line);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  position: relative;
}
.salon-card::before {
  content: "";
  position: absolute;
  top: 0; left: 1.75rem; right: 1.75rem;
  height: 3px;
  background: linear-gradient(90deg, var(--brass), var(--velvet), var(--brass));
}
.salon-card h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-style: italic;
  margin: 0 0 1.25rem;
}
.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}
.hours-table th, .hours-table td {
  text-align: left;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.hours-table th { font-weight: 600; color: var(--ink); }
.hours-table td {
  text-align: right;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--velvet);
  font-size: 1.1rem;
}
.hours-note { margin: 0; color: var(--muted); font-size: 0.92rem; }
.map-address {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}
.map-frame {
  border: 1px solid var(--line);
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: var(--linen-2);
}
.map-frame iframe {
  width: 100%; height: 100%; border: 0;
}
.map-link {
  display: inline-block;
  margin-top: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--brass);
}

/* —— Contact —— */
.contact { background: var(--linen-2); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.contact-grid h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-style: italic;
  margin: 0 0 0.85rem;
}
.contact-list {
  list-style: none; margin: 1.5rem 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.85rem;
}
.contact-list li {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.5rem;
  align-items: baseline;
}
.contact-list strong {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-deep);
}
.order-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }

.reserve-form {
  background: var(--linen);
  border: 1px solid var(--line);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  position: relative;
}
.reserve-form::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--brass);
  pointer-events: none;
  opacity: 0.55;
}
.form-row { margin-bottom: 1rem; position: relative; z-index: 1; }
.form-row label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--muted);
}
.form-row input, .form-row textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  color: var(--ink);
  border-radius: var(--radius);
}
.form-row textarea { min-height: 96px; resize: vertical; }
.form-hint, .form-status {
  position: relative; z-index: 1;
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.form-status { color: var(--velvet); font-weight: 600; }
.reserve-form .btn { position: relative; z-index: 1; }

/* —— Footer —— */
.site-footer {
  background: var(--velvet-deep);
  color: rgba(250, 246, 239, 0.85);
  padding: 2.25rem 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: center;
}
.footer-brand-row {
  display: flex; align-items: center; gap: 0.9rem;
}
.footer-brand-row img {
  width: 48px; height: 48px; border-radius: 50%;
  box-shadow: 0 0 0 2px var(--brass);
}
.footer-brand {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
  font-style: italic;
}
.site-footer p { margin: 0; font-size: 0.92rem; }
.site-footer a { color: var(--brass-soft); text-decoration: none; }
.site-footer a:hover { color: var(--brass); }
.site-footer .lang-switch a { color: rgba(250, 246, 239, 0.7); }
.site-footer .lang-switch a[aria-current="page"] { color: var(--brass); }

/* —— Scroll reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* —— Mobile —— */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-media { min-height: 52vw; max-height: 420px; }
  .hero-media::after {
    background: linear-gradient(180deg, transparent 40%, var(--linen) 100%);
  }
  .timeline-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .oferta-grid { grid-template-columns: 1fr; }
  .klimat-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: 0;
  }
  .klimat-tile:first-child { grid-row: auto; }
  .klimat-tile img { aspect-ratio: 4 / 3; min-height: 0; }
  .visit-grid, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(250, 246, 239, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.25rem 1.25rem;
    gap: 0;
    box-shadow: 0 16px 40px rgba(28, 20, 16, 0.1);
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu li { border-bottom: 1px solid var(--line); }
  .nav-menu a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.65rem 0;
  }
  .nav-menu a:not(.btn)::after { display: none; }
  .nav-menu .btn-nav { margin-top: 0.5rem; justify-content: center; width: 100%; }
  .nav-menu .lang-switch { border-bottom: 0; padding: 0.5rem 0; }

  .carte-row {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 0.85rem;
  }
  .carte-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    clip-path: none;
    border-radius: 2px;
  }
  .carte-photo img { aspect-ratio: 4 / 3; }
  .carte-price {
    text-align: left;
    justify-self: start;
    min-width: 0;
  }
  .carte-text { grid-template-columns: 1fr; gap: 0.35rem; }
  .carte-text .carte-price { border-bottom: 0; color: var(--velvet); }
  .contact-list li { grid-template-columns: 1fr; gap: 0.15rem; }
  .medal { width: 72px; height: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img { animation: none; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .carte-row, .oferta-card img, .klimat-tile img, .carte-photo img { transition: none; }
}
