/* ---------- Font (lokalno, bez slanja podataka Googleu; Nunito ima sva hrvatska slova) ---------- */
@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/nunito-latin-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/nunito-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Boje i osnovne vrijednosti ---------- */
:root {
  color-scheme: light;
  --cream: #FFF8F0;
  --cream-2: #FBEEE2;
  --white: #FFFFFF;
  --ink: #173A44;
  --ink-soft: #4B6670;
  --teal: #1F7A72;
  --teal-dark: #155E57;
  --teal-soft: #DDF1ED;
  --orange: #F28C4A;
  --orange-soft: #FDE6D4;
  --orange-ink: #A4461A;
  --wa: #0B7D45;
  --wa-dark: #086537;
  --line: #EBDDCF;
  --radius: 22px;
  --radius-lg: 32px;
  --shadow: 0 1px 2px rgba(23, 58, 68, .06), 0 10px 28px rgba(23, 58, 68, .08);
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal-dark); }

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.2vw + .9rem, 3.6rem); }
h2 { font-size: clamp(1.75rem, 2.2vw + 1rem, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container { width: min(1120px, 100% - 40px); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  z-index: 100;
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

.icon { width: 24px; height: 24px; flex: none; }

/* Privremeni tekst koji treba zamijeniti stvarnim podacima */
.ph {
  background: #FFF0A0;
  color: #5A4500;
  border-radius: 4px;
  padding: 0 .25em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Gumbi ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 800 1.05rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-wa {
  background: var(--wa);
  color: #fff;
  box-shadow: 0 6px 18px rgba(11, 125, 69, .28);
}
.btn-wa:hover { background: var(--wa-dark); }
.btn-outline {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal-dark); }
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: .95rem; }
.btn-sm .icon { width: 20px; height: 20px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 520px) {
  .btn-row .btn { width: 100%; }
}

/* ---------- Zaglavlje ---------- */
.site-header { padding: 18px 0; }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark { width: 48px; height: 48px; flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name strong { font-weight: 800; font-size: 1.1rem; letter-spacing: -0.01em; }
.brand-name span {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav-link { color: var(--ink); font-weight: 700; font-size: 1rem; text-decoration: none; }
.nav-link:hover { color: var(--teal); }
@media (max-width: 880px) {
  .nav-link { display: none; }
}
/* Na mobitelu gumb za upis je u plutajućoj traci pri dnu */
@media (max-width: 560px) {
  .nav .btn { display: none; }
}
@media (max-width: 400px) {
  .brand-name strong { font-size: 1rem; }
  .brand-mark { width: 42px; height: 42px; }
}

/* ---------- Uvodni dio ---------- */
.hero { padding: 24px 0 80px; overflow: hidden; }
.hero .container { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) {
  .hero .container { grid-template-columns: 1.05fr 1fr; gap: 56px; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 8px 16px 8px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal-dark);
  font-weight: 800;
  font-size: .95rem;
}
.badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22A85A;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 168, 90, .5); }
  70% { box-shadow: 0 0 0 10px rgba(34, 168, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 168, 90, 0); }
}

.hero h1 em { font-style: normal; color: var(--teal); }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 34em; margin-bottom: 28px; }

.hero-facts {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 1rem;
}
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts .icon { width: 20px; height: 20px; color: var(--teal); }

.hero-media { position: relative; }
.hero-media::before {
  content: "";
  position: absolute;
  inset: 7% -3% -5% 7%;
  background: var(--orange-soft);
  border-radius: 40px;
  transform: rotate(3deg);
}
.hero-media img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.float-card {
  position: absolute;
  left: -14px;
  bottom: -24px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px 14px 14px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
  font-weight: 800;
  line-height: 1.25;
}
.float-card small { display: block; font-weight: 700; font-size: .85rem; color: var(--ink-soft); }
.icon-bubble {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
}
@media (max-width: 600px) {
  .float-card { left: 12px; bottom: -20px; }
}

/* ---------- Zašto upis sada ---------- */
.why { padding: 0 0 88px; }
.why-card {
  display: grid;
  gap: 28px;
  padding: clamp(28px, 5vw, 56px);
  background: var(--teal);
  color: #fff;
  border-radius: var(--radius-lg);
}
@media (min-width: 880px) {
  .why-card { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 48px; }
}
.why-card h2 { color: #fff; }
.why-card p { color: #E3F4F1; margin: 0; }

.why-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.why-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .1);
  border-radius: 16px;
  font-weight: 700;
}
.why-points .icon { color: #FFD3B3; }

/* ---------- Sekcije ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--cream-2); }
.eyebrow {
  margin-bottom: 10px;
  color: var(--teal);
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.section-head { max-width: 660px; margin-bottom: 40px; }
.section-head p { color: var(--ink-soft); }

/* ---------- Kako upisati ---------- */
.upis-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 960px) {
  .upis-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
}

.steps { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 16px; }
.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 22px 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.step-num {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--orange-soft);
  color: var(--orange-ink);
  font: 800 1.5rem/52px var(--font-body);
  text-align: center;
}
.step h3 { margin-bottom: 4px; }
.step p { margin: 0; color: var(--ink-soft); }
.step .step-note { margin-top: 8px; font-size: .95rem; }
@media (max-width: 480px) {
  .step { grid-template-columns: 40px 1fr; gap: 14px; padding: 18px; }
  .step-num { width: 40px; height: 40px; border-radius: 12px; font-size: 1.2rem; line-height: 40px; }
}

.upis-media { position: relative; padding-bottom: 72px; }
.upis-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* Primjer poruke u stilu chata */
.chat {
  position: absolute;
  left: -20px;
  right: 24px;
  bottom: 0;
  max-width: 360px;
  padding: 14px 16px 10px;
  background: #DCF8C6;
  color: #1B2B22;
  border-radius: 18px 18px 4px 18px;
  box-shadow: var(--shadow);
  font-size: .98rem;
  line-height: 1.5;
}
.chat-label {
  display: block;
  margin-bottom: 6px;
  color: #3D6B4F;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.chat p { margin: 0 0 4px; }
.chat-meta { display: block; text-align: right; font-size: .78rem; color: #5B7A66; }
@media (max-width: 600px) {
  .chat { left: 12px; right: 12px; }
}

/* ---------- Liječnik ---------- */
.doctor {
  display: grid;
  gap: 32px;
  padding: clamp(24px, 4vw, 48px);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
@media (min-width: 860px) {
  .doctor { grid-template-columns: 220px 1fr; align-items: center; gap: 48px; }
}
.doctor-photo {
  width: 200px;
  aspect-ratio: 1;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-soft);
  border: 6px solid var(--cream);
  color: var(--teal);
}
.doctor-photo .icon { width: 46%; height: 46%; }
.doctor h3 { font-size: 1.6rem; margin-bottom: 4px; }
.doctor .role { color: var(--teal); font-weight: 800; margin-bottom: 16px; }
.doctor .bio { color: var(--ink-soft); }

.highlights { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.highlights li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--cream);
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
}
.highlights .icon { width: 18px; height: 18px; color: var(--teal); }

/* ---------- Lokacija i kontakt ---------- */
.location-photo { position: relative; margin: 0 0 20px; }
.location-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 40% 50%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (min-width: 700px) {
  .location-photo img { aspect-ratio: 2 / 1; object-position: 50% 15%; }
}
.location-photo figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--white);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-weight: 800;
  font-size: .95rem;
}
.location-photo figcaption .icon { width: 18px; height: 18px; color: var(--teal); }

.contact-grid { display: grid; gap: 20px; }
@media (min-width: 860px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
.card {
  padding: clamp(22px, 3vw, 32px);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 20px; }

.info-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 18px; }
.info-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; }
.info-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--teal-soft);
  color: var(--teal);
}
.info-icon .icon { width: 22px; height: 22px; }
.info-list .label {
  display: block;
  color: var(--ink-soft);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.info-list .value { font-weight: 700; overflow-wrap: break-word; }
.info-list a.value { color: var(--ink); text-decoration-color: var(--line); text-underline-offset: 4px; }
.info-list a.value:hover { color: var(--teal-dark); }

.note { color: var(--ink-soft); font-size: 1rem; margin: 12px 0 0; }
.card-action { margin: 20px 0 0; }

/* ---------- Česta pitanja ---------- */
.faq { max-width: 820px; display: grid; gap: 12px; }
.faq details { background: var(--white); border-radius: 18px; box-shadow: var(--shadow); }
.faq summary {
  position: relative;
  padding: 20px 60px 20px 24px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-right: 3px solid var(--teal);
  border-bottom: 3px solid var(--teal);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq .answer { padding: 0 24px 22px; color: var(--ink-soft); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Završni poziv ---------- */
.cta { padding: 0 0 96px; }
.cta-card {
  display: grid;
  overflow: hidden;
  background: var(--orange-soft);
  border-radius: var(--radius-lg);
}
@media (min-width: 860px) {
  .cta-card { grid-template-columns: 1fr 1fr; }
}
.cta-body { align-self: center; padding: clamp(28px, 5vw, 56px); }
.cta-body p { color: var(--ink-soft); margin-bottom: 24px; }
.cta-card img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }

/* ---------- Podnožje ---------- */
.site-footer { padding: 56px 0 32px; background: var(--ink); color: #CFE0E3; font-size: 1rem; }
.site-footer a { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand-name span { color: #8FD3C9; }
.site-footer h3 { color: #fff; font-size: 1.1rem; margin-bottom: 12px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 860px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .9rem;
  color: #A9C3C8;
}
.footer-bottom p { margin: 0; }

/* ---------- Stranica s pravnim informacijama ---------- */
.legal-page { padding: 24px 0 96px; }
.legal {
  max-width: 780px;
  padding: clamp(24px, 4vw, 48px);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.legal h1 { font-size: clamp(1.9rem, 2.5vw + 1rem, 2.6rem); }
.legal h2 { font-size: 1.5rem; margin-top: 2em; }
.legal h3 { font-size: 1.1rem; margin: 1.6em 0 .4em; }
.legal p, .legal li, .legal dd { color: var(--ink-soft); }
.legal dl { display: grid; gap: 2px 24px; margin: 0; }
@media (min-width: 640px) {
  .legal dl { grid-template-columns: 190px 1fr; }
}
.legal dt { font-weight: 800; }
.legal dd { margin: 0 0 12px; overflow-wrap: break-word; }
.legal .updated { font-size: .95rem; }
.back-link { display: inline-block; margin-bottom: 16px; font-weight: 800; text-decoration: none; }
.site-footer .footer-bottom:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* ---------- Plutajući gumb na mobitelu ---------- */
.mobile-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 50;
  display: none;
  transition: transform .25s ease, opacity .25s ease;
}
.mobile-bar .btn { width: 100%; }
.mobile-bar.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
@media (max-width: 720px) {
  .mobile-bar { display: block; }
  body { padding-bottom: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .badge-dot { animation: none; }
  .btn, .mobile-bar, .faq summary::after { transition: none; }
}
