/* ==========================================================================
   Pekarna Kovač — design tokens
   ========================================================================== */
:root {
  --cream:        #F7EEDC;
  --cream-2:      #EFE1C4;
  --paper:        #FBF5E8;
  --crust:        #3F2A1D;
  --crust-2:      #6B4226;
  --crust-3:      #2A1B12;
  --wheat:        #E7A93F;
  --wheat-2:      #C9862A;
  --brick:        #A23E2E;
  --brick-2:      #7E2F22;
  --ink:          #2B2019;
  --ink-soft:     #5B4A3D;
  --line:         rgba(63, 42, 29, 0.16);

  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 10px;
  --shadow-soft: 0 10px 30px -12px rgba(42, 27, 18, 0.35);
}

/* ==========================================================================
   Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); margin: 0 0 .4em; line-height: 1.08; color: var(--crust); }
p { line-height: 1.65; margin: 0 0 1em; }
ul, dl { margin: 0; padding: 0; list-style: none; }

/* subtle paper grain across whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--crust); color: var(--cream); padding: 10px 16px; z-index: 10000;
}
.skip-link:focus { left: 12px; top: 12px; }

.kicker {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--brick);
  margin: 0 0 .6em;
}
.kicker.light { color: var(--wheat); }
h2.light, .light h2 { color: var(--paper); }

.muted-small { font-size: .85rem; color: var(--ink-soft); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: .95rem;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brick); color: var(--paper); box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--brick-2); }
.btn-ghost { border-color: var(--crust); color: var(--crust); }
.btn-ghost:hover { background: var(--crust); color: var(--cream); }
.btn-call { background: var(--wheat); color: var(--crust-3); }
.btn-call:hover { background: var(--wheat-2); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(247, 238, 220, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  padding: 14px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { width: auto; height: 58px; }

.main-nav { display: flex; gap: 26px; margin-left: 12px; flex: 1; }
.main-nav a {
  text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: .95rem;
  position: relative; padding: 4px 0;
}
.main-nav a:hover { color: var(--brick); }

.header-call { white-space: nowrap; padding: 10px 18px; font-size: .88rem; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--crust); border-radius: 2px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: 64px 0 90px;
  background: radial-gradient(circle at 80% 10%, rgba(231,169,63,.25), transparent 55%), var(--cream);
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
}
.eyebrow {
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .8rem;
  color: var(--brick); margin-bottom: .8em;
}
.hero h1 { font-size: clamp(2.3rem, 4.2vw, 3.4rem); }
.hero h1 em { font-style: italic; color: var(--brick); }
.lede { font-size: 1.08rem; color: var(--ink-soft); max-width: 46ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 34px; }

.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--crust); }
.hero-stats span { font-size: .78rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }

.hero-art { position: relative; }
.hero-svg { width: 100%; height: auto; overflow: visible; }
.hero-svg .shadow { fill: rgba(63,42,29,.12); }
.hero-svg .shelf { stroke: var(--crust-2); stroke-width: 3; stroke-linecap: round; }
.hero-svg .wheat-stalk path { fill: none; stroke: var(--wheat-2); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.hero-svg .bowl-body { fill: var(--cream-2); stroke: var(--crust); stroke-width: 2.5; }
.hero-svg .bowl-rim { fill: var(--paper); stroke: var(--crust); stroke-width: 2.5; }
.hero-svg .steam { fill: none; stroke: var(--crust-2); stroke-width: 2; opacity: .55; stroke-linecap: round; }
.hero-svg .loaf-body { fill: var(--wheat); stroke: var(--crust); stroke-width: 2.8; }
.hero-svg .loaf-slash { fill: none; stroke: var(--crust); stroke-width: 2.4; stroke-linecap: round; }
.hero-svg .roll-body { fill: var(--cream-2); stroke: var(--crust); stroke-width: 2.5; }
.hero-svg .roll-slash { fill: none; stroke: var(--crust); stroke-width: 2; stroke-linecap: round; }

/* torn paper divider */
.torn-edge {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 34px;
  background: var(--crust);
  clip-path: polygon(0% 100%,3% 30%,6% 100%,9% 30%,12% 100%,15% 30%,18% 100%,21% 30%,24% 100%,27% 30%,30% 100%,33% 30%,36% 100%,39% 30%,42% 100%,45% 30%,48% 100%,51% 30%,54% 100%,57% 30%,60% 100%,63% 30%,66% 100%,69% 30%,72% 100%,75% 30%,78% 100%,81% 30%,84% 100%,87% 30%,90% 100%,93% 30%,96% 100%,99% 30%,100% 100%,100% 0%,0% 0%);
}
.torn-edge--flip { top: -1px; bottom: auto; transform: scaleY(-1); background: var(--paper); }

/* ==========================================================================
   Sections generic
   ========================================================================== */
.section { padding: 90px 0; position: relative; }
.section h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }

.section-about { background: var(--crust); color: var(--cream); }
.section-about h2 { color: var(--paper); }
.section-about p { color: rgba(247,238,220,.82); }
.about-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 60px; align-items: center; }

.stamp-wrap { display: flex; justify-content: center; }
.stamp { width: 220px; height: 220px; }
.stamp-ring-outer { fill: none; stroke: var(--wheat); stroke-width: 2; }
.stamp-ring-inner { fill: none; stroke: var(--wheat); stroke-width: 1; stroke-dasharray: 2 4; }
.stamp text { fill: var(--wheat); font-family: var(--font-body); font-weight: 700; letter-spacing: .16em; font-size: 10.5px; }
.stamp-year { fill: var(--paper); font-family: var(--font-body); font-size: 13px; letter-spacing: .3em; }
.stamp-year-big { fill: var(--paper); font-family: var(--font-display); font-size: 34px; font-weight: 600; }

/* ==========================================================================
   Products — hanging kraft tags
   ========================================================================== */
.section-products { background: var(--crust-3); color: var(--paper); }
.section-products h2 { text-align: center; margin-bottom: 10px; }
.section-products .kicker { text-align: center; }

.tag-line {
  height: 2px; background: repeating-linear-gradient(90deg, var(--wheat) 0 14px, transparent 14px 22px);
  margin: 50px auto 0; max-width: 900px; opacity: .6;
}

.tag-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 40px 30px; margin: -6px auto 0; max-width: 880px;
}

.tag-card {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border-radius: 4px 4px 14px 14px;
  padding: 0 0 26px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transform: rotate(var(--tilt, -1.2deg));
  transition: transform .2s ease;
}
.tag-card:nth-child(2n) { --tilt: 1.4deg; }
.tag-card:nth-child(3n) { --tilt: -0.6deg; }
.tag-card:hover { transform: rotate(0deg) translateY(-6px); }

.tag-hole {
  position: absolute; top: -32px; left: 50%; transform: translateX(-50%);
  width: 2px; height: 32px; background: var(--wheat);
}
.tag-hole::after {
  content: ""; position: absolute; top: -3px; left: 50%; transform: translateX(-50%);
  width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--crust-2); background: var(--paper);
}

.tag-icon { width: 52px; height: 52px; margin: 0 auto 14px; fill: none; stroke: var(--crust); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tag-icon .dot { fill: var(--brick); stroke: none; }
.tag-icon .leaf { fill: var(--wheat); stroke: var(--crust-2); }
.tag-card h3 { font-size: 1.2rem; margin-bottom: .35em; padding: 0 20px; }
.tag-card p { font-size: .92rem; color: var(--ink-soft); margin: 0; padding: 0 20px; }

.tag-card--feature { background: var(--wheat); }
.tag-card--feature .tag-icon { stroke: var(--crust); }
.tag-card--feature p { color: var(--crust-2); }
.badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--brick); color: var(--paper);
  font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: 4px 9px; border-radius: 999px;
}

/* ==========================================================================
   Quality
   ========================================================================== */
.section-quality { background: var(--cream); }
.section-quality h2 { text-align: center; }
.section-quality .kicker { text-align: center; }
.quality-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 34px; margin-top: 50px;
}
.quality-item { text-align: center; padding: 0 10px; }
.quality-item svg {
  width: 56px; height: 56px; margin: 0 auto 16px;
  fill: none; stroke: var(--brick); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.quality-item h3 { font-size: 1.08rem; }
.quality-item p { font-size: .9rem; color: var(--ink-soft); }

/* ==========================================================================
   Reviews
   ========================================================================== */
.section-reviews { background: var(--crust); }
.reviews-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.rating-badge {
  text-align: center; background: var(--crust-2); border-radius: var(--radius);
  padding: 16px 26px; border: 1px solid rgba(231,169,63,.4);
}
.rating-number { display: block; font-family: var(--font-display); font-size: 2.1rem; color: var(--wheat); }
.stars { color: var(--wheat); letter-spacing: 2px; }
.rating-count { display: block; font-size: .78rem; color: rgba(247,238,220,.7); margin-top: 4px; }

.postcards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px; margin: 56px 0 28px;
}
.postcard {
  background: var(--paper); margin: 0; padding: 26px 24px 20px;
  border-radius: 3px; position: relative; box-shadow: var(--shadow-soft);
  transform: rotate(-1deg);
}
.postcard:nth-child(2) { transform: rotate(1.2deg); }
.postcard:nth-child(3) { transform: rotate(-0.4deg); }
.postcard::before {
  content: ""; position: absolute; top: -10px; left: 26px; width: 46px; height: 20px;
  background: rgba(231,169,63,.55); transform: rotate(-4deg);
}
.postcard p { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--ink); }
.postcard footer { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--ink-soft); }
.postcard cite { font-style: normal; font-weight: 700; }
.stars-sm { color: var(--wheat-2); letter-spacing: 1px; }

.all-reviews-link {
  display: inline-block; color: var(--wheat); font-weight: 700; text-decoration: none;
  border-bottom: 2px solid var(--wheat);
}

/* ==========================================================================
   Location
   ========================================================================== */
.section-location { background: var(--paper); }
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }

.info-list { margin: 26px 0; display: grid; gap: 16px; }
.info-list dt { font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--brick); }
.info-list dd { margin: 2px 0 0; }
.info-list a { text-decoration: underline; text-decoration-color: var(--wheat-2); }

.hours-table { width: 100%; border-collapse: collapse; margin: 8px 0 30px; }
.hours-table th, .hours-table td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours-table th { font-weight: 700; color: var(--crust); }
.hours-table td { text-align: right; }
.hours-table .closed { color: var(--brick); font-weight: 700; }

.map-wrap {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft);
  border: 6px solid var(--paper); outline: 2px solid var(--line);
  aspect-ratio: 4 / 3;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--crust-3); color: rgba(247,238,220,.75); padding: 50px 0 34px; text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer-brand .brand-logo { width: auto; height: 90px; }
.footer-line a { text-decoration: underline; text-decoration-color: var(--wheat-2); }
.back-to-top { margin-top: 14px; font-size: .85rem; color: var(--wheat); text-decoration: none; }

/* ==========================================================================
   Photos (hero, about, product cards)
   ========================================================================== */
.hero-photo {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 16px;
  border: 7px solid var(--paper);
  box-shadow: var(--shadow-soft);
  transform: rotate(-1.4deg);
}

.about-photo-wrap { display: flex; justify-content: center; }
.about-photo {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 16px;
  border: 7px solid var(--paper);
  box-shadow: var(--shadow-soft);
  transform: rotate(1.6deg);
}

.tag-photo {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 4px 4px 0 0;
  margin: 0 0 20px;
  display: block;
  border-bottom: 1px solid var(--line);
}

/* ==========================================================================
   Reveal animation
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .hero-inner, .about-grid, .location-grid { grid-template-columns: 1fr; }
  .tag-grid { grid-template-columns: 1fr; max-width: 420px; }
  .tag-photo { height: 240px; }
  .hero-art { order: -1; max-width: 380px; margin: 0 auto; }
  .main-nav { display: none; }
  .header-call span { display: none; }
  .nav-toggle { display: flex; }

  .site-header.nav-open .main-nav {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--cream); padding: 18px 24px 24px;
    border-bottom: 1px solid var(--line); gap: 16px;
  }
}

@media (max-width: 520px) {
  .brand-logo { height: 50px; }
  .footer-brand .brand-logo { height: 76px; }
  .hero { padding: 44px 0 70px; }
  .section { padding: 64px 0; }
  .hero-stats { gap: 18px 22px; }
  .reviews-head { flex-direction: column; align-items: flex-start; }
}
