/* =========================================================
   Soloka — Wellness & Edukacija
   Vizualni identitet: zeleno / tamnozeleno
   Vanilla CSS — bez frameworka
   ========================================================= */

:root {
  /* Primarna i sekundarna paleta — zeleni tonovi */
  --primary:        #1f6e43;   /* svjetlija šumska zelena */
  --primary-deep:   #103f28;   /* tamnozelena */
  --primary-darker: #0a2c1c;   /* najtamnija zelena */
  --secondary:      #3f9d6d;   /* mahovinasta zelena */
  --accent:         #c9e265;   /* limeta / svjež naglasak */
  --accent-soft:    #e8f3c9;

  /* Neutralna paleta */
  --ink:        #11231a;
  --ink-soft:   #38503f;
  --muted:      #6c8073;
  --line:       #d8e4dc;

  /* Pozadine */
  --bg:         #f4f8f4;
  --bg-alt:     #eaf2ea;
  --surface:    #ffffff;
  --surface-2:  #f0f6f0;

  --radius:     18px;
  --radius-sm:  12px;
  --shadow-sm:  0 2px 10px rgba(16, 63, 40, 0.06);
  --shadow-md:  0 14px 40px rgba(16, 63, 40, 0.12);
  --shadow-lg:  0 28px 70px rgba(10, 44, 28, 0.18);

  --max:        1180px;
  --gutter:     clamp(20px, 5vw, 56px);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-deep); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--primary-darker); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { color: var(--ink-soft); }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(64px, 9vw, 120px); }
.section--alt { background: var(--bg-alt); }
.section--deep { background: var(--primary-darker); color: #dcefe2; }
.section--deep h2, .section--deep h3 { color: #fff; }
.section--deep p { color: #aecdb9; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--secondary);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); display: inline-block; }
.section--deep .eyebrow { color: var(--accent); }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ink-soft); max-width: 60ch; }

/* Skip link */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--primary-deep); color: #fff; padding: 12px 18px;
  border-radius: 10px; transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  padding: 15px 30px; border-radius: 100px; border: 2px solid transparent;
  cursor: pointer; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  text-align: center;
}
.btn--primary { background: var(--primary-deep); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--primary); color: #fff; transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--primary-deep); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary-deep); transform: translateY(-3px); }
.btn--accent { background: var(--accent); color: var(--primary-darker); }
.btn--accent:hover { background: #d6ec82; transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn--lg { padding: 18px 38px; font-size: 1.05rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244, 248, 244, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--serif); font-weight: 600; font-size: 1.4rem; color: var(--primary-darker); }
.brand:hover { color: var(--primary-darker); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(140deg, var(--primary) 0%, var(--primary-darker) 100%);
  display: grid; place-items: center; color: var(--accent); font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
}

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  font-weight: 500; font-size: 0.98rem; color: var(--ink-soft);
  padding: 9px 14px; border-radius: 10px; transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.nav-links a:hover, .nav-links a.active { background: var(--surface-2); color: var(--primary-deep); }
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line);
  background: var(--surface); border-radius: 12px; cursor: pointer;
  flex-direction: column; gap: 5px; align-items: center; justify-content: center;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--primary-darker); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--surface); padding: 18px var(--gutter) 28px; gap: 4px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    transform: translateY(-130%); transition: transform 0.4s var(--ease); z-index: 90;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 14px; font-size: 1.05rem; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 88% -8%, rgba(63,157,109,0.20), transparent 60%),
    radial-gradient(700px 500px at -5% 110%, rgba(16,63,40,0.10), transparent 55%),
    var(--bg);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 70px);
  align-items: center; padding-block: clamp(56px, 8vw, 104px);
}
.hero-copy { max-width: 36rem; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .hl { color: var(--primary); position: relative; }
.hero .lead { margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { display: flex; gap: 34px; margin-top: 46px; flex-wrap: wrap; }
.hero-stats .stat strong { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--primary-deep); line-height: 1; }
.hero-stats .stat span { font-size: 0.85rem; color: var(--muted); }

.hero-media { position: relative; }
.hero-media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 26px; box-shadow: var(--shadow-lg);
}
.hero-badge {
  position: absolute; left: -18px; bottom: 26px;
  background: var(--surface); border-radius: 16px; padding: 16px 20px;
  box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 13px;
  max-width: 240px;
}
.hero-badge .dot { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; font-size: 1.2rem; }
.hero-badge p { font-size: 0.85rem; color: var(--ink-soft); margin: 0; }
.hero-badge strong { color: var(--primary-darker); display: block; font-family: var(--serif); }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 460px; margin-inline: auto; }
  .hero-media img { aspect-ratio: 5 / 4; }
}

/* ---------- Section heading ---------- */
.sec-head { max-width: 52rem; margin-bottom: 52px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-head p { margin-top: 16px; }

/* ---------- Feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(63,157,109,0.4); }
.card .ico {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--accent-soft), #d4ecbf); font-size: 1.5rem; margin-bottom: 20px;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.97rem; }

/* ---------- Split (media + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 6vw, 80px); align-items: center; }
.split--reverse .split-media { order: 2; }
.split-media img { border-radius: 22px; box-shadow: var(--shadow-md); aspect-ratio: 5 / 4; object-fit: cover; width: 100%; }
.split-list { list-style: none; margin-top: 26px; display: grid; gap: 16px; }
.split-list li { display: flex; gap: 14px; align-items: flex-start; }
.split-list .tick {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 9px; background: var(--accent-soft);
  color: var(--primary-deep); display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; margin-top: 2px;
}
.split-list b { color: var(--primary-darker); font-family: var(--serif); font-weight: 600; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: -1; }
}

/* ---------- Product section ---------- */
.product {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 5vw, 64px);
  align-items: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: 28px; padding: clamp(28px, 5vw, 56px); box-shadow: var(--shadow-md);
}
.product-media { display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, var(--surface-2), var(--bg-alt)); border-radius: 22px; padding: 30px; }
.product-media img { max-height: 360px; width: auto; filter: drop-shadow(0 24px 40px rgba(16,63,40,0.22)); }
.product-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 26px; }
.product-tags span { font-size: 0.8rem; font-weight: 600; color: var(--primary-deep); background: var(--surface-2); border: 1px solid var(--line); padding: 7px 14px; border-radius: 100px; }
@media (max-width: 820px) { .product { grid-template-columns: 1fr; } .product-media { order: -1; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 14px; overflow: hidden; transition: box-shadow 0.3s var(--ease); }
.faq-item.open { box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: var(--sans); font-weight: 600; font-size: 1.05rem; color: var(--primary-darker);
  padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 18px;
}
.faq-q .chev { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; transition: transform 0.35s var(--ease), background 0.3s var(--ease); font-size: 0.9rem; color: var(--primary-deep); }
.faq-item.open .faq-q .chev { transform: rotate(45deg); background: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a-inner { padding: 0 24px 22px; color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Community / stats band ---------- */
.band-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 28px; margin-top: 44px; }
.band-grid .b strong { display: block; font-family: var(--serif); font-size: 2.4rem; color: var(--accent); line-height: 1; }
.band-grid .b span { color: #aecdb9; font-size: 0.92rem; }

/* ---------- CTA ---------- */
.cta-box {
  position: relative; overflow: hidden; border-radius: 28px;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary-darker));
  color: #fff; padding: clamp(40px, 6vw, 72px); text-align: center;
}
.cta-box::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(201,226,101,0.22), transparent 70%); top: -120px; right: -80px; }
.cta-box h2 { color: #fff; position: relative; }
.cta-box p { color: #bcdac8; max-width: 48ch; margin: 16px auto 30px; position: relative; }
.cta-box .hero-actions { justify-content: center; position: relative; }

/* ---------- Forms ---------- */
.form-wrap { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 820px) { .form-wrap { grid-template-columns: 1fr; } }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 42px); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--primary-darker); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 13px 15px; transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 4px rgba(63,157,109,0.15); }
.field textarea { min-height: 130px; resize: vertical; }
.field .err { display: none; color: #b23b3b; font-size: 0.82rem; margin-top: 6px; }
.field.invalid input, .field.invalid textarea { border-color: #cf6a6a; }
.field.invalid .err { display: block; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 14px; }

.info-list { list-style: none; display: grid; gap: 22px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list .ico { flex-shrink: 0; width: 46px; height: 46px; border-radius: 13px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; font-size: 1.2rem; box-shadow: var(--shadow-sm); }
.info-list b { display: block; color: var(--primary-darker); font-family: var(--serif); margin-bottom: 2px; }
.info-list span, .info-list a { font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- Legal / article pages ---------- */
.page-hero { background: linear-gradient(160deg, var(--primary-darker), var(--primary-deep)); color: #fff; padding-block: clamp(56px, 8vw, 92px); }
.page-hero .eyebrow { color: var(--accent); }
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero p { color: #bcdac8; margin-top: 16px; max-width: 56ch; }
.breadcrumb { font-size: 0.85rem; color: #9ec3ac; margin-bottom: 16px; }
.breadcrumb a { color: #cdead9; }

.prose { max-width: 800px; }
.prose h2 { margin-top: 44px; margin-bottom: 14px; }
.prose h3 { margin-top: 28px; margin-bottom: 10px; color: var(--primary-deep); }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 8px; color: var(--ink-soft); }
.prose strong { color: var(--primary-darker); }
.toc { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px 26px; margin-bottom: 36px; }
.toc h2 { margin: 0 0 12px; font-size: 1.1rem; }
.toc ul { list-style: none; margin: 0; columns: 2; gap: 18px; }
.toc li { margin-bottom: 8px; }
@media (max-width: 620px) { .toc ul { columns: 1; } }

.notice { background: var(--accent-soft); border: 1px solid #cfe39e; border-left: 4px solid var(--secondary); border-radius: 12px; padding: 18px 22px; margin: 26px 0; }
.notice p { margin: 0; color: var(--primary-darker); font-size: 0.95rem; }

/* ---------- Success page ---------- */
.success-wrap { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: 80px; }
.success-card { max-width: 560px; }
.success-check {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 28px;
  background: linear-gradient(140deg, var(--secondary), var(--primary-deep));
  display: grid; place-items: center; color: #fff; font-size: 2.4rem; box-shadow: var(--shadow-md);
  animation: pop 0.6s var(--ease) both;
}
@keyframes pop { 0% { transform: scale(0.4); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-darker); color: #aecdb9; padding-block: 64px 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer p { color: #9ebfab; font-size: 0.92rem; }
.footer-col h4 { color: #fff; font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: #aecdb9; font-size: 0.95rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 44px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: 0.85rem; color: #87a795; }
.footer-bottom a { color: #aecdb9; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(140%);
  bottom: 18px; width: min(680px, calc(100% - 28px)); z-index: 200;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 20px 22px;
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  transition: transform 0.5s var(--ease);
}
.cookie-banner.show { transform: translateX(-50%) translateY(0); }
.cookie-banner p { font-size: 0.9rem; margin: 0; flex: 1 1 280px; }
.cookie-banner .cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner .btn { padding: 11px 20px; font-size: 0.92rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Focus visibility */
:focus-visible { outline: 3px solid var(--secondary); outline-offset: 2px; border-radius: 4px; }
