:root{
  --coffee:#3A312A;
  --cognac:#8A6A4A;
  --cream:#F7F3EE;
  --gold:#D8BE96;
  --sage:#8FA087;
  --water:#6E8795;
  --ink:#2c241f;
  --soft:#fffaf3;
  --shadow:0 28px 80px rgba(42,32,24,.22);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Source Sans 3",system-ui,sans-serif;
  color:var(--soft);
  background:#0f0d0b;
  overflow-x:hidden;
}
a{color:inherit;text-decoration:none}
.dream-bg{position:fixed;inset:0;z-index:-3;overflow:hidden;background:#111}
.dream-scene{position:absolute;inset:-4vh -4vw;background-size:cover;background-position:center;opacity:0;transform:scale(1.05);transition:opacity .8s linear;will-change:opacity,transform,filter}
.scene-room{background-image:linear-gradient(90deg,rgba(35,26,20,.52),rgba(35,26,20,.16) 42%,rgba(35,26,20,.44)),url('assets/razgovor.png');opacity:1}
.scene-path{background-image:linear-gradient(90deg,rgba(44,30,15,.46),rgba(44,30,15,.12),rgba(44,30,15,.28)),url('assets/put.png')}
.scene-water{background-image:linear-gradient(90deg,rgba(20,26,31,.48),rgba(20,26,31,.08),rgba(20,26,31,.24)),url('assets/ravnoteza.png')}
.dream-glow{position:absolute;inset:0;background:radial-gradient(circle at 62% 30%,rgba(255,217,148,.35),transparent 32%),linear-gradient(to bottom,rgba(0,0,0,.18),rgba(0,0,0,.34));mix-blend-mode:screen;opacity:.75;pointer-events:none}
.dream-grain{position:absolute;inset:0;opacity:.09;pointer-events:none;background-image:radial-gradient(rgba(255,255,255,.9) .5px,transparent .5px);background-size:3px 3px}
.site-header{position:fixed;top:0;left:0;right:0;z-index:10;display:flex;justify-content:space-between;align-items:center;padding:24px clamp(22px,4vw,64px);background:linear-gradient(to bottom,rgba(20,15,12,.52),transparent);backdrop-filter:blur(2px)}
.brand{font-family:"Cormorant Garamond",serif;font-size:28px;font-weight:700;letter-spacing:.03em}
.nav{display:flex;gap:24px;font-size:15px;letter-spacing:.06em;text-transform:uppercase;color:rgba(255,250,243,.82)}
.nav a{transition:.25s}.nav a:hover{color:white}
.chapter{min-height:100svh;position:relative;display:grid;align-items:center;padding:110px clamp(22px,6vw,96px)}
.hero{min-height:112svh}.intro,.steps{min-height:72svh}.path{min-height:110svh}.water{min-height:118svh}
.copy{max-width:650px}.copy.right{justify-self:end;text-align:left}
.eyebrow,.kicker{margin:0 0 18px;font-size:14px;text-transform:uppercase;letter-spacing:.18em;font-weight:600;color:rgba(255,237,205,.86)}
.eyebrow.dark{color:var(--cognac)}
h1,h2,h3{font-family:"Cormorant Garamond",serif;margin:0;color:inherit;line-height:.98;font-weight:600}
h1{font-size:clamp(58px,9vw,128px);max-width:900px;letter-spacing:-.04em}
h2{font-size:clamp(40px,6vw,82px);letter-spacing:-.035em}h3{font-size:32px}
.lead{font-size:clamp(20px,2.1vw,30px);line-height:1.42;max-width:740px;color:rgba(255,250,243,.88);font-weight:300}
p{font-size:19px;line-height:1.68;color:rgba(255,250,243,.84)}
.actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:34px}.btn{display:inline-flex;align-items:center;justify-content:center;padding:14px 22px;border-radius:999px;font-weight:600;letter-spacing:.03em;transition:.25s}.btn.primary{background:var(--gold);color:#33271d;box-shadow:0 16px 44px rgba(216,190,150,.25)}.btn.ghost{border:1px solid rgba(255,255,255,.34);background:rgba(255,255,255,.08)}.btn:hover{transform:translateY(-2px)}
.scroll-cue{position:absolute;left:50%;bottom:34px;width:28px;height:46px;border:1px solid rgba(255,255,255,.38);border-radius:20px;transform:translateX(-50%)}.scroll-cue span{position:absolute;left:50%;top:9px;width:4px;height:8px;background:white;border-radius:6px;transform:translateX(-50%);animation:cue 1.9s infinite}@keyframes cue{0%{opacity:0;transform:translate(-50%,0)}40%{opacity:1}100%{opacity:0;transform:translate(-50%,16px)}}
.card.wide{max-width:760px;background:rgba(38,29,23,.56);border:1px solid rgba(255,255,255,.13);border-radius:34px;padding:clamp(28px,5vw,62px);box-shadow:var(--shadow);backdrop-filter:blur(10px)}
.journey{width:min(1120px,100%);margin:auto;display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.journey article,.support-card,.contact-card,.doctor-card,.faq{background:rgba(255,250,243,.88);color:var(--ink);border:1px solid rgba(138,106,74,.16);border-radius:30px;box-shadow:0 24px 70px rgba(42,32,24,.13)}.journey article{padding:34px}.journey span{font-family:"Cormorant Garamond",serif;font-size:44px;color:var(--cognac)}.journey p,.support-card p,.contact-card p,.doctor-card p,.faq p{color:#5d5149}
.content-section,.doctor-section,.faq-section,.contact-section{background:var(--cream);color:var(--ink);padding:clamp(70px,10vw,140px) clamp(22px,6vw,96px)}.section-title{max-width:820px;margin:0 auto 44px;text-align:center}.section-title h2{color:var(--coffee)}
.support-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;max-width:1180px;margin:auto}.support-card{padding:30px;transition:.25s}.support-card:hover{transform:translateY(-5px);box-shadow:0 28px 70px rgba(42,32,24,.18)}.support-card h3,.doctor-card h2,.contact-card h2,.faq-section h2{color:var(--coffee)}
.doctor-card{max-width:1050px;margin:auto;display:grid;grid-template-columns:320px 1fr;gap:42px;padding:26px;align-items:center}.doctor-photo{min-height:360px;border-radius:24px;background:linear-gradient(135deg,rgba(138,106,74,.3),rgba(216,190,150,.3)),url('assets/razgovor.png');background-size:cover;background-position:center;filter:saturate(.82)}
.faq{max-width:860px;margin:auto;padding:14px}details{padding:20px 18px;border-bottom:1px solid rgba(58,49,42,.12)}details:last-child{border-bottom:0}summary{cursor:pointer;font-family:"Cormorant Garamond",serif;font-size:28px;color:var(--coffee)}
.contact-card{max-width:760px;margin:auto;text-align:center;padding:clamp(34px,6vw,72px)}.dark-btn{margin-top:16px;background:var(--cognac)!important;color:white!important}.site-footer{display:flex;justify-content:space-between;gap:20px;padding:28px clamp(22px,6vw,96px);background:#2c241f;color:#f8efe5}
.reveal{opacity:0;transform:translateY(28px);transition:opacity .9s ease,transform .9s ease}.reveal.in{opacity:1;transform:translateY(0)}
@media (max-width:850px){.nav{display:none}.chapter{padding:96px 22px}.copy.right{justify-self:start}.journey,.support-grid,.doctor-card{grid-template-columns:1fr}.doctor-photo{min-height:260px}.site-footer{flex-direction:column}h1{font-size:58px}.lead{font-size:21px}}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}.dream-scene{transform:none!important}}

/* O psihijatru: ordinacija je osnovna slika, portret je nezavisan sloj iznad nje */
.doctor-card{
  max-width:1280px;
  grid-template-columns:minmax(360px, 540px) 1fr;
  gap:clamp(40px,6vw,86px);
  padding:clamp(24px,3vw,34px);
  border-radius:34px;
  overflow:visible;
}
.doctor-visual{
  position:relative;
  min-height:520px;
  overflow:visible;
}
.doctor-room-photo{
  width:100%;
  height:100%;
  min-height:520px;
  display:block;
  object-fit:cover;
  object-position:center;
  border-radius:28px;
  filter:saturate(.86) sepia(.06) brightness(.96);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.24);
}
.doctor-portrait-link{
  position:absolute;
  right:-58px;
  bottom:12px;
  width:148px;
  height:148px;
  border-radius:50%;
  display:block;
  z-index:3;
  background:#fffaf3;
  padding:7px;
  box-shadow:0 18px 45px rgba(42,32,24,.24);
  transition:transform .35s ease, box-shadow .35s ease;
}
.doctor-portrait-link:hover{
  transform:translateY(-4px) scale(1.025);
  box-shadow:0 24px 60px rgba(42,32,24,.28);
}
.doctor-portrait{
  width:100%;
  height:100%;
  display:block;
  border-radius:50%;
  object-fit:cover;
}
.doctor-mini-link{
  position:absolute;
  right:-92px;
  bottom:-38px;
  z-index:4;
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--cognac);
  font-size:17px;
  font-weight:500;
}
.doctor-mini-link span:first-child{
  border-bottom:1px solid rgba(138,106,74,.55);
  padding-bottom:5px;
}
.doctor-arrow{
  width:30px;
  height:30px;
  border:1px solid rgba(138,106,74,.5);
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
  line-height:1;
  transition:transform .25s ease, background .25s ease;
}
.doctor-mini-link:hover .doctor-arrow{
  transform:translateX(4px);
  background:rgba(216,190,150,.25);
}
.doctor-copy{
  padding:clamp(16px,3vw,34px) clamp(10px,2vw,22px);
}
.doctor-copy h2{
  max-width:760px;
}
.doctor-copy p{
  max-width:680px;
  font-size:21px;
}
.doctor-credentials{
  list-style:none;
  padding:0;
  margin:32px 0 0;
  display:grid;
  gap:18px;
  color:#5d5149;
  font-size:19px;
}
.doctor-credentials li{
  display:flex;
  gap:18px;
  align-items:center;
}
.doctor-credentials span{
  width:34px;
  min-width:34px;
  height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:var(--cognac);
  font-size:24px;
}

@media (max-width:1050px){
  .doctor-card{grid-template-columns:1fr;overflow:hidden}
  .doctor-visual{min-height:420px;max-width:620px;margin:auto;width:100%}
  .doctor-room-photo{min-height:420px}
  .doctor-portrait-link{right:22px;bottom:56px;width:128px;height:128px}
  .doctor-mini-link{right:20px;bottom:16px;background:rgba(255,250,243,.86);padding:8px 10px;border-radius:999px;backdrop-filter:blur(8px)}
}
@media (max-width:560px){
  .doctor-card{padding:18px;border-radius:26px}
  .doctor-visual{min-height:340px}
  .doctor-room-photo{min-height:340px;border-radius:22px}
  .doctor-portrait-link{width:104px;height:104px;right:14px;bottom:50px;padding:5px}
  .doctor-mini-link{font-size:15px;right:12px;bottom:10px}
  .doctor-copy p{font-size:18px}
  .doctor-credentials{font-size:17px}
}

.profile-page{background:var(--cream);color:var(--coffee)}
.profile-shell{min-height:100vh;padding:clamp(28px,6vw,90px)}
.back-link{display:inline-flex;margin-bottom:28px;color:var(--cognac);font-weight:600}
.profile-card{max-width:980px;margin:auto;background:rgba(255,250,243,.9);border:1px solid rgba(138,106,74,.16);border-radius:34px;box-shadow:0 28px 80px rgba(42,32,24,.14);padding:clamp(28px,5vw,70px);display:grid;grid-template-columns:240px 1fr;gap:44px;align-items:center}
.profile-card img{width:240px;height:240px;border-radius:50%;object-fit:cover;background:#fffaf3;padding:8px;box-shadow:0 20px 55px rgba(42,32,24,.2)}
.profile-card h1{color:var(--coffee);font-size:clamp(48px,7vw,92px)}
.lead-profile{color:#5d5149;font-size:22px;line-height:1.6}
@media(max-width:760px){.profile-card{grid-template-columns:1fr;text-align:center}.profile-card img{margin:auto}}

/* Živi bubble mask za portret psihijatra */
.doctor-portrait-link{
  width:190px;
  height:190px;
  border-radius:0;
  background:transparent;
  padding:0;
  box-shadow:none;
  filter:drop-shadow(0 22px 38px rgba(42,32,24,.26));
}
.doctor-bubble-mask{
  width:100%;
  height:100%;
  display:block;
  overflow:visible;
}
.doctor-bubble-mask image{
  transform-origin:50% 50%;
  animation:doctorPortraitBreath 7s ease-in-out infinite;
}
.doctor-bubble-outline{
  fill:none;
  stroke:rgba(255,250,243,.95);
  stroke-width:9;
  stroke-linejoin:round;
  filter:drop-shadow(0 8px 18px rgba(42,32,24,.18));
}
@keyframes doctorPortraitBreath{
  0%,100%{transform:scale(1.04)}
  50%{transform:scale(1.085)}
}
@media (max-width:1050px){
  .doctor-portrait-link{width:162px;height:162px;right:16px;bottom:52px}
}
@media (max-width:560px){
  .doctor-portrait-link{width:128px;height:128px;right:10px;bottom:48px}
}
@media (prefers-reduced-motion:reduce){
  .doctor-bubble-mask image{animation:none!important}
}
