/* OPG i Pčelarstvo Nikolić — vosak, tinta, grafit, med. */
:root {
  --cream: #f7f4eb;
  --odsjaj: #fff6e6;
  --ink: #2e2a28;
  --muted: #4a4644;
  --yellow: #d9922e;
  --green: #2e2a28;
  --line: rgba(46, 42, 40, 0.16);
  /* Fallback stacks until the web fonts are switched on (class "wf", set by
     site-cms.js one section at a time so no single relayout is a long task). */
  --serif: Arial, sans-serif;
  --sans: Arial, sans-serif;
}

.wf {
  --serif: "Poppins", Arial, sans-serif;
  --sans: "Poppins", Arial, sans-serif;
  font-family: var(--sans);
}

h1,
h2,
h3,
em {
  font-family: var(--serif);
  font-weight: 500;
}

html[data-page="home"] [data-page="about"],
html[data-page="home"] [data-page="season"] {
  display: none;
}

[hidden] {
  display: none !important;
}

html[data-page="about"] main > section:not([data-page="about"]),
html[data-page="season"] main > section:not([data-page="season"]) {
  display: none;
}

h1,
h2,
h3 {
  letter-spacing: -0.03em;
}

em {
  font-style: italic;
  font-weight: 500;
}

.brand-logo {
  display: block;
  height: 48px;
  width: auto;
}

.footer-wordmark {
  justify-content: center;
  margin: 12px 0 28px;
}

.footer-wordmark img {
  width: min(720px, 100%);
  height: auto;
}

.mobile-menu-top .brand-logo {
  height: 40px;
}

.tiny-dot {
  background: var(--yellow);
}

.hero h1 em {
  color: var(--yellow);
}

.season-section :is(h1, h2) em,
.season-content h3 em {
  color: var(--odsjaj);
}

.offer-card {
  background: var(--yellow);
}

.product-inquire:hover {
  color: #c48424;
}

.social-row > small {
  color: var(--muted);
}

.button-yellow:hover {
  background: #c48424;
  box-shadow: 0 6px 24px rgba(46, 42, 40, 0.12);
}

.button-dark:hover {
  background: #4a4644;
}

.round-seal {
  background: transparent;
  box-shadow: none;
  transform: none;
  overflow: visible;
}

.round-seal svg {
  display: none;
}

.round-seal .seal-mark {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-map {
  margin-top: 28px;
  height: 320px;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #efe8d8;
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
}

.map-placeholder {
  position: relative;
  display: grid;
  height: 100%;
  min-height: 280px;
  place-items: end center;
  padding: 14px 16px 16px;}

.map-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-placeholder-card {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 12px;
  max-width: 28rem;
  margin: 0;  padding: 18px 20px;
  text-align: center;
  background: rgba(247, 244, 235, 0.94);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.map-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.map-open {
  color: inherit;
  font-size: 14px;
  text-underline-offset: 3px;
}

@media (max-width: 600px) {
  .contact-map {
    height: auto;
    min-height: 280px;
  }

  .map-placeholder {
    min-height: 280px;
  }
}

.contact-lines a[data-map-link] {
  width: fit-content;
  border-bottom: 1px solid currentColor;
}

/* Static sibling of the CMS contact intro. Not data-cms-text, so published copy cannot remove the link. */
.contact-copy > p.contact-rijeka {
  margin-top: 12px;
}

@media (max-width: 600px) {
  .brand-logo {
    height: 40px;
  }
}

/* Med u Rijeci + politika privatnosti: subpages built from index.html */
html[data-page="home"] [data-page="rijeka"],
html[data-page="home"] [data-page="privacy"] {
  display: none;
}
html[data-page="rijeka"] main > section:not([data-page="rijeka"]),
html[data-page="privacy"] main > section:not([data-page="privacy"]) {
  display: none;
}
.page-section h1 {
  font-size: clamp(48px, 5vw, 72px);
}
.page-section .page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
}
.page-copy h2,
.legal-page h2 {
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.15;
  margin: 38px 0 14px;
}
.page-copy h2:first-child {
  margin-top: 0;
}
.page-copy p,
.legal-page p,
.page-list {
  font-size: 15px;
  line-height: 1.85;
}
.page-copy p + p,
.legal-page p + p {
  margin-top: 12px;
}
.page-list {
  margin: 0 0 14px;
  padding-left: 20px;
  color: var(--muted);
}
.page-list li + li {
  margin-top: 6px;
}
.page-list strong {
  color: var(--ink);
  font-weight: 600;
}
.page-copy .faq-list {
  margin-top: 26px;
}
.legal-wrap {
  max-width: 760px;
}
.legal-updated {
  font-size: 13px;
  margin-top: 18px;
}
.footer-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 12px;
  line-height: 1.7;
  color: #585c39;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.footer-info address {
  font-style: normal;
}
.footer-info nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-info a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-info a:hover {
  color: #101b12;
}

/* Cookie consent. Classes are prefixed so they do not collide with page buttons. */
.cookie-banner {
  position: fixed;
  z-index: 120;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  pointer-events: none;
}
.cookie-banner[hidden] {
  display: none !important;
}
.cookie-banner-card {
  pointer-events: auto;
  max-width: 720px;
  max-height: calc(100vh - 32px - env(safe-area-inset-bottom));
  overflow: auto;
  margin: 0 auto;
  padding: 22px 22px 18px;
  background: var(--cream, #f7f4eb);
  color: var(--ink, #2e2a28);
  border: 1px solid var(--line, rgba(46, 42, 40, 0.16));
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(46, 42, 40, 0.16);
}
.cookie-banner-kicker {
  margin: 0 0 8px;
  font-family: var(--sans, "Poppins", Arial, sans-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
}
.cookie-banner-title {
  margin: 0 0 10px;
  font-family: var(--serif, "Poppins", Arial, serif);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.cookie-banner-text {
  margin: 0 0 16px;
  font-family: var(--sans, "Poppins", Arial, sans-serif);
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted, #4a4644);
}
.cookie-banner-actions {
  display: flex;
  gap: 12px;
}
.cookie-choice {
  flex: 1 1 0;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-family: var(--sans, "Poppins", Arial, sans-serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}
.cookie-choice-reject {
  background: var(--ink, #2e2a28);
  color: var(--cream, #f7f4eb);
}
.cookie-choice-accept {
  background: var(--yellow, #d9922e);
  color: var(--ink, #2e2a28);
}
.cookie-choice:hover {
  filter: brightness(1.06);
}
.cookie-policy {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--sans, "Poppins", Arial, sans-serif);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-settings-link {
  font: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-settings-link[hidden] {
  display: none !important;
}
.cookie-banner:focus,
.cookie-banner:focus-visible {
  outline: none;
}
.cookie-choice:focus,
.cookie-choice:focus-visible,
.cookie-settings-link:focus,
.cookie-settings-link:focus-visible {
  outline: 2px solid #ae7c1f;
  outline-offset: 3px;
}
@media (max-width: 600px) {
  .cookie-banner {
    max-height: 45vh;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  }
  .cookie-banner-card {
    max-height: 40vh;
    padding: 8px 12px 6px;
    border-radius: 14px;
  }
  .cookie-banner-kicker {
    display: none;
  }
  .cookie-banner-title {
    margin-bottom: 2px;
    font-size: 16px;
    line-height: 1.15;
  }
  .cookie-banner-text {
    margin-bottom: 6px;
    font-size: 12px;
    line-height: 1.3;
  }
  .cookie-banner-actions {
    gap: 8px;
  }
  .cookie-choice {
    min-height: 44px;
    padding: 8px 10px;
    font-size: 14px;
  }
  .cookie-policy {
    margin-top: 6px;
    font-size: 12px;
  }
}
@media print {
  .cookie-banner {
    display: none !important;
  }
}

/* Pravne stranice: podaci o poslovanju, uvjeti kupnje, cjenik */
html[data-page="home"] [data-page="company"],
html[data-page="home"] [data-page="terms"],
html[data-page="home"] [data-page="pricelist"] {
  display: none;
}
html[data-page="company"] main > section:not([data-page="company"]),
html[data-page="terms"] main > section:not([data-page="terms"]),
html[data-page="pricelist"] main > section:not([data-page="pricelist"]) {
  display: none;
}
.legal-wide {
  max-width: 980px;
}
.company-list {
  margin: 0 0 18px;
  border-top: 1px solid var(--line);
}
.company-list > div {
  display: grid;
  grid-template-columns: minmax(130px, 200px) 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.6;
}
.company-list dt {
  color: var(--muted);
}
.company-list dd {
  margin: 0;
}
.table-scroll {
  overflow-x: auto;
  margin: 22px 0;
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.price-table th,
.price-table td {
  text-align: left;
  padding: 11px 12px 11px 0;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.price-table th {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.price-table small {
  color: var(--muted);
}
.file-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  font-size: 13px;
}
.file-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.file-list code {
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.legal-form {
  margin: 26px 0 8px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbf9f2;
}
.legal-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.legal-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 13px;
}
.legal-form input,
.legal-form textarea {
  font: inherit;
  font-size: 16px;
  padding: 10px 12px;
  border: 1px solid #cfd3c0;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.legal-form-note {
  font-size: 12px;
  margin: 4px 0 16px;
}
.legal-form-status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  background: #e8ecde;
  color: #536442;
}
.legal-form-status[data-state="error"] {
  background: #f3e6dc;
  color: #764a35;
}
@media (max-width: 600px) {
  .legal-form {
    padding: 18px;
  }
  .legal-form .form-row,
  .company-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
.anchor-note {
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  margin: 8px 0 0;
}
.anchor-note:empty {
  display: none;
}


.legal-page h1 + p,
.legal-page h1 + .legal-updated {
  margin-top: 22px;
}
.legal-page h1 + h2 {
  margin-top: 30px;
}

/* Visit card: the panorama fits the desktop card; on narrow screens keep the hives in view. */
.visit-background img {
  object-position: 36% 60%;
}

/* Hero: the photo is portrait (about 5:7). On desktop a taller frame and a
   smaller parallax overscan show most of it instead of a wide crop. */
@media (min-width: 1101px) {
  html .hero-visual {
    height: 660px;
  }
  html .hero-photo .photo-layer {
    height: 104%;
    top: -2%;
  }
}
@media (min-width: 1500px) {
  html .hero-visual {
    height: 760px;
  }
}

/* O nama: kroz vrijeme (old hives → jar → today). */
html[data-page="home"] .history-section {
  display: none;
}
.history-section {
  padding-top: 0;
}
.history-heading {
  max-width: 720px;
  margin-bottom: 48px;
}
.history-heading h2 {
  margin-bottom: 22px;
}
.history-heading > p:not(.eyebrow) {
  font-size: 16px;
  line-height: 1.85;
}
.history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.history-item {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.history-photo {
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: #ede5cf;
}
.history-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.history-photo-jar {
  background: radial-gradient(circle at 50% 40%, #fbf1d3, #e9d9ae);
}
.history-photo-jar img {
  object-fit: contain;
  padding: 6% 0;
}
.history-when {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.17em;
  color: #9a7a2c;
  margin-bottom: 8px;
}
.history-copy h3 {
  font-size: clamp(24px, 2.2vw, 30px);
  margin-bottom: 10px;
}
.history-copy p {
  font-size: 15px;
  line-height: 1.8;
}
.history-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 30px;
  margin-top: 52px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.history-cta p {
  font-size: 16px;
  color: var(--ink);
}
@media (max-width: 850px) {
  .history-list {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .history-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
}
