/* ===== BOJE =====
   Smirena, "čista" paleta: topla bijela, tamna tirkizna i koralna za akcente. */
:root {
  --bg: #f7f4ee;
  --bg-2: #efe9df;
  --card: #ffffff;
  --ink: #142624;
  --muted: #5e6c69;
  --line: #e2dbcf;
  --teal: #134e4a;
  --teal-2: #1f6b65;
  --sage: #a9c5b6;
  --coral: #e8785c;
  --radius: 24px;
  --serif: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
button, input { font: inherit; }

section { padding: 100px 6vw; max-width: 1400px; margin: 0 auto; }

/* Naslovi: krupni serif, a <em> riječi u kurzivu i tirkiznoj boji */
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.02; }
h1 em, h2 em { color: var(--teal-2); }
h2 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h3 { font-size: 1.1rem; font-weight: 600; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-2);
  margin-bottom: 14px;
}
.eyebrow.light { color: var(--sage); }
.muted { color: var(--muted); }
.note { margin-top: 24px; font-size: 0.85rem; color: var(--muted); }
.head { margin-bottom: 44px; max-width: 760px; }

/* ===== DUGMAD ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--teal);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { background: var(--coral); transform: translateY(-2px); }
.btn-small { padding: 10px 20px; font-size: 0.9rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-light { background: #fff; color: var(--teal); }
.btn-light:hover { background: var(--coral); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-ghost-light:hover { background: #fff; color: var(--teal); }
.btn-full { width: 100%; }
.link-btn { background: none; border: none; color: var(--muted); cursor: pointer; font-weight: 600; }
.link-btn:hover { color: var(--ink); }

/* ===== MENI ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16px 6vw;
  background: rgba(247, 244, 238, 0.85);
  backdrop-filter: blur(12px);
}
.logo { font-family: var(--serif); font-size: 1.8rem; line-height: 1; }
.logo em { color: var(--teal-2); }
.nav nav {
  display: flex;
  gap: 4px;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.nav nav a {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.nav nav a:hover { background: var(--bg-2); color: var(--ink); }
.nav nav a.active { background: var(--teal); color: #fff; }
.nav .btn { justify-self: end; }

/* ===== HERO ===== */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 50px;
}
.pill-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #2fa36b; box-shadow: 0 0 0 4px rgba(47, 163, 107, 0.18); }
.hero h1 { font-size: clamp(3.2rem, 6.4vw, 5.8rem); margin-bottom: 24px; }
.hero h1 em { color: var(--coral); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 500px; margin-bottom: 32px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }
.trust { list-style: none; display: flex; gap: 32px; flex-wrap: wrap; font-size: 0.9rem; color: var(--muted); }
.trust strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.9rem; color: var(--ink); line-height: 1.1; }

.hero-visual { position: relative; }
.hero-img {
  aspect-ratio: 1 / 1.05;
  border-radius: 200px 200px var(--radius) var(--radius); /* lučni vrh kao prozor */
  overflow: hidden;
}
.hero-img img { animation: zoomIn 1.6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes zoomIn { from { transform: scale(1.12); } }
.chip {
  position: absolute;
  background: #fff;
  padding: 12px 18px;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(20, 38, 36, 0.12);
  font-size: 0.9rem;
  font-weight: 600;
  animation: float 5s ease-in-out infinite;
}
.chip-1 { left: -30px; top: 30%; color: var(--teal); }
.chip-2 { right: -20px; bottom: 12%; animation-delay: -2.5s; }
.chip-2 strong { color: var(--coral); font-size: 1.1rem; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ===== USLUGE ===== */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.filter {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.filter:hover { border-color: var(--teal); }
.filter.active { background: var(--teal); color: #fff; border-color: var(--teal); }

.price-list { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.price-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  align-items: center;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s;
  animation: rowIn 0.4s both;
}
.price-row:last-child { border-bottom: none; }
.price-row:hover { background: #fbf9f5; }
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } }
.price-row h3 { margin-bottom: 2px; }
.price-row p { color: var(--muted); font-size: 0.9rem; }
.price-row .time { font-size: 0.85rem; color: var(--muted); white-space: nowrap; }
.price-row .price { font-family: var(--serif); font-size: 1.8rem; white-space: nowrap; text-align: right; min-width: 120px; }
.price-row .price small { font-family: "Plus Jakarta Sans", sans-serif; font-size: 0.75rem; color: var(--muted); margin-right: 4px; }

/* ===== ZAKAZIVANJE ===== */
.booking-box {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 50px;
  padding: 56px;
  border-radius: 32px;
  background: var(--teal);
  color: #fff;
}
.booking-intro h2 { margin-bottom: 14px; }
.booking-intro > p { color: rgba(255, 255, 255, 0.75); margin-bottom: 34px; }
.steps-mini { list-style: none; display: grid; gap: 10px; counter-reset: s; }
.steps-mini li {
  counter-increment: s;
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  transition: color 0.3s;
}
.steps-mini li::before {
  content: counter(s);
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s;
}
.steps-mini li.on { color: #fff; }
.steps-mini li.on::before { background: var(--coral); border-color: var(--coral); }
.steps-mini li.done::before { content: "✓"; background: var(--sage); border-color: var(--sage); color: var(--teal); }

.booking-app {
  background: var(--bg);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 32px;
  min-height: 420px;
}
.step-panel { display: none; animation: panelIn 0.4s ease; }
.step-panel.active { display: block; }
@keyframes panelIn { from { opacity: 0; transform: translateX(16px); } }
.step-panel h3 { margin-bottom: 14px; }
.step-panel h3:not(:first-child) { margin-top: 26px; }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice {
  text-align: left;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.choice:hover { border-color: var(--teal); transform: translateY(-3px); box-shadow: 0 12px 24px rgba(20,38,36,0.08); }
.choice strong { display: block; margin-bottom: 2px; }
.choice span { font-size: 0.85rem; color: var(--muted); }

.days { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.day {
  padding: 12px 4px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}
.day small { display: block; font-size: 0.72rem; color: var(--muted); text-transform: uppercase; }
.day strong { font-size: 1.2rem; }
.day:hover { border-color: var(--teal); }
.day.active { background: var(--teal); color: #fff; border-color: var(--teal); }
.day.active small { color: var(--sage); }

.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot {
  padding: 11px 4px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}
.slot:hover:not(:disabled) { border-color: var(--coral); color: var(--coral); }
.slot:disabled { opacity: 0.35; text-decoration: line-through; cursor: not-allowed; }
.panel-nav { margin-top: 22px; }

.summary {
  padding: 18px 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px dashed var(--sage);
  margin-bottom: 18px;
  font-size: 0.95rem;
}
.summary strong { color: var(--teal); }
.book-form { display: grid; gap: 10px; }
.book-form input[type="text"], .book-form input[type="tel"] {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 1rem;
}
.book-form input:focus { outline: none; border-color: var(--teal); }
.check { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--muted); margin: 4px 0 6px; }
.check input { accent-color: var(--teal); width: 18px; height: 18px; }

.done { text-align: center; padding: 30px 10px; }
.done-icon {
  width: 72px; height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--teal);
  display: grid;
  place-items: center;
  font-size: 2rem;
  animation: pop 0.5s cubic-bezier(.2,1.6,.4,1);
}
@keyframes pop { from { transform: scale(0); } }
.done h3 { font-family: var(--serif); font-weight: 400; font-size: 2.2rem; margin-bottom: 10px; }
.done p { color: var(--muted); margin-bottom: 24px; }

/* ===== TIM ===== */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.doc-photo {
  aspect-ratio: 3 / 3.6;
  border-radius: 140px 140px var(--radius) var(--radius);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  overflow: hidden;
}
.doc-photo span {
  font-family: var(--serif);
  font-size: 4.5rem;
  color: rgba(255, 255, 255, 0.85);
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1);
}
.doc:hover .doc-photo span { transform: scale(1.15); }
.d1 { background: var(--teal); }
.d2 { background: var(--sage); }
.d3 { background: var(--coral); }
.d4 { background: #c9b79c; }
.doc p { color: var(--muted); font-size: 0.9rem; }

/* ===== ORDINACIJA ===== */
.clinic-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: 260px 260px;
  gap: 16px;
}
.cimg { position: relative; border-radius: var(--radius); overflow: hidden; }
.cimg.tall { grid-row: span 2; }
.cimg img { transition: transform 0.8s cubic-bezier(.2,.8,.2,1); }
.cimg:hover img { transform: scale(1.07); }
.cimg figcaption {
  position: absolute;
  left: 16px; bottom: 16px;
  background: rgba(255, 255, 255, 0.92);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ===== FAQ ===== */
.faq-list { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 4px;
  font-family: var(--serif);
  font-size: 1.6rem;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.2rem;
  transition: transform 0.3s, background 0.3s, color 0.3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--teal); color: #fff; border-color: var(--teal); }
.faq details p { padding: 0 4px 24px; color: var(--muted); max-width: 680px; animation: rowIn 0.35s; }

/* ===== KONTAKT ===== */
.contact-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 56px;
  border-radius: 32px;
  background: var(--ink);
  color: #fff;
}
.addr { color: rgba(255, 255, 255, 0.7); margin: 12px 0 26px; }
.contact-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.hours div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.hours dt { color: rgba(255, 255, 255, 0.7); }
.hours dd { font-weight: 600; text-align: right; }

footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 30px 6vw 40px;
  font-size: 0.85rem;
  color: var(--muted);
}
footer .logo { font-size: 1.4rem; color: var(--ink); }
footer a { text-decoration: underline; }

/* ===== POJAVLJIVANJE PRI SKROLOVANJU ===== */
.reveal { opacity: 0; translate: 0 34px; transition: opacity 0.9s, translate 0.9s cubic-bezier(.2,.8,.2,1); }
.reveal.visible { opacity: 1; translate: 0 0; }

/* ===== TABLET ===== */
@media (max-width: 980px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav nav { display: none; }
  .hero, .booking-box, .contact-card { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .booking-box, .contact-card { padding: 36px; }
}

/* ===== TELEFON ===== */
@media (max-width: 600px) {
  section { padding: 70px 18px; }
  .chip-1 { left: 8px; }
  .chip-2 { right: 8px; }
  .price-row { grid-template-columns: 1fr auto; padding: 18px; }
  .price-row .time { display: none; }
  .booking-box, .contact-card { padding: 24px; border-radius: 24px; }
  .booking-app { padding: 20px; }
  .choice-grid { grid-template-columns: 1fr; }
  .days { grid-template-columns: repeat(3, 1fr); }
  .slots { grid-template-columns: repeat(3, 1fr); }
  .clinic-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .cimg { aspect-ratio: 4 / 3; }
  .cimg.tall { grid-row: auto; }
  .team-grid { gap: 12px; }
  .doc-photo span { font-size: 3rem; }
}
