/* =========================================================
   VINARIJA ORLIĆ — dizajn tokeni izvedeni iz loga (orao + tekst)
   Zlatna #FFCF01 / Crna #231F20 / Crvena #EE212E (iz SVG loga)
   ========================================================= */
:root {
  --ink: #201c1b;
  --ink-soft: #2e2825;
  --gold: #ffcf01;
  --gold-deep: #a8790a;
  --wine: #7a1220;
  --wine-bright: #ee212e;
  --cream: #f6f1e6;
  --cream-2: #efe7d6;
  --stone: #c9c2b6;
  --text: #2a2422;
  --text-light: #6e6259;
  --white: #ffffff;

  --font-display: "Cormorant Garamond", "Noto Serif SC", serif;
  --font-body: "Noto Sans", "Noto Sans SC", sans-serif;

  --container-max: 1180px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, .display-font {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }

.text-gold { color: var(--gold-deep); }
.bg-cream { background: var(--cream); }
.bg-ink { background: var(--ink); }

/* ---------- Section eyebrow / "vinogradarska pločica" - signature element ----------
   Inspiriran metalnom pločicom sa reda u vinogradu (PANONIA MMXXVI) sa hero fotografije */
.tag-marker {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.4em 1em;
  border: 1px solid var(--gold);
  border-radius: 3px;
  background: linear-gradient(160deg, rgba(255, 207, 1, 0.14), rgba(255, 207, 1, 0.02));
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-deep);
  margin-bottom: 1.1rem;
}
.tag-marker.on-dark {
  color: var(--gold);
  border-color: rgba(255, 207, 1, 0.6);
  background: linear-gradient(160deg, rgba(255, 207, 1, 0.18), rgba(255, 207, 1, 0.04));
}

.section-title {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  margin-bottom: 1.25rem;
}

.section-pad { padding-block: clamp(4rem, 8vw, 7rem); }

/* ---------- Navigacija ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background-color 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
  background: transparent;
}
.site-nav.scrolled {
  background: rgba(32, 28, 27, 0.94);
  backdrop-filter: blur(6px);
  padding: 0.6rem 0;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}
.site-nav .nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 1.25rem;
}
.brand-mark { display: flex; align-items: center; gap: 0.65rem; }
.brand-mark img.brand-eagle { height: 40px; width: auto; transition: height .35s ease; }
.brand-mark img.brand-text { height: 18px; width: auto; }
.site-nav.scrolled .brand-mark img.brand-eagle { height: 32px; }

.nav-links { display: flex; align-items: center; gap: 1.9rem; }
.nav-links a.nav-link-item {
  color: var(--white);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
  opacity: 0.92;
}
.nav-links a.nav-link-item::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a.nav-link-item:hover::after,
.nav-links a.nav-link-item.active::after { width: 100%; }

.lang-switch .btn {
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
  background: transparent;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.8rem;
}
.lang-switch .btn:hover, .lang-switch .btn:focus { border-color: var(--gold); color: var(--gold); }
.lang-switch .dropdown-menu { min-width: 9.5rem; }
.lang-switch .dropdown-item.active-lang { color: var(--gold-deep); font-weight: 600; }

.navbar-toggler-custom {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 4px;
  color: var(--white);
  padding: 0.35rem 0.6rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  background-image: linear-gradient(180deg, rgba(20,17,16,0.35) 0%, rgba(20,17,16,0.35) 40%, rgba(20,17,16,0.88) 100%), url("../assets/hero.jpg");
  background-size: cover;
  background-position: center 30%;
}
.hero-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  padding: 0 1.25rem clamp(3rem, 8vw, 5.5rem);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  color: var(--white);
  line-height: 1.02;
  margin-bottom: 0.9rem;
}
.hero-subtitle {
  max-width: 42ch;
  font-size: 1.08rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 2rem;
}
.btn-gold {
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.75rem 1.9rem;
  border-radius: 3px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn-gold:hover { background: #ffd93b; color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255,207,1,0.35); }

.btn-outline-wine {
  border: 1px solid var(--wine);
  color: var(--wine);
  background: transparent;
  padding: 0.7rem 1.7rem;
  border-radius: 3px;
  font-weight: 600;
  transition: all .25s ease;
}
.btn-outline-wine:hover { background: var(--wine); color: var(--white); }

.scroll-cue {
  position: absolute;
  bottom: 1.6rem; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.75);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.scroll-cue i { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(6px);} }

/* ---------- O vinariji ---------- */
.about-section { position: relative; background: var(--cream); overflow: hidden; }
.about-watermark {
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  height: 130%;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}
.about-content { position: relative; z-index: 1; }
.about-lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--wine);
  border-left: 3px solid var(--gold);
  padding-left: 1.2rem;
  margin: 2rem 0;
  line-height: 1.5;
}
.about-text p { font-size: 1.03rem; color: var(--text-light); line-height: 1.85; }

/* ---------- Vina ---------- */
.wines-section { background: var(--white); }

.filter-pills { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.75rem; }
.filter-pill {
  border: 1px solid var(--stone);
  background: transparent;
  color: var(--text);
  padding: 0.5rem 1.3rem;
  border-radius: 999px;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  transition: all 0.25s ease;
}
.filter-pill:hover { border-color: var(--gold-deep); }
.filter-pill.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.wine-card {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  background: var(--white);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.wine-card:hover { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(32,28,27,0.12); }

.wine-card-image {
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, var(--cream), var(--cream-2));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.wine-card-image img { max-height: 88%; max-width: 78%; object-fit: contain; }
.wine-card-image .placeholder-icon { font-size: 3.2rem; color: var(--stone); }

.category-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 0.45rem; flex: none; }
.dot-crveno { background: var(--wine-bright); }
.dot-belo { background: #e9d873; border: 1px solid #cbb84e; }
.dot-roze { background: #e79aa0; }
.dot-penusavo { background: #cfd8e0; border: 1px solid #aebac4; }

.wine-card-body { padding: 1.15rem 1.25rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.wine-card-meta { font-size: 0.86rem; color: var(--text-light); margin-bottom: 0.65rem; }
.wine-card-name { font-size: 1.35rem; margin-bottom: 0.2rem; }
.wine-card-price { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--wine); margin-top: auto; padding-top: 0.7rem; }

.badge-limited {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  margin-bottom: 0.5rem;
}

/* Modal detalja vina */
.wine-modal .modal-content { border-radius: 10px; border: none; }
.wine-modal-image { background: linear-gradient(160deg, var(--cream), var(--cream-2)); display: flex; align-items: center; justify-content: center; min-height: 260px; }
.wine-modal-image img { max-height: 320px; max-width: 85%; object-fit: contain; }
.wine-modal-image .placeholder-icon { font-size: 5rem; color: var(--stone); }
.detail-row { display: flex; justify-content: space-between; padding: 0.55rem 0; border-bottom: 1px dashed rgba(0,0,0,0.1); font-size: 0.94rem; }
.detail-row:last-child { border-bottom: none; }
.detail-label { color: var(--text-light); }
.detail-value { font-weight: 600; text-align: right; }
.modal-section-title { font-family: var(--font-display); font-size: 1.05rem; color: var(--wine); margin: 1.1rem 0 0.4rem; }
.place-item { font-size: 0.92rem; padding: 0.4rem 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.place-item:last-child { border-bottom: none; }

/* ---------- Kontakt ---------- */
.contact-section {
  position: relative;
  background-image: linear-gradient(180deg, rgba(20,17,16,0.55), rgba(20,17,16,0.78)), url("../assets/kontakt.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
}
@media (max-width: 991px) {
  .contact-section { background-attachment: scroll; }
}
.contact-card {
  background: rgba(246, 241, 230, 0.96);
  color: var(--text);
  border-radius: 10px;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}
.contact-info-item { display: flex; align-items: flex-start; gap: 0.85rem; margin-bottom: 1.15rem; }
.contact-info-item i { color: var(--wine); font-size: 1.15rem; margin-top: 0.15rem; }
.contact-info-item .label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-light); }
.contact-info-item .value { font-weight: 600; }

.social-icons { display: flex; gap: 0.75rem; margin-top: 1.4rem; }
.social-icons a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--wine);
  color: var(--wine);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s ease;
}
.social-icons a:hover { background: var(--wine); color: var(--white); }
.icon-svg { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; fill: currentColor; }

.map-frame { border-radius: 8px; overflow: hidden; border: 1px solid rgba(0,0,0,0.08); }

.form-control-orlic {
  border: 1px solid var(--stone);
  border-radius: 5px;
  padding: 0.65rem 0.9rem;
  background: var(--white);
}
.form-control-orlic:focus {
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 0.2rem rgba(255,207,1,0.25);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.75); padding: 3rem 0 1.6rem; }
.site-footer .brand-mark img.brand-eagle { height: 34px; }
.site-footer a:hover { color: var(--gold); }
.footer-divider { border-color: rgba(255,255,255,0.12); margin: 2rem 0 1.4rem; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Skeleton loading za vina ---------- */
.wine-skeleton { border-radius: 8px; overflow: hidden; border: 1px solid rgba(0,0,0,0.08); }
.wine-skeleton .sk-block { background: linear-gradient(100deg, #eee 20%, #f5f5f5 40%, #eee 60%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---------- Responsive nav (mobile) ---------- */
@media (max-width: 991px) {
  .navbar-toggler-custom { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    height: 100svh;
    width: min(80vw, 320px);
    background: var(--ink);
    flex-direction: column;
    justify-content: center;
    gap: 2.1rem;
    transition: right 0.35s ease;
    z-index: 1001;
  }
  .nav-links.open { right: 0; box-shadow: -12px 0 30px rgba(0,0,0,0.3); }
  .nav-links a.nav-link-item { font-size: 1.1rem; }
  .lang-switch { order: -1; margin-bottom: 1rem; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 1000; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
  .nav-backdrop.show { opacity: 1; pointer-events: auto; }
  .nav-close-btn { position: absolute; top: 1.2rem; right: 1.4rem; color: var(--white); background: none; border: none; font-size: 1.5rem; }
}

::selection { background: var(--gold); color: var(--ink); }
