/* =========================================================
   MOTAJIČKI MEDENKO — stilovi
   Paleta: lješnik / čokolada / med-zlatna / krem
   ========================================================= */

:root {
  --brown:        #6B4226;   /* lješnik / čokolada */
  --brown-dark:   #3E2616;   /* tamna espresso */
  --brown-soft:   #7C5230;
  --gold:         #C8862B;   /* med-zlatna */
  --gold-light:   #E0A653;
  --cream:        #FBF5EA;   /* krem pozadina */
  --cream-2:      #F4E9D6;
  --green:        #6E7A4E;   /* list / priroda */
  --ink:          #2C1D12;   /* tekst */
  --muted:        #7A6A58;
  --white:        #ffffff;

  --radius:       18px;
  --radius-lg:    28px;
  --shadow:       0 18px 40px -18px rgba(62, 38, 22, .35);
  --shadow-soft:  0 10px 30px -16px rgba(62, 38, 22, .28);

  --display: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  --sans:  "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --container: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

h1, h2, h3 { font-family: var(--display); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; }

.container {
  width: min(var(--container), 92%);
  margin-inline: auto;
}

/* ---------- Tipografski helperi ---------- */
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: .9rem;
}
.eyebrow--light { color: var(--gold-light); }

.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section--cream { background: var(--cream-2); }
.section--dark { background: var(--brown-dark); color: var(--cream); }

.section__head { max-width: 640px; margin: 0 auto clamp(2.2rem, 5vw, 3.5rem); text-align: center; }
.section__title { font-size: clamp(1.9rem, 4.5vw, 3rem); color: inherit; }
.section--dark .section__title { color: var(--cream); }
.section__sub { color: var(--muted); margin-top: 1rem; font-size: 1.05rem; }
.section__sub--light { color: #d8c7ad; }

/* ---------- Dugmad ---------- */
.btn {
  --pad: .85rem 1.6rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: var(--pad);
  border: none; cursor: pointer;
  font-family: var(--sans); font-weight: 600; font-size: .98rem;
  border-radius: 999px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--brown); color: var(--cream); box-shadow: var(--shadow-soft); }
.btn--primary:hover { background: var(--gold); color: var(--brown-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--brown); border: 1.5px solid rgba(107,66,38,.35); }
.btn--ghost:hover { background: var(--brown); color: var(--cream); transform: translateY(-2px); }
.btn--ghost-light { color: #fff; border-color: rgba(255,255,255,.65); }
.btn--ghost-light:hover { background: #fff; color: var(--brown-dark); border-color: #fff; }
.btn--small { --pad: .55rem 1.05rem; font-size: .9rem; }
.btn--block { width: 100%; }

/* ---------- Navigacija ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 245, 234, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(107,66,38,.10);
  transition: box-shadow .3s ease, background .3s ease;
}
.nav.is-scrolled { box-shadow: 0 8px 24px -16px rgba(62,38,22,.4); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: flex; align-items: center; gap: .65rem; }
.brand__logo { height: 54px; width: auto; display: block; }
.brand__mark { display: grid; place-items: center; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--display); font-weight: 700; font-size: 1.18rem; letter-spacing: -.02em; color: var(--brown-dark); }
.brand__tag { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }

.nav__links { display: flex; align-items: center; gap: 1.7rem; }
.nav__links a { font-weight: 500; font-size: .98rem; color: var(--brown-dark); position: relative; }
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--gold); transition: width .25s ease;
}
.nav__links a:not(.btn):hover::after { width: 100%; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 26px; height: 2.5px; background: var(--brown-dark); border-radius: 2px; transition: .3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero / video baner ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: clamp(540px, 88vh, 840px);
  display: flex; align-items: center;
  padding: clamp(5rem, 12vh, 8rem) 0 clamp(3.5rem, 9vh, 6rem);
  overflow: hidden; color: #fff;
  background: var(--brown-dark);
}
.hero__video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  background: var(--brown-dark);
}
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(40,24,12,.55) 0%, rgba(40,24,12,.30) 42%, rgba(40,24,12,.82) 100%),
    radial-gradient(circle at 82% 18%, rgba(200,134,43,.28), transparent 55%);
}
.hero__content { max-width: 720px; }

.hero__title { font-size: clamp(2.6rem, 7vw, 4.8rem); color: #fff; font-weight: 800; letter-spacing: -.035em; text-shadow: 0 4px 26px rgba(0,0,0,.5); }
.hero__title em { font-style: italic; font-weight: 700; color: var(--gold-light); }
.hero__lead { margin: 1.4rem 0 2rem; font-size: 1.15rem; color: rgba(255,255,255,.92); max-width: 34em; text-shadow: 0 2px 14px rgba(0,0,0,.45); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero__badges { display: flex; flex-wrap: wrap; gap: 1.8rem; margin-top: 2.6rem; }
.hero__badges li { font-size: .92rem; color: rgba(255,255,255,.85); }
.hero__badges strong { display: block; font-family: var(--display); font-size: 1.6rem; color: #fff; }

/* ---------- Image placeholderi ---------- */
[data-img] { position: relative; }
.img-note {
  font-size: .78rem; letter-spacing: .04em; padding: .5rem .85rem;
  background: rgba(255,255,255,.14); border: 1px dashed rgba(255,255,255,.4);
  border-radius: 8px; max-width: 80%;
}

/* ---------- Marquee traka ---------- */
.marquee { background: var(--brown); color: var(--cream); overflow: hidden; padding: .9rem 0; }
.marquee__track { display: inline-flex; gap: 2rem; white-space: nowrap; animation: scroll 22s linear infinite; }
.marquee__track span { font-family: var(--display); font-style: italic; font-size: 1.1rem; color: var(--cream-2); }
.marquee__track span:nth-child(even) { color: var(--gold-light); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Proizvodi ---------- */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.product {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-soft); display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
  border: 1px solid rgba(107,66,38,.06);
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product__media {
  aspect-ratio: 4 / 5; overflow: hidden; background: #f3f1ee; position: relative;
}
.product__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.product:hover .product__media img { transform: scale(1.04); }
.product__badge {
  position: absolute; top: .7rem; left: .7rem; z-index: 2;
  background: var(--gold); color: var(--brown-dark);
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .25rem .65rem; border-radius: 999px;
  box-shadow: 0 4px 12px -4px rgba(62,38,22,.5);
}
.product__body { padding: 1.2rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.product__body h3 { font-size: 1.2rem; color: var(--brown-dark); }
.product__body p { font-size: .88rem; color: var(--muted); flex: 1; }
.product__foot { display: flex; align-items: center; justify-content: space-between; margin-top: .6rem; gap: .6rem; }
.price { font-family: var(--display); font-weight: 600; color: var(--green); font-size: .98rem; }

.products__note { text-align: center; margin-top: 2rem; font-size: .9rem; color: var(--muted); }
.products__note code { background: var(--cream-2); padding: .1rem .4rem; border-radius: 5px; font-size: .85em; }

/* Prikaži samo prva 4 proizvoda; ostali se otkrivaju dugmetom */
.product--extra { display: none; }
.products.show-all .product--extra { display: block; }
.products__more { text-align: center; margin-top: 2.4rem; }

/* ---------- Poklon / Premium ---------- */
.gift { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.gift__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: #f3f1ee; }
.gift__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.gift__content p { color: var(--muted); margin-bottom: .4rem; }
.gift__content strong { color: var(--brown-dark); }
.gift__content .btn { margin-top: 1.4rem; }

/* ---------- O nama ---------- */
.about { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about__media { position: relative; }
.about__single { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); display: block; }
.about__photo {
  position: absolute; border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; background: #f3f1ee;
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__photo--1 { inset: 0 30% 24% 0; }
.about__photo--2 {
  width: 54%; right: 0; bottom: 0; aspect-ratio: 3/4;
  border: 6px solid var(--cream);
}
.about__content p { margin-bottom: 1rem; color: var(--muted); }
.about__content strong { color: var(--brown-dark); }

.checklist { margin-top: 1.4rem; display: grid; gap: .7rem; }
.checklist li { display: flex; align-items: center; gap: .7rem; font-weight: 500; color: var(--brown-dark); }
.checklist li::before {
  content: "✓"; display: grid; place-items: center; flex: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--gold); color: var(--white); font-size: .85rem; font-weight: 700;
}

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.feature {
  background: var(--white); border-radius: var(--radius); padding: 2rem 1.5rem;
  text-align: center; box-shadow: var(--shadow-soft);
  transition: transform .25s ease; border: 1px solid rgba(107,66,38,.06);
}
.feature:hover { transform: translateY(-5px); }
.feature__icon {
  width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.8rem; background: var(--cream-2);
}
.feature h3 { font-size: 1.15rem; color: var(--brown-dark); margin-bottom: .5rem; }
.feature p { font-size: .92rem; color: var(--muted); }

/* ---------- Galerija ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery__item {
  aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  background: #f3f1ee;
}
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.gallery__item:hover img { transform: scale(1.05); }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__info p { color: var(--muted); margin-bottom: 1.6rem; }
.contact__list { display: grid; gap: 1.1rem; margin-bottom: 1.8rem; }
.contact__list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact__ic {
  flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--cream);
  display: grid; place-items: center; font-size: 1.25rem; box-shadow: var(--shadow-soft);
}
.contact__list strong { color: var(--brown-dark); }
.contact__list a:hover { color: var(--gold); }

.contact__social { display: flex; flex-wrap: wrap; gap: .7rem; }
.social {
  padding: .5rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: .9rem;
  background: var(--brown); color: var(--cream); transition: background .2s, transform .2s;
}
.social:hover { background: var(--gold); color: var(--brown-dark); transform: translateY(-2px); }

.contact__form {
  background: var(--white); padding: clamp(1.5rem, 4vw, 2.4rem); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); display: grid; gap: 1.1rem;
}
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .9rem; color: var(--brown-dark); }
.field input, .field textarea {
  font-family: var(--sans); font-size: 1rem; padding: .8rem 1rem;
  border: 1.5px solid rgba(107,66,38,.18); border-radius: 12px; background: var(--cream);
  color: var(--ink); transition: border .2s, box-shadow .2s; resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(200,134,43,.15);
}
.form__hint { font-size: .9rem; text-align: center; min-height: 1.2em; }
.form__hint.is-ok { color: var(--green); font-weight: 600; }
.form__hint.is-err { color: #b4452f; font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--brown-dark); color: var(--cream-2); padding-top: 0; overflow: hidden; }
/* Lješnik koji je "puko" preko cijele širine footera — mrvice idu od ruba do ruba */
.footer__hero { width: 100%; line-height: 0; }
.footer__logo {
  display: block; width: 100%;
  max-height: 540px; object-fit: cover; object-position: center 42%;
}
/* Na većim ekranima lješnik u footeru manji i centriran (da nije ogroman) */
@media (min-width: 768px) {
  .footer__logo { max-width: 680px; margin-inline: auto; max-height: 380px; }
}
.footer__inner {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 1.3rem; padding-bottom: 2rem; padding-top: 3rem;
}
.footer__tag { color: #e7d8bf; max-width: 42ch; font-size: 1.05rem; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4rem; }
.footer__social { display: flex; flex-direction: column; align-items: center; gap: .8rem; margin-top: .6rem; }
.footer__social-title { color: var(--cream-2); font-weight: 600; font-size: 1rem; }
.footer__social-icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
.footer__soc { display: inline-flex; flex-direction: column; align-items: center; gap: .4rem; color: var(--cream-2); font-size: .85rem; font-weight: 500; }
.footer__soc img { width: 46px; height: 46px; object-fit: contain; transition: transform .2s ease; }
.footer__soc:hover { color: var(--gold-light); }
.footer__soc:hover img { transform: translateY(-3px) scale(1.08); }

/* CTA blok */
.cta { text-align: center; }
.cta .section__title { color: var(--brown-dark); }
.cta__actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-top: 1.6rem; }

/* Poruka na stranici sajmova kad još nema slika */
.fairs-note { text-align: center; color: var(--muted); font-size: 1.02rem; padding: 1.5rem 0; }

/* Aktivna stranica u meniju */
.nav__links a[aria-current="page"] { color: var(--gold); }
.nav__links a[aria-current="page"]:not(.btn)::after { width: 100%; }
.footer__nav a { color: var(--cream-2); font-weight: 500; }
.footer__nav a:hover { color: var(--gold-light); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: center; text-align: center; gap: .6rem 1.5rem;
  padding: 1.6rem 0; font-size: .85rem; color: #b09b80;
}

/* ---------- Reveal animacija ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Stagger teksta u naslovima sekcija — eyebrow → naslov → podnaslov redom */
.section__head.reveal { opacity: 1; transform: none; }
.section__head > * {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.section__head.is-visible > * { opacity: 1; transform: none; }
.section__head.is-visible > *:nth-child(1) { transition-delay: .00s; }
.section__head.is-visible > *:nth-child(2) { transition-delay: .12s; }
.section__head.is-visible > *:nth-child(3) { transition-delay: .24s; }

/* Stagger teksta unutar tekstualnih blokova (o nama, poklon, kontakt) */
.about__content.is-visible > *,
.gift__content.is-visible > *,
.contact__info.is-visible > * { animation: textIn .6s ease both; }
.about__content.is-visible > *:nth-child(1),
.gift__content.is-visible > *:nth-child(1),
.contact__info.is-visible > *:nth-child(1) { animation-delay: .05s; }
.about__content.is-visible > *:nth-child(2),
.gift__content.is-visible > *:nth-child(2),
.contact__info.is-visible > *:nth-child(2) { animation-delay: .17s; }
.about__content.is-visible > *:nth-child(3),
.gift__content.is-visible > *:nth-child(3),
.contact__info.is-visible > *:nth-child(3) { animation-delay: .29s; }
.about__content.is-visible > *:nth-child(4),
.gift__content.is-visible > *:nth-child(4),
.contact__info.is-visible > *:nth-child(4) { animation-delay: .41s; }
.about__content.is-visible > *:nth-child(n+5),
.gift__content.is-visible > *:nth-child(n+5),
.contact__info.is-visible > *:nth-child(n+5) { animation-delay: .53s; }
@keyframes textIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Hero tekst — animacija pri učitavanju stranice */
.hero__title, .hero__lead, .hero__actions, .hero__badges, .hero__media {
  opacity: 0; animation: heroIn .85s cubic-bezier(.22,.61,.36,1) forwards;
}
.hero__title  { animation-delay: .10s; }
.hero__lead   { animation-delay: .28s; }
.hero__actions{ animation-delay: .46s; }
.hero__badges { animation-delay: .62s; }
.hero__media  { animation-delay: .38s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .products { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 70vh; text-align: center; }
  .hero__content { margin-inline: auto; }
  .hero__actions, .hero__badges { justify-content: center; }
  .about { grid-template-columns: 1fr; }
  .about__media { max-width: 480px; margin-inline: auto; width: 100%; }
  .gift { grid-template-columns: 1fr; }
  .gift__media { max-width: 460px; margin-inline: auto; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav__links {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; gap: 0; padding: 1rem 6%;
    background: var(--cream); border-bottom: 1px solid rgba(107,66,38,.12);
    box-shadow: var(--shadow-soft);
    transform: translateY(-130%); transition: transform .35s ease;
    align-items: stretch;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: .9rem 0; border-bottom: 1px solid rgba(107,66,38,.08); }
  .nav__links a.btn { margin-top: .6rem; }
  .nav__toggle { display: flex; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  body { font-size: 16px; }
  .products { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .product__body { padding: .85rem .85rem 1rem; }
  .product__body h3 { font-size: 1.02rem; }
  .product__body p { font-size: .8rem; }
  .product__foot { flex-direction: column; align-items: stretch; gap: .5rem; }
  .product__foot .btn { width: 100%; }
  .features { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .hero__badges { gap: 1.2rem; }
  .footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto; }
  .reveal, .section__head > *,
  .hero__title, .hero__lead, .hero__actions, .hero__badges, .hero__media {
    opacity: 1 !important; transform: none !important;
  }
}
