/* Kmetija Globočnik
   ------------------------------------------------------------------
   Interaction rule: ONLY links and buttons react to hover.
   Static content blocks never lift, never change shadow, never
   change cursor — so nothing invites a click that does nothing.
   ------------------------------------------------------------------ */

:root {
  --bg: #faf6ef;
  --surface: #fffdf9;
  --text: #2e2a23;
  --muted: #6b6154;
  --line: #e6dccb;
  --rule: #d9cdb8;
  --brand: #4b6b3a;
  --brand-dark: #3a5430;
  --brand-soft: #eef2e7;
  --accent: #e0a32e;
  --accent-soft: #fbf0d8;

  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(46, 42, 35, .05), 0 10px 28px rgba(46, 42, 35, .08);

  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-head: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;

  --wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
.section--tint { background: var(--brand-soft); }
.lead { font-size: 1.13rem; color: var(--muted); max-width: 60ch; }

.eyebrow {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #a8791a;
  margin-bottom: .9rem;
}

/* ---------- links ---------- */

a { color: var(--brand-dark); text-underline-offset: 3px; }
a:hover { color: var(--brand); }

/* text link with a nudging arrow — the arrow marks "this goes somewhere" */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--brand-dark);
}
.link-arrow::after {
  content: "→";
  transition: transform .18s ease;
}
.link-arrow:hover { color: var(--brand); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 70px;
}
/* Logo: outline of Slovenia, taken from the farm's own egg-box artwork */
.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  line-height: 1.1;
}
.brand:hover { color: var(--brand-dark); }
.brand__mark { flex: none; width: 34px; height: auto; display: block; }
.brand__text small {
  display: block;
  font-family: var(--font);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #a8791a;
  margin-top: .1rem;
}

.nav { display: flex; align-items: center; gap: .1rem; }
.nav a {
  position: relative;
  padding: .5rem .8rem;
  font-size: .97rem;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
/* underline grows on hover — reads as a link, not a button */
.nav a::after {
  content: "";
  position: absolute;
  left: .8rem;
  right: .8rem;
  bottom: .25rem;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}
.nav a:hover { color: var(--brand-dark); }
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.nav a[aria-current="page"]::after { transform: scaleX(1); background: var(--accent); }

.nav .nav__cta {
  margin-left: .6rem;
  padding: .55rem 1.15rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
}
.nav .nav__cta::after { display: none; }
.nav .nav__cta:hover { background: var(--brand-dark); color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .45rem .6rem;
  cursor: pointer;
  color: var(--text);
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    inset: 100% 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: .15rem;
    padding: .6rem 1.25rem 1.1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: .7rem .5rem; }
  .nav a::after { left: .5rem; right: .5rem; bottom: .4rem; }
  .nav .nav__cta { margin: .5rem 0 0; text-align: center; }
}

/* ---------- hero (split, not a full-bleed banner) ---------- */

.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 { margin-bottom: .35em; }
.hero__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }

@media (max-width: 820px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__media img { aspect-ratio: 16 / 10; }
}

.page-head { padding: clamp(2.6rem, 6vw, 4rem) 0 0; }

/* ---------- buttons ---------- */

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.7rem; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--accent); color: #3a2c0c; }
.btn--primary:hover { background: #cf920f; color: #3a2c0c; }
.btn--outline { border-color: var(--rule); color: var(--brand-dark); background: transparent; }
.btn--outline:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.btn--light { background: #fff; color: var(--brand-dark); }
.btn--light:hover { background: var(--accent-soft); color: var(--brand-dark); }

/* ---------- product row: what we sell, shown plainly right under the hero ---------- */

.products { display: grid; gap: clamp(1.8rem, 4vw, 2.6rem); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 2.6rem; }
.product { text-align: center; }
.product__img {
  width: 168px;
  height: 168px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.product__img img { width: 100%; height: 100%; object-fit: cover; }
.product h3 { margin-bottom: .3em; }
.product p { color: var(--muted); margin-bottom: 0; font-size: .98rem; max-width: 34ch; margin-inline: auto; }

/* ---------- offer list (editorial rows, deliberately not cards) ---------- */

.offer { border-top: 1px solid var(--rule); margin-top: 2.5rem; }
.offer__item {
  display: grid;
  grid-template-columns: 3.5rem 150px 1fr;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: center;
  padding: clamp(1.8rem, 4vw, 2.6rem) 0;
  border-bottom: 1px solid var(--rule);
}
.offer__num {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--accent);
  line-height: 1;
}
.offer__img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--brand-soft);
}
.offer__img img { width: 100%; height: 100%; object-fit: cover; }
.offer__item h3 { margin-bottom: .35em; }
.offer__item p { color: var(--muted); margin-bottom: 0; max-width: 54ch; }

@media (max-width: 720px) {
  .offer__item { grid-template-columns: 3rem 1fr; gap: 1rem 1.2rem; }
  .offer__img { width: 96px; height: 96px; grid-row: span 1; }
  .offer__item > div:last-child { grid-column: 1 / -1; }
}

/* ---------- generic layout helpers ---------- */

.grid { display: grid; gap: 1.6rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.center .btn-row { justify-content: center; }

/* ---------- split content band ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.8rem, 4vw, 3.4rem);
  align-items: center;
}
.split__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.split--reverse .split__media { order: 2; }
@media (max-width: 700px) { .split--reverse .split__media { order: 0; } }

/* ---------- places (accent-rule list, static content) ---------- */

.places { display: grid; gap: 1.8rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 2.4rem; }
.place { border-left: 3px solid var(--accent); padding: .2rem 0 .2rem 1.2rem; }
.place h3 { font-size: 1.12rem; margin-bottom: .3em; }
.place p { color: var(--muted); margin-bottom: 0; font-size: .98rem; }
.place .place__meta { display: block; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: #a8791a; font-weight: 700; margin-bottom: .3rem; }

/* ---------- embedded maps ---------- */

.maps { display: grid; gap: 1.8rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 1.6rem; }
.map-item { margin: 0; }
.map {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background: var(--brand-soft);
}
.map-item figcaption { margin-top: .9rem; color: var(--muted); font-size: .97rem; }
.map-item figcaption strong { display: block; color: var(--text); font-size: 1.05rem; }

/* ---------- panel: static information container, never interactive ---------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.2rem);
}

.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.info-list li { display: flex; gap: .85rem; align-items: flex-start; }
.info-list .ico {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: #8a6212;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.info-list .label { display: block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.info-list .value { font-weight: 600; font-size: 1.05rem; }
.info-list .value a { text-decoration: none; }
.info-list .value a:hover { text-decoration: underline; }

.note {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.4rem;
  color: #5e4a17;
}
.note p:last-child { margin-bottom: 0; }

/* ---------- closing band ---------- */

.cta-band { background: var(--brand); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .92); max-width: 56ch; }
.cta-band a:not(.btn) { color: #fff; }

/* ---------- footer ---------- */

.site-footer {
  background: #2e2a23;
  color: #d8cfc0;
  padding: 3rem 0 2rem;
  font-size: .95rem;
}
.site-footer a { color: #e9dfd0; }
.site-footer h3 { color: #fff; font-size: .95rem; font-family: var(--font); letter-spacing: .1em; text-transform: uppercase; }
.site-footer__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer__bottom {
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .13);
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.2rem;
  justify-content: space-between;
  color: #a89c8a;
  font-size: .88rem;
}

/* ---------- a11y ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--brand);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: 0 0 10px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; top: 0; color: #fff; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
