/* Stomatološka ordinacija Salihović — premium editorial homepage */
:root {
  --forest: #173B3A;
  --forest-deep: #0f2a29;
  --navy: #193348;
  --ink: #1D2120;
  --ink-2: #3a403f;
  --muted: #5f6665;
  --ivory: #F6F3EE;
  --paper: #EDEDEA;
  --white: #ffffff;
  --sage: #C7D8CF;
  --sage-soft: rgba(199, 216, 207, 0.35);
  --line: rgba(29, 33, 32, 0.12);
  --line-strong: rgba(29, 33, 32, 0.22);
  --font: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --max: 1400px;
  --r: 6px;
  --r-img: 8px;
  --hdr-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus {
  left: 1rem; top: 1rem; z-index: 200;
  background: #fff; padding: .65rem 1rem; border-radius: var(--r);
  box-shadow: 0 4px 24px rgba(0,0,0,.12);
}

.shell {
  width: 100%;
  max-width: calc(var(--max) + 80px);
  padding-inline: clamp(20px, 4vw, 40px);
  margin-inline: auto;
}

/* Typography */
.kicker {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--forest);
}
.h1, .h2, .display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.06;
  margin: 0;
}
.h1 {
  font-size: clamp(38px, 3.8vw, 58px);
  max-width: none;
  line-height: 1.06;
}
.hero .h1 {
  max-width: 11.5em;
}
.h2 {
  font-size: clamp(34px, 3.8vw, 50px);
  max-width: 16ch;
}
.h3 {
  font-family: var(--font);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}
.lead {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 18px);
  max-width: 480px;
  line-height: 1.65;
}
.sec-head { margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head .lead { margin-top: 18px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--r);
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 650;
  font-size: 15px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-fill {
  background: var(--forest);
  color: #fff;
}
.btn-fill:hover { background: var(--forest-deep); }
.btn-line {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-line:hover { border-color: var(--ink); background: rgba(23,59,58,.03); }
.btn-line-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.35);
}
.btn-line-light:hover { background: rgba(255,255,255,.08); }
.btn-text {
  background: transparent;
  color: var(--forest);
  padding-inline: 0;
  min-height: 44px;
  font-weight: 650;
}
.btn-text::after { content: " →"; transition: transform .2s var(--ease); display: inline-block; }
.btn-text:hover::after { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.btn-block { width: 100%; }

/* Motif line */
.motif-line {
  width: 48px;
  height: 1px;
  background: var(--sage);
  margin-bottom: 20px;
}
.motif-curve {
  position: absolute;
  pointer-events: none;
  opacity: .45;
}

/* Hero */
.hero {
  padding: clamp(28px, 4vw, 48px) 0 clamp(56px, 7vw, 88px);
  background: var(--ivory);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -8%;
  width: min(52vw, 640px);
  height: min(52vw, 640px);
  border: 1px solid rgba(199,216,207,.5);
  border-radius: 50%;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 44% 56%;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-meta dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.hero-meta dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.hero-meta a { text-decoration: none; }
.hero-meta a:hover { color: var(--forest); }
.hero-visual {
  position: relative;
  min-height: clamp(300px, 36vw, 520px);
}
.hero-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: clamp(300px, 36vw, 520px);
  object-fit: cover;
  border-radius: var(--r-img);
  background: linear-gradient(145deg, #e8ece9 0%, #d4ddd8 100%);
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-img);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
  pointer-events: none;
}

/* Services index */
.services {
  padding: clamp(64px, 8vw, 100px) 0;
  background: var(--white);
}
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: clamp(16px, 3vw, 32px);
  align-items: start;
  padding: clamp(24px, 3vw, 36px) 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: color .2s;
}
.svc-item:last-child { border-bottom: 1px solid var(--line); }
.svc-item:hover { color: var(--forest); }
.svc-item:hover .svc-num { color: var(--forest); }
.svc-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--muted);
  padding-top: 6px;
  transition: color .2s;
}
.svc-body p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
  max-width: 520px;
  line-height: 1.6;
}
.svc-arrow {
  align-self: center;
  font-size: 20px;
  color: var(--forest);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .2s, transform .2s var(--ease);
}
.svc-item:hover .svc-arrow { opacity: 1; transform: translateX(0); }

/* Patient needs */
.needs {
  padding: clamp(64px, 8vw, 96px) 0;
  background: var(--paper);
}
.needs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-img);
  overflow: hidden;
}
.need-link {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
  padding: clamp(20px, 2.5vw, 28px);
  background: var(--white);
  text-decoration: none;
  color: var(--ink);
  transition: background .2s;
}
.need-link:hover { background: var(--ivory); }
.need-link span {
  font-size: 13px;
  font-weight: 650;
  color: var(--forest);
  margin-top: 16px;
}

/* Approach split */
.approach {
  padding: 0;
  background: var(--ivory);
}
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(400px, 50vw, 560px);
}
.approach-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 6vw, 80px) clamp(24px, 5vw, 64px);
}
.approach-visual img {
  display: block;
  width: 100%;
  min-height: clamp(280px, 40vw, 480px);
  aspect-ratio: 5 / 4;
  object-fit: cover;
  background: linear-gradient(160deg, #dfe8e3, #c8d5ce);
}

/* Feature treatment */
.feature {
  padding: clamp(72px, 9vw, 112px) 0;
  background: var(--white);
}
.feature-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.feature-visual {
  order: 2;
  position: relative;
}
.feature-copy { order: 1; }
.feature-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-img);
  background: linear-gradient(145deg, #e4ebe7, #cfdad4);
}
.feature-points {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.feature-points li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 16px;
}
.feature-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .65em;
  width: 6px;
  height: 1px;
  background: var(--forest);
}

/* Clinic intro dark band */
.clinic-intro {
  padding: clamp(56px, 7vw, 88px) 0;
  background: var(--forest);
  color: #fff;
}
.clinic-intro .kicker { color: var(--sage); }
.clinic-intro .h2 { color: #fff; max-width: 18ch; }
.clinic-intro .lead { color: rgba(255,255,255,.72); max-width: 560px; }
.clinic-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: end;
}

/* Gallery */
.gallery {
  padding: 0;
  background: var(--ink);
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: clamp(220px, 28vw, 320px) clamp(220px, 28vw, 320px);
  gap: 3px;
}
.gallery-grid img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  background: #2a3332;
}
.gallery-grid .g-main {
  grid-row: 1 / span 2;
}
.gallery-cap {
  padding: 20px clamp(20px, 4vw, 40px) 28px;
  background: var(--ink);
  color: rgba(255,255,255,.55);
  font-size: 13px;
}

/* Process */
.process {
  padding: clamp(72px, 9vw, 104px) 0;
  background: var(--white);
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(16px, 2vw, 24px);
  margin-top: 48px;
  counter-reset: step;
}
.process-step {
  padding-top: 20px;
  border-top: 2px solid var(--paper);
  position: relative;
}
.process-step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--forest);
  margin-bottom: 14px;
}
.process-step p {
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
}

/* Location */
.location {
  padding: clamp(72px, 9vw, 104px) 0;
  background: var(--ivory);
}
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}
.location-info {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}
.loc-block h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}
.loc-block p, .loc-block a {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}
.loc-block a:hover { color: var(--forest); }
.map {
  min-height: clamp(280px, 36vw, 420px);
  border-radius: var(--r-img);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
}
.map iframe { width: 100%; height: 100%; min-height: inherit; border: 0; }

/* Appointment */
.appointment {
  padding: clamp(72px, 9vw, 104px) 0;
  background: var(--forest-deep);
  color: #fff;
}
.appointment-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
}
.appointment .kicker { color: var(--sage); }
.appointment .h2 { color: #fff; }
.appointment .lead { color: rgba(255,255,255,.7); }
.appointment-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.appointment-phone:hover { color: var(--sage); }

/* Form */
.form-card {
  background: #fff;
  border-radius: var(--r-img);
  padding: clamp(24px, 3vw, 36px);
  color: var(--ink);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field { display: grid; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 13px;
  font-weight: 650;
  color: var(--ink-2);
}
.form-field label span { color: var(--muted); font-weight: 500; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--white);
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.form-field textarea { min-height: 112px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px var(--sage-soft);
}
.form-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.form-check input { margin-top: 3px; accent-color: var(--forest); }
.form-status {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--r);
  font-size: 14px;
}
.form-status.show { display: block; }
.form-status.ok { background: #e8f3ef; color: #173B3A; }
.form-status.err { background: #fdecea; color: #7a2e2e; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* Footer */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.72);
  padding: clamp(48px, 6vw, 72px) 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(24px, 4vw, 40px);
}
.footer-brand .logo-footer {
  display: block;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
  opacity: .92;
  max-width: 180px;
}
.footer-brand p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  max-width: 280px;
}
.footer-col h3 {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer-col a {
  text-decoration: none;
  font-size: 15px;
  color: rgba(255,255,255,.78);
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: clamp(40px, 5vw, 56px);
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,.4);
}
.footer-bottom a { color: rgba(255,255,255,.55); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* Sticky mobile CTA */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 12px clamp(16px, 4vw, 24px);
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: rgba(246,243,238,.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(100%);
  transition: transform .3s var(--ease);
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta-in {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  max-width: 480px;
  margin-inline: auto;
}
.sticky-cta .btn { min-height: 44px; font-size: 14px; }
.sticky-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--r);
  border: 1px solid var(--line-strong);
  background: #fff;
  text-decoration: none;
  font-weight: 650;
  font-size: 14px;
  color: var(--ink);
}

/* Image fallback */
.img-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(155deg, #e6ece8 0%, #d2ddd6 55%, #c5d3cb 100%);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  padding: 24px;
}

/* Responsive */
@media (min-width: 960px) and (max-width: 1366px) {
  .hero-grid {
    grid-template-columns: 46% 54%;
    gap: 32px;
  }
  .hero .h1 {
    font-size: clamp(36px, 3.4vw, 50px);
    max-width: 12em;
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .feature-grid,
  .location-grid,
  .appointment-grid,
  .approach-grid,
  .clinic-intro-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 340px; }
  .feature-visual { order: 0; }
  .feature-copy { order: 1; }
  .process-steps { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gallery-grid .g-main { grid-row: auto; grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .needs-grid { grid-template-columns: 1fr; }
  .svc-item { grid-template-columns: 40px 1fr; }
  .svc-arrow { display: none; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .sticky-cta { display: block; }
  body.has-sticky { padding-bottom: 76px; }
}

@media (max-width: 480px) {
  .process-steps { grid-template-columns: 1fr; }
  .hero-meta { gap: 16px; }
}
