/* Zajednički stil za stranice domaćih pčelara (Samobor i okolica).
   Svaka stranica u <body> postavlja svoju paletu preko klase (.t-petranjek, .t-fabek, .t-balic). */

:root {
  --ink: #2a1d0e;
  --ink-soft: #5d4a33;
  --paper: #fbf6ec;
  --paper-2: #f3e9d6;
  --line: #e4d5ba;
  --honey: #e3a21a;
  --honey-deep: #b8740c;
  --accent: #5b6b2e;
  --accent-ink: #fff;
  --radius: 18px;
  --wrap: 1120px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

.t-petranjek { --accent: #5d7a2f; --honey: #e8b02a; --paper: #fcf8ee; --paper-2: #f2ecd6; }
.t-fabek     { --accent: #6b3f1d; --honey: #d98e12; --paper: #fbf5ea; --paper-2: #f1e3cc; }
.t-balic     { --accent: #2f4a33; --honey: #c97a12; --paper: #f8f5ec; --paper-2: #e9e6d4; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--honey-deep); margin-bottom: .9em;
}
section { padding: clamp(64px, 9vw, 112px) 0; }

/* ---------- navigacija ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
.brand svg { width: 34px; height: 34px; flex: none; }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.nav ul a { text-decoration: none; color: var(--ink-soft); }
.nav ul a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav ul { display: none; } }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 0;
  font: 600 1rem var(--sans); text-decoration: none; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -10px var(--accent); }
.btn--honey { background: var(--honey); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--sm { padding: 10px 18px; font-size: .92rem; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 120px); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero__lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; font-size: .92rem; color: var(--ink-soft); }
.hero__meta span::before { content: "⬢"; color: var(--honey); margin-right: 8px; font-size: .8em; }
.hero__art { position: relative; aspect-ratio: 1; }
.comb { position: absolute; inset: 0; pointer-events: none; color: var(--honey); opacity: .14; }
.hero .comb { inset: -10% -20% auto auto; width: 70%; height: 120%; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero__art { max-width: 380px; width: 100%; margin-inline: auto; }
}

/* staklenka (ilustracija kad nema fotografije) */
.jar { width: 100%; height: 100%; }

/* ---------- o nama ---------- */
.about { background: var(--paper-2); }
.about .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about .lead { font-family: var(--serif); font-size: 1.45rem; line-height: 1.4; }
@media (max-width: 860px) { .about .wrap { grid-template-columns: 1fr; } }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 28px; }
.fact { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.fact b { display: block; font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--accent); margin-bottom: 6px; }
.fact span { font-size: .9rem; color: var(--ink-soft); }

/* ---------- vrste meda ---------- */
.products__head { max-width: 40em; margin-bottom: 40px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 24px; overflow: hidden;
}
.card__drop { width: 46px; height: 46px; margin-bottom: 18px; }
.card p { color: var(--ink-soft); margin: 0; font-size: .97rem; }
.card .tag { display: inline-block; margin-top: 14px; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }

/* ---------- fotografije ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  font-size: .82rem; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6);
}
.g-wide { grid-column: span 12; aspect-ratio: 16 / 7; }
.g-half { grid-column: span 6; aspect-ratio: 4 / 5; }
@media (max-width: 640px) { .g-half { grid-column: span 12; aspect-ratio: 4 / 4.5; } .g-wide { aspect-ratio: 16 / 10; } }

/* prazno mjesto za fotografiju — vidljivo samo dok vlasnik ne pošalje svoje */
.slot {
  display: grid; place-items: center; text-align: center; padding: 20px;
  border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, transparent);
  background: repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--honey) 9%, transparent) 14px 28px);
  color: var(--ink-soft); font-size: .9rem;
}
.slot strong { display: block; font-family: var(--serif); font-size: 1.1rem; color: var(--ink); margin-bottom: 4px; }

/* ---------- kupnja ---------- */
.buy { background: var(--accent); color: #fff; position: relative; overflow: hidden; }
.buy .eyebrow { color: var(--honey); }
.buy .comb { color: #fff; opacity: .06; inset: auto -10% -30% auto; width: 60%; height: 140%; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 36px; position: relative; }
.step { border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius); padding: 24px; background: rgba(255,255,255,.04); }
.step h3 { color: #fff; }
.step p { color: rgba(255,255,255,.82); margin: 0; }
.step__n { font-family: var(--serif); font-size: .95rem; color: var(--honey); margin-bottom: 12px; display: block; }

/* ---------- kontakt ---------- */
.contact .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (max-width: 860px) { .contact .wrap { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.contact-list a, .contact-list div {
  display: flex; gap: 14px; align-items: center; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px;
}
.contact-list a:hover { border-color: var(--honey); }
.contact-list svg { width: 22px; height: 22px; flex: none; color: var(--accent); }
.contact-list small { display: block; color: var(--ink-soft); font-size: .8rem; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3.4; background: var(--paper-2); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- podnožje ---------- */
footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: .88rem; color: var(--ink-soft); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ---------- zaštita lozinkom (prijedlog) ---------- */
html.locked body > *:not(.gate) { visibility: hidden; }
.gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--paper); padding: 16px; }
.gate__box { width: min(380px, 100%); text-align: center; display: grid; gap: 12px; justify-items: center; }
.gate__box svg { width: 56px; height: 56px; }
.gate__input { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); font: inherit; background: #fff; }
.gate__err { color: #b3261e; margin: 0; font-size: .9rem; }

/* ---------- fotografija u heroju ---------- */
.hero__photo {
  margin: 0; position: relative; aspect-ratio: 4 / 5; width: 100%; max-width: 440px; justify-self: center;
  border-radius: 28px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(40, 25, 5, .5);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.t-balic .hero__photo { max-width: 380px; }

/* ---------- karta ---------- */
.map--wide { aspect-ratio: 16 / 7; }

/* ---------- plutajući WhatsApp i poziv ---------- */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: grid; gap: 12px; }
.fab__btn {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; box-shadow: 0 10px 24px -8px rgba(0,0,0,.45); transition: transform .15s ease;
}
.fab__btn:hover { transform: scale(1.06); }
.fab__btn svg { width: 28px; height: 28px; }
.fab__wa { background: #25d366; }
.fab__tel { background: var(--accent); }
.fab__tel svg { width: 24px; height: 24px; }

/* ---------- mobitel ---------- */
.contact-list span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 56px 0; }
  .nav .wrap { height: auto; flex-wrap: wrap; padding: 10px 0 0; row-gap: 6px; }
  .brand { font-size: 1.02rem; }
  .brand svg { width: 28px; height: 28px; }
  .nav ul {
    display: flex; order: 3; width: 100%; gap: 20px; overflow-x: auto; white-space: nowrap;
    padding: 6px 0 10px; font-size: .9rem; scrollbar-width: none;
  }
  .nav ul::-webkit-scrollbar { display: none; }
  .hero { padding-top: 36px; }
  h1 { font-size: clamp(2.2rem, 10vw, 2.9rem); }
  .hero__lead { font-size: 1.05rem; }
  .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
  .hero__photo { max-width: none; aspect-ratio: 4 / 3.4; border-radius: 20px; }
  .about .lead { font-size: 1.2rem; }
  .facts { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
  .fact b { font-size: 1.6rem; }
  .map, .map--wide { aspect-ratio: 4 / 3.6; }
  .fab { right: 14px; bottom: 14px; }
  .fab__btn { width: 52px; height: 52px; }
  footer { padding-bottom: 140px; }
}

/* ---------- dodaci za duže tekstove ---------- */
.lead-sm { font-family: var(--serif); font-size: 1.25rem; line-height: 1.4; color: var(--ink); }
.facts--text .fact b { font-size: 1.15rem; line-height: 1.25; }
.card__sub { font-family: var(--serif); font-size: 1.05rem; color: var(--ink) !important; margin-bottom: 10px !important; }
.card p + p { margin-top: 10px; }
.note-row {
  margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px;
  padding: 22px 26px; border-radius: var(--radius); background: var(--paper-2);
}
.note-row p { margin: 0; max-width: 46em; color: var(--ink-soft); }
.buy__lead { max-width: 44em; color: rgba(255,255,255,.85); position: relative; }
.buy__lead strong { color: #fff; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.footer--rich .wrap { align-items: flex-end; }
.footer--rich .wrap > div { display: grid; gap: 4px; }
.footer__brand { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }
.footer__meta { text-align: right; }
@media (max-width: 760px) {
  .footer__meta { text-align: left; }
  .note-row .btn { width: 100%; justify-content: center; }
  .nav .btn--sm { padding: 8px 14px; font-size: .85rem; }
}
footer .wrap { padding-right: 76px; }
@media (max-width: 760px) {
  .nav .btn--sm { display: none; } /* na mobitelu su plutajući gumbi za poziv i WhatsApp */
  footer .wrap { padding-right: 0; }
}
