/* ===== Stomatologija Stupar — stilovi ===== */
:root {
  --brand-50: #effcfb;
  --brand-100: #d7f6f3;
  --brand-200: #b0ece8;
  --brand-300: #7adcd6;
  --brand-400: #3ec4bf;
  --brand-500: #1aa8a4;
  --brand-600: #0e8a89;
  --brand-700: #106e6f;
  --brand-800: #135859;
  --brand-900: #14494b;
  --brand-950: #042b2d;
  --accent-500: #3380fb;
  --ink: #0f2c2e;
  --ink-soft: #3a5658;
  --ink-muted: #6b8688;
  --sand: #f7faf9;
  --shadow-soft: 0 10px 40px -12px rgba(16, 110, 111, 0.18);
  --shadow-card: 0 2px 24px -8px rgba(15, 44, 46, 0.12);
  --font-sans: "Inter", system-ui, sans-serif;
  --font-display: "Manrope", "Inter", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--brand-200); color: var(--brand-950); }
.hidden { display: none !important; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 640px) { .container { padding: 0 32px; } }

.section { padding: 80px 0; }
@media (min-width: 640px) { .section { padding: 110px 0; } }
.section--sand { background: var(--sand); }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand-50); color: var(--brand-700);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 6px 16px; border-radius: 999px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-top: 18px; }
.section-head p { color: var(--ink-soft); margin-top: 14px; font-size: 17px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-size: 15px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent; transition: all .2s; white-space: nowrap; }
.btn-primary { background: var(--brand-600); color: #fff; box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--brand-700); transform: translateY(-2px); }
.btn-outline { background: #fff; color: var(--brand-700); border-color: var(--brand-200); }
.btn-outline:hover { border-color: var(--brand-400); background: var(--brand-50); }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { background: var(--brand-50); color: var(--brand-700); }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* Header */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: all .3s; }
.header.scrolled { background: rgba(255,255,255,.9); backdrop-filter: blur(10px); box-shadow: var(--shadow-card); }
.header__bar { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 16px; }
.logo img { height: 62px; width: auto; }
@media (min-width: 640px){ .logo img { height: 66px; } }
.nav { display: none; align-items: center; gap: 2px; }
@media (min-width: 1180px) { .nav { display: flex; } }
.nav a { padding: 8px 13px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-soft); white-space: nowrap; transition: all .2s; }
.nav a:hover { background: var(--brand-50); color: var(--brand-700); }
.header__actions { display: flex; align-items: center; gap: 8px; }

/* Jezički prekidač (zastavice) */
.lang-switch { position: relative; }
.lang-current { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px;
  font-weight: 600; font-size: 14px; color: var(--ink-soft); background: transparent;
  border: 1px solid var(--brand-100); cursor: pointer; transition: all .2s; }
.lang-current:hover { background: var(--brand-50); border-color: var(--brand-300); color: var(--brand-700); }
.lang-current .fa-chevron-down { font-size: 11px; transition: transform .25s; opacity: .7; }
.lang-switch.open .lang-current .fa-chevron-down { transform: rotate(180deg); }
.lang-switch .flag { width: 24px; height: 18px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(15,44,46,.08); display: block; }
.lang-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 168px; background: #fff;
  border: 1px solid #eef2f2; border-radius: 14px; box-shadow: var(--shadow-soft); padding: 6px;
  display: none; z-index: 60; }
.lang-switch.open .lang-menu { display: block; animation: fade .18s ease both; }
.lang-opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 10px;
  background: none; border: none; cursor: pointer; font: inherit; font-size: 14px; font-weight: 500; color: var(--ink); text-align: left; }
.lang-opt:hover { background: var(--brand-50); color: var(--brand-700); }
.lang-opt.active { background: var(--brand-50); color: var(--brand-700); font-weight: 700; }
@media (max-width: 380px){ .lang-current .lang-code { display: none; } }
.header .btn-primary { display: none; }
@media (min-width: 640px){ .header .btn-primary { display: inline-flex; } }
.burger { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 12px; background: transparent; border: none; cursor: pointer; color: var(--ink); font-size: 22px; }
@media (min-width: 1180px){ .burger { display: none; } }
.mobile-menu { display: none; background: #fff; border-top: 1px solid #eef2f2; }
.mobile-menu.open { display: block; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; }
.mobile-menu nav a { padding: 12px 16px; border-radius: 12px; font-weight: 500; color: var(--ink-soft); }
.mobile-menu nav a:hover { background: var(--brand-50); color: var(--brand-700); }
/* Header na podstranicama (nema hero ispod njega) */
.header--solid { background: rgba(255,255,255,.96); backdrop-filter: blur(10px); box-shadow: var(--shadow-card); }
.subpage { padding-top: 130px; }
@media (min-width: 640px){ .subpage { padding-top: 150px; } }

/* Hero */
.hero { position: relative; padding-top: 110px; overflow: hidden;
  background:
    radial-gradient(60% 80% at 80% 10%, rgba(26,168,164,.14), transparent 60%),
    radial-gradient(50% 60% at 10% 90%, rgba(51,128,251,.10), transparent 60%),
    linear-gradient(180deg, #f7faf9 0%, #fff 100%); }
.hero__grid { display: grid; gap: 48px; align-items: center; padding-bottom: 64px; }
@media (min-width: 1024px){ .hero__grid { grid-template-columns: 1fr 1fr; padding-bottom: 90px; } }
.hero h1 { font-size: clamp(34px, 6vw, 60px); font-weight: 800; }
.hero h1 .hl { color: var(--brand-600); }
.hero__sub { font-size: 18px; color: var(--ink-soft); margin-top: 22px; max-width: 540px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__img { position: relative; }
.hero__img .frame { position: relative; border-radius: 36px; overflow: hidden; box-shadow: var(--shadow-soft); aspect-ratio: 4/4.4; }
.hero__img .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge { position: absolute; bottom: 28px; left: -10px; background: rgba(255,255,255,.95);
  backdrop-filter: blur(6px); border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow-soft); display: none; }
@media (min-width: 640px){ .hero__badge { display: block; } }
.hero__badge b { font-size: 18px; }
.hero__badge span { font-size: 12px; color: var(--ink-muted); display: block; }

/* Stats */
.stats { border-top: 1px solid rgba(176,236,232,.5); background: rgba(255,255,255,.6); }
.stats__grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; padding: 32px 0; }
@media (min-width: 1024px){ .stats__grid { grid-template-columns: repeat(4,1fr); } }
.stat { text-align: center; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(26px,4vw,36px); font-weight: 800; color: var(--brand-600); }
.stat span { font-size: 14px; color: var(--ink-soft); }

/* About */
.about__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px){ .about__grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.about__img { position: relative; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow-card); aspect-ratio: 4/3; }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about h2 { font-size: clamp(26px,3.5vw,38px); font-weight: 800; margin-top: 18px; }
.about p { color: var(--ink-soft); margin-top: 16px; }
.about__features { list-style: none; display: grid; gap: 12px; margin-top: 26px; }
@media (min-width: 480px){ .about__features { grid-template-columns: 1fr 1fr; } }
.about__features li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; font-weight: 500; }
.about__features i { color: var(--brand-600); margin-top: 3px; }

/* Services / cards grid */
.grid-3 { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px){ .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px){ .grid-3 { grid-template-columns: repeat(3,1fr); } }
.card { background: #fff; border: 1px solid #f0f3f3; border-radius: 24px; padding: 28px; box-shadow: var(--shadow-card); transition: all .3s; }
.card:hover { transform: translateY(-4px); border-color: var(--brand-200); box-shadow: var(--shadow-soft); }
.service-ico { width: 56px; height: 56px; border-radius: 18px; background: var(--brand-50); color: var(--brand-600);
  display: flex; align-items: center; justify-content: center; font-size: 24px; transition: all .3s; }
.card:hover .service-ico { background: var(--brand-600); color: #fff; }
.card h3 { font-size: 19px; font-weight: 700; margin-top: 20px; }
.card p { color: var(--ink-soft); font-size: 14px; margin-top: 8px; }

/* Gallery */
.gallery-grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (min-width: 768px){ .gallery-grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 1024px){ .gallery-grid { grid-template-columns: repeat(4,1fr); } }
.gallery-grid--work { grid-template-columns: 1fr 1fr; }
@media (min-width: 768px){ .gallery-grid--work { grid-template-columns: repeat(3,1fr); } }
.gallery-grid button { position: relative; border: none; padding: 0; cursor: pointer; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #eef2f2; box-shadow: var(--shadow-card); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery-grid button:hover img { transform: scale(1.08); }
.gallery-grid .g-zoom { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(4,43,45,0) 40%, rgba(4,43,45,.55) 100%);
  color: #fff; font-size: 22px; opacity: 0; transition: opacity .3s; }
.gallery-grid button:hover .g-zoom { opacity: 1; }
.gallery-grid .g-zoom i { background: rgba(255,255,255,.18); backdrop-filter: blur(4px);
  width: 52px; height: 52px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  transform: translateY(8px); transition: transform .3s; }
.gallery-grid button:hover .g-zoom i { transform: translateY(0); }
.gallery-more { text-align: center; margin-top: 40px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.92);
  display: flex; align-items: center; justify-content: center; padding: 20px; }
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; }
.lightbox button { position: absolute; width: 48px; height: 48px; border-radius: 999px; border: none;
  background: rgba(255,255,255,.12); color: #fff; font-size: 22px; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }

/* Team */
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 40px; max-width: 980px; margin: 0 auto; }
.team-card { text-align: center; flex: 0 1 300px; }
.team-ava { width: 112px; height: 112px; border-radius: 999px; margin: 0 auto; overflow: hidden; background: var(--brand-100);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--brand-600); }
.team-ava img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { margin-top: 18px; font-size: 18px; font-weight: 700; }
.team-role { color: var(--brand-600); font-weight: 600; font-size: 14px; margin-top: 4px; }
.team-card p { color: var(--ink-soft); font-size: 14px; margin-top: 10px; }

/* Reviews */
.review { position: relative; background: #fff; border: 1px solid #f0f3f3; border-radius: 24px; padding: 28px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.review .g-badge { position: absolute; top: 24px; right: 24px; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; }
.review .g-badge svg { width: 24px; height: 24px; display: block; }
.review .quote { color: var(--brand-200); font-size: 34px; }
.review .stars { color: #fbbf24; margin: 8px 0; }
.review blockquote { color: var(--ink-soft); font-size: 14px; flex: 1; }
.review figcaption { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #f0f3f3; }
.review .ava { width: 40px; height: 40px; border-radius: 999px; background: var(--brand-50); color: var(--brand-600);
  display: flex; align-items: center; justify-content: center; font-weight: 700; }
.review .who b { font-size: 14px; display: block; }
.review .who span { font-size: 12px; color: var(--ink-muted); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border: 1px solid #f0f3f3; border-radius: 16px; overflow: hidden; margin-bottom: 12px; background: #fff; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; background: none; border: none; cursor: pointer; text-align: left; font-weight: 600; font-size: 16px; color: var(--ink); }
.faq-q i { color: var(--brand-600); transition: transform .3s; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { padding: 0 20px 18px; color: var(--ink-soft); font-size: 14px; }

/* Contact */
.contact-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1024px){ .contact-grid { grid-template-columns: 2fr 3fr; } }
.info-row { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid #f0f3f3;
  border-radius: 18px; padding: 16px; box-shadow: var(--shadow-card); margin-bottom: 14px; }
.info-row .ico { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--brand-50); color: var(--brand-600);
  display: flex; align-items: center; justify-content: center; font-size: 18px; }
.info-row .info-body { min-width: 0; flex: 1; }
.info-row .lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); }
.info-row .val { font-size: 14px; color: var(--ink-soft); margin-top: 4px; }
.info-row .val a:hover { color: var(--brand-700); }
.info-row .wh-list { display: grid; gap: 6px; }
.info-row .wh-row { display: flex; flex-wrap: wrap; gap: 2px 12px; }
.info-row .wh-row span { white-space: nowrap; }
.info-row .wh-row b { margin-left: auto; white-space: nowrap; color: var(--ink); }
.directions { display: inline-flex; gap: 6px; align-items: center; margin-top: 12px;
  color: var(--brand-600); font-weight: 600; font-size: 14px; }
.directions:hover { color: var(--brand-700); }
.map-embed { border-radius: 18px; overflow: hidden; border: 1px solid #f0f3f3; box-shadow: var(--shadow-card); margin-top: 8px; }
.map-embed iframe { width: 100%; height: 240px; border: 0; display: block; }
.form-card { background: #fff; border: 1px solid #f0f3f3; border-radius: 24px; padding: 28px; box-shadow: var(--shadow-card); }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px){ .form-grid { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
label.lbl { font-size: 14px; font-weight: 500; color: var(--ink-soft); margin-bottom: 6px; }
.input { width: 100%; padding: 12px 16px; border: 1px solid #e2e8e8; border-radius: 12px; font: inherit; font-size: 14px; color: var(--ink); background: #fff; transition: all .2s; }
.input:focus { outline: none; border-color: var(--brand-400); box-shadow: 0 0 0 3px var(--brand-100); }
textarea.input { resize: vertical; min-height: 96px; }
.form-msg { grid-column: 1/-1; padding: 10px 14px; border-radius: 10px; font-size: 14px; }
.form-msg.err { background: #fef2f2; color: #b91c1c; }
.form-ok { text-align: center; padding: 40px 10px; }
.form-ok i { font-size: 52px; color: var(--brand-500); }
.form-ok p { margin-top: 16px; font-weight: 500; }

/* Footer */
.footer { position: relative; color: rgba(215,246,243,.82);
  background:
    radial-gradient(80% 120% at 85% -10%, rgba(26,168,164,.22), transparent 55%),
    radial-gradient(70% 100% at 0% 110%, rgba(51,128,251,.14), transparent 55%),
    linear-gradient(180deg, #0a3a3c 0%, var(--brand-950) 60%); }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-400), var(--brand-600), var(--accent-500)); }
.footer__grid { display: grid; gap: 40px 32px; padding-top: 72px; padding-bottom: 56px; grid-template-columns: 1fr; }
@media (min-width: 560px){ .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px){ .footer__grid { grid-template-columns: 2.2fr 1fr 1.5fr 1.4fr; } }
.footer__brand { max-width: 320px; }
.footer img.flogo { height: 50px; width: auto; filter: brightness(0) invert(1); }
.footer__brand .muted { margin-top: 16px; font-size: 15px; line-height: 1.6; }
.footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; padding-bottom: 12px;
  position: relative; }
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px;
  border-radius: 2px; background: var(--brand-400); }
.footer ul { list-style: none; margin-top: 18px; display: grid; gap: 12px; }
.footer a, .footer .muted { color: rgba(215,246,243,.82); font-size: 14px; transition: color .2s, transform .2s; }
.footer ul a { display: inline-flex; align-items: center; gap: 9px; }
.footer ul a i { color: var(--brand-400); width: 16px; text-align: center; font-size: 13px; }
.footer ul a:hover { color: #fff; transform: translateX(3px); }
.footer ul li.muted { display: flex; align-items: flex-start; gap: 9px; }
.footer ul li.muted i { color: var(--brand-400); margin-top: 4px; }
.footer .socials { display: flex; gap: 12px; margin-top: 22px; }
.footer .socials a { width: 42px; height: 42px; border-radius: 13px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 17px; transition: all .25s; }
.footer .socials a:hover { transform: translateY(-3px); background: var(--brand-500); border-color: var(--brand-400); box-shadow: 0 8px 20px -8px rgba(26,168,164,.7); }
.footer .socials a.viber:hover { background: #7360f2; border-color: #7360f2; box-shadow: 0 8px 20px -8px rgba(115,96,242,.7); }
.footer .wh-row { display: flex; flex-wrap: wrap; gap: 2px 12px; }
.footer .wh-row span { white-space: nowrap; }
.footer .wh-row b { margin-left: auto; white-space: nowrap; color: #fff; font-weight: 600; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); position: relative; }
.footer__bottom .inner { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; font-size: 12px; color: rgba(215,246,243,.7); }
.footer__bottom a:hover { color: #fff; }
.footer__sign { color: rgba(215,246,243,.55); letter-spacing: .02em; }

/* Parallax CTA traka */
.cta-band { position: relative; isolation: isolate; overflow: hidden;
  background-image: url("images/galerija/foto-17.jpg");
  background-size: cover; background-position: center; background-attachment: fixed; }
.cta-band__overlay { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, rgba(4,43,45,.9) 0%, rgba(14,73,75,.82) 45%, rgba(16,110,111,.7) 100%); }
.cta-band__inner { text-align: center; padding: 96px 20px; max-width: 720px; }
.cta-band__inner h2 { color: #fff; font-size: clamp(26px, 4vw, 40px); font-weight: 800; }
.cta-band__inner p { color: rgba(255,255,255,.88); font-size: 17px; margin-top: 14px; }
.cta-band__inner .btn { margin-top: 28px; }
.btn-lg { padding: 16px 34px; font-size: 16px; }
@media (max-width: 768px){ .cta-band { background-attachment: scroll; } .cta-band__inner { padding: 72px 20px; } }

/* Loader */
.page-loader { position: fixed; inset: 0; background: #fff; z-index: 100; display: flex; align-items: center; justify-content: center; }
.spinner { width: 42px; height: 42px; border: 4px solid var(--brand-100); border-top-color: var(--brand-600); border-radius: 999px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.fade-in { animation: fade .6s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
