/* Poliklinika IB Medic
   Boje i tipografija prema logotipu (crna + zlatna), stil inspiriran glumicic.com */

:root {
  --cream: #FAF6EF;
  --cream-2: #F2EBDF;
  --paper: #FFFDF8;
  --ink: #17130E;
  --ink-2: #1F1A14;
  --ink-3: #2E261D;
  --text: #3B342C;
  --muted: #776B5E;
  --on-dark: #D8CFC2;
  --on-dark-muted: #A99D8C;
  --on-dark-strong: #F6EFE3;
  --gold: #B48A3A;
  --gold-light: #D9B76C;
  --gold-dark: #8A6623;
  --line: rgba(180, 138, 58, .3);
  --line-soft: rgba(180, 138, 58, .18);
  --line-dark: rgba(217, 183, 108, .2);
  --gold-grad: linear-gradient(115deg, #8A6623 0%, #C49B48 28%, #E8CD88 50%, #B48A3A 72%, #8A6623 100%);

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 78px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--cream); padding: 10px 16px; }
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Prototip traka ---------- */
.proto-bar {
  background: var(--ink);
  color: var(--gold-light);
  font-size: 12px;
  letter-spacing: .06em;
  text-align: center;
  padding: 7px 16px;
  line-height: 1.4;
}

/* ---------- Gumbi i oznake ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-primary:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-ghost { color: var(--ink); border-color: rgba(23, 19, 14, .28); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-dark); }

.dark .btn-primary { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.dark .btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 22px;
}
.eyebrow::before { content: ''; width: 36px; height: 1px; background: currentColor; opacity: .7; }
.dark .eyebrow { color: var(--gold-light); }

.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 5.2vw, 66px);
  line-height: 1.04;
  letter-spacing: .005em;
  color: var(--ink);
  margin-bottom: 26px;
}
.h2 em { font-style: italic; font-weight: 400; color: var(--gold-dark); }
.dark .h2 { color: var(--on-dark-strong); }
.dark .h2 em { color: var(--gold-light); }

.section-lead { font-size: 18px; color: var(--muted); max-width: 36em; }
.dark .section-lead { color: var(--on-dark-muted); }

.ornament { display: flex; align-items: center; gap: 14px; color: var(--gold); margin: 26px 0; }
.ornament-line { flex: 0 0 72px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament-line:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.ornament svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linejoin: round; }

/* ---------- Zaglavlje ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, .88);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s, box-shadow .4s;
}
.site-header.is-scrolled { border-bottom-color: var(--line-soft); box-shadow: 0 10px 30px -24px rgba(23, 19, 14, .5); }

.header-inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand img { width: 40px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-small { font-size: 9.5px; letter-spacing: .46em; text-transform: uppercase; color: var(--ink); margin-bottom: 5px; }
.brand-name { font-family: var(--serif); font-weight: 500; font-size: 24px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }

.main-nav { display: flex; gap: 34px; }
.main-nav a {
  position: relative;
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 0;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.main-nav a:hover::after, .main-nav a.is-active::after, .main-nav a.is-current::after { transform: scaleX(1); transform-origin: left; }
.main-nav a.is-active, .main-nav a.is-current { color: var(--gold-dark); }

.header-call { padding: 12px 20px; }

.menu-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  position: relative;
}
.menu-toggle .bar { position: absolute; left: 12px; right: 12px; height: 1px; background: var(--ink); }
.menu-toggle .bar:nth-of-type(2) { top: 19px; }
.menu-toggle .bar:nth-of-type(3) { top: 26px; left: 18px; }

/* ---------- Mobilni izbornik ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: radial-gradient(ellipse at 80% 0%, rgba(217, 183, 108, .14), transparent 55%), var(--ink);
  color: var(--on-dark-strong);
  overflow-y: auto;
}
.mobile-menu-inner { min-height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 96px var(--gutter) 48px; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu nav a {
  font-family: var(--serif);
  font-size: clamp(34px, 9vw, 48px);
  line-height: 1.25;
  color: var(--on-dark-strong);
  opacity: 0;
  transform: translateY(14px);
  animation: menu-in .6s var(--ease) forwards;
}
.mobile-menu nav a:nth-child(2) { animation-delay: .05s; }
.mobile-menu nav a:nth-child(3) { animation-delay: .1s; }
.mobile-menu nav a:nth-child(4) { animation-delay: .15s; }
.mobile-menu nav a:nth-child(5) { animation-delay: .2s; }
.mobile-menu-contact { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; flex-direction: column; gap: 6px; color: var(--on-dark-muted); font-size: 16px; }
.mobile-menu-contact a:first-child { font-family: var(--serif); font-size: 28px; color: var(--gold-light); }
.menu-close { position: absolute; top: 22px; right: var(--gutter); width: 46px; height: 46px; background: transparent; border: 1px solid var(--line-dark); cursor: pointer; }
.menu-close::before, .menu-close::after { content: ''; position: absolute; left: 12px; right: 12px; top: 50%; height: 1px; background: var(--on-dark-strong); transform: rotate(45deg); }
.menu-close::after { transform: rotate(-45deg); }
@keyframes menu-in { to { opacity: 1; transform: none; } }
body.menu-open { overflow: hidden; }

/* ---------- Uvod (hero) ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h) - 30px);
  display: flex;
  align-items: center;
  padding: 48px 0 96px;
  background:
    radial-gradient(ellipse 60% 70% at 78% 45%, rgba(217, 183, 108, .2), transparent 70%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(217, 183, 108, .08), transparent 70%),
    var(--cream);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }

.hero-title { font-weight: inherit; }
.hero-small {
  display: block;
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(14px, 1.5vw, 19px);
  letter-spacing: .62em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 4px;
}
.hero-big {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(64px, 9.4vw, 138px);
  line-height: .95;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
}
.tagline { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.5vw, 32px); color: var(--ink-3); margin-bottom: 14px; }
.hero-lead { max-width: 33em; color: var(--muted); font-size: 18px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 48px; margin: 48px 0 0; padding-top: 26px; border-top: 1px solid var(--line-soft); max-width: 560px; }
.hero-facts dt { font-family: var(--serif); font-size: 36px; line-height: 1; color: var(--gold-dark); margin-bottom: 8px; }
.hero-facts dd { margin: 0; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); line-height: 1.5; max-width: 13em; }

.hero-visual { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.halo { position: absolute; inset: 4%; border-radius: 50%; border: 1px solid var(--line); }
.halo::before { content: ''; position: absolute; inset: 9%; border-radius: 50%; border: 1px solid var(--line-soft); }
.halo::after {
  content: '';
  position: absolute;
  width: 9px; height: 9px;
  top: calc(50% - 4.5px); left: -4.5px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 0 4px var(--cream);
}
.halo { animation: spin 80s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-mono {
  position: relative;
  width: 66%;
  height: auto;
  filter: drop-shadow(0 28px 36px rgba(120, 88, 28, .18));
  animation: float 9s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px); } }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 1px; height: 56px; background: var(--line); overflow: hidden; }
.scroll-cue::after { content: ''; position: absolute; left: 0; top: -20px; width: 1px; height: 20px; background: var(--gold-dark); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 56px; } }

/* ---------- Sekcije ---------- */
.section { padding: clamp(84px, 11vw, 148px) 0; position: relative; }
.section.alt { background: var(--cream-2); }
.section.dark {
  background:
    radial-gradient(ellipse 60% 50% at 10% 0%, rgba(217, 183, 108, .09), transparent 70%),
    var(--ink);
  color: var(--on-dark);
}
.section-head { max-width: 760px; margin: 0 auto 64px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.section-head .eyebrow::after { content: ''; width: 36px; height: 1px; background: currentColor; opacity: .7; }

/* ---------- O poliklinici ---------- */
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(48px, 7vw, 96px); align-items: center; }
.about-media { position: relative; min-height: 600px; }
.photo { position: absolute; display: flex; align-items: flex-end; padding: 22px; overflow: hidden; }
.photo-a {
  inset: 0 16% 10% 0;
  border-radius: 999px 999px 2px 2px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(217, 183, 108, .22), transparent 60%),
    linear-gradient(165deg, #4A3D2F 0%, #2C241B 70%);
}
.photo-a::after { content: ''; position: absolute; inset: 14px; border-radius: inherit; border: 1px solid var(--line-dark); pointer-events: none; }
.photo-b {
  right: 0; bottom: 0;
  width: 44%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, #9C8971 0%, #6B5A47 100%);
  border: 8px solid var(--ink);
  outline: 1px solid var(--line-dark);
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

.about-copy > p { color: var(--on-dark); margin-bottom: 18px; max-width: 34em; }
.values { margin-top: 40px; }
.values li { display: grid; grid-template-columns: 64px 1fr; gap: 8px; padding: 22px 0; border-top: 1px solid var(--line-dark); }
.values li:last-child { border-bottom: 1px solid var(--line-dark); }
.v-num { font-family: var(--serif); font-style: italic; font-size: 28px; line-height: 1.1; color: var(--gold-light); }
.values h3 { font-family: var(--sans); font-size: 13.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-strong); margin-bottom: 4px; }
.values p { color: var(--on-dark-muted); font-size: 16px; }

/* ---------- Djelatnosti ---------- */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.dept-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 44px 38px 40px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .5s var(--ease);
}
.dept-card::before { content: ''; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--gold-grad); transition: width .6s var(--ease); }
.dept-card:hover { background: var(--paper); }
.dept-card:hover::before { width: 100%; }
.dept-icon {
  width: 68px; height: 68px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--gold);
  box-shadow: inset 0 0 0 4px var(--cream), inset 0 0 0 5px var(--line-soft);
  color: var(--gold-dark);
  margin-bottom: 28px;
  transition: background .5s var(--ease), color .5s var(--ease), box-shadow .5s var(--ease);
}
.dept-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.dept-card:hover .dept-icon { background: var(--ink); color: var(--gold-light); box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px var(--gold); }
.dept-card h3 { font-family: var(--serif); font-weight: 500; font-size: 29px; line-height: 1.15; color: var(--ink); margin-bottom: 12px; }
.dept-card p { color: var(--muted); font-size: 16px; margin-bottom: 26px; }
.more { margin-top: auto; font-size: 11.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-dark); }
.more span { display: inline-block; transition: transform .4s var(--ease); }
.dept-card:hover .more span { transform: translateX(6px); }

/* ---------- Usluge ---------- */
.usluge-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(48px, 7vw, 104px); align-items: start; }
.usluge-intro { position: sticky; top: calc(var(--header-h) + 40px); }
.usluge-intro > p { color: var(--muted); max-width: 26em; }
.usluge-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 34px; }
.text-link { font-size: 15px; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color .3s, color .3s; }
.text-link:hover { color: var(--gold-dark); border-color: var(--gold); }

.accordion { border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc summary {
  display: grid;
  grid-template-columns: 1fr auto 28px;
  align-items: center;
  gap: 18px;
  padding: 26px 4px;
  cursor: pointer;
  list-style: none;
}
.acc summary::-webkit-details-marker { display: none; }
.acc-title { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; color: var(--ink); transition: color .3s; }
.acc summary:hover .acc-title { color: var(--gold-dark); }
.acc-count { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.acc-icon { position: relative; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; transition: background .3s, border-color .3s; }
.acc-icon::before, .acc-icon::after { content: ''; position: absolute; left: 8px; right: 8px; top: 50%; height: 1px; background: var(--ink); transition: transform .4s var(--ease); }
.acc-icon::after { transform: rotate(90deg); }
.acc[open] .acc-icon { background: var(--ink); border-color: var(--ink); }
.acc[open] .acc-icon::before, .acc[open] .acc-icon::after { background: var(--gold-light); }
.acc[open] .acc-icon::after { transform: rotate(0); }
.acc[open] .acc-title { color: var(--gold-dark); }
.svc-list { padding: 0 4px 28px; animation: acc-in .45s var(--ease); }
@keyframes acc-in { from { opacity: 0; transform: translateY(-6px); } }
.svc-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; padding: 13px 0 13px 26px; border-top: 1px dashed var(--line-soft); position: relative; }
.svc-list li::before { content: ''; position: absolute; left: 4px; top: 24px; width: 6px; height: 6px; border: 1px solid var(--gold); transform: rotate(45deg); }
.svc-list .note { color: var(--muted); font-size: 15px; }
@media (min-width: 961px) {
  .svc-list { column-count: 2; column-gap: 40px; }
  .svc-list li { break-inside: avoid; }
}
.acc.is-flash summary { animation: flash 1.4s var(--ease); }
@keyframes flash { 0%, 100% { background: transparent; } 25% { background: rgba(217, 183, 108, .18); } }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(48px, 6vw, 88px); align-items: stretch; }
.contact-list { margin-top: 36px; }
.contact-list li { display: grid; grid-template-columns: 46px 1fr; gap: 18px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line-dark); }
.contact-list li:last-child { border-bottom: 1px solid var(--line-dark); }
.c-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-dark); color: var(--gold-light); }
.c-label { display: block; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 2px; }
.c-value { font-family: var(--serif); font-size: 25px; line-height: 1.25; color: var(--on-dark-strong); transition: color .3s; overflow-wrap: anywhere; }
a.c-value:hover { color: var(--gold-light); }
.c-email { font-size: 22px; }
.c-note { display: block; margin-top: 2px; font-size: 14.5px; color: var(--on-dark-muted); }

.map-wrap { position: relative; min-height: 560px; padding: 12px; border: 1px solid var(--line-dark); }
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 536px;
  border: 0;
  filter: grayscale(.9) sepia(.22) contrast(.95) brightness(.97);
  transition: filter .6s var(--ease);
}
.map-wrap:hover iframe { filter: none; }
.map-card {
  position: absolute;
  left: 32px; right: 32px; bottom: 32px;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  background: var(--cream);
  color: var(--text);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5);
}
.map-card img { width: 34px; height: auto; }
.map-card div { display: flex; flex-direction: column; line-height: 1.35; margin-right: auto; }
.map-card strong { font-family: var(--serif); font-weight: 600; font-size: 19px; color: var(--ink); }
.map-card span { font-size: 14px; color: var(--muted); }
.map-link { font-size: 11.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-dark); white-space: nowrap; }
.map-link:hover { color: var(--ink); }

/* ---------- Podnožje ---------- */
.site-footer { background: #100D09; color: var(--on-dark-muted); padding: 80px 0 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-small { display: block; font-size: 10px; letter-spacing: .5em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 6px; }
.footer-name { display: block; font-family: var(--serif); font-weight: 500; font-size: 40px; line-height: 1; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-strong); }
.footer-tag { margin-top: 14px; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--gold-light); }
.site-footer h4 { font-size: 11px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 18px; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { transition: color .3s; }
.site-footer a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 64px; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid var(--line-dark); font-size: 13px; }

/* ---------- Mobilna traka za kontakt ---------- */
.mobile-bar { display: none; }


/* ---------- Google karta uz privolu ---------- */
.map-frame { position: relative; height: 100%; min-height: 536px; }
.map-consent {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 32px 128px;
  text-align: center;
  color: var(--on-dark);
  background:
    radial-gradient(ellipse at 50% 40%, rgba(23, 19, 14, .35), rgba(23, 19, 14, .85) 75%),
    repeating-linear-gradient(28deg, transparent 0 46px, rgba(217, 183, 108, .12) 46px 48px),
    repeating-linear-gradient(-62deg, transparent 0 72px, rgba(217, 183, 108, .09) 72px 74px),
    #2A231B;
}
.map-consent p { max-width: 30em; font-size: 15px; color: var(--on-dark-muted); }
.map-consent a { color: var(--gold-light); border-bottom: 1px solid var(--line-dark); }
.map-consent .map-consent-title { font-family: var(--serif); font-size: 28px; color: var(--on-dark-strong); }
.map-consent .btn { margin-top: 6px; }
.map-remember { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--on-dark-muted); cursor: pointer; }
.map-remember input { width: 16px; height: 16px; accent-color: var(--gold); }

/* ---------- Usluge: poveznica na djelatnost ---------- */
.acc-more { display: inline-block; margin: 0 4px 28px; font-size: 11.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-dark); }
.acc-more:hover { color: var(--ink); }

/* ---------- Podstranice ---------- */
.page-hero {
  padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 88px);
  background:
    radial-gradient(ellipse 50% 80% at 85% 30%, rgba(217, 183, 108, .18), transparent 70%),
    var(--cream);
  border-bottom: 1px solid var(--line-soft);
}
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.breadcrumb a { color: var(--gold-dark); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span[aria-hidden] { opacity: .5; }
.page-hero-grid { display: flex; align-items: center; gap: clamp(24px, 4vw, 48px); }
.dept-icon-lg { width: 112px; height: 112px; flex: none; margin: 0; }
.dept-icon-lg svg { width: 50px; height: 50px; }
.page-title { font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 6.4vw, 84px); line-height: 1; color: var(--ink); margin-bottom: 18px; }
.page-lead { font-size: clamp(18px, 1.7vw, 21px); color: var(--muted); max-width: 36em; }
.page-hero .eyebrow { margin-bottom: 14px; }

.dept-layout { display: grid; grid-template-columns: 1fr 380px; gap: clamp(48px, 7vw, 96px); align-items: start; }
.block-title { display: flex; align-items: baseline; gap: 16px; font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3vw, 38px); color: var(--ink); margin: 0 0 18px; }
.block-title + p, .dept-main > p { max-width: 40em; margin-bottom: 16px; }
.dept-main > .block-title:not(:first-child) { margin-top: 48px; }
.block-count { font-family: var(--sans); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.svc-list-static { padding: 0; animation: none; border-bottom: 1px dashed var(--line-soft); }
@media (min-width: 961px) { .svc-list-static { column-count: 2; column-gap: 40px; } }

.dept-aside { position: sticky; top: calc(var(--header-h) + 32px); display: flex; flex-direction: column; gap: 24px; }
.aside-card { padding: 28px; border: 1px solid var(--line); background: var(--paper); }
.aside-card .eyebrow { margin-bottom: 18px; }
.aside-contact { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.aside-contact h3 { font-family: var(--serif); font-weight: 500; font-size: 28px; color: var(--on-dark-strong); margin-bottom: 8px; }
.aside-contact p { font-size: 15px; color: var(--on-dark-muted); margin-bottom: 18px; }
.aside-phone, .aside-mail { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-dark); color: var(--on-dark-strong); transition: color .3s; overflow-wrap: anywhere; }
.aside-phone { font-family: var(--serif); font-size: 24px; }
.aside-mail { font-size: 15px; }
.aside-phone:hover, .aside-mail:hover { color: var(--gold-light); }
.aside-phone .i, .aside-mail .i { color: var(--gold-light); }

.dept-grid-others .dept-card { padding: 36px 32px; }

/* ---------- Pravne stranice ---------- */
.page-hero-simple .breadcrumb { margin-bottom: 28px; }
.page-hero-simple .page-title { margin-bottom: 0; }
.legal { padding-top: clamp(48px, 7vw, 88px); }
.prose { max-width: 760px; }
.prose .lead { font-size: 20px; color: var(--ink-3); margin-bottom: 36px; }
.prose h2 { font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.2; color: var(--ink); margin: 44px 0 14px; }
.prose h3 { font-family: var(--sans); font-weight: 500; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); margin: 28px 0 10px; }
.prose p { margin-bottom: 14px; }
.prose ul { margin: 0 0 16px; }
.prose li { position: relative; padding-left: 24px; margin-bottom: 8px; }
.prose li::before { content: ''; position: absolute; left: 3px; top: 12px; width: 6px; height: 6px; border: 1px solid var(--gold); transform: rotate(45deg); }
.prose a { color: var(--gold-dark); border-bottom: 1px solid var(--line); }
.prose a:hover { color: var(--ink); border-color: var(--gold); }
.prose .updated { margin-top: 40px; font-size: 14px; color: var(--muted); }
.prose .consent-status { font-size: 15px; color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 8px 0 20px; }
.prose table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
.prose th { font-size: 11.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); border-bottom-color: var(--line); }
.prose td:first-child { font-weight: 400; color: var(--ink); white-space: nowrap; }

.page-404 { min-height: 50vh; display: flex; align-items: center; }
.page-404 .page-lead { margin-bottom: 28px; }

/* ---------- Podnožje: podaci tvrtke ---------- */
.footer-credit { color: var(--on-dark); border-bottom: 1px solid var(--line-dark); }
.footer-credit:hover { color: var(--gold-light); border-color: var(--gold-light); }
.footer-legal { flex-basis: 100%; font-size: 12.5px; line-height: 1.6; color: rgba(169, 157, 140, .75); }

/* ---------- Prostor: galerija ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(140px, 16vw, 210px);
  gap: 14px;
  grid-template-areas:
    "a a b c"
    "a a b c"
    "d d e e"
    "f g e e";
}
.g-a { grid-area: a; } .g-b { grid-area: b; } .g-c { grid-area: c; } .g-d { grid-area: d; }
.g-e { grid-area: e; } .g-f { grid-area: f; } .g-g { grid-area: g; }
.g-item { position: relative; display: block; overflow: hidden; background: var(--ink-3); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.g-item::after { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(246, 239, 227, 0); transition: border-color .5s var(--ease); pointer-events: none; }
.g-item:hover img { transform: scale(1.04); }
.g-item:hover::after, .g-item:focus-visible::after { border-color: rgba(246, 239, 227, .5); }
.g-item:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.g-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 20px 16px;
  background: linear-gradient(180deg, transparent, rgba(23, 19, 14, .72));
  font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--on-dark-strong);
  opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.g-item:hover .g-cap, .g-item:focus-visible .g-cap, .g-item.cap-on .g-cap { opacity: 1; transform: none; }
@media (hover: none) { .g-cap { opacity: 1; transform: none; } }

/* Kontakt: kako do nas */
.location-photos { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; height: clamp(240px, 30vw, 400px); margin-top: clamp(48px, 6vw, 80px); }

/* Povećani prikaz */
.lightbox {
  position: fixed; inset: 0;
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(15, 12, 9, .95);
  color: var(--on-dark);
}
.lightbox[open] { display: grid; place-items: center; animation: dialog-in .35s var(--ease); }
.lightbox::backdrop { background: transparent; }
@keyframes dialog-in { from { opacity: 0; } }
.lightbox figure { margin: 0; padding: 72px 88px 28px; display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 100%; }
.lightbox img { display: block; max-width: min(1400px, 100%); max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); }
.lightbox figcaption { font-size: 11.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--on-dark-muted); text-align: center; }
.lb-btn, .lb-close { position: absolute; width: 52px; height: 52px; border: 1px solid var(--line-dark); background: rgba(23, 19, 14, .6); cursor: pointer; transition: border-color .3s, background .3s; }
.lb-btn:hover, .lb-close:hover { border-color: var(--gold-light); background: rgba(23, 19, 14, .9); }
.lb-btn { top: 50%; margin-top: -26px; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-btn::before { content: ''; position: absolute; top: 50%; left: 50%; width: 11px; height: 11px; border: solid var(--gold-light); border-width: 0 0 1.5px 1.5px; transform: translate(-30%, -50%) rotate(45deg); }
.lb-next::before { transform: translate(-70%, -50%) rotate(-135deg); }
.lightbox.is-single .lb-btn { display: none; }
.lb-close { top: 20px; right: 20px; }
.lb-close::before, .lb-close::after { content: ''; position: absolute; left: 14px; right: 14px; top: 50%; height: 1.5px; background: var(--gold-light); transform: rotate(45deg); }
.lb-close::after { transform: rotate(-45deg); }
body:has(.lightbox[open]) { overflow: hidden; }

/* Podstranice: fotografija u zaglavlju */
.page-hero-split { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.page-hero-split .page-hero-grid { flex-direction: column; align-items: flex-start; gap: 28px; }
.page-hero-split .dept-icon-lg { width: 88px; height: 88px; }
.page-hero-split .dept-icon-lg svg { width: 40px; height: 40px; }
.page-hero-photo { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-2); }
.page-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-photo::after { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(255, 253, 248, .6); pointer-events: none; }

@media (max-width: 960px) {
  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 27vw;
    gap: 10px;
    grid-template-areas: "a a" "a a" "b c" "b c" "d d" "d d" "e e" "e e" "f g";
  }
  .page-hero-split { grid-template-columns: 1fr; }
  .page-hero-photo { aspect-ratio: 16 / 10; }
}
@media (max-width: 680px) {
  .gallery { grid-auto-rows: 29vw; gap: 8px; }
  .location-photos { grid-template-columns: 1.5fr 1fr; gap: 8px; height: 240px; }
  .g-cap { padding: 28px 12px 10px; font-size: 10px; letter-spacing: .16em; }
  .lightbox figure { padding: 76px 0 24px; }
  .lightbox img { max-height: calc(100dvh - 170px); }
  .lb-btn { top: auto; bottom: 18px; margin-top: 0; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
  .lightbox figure { padding-bottom: 90px; }
}

/* ---------- Animacije pri pomicanju ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Prilagodba ekranima ---------- */
@media (max-width: 1100px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .header-inner { gap: 14px; }
}

@media (max-width: 960px) {
  .hero { min-height: 0; padding: 32px 0 88px; }
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-visual { order: -1; width: min(300px, 70vw); margin: 0 auto; }
  .hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero-copy .eyebrow::after { content: ''; width: 36px; height: 1px; background: currentColor; opacity: .7; }
  .hero-cta { justify-content: center; }
  .hero-facts { justify-content: center; text-align: center; gap: 32px; }
  .hero-facts dd { margin: 0 auto; }

  .about-grid, .usluge-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { min-height: 480px; max-width: 560px; width: 100%; margin: 0 auto; }
  .usluge-intro { position: static; }

  .dept-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .map-wrap { min-height: 460px; }
  .map-frame, .map-wrap iframe { min-height: 436px; }
}

@media (max-width: 680px) {
  body { font-size: 16px; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  :root { --header-h: 68px; }
  .header-call { display: none; }
  .brand img { width: 34px; }
  .brand-name { font-size: 21px; }

  .hero { padding: 12px 0 64px; }
  .hero-visual { width: min(190px, 50vw); }
  .hero-copy .eyebrow { margin-bottom: 14px; }
  .ornament { margin: 18px 0; }
  .hero-cta { margin-top: 26px; }
  .hero-facts { margin-top: 36px; }
  .hero-small { letter-spacing: .5em; }
  .hero-facts { grid-template-columns: repeat(3, 1fr); gap: 16px; width: 100%; }
  .hero-facts dt { font-size: 28px; }
  .hero-facts dd { font-size: 10.5px; letter-spacing: .1em; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; }
  .scroll-cue { display: none; }

  .section-head { margin-bottom: 44px; }
  .dept-grid { grid-template-columns: 1fr; }
  .dept-card { padding: 34px 24px; }

  .about-media { min-height: 400px; }
  .acc summary { grid-template-columns: 1fr 28px; }
  .acc-count { display: none; }
  .c-value { font-size: 22px; }
  .c-email { font-size: 19px; }
  .map-wrap { min-height: 480px; padding: 8px; }
  .map-frame, .map-wrap iframe { min-height: 464px; }
  .map-card { left: 16px; right: 16px; bottom: 16px; flex-wrap: wrap; }
  .map-card .map-link { width: 100%; padding-top: 10px; border-top: 1px solid var(--line-soft); }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }

  .mobile-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    background: var(--ink);
    border-top: 1px solid var(--gold);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0 9px; font-size: 10.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-strong); }
  .mobile-bar a + a { border-left: 1px solid var(--line-dark); }
  .mobile-bar .i { width: 20px; height: 20px; color: var(--gold-light); }
}

/* ---------- Podstranice: prilagodba ekranima ---------- */
@media (max-width: 960px) {
  .dept-layout { grid-template-columns: 1fr; }
  .dept-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .page-hero-grid { flex-direction: column; align-items: flex-start; gap: 20px; }
  .dept-icon-lg { width: 84px; height: 84px; }
  .dept-icon-lg svg { width: 38px; height: 38px; }
  .breadcrumb { margin-bottom: 28px; }
  .dept-aside { grid-template-columns: 1fr; }
  .aside-card { padding: 24px 20px; }
  .map-consent { padding: 24px 20px 150px; }
}
