/* ==========================================================================
   Udruga Zdravi dan — design system
   Jedan stylesheet za svih 5 stranica. Bez vanjskih resursa.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

/* Paleta izvedena iz loga udruge:
   zelena #699667 (list + rukopisni tekst) · terakota #A64E24 (jabuka).
   Logo-zelena ima kontrast 3.41:1 na bijelom — premalo za tekst, pa je za
   gumbe/linkove uzeta tamnija varijanta iste boje (5.60:1, prolazi WCAG AA). */
:root {
  --ink: #2a3327;
  --ink-soft: #4f5b4c;
  --ink-mute: #717c6e;
  --brand: #4e704d;          /* interaktivno: gumbi, linkovi, sitni tekst */
  --brand-dark: #415d3f;     /* hover */
  --brand-logo: #699667;     /* prava zelena iz loga — dekorativno */
  --brand-bright: #699667;
  --brand-light: #eaf1e9;
  --terra: #a64e24;          /* terakota iz loga — akcent */
  --terra-light: #fbefe9;
  --sun: #a64e24;            /* zadržano ime radi kompatibilnosti */
  --sun-light: #fbefe9;
  --sand: #faf8f3;
  --line: #e3e0d7;
  --line-soft: #efece4;
  --white: #fff;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(42,51,39,.05), 0 8px 24px rgba(42,51,39,.07);
  --shadow-lift: 0 2px 4px rgba(42,51,39,.06), 0 16px 40px rgba(42,51,39,.12);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --wrap: 1120px;
  --narrow: 780px;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.05rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.02rem; }
p { margin: 0 0 1rem; }
a { color: var(--brand-dark); }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.wrap-narrow { max-width: var(--narrow); margin: 0 auto; padding: 0 22px; }
section { padding: clamp(52px, 7.5vw, 92px) 0; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 64ch; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand); margin-bottom: .9rem;
}
.alt { background: var(--sand); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* --- placeholder marker: sve što Ivana/Tea još trebaju potvrditi ---
   Namjerno plavo, izvan brand palete, da se uredničke bilješke ne mogu
   zamijeniti s terakotom iz loga. Briše se prije objave. --- */
.tbc {
  background: #eef2fa; color: #2e4e86; border-bottom: 1px dashed #7b96c4;
  padding: 1px 5px; border-radius: 4px; font-size: .93em; font-style: italic;
}
.tbc-box {
  background: #eef2fa; border: 1px dashed #7b96c4; border-radius: var(--radius-sm);
  padding: 16px 20px; color: #2e4e86; font-size: .94rem; font-style: italic; margin: 22px 0 0;
}
.tbc-box strong { font-style: normal; }

/* --- header --- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { display: flex; align-items: center; margin-right: auto; text-decoration: none; }
.logo img { height: 40px; width: auto; display: block; }
@media (max-width: 420px) { .logo img { height: 32px; } }
.nav-links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--brand); }
.nav-links a[aria-current="page"] { color: var(--brand); font-weight: 600; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; color: var(--ink); }

/* --- buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: #fff; text-decoration: none; font-weight: 600; font-size: .97rem;
  padding: 12px 22px; border-radius: 999px; border: 1px solid var(--brand); cursor: pointer;
  font-family: var(--sans); line-height: 1.4;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover, .btn:focus-visible { background: var(--brand-dark); border-color: var(--brand-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--brand-light); color: var(--brand-dark); border-color: var(--brand-light); }
.btn-light { background: #fff; color: var(--brand-dark); border-color: #fff; }
.btn-light:hover, .btn-light:focus-visible { background: var(--sand); border-color: var(--sand); color: var(--brand-dark); }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px;
}

/* --- hero --- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 460px at 82% -12%, rgba(105,150,103,.26), transparent 62%),
    radial-gradient(760px 400px at 6% 106%, rgba(166,78,36,.11), transparent 60%),
    var(--sand);
  border-bottom: 1px solid var(--line);
  padding: clamp(58px, 8vw, 104px) 0 clamp(52px, 7vw, 92px);
}
.hero-sm { padding: clamp(46px, 6vw, 72px) 0 clamp(42px, 5.5vw, 64px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 52px; align-items: center; }
.hero p.lede { font-size: 1.2rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-note { margin-top: 18px; font-size: .93rem; color: var(--ink-mute); }

/* --- trust bar --- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.trust div { padding: 26px 20px; text-align: center; border-right: 1px solid var(--line); }
.trust div:last-child { border-right: 0; }
.trust strong { display: block; font-family: var(--serif); font-size: 1.65rem; color: var(--brand); line-height: 1.1; }
.trust span { font-size: .9rem; color: var(--ink-soft); }

/* --- cards --- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: #cfd9d3; }
.card p { color: var(--ink-soft); font-size: .98rem; }
.card p:last-child { margin-bottom: 0; }
.card .ico-wrap {
  width: 46px; height: 46px; border-radius: 12px; background: var(--brand-light);
  display: flex; align-items: center; justify-content: center; color: var(--brand); margin-bottom: 16px;
}
.card-link { text-decoration: none; color: inherit; display: block; }
.card-more { color: var(--brand); font-weight: 600; font-size: .93rem; margin-top: 14px; display: inline-block; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.panel-flat { box-shadow: none; }
.panel h3 { margin-bottom: 16px; }

.card-stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.card-stat h3 { font-family: var(--sans); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 18px; }
.stat-row { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.stat-row:first-of-type { border-top: 0; padding-top: 0; }
.stat-row .ico { flex: 0 0 auto; margin-top: 2px; color: var(--brand); }
.stat-row strong { display: block; font-size: 1rem; }
.stat-row span { font-size: .93rem; color: var(--ink-soft); }

/* --- lists --- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.split-wide { grid-template-columns: 1.2fr .8fr; }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding: 10px 0 10px 32px; color: var(--ink-soft); border-top: 1px solid var(--line-soft); }
.checklist li:first-child { border-top: 0; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 16px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f7a5c' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat;
}
.checklist strong { color: var(--ink); }

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 24px 50px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .95rem;
}
.steps li::after { content: ""; position: absolute; left: 15px; top: 34px; bottom: 8px; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps strong { display: block; margin-bottom: 2px; }
.steps span { color: var(--ink-soft); font-size: .96rem; }

/* --- timeline --- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline > li { position: relative; padding: 0 0 34px 40px; }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand-logo);
}
.timeline > li::after { content: ""; position: absolute; left: 6px; top: 24px; bottom: -4px; width: 2px; background: var(--line); }
.timeline > li:last-child::after { display: none; }
.timeline time { display: block; font-size: .84rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 4px; }
.timeline h3 { margin-bottom: 6px; }
.timeline p { color: var(--ink-soft); font-size: .98rem; margin-bottom: 0; }

/* --- pills / partners --- */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: .92rem; color: var(--ink-soft); }
.partners { display: flex; flex-wrap: wrap; gap: 12px; }
.partner { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 20px; font-weight: 600; font-size: .95rem; color: var(--ink-soft); }

/* --- quote --- */
.quote {
  border-left: 4px solid var(--brand); padding: 6px 0 6px 24px; margin: 28px 0;
  font-family: var(--serif); font-size: 1.25rem; line-height: 1.5; color: var(--ink);
}
.quote cite { display: block; font-family: var(--sans); font-size: .9rem; font-style: normal; color: var(--ink-mute); margin-top: 10px; }

/* --- band --- */
.band { background: linear-gradient(150deg, var(--brand-dark), var(--brand) 60%, var(--brand-bright)); color: #fff; }
.band h2, .band h3 { color: #fff; }
.band p { color: rgba(255,255,255,.9); }
.band a { color: #fff; }
.band .eyebrow { color: rgba(255,255,255,.75); }
.band-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.22); align-items: flex-start; }
.contact-list li:first-child { border-top: 0; padding-top: 0; }
.contact-list .ico { flex: 0 0 auto; margin-top: 3px; opacity: .85; }
.contact-list strong { display: block; font-size: 1.05rem; }
.contact-list a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.45); }
.contact-list a:hover { border-bottom-color: #fff; }
.contact-list span { font-size: .93rem; color: rgba(255,255,255,.82); }

/* --- big contact tiles (macro page) --- */
.contact-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tile {
  display: block; text-decoration: none; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; text-align: center; color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--brand); }
.tile .ico-wrap { margin: 0 auto 14px; }
.tile strong { display: block; font-family: var(--serif); font-size: 1.3rem; word-break: break-word; }
.tile span { font-size: .92rem; color: var(--ink-mute); display: block; margin-top: 6px; }

/* --- form --- */
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; font-size: .94rem; margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--sans); font-size: 1rem; color: var(--ink); background: #fff;
}
.form-row .hint { font-size: .87rem; color: var(--ink-mute); margin-top: 5px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px; }
.check-row input { margin-top: 5px; flex: 0 0 auto; }
.check-row label { font-size: .92rem; color: var(--ink-soft); font-weight: 400; }

/* --- blog --- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
}
.post-thumb {
  height: 140px; background: linear-gradient(135deg, var(--brand-light), #dce7da);
  display: flex; align-items: center; justify-content: center; color: var(--brand-logo); border-bottom: 1px solid var(--line);
}
.post-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.post-cat { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.post h3 { font-size: 1.1rem; margin-bottom: 8px; }
.post p { font-size: .94rem; color: var(--ink-soft); margin-bottom: 0; flex: 1; }

/* --- faq --- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 1.03rem; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.5rem; line-height: 1; flex: 0 0 auto; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 18px; color: var(--ink-soft); margin: 0; max-width: 68ch; }

/* --- breadcrumb --- */
.crumb { font-size: .88rem; color: var(--ink-mute); margin-bottom: 14px; }
.crumb a { color: var(--ink-mute); text-decoration: none; }
.crumb a:hover { color: var(--brand); }

/* --- footer --- */
footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 52px 0 30px; font-size: .93rem; }
footer a { color: rgba(255,255,255,.9); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; margin-bottom: 34px; }
footer h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); margin: 0 0 14px; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 9px; }
/* Logo je JPEG s bijelom podlogom pretvoren u prozirni PNG; njegove boje
   (posebno terakota) gube kontrast na tamnom, pa u podnožju stoji na
   bijeloj pločici — čitljivo i izgleda namjerno. */
.foot-logo { display: inline-block; background: #fff; border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; }
.foot-logo img { height: 40px; width: auto; display: block; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .87rem; color: rgba(255,255,255,.5); }

/* --- responsive --- */
@media (max-width: 900px) {
  .hero-grid, .split, .split-wide, .band-grid { grid-template-columns: 1fr; gap: 34px; }
  .grid-3, .grid-4, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .trust div:nth-child(2) { border-right: 0; }
  .trust div:nth-child(3), .trust div:nth-child(4) { border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 22px 18px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-top: 1px solid var(--line); }
  .nav-links a { display: block; padding: 13px 0; font-size: 1rem; }
  .nav .btn { display: none; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4, .post-grid, .contact-tiles { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}

/* --- fotografije --- */
.media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.media img { width: 100%; height: auto; display: block; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery figure { margin: 0; }
.gallery .shot {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 3 / 2; background: var(--brand-light);
}
.gallery .shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.gallery figure:hover .shot img { transform: scale(1.04); }
.gallery figcaption { font-size: .9rem; color: var(--ink-mute); margin-top: 10px; }

.card-media { margin: -28px -28px 20px; border-bottom: 1px solid var(--line); aspect-ratio: 16 / 10; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }

/* --- traka s logotipima partnera --- */
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.logo-strip .plogo {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 16px; display: flex; align-items: center; justify-content: center;
}
.logo-strip img { height: 46px; width: auto; display: block; }
.logo-strip.sm img { height: 34px; }
.logo-strip.sm .plogo { padding: 8px 12px; }

/* --- FIX: .band a { color:#fff } je pregazio .btn-light (specifičnost 0,1,1 > 0,1,0),
       pa je bijeli gumb u zelenoj traci imao bijela slova --- */
.band a.btn-light { color: var(--brand-dark); }
.band a.btn-light:hover, .band a.btn-light:focus-visible { color: var(--brand-dark); }

/* --- fotografije kao thumb na blog karticama --- */
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --- fotografija u hero stupcu --- */
.hero-media {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow); margin-bottom: 18px;
}
.hero-media img { width: 100%; height: auto; display: block; }
