/* ========= Osnovne postavke + layout ========= */
:root{
  --teal:#115e59;
  --teal-2:#0f766e;
  --ink:#0f172a;
  --bg:#f9faf9;

  /* novo */
  --sans:"Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --display:"Fraunces", Georgia, serif;
  --radius:16px;
  --shadow-1:0 6px 18px rgba(0,0,0,.08);
  --shadow-2:0 18px 50px rgba(17,94,89,.15);
  --grad-hero: radial-gradient(1300px 700px at 60% -20%, #d1fae5 0%, transparent 50%),
               radial-gradient(900px 600px at -10% 20%, #a7f3d0 0%, transparent 45%);
}
/* Global reset protiv horizontalnog klizanja */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body{margin:0;font-family:var(--sans);color:var(--ink);background:var(--bg)}
/* GLOBAL page container (centar + rubni "zrak") */
.container{
  width:100%;
  max-width:1120px;
  margin:0 auto;      /* centrira sve unutar stranice */
  padding:0 24px;     /* zrak od ruba */
}
/* —— GLOBAL SAFE-GUARDS ——————————— */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;       /* ubije mikro-horizontalni scroll */
}

img, svg, video, canvas {
  max-width: 100%;
  height: auto;
  display: block;           /* uklanja baseline praznine */
}
/* Bazni container za centriranje sadržaja */
.container{
  max-width: 1040px;        /* po potrebi 1000–1120px */
  margin: 0 auto;
  padding: 0 24px;
}

/* ========= Header / brand ========= */
.site-header{
  position:sticky; top:0; z-index:20;
  background:rgba(255,255,255,.75);
  backdrop-filter:saturate(120%) blur(10px);
  -webkit-backdrop-filter:saturate(120%) blur(10px);
  box-shadow:0 1px 0 rgba(0,0,0,.06);
}
.brand .logo{ height:clamp(72px, 8vw, 108px); }

.site-header .container{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  min-height:74px;
}
.brand{display:flex; align-items:center; gap:14px; text-decoration:none}
.brand .logo{
  /* idealna, responzivna visina loga */
  height:clamp(80px, 9vw, 120px);
  width:auto; object-fit:contain; vertical-align:middle;
  transition:transform .25s ease-in-out;
}
.brand .logo:hover{ transform:scale(1.04) }
.brand-text{ display:flex; flex-direction:column; line-height:1.1 }
.brand-text strong{ font-size:1.6rem; color:var(--teal); letter-spacing:.3px }
.brand-text span{ font-size:.85rem; text-transform:uppercase; color:var(--teal-2); letter-spacing:.8px }

/* ========= Navigacija ========= */
.site-nav{ display:flex; gap:18px; align-items:center }
.site-nav a{
  color:var(--ink);
  text-decoration:none;
  font-weight:600;
  letter-spacing:.2px;
  padding:10px 6px;
  opacity:.85;
}
.site-nav a:hover{ opacity:1; color:var(--teal) }


/* ========= Toggler (mobile) ========= */
.nav-toggle{
  display:none; border:1px solid #d1d5db; background:#fff; border-radius:10px;
  padding:8px 10px; font-size:18px; line-height:1; cursor:pointer;
}
.nav-toggle:focus{ outline:3px solid #99f6e4; outline-offset:2px }

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ========= Responsive ========= */
@media (max-width: 860px){
  .site-header .container{
    align-items: flex-start;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .nav-toggle{
    display: block;
  }

  .site-nav{
    display: none;          /* skriveno dok se ne otvori */
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 10px 0;        /* ovo je onaj tvoj padding:10px 0; ali na pravom mjestu */
  }

  .site-nav.open{
    display: flex;
  }
}

/* ========= Partners ========= */
    
/* ===== Partneri (layout) ===== */
.partners-section{
  padding:70px 0;
  background:#f8faf8;
  text-align:center;
}
.partners-section h2{ color:var(--teal); margin:0 0 8px }
.partners-section p { max-width:780px; margin:0 auto 28px; color:#374151 }

.partners-row{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;   /* centriraj */
  align-items:stretch;
  gap:24px;
  margin-top:32px;
}

.partner-card{
  flex:1 1 280px;           /* širina "pločice" */
  max-width:320px;          /* ne širi preko */
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:16px;
  padding:22px 18px;
  text-align:center;
  box-shadow:0 2px 8px rgba(0,0,0,.04);
  transition:transform .2s ease, box-shadow .2s ease;
}
.partner-card:hover{ transform:translateY(-4px); box-shadow:0 8px 18px rgba(0,0,0,.08) }

.partner-card img{
  display:block;
  height:60px;              /* isti “MEDRI” gabarit */
  width:auto;
  margin:0 auto 14px;
  object-fit:contain;
  background:#fff;
  padding:6px 12px;
  border-radius:8px;
  box-shadow:0 1px 4px rgba(0,0,0,.06);
}

/* na mobitelu neka pločica zauzme ~80% širine */
@media (max-width:720px){
  .partner-card{ flex:1 1 80%; max-width:420px }
}

/* Ako želiš malo “pojačati” vizualno laganije logotipe: */
/* .partner-card img[alt*="Potion 1st"],
   .partner-card img[alt*="Healing Hands"] { height: 70px; } */


.partner-card h3{
  color:var(--teal); font-size:1.05rem; margin:6px 0 4px;
}
.partner-card p{
  font-size:.92rem; color:#374151; line-height:1.5;
}

@media (max-width:720px){
  .partner-card{ max-width:50% }
}

 /* ===== Partner logos: subtle lift/shadow on hover ===== */
.partners-logos a{
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  padding: 14px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.partners-logos img{
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: none !important;    /* osiguraj da NEMA grayscale-a */
}

.partners-logos a:hover{
  transform: translateY(-6px) scale(1.02);           /* blagi podizaj */
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);          /* finija sjena */
}

/* ===== Projekti ===== */
.projects-section{
  padding: 72px 0;
  background:#fff;
}
.projects-section h2{ color:var(--teal); margin:0 0 8px }
.projects-lead{ max-width:780px; margin:0 auto 28px; color:#374151; text-align:center }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch; /* sve kartice iste visine */
}
@media (max-width: 980px){
  .projects-grid{ grid-template-columns: repeat(2, minmax(0,1fr)) }
}
@media (max-width: 680px){
  .projects-grid{ grid-template-columns: 1fr }
}

.project-card, .collab-card{
  position:relative;
  background:#fff;
  border-radius: var(--radius);
  padding:0;
  border:1px solid rgba(16,185,129,.18);
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
  overflow:hidden;
}
.project-card::before, .collab-card::before{
  content:"";
  position:absolute; inset:0;
  pointer-events:none;
  border-radius:inherit;
  background: linear-gradient(180deg, rgba(16,185,129,.18), transparent 45%);
  opacity:.6;
}
.project-card:hover, .collab-card:hover{ transform: translateY(-2px); box-shadow: var(--shadow-1); }

/* hero-slike u budućnosti, ali NE logotipi */
.project-card img:not(.project-logo){
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  background:#f6f9f8;
  padding:16px;
}

/* logotipi: svi iste visine u kutiji */
.logo-wrap{
  height:92px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:12px;
}
.project-logo{
  max-height:100%;
  max-width:100%;
  width:auto;
  height:auto;
  object-fit:contain;
  display:block;
}

.project-body{ padding:16px 16px 18px; background:#fff; }

.collab-card img{ height:68px; margin:18px auto 10px; display:block }

.projects-section h2,
.collab-section h2,
.partners-section h2,
.blog-section h2,
#onama h2{
  font-family:var(--display);
  font-weight:700;
  font-size: clamp(1.8rem, 3.6vw, 2.2rem);
  letter-spacing:-.3px;
  color:#0b3d39;
  text-align:center;
}


/* ... */
.project-body h3{ color:var(--teal); margin:4px 0 8px }
.project-body p{ color:#374151; margin:0 0 10px; line-height:1.55 }

.project-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 16px 18px;
  background: #fff;
}

.projects-lead,
.collab-lead,
.partners-section > .container > p,
.blog-intro,
.contact-lead{
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.meta{
  display:flex; flex-wrap:wrap; gap:8px; list-style:none; padding:0; margin:0 0 14px;
}
.meta li{
  font-size:.82rem; color:#0f766e; background:#ecfdf5;
  border:1px solid #99f6e4; padding:4px 8px; border-radius:999px;
}

.actions{ margin-top: auto; display:flex; gap:10px }
.btn{
  display:inline-flex; align-items:center; gap:8px;
  background:var(--teal); color:#fff; text-decoration:none;
  padding:12px 16px; border-radius:12px; font-weight:600;
  box-shadow: var(--shadow-1);
  transition:transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover{ background:#0d9488; transform:translateY(-1px); box-shadow: var(--shadow-2); }

.btn-outline{
  background:transparent; color:var(--teal);
  border:1.5px solid #99f6e4;
}
.btn-outline:hover{ background:#ecfdf5; }

/* ===== Suradnja i edukacije ===== */
.collab-section{
  padding: 80px 0;
  background:#f9faf9;
  text-align:center;
}
.collab-section h2{ color:var(--teal); margin:0 0 8px }
.collab-lead{ max-width:760px; margin:0 auto 40px; color:#374151 }

.collab-grid{
  display:grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap:26px; margin-bottom:60px;
}
@media (max-width:960px){ .collab-grid{ grid-template-columns:repeat(2,minmax(0,1fr)) } }
@media (max-width:640px){ .collab-grid{ grid-template-columns:1fr } }

.collab-card{
  background:#fff; border:1px solid #e5e7eb; border-radius:16px;
  padding:22px 20px; box-shadow:0 2px 8px rgba(0,0,0,.04);
  transition:transform .25s ease, box-shadow .25s ease;
}
.collab-card:hover{ transform:translateY(-4px); box-shadow:0 8px 18px rgba(0,0,0,.08) }
.collab-card img{
  height:64px; width:auto; object-fit:contain; margin-bottom:12px;
}
.collab-card h3{ color:var(--teal); font-size:1.1rem; margin:6px 0 8px }
.collab-card p{ color:#374151; font-size:.92rem; line-height:1.5 }

.collab-cta{
  background:#ecfdf5; border:1px solid #99f6e4; border-radius:16px;
  padding:32px 20px; max-width:700px; margin:0 auto;
  box-shadow:0 4px 12px rgba(0,0,0,.05);
}
.collab-cta h3{ color:var(--teal); margin-top:0 }
.collab-cta p{ color:#374151; margin-bottom:20px }
.collab-cta .btn{ background:var(--teal-2); }
.collab-cta .btn:hover{ background:#0d9488 }

/* ===== Kontakt / Netlify Forms ===== */
.contact-section{ padding:80px 0; background:#fff; }
.contact-section h2{ color:var(--teal); margin:0 0 8px; text-align:center }
.contact-lead{ max-width:760px; margin:0 auto 32px; color:#374151; text-align:center }

/* Kontakt grid – jednostavno centriranje forme */
.contact-grid{
  display: flex;
  justify-content: center;
}

.contact-card{
  max-width: 720px;
  width: 100%;
}

/* ako nemaš sadržaj u desnom stupcu, sakrij ga */
.contact-side{
  display: none;
}

/* na mobitelu ostaje isto – forma full width */
@media (max-width: 900px){
  .contact-grid{
    display: block;
  }

  .contact-card{
    max-width: 100%;
  }
}



.contact-card{
  background:#f9faf9; border:1px solid #e5e7eb; border-radius:16px;
  padding:22px 18px; box-shadow:0 2px 8px rgba(0,0,0,.04);
}

.contact-form .form-row{ display:flex; flex-direction:column; gap:6px; margin-bottom:14px }
.contact-form label{ font-weight:600; color:#374151 }
.contact-form input,
.contact-form textarea{
  border:1px solid #d1d5db; border-radius:12px; padding:12px 12px; font-size:1rem;
  background:#fff; color:var(--ink);
}
.contact-form input:focus,
.contact-form textarea:focus{
  outline:3px solid #99f6e4; outline-offset:2px; border-color:#0d9488;
}
.hidden{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden }
.consent{ display:flex; gap:10px; align-items:flex-start; font-size:.92rem; color:#374151; margin:8px 0 12px }
.form-actions{ margin-top:8px }

.contact-side .contact-list{ list-style:none; padding:0; margin:0 0 12px; color:#374151 }
.contact-side .contact-list li{ margin:6px 0 }
.contact-side .socials{ display:flex; gap:12px }
.contact-side .socials a{
  color:var(--teal); text-decoration:none; border:1px solid #99f6e4; background:#ecfdf5;
  padding:6px 10px; border-radius:999px; font-weight:600;
}

.contact-form [data-netlify-recaptcha] {
  display: inline-block;
  margin: 10px 0 14px;
}

.contact-side .socials a:hover{ background:#d1fae5 }

.notice{ font-size:.85rem; color:#6b7280; margin-top:10px }


/* ===== Partneri – vodoravni layout ===== */
.partners-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
}

.partners-logos a {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  padding: 14px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform .2s ease, box-shadow .2s ease;
}

/* — prirodne boje stalno — */
.partners-logos img {
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: none;            /* <-- ključno */
  opacity: 1;              /* <-- bez izblijednjivanja */
  transition: transform .2s ease;
}

/* samo suptilan hover, bez promjene boje */
.partners-logos a:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.partners-logos a:hover img {
  transform: scale(1.03);
  filter: none;            /* sigurnosno – i na hover ostaje u boji */
  opacity: 1;
}


/* ===== Shared: centriraj section naslove ===== */
.projects-section > .container > h2,
.partners-section > .container > h2,
.blog-section > .container > h2{
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Partners uvodni tekst u sredinu i suzi širinu */
.partners-section > .container > p{
  text-align: center;
  max-width: 780px;
  margin: 0 auto 28px;
}

/* Blog uvodni tekst */
.blog-intro{
  text-align: center;
  max-width: 820px;
  margin: 0 auto 24px;
  color:#374151;
}

/* ===== Blog & Novosti ===== */
.blog-section{
  padding: 80px 0;
  background: #f8faf8;
}

/* Zelena znanstvena kutija */
.science-callout{
  background:#ecfdf5;
  border:1px solid #99f6e4;
  border-radius:16px;
  padding:24px 20px;
  max-width: 820px;
  margin: 0 auto 8px;
  box-shadow:0 4px 12px rgba(0,0,0,.05);
  text-align:center;
}

.science-callout .badge{
  display:inline-block;
  background:#0d9488;
  color:#fff;
  border-radius:999px;
  padding:6px 10px;
  font-weight:700;
  letter-spacing:.5px;
  font-size:.8rem;
  margin-bottom:8px;
}

/* (opcionalno) mreža za buduće kratke objave */
.blog-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:18px;
  margin-top:22px;
}
@media (max-width: 980px){ .blog-grid{ grid-template-columns: repeat(2, minmax(0,1fr)) } }
@media (max-width: 640px){ .blog-grid{ grid-template-columns: 1fr } }

.post-card{
  background:#fff; border:1px solid #e5e7eb; border-radius:16px;
  padding:16px; box-shadow:0 2px 8px rgba(0,0,0,.04);
}
.post-card h3{ color:var(--teal); margin:4px 0 8px }
.post-card p{ color:#374151; margin:0 0 10px; line-height:1.55 }

/* ===== Footer centriranje ===== */
footer{
  text-align:center; padding:50px 0 28px;
  background:#fbfdfc; color:#475569; font-size:.95rem;
  border-top:1px solid rgba(0,0,0,.06);
}


footer a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
}

footer a:hover {
  color: #0d9488;
  text-decoration: underline;
}

/* ===== Scroll-to-top gumb ===== */
#scrollTopBtn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99;
  display: none; /* skriven dok se ne skrola */
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

#scrollTopBtn:hover {
  background: #0d9488;
  transform: translateY(-3px);
}

/* ===== WhatsApp floating gumb ===== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 100;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #20ba5b;
}

.whatsapp-float img {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(1);
}

/* Naslovi sekcija centrirani */
#onama h2{
  text-align:center;
  margin-bottom: 10px;
}

/* ===== Mission card ===== */
.mission-card{
  max-width: 920px;
  margin: 18px auto 8px;
  padding: 22px 22px;
  background: linear-gradient(90deg, #ecfdf5 0%, #ffffff 100%);
  border: 1px solid #99f6e4;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(13,148,136, .08);
  text-align: center;
}

.mission-pill{
  display:inline-block;
  font-size: .82rem;
  letter-spacing: .4px;
  font-weight: 700;
  color: #0f766e;
  background: #d1fae5;
  border: 1px solid #99f6e4;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.mission-lead{
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.65;
  color:#0f172a;
}
#pocetna{
  padding: 80px 0 46px;
  background: var(--grad-hero);
}
#pocetna .container{ text-align:center; }
#pocetna h1{
  font-family:var(--display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height:1.15;
  letter-spacing:-.5px;
  margin: 0 0 12px;
  color:#0b3d39;
}
#pocetna p{
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  color:#334155;
  max-width: 820px;
  margin: 0 auto;
}

.sep{
  border:0; height:1px; width:100%;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.06), transparent);
  margin: 60px 0 0;
}

@keyframes fadeUp {
  from { opacity:0; transform: translateY(12px); }
  to   { opacity:1; transform: none; }
}
.reveal{ opacity:0; animation: fadeUp .7s ease forwards; }
.reveal.d2{ animation-delay:.15s }
.reveal.d3{ animation-delay:.3s }

/* Feature bar – grid poravnanje + responsivnost */
/* Feature bar – full width bez praznine desno/lijevo */
.feature-bar {
  position: relative;
  background: #b4dcc0;
  padding: 48px 0;
  border-top: 1px solid rgba(0,0,0,.05);
  border-bottom: 1px solid rgba(0,0,0,.05);

  /* full-bleed trik */
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
}

.feature-grid{
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));  /* 6 stupaca u jednom redu */
  gap: 28px;
  align-items: start;
  justify-items: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 1040px;
}

.feature-item{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #0b3d39;
  font-size: .95rem;
  line-height: 1.4;
  font-weight: 500;
  min-height: 130px;
  overflow: hidden;
}

.feature-item img{
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
  margin-bottom: 8px;
  opacity: .95;
  transition: transform .25s ease, opacity .25s ease;
}

.feature-item:hover img{
  transform: scale(1.08);
  opacity: 1;
}

/* Tablet – 3 stupca x 2 reda */
@media (max-width: 1024px){
  .feature-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .feature-item{
    font-size: .92rem;
  }
}

/* Mobitel – 2 stupca */
@media (max-width: 640px){
  .feature-bar{
    padding: 28px 0 76px;
  }

  .feature-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    justify-items: center;
    align-items: start;
  }

  .feature-item{
    padding: 8px 6px;
    min-height: 110px;
    font-size: .95rem;
    line-height: 1.35;
  }

  .feature-item img{
    width: 56px;
    height: 56px;
    margin-bottom: 6px;
  }

  .feature-item p{
    margin: 0;
    max-width: 16ch;
  }
}

/* Vrlo uski telefoni */
@media (max-width: 380px){
  .feature-grid{
    gap: 14px;
  }
  .feature-item{
    font-size: .9rem;
  }
  .feature-item img{
    width: 50px;
    height: 50px;
  }
}
