/* ==========================================================================
   Cukriukė — main stylesheet
   --------------------------------------------------------------------------
   1. Tokens (colours, type, spacing)      6. Assortment (homepage)
   2. Base & typography                   7. Location & contacts
   3. Layout helpers, buttons, media      8. Footer
   4. Header & navigation                 9. Category pages
   5. Hero & about                       10. Motion & responsive
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  /* Paper — the dominant surface */
  --paper: #f3eadd;
  --paper-2: #eadccb;
  --paper-3: #dccab4;

  /* Ink — espresso for type */
  --ink: #2f1d15;
  --ink-2: #5c463a;
  --ink-3: #77604f;

  /* Taupe — taken from the logo */
  --taupe: #937b66;

  /* Accent — dusty brick, used sparingly */
  --brick: #9b5a3d;
  --brick-2: #7e4730;
  --brick-light: #dcae8f;

  /* Contrast — olive / sage */
  --sage: #a0896f;
  --olive: #3b2a1f;

  --line: rgba(47, 29, 21, 0.16);
  --line-light: rgba(243, 234, 221, 0.2);

  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(56px, 7vw, 100px);
  --header-h: 88px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 2. BASE ------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: clamp(16px, 0.95rem + 0.15vw, 17.5px);
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Fine paper grain over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  background-image: var(--grain);
  opacity: 0.08;
  mix-blend-mode: multiply;
}

body.is-locked { overflow: hidden; }

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

a { color: inherit; text-decoration: none; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 380;
  font-variation-settings: "SOFT" 60, "opsz" 144;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

em {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "opsz" 144;
}

h1 em, h2 em, h3 em { color: var(--brick); }

::selection { background: var(--brick); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--brick);
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* 3. LAYOUT, BUTTONS, MEDIA ------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }

[id] { scroll-margin-top: calc(var(--header-h) - 8px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

/* Small numbered label above section titles */
.sec-label {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.sec-label b {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0;
  color: var(--brick);
}

/* Section heading: label + title on the left, short note on the right */
.sec-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px 48px;
  margin-bottom: clamp(28px, 3.5vw, 48px);
}
.sec-head__title {
  font-size: clamp(2.5rem, 5.2vw, 4.6rem);
}
.sec-head__aside {
  margin: 0;
  max-width: 36ch;
  color: var(--ink-2);
}

/* Buttons — square, confident; no pills */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 17px 24px;
  border: 1px solid var(--btn-bg);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 0.8125rem/1 var(--f-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--brick);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.45s var(--ease-out);
}
.btn:hover::before,
.btn:focus-visible::before { transform: scaleY(1); }
.btn:hover,
.btn:focus-visible { border-color: var(--brick); color: var(--paper); }
.btn svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }

.btn--accent { --btn-bg: var(--brick); }
.btn--accent::before { background: var(--ink); }
.btn--accent:hover { border-color: var(--ink); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--ink);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  font-weight: 500;
  transition: color 0.3s, gap 0.3s var(--ease-out);
}
.link-arrow:hover { color: var(--brick); gap: 16px; }
.link-arrow svg { width: 16px; height: 16px; }

/* Media frames. The photo sits on a warm tone that shows while it loads.
   If a photo file is missing, a "Vieta nuotraukai" label appears instead. */
.media {
  position: relative;
  margin: 0;
  aspect-ratio: var(--ratio, 4 / 5);
  overflow: hidden;
  background-color: var(--ph, var(--taupe));
  isolation: isolate;
}
.media img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s var(--ease), transform 1.2s var(--ease-out);
}
.media img.is-loaded { opacity: 1; }

.media__ph {
  position: absolute;
  inset: clamp(10px, 1.4vw, 16px);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(255, 248, 236, 0.32);
  color: rgba(255, 248, 236, 0.9);
  text-align: center;
}
.media__ph svg { width: 26px; height: 26px; opacity: 0.85; }
.media__ph-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
}
.media__ph-subject {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
  line-height: 1.25;
}

/* 4. HEADER & NAVIGATION -------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  background: var(--paper); /* same as the page; lets the logo blend in */
  transition: background-color 0.4s var(--ease), height 0.4s var(--ease), box-shadow 0.4s;
}
:root:has(.site-header.is-scrolled) { --header-h: 68px; }
.site-header.is-scrolled {
  background: var(--paper); /* solid, so the logo blends in cleanly */
  box-shadow: 0 1px 0 var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.brand {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding-block: 8px;
}
/* The logo image has its own cream paper background; "multiply" lets it melt
   into the page colour so no box is visible around the lettering. */
.brand__logo {
  width: auto;
  height: 100%;
  max-height: 70px;
  object-fit: contain;
  /* The scan's cream paper is a touch lighter than the page. Lifting it to
     white (display only, the file is untouched) and multiplying makes the
     paper vanish into the header, leaving just the lettering. */
  filter: brightness(1.09);
  mix-blend-mode: multiply;
  transition: max-height 0.4s var(--ease);
}
.is-scrolled .brand__logo { max-height: 54px; }

/* Text fallback, shown only until the logo file is uploaded */
.brand__fallback {
  display: none;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.85rem;
  font-variation-settings: "SOFT" 100, "opsz" 72;
  letter-spacing: -0.01em;
  color: var(--taupe);
}
.brand.is-fallback .brand__logo { display: none; }
.brand.is-fallback .brand__fallback { display: block; }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 42px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  position: relative;
  display: block;
  padding-block: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: var(--brick);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.site-nav a.is-active { color: var(--brick); }

.nav-toggle {
  display: none;
  position: relative;
  z-index: 70;
  width: 48px;
  height: 48px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 12px;
  width: 24px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease-out), top 0.4s var(--ease-out);
}
.nav-toggle span:nth-child(1) { top: 19px; }
.nav-toggle span:nth-child(2) { top: 28px; width: 16px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 24px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 24px; width: 24px; transform: rotate(-45deg); }

/* Mobile menu (full screen) */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45; /* sits under the header, so the logo and close button stay visible */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  background: var(--paper);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s var(--ease);
}
.mobile-menu ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: m;
}
.mobile-menu li {
  counter-increment: m;
  border-bottom: 1px solid var(--line);
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.6s var(--ease-out), opacity 0.6s var(--ease-out);
}
.mobile-menu.is-open li { transform: none; opacity: 1; }
.mobile-menu.is-open li:nth-child(2) { transition-delay: 0.05s; }
.mobile-menu.is-open li:nth-child(3) { transition-delay: 0.1s; }
.mobile-menu.is-open li:nth-child(4) { transition-delay: 0.15s; }
.mobile-menu.is-open li:nth-child(5) { transition-delay: 0.2s; }
.mobile-menu li a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  font-family: var(--f-display);
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 360;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.mobile-menu li a::before {
  content: "0" counter(m);
  font-family: var(--f-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--brick);
}
.mobile-menu__foot {
  display: grid;
  gap: 4px;
  padding-top: 24px;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.mobile-menu__foot a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* 5. HERO ----------------------------------------------------------------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(12px, 2vw, 28px)) 0 clamp(40px, 5vw, 72px);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  align-items: center;
}
.hero__text {
  grid-column: 1 / 6;
  grid-row: 1;
  position: relative;
  z-index: 3;
}
.hero__title {
  margin-bottom: clamp(20px, 2.4vw, 32px);
  font-size: clamp(3.2rem, 7.4vw, 7.2rem);
  font-weight: 340;
  line-height: 0.92;
  letter-spacing: -0.035em;
}
.hero__title .line { display: block; }
.hero__title .line:nth-child(2) { padding-left: 0.9em; }
.hero__title .line:nth-child(3) { padding-left: 0.35em; }
.hero__lead {
  max-width: 34ch;
  margin-bottom: 30px;
  font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.2rem);
  color: var(--ink-2);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
}

.hero__visual {
  grid-column: 6 / 13;
  grid-row: 1;
  position: relative;
  padding-left: 8%;
}
.media--hero {
  --ratio: 5 / 4;
  width: 100%;
  max-height: min(66vh, 600px);
}
.media--hero-detail {
  --ratio: 1;
  position: absolute;
  left: 0;
  bottom: -6%;
  z-index: 2;
  width: 26%;
  outline: 8px solid var(--paper);
}
.stamp {
  position: absolute;
  top: -5%;
  right: -2%;
  z-index: 4;
  width: clamp(100px, 9.5vw, 132px);
  aspect-ratio: 1;
  color: var(--ink);
}
.stamp__ring {
  width: 100%;
  height: 100%;
  font: 600 13px/1 var(--f-body);
  letter-spacing: 0.2em;
  fill: currentColor;
}
.stamp__core {
  position: absolute;
  inset: 26%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brick);
  color: var(--paper);
}
.stamp__core svg { width: 46%; height: auto; }
.stamp::before {
  /* paper disc so the ring text stays readable over the photo */
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background: var(--paper);
  z-index: -1;
}

@media (prefers-reduced-motion: no-preference) {
  .stamp__ring { animation: spin 28s linear infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ABOUT -------------------------------------------------------------------- */
.about { background: var(--paper-2); }
.about__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  row-gap: 32px;
  align-items: center;
}
.about__media {
  grid-column: 1 / 7;
  --ratio: 4 / 3;
}
.about__text { grid-column: 8 / 13; }
.about__title {
  margin-bottom: 22px;
  font-size: clamp(2.5rem, 5.2vw, 4.6rem);
}
.about__lead {
  margin-bottom: 18px;
  font-family: var(--f-display);
  font-size: clamp(1.3rem, 1rem + 0.9vw, 1.8rem);
  font-weight: 350;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-variation-settings: "SOFT" 80, "opsz" 72;
}
.about__body { color: var(--ink-2); max-width: 46ch; }
.about__values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin: 24px 0 0;
  padding: 18px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.15rem;
}
.about__values li + li::before {
  content: "·";
  margin: 0 14px;
  color: var(--sage);
  font-style: normal;
}

/* 6. ASSORTMENT (homepage) ------------------------------------------------- */
.assortment {
  background: var(--olive);
  color: var(--paper);
}
.assortment .sec-label { color: rgba(243, 234, 221, 0.55); }
.assortment .sec-label b { color: var(--brick-light); }
.assortment .sec-head__aside { color: rgba(243, 234, 221, 0.72); }

/* Mosaic: one tall tile + four smaller ones */
.cats {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  grid-template-rows: repeat(2, clamp(230px, 22vw, 300px));
  gap: clamp(10px, 1.2vw, 16px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.cats > li { display: flex; min-height: 0; }
.cats > li:first-child { grid-row: 1 / 3; }

.cat {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  color: var(--paper);
}
.cat .media {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
}
.cat .media::after {
  /* legibility scrim behind the caption */
  content: "";
  position: absolute;
  inset: 40% 0 0;
  z-index: 3;
  background: linear-gradient(to top, rgba(26, 17, 12, 0.82), rgba(26, 17, 12, 0));
  transition: opacity 0.5s var(--ease);
}
.cat__body {
  position: absolute;
  inset: auto 0 0;
  z-index: 4;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  column-gap: 14px;
  padding: clamp(16px, 2vw, 26px);
}
.cat__num {
  grid-row: 1 / 3;
  align-self: start;
  padding-top: 0.5em;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--brick-light);
}
.cat__title {
  font-size: clamp(1.45rem, 1.1rem + 1vw, 2.1rem);
  line-height: 1.05;
}
.cats > li:first-child .cat__title { font-size: clamp(1.9rem, 1.3rem + 1.8vw, 3rem); }
.cat__desc {
  grid-column: 2;
  margin: 6px 0 0;
  max-width: 38ch;
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(243, 234, 221, 0.82);
}
.cat__more {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: end;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(243, 234, 221, 0.5);
  transition: background-color 0.4s var(--ease), border-color 0.4s, color 0.4s;
}
.cat__more svg { width: 18px; height: 18px; transition: transform 0.45s var(--ease-out); }

.cat:hover .media img,
.cat:focus-visible .media img { transform: scale(1.05); }
.cat:hover .cat__more,
.cat:focus-visible .cat__more { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.cat:hover .cat__more svg { transform: translateX(3px); }

/* Category tones (shown while photos load) */
.tone-sweet { --ph: #b46a52; }
.tone-savory { --ph: #b8955f; }
.tone-cake { --ph: #6d4a3a; }
.tone-cookie { --ph: #8f8c69; }
.tone-filled { --ph: #94603f; }

/* 7. LOCATION & CONTACTS --------------------------------------------------- */
.location__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  row-gap: 32px;
  align-items: center;
}
.location__info { grid-column: 1 / 5; }
.location__info .sec-head__title { margin-bottom: 26px; }
.location__address {
  margin: 0 0 28px;
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem);
  font-style: normal;
  font-weight: 360;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.location__address span {
  display: block;
  margin-top: 6px;
  font-family: var(--f-body);
  font-size: 0.9375rem;
  letter-spacing: 0;
  color: var(--ink-2);
}
.location__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.map-frame {
  grid-column: 5 / 13;
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--paper-3);
  border: 1px solid var(--line);
  box-shadow: 18px 18px 0 rgba(150, 125, 100, 0.3);
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: sepia(0.18) saturate(0.85) contrast(0.98);
  transition: filter 0.5s;
}
.map-frame:hover iframe { filter: none; }

.contacts {
  background: var(--paper-2);
}
.contacts__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  row-gap: 40px;
  align-items: end;
}
.contacts__main { grid-column: 1 / 7; }
.contacts__main .sec-head__title { margin-bottom: 26px; }

.contact-list {
  margin: 0;
  border-top: 1px solid var(--ink);
}
.contact-list > div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list dt {
  padding-top: 0.4em;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.contact-list dd {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.35rem);
  font-weight: 370;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.contact-list dd a {
  background: linear-gradient(var(--brick), var(--brick)) 0 100% / 100% 1px no-repeat;
  transition: color 0.3s;
}
.contact-list dd a:hover { color: var(--brick); }
.contact-list .is-pending { color: var(--ink-3); font-style: italic; }

.hours { grid-column: 8 / 13; }
.hours__title {
  margin-bottom: 10px;
  font-size: clamp(1.4rem, 1.15rem + 0.7vw, 1.8rem);
}
.hours table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.hours th,
.hours td {
  padding: 13px 0;
  border-bottom: 1px dashed rgba(47, 29, 21, 0.25);
  font-weight: 400;
  text-align: left;
  vertical-align: baseline;
}
.hours td {
  text-align: right;
  white-space: nowrap;
  font-family: var(--f-display);
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums lining-nums;
}
.hours td.is-closed { font-style: italic; font-size: 1.05rem; color: var(--ink-3); }
.hours tr.is-today th,
.hours tr.is-today td { color: var(--brick); font-weight: 600; }
.hours tr.is-today th::after {
  content: "šiandien";
  margin-left: 10px;
  padding: 1px 7px;
  border: 1px solid currentColor;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  vertical-align: 2px;
}
.hours .is-pending { color: var(--ink-3); font-style: italic; }
.hours__note { margin-top: 10px; font-size: 0.8125rem; color: var(--ink-3); }

/* 8. FOOTER ---------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(243, 234, 221, 0.78);
  font-size: 0.9375rem;
}
.site-footer__top {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  row-gap: 40px;
  padding-block: clamp(48px, 6vw, 80px) clamp(36px, 4vw, 56px);
}
.footer-brand { grid-column: 1 / 5; }
.footer-brand__plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
/* Same logo as the header, without a box: the scan's paper is turned dark and
   blended into the footer, and the lettering is shown in the cream page colour
   (display only, the file is untouched). */
.footer-brand__plate img {
  height: 72px;
  width: auto;
  max-height: none;
  filter: brightness(1.09) invert(1) grayscale(1) sepia(0.35) brightness(1.5);
  mix-blend-mode: screen;
}
.footer-brand__plate .brand__fallback { font-size: 2rem; }
.footer-brand__plate.is-fallback .brand__logo { display: none; }
.footer-brand__plate.is-fallback .brand__fallback { display: block; }
.footer-brand p { max-width: 30ch; }

.footer-col--nav { grid-column: 6 / 8; }
.footer-col--contact { grid-column: 8 / 11; }
.footer-col--social { grid-column: 11 / 13; }
.footer-col h2 {
  margin-bottom: 16px;
  font-family: var(--f-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(243, 234, 221, 0.5);
}
.footer-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.footer-col address { font-style: normal; display: grid; gap: 8px; }
.site-footer a { transition: color 0.3s; }
.site-footer a:hover { color: var(--brick-light); }
.footer-col .is-pending { color: rgba(243, 234, 221, 0.45); font-style: italic; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 20px 28px;
  border-top: 1px solid var(--line-light);
  font-size: 0.8125rem;
  color: rgba(243, 234, 221, 0.5);
}
.to-top { display: inline-flex; align-items: center; gap: 8px; }
.to-top svg { width: 14px; height: 14px; transform: rotate(-90deg); }

/* 9. CATEGORY PAGES -------------------------------------------------------- */
.cat-hero {
  padding-top: calc(var(--header-h) + clamp(20px, 3vw, 40px));
  padding-bottom: clamp(36px, 4.5vw, 64px);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 clamp(24px, 3vw, 40px);
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  color: var(--ink-3);
}
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; opacity: 0.6; }
.breadcrumbs a { color: var(--ink-2); }
.breadcrumbs a:hover { color: var(--brick); }
.breadcrumbs [aria-current] { color: var(--ink); }

.cat-hero__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  row-gap: 32px;
  align-items: center;
}
.cat-hero__text { grid-column: 1 / 7; }
.cat-hero__index {
  display: block;
  margin-bottom: 14px;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--brick);
}
.cat-hero__title {
  margin-bottom: 22px;
  font-size: clamp(2.8rem, 6.4vw, 6rem);
  font-weight: 340;
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.cat-hero__intro {
  max-width: 44ch;
  margin-bottom: 24px;
  font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.15rem);
  color: var(--ink-2);
}
.cat-hero__media { grid-column: 7 / 13; --ratio: 16 / 10; }

/* Category switcher */
.cat-switch {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  background: rgba(243, 234, 221, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-block: 1px solid var(--line);
  transition: top 0.4s var(--ease);
}
.cat-switch ul {
  display: flex;
  gap: clamp(20px, 3vw, 44px);
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-switch ul::-webkit-scrollbar { display: none; }
.cat-switch a {
  position: relative;
  display: block;
  padding: 16px 0;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink-2);
}
.cat-switch a:hover { color: var(--ink); }
.cat-switch a[aria-current="page"] { color: var(--brick); }
.cat-switch a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--brick);
}

/* Product gallery — works for any number of products */
.products { padding-block: clamp(36px, 5vw, 64px) var(--section); }
.products__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: clamp(24px, 3vw, 36px);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.products__head h2 { font-size: clamp(1.5rem, 1.2rem + 0.8vw, 2rem); }
.products__count {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: clamp(32px, 4vw, 48px) clamp(16px, 2vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.product { position: relative; }
.product .media { --ratio: 4 / 5; }
.product:hover .media img { transform: scale(1.04); }
.product__body {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 12px;
  padding-top: 14px;
}
.product__name {
  font-size: clamp(1.2rem, 1.1rem + 0.35vw, 1.45rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.product__index {
  padding-top: 0.35em;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--ink-3);
}
.product__desc {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: var(--ink-2);
}
.product__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 4px 8px;
  background: rgba(243, 234, 221, 0.92);
  color: var(--ink-2);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.products__empty {
  padding: 48px 0;
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--ink-3);
}

/* Next category + back link */
.cat-next { border-top: 1px solid var(--line); }
.cat-next__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 28px;
  padding-block: clamp(40px, 5vw, 72px);
}
.cat-next__link { display: block; }
.cat-next__label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cat-next__title {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  font-weight: 340;
  line-height: 1;
  letter-spacing: -0.03em;
  transition: color 0.3s;
}
.cat-next__title svg { width: 0.6em; height: 0.6em; transition: transform 0.5s var(--ease-out); }
.cat-next__link:hover .cat-next__title { color: var(--brick); }
.cat-next__link:hover svg { transform: translateX(0.15em); }

/* 10. MOTION ---------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}

/* RESPONSIVE ---------------------------------------------------------------- */
@media (max-width: 1100px) {
  .hero__text { grid-column: 1 / 7; }
  .hero__visual { grid-column: 7 / 13; padding-left: 0; }
  .media--hero { --ratio: 1; }
  .media--hero-detail { display: none; }
  .location__info { grid-column: 1 / 6; }
  .map-frame { grid-column: 6 / 13; aspect-ratio: 4 / 3; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col--nav { grid-column: 1 / 5; }
  .footer-col--contact { grid-column: 5 / 9; }
  .footer-col--social { grid-column: 9 / 13; }
}

@media (max-width: 900px) {
  :root { --header-h: 70px; }
  :root:has(.site-header.is-scrolled) { --header-h: 62px; }
  .brand__logo { max-height: 56px; }
  .is-scrolled .brand__logo { max-height: 46px; }
  .site-nav { display: none; }
  .nav-toggle { display: block; }

  .hero__grid { row-gap: 32px; }
  .hero__text { grid-column: 1 / -1; }
  .hero__visual { grid-column: 1 / -1; grid-row: 2; }
  .media--hero { --ratio: 16 / 10; max-height: none; }
  .stamp { top: -36px; right: 4%; width: 100px; }

  .about__media { grid-column: 1 / -1; --ratio: 16 / 9; }
  .about__text { grid-column: 1 / -1; }

  .cats {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    grid-auto-rows: clamp(200px, 38vw, 280px);
  }
  .cats > li:first-child { grid-column: 1 / -1; grid-row: auto; }

  .location__info,
  .map-frame { grid-column: 1 / -1; }
  .map-frame { aspect-ratio: 16 / 10; box-shadow: 10px 10px 0 rgba(150, 125, 100, 0.3); }

  .contacts__main,
  .hours { grid-column: 1 / -1; }

  .cat-hero__text,
  .cat-hero__media { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .hero__title { font-size: clamp(2.9rem, 15vw, 4rem); }
  .hero__title .line:nth-child(2) { padding-left: 0.5em; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: space-between; }
  .media--hero { --ratio: 4 / 3; }
  .stamp { width: 84px; top: -30px; }

  .cats { grid-template-columns: 1fr; grid-auto-rows: 230px; }
  .cats > li:first-child { grid-row: auto; }

  .contact-list > div { grid-template-columns: 1fr; gap: 2px; }
  .contact-list dt { padding-top: 0; }

  .footer-col--nav,
  .footer-col--contact,
  .footer-col--social { grid-column: 1 / -1; }

  .cat-next__inner { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
  .product__desc { font-size: 0.8125rem; }
}

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