/* ═══════════════════════════════════════════════════════════════
   inbanana.css  –  Zajednički stilovi za sve stranice InBanana
   Učitava se na: index.html, Saznaj_vise.html,
                  Politika_*.html, Uvjeti_korištenja.html
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. DESIGN TOKENS ───────────────────────────────────────── */
:root {
  /* Boje */
  --green-deep:  #1a3022;
  --green-mid:   #2d5233;
  --green-light: #3d6b45;
  --gold:        #c8a84b;
  --gold-light:  #e8d08a;
  --cream:       #faf7f0;
  --cream-dark:  #f0ead8;
  --text-dark:   #1a2018;
  --text-mid:    #3a4a38;
  --text-light:  #6b7c68;
  --white:       #ffffff;

  /* Tipografija */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', sans-serif;

  /* Oblici i sjene */
  --radius-sm:   4px;
  --radius-md:   12px;
  --radius-lg:   24px;
  --shadow-soft: 0 8px 40px rgba(26,48,34,0.10);
  --shadow-card: 0 4px 24px rgba(26,48,34,0.08);
  --transition:  0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── 2. RESET & BASE ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ── 3. NAVBAR ──────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  background: rgba(26,48,34,0.97);
  box-shadow: 0 2px 30px rgba(0,0,0,0.18);
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
/* index.html: navbar je transparent dok nema scrolla */
.navbar.scrolled {
  background: rgba(26,48,34,0.97);
  padding: 0.7rem 0;
  box-shadow: 0 2px 30px rgba(0,0,0,0.18);
  backdrop-filter: blur(12px);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { height: 40px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-link {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 100%;
  height: 1px;
  background: var(--gold);
  transition: right var(--transition);
}
.nav-link:hover        { color: var(--gold-light); }
.nav-link:hover::after { right: 0; }
.nav-link.cta {
  background: var(--gold);
  color: var(--green-deep);
  padding: 0.5rem 1.3rem;
  border-radius: 50px;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.nav-link.cta:hover  { background: var(--gold-light); }
.nav-link.cta::after { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}

/* ── 4. FOOTER ──────────────────────────────────────────────── */
footer { background: var(--green-deep); color: rgba(255,255,255,0.7); }

.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem 3rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand img    { height: 44px; margin-bottom: 1.2rem; }
.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  max-width: 220px;
}
.footer-col-title {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  font-weight: 500;
}
.footer-links      { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-link       { font-size: 0.85rem; color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-link:hover { color: var(--gold-light); }

.footer-social      { display: flex; gap: 0.8rem; margin-top: 1rem; }
.footer-social-link {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  transition: var(--transition);
}
.footer-social-link:hover { background: var(--gold); color: var(--green-deep); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}
.footer-bottom-links { display: flex; gap: 1.5rem; }

/* ── 5. SCROLL TO TOP ───────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: var(--green-mid);
  color: white;
  border-radius: 50%;
  border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover   { background: var(--green-light); transform: translateY(-2px); }

/* ── 6. REVEAL ANIMACIJA ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible    { opacity: 1; transform: translateY(0); }
.reveal-delay-1    { transition-delay: 0.12s; }
.reveal-delay-2    { transition-delay: 0.24s; }
.reveal-delay-3    { transition-delay: 0.36s; }

/* ── 7. ZAJEDNIČKI TIPOGRAFSKI RAZREDI ──────────────────────── */
.section-eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.8rem;
}
.body-text {
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.8;
}

/* ── 8. GUMBI ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-primary { background: var(--gold); color: var(--green-deep); }
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,168,75,0.35);
}
.btn-outline {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-2px);
}
.btn-outline-light {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-outline-light:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-2px);
}
.btn-green { background: var(--green-mid); color: white; }
.btn-green:hover {
  background: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45,82,51,0.35);
}
.btn-icon { font-size: 1.1rem; transition: transform var(--transition); }
.btn:hover .btn-icon { transform: translateX(4px); }

/* ── 9. TASTE TAGS ──────────────────────────────────────────── */
.taste-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0;
}
.taste-tag {
  background: rgba(200,168,75,0.1);
  border: 1px solid rgba(200,168,75,0.35);
  color: var(--gold);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
}

/* ── 10. MOBILE BOTTOM NAV ──────────────────────────────────── */
.mobile-bottom-nav { display: none; }

/* ── 11. RESPONZIVNOST ──────────────────────────────────────── */
@media (max-width: 992px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  /* Skrij desktop navbar, prikaži mobile nav */
  .navbar { display: none; }
  body    { padding-bottom: 70px; }

  /* Desktop nav — overlay menu */
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed; inset: 0;
    background: rgba(26,48,34,0.98);
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-toggle     { display: flex; z-index: 1000; }

  /* Footer */
  .footer-main         { grid-template-columns: 1fr; padding: 3rem 2rem 2rem; }
  .footer-bottom       { flex-direction: column; gap: 1rem; text-align: center; }

  /* Mobile bottom nav */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 64px;
    background: var(--green-deep);
    border-top: 1px solid rgba(200,168,75,0.2);
    z-index: 9000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
    align-items: stretch;
  }
  .mob-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.62rem;
    letter-spacing: 0.03em;
    transition: color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    padding: 6px 0;
  }
  .mob-nav-item .mob-nav-icon {
    font-size: 1.35rem;
    line-height: 1;
    transition: transform 0.2s ease, color 0.2s ease;
  }
  .mob-nav-item:hover,
  .mob-nav-item.active            { color: var(--gold); }
  .mob-nav-item.active .mob-nav-icon { transform: translateY(-2px); }

  .mob-nav-cta .mob-nav-icon {
    background: var(--gold);
    color: var(--green-deep);
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 16px rgba(200,168,75,0.45);
    margin-top: -14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .mob-nav-cta:hover .mob-nav-icon,
  .mob-nav-cta.active .mob-nav-icon {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(200,168,75,0.55);
  }
  .mob-nav-cta .mob-nav-label { color: var(--gold); font-weight: 500; }

  /* Scroll-to-top iznad mobile nava */
  .scroll-top { bottom: 5rem; }
}
