/* Udruženje žena "Važna si" — Shared Stylesheet
   Headings: EB Garamond (literary, classical)
   Body:     Nunito Sans (warm, humanist)
   Theme:    Light warm, deep rose accent
*/

/* ── TOKENS ─────────────────────────────────────────── */
:root {
  --white:        #ffffff;
  --bg:           #fdfbfc;
  --bg-pink:      #fceff5;
  --bg-warm:      #f9f4f6;
  --rose:         #b5194a;
  --rose-deep:    #8f1139;
  --rose-mid:     #d44070;
  --rose-light:   #ecaabb;
  --rose-pale:    #fdeef5;
  --rose-border:  #f0cad8;
  --text:         #1b0e14;
  --text-md:      #3a1e2c;
  --text-muted:   #6a4257;
  --text-faint:   #a07585;
  --border:       #e5d0da;
  --border-lt:    #f3e5eb;
  --sh-xs:        0 1px 3px rgba(0,0,0,.06);
  --sh-sm:        0 2px 10px rgba(0,0,0,.08);
  --sh-md:        0 4px 24px rgba(0,0,0,.10);
  --sh-lg:        0 8px 48px rgba(0,0,0,.12);
  --sh-rose:      0 4px 22px rgba(181,25,74,.22);
  --r-sm:         8px;
  --r-md:         12px;
  --r-lg:         18px;
  --r-xl:         26px;
  --nav-h:        72px;
  --max-w:        1200px;
}

/* ── RESET ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ── TYPOGRAPHY ─────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: 'EB Garamond', Georgia, serif;
  line-height: 1.15;
  color: var(--text);
}
.label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 10px;
  display: block;
}
.section-title {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 600;
  margin-bottom: 16px;
}
.section-title em { font-style: italic; color: var(--rose); }
.section-body {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.78;
  max-width: 560px;
}
.divider {
  width: 44px;
  height: 3px;
  background: var(--rose);
  border-radius: 2px;
  margin-bottom: 24px;
}

/* ── LAYOUT ─────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-alt  { background: var(--bg-pink); }
.section-warm { background: var(--bg-warm); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.text-center { text-align: center; }
.text-center .section-body { margin-inline: auto; }

/* ── BUTTONS ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Nunito Sans', sans-serif;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
  touch-action: manipulation;
  min-height: 48px;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--rose); color: #fff; box-shadow: var(--sh-rose); border-color: var(--rose-deep); }
.btn-primary:hover { background: var(--rose-deep); box-shadow: 0 8px 28px rgba(181,25,74,.3); }
.btn-outline { background: transparent; color: var(--rose); border-color: var(--rose); }
.btn-outline:hover { background: var(--rose-pale); }
.btn-ghost { background: transparent; color: var(--text-muted); border-color: var(--rose); }
.btn-ghost:hover { color: var(--rose); background: var(--rose-pale); }
.btn-sm { padding: 9px 20px; font-size: 13px; min-height: 40px; }

/* ── TAGS ───────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  background: var(--rose-pale);
  color: var(--rose-deep);
  border: 1px solid var(--rose-border);
}

/* ── NAV ────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(253,251,252,.93);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-lt);
  transition: box-shadow 250ms ease;
}
#navbar.scrolled { box-shadow: var(--sh-sm); }
.nav-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; height: 100%; }
.nav-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-mark {
  width: 44px; height: 44px;
  background: white;
  border-radius: 50%;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; }
.logo-mark .logo-fallback {
  display: none;
  color: var(--rose);
}
.logo-text { line-height: 1.15; }
.logo-text .org {
  font-size: 10px; font-weight: 600;
  color: var(--text-faint);
  letter-spacing: .07em; text-transform: uppercase;
  display: block;
}
.logo-text .name {
  font-family: 'EB Garamond', serif;
  font-size: 19px; font-weight: 600;
  color: var(--text);
}
.logo-text .name em { color: var(--rose); font-style: italic; }
.nav-links {
  display: flex; align-items: center; gap: 6px; justify-content: center;
  list-style: none !important; margin: 0 !important; padding: 0 !important;
}
.nav-links li {
  list-style: none !important; padding: 0 !important; margin: 0 !important;
}
.nav-links li::before,
.nav-links li::marker { content: '' !important; display: none !important; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  display: block;
  padding: 7px 15px;
  border-radius: 50px;
  font-size: 13.5px; font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-warm);
  border: 1px solid var(--border-lt);
  transition: color 150ms, background 150ms, border-color 150ms;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--rose); background: var(--rose-pale); border-color: var(--rose-border); }
.nav-links a.active { color: var(--rose); background: var(--rose-pale); border-color: var(--rose-border); }
.nav-cta { margin-left: 0; }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: transparent; border: none;
  padding: 8px; border-radius: var(--r-sm);
  min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 250ms ease, opacity 250ms ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile {
  display: none; position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 16px 24px 28px; z-index: 999;
  flex-direction: column; gap: 4px;
  box-shadow: var(--sh-md);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 14px 16px; border-radius: var(--r-md);
  font-size: 16px; font-weight: 600;
  color: var(--text-muted);
  transition: color 150ms, background 150ms;
  min-height: 48px; display: flex; align-items: center;
}
.nav-mobile a:hover, .nav-mobile a.active { color: var(--rose); background: var(--rose-pale); }
.nav-mobile .btn { margin-top: 10px; width: 100%; justify-content: center; }

/* ── PAGE HERO (inner pages) ─────────────────────────── */
.page-hero {
  padding: calc(var(--nav-h) + 60px) 0 60px;
  background: linear-gradient(135deg, var(--rose-pale) 0%, var(--white) 65%);
  border-bottom: 1px solid var(--rose-border);
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-faint);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--text-faint); transition: color 150ms; }
.breadcrumb a:hover { color: var(--rose); }
.breadcrumb .sep { color: var(--rose-border); }
.page-title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 600; margin-bottom: 16px;
}
.page-title em { color: var(--rose); font-style: italic; }
.page-subtitle {
  font-size: 18px; color: var(--text-muted);
  max-width: 560px; line-height: 1.75;
}

/* ── CARDS ──────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border-lt);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-xs);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--rose-border); }
.card-img { aspect-ratio: 16/9; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 24px; }
.card-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.card-date { font-size: 12px; color: var(--text-faint); font-weight: 600; }
.card-title { font-family: 'EB Garamond', serif; font-size: 19px; font-weight: 600; margin-bottom: 10px; line-height: 1.3; }
.card-excerpt { font-size: 14px; color: var(--text-muted); line-height: 1.72; margin-bottom: 18px; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700; color: var(--rose);
  transition: gap 150ms ease;
}
.card-link:hover { gap: 10px; }
.card-link svg { transition: transform 150ms; }
.card-link:hover svg { transform: translateX(2px); }

/* ── TESTIMONIALS ───────────────────────────────────── */
.testimonial {
  background: var(--white);
  border: 1px solid var(--border-lt);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--sh-xs);
  transition: transform 200ms ease, box-shadow 200ms ease;
  display: flex; flex-direction: column; gap: 18px;
}
.testimonial:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.testimonial-featured {
  background: linear-gradient(135deg, var(--rose-pale) 0%, var(--white) 70%);
  border-color: var(--rose-border);
}
.quote { font-family: 'EB Garamond', serif; font-size: 60px; line-height: .4; color: var(--rose); opacity: .3; }
.testimonial-text { font-size: 15px; font-style: italic; color: var(--text-muted); line-height: 1.8; }
.testimonial-featured .testimonial-text { font-size: 18px; }
.author { display: flex; align-items: center; gap: 14px; padding-top: 14px; border-top: 1px solid var(--border-lt); }
.author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--rose-border); flex-shrink: 0; }
.author-name { font-weight: 700; font-size: 15px; }
.author-role { font-size: 12px; color: var(--text-faint); margin-top: 2px; }

/* ── STATS ──────────────────────────────────────────── */
.stat-bar { display: flex; gap: 2px; border-radius: var(--r-md); overflow: hidden; }
.stat-box {
  flex: 1; background: var(--white);
  border: 1px solid var(--border-lt);
  padding: 28px 20px; text-align: center;
}
.stat-num { font-family: 'EB Garamond', serif; font-size: 38px; font-weight: 600; color: var(--rose); line-height: 1; }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 6px; }

/* ── FEATURE BOXES ──────────────────────────────────── */
.feature-box {
  display: flex; gap: 18px; align-items: flex-start;
}
.feature-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--rose-pale); border: 1px solid var(--rose-border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--rose);
}
.feature-text h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.feature-text p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ── INFO CARDS (o raku dojke) ─────────────────────── */
.info-card {
  background: var(--white);
  border: 1px solid var(--border-lt);
  border-radius: var(--r-md);
  padding: 28px 24px;
  transition: border-color 200ms, transform 200ms;
  box-shadow: var(--sh-xs);
}
.info-card:hover { border-color: var(--rose-border); transform: translateY(-3px); }
.info-card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--rose-pale); border: 1px solid var(--rose-border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; color: var(--rose);
}
.info-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.info-card p { font-size: 14px; color: var(--text-muted); line-height: 1.72; }

/* ── TABS ───────────────────────────────────────────── */
.tabs {
  display: flex; gap: 4px;
  border-bottom: 2px solid var(--border-lt);
  margin-bottom: 40px;
}
.tab-btn {
  padding: 12px 20px; border-radius: var(--r-sm) var(--r-sm) 0 0;
  font-size: 14px; font-weight: 600;
  color: var(--text-muted); background: transparent; border: none;
  cursor: pointer; position: relative; bottom: -2px;
  border-bottom: 2px solid transparent;
  transition: color 150ms;
  min-height: 44px;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--rose); border-bottom-color: var(--rose); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── FORMS ──────────────────────────────────────────── */
.form-wrap {
  background: var(--white);
  border: 1px solid var(--border-lt);
  border-radius: var(--r-xl);
  padding: 40px;
  box-shadow: var(--sh-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-group label { font-size: 13px; font-weight: 700; color: var(--text-md); }
.form-group label .req { color: var(--rose); margin-left: 2px; }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-warm);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  font-size: 15px; font-family: 'Nunito Sans', sans-serif;
  color: var(--text);
  outline: none;
  transition: border-color 150ms, box-shadow 150ms;
  min-height: 48px;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-faint); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(181,25,74,.1);
  background: var(--white);
}
.form-group select option { background: var(--white); }
.form-group textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.form-check { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 24px; }
.form-check input[type="checkbox"] { width: 20px; height: 20px; min-height: unset; border-radius: 4px; margin-top: 2px; cursor: pointer; accent-color: var(--rose); }
.form-check label { font-size: 13px; color: var(--text-muted); line-height: 1.65; cursor: pointer; }
.form-check label a { color: var(--rose); text-decoration: underline; text-underline-offset: 3px; }
.form-error { font-size: 12px; color: #c0392b; margin-top: -14px; margin-bottom: 8px; display: none; }
.form-error.show { display: block; }

/* ── PARTNER CARDS ──────────────────────────────────── */
.partner-card {
  background: var(--white);
  border: 1px solid var(--border-lt);
  border-radius: var(--r-md);
  padding: 28px 20px;
  display: flex; align-items: center; justify-content: center;
  min-height: 100px;
  transition: border-color 200ms, transform 200ms, box-shadow 200ms;
  box-shadow: var(--sh-xs);
}
.partner-card:hover { border-color: var(--rose-border); transform: translateY(-3px); box-shadow: var(--sh-sm); }
.partner-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-faint); text-align: center; }
.partner-inner span { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.partner-card.add-partner { border-style: dashed; }
.partner-card.add-partner .partner-inner { color: var(--rose); }

/* ── MEMORIAM ───────────────────────────────────────── */
.memoriam-card {
  background: var(--white);
  border: 1px solid var(--border-lt);
  border-radius: var(--r-md);
  overflow: hidden;
  text-align: center;
  transition: border-color 200ms;
  box-shadow: var(--sh-xs);
}
.memoriam-card:hover { border-color: var(--rose-border); }
.memoriam-photo { aspect-ratio: 1; overflow: hidden; position: relative; }
.memoriam-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(20%); transition: filter 300ms; }
.memoriam-card:hover .memoriam-photo img { filter: grayscale(0); }
.memoriam-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(27,14,20,.4) 100%);
}
.memoriam-info { padding: 18px 16px 20px; }
.memoriam-name { font-family: 'EB Garamond', serif; font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.memoriam-years { font-size: 13px; color: var(--text-faint); }
.memoriam-candle { color: var(--rose-mid); opacity: .6; margin: 12px auto 0; }

.cta-strip {background-color: #d8a3b4 !important;}

/* ── FOOTER ─────────────────────────────────────────── */
footer {
  background: var(--text);
  color: rgba(255,255,255,.75);
  padding: 112px 0 40px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 48px; align-items: start; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-logo-mark { width: 64px; height: 64px; background:white; border-radius: 50%; overflow: hidden; }
.footer-logo-mark img { width: 100%; height: 100%; object-fit: cover; }
.footer-logo-name { font-family: 'EB Garamond', serif; font-size: 17px; color: #fff; line-height: 1.2; }
.footer-logo-name em { color: var(--rose-light); }
.footer-desc { font-size: 14px; line-height: 1.75; color: rgba(255,255,255,.55); margin-bottom: 20px; max-width: 280px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: var(--r-sm);
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.55);
  transition: background 150ms, color 150ms;
}
.footer-social a:hover { background: var(--rose); color: #fff; }
.footer-col h4 { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 14px; color: rgba(255,255,255,.55); transition: color 150ms; }
.footer-col ul a:hover { color: var(--rose-light); }
.footer-contact-item { display: flex; gap: 10px; font-size: 14px; color: rgba(255,255,255,.55); margin-bottom: 10px; align-items: flex-start; }
.footer-contact-item svg { flex-shrink: 0; margin-top: 2px; color: var(--rose-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255,255,255,.35); }
.footer-bottom a { color: rgba(255,255,255,.35); transition: color 150ms; }
.footer-bottom a:hover { color: var(--rose-light); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-credit { text-align: center; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.55); margin-top: 20px; }

/* ── SCROLL TOP ─────────────────────────────────────── */
#scroll-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--rose); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-rose);
  opacity: 0; transform: translateY(12px);
  transition: opacity 250ms, transform 250ms;
  z-index: 900; cursor: pointer;
}
#scroll-top.show { opacity: 1; transform: translateY(0); }
#scroll-top:hover { background: var(--rose-deep); }

/* ── FADE-IN ────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .fade { opacity: 0; transform: translateY(24px); transition: opacity 520ms ease, transform 520ms ease; }
  .fade.on { opacity: 1; transform: translateY(0); }
  .fade-d1 { transition-delay: 80ms; }
  .fade-d2 { transition-delay: 160ms; }
  .fade-d3 { transition-delay: 240ms; }
}

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-bar { flex-wrap: wrap; }
  .stat-box { min-width: calc(50% - 1px); }
}
@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .section { padding: 64px 0; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .flex-between { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-bottom-links { flex-direction: column; gap: 8px; align-items: center; }
  .stat-bar { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r-md); }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .page-title { font-size: 30px; }
}
