/* ============================================================
   APONIA INTERNATIONAL — design system
   Recept #5 "International medical editorial" · paleta.md LOCK
   crno + zlato + slonovača · Playfair Display + Inter
   ============================================================ */

:root {
  --ink: #141311;
  --charcoal: #2B2A27;
  --gold: #C2A05A;
  --gold-deep: #A6853E;
  --gold-soft: #EBE0C9;
  --paper: #F6F3ED;
  --ivory: #EDE8DF;
  --white: #FFFFFF;
  --text: #201E1B;
  --text-soft: #57534B;
  --text-light: #EDEAE3;
  --line: #DDD6C9;

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;

  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 48px; --s6: 64px; --s7: 96px;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(20, 19, 17, .10);
  --maxw: 1180px;
  color-scheme: light;
}

/* ---------- baza ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.2em; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 5vw, 54px); }
h2 { font-size: clamp(27px, 3.6vw, 38px); }
h3 { font-size: clamp(19px, 2.2vw, 23px); }
.lead { font-size: clamp(17px, 1.9vw, 20px); color: var(--text-soft); max-width: 62ch; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

section { padding: var(--s7) 0; }
@media (max-width: 768px) { section { padding: var(--s6) 0; } }

.bg-white { background: var(--white); }
.bg-ivory { background: var(--ivory); }
.bg-dark { background: var(--ink); color: var(--text-light); }
.bg-dark h2, .bg-dark h3 { color: var(--white); }
.bg-dark .lead { color: var(--text-light); opacity: .92; }

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-deep); margin-bottom: var(--s2);
}
.bg-dark .eyebrow { color: var(--gold); }

/* ---------- dugmad ---------- */
.btn {
  display: inline-block; font-family: var(--font-body); font-weight: 600; font-size: 16px;
  padding: 15px 30px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: background .18s, color .18s, transform .18s;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-deep); color: var(--white); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.bg-dark .btn-ghost, .hero .btn-ghost, .cta-band .btn-ghost { border-color: var(--gold); color: var(--gold); }
.bg-dark .btn-ghost:hover, .hero .btn-ghost:hover, .cta-band .btn-ghost:hover { background: var(--gold); color: var(--ink); }
.btn-row { display: flex; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s4); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; background: var(--ink);
  border-bottom: 1px solid rgba(194, 160, 90, .25);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: 14px 22px; max-width: var(--maxw); margin: 0 auto; }
.brand { font-family: var(--font-display); font-style: italic; font-size: 24px; color: var(--white); display: flex; align-items: center; gap: 10px; }
.brand svg { flex-shrink: 0; }
.brand span { color: var(--gold); }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; padding: 0; }
.nav-links a { color: var(--text-light); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--gold); text-decoration: none; }
.nav-links a.btn-gold, .nav-links a.btn-gold:hover { color: var(--ink); }
.nav-links a.btn { padding: 11px 22px; font-size: 14px; }
.nav-links a.btn:hover { color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle svg { stroke: var(--white); width: 26px; height: 26px; }
.brand-mark { flex-shrink: 0; width: 42px; }

/* nav dropdown (Treatments) */
.nav-has-dropdown { position: relative; }
.nav-drop-toggle {
  background: none; border: 0; cursor: pointer; font-family: var(--font-body);
  color: var(--text-light); font-size: 15px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px; padding: 0;
}
.nav-drop-toggle:hover { color: var(--gold); }
.nav-drop-toggle .caret { width: 11px; height: 11px; transition: transform .2s; }
.nav-has-dropdown.open .nav-drop-toggle .caret { transform: rotate(180deg); }
.nav-dropdown {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%); min-width: 252px; background: var(--ink);
  border: 1px solid rgba(194,160,90,.25); border-radius: 12px; box-shadow: var(--shadow); display: none; z-index: 80;
}
.nav-dropdown li { margin: 0; }
.nav-dropdown a { display: block; padding: 11px 14px; border-radius: 8px; font-size: 14.5px; white-space: nowrap; }
.nav-dropdown a:hover { background: rgba(194,160,90,.12); color: var(--gold); text-decoration: none; }
.nav-has-dropdown.open .nav-dropdown { display: block; }
@media (hover: hover) and (min-width: 981px) {
  .nav-has-dropdown:hover .nav-dropdown, .nav-has-dropdown:focus-within .nav-dropdown { display: block; }
  .nav-has-dropdown::after { content: ""; position: absolute; left: -10px; right: -10px; top: 100%; height: 16px; }
}

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink); flex-direction: column; align-items: stretch;
    padding: var(--s3) 22px var(--s4); gap: 0; border-bottom: 1px solid rgba(194,160,90,.25);
    max-height: calc(100vh - 66px); overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links > li > a, .nav-drop-toggle { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav-drop-toggle { width: 100%; justify-content: space-between; }
  .nav-links a.btn { margin-top: var(--s2); text-align: center; border-bottom: 0; padding: 14px 22px; }
  .nav-dropdown {
    position: static; transform: none; min-width: 0; display: none; box-shadow: none;
    border: 0; background: transparent; padding: 0 0 6px 14px; border-radius: 0;
  }
  .nav-has-dropdown.open .nav-dropdown { display: block; }
  .nav-dropdown a { padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
}

/* active nav link */
.nav-links a[aria-current="page"] { color: var(--gold); }
.nav-has-dropdown.is-active > .nav-drop-toggle { color: var(--gold); }

/* ---------- hero ---------- */
.hero { background: linear-gradient(160deg, var(--ink) 62%, #26231D 100%); color: var(--text-light); padding: var(--s7) 0; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--s6); align-items: center; }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero .lead { color: var(--text-light); opacity: .92; margin-top: var(--s3); }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--s2); display: block; }
.hero-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.trust-bar {
  margin-top: var(--s5); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4);
  padding-top: var(--s3); border-top: 1px solid rgba(194, 160, 90, .3);
  font-size: 14.5px; opacity: .95;
}
.trust-bar b { color: var(--gold); font-weight: 600; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid > * { min-width: 0; }
  .hero-media { order: 2; width: 100%; max-width: 420px; }
}

/* ---------- kartice / gridovi ---------- */
.grid { display: grid; gap: var(--s3); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .grid > * { min-width: 0; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s4); display: block; color: var(--text); transition: transform .18s, box-shadow .18s;
}
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.card h3 { margin-bottom: var(--s1); }
.card p { color: var(--text-soft); font-size: 15.5px; }
.card .price-line { display: block; margin-top: var(--s2); font-weight: 600; color: var(--gold-deep); font-size: 15px; }
.card .ico {
  width: 52px; height: 52px; border-radius: 13px; background: var(--gold-soft); color: var(--gold-deep);
  display: grid; place-items: center; margin-bottom: var(--s3);
}

/* ---------- tabele (cene) ---------- */
.price-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 24px rgba(20,19,17,.06); font-size: 15.5px; }
.price-table th, .price-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.price-table th { background: var(--ink); color: var(--white); font-family: var(--font-body); font-weight: 600; font-size: 14px; letter-spacing: .04em; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table td:last-child { white-space: nowrap; font-weight: 600; }
.price-table tr.total td { background: var(--gold-soft); font-weight: 700; color: var(--ink); }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
.table-note { font-size: 14px; color: var(--text-soft); margin-top: var(--s2); }

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; display: grid; gap: var(--s3); counter-reset: step; }
.steps li { position: relative; padding-left: 64px; counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--ink);
  font-weight: 700; display: grid; place-items: center; font-size: 18px;
}
.steps b { display: block; margin-bottom: 4px; font-size: 17px; }
.steps p { color: var(--text-soft); font-size: 15.5px; }
.bg-dark .steps p { color: var(--text-light); opacity: .85; }

/* ---------- ticks ---------- */
.ticks { list-style: none; padding: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-deep); font-weight: 700; }
.bg-dark .ticks li::before { color: var(--gold); }

/* ---------- citati / recenzije ---------- */
.quote { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: var(--s4); }
.quote p { font-size: 16px; }
.quote .who { margin-top: var(--s2); font-weight: 600; font-size: 14.5px; color: var(--gold-deep); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--s2); max-width: 820px; margin: 0 auto; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 0; overflow: hidden; }
.faq summary { cursor: pointer; font-weight: 600; padding: 18px 22px; list-style: none; position: relative; padding-right: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); color: var(--gold-deep); font-size: 22px; font-weight: 400; }
.faq details[open] summary::after { content: "×"; }
.faq details p { padding: 0 22px 20px; color: var(--text-soft); }

/* ---------- media / placeholderi ---------- */
.media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.ph {
  background: linear-gradient(150deg, var(--charcoal), var(--ink));
  color: var(--gold); display: grid; place-items: center; text-align: center;
  font-family: var(--font-display); font-style: italic; font-size: 19px;
  padding: var(--s5) var(--s4); min-height: 260px; border-radius: var(--radius);
}
.ph small { display: block; font-family: var(--font-body); font-style: normal; font-size: 12.5px; color: var(--text-light); opacity: .6; margin-top: 10px; letter-spacing: .06em; }

/* ---------- split (2 kolone tekst+media) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- CTA banda ---------- */
.cta-band {
  background: linear-gradient(150deg, var(--ink), var(--charcoal));
  color: var(--text-light); border-radius: calc(var(--radius) + 6px);
  padding: var(--s6) var(--s5); text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band h2 em { font-style: italic; color: var(--gold); }
.cta-band p { max-width: 56ch; margin: var(--s2) auto var(--s4); opacity: .92; }
.cta-band .btn-row { justify-content: center; }
.cta-band .micro { font-size: 14px; opacity: .75; margin-top: var(--s3); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--text-light); padding: var(--s6) 0 var(--s4); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s5); }
.site-footer h4 { color: var(--gold); font-family: var(--font-body); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: var(--s2); }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--text-light); }
.site-footer a:hover { color: var(--gold); }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: var(--s5); padding-top: var(--s3); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s2); font-size: 13.5px; opacity: .75; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; gap: var(--s4); } }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 70;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 26px rgba(0,0,0,.28);
}
.wa-float:hover { transform: scale(1.06); text-decoration: none; }

/* ---------- reveal animacije (R1) ---------- */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; } /* bez JS sve vidljivo */
html.js .reveal.in { opacity: 1; transform: none; } /* mora nadjačati red iznad po specifičnosti */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, a.card:hover, .wa-float:hover { transform: none; }
}

/* ---------- sitno ---------- */
.author-box {
  display: flex; gap: var(--s3); align-items: center; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3);
  font-size: 14.5px; color: var(--text-soft);
}
.author-box b { color: var(--text); }
.author-box img { object-position: center 20%; } /* kruzni crop fokusiran na lice, ne torzo */
.breadcrumbs { font-size: 13.5px; color: var(--text-soft); padding: var(--s2) 0 0; }
.breadcrumbs a { color: var(--text-soft); }

/* ---------- blog ---------- */
.post-head { padding: var(--s6) 0 var(--s4); }
.post-meta { font-size: 14px; color: var(--text-soft); margin-top: var(--s3); }
.post-meta b { color: var(--text); font-weight: 600; }
.post { font-size: 17.5px; }
.post > p { margin-bottom: var(--s3); }
.post > p.lead { font-size: inherit; color: inherit; font-weight: inherit; max-width: none; } /* prvi paragraf isti kao ostali */
.post h2 { margin: var(--s5) 0 var(--s2); }
.post h3 { margin: var(--s4) 0 var(--s1); }
.post ul, .post ol { margin: 0 0 var(--s3); padding-left: 1.3em; display: grid; gap: 9px; }
.post a { color: var(--gold-deep); text-decoration: underline; }
.post .table-wrap { margin: var(--s3) 0 var(--s4); }
.post blockquote { margin: var(--s4) 0; padding: var(--s2) var(--s4); border-left: 4px solid var(--gold); background: var(--white); border-radius: 0 var(--radius) var(--radius) 0; color: var(--text-soft); font-style: italic; }
.callout { background: var(--gold-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3) var(--s4); margin: var(--s4) 0; }
.callout b { color: var(--ink); }
.post-card h3 { margin-bottom: var(--s1); }
.post-card .kicker-sm { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); }
