/* ============================================================
   CENTAR MEDICA — Čačak. Specijalistička lekarska ordinacija.
   Hand-built static site (no framework, no build step).
   Calm, trustworthy, clinical-but-warm aesthetic.
   Palette: medical teal #0e8a8f + deep navy #13314f + crisp white
   + soft mint accent #e6f3f1. Sora (display) + Inter (body).
   Designed gradient hero (no usable wide photo); small framed
   doctor-portrait gallery (only clean, dateless IG portrait cards).
   ============================================================ */

:root {
  --bg:        #ffffff;   /* crisp white page base */
  --bg-2:      #f3f9f8;   /* very light mint panel */
  --bg-3:      #e6f3f1;   /* soft mint */
  --paper:     #ffffff;   /* card surface */
  --teal:      #0e8a8f;   /* medical teal — primary accent */
  --teal-dp:   #0a6a6e;   /* deeper teal */
  --teal-br:   #2bbcb6;   /* bright teal highlight */
  --navy:      #13314f;   /* deep navy — dark sections + headings */
  --navy-dp:   #0e2640;   /* deeper navy */
  --ink:       #16334e;   /* primary text on light (navy-ish) */
  --ink-soft:  #4a6075;   /* secondary text on light */
  --muted:     #8aa0b0;   /* muted */
  --white:     #ffffff;
  --mint:      #e6f3f1;   /* mint text on dark */
  --mint-soft: #bcdedb;   /* soft mint on dark */
  --teal-soft: rgba(14,138,143,.10);
  --line:      rgba(14,138,143,.34);
  --line-soft: rgba(19,49,79,.12);
  --line-dark: rgba(230,243,241,.16);
  --shadow:    0 34px 64px -36px rgba(19,49,79,.40);
  --shadow-sm: 0 18px 38px -24px rgba(19,49,79,.30);
  --maxw:      1180px;
  --disp: 'Sora', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-weight: 400; line-height: 1.72;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--teal); color: #fff; }

h1, h2, h3 { font-family: var(--disp); font-weight: 700; line-height: 1.14; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); font-weight: 700; }
h1 em { font-style: normal; color: var(--teal-br); }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.32rem; font-weight: 600; }

.eyebrow {
  font-family: var(--sans); font-size: .74rem; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase; color: var(--teal-dp); margin-bottom: 1.1rem;
}
.eyebrow-on-dark { color: var(--mint-soft); }
.eyebrow-line { display: inline-flex; align-items: center; gap: .8rem; }
.eyebrow-line::before { content: ""; width: 34px; height: 1px; background: var(--teal); }
.eyebrow-center { justify-content: center; }
.eyebrow-center::before { display: none; }

.section { padding: clamp(72px, 9.5vw, 128px) 0; position: relative; }
.section-head { max-width: 740px; margin-bottom: clamp(40px, 5vw, 60px); }
.section-head-center { max-width: 700px; margin-left: auto; margin-right: auto; text-align: center; }
.section-sub { color: var(--ink-soft); font-size: 1.06rem; margin-top: 1rem; }

.text-link {
  display: inline-block; margin-top: 1.7rem; font-family: var(--sans); font-weight: 600;
  font-size: .84rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-dp);
  border-bottom: 1px solid var(--line); padding-bottom: 4px; transition: border-color .25s ease, color .25s ease;
}
.text-link:hover { color: var(--navy); border-color: var(--teal); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--sans); font-size: .88rem; font-weight: 600;
  letter-spacing: .03em; padding: 15px 28px; border-radius: 8px; cursor: pointer;
  border: 1px solid transparent; transition: all .25s ease;
}
.btn-solid { background: var(--teal); color: #fff; box-shadow: 0 12px 28px -14px rgba(14,138,143,.7); }
.btn-solid:hover { background: var(--teal-dp); transform: translateY(-2px); box-shadow: 0 18px 36px -14px rgba(14,138,143,.8); }
.btn-ghost { border-color: rgba(230,243,241,.55); color: var(--mint); }
.btn-ghost:hover { border-color: var(--teal-br); color: var(--teal-br); background: rgba(230,243,241,.06); }
.btn-lg { padding: 17px 36px; font-size: .96rem; }

/* ---------- wordmark ---------- */
.brand { display: inline-flex; align-items: center; gap: 11px; line-height: 1; }
.brand-logo { display: inline-flex; color: var(--white); transition: color .3s ease; }
.brand-text { display: inline-flex; flex-direction: column; }
.brand-mark {
  font-family: var(--disp); font-weight: 700; font-size: 1.16rem;
  letter-spacing: .04em; color: var(--white); transition: font-size .3s ease, color .3s ease;
}
.brand-sub {
  font-family: var(--sans); font-weight: 600; font-size: .56rem;
  letter-spacing: .42em; color: var(--teal-br); margin-top: 5px; padding-left: .1em;
}
/* header turns brand dark once scrolled (light bg) */
.site-header.scrolled .brand-mark { color: var(--navy); }
.site-header.scrolled .brand-logo { color: var(--teal); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 20px 0;
  transition: padding .3s ease, background .3s ease, border-color .3s ease, box-shadow .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  padding: 11px 0; background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft); box-shadow: 0 10px 28px -18px rgba(19,49,79,.35);
}
.site-header.scrolled .brand-mark { font-size: 1.05rem; }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  font-family: var(--sans); font-size: .9rem; font-weight: 500;
  letter-spacing: .02em; color: var(--mint);
  position: relative; padding: 4px 0; transition: color .2s ease;
}
.site-header.scrolled .nav a:not(.nav-cta) { color: var(--ink-soft); }
.nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0; background: var(--teal); transition: width .28s ease; }
.nav a:not(.nav-cta):hover { color: var(--teal-br); }
.site-header.scrolled .nav a:not(.nav-cta):hover { color: var(--teal-dp); }
.nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta { border: 1px solid var(--teal-br); color: var(--teal-br); padding: 8px 16px !important; border-radius: 8px; font-weight: 600 !important; transition: all .25s ease; }
.site-header.scrolled .nav-cta { border-color: var(--teal); color: var(--teal); }
.nav-cta:hover { background: var(--teal); color: #fff !important; border-color: var(--teal); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; z-index: 95; }
.nav-toggle span { width: 26px; height: 2px; background: var(--white); transition: transform .3s ease, opacity .3s ease, background .3s ease; }
.site-header.scrolled .nav-toggle span { background: var(--navy); }
.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); }

/* ============================================================
   HERO  (designed teal→navy gradient, subtle clinical grid — no photo)
   ============================================================ */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: center;
  padding: clamp(150px, 20vw, 210px) 0 clamp(80px, 10vw, 120px);
  overflow: hidden; background: var(--navy);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 520px at 80% 12%, rgba(43,188,182,.32), transparent 60%),
    radial-gradient(700px 600px at 8% 88%, rgba(14,138,143,.30), transparent 62%),
    linear-gradient(150deg, #14545d 0%, #13314f 52%, #0e2640 100%);
}
.hero-grid-deco {
  position: absolute; inset: 0; z-index: 1; opacity: .5;
  background-image:
    linear-gradient(rgba(230,243,241,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230,243,241,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(120% 120% at 70% 30%, #000 30%, transparent 75%);
          mask-image: radial-gradient(120% 120% at 70% 30%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; z-index: 2; max-width: 830px; }
.hero h1 { margin-bottom: 1.4rem; color: var(--white); text-shadow: 0 4px 30px rgba(0,0,0,.35); }
.hero-lede { font-size: clamp(1.08rem, 1.7vw, 1.32rem); color: #dcebe9; max-width: 40em; margin-bottom: 1.5rem; }
.hero-lede strong { color: var(--teal-br); font-weight: 600; }
.hero-target {
  font-family: var(--disp); font-weight: 600; font-size: clamp(1.12rem, 2vw, 1.5rem);
  color: var(--white); margin-bottom: 2.1rem; padding-left: 16px; border-left: 2px solid var(--teal-br);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-credit {
  position: absolute; right: 24px; bottom: 18px; z-index: 2;
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(230,243,241,.55);
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.strip { background: var(--teal); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-item { padding: 32px 18px; text-align: center; border-right: 1px solid rgba(255,255,255,.14); }
.strip-item:last-child { border-right: 0; }
.strip-k { display: block; font-family: var(--disp); font-weight: 700; font-size: 1.45rem; line-height: 1.1; color: #fff; }
.strip-v { display: block; font-size: .76rem; letter-spacing: .05em; margin-top: 8px; color: rgba(255,255,255,.85); text-transform: uppercase; }

/* ============================================================
   O NAMA
   ============================================================ */
.about { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(36px, 5vw, 76px); align-items: center; }
.about h2 { margin: .3rem 0 1.4rem; color: var(--navy); }
.about .lead { font-size: 1.18rem; color: var(--ink); margin-bottom: 1.1rem; line-height: 1.6; }
.about .lead strong, .about p strong { color: var(--teal-dp); font-weight: 600; }
.about p { color: var(--ink-soft); margin-bottom: 1rem; }
.about-figure { position: relative; padding: 12px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 12px; max-width: 380px; }
.about-figure::before {
  content: ""; position: absolute; inset: -1px; border-radius: 12px; pointer-events: none;
  border-top: 3px solid var(--teal);
}
.about-figure img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: 9px; }
.about-figure figcaption {
  font-family: var(--sans); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); text-align: center; padding: 12px 6px 4px;
}

/* ============================================================
   USLUGE / SPECIJALNOSTI
   ============================================================ */
.services { background: var(--bg-2); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 1.8vw, 24px); }
.svc {
  background: var(--paper); padding: clamp(26px, 2.6vw, 38px); border: 1px solid var(--line-soft);
  border-radius: 12px; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative; overflow: hidden;
}
.svc::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--teal); transform: scaleY(0); transform-origin: top; transition: transform .35s ease; }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--line); }
.svc:hover::before { transform: scaleY(1); }
.svc-ico {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 10px; background: var(--teal-soft); color: var(--teal); font-size: 1.5rem;
  font-weight: 700; margin-bottom: 1rem; line-height: 1;
}
.svc h3 { color: var(--navy); margin-bottom: .6rem; }
.svc p { color: var(--ink-soft); font-size: .98rem; line-height: 1.65; }

/* ============================================================
   LEKARI — framed portrait grid (small, contained, never stretched)
   ============================================================ */
.gallery-sec { background: var(--bg); }
.gallery {
  display: grid; grid-template-columns: repeat(3, minmax(0, 260px));
  gap: clamp(16px, 2vw, 28px); justify-content: center;
}
.card {
  position: relative; cursor: pointer; overflow: hidden; border-radius: 12px;
  border: 1px solid var(--line-soft); background: var(--paper); padding: 9px;
  box-shadow: var(--shadow-sm); transition: transform .3s ease, border-color .3s ease;
}
.card img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; transition: transform .7s cubic-bezier(.2,.7,.3,1); aspect-ratio: 4 / 5; }
.card::after {
  content: "⤢"; position: absolute; right: 17px; bottom: 17px; width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  background: var(--teal); color: #fff; border-radius: 50%; box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--line); }
.card:hover img { transform: scale(1.05); }
.card:hover::after { opacity: 1; transform: none; }

.team-list {
  list-style: none; max-width: 760px; margin: clamp(36px, 4vw, 54px) auto 0;
  display: grid; gap: 0; border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden; background: var(--paper);
}
.team-list li {
  padding: 16px 22px; border-bottom: 1px solid var(--line-soft); color: var(--ink-soft);
  font-size: 1rem; line-height: 1.5;
}
.team-list li:last-child { border-bottom: 0; }
.team-list li strong { color: var(--navy); font-weight: 600; }
.team-list li span { color: var(--muted); }

/* ============================================================
   ZAŠTO
   ============================================================ */
.why { background: var(--bg-2); }
.why .section-head h2 { color: var(--navy); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 34px); }
.why-card { text-align: center; padding: clamp(28px, 3vw, 44px) clamp(18px, 2vw, 30px); border: 1px solid var(--line-soft); border-radius: 12px; background: var(--paper); }
.why-ico {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-size: 1.7rem; font-weight: 700;
  margin-bottom: 1.1rem; line-height: 1;
}
.why-card h3 { color: var(--navy); margin-bottom: .7rem; font-size: 1.28rem; }
.why-card p { color: var(--ink-soft); font-size: 1rem; line-height: 1.7; }

/* ============================================================
   KONTAKT  (deep navy lead-in section)
   ============================================================ */
.contact { background: var(--navy); text-align: center; position: relative; }
.contact::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(720px 360px at 50% 0%, rgba(43,188,182,.20), transparent 70%);
}
.contact-inner { max-width: 720px; margin: 0 auto; position: relative; }
.contact .eyebrow { color: var(--teal-br); }
.contact .eyebrow-line::before { background: var(--teal-br); }
.contact h2 { margin: .3rem 0 1.2rem; color: var(--white); }
.contact-lede { color: var(--mint-soft); font-size: 1.1rem; margin-bottom: 2.2rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-bottom: 1.1rem; }
.contact-actions-sec { margin-bottom: 1.8rem; }
.contact-loc { color: var(--teal-br); letter-spacing: .08em; font-size: .9rem; text-transform: uppercase; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background-color: var(--navy-dp); color: var(--mint); padding: clamp(50px, 6vw, 76px) 0 90px; border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 38px; border-bottom: 1px solid rgba(230,243,241,.12); }
.footer-word { display: block; font-family: var(--disp); font-weight: 700; font-size: 1.3rem; letter-spacing: .03em; color: var(--white); }
.footer-word-sub { display: block; font-family: var(--sans); font-weight: 600; font-size: .56rem; letter-spacing: .42em; color: var(--teal-br); margin: 4px 0 14px; }
.footer-brand p { color: var(--mint-soft); font-size: .94rem; }
.f-label { font-family: var(--sans); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-br); font-weight: 600; }
.footer-col p { margin-top: 10px; color: var(--mint-soft); }
.footer-col a:hover { color: var(--teal-br); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 24px; font-size: .8rem; color: var(--muted); letter-spacing: .03em; }

/* ---------- sticky mobile call bar ---------- */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: none;
  text-align: center; padding: 15px; background: var(--teal); color: #fff;
  font-family: var(--sans); font-weight: 700; letter-spacing: .03em; font-size: .98rem;
  box-shadow: 0 -8px 24px -10px rgba(19,49,79,.55);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center;
  padding: 6vh 5vw; background: rgba(10,38,64,.96); backdrop-filter: blur(8px); opacity: 0; transition: opacity .3s ease;
}
.lightbox.open { display: flex; opacity: 1; }
.lb-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 520px; }
.lb-inner img { max-height: 76vh; width: auto; border-radius: 10px; padding: 10px; background: var(--paper); box-shadow: var(--shadow); }
.lb-cap { color: var(--mint-soft); text-align: center; font-family: var(--disp); font-weight: 600; font-size: 1.08rem; }
.lb-close, .lb-nav { position: absolute; background: rgba(230,243,241,.10); border: 1px solid rgba(230,243,241,.32); color: var(--mint); cursor: pointer; transition: all .25s ease; border-radius: 50%; z-index: 2; }
.lb-close { top: 22px; right: 22px; width: 46px; height: 46px; font-size: 1.6rem; line-height: 1; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 50px; height: 50px; font-size: 1.8rem; }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-close:hover, .lb-nav:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-figure { max-width: 360px; order: 2; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .strip-item:nth-child(2) { border-right: 0; }
  .strip-item:nth-child(1), .strip-item:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.14); }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 330px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.7rem; padding: 0 36px;
    background: var(--navy); border-left: 1px solid var(--line);
    transform: translateX(100%); transition: transform .38s cubic-bezier(.2,.7,.3,1); z-index: 90;
    box-shadow: -20px 0 50px -30px rgba(0,0,0,.85);
  }
  .nav.open { transform: translateX(0); }
  .nav a, .site-header.scrolled .nav a:not(.nav-cta) { font-size: 1.2rem; color: var(--mint); }
  .site-header.scrolled .nav-cta { color: var(--teal-br); border-color: var(--teal-br); }
  .nav-toggle { display: flex; }
  .call-bar { display: block; }
  body { padding-bottom: 54px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { min-height: auto; }
}
@media (max-width: 540px) {
  .container { padding: 0 18px; }
  .svc-grid { grid-template-columns: 1fr; }
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-base { flex-direction: column; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
