/*
Theme Name: Čuvari prirode i nasleđa Srbije
Theme URI: https://udruzenjeglavinci.org.rs
Author: Udruženje Čuvari prirode i nasleđa Srbije
Description: Tema za sajt udruženja "Čuvari prirode i nasleđa Srbije" iz sela Glavinci
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: cuvari-tema
*/

:root {
  --juhor: #016330;
  --juhor-deep: #016330;
  --moss: #5a7a4f;
  --pseni: #c9a247;
  --pseni-deep: #9a7a2e;
  --terakota: #a14e2f;
  --terakota-deep: #6e3520;
  --zemlja: #6b4423;
  --kamen: #d4c9a8;
  --paper: #f4ecd6;
  --paper-deep: #e8dec0;
  --ink: #1f1d18;
  --line: rgba(31, 29, 24, 0.12);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}
.serif { font-family: 'Fraunces', serif; }

/* TOP STRIP */
.topbar {
  background: var(--juhor-deep);
  color: var(--paper);
  padding: 10px 40px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: var(--paper); text-decoration: none; margin-left: 20px; opacity: 0.8; transition: opacity 0.2s; }
.topbar a:hover { opacity: 1; color: var(--pseni); }
.topbar a.topbar-cta {
  background: var(--terakota);
  color: var(--paper);
  padding: 6px 16px;
  border-radius: 2px;
  font-weight: 600;
  letter-spacing: 0.05em;
  opacity: 1;
  margin-left: 20px;
  transition: background 0.2s;
}
.topbar a.topbar-cta:hover { background: var(--pseni); color: var(--juhor-deep); }

/* HEADER */
header.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 0 40px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 40px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo-block {
  display: flex;
  align-items: center;
  gap: 20px;
}
.logo-text-link {
  text-decoration: none;
  color: inherit;
}
.header-sections {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.header-section-link {
  font-family: 'Fraunces', serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid currentColor;
  letter-spacing: 0.03em;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.header-section-link.gljive {
  color: var(--terakota-deep);
}
.header-section-link.gljive:hover {
  background: var(--terakota-deep);
  color: var(--paper);
}
.header-section-link.priroda {
  color: var(--juhor);
}
.header-section-link.priroda:hover {
  background: var(--juhor);
  color: var(--paper);
}
.logo-text {
  line-height: 1.05;
}
.logo-text .name {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--juhor);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.logo-text .name-2 {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 30px;
  color: var(--terakota-deep);
  letter-spacing: -0.01em;
  margin-top: 2px;
}
.logo-sub {
  font-size: 15px;
  color: var(--pseni-deep);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(58, 74, 42, 0.25);
  white-space: nowrap;
}

.site-nav { justify-self: end; }
.site-nav ul { list-style: none; display: flex; gap: 26px; justify-content: center; }
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 20px;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.site-nav a:hover { border-bottom-color: var(--terakota); color: var(--terakota-deep); }

.cta-btn {
  background: var(--terakota);
  color: var(--paper);
  padding: 12px 22px;
  border: none;
  border-radius: 2px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}
.cta-btn:hover { background: var(--terakota-deep); }

/* HERO */
.hero {
  background: var(--juhor-deep);
  color: var(--paper);
  padding: 44px 40px 52px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(201, 162, 71, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(161, 78, 47, 0.15) 0%, transparent 50%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  right: -100px;
  bottom: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201, 162, 71, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
}
.hero-content { position: relative; }
.hero-visual {
  position: absolute;
  left: 75%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}
.hero-grb-wrap {
  display: block;
  width: 300px;
  margin: 0 auto 16px;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.4));
}
.hero-grb {
  width: 300px;
  height: auto;
  display: block;
  clip-path: inset(35px 0 0 0);
}
.hero-motto {
  font-family: 'Marck Script', cursive;
  font-size: 42px;
  color: var(--paper);
  line-height: 1.3;
  margin: 0;
}
.hero-motto span {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pseni);
  margin-top: 6px;
}
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--pseni);
  margin-bottom: 20px;
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(201, 162, 71, 0.4);
}
.hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  margin-bottom: 18px;
  font-style: italic;
  letter-spacing: -0.01em;
}
.hero h1 em { font-style: normal; font-weight: 800; color: var(--pseni); }
.hero p.lead {
  font-size: 16px;
  max-width: 560px;
  opacity: 0.88;
  margin-bottom: 28px;
  line-height: 1.6;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-secondary {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--paper);
  padding: 12px 22px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-secondary:hover { background: var(--paper); color: var(--juhor-deep); }
.hero-stats {
  display: flex;
  gap: 60px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(244, 236, 214, 0.2);
}
.stat .num {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 44px;
  color: var(--pseni);
  line-height: 1;
}
.stat .lbl { font-size: 13px; opacity: 0.7; letter-spacing: 0.03em; margin-top: 6px; }

/* DVA BRENDA */
.brands {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
  border-top: 1px solid rgba(201,162,71,0.45);
}
.brand {
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
.brand-priroda {
  background: var(--juhor);
  color: var(--paper);
}
.brand-gljive {
  background: var(--terakota);
  color: var(--paper);
}
.brand-label {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid currentColor;
  width: fit-content;
}
.brand h2 {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 38px;
  line-height: 1.08;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.brand p {
  font-size: 16px;
  max-width: 400px;
  opacity: 0.92;
  margin-bottom: 32px;
  line-height: 1.6;
}
.brand a.link {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  display: inline-block;
  width: fit-content;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.brand-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 24px;
  opacity: 0.9;
}
.brand > div,
.brand > a.link {
  position: relative;
  z-index: 2;
}
.brand-decoration-logo {
  position: absolute;
  object-fit: contain;
  opacity: 0.55;
  pointer-events: none;
  z-index: 1;
}
.brand h2,
.brand p,
.brand-label {
  text-shadow: 0 1px 10px rgba(0,0,0,0.35);
}
.brand-priroda .brand-decoration-logo {
  width: 400px;
  height: 400px;
  bottom: -30px;
  right: -80px;
}
.brand-gljive .brand-decoration-logo {
  width: 600px;
  height: 600px;
  bottom: -170px;
  right: -270px;
  filter: brightness(0);
}

/* O NAMA */
.o-nama {
  background: var(--kamen);
  padding: 110px 40px;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
}
.section-eyebrow {
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--pseni-deep);
  margin-bottom: 18px;
}
.section-title {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 46px;
  color: var(--juhor-deep);
  margin-bottom: 32px;
  max-width: 720px;
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.section-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--terakota-deep);
}
.o-nama-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.o-nama-left { position: static; }
.glavinci-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.glavinci-stit {
  height: 160px;
  width: auto;
  flex-shrink: 0;
}
.glavinci-slogan {
  display: flex;
  flex-direction: column;
}
.glavinci-slogan-tekst {
  font-family: 'Marck Script', cursive;
  font-size: 38px;
  color: #1a3a7a;
  line-height: 1.15;
}
.glavinci-naziv {
  font-family: 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #1a3a7a;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.o-nama-quote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.35;
  color: var(--juhor-deep);
  padding: 24px 32px;
  border-left: 3px solid var(--terakota);
  background: rgba(255, 255, 255, 0.5);
  margin-top: 24px;
}
.o-nama-text h3 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--juhor-deep);
  margin-top: 36px;
  margin-bottom: 14px;
}
.o-nama-text h3:first-child { margin-top: 0; }
.o-nama-text p {
  font-size: 16.5px;
  line-height: 1.75;
  margin-bottom: 16px;
  color: var(--ink);
}
.o-nama-text p strong { color: var(--juhor-deep); font-weight: 600; }

/* DOGAĐAJI */
.section { padding: 110px 40px; }
.section .container { max-width: 1200px; }
.events {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.event-card {
  background: white;
  padding: 32px;
  border: 1px solid var(--line);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(31, 40, 20, 0.08);
}
.event-date {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--terakota-deep);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.event-card h3 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--juhor-deep);
  margin-bottom: 12px;
  line-height: 1.2;
}
.event-card p { font-size: 14px; opacity: 0.75; }
.event-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: var(--juhor);
  color: var(--paper);
  margin-bottom: 16px;
  font-weight: 600;
}
.event-tag.gljive { background: var(--terakota); }
.event-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--juhor-deep);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.2s;
}
.event-link:hover { color: var(--terakota-deep); }

/* PRIDRUŽI SE */
.join {
  background: var(--juhor-deep);
  color: var(--paper);
  padding: 110px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.join::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 50% 50%, rgba(201, 162, 71, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.join-inner { max-width: 700px; margin: 0 auto; position: relative; }
.join h2 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-style: italic;
  font-size: 52px;
  margin-bottom: 24px;
  line-height: 1.05;
}
.join h2 em { font-style: normal; font-weight: 800; color: var(--pseni); }
.join p { font-size: 18px; opacity: 0.85; margin-bottom: 36px; line-height: 1.65; }
.join .cta-btn { background: var(--pseni); color: var(--juhor-deep); }
.join .cta-btn:hover { background: var(--paper); }

/* KONTAKT FORMA */
.contact-form { max-width: 600px; margin: 40px auto 0; text-align: left; }
.contact-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; opacity: 0.9; letter-spacing: 0.05em; text-transform: uppercase; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(244, 236, 214, 0.3);
  color: var(--paper);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  margin-bottom: 20px;
  outline: none;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--pseni); }
.contact-form select option { background: var(--juhor-deep); color: var(--paper); }
.contact-form textarea { min-height: 100px; resize: vertical; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form .submit-btn {
  background: var(--pseni);
  color: var(--juhor-deep);
  border: none;
  padding: 14px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: background 0.2s;
  width: 100%;
}
.contact-form .submit-btn:hover { background: var(--paper); }

/* FOOTER */
footer.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 28px 40px 16px;
}
/* Red 1 — Navigacija */
.footer-nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(244, 236, 214, 0.12);
}
.footer-nav-row a {
  color: var(--paper);
  text-decoration: none;
  font-size: 13px;
  opacity: 0.7;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.footer-nav-row a:hover { opacity: 1; color: var(--pseni); }

/* Red 2 — Kontakt */
.footer-contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 24px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto 16px;
  font-size: 13px;
  opacity: 0.7;
}
.footer-contact-row span { white-space: nowrap; }
.footer-contact-row a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.footer-contact-row a:hover { color: var(--pseni); opacity: 1; }
.footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
}
.footer-social a {
  color: var(--pseni);
  opacity: 0.9;
  transition: opacity 0.2s;
  line-height: 0;
}
.footer-social a:hover { opacity: 1; }
.footer-bottom {
  border-top: 1px solid rgba(244, 236, 214, 0.15);
  padding-top: 14px;
  text-align: center;
  font-size: 12px;
  opacity: 0.5;
  max-width: 1200px;
  margin: 0 auto;
}

/* Scroll offset za sticky header */
#o-nama, #aktivnosti, #pridruzi-se, #kontakt, #priroda, #gljive {
  scroll-margin-top: 170px;
}
.admin-bar #o-nama,
.admin-bar #aktivnosti,
.admin-bar #pridruzi-se,
.admin-bar #kontakt,
.admin-bar #priroda,
.admin-bar #gljive {
  scroll-margin-top: 202px;
}

/* WordPress admin bar fix */
.admin-bar header.site-header { top: 32px; }

/* Hamburger — sakriven na desktopu */
.menu-toggle { display: none; }
.mobile-only { display: none; }

/* Mobile */
@media (max-width: 768px) {
  /* Header */
  header.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    position: sticky;
    top: 0;
    gap: 0;
  }
  .header-sections { display: none; }
  .logo-text .name { font-size: 12px; line-height: 1.3; }
  .logo-text .logo-sub { font-size: 9px; letter-spacing: 0.15em; }
  .name-break { display: block; }

  /* Hamburger dugme */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-shrink: 0;
  }
  .menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    transition: all 0.2s;
  }

  /* Nav dropdown */
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 2px solid var(--juhor);
    z-index: 200;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }
  .site-nav ul li { display: block; }
  .site-nav ul li a {
    display: block;
    padding: 14px 24px;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
  }
  .site-nav ul li a:hover { background: var(--paper-deep); }
  .mobile-only { display: block; }

  /* Otvoren meni */
  header.nav-open .site-nav { display: block; }
  header.nav-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  header.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
  header.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .brands { grid-template-columns: 1fr; }
  .brand { padding: 50px 30px; }
  .brand h2 { font-size: 28px; }
  .brand-gljive .brand-decoration-logo {
    width: 360px; height: 360px;
    bottom: -60px; right: -100px;
    object-fit: cover;
    object-position: 0% center;
    filter: brightness(0);
  }
  .brand-priroda .brand-decoration-logo {
    width: 360px; height: 360px;
    bottom: -30px; right: -60px; /* up */
  }
  .events { grid-template-columns: 1fr; }
  .footer-nav-row { gap: 6px 16px; }
  .footer-contact-row { gap: 6px 14px; }
  .hero-stats { flex-wrap: nowrap; gap: 0; justify-content: space-between; padding-top: 16px; margin-top: 20px; }
  .stat { text-align: center; flex: 1; }
  .stat .num { font-size: 32px; }
  .stat .lbl { font-size: 10px; }
  .hero { padding: 32px 20px 32px; }
  .hero-inner { max-width: 100%; }
  .hero-visual { position: static; transform: none; text-align: center; margin-top: 10px; pointer-events: auto; }
  .hero-grb-wrap { width: 150px; margin: 0 auto 10px; }
  .hero-grb { width: 150px; }
  .hero-motto { font-size: 30px; margin: 0; } /* mob */
  .hero-motto span { font-size: 14px; } /* mob */
  .hero h1 { font-size: 36px; }
  .section, .o-nama, .join { padding: 60px 24px; }
  .o-nama-grid { grid-template-columns: 1fr; gap: 40px; }
  .o-nama-left { position: static; }
  .section-title { font-size: 32px; }
  .join h2 { font-size: 34px; }
  .topbar { display: none; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .logo-block img { height: 80px; }
  .logo-text .name, .logo-text .name-2 { font-size: 16px; }
  .hero-logo-vrganj { right: -320px !important; }
}
