/* ==========================================================================
   Koblak — main stylesheet
   Mobile-first. Desktop enhancements at 900px / 1200px.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;700&family=Zilla+Slab:wght@400;500;700&family=Lato:wght@400;700&display=swap');

:root {
  /* Colors — sampled directly from the Figma file */
  --color-bg: #ffffff;
  --color-text: #000000;
  --color-cream: #f3ede9;
  --color-gray: #f4f4f4;
  --color-dark: #111111;
  --color-border: #e3ded8;

  /* Fonts — exact families/weights used in the design */
  --font-heading: 'Oswald', sans-serif;      /* headings: Regular 400 + Light 300 */
  --font-body: 'Zilla Slab', serif;          /* body copy + PL selector + link labels */
  --font-nav: 'Lato', sans-serif;            /* hero subhead + footer copyright */

  --container: 1366px;
  --page-w: min(100vw - var(--sbw, 0px), var(--container));

  /* Fluid header height: 66px at mobile up to 90px at 900px+ viewport width,
     scaling continuously instead of jumping at a single breakpoint. */
  --header-h: clamp(66px, 10vw, 90px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  width: var(--page-w);
  margin-inline: auto;
  overflow-x: hidden;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; padding: 0; }
.icon { width: 1em; height: 1em; display: inline-block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3.875rem);
}

/* ---------- Typography — exact Figma type styles ----------
   h2            Oswald Regular 400 · 25px · tracking .5px  · line-height 1.177
   h3 (light)    Oswald Light   300 · 25px · tracking .5px  · line-height 1.19
   body          Zilla Slab Regular · 12px · tracking .24px · line-height 1.19
   link/button   Zilla Slab Bold    · 11px · tracking .22px · uppercase, underline
   Desktop sizes are a proportional scale-up (not present in the source frames,
   which were authored mobile-only) — see README for details.
------------------------------------------------------------------ */
h2, .h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(25px, 4.44vw, 55px);
  letter-spacing: 0.5px;
  line-height: 1.177;
  color: var(--color-text);
  text-transform: uppercase;
}
h3, .h3 {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(25px, 3.56vw, 44px);
  letter-spacing: 0.5px;
  line-height: 1.19;
  color: var(--color-text);
  text-transform: uppercase;
}
.body-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(12px, 1.67vw, 20.7px);
  letter-spacing: 0.24px;
  line-height: 1.19;
  color: var(--color-text);
}
.body-text + .body-text { margin-top: 1em; }
.body-text--bold { font-weight: 700; }

/* DESKI / PRZYPRAWY tile titles use Oswald Regular (not the Light variant) */
.tile__title { font-weight: 400; line-height: 1.177; font-size: clamp(25px, 4.44vw, 55px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(12px, 1.67vw, 20.7px);
  letter-spacing: 0.22px;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--color-text);
}
.text-link .icon { width: 34px; height: 10px; transition: transform .2s ease; flex-shrink: 0; }
.text-link:hover .icon { transform: translateX(4px); }

@media (min-width: 900px) {
  .body-text { letter-spacing: 0.28px; line-height: 1.5; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.9rem 1.9rem;
  border: 1px solid var(--color-dark);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(11px, 1.33vw, 16.5px);
  letter-spacing: 0.22px;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease;
}
.btn:hover { background: var(--color-dark); color: #fff; }
.btn--light { border-color: #fff; color: #fff; }
.btn--light:hover { background: #fff; color: var(--color-dark); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.site-header--transparent {
  position: absolute;
  inset-inline: 0;
  top: 0;
  background: transparent;
  border-bottom: none;
}
.nav-bar {
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.nav-side {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-width: 0;
}
.nav-side--left { justify-content: flex-start; }
.nav-side--right { justify-content: flex-end; gap: 1.75rem; }
.nav-lang-wrap { position: relative; }
.nav-lang {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(15.122px, 1.55vw, 19.2px);
  color: var(--color-text);
}
.nav-lang .icon { width: 10px; height: 10px; transition: transform .2s ease; }
.nav-lang[aria-expanded="true"] .icon { transform: rotate(180deg); }
.site-header--transparent .nav-lang { color: #fff; }
.nav-lang-menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 0;
  display: none;
  flex-direction: column;
  min-width: 68px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  box-shadow: 0 12px 24px rgba(0,0,0,.14);
  overflow: hidden;
  z-index: 150;
}
.nav-lang-menu.is-open { display: flex; }
.nav-lang-menu a {
  padding: 0.6rem 0.9rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(13px, 1.15vw, 14.3px);
  letter-spacing: 0.22px;
  color: var(--color-text);
}
.nav-lang-menu a:hover { background: var(--color-cream); }
.nav-lang-menu a.is-active { text-decoration: underline; text-underline-offset: 3px; }

/* Real exported Figma logo mark (circular badge, self-contained wordmark) —
   it already reads correctly on both white and photo-overlay headers. */
.logo {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(52px, 7vw, 72px);
  height: clamp(52px, 7vw, 72px);
  border-radius: 50%;
  flex-shrink: 0;
}
.logo img {
  width: 100%;
  height: 100%;
  display: block;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}
.nav-toggle .icon { width: 24px; height: 24px; }

/* Desktop nav links (hidden on mobile) */
.nav-links {
  display: none;
}
.nav-links a {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(13px, 1.1vw, 16px);
  letter-spacing: 0.22px;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-links--left, .nav-links--right { gap: 2rem; align-items: center; }
.nav-links--right { gap: 1.75rem; }
.site-header--transparent .nav-toggle,
.site-header--transparent .nav-links a { color: #fff; }

/* Mobile menu drawer */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--color-bg);
  transform: translateX(100%);
  transition: transform .35s ease;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.25rem 2rem;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu__top {
  display: flex;
  justify-content: flex-end;
  height: var(--header-h);
  align-items: center;
}
.mobile-menu__close { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; }
.mobile-menu__close .icon { width: 20px; height: 20px; }
.mobile-menu__links {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.mobile-menu__links a {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 400;
  letter-spacing: 0.02em;
}
.mobile-menu__links a.is-active { text-decoration: underline; text-underline-offset: 4px; }
body.menu-open { overflow: hidden; }

@media (min-width: 900px) {
  :root { --header-h: 88px; }
  .nav-toggle { width: 56px; height: 56px; }
  .nav-toggle .icon { width: 32px; height: 32px; }
  .nav-lang { font-size: clamp(17px, 1.55vw, 19.2px); gap: 0.45rem; }
  .nav-lang .icon { width: 13px; height: 13px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 0;
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  color: #fff;
  background: var(--color-dark);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 100%);
}
.hero__content { padding-block: 2.5rem 3rem; }
.hero__eyebrow {
  font-family: var(--font-nav);
  font-weight: 400;
  font-size: calc(var(--page-w) * 0.0385);
  letter-spacing: 0.327px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.hero__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: calc(var(--page-w) * 0.10);
  white-space: nowrap;
  line-height: 1.177;
  letter-spacing: 0.798px;
}
.hero--page { min-height: 56vh; align-items: center; text-align: left; }
.hero--page .hero__content { padding-block: 6rem 2.5rem; }

@media (min-width: 900px) {
  .hero--page { min-height: 46vh; }
}

/* ---------- Section shells ---------- */
.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section--cream { background: var(--color-cream); }
.section--gray { background: var(--color-gray); }
.section__head { max-width: 640px; margin-bottom: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.section__head + .btn, .section__head + .text-link { margin-top: 0.5rem; }
.hr {
  width: 90px;
  height: 1px;
  background: var(--color-dark);
  border: none;
  margin: 2.5rem 0;
}

/* ---------- About / intro ---------- */
.about-grid {
  display: grid;
  gap: 1rem;
}
.about-grid > .body-text + .body-text { margin-top: 0; }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1fr 1fr; align-items: start; gap: 4rem; }
}

/* ---------- Category tiles (Deski / Przyprawy on home) ---------- */
.tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
.tile { position: relative; display: flex; flex-direction: column; height: 100%; }
.tile__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
}
.tile__media img { width: 100%; height: 100%; object-fit: cover; }
.tile__body { padding-top: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.tile__title { margin-bottom: 0.85rem; }
.tile__body .text-link { margin-top: auto; padding-top: clamp(1.5rem, 3.5vw, 2.5rem); }

.tile--reverse { flex-direction: column-reverse; }
.tile--reverse .tile__body { padding-top: 0; padding-bottom: 1.25rem; }

@media (min-width: 900px) {
  .tiles { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}

/* Two-tile row (deski/przyprawy on home) */
.tiles--pair { grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 900px) {
  .tiles--pair { grid-template-columns: 1fr; gap: 3.5rem; }
}
.tiles--pair .tile { flex-direction: row; align-items: center; gap: 1.25rem; }
.tiles--pair .tile--reverse { flex-direction: row-reverse; }
.tiles--pair { --tile-bleed: calc(clamp(1.25rem, 5vw, 3.875rem) + 1rem); }
.tiles--pair .tile__media {
  flex: 0 0 auto;
  width: calc(var(--tile-bleed) + 56%);
  align-self: center;
  aspect-ratio: 4 / 3;
}
.tiles--pair .tile:not(.tile--reverse) .tile__media {
  margin-left: calc(-1 * var(--tile-bleed));
}
.tiles--pair .tile--reverse .tile__media {
  margin-right: calc(-1 * var(--tile-bleed));
}
.tiles--pair .tile__body { flex: 1; padding-top: 0; }
.tiles--pair .tile--reverse .tile__body { padding-bottom: 0; }
@media (min-width: 600px) {
  .tiles--pair .tile { gap: 2.5rem; }
}

/* ---------- Feature banner (Experience Flavor Bliss) ---------- */
.banner {
  position: relative;
  color: #fff;
  padding-block: 4rem;
  overflow: hidden;
}
.banner__media { position: absolute; inset: 0; z-index: -1; }
.banner__media img { width: 100%; height: 100%; object-fit: cover; }
.banner__media::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.banner__content { max-width: 480px; }
.banner__content .body-text { color: #f1efec; }
.banner__content .btn { margin-top: 1.75rem; }

@media (min-width: 900px) {
  .banner { padding-block: 7rem; }
  .banner__content { margin-left: auto; }
}

/* ---------- Simple product/photo grid (2 col mobile, more on desktop) ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.grid-2 figure { margin: 0; }
.grid-2 img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.grid-2 figcaption {
  margin-top: 0.6rem;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(11px, 1.35vw, 16.7px);
  letter-spacing: 0.22px;
  color: var(--color-text);
  line-height: 1.19;
  text-align: center;
}
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

/* Home "Fotografia kulinarna" — mobile carousel, desktop static grid */
.grid-2--carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.grid-2--carousel::-webkit-scrollbar { display: none; }
.grid-2--carousel figure { flex: 0 0 44%; scroll-snap-align: start; }
@media (min-width: 900px) {
  .grid-2--carousel { gap: 2rem; }
  .grid-2--carousel figure { flex: 0 0 calc((100% - 4rem) / 3); }
}
.carousel-progress {
  width: 120px;
  height: 3px;
  background: var(--color-border);
  border-radius: 2px;
  overflow: hidden;
  margin: 1.5rem auto 0;
}
.carousel-progress__bar { height: 100%; width: 40%; background: var(--color-text); }
@media (min-width: 900px) {
  .carousel-progress { display: none; }
  .carousel-progress--always { display: block; }
}

/* Full-bleed square-photo carousel */
.carousel-square { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; margin: 0; padding: 0; }
.carousel-square::-webkit-scrollbar { display: none; }
.carousel-square figure { flex: 0 0 48%; scroll-snap-align: start; margin: 0; }
.carousel-square img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
@media (min-width: 900px) { .carousel-square figure { flex: 0 0 32%; } }

/* Offset two-photo composition (used on deski/fotografia pages) */
.compose {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: center;
  margin-block: clamp(2.25rem, 6vw, 4.5rem);
  margin-inline: calc(50% - var(--page-w) / 2);
}
.compose img { width: 100%; object-fit: cover; aspect-ratio: 1/1; }
.compose .compose__a, .compose .compose__b { margin: 0; }

/* Three tile grid w/ captions (Deski accessories) */
.trio {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
.trio__item img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.trio__item p {
  margin-top: 0.75rem;
  text-align: center;
  font-family: var(--font-body);
  font-size: clamp(12px, 1.35vw, 16.7px);
  letter-spacing: 0.24px;
  line-height: 1.19;
}
@media (min-width: 700px) {
  .trio { grid-template-columns: repeat(3, 1fr); }
}

/* Wide single image */
.media-wide { aspect-ratio: 1/1; overflow: hidden; }
.media-wide img { width: 100%; height: 100%; object-fit: cover; }

/* Dot-pagination image carousel */
.dot-carousel__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.dot-carousel__track::-webkit-scrollbar { display: none; }
.dot-carousel__track > * { flex: 0 0 100%; scroll-snap-align: start; }
.dot-carousel__track img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dot-carousel__dots { display: flex; justify-content: center; gap: 0.6rem; margin-top: 1rem; }
.dot-carousel__dots button {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1px solid var(--color-text); background: transparent;
  padding: 0; cursor: pointer;
}
.dot-carousel__dots button.is-active { background: var(--color-text); }
.dot-carousel__dots--lines { gap: 0.5rem; }
.dot-carousel__dots--lines button {
  width: 40px; height: 3px; border-radius: 0;
  border: 0; background: rgba(0, 0, 0, 0.18);
}
.dot-carousel__dots--lines button.is-active { background: var(--color-text); }

/* ---------- CTA row (arrow link + heading) ---------- */
.cta-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* ---------- Gallery page ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 1rem;
}
.gallery-grid figure { margin: 0; }
.gallery-grid img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.gallery-grid figcaption {
  margin-top: 0.5rem;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(11px, 1.1vw, 13.6px);
  letter-spacing: 0.22px;
  color: var(--color-text);
  text-align: center;
  line-height: 1.19;
}
.gallery-grid .load-more {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 1rem;
}
@media (min-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

/* ---------- Footer ---------- (white bg / black text — matches design, no dark panel) */
.site-footer {
  background: var(--color-bg);
  color: var(--color-text);
  padding-block: clamp(2.5rem, 6vw, 4.5rem) 1.75rem;
}
.footer-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: center;
  font-family: var(--font-nav);
  font-weight: 400;
  font-size: clamp(12.5px, 1.55vw, 19.2px);
  letter-spacing: 0.25px;
}
.footer-social { display: flex; align-items: center; gap: 1.6rem; }
.footer-social .icon { width: clamp(34px, 3.4vw, 42px); height: clamp(34px, 3.4vw, 42px); }
.footer-title {
  font-size: clamp(1.25rem, 3vw, 2.3rem);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 1.1rem;
}
.footer-contact p { margin: 0 0 0.55rem; }
.footer-contact a { text-decoration: underline; }
.footer-copy { margin: clamp(2rem, 6vw, 3.5rem) 0 0; font-size: clamp(12.5px, 1.55vw, 19.2px); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
@media (min-width: 900px) {
  .footer-row { align-items: center; }
}

/* ---------- Utilities ---------- */
.is-hidden { display: none; }

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

/* Hero carousel dots */
.hero__dots {
  position: absolute;
  left: 0; right: 0; bottom: clamp(1rem, 3vw, 2rem);
  z-index: 2; margin-top: 0;
}
.hero__dots button { border-color: #fff; }
.hero__dots button.is-active { background: #fff; }


/* ===== Lightbox (zoomable carousel photos) ===== */
.zoomable { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  background: rgba(20,18,16,0.55);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; transition: opacity .25s ease;
}
.lightbox.is-open { display: flex; opacity: 1; }
.lightbox__img {
  display: block; object-fit: cover;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.lightbox__frame { position: relative; }
.lightbox__close {
  position: absolute; top: -22px; right: -22px;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.92); color: #1a1a1a;
  font-size: 22px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox__close:hover { background: #fff; }
body.lightbox-open { overflow: hidden; }
