/*
Theme Name: Sani Medical Onepage
Theme URI: https://sani-med.ba
Author: Sani Medical
Description: Brza, pristupačna i višejezična one-page tema za Sani Medical d.o.o.
Version: 1.3.0
Text Domain: sani-medical
*/

:root {
  --sm-blue: #0b3f91;
  --sm-blue-dark: #072d68;
  --sm-teal: #00a7b5;
  --sm-teal-soft: #e9fafb;
  --sm-ink: #10233f;
  --sm-muted: #5d6d82;
  --sm-line: #dce6f0;
  --sm-soft: #f5f9fc;
  --sm-white: #ffffff;
  --sm-warm: #ff7855;
  --sm-radius: 22px;
  --sm-shadow: 0 18px 50px rgba(7, 45, 104, 0.11);
  --sm-max: 1180px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 24px; }

body {
  margin: 0;
  color: var(--sm-ink);
  background: var(--sm-white);
  font-family: "Lucida Console", Monaco, "Courier New", monospace;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }

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

.screen-reader-text:focus {
  position: fixed;
  z-index: 99999;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  clip: auto;
  padding: 12px 16px;
  background: var(--sm-white);
  color: var(--sm-blue);
  border-radius: 10px;
  box-shadow: var(--sm-shadow);
}

.sm-container { width: min(calc(100% - 40px), var(--sm-max)); margin-inline: auto; }
.sm-section { padding: 96px 0; }
.sm-section--soft { background: var(--sm-soft); }

.sm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: var(--sm-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sm-eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sm-blue), var(--sm-teal));
}

.sm-section-title {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.sm-section-lead {
  max-width: 700px;
  margin: 20px 0 0;
  color: var(--sm-muted);
  font-size: 1.08rem;
}

.sm-topbar {
  color: var(--sm-white);
  background: var(--sm-blue-dark);
  font-size: 0.88rem;
  font-weight: 700;
}

.sm-topbar__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.sm-topbar__status { display: flex; align-items: center; gap: 8px; }
.sm-live-dot { width: 8px; height: 8px; background: #5df0c2; border-radius: 50%; box-shadow: 0 0 0 5px rgba(93,240,194,.14); }
.sm-topbar__phone { color: #fff; }

.sm-header {
  position: relative;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid rgba(220, 230, 240, 0.9);
}

.sm-header__inner {
  min-height: 270px;
  display: grid;
  grid-template-columns: minmax(560px, 1.08fr) minmax(0, .92fr);
  grid-template-rows: 1fr 1fr;
  align-items: center;
  column-gap: 28px;
}

.sm-brand { grid-row: 1 / -1; display: inline-flex; align-items: center; gap: 24px; min-width: 0; }
.sm-brand img { width: 234px; height: 234px; flex: 0 0 auto; object-fit: contain; border-radius: 50%; }
.sm-brand__text { display: grid; line-height: 1.05; }
.sm-brand__name { color: var(--sm-blue-dark); font-size: 2.75rem; font-weight: 900; letter-spacing: -.025em; }
.sm-brand__sub { max-width: 350px; margin-top: 12px; color: var(--sm-muted); font-size: .94rem; font-weight: 700; letter-spacing: .015em; line-height: 1.4; }

.sm-nav { grid-column: 2; grid-row: 1; align-self: end; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 14px; padding-bottom: 14px; }
.sm-nav a { color: #31445f; font-size: .82rem; font-weight: 750; }
.sm-nav a:hover, .sm-nav a:focus-visible { color: var(--sm-blue); }

.sm-header > .sm-container > .sm-btn--small { grid-column: 2; grid-row: 2; align-self: start; justify-self: end; margin-top: 14px; }

.sm-language { display: flex; flex-wrap: nowrap; justify-content: center; gap: 3px; max-width: 230px; padding: 4px; border: 1px solid var(--sm-line); border-radius: 18px; background: #fff; }
.sm-language a { min-width: 30px; padding: 5px 6px; text-align: center; border-radius: 999px; font-size: .66rem; font-weight: 850; }
.sm-language a[aria-current="page"] { color: #fff; background: var(--sm-blue); }

.sm-btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-weight: 850;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.sm-btn:hover { transform: translateY(-2px); }
.sm-btn--primary { color: #fff; background: linear-gradient(135deg, var(--sm-blue), #0a65b8); box-shadow: 0 12px 28px rgba(11, 63, 145, .22); }
.sm-btn--secondary { color: var(--sm-blue); background: #fff; border-color: #b9cce0; }
.sm-btn--teal { color: #fff; background: #087f8d; }
.sm-btn--small { min-height: 42px; padding: 9px 15px; font-size: .88rem; }

.sm-menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--sm-line); border-radius: 12px; background: #fff; color: var(--sm-blue); }

.sm-hero { position: relative; overflow: hidden; padding: 64px 0 78px; }
.sm-hero::before { content: ""; position: absolute; width: 480px; height: 480px; right: -180px; top: -190px; border-radius: 50%; background: radial-gradient(circle, rgba(0,167,181,.15), rgba(0,167,181,0) 68%); pointer-events: none; }
.sm-hero__grid { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(420px, .97fr); gap: 62px; align-items: center; }

.sm-hero h1 { max-width: 720px; margin: 0; font-size: clamp(2.75rem, 6vw, 5.35rem); line-height: .98; letter-spacing: -0.06em; }
.sm-hero h1 span { color: var(--sm-blue); }
.sm-hero__lead { max-width: 650px; margin: 24px 0 0; color: var(--sm-muted); font-size: clamp(1.05rem, 2vw, 1.24rem); }
.sm-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.sm-hero__trust { display: flex; flex-wrap: wrap; gap: 17px 25px; margin-top: 30px; padding: 0; list-style: none; color: #354a66; font-size: .91rem; font-weight: 750; }
.sm-hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.sm-check { width: 21px; height: 21px; display: inline-grid; place-items: center; color: #fff; background: var(--sm-teal); border-radius: 50%; font-size: .72rem; }

.sm-hero__visual { position: relative; }
.sm-hero__photo { height: 590px; width: 100%; object-fit: cover; object-position: 55% center; border-radius: 30px; box-shadow: var(--sm-shadow); }
.sm-hero__badge { position: absolute; left: -24px; bottom: 28px; width: 184px; padding: 18px; color: #fff; background: var(--sm-blue-dark); border: 5px solid #fff; border-radius: 20px; box-shadow: var(--sm-shadow); }
.sm-hero__badge strong { display: block; font-size: 1.6rem; line-height: 1; }
.sm-hero__badge span { display: block; margin-top: 7px; font-size: .8rem; color: #c9e8ff; }

.sm-proof { border-block: 1px solid var(--sm-line); background: #fff; }
.sm-proof__grid { min-height: 112px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; }
.sm-proof__item { padding: 18px 26px; text-align: center; border-right: 1px solid var(--sm-line); }
.sm-proof__item:last-child { border-right: 0; }
.sm-proof__item strong { display: block; color: var(--sm-blue); font-size: 1.45rem; line-height: 1.1; }
.sm-proof__item span { color: var(--sm-muted); font-size: .82rem; font-weight: 700; }

.sm-services__head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 38px; }
.sm-services__head .sm-section-lead { max-width: 420px; margin: 0; }
.sm-service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }

.sm-service-card { position: relative; overflow: hidden; min-height: 360px; padding: 34px; border: 1px solid var(--sm-line); border-radius: var(--sm-radius); background: #fff; box-shadow: 0 10px 32px rgba(16,35,63,.06); }
.sm-service-card--image { display: flex; align-items: end; min-height: 500px; color: #fff; background-size: cover; background-position: center; }
.sm-service-card--image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,23,43,.03) 15%, rgba(4,25,53,.88) 90%); }
.sm-service-card--homecare { background-position: center 34%; }
.sm-service-card--light-image { color: var(--sm-ink); background-position: center 18%; }
.sm-service-card--light-image::before { background: linear-gradient(180deg, rgba(255,255,255,.02) 20%, rgba(255,255,255,.96) 72%); }
.sm-service-card--teal { background: linear-gradient(145deg, #effcfd 0%, #fff 68%); }
.sm-service-card--blue { color: #fff; background: linear-gradient(145deg, var(--sm-blue-dark), #0a6fa8); border-color: transparent; }
.sm-service-card__body { position: relative; z-index: 1; }
.sm-service-icon { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 50px; border-radius: 17px; color: var(--sm-blue); background: var(--sm-teal-soft); font-size: 1.6rem; }
.sm-service-card--blue .sm-service-icon { color: #fff; background: rgba(255,255,255,.14); }
.sm-service-card__number { display: block; margin-bottom: 10px; color: var(--sm-teal); font-size: .75rem; font-weight: 900; letter-spacing: .12em; }
.sm-service-card h3 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.25rem); letter-spacing: -.035em; }
.sm-service-card p { max-width: 520px; margin: 14px 0 0; color: var(--sm-muted); }
.sm-service-card--image p, .sm-service-card--blue p { color: rgba(255,255,255,.82); }
.sm-service-card ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: .9rem; }
.sm-service-card li::before { content: "✓"; margin-right: 8px; color: var(--sm-teal); font-weight: 900; }
.sm-service-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--sm-blue); font-weight: 850; }
.sm-service-card--image .sm-service-link, .sm-service-card--blue .sm-service-link { color: #fff; }
.sm-service-card--image.sm-service-card--light-image p { color: var(--sm-muted); }
.sm-service-card--image.sm-service-card--light-image .sm-service-link { color: var(--sm-blue); }

.sm-process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.sm-step { padding: 28px; border-radius: 18px; background: #fff; border: 1px solid var(--sm-line); }
.sm-step__number { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 42px; color: #fff; background: var(--sm-blue); border-radius: 12px; font-weight: 900; }
.sm-step h3 { margin: 0; font-size: 1.18rem; }
.sm-step p { margin: 9px 0 0; color: var(--sm-muted); font-size: .91rem; }

.sm-team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.sm-team-photo { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: center; border-radius: 28px; box-shadow: var(--sm-shadow); }
.sm-value-list { display: grid; gap: 14px; margin-top: 28px; }
.sm-value { display: grid; gap: 4px; padding: 15px 18px; border-left: 4px solid var(--sm-blue); border-radius: 0 14px 14px 0; background: var(--sm-soft); }
.sm-value strong { display: block; }
.sm-value span { color: var(--sm-muted); font-size: .9rem; }

.sm-reviews { color: #fff; background: var(--sm-blue-dark); }
.sm-reviews .sm-eyebrow, .sm-reviews .sm-section-lead { color: #c9e8ff; }
.sm-reviews .sm-eyebrow::before { background: var(--sm-teal); }
.sm-review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.sm-review-card { padding: 28px; border: 1px solid rgba(255,255,255,.14); border-radius: 19px; background: rgba(255,255,255,.07); }
.sm-review-metric { color: #ffd66b; font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900; line-height: 1; }
.sm-review-card h3 { margin: 18px 0 8px; font-size: 1.18rem; }
.sm-review-card p { margin: 0; color: #c9d9ea; }
.sm-review-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; margin-top: 26px; padding: 20px 22px; border-radius: 16px; background: rgba(255,255,255,.09); }
.sm-review-note p { margin: 0; color: #dbe9f6; }

.sm-contact-card { position: relative; overflow: hidden; padding: 58px; color: #fff; background: linear-gradient(135deg, var(--sm-blue), #087b95); border-radius: 30px; box-shadow: var(--sm-shadow); }
.sm-contact-card::after { content: "✚"; position: absolute; right: 45px; top: -70px; color: rgba(255,255,255,.08); font-size: 16rem; line-height: 1; }
.sm-contact-card__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; gap: 50px; align-items: end; }
.sm-contact-card h2 { max-width: 680px; margin: 0; font-size: clamp(2.25rem, 5vw, 4.3rem); line-height: 1.02; letter-spacing: -.05em; }
.sm-contact-card p { max-width: 620px; color: rgba(255,255,255,.82); }
.sm-contact-list { display: grid; gap: 12px; }
.sm-contact-list a, .sm-contact-list span { display: flex; align-items: center; gap: 10px; font-weight: 750; }
.sm-contact-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 25px; }
.sm-contact-card .sm-btn--primary { color: var(--sm-blue); background: #fff; }
.sm-contact-card .sm-btn--secondary { color: #fff; background: transparent; border-color: rgba(255,255,255,.44); }

.sm-social-section { text-align: center; }
.sm-social-section .sm-eyebrow { justify-content: center; }
.sm-social-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 34px; }
.sm-social-link { min-height: 136px; display: grid; place-items: center; align-content: center; gap: 12px; padding: 18px; color: var(--sm-ink); background: #fff; border: 1px solid var(--sm-line); border-radius: 20px; box-shadow: 0 12px 28px rgba(16,35,63,.08); transition: transform .2s ease, box-shadow .2s ease; }
.sm-social-link:hover { transform: translateY(-4px); box-shadow: var(--sm-shadow); }
.sm-social-logo { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px; }
.sm-social-logo img { width: 30px; height: 30px; }
.sm-social-link--viber .sm-social-logo { background: #7360f2; }
.sm-social-link--whatsapp .sm-social-logo { background: #25d366; }
.sm-social-link--facebook .sm-social-logo { background: #1877f2; }
.sm-social-link--instagram .sm-social-logo { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); }
.sm-social-link--tiktok .sm-social-logo { background: #111; }

.sm-map-section { padding-top: 40px; }
.sm-location-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 38px; }
.sm-location-card { overflow: hidden; border: 1px solid var(--sm-line); border-radius: 26px; background: #fff; box-shadow: var(--sm-shadow); }
.sm-location-card__body { padding: 24px 24px 22px; }
.sm-location-label { display: inline-flex; padding: 5px 10px; color: var(--sm-blue); background: #eaf3ff; border-radius: 999px; font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.sm-location-card h3 { margin: 12px 0 6px; font-size: 1.42rem; }
.sm-location-card p { min-height: 52px; margin: 0 0 18px; color: var(--sm-muted); }
.sm-map { width: 100%; min-height: 320px; display: block; border: 0; border-top: 1px solid var(--sm-line); }

.sm-footer { padding: 30px 0 90px; border-top: 1px solid var(--sm-line); }
.sm-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; color: var(--sm-muted); font-size: .84rem; }
.sm-footer__links { display: flex; flex-wrap: wrap; gap: 18px; }
.sm-footer a:hover { color: var(--sm-blue); }

.sm-floating-call { position: fixed; z-index: 1200; right: 22px; bottom: 22px; width: 62px; height: 62px; display: grid; place-items: center; color: #fff; background: var(--sm-blue); border: 4px solid #fff; border-radius: 50%; box-shadow: 0 12px 34px rgba(7,45,104,.32); font-size: 1.45rem; }
.sm-mobile-callbar { display: none; }

@media (max-width: 1020px) {
  .sm-header__inner { min-height: 190px; display: flex; justify-content: space-between; gap: 18px; }
  .sm-brand { gap: 18px; }
  .sm-brand img { width: 150px; height: 150px; }
  .sm-brand__name { font-size: 2.1rem; }
  .sm-brand__sub { max-width: 300px; font-size: .78rem; }
  .sm-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: 26px 20px 34px; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--sm-line); box-shadow: var(--sm-shadow); }
  .sm-nav.is-open { display: flex; }
  .sm-nav a { padding: 8px 0; }
  .sm-language { width: max-content; max-width: 230px; }
  .sm-menu-toggle { display: grid; place-items: center; }
  .sm-header .sm-btn--small { display: none; }
  .sm-hero__grid { grid-template-columns: 1fr; }
  .sm-hero__visual { max-width: 720px; }
  .sm-hero__photo { height: 540px; }
  .sm-proof__grid { grid-template-columns: repeat(2, 1fr); }
  .sm-proof__item:nth-child(2) { border-right: 0; }
  .sm-proof__item:nth-child(-n+2) { border-bottom: 1px solid var(--sm-line); }
  .sm-process-grid { grid-template-columns: repeat(2, 1fr); }
  .sm-team-grid { gap: 36px; }
  .sm-contact-card__grid { grid-template-columns: 1fr; }
  .sm-social-grid { grid-template-columns: repeat(3, 1fr); }
  .sm-location-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 20px; }
  .sm-container { width: min(calc(100% - 28px), var(--sm-max)); }
  .sm-section { padding: 72px 0; }
  .sm-topbar__inner { min-height: 34px; }
  .sm-topbar__inner > span:last-child { display: none; }
  .sm-header__inner { min-height: 116px; gap: 10px; }
  .sm-brand { min-width: 0; gap: 10px; }
  .sm-brand img { width: 84px; height: 84px; }
  .sm-brand__name { font-size: 1.27rem; }
  .sm-brand__sub { display: block; max-width: 175px; margin-top: 5px; font-size: .52rem; line-height: 1.3; }
  .sm-hero { padding: 48px 0 62px; }
  .sm-hero__grid { gap: 40px; }
  .sm-hero h1 { font-size: clamp(2.7rem, 13vw, 4.3rem); }
  .sm-hero__actions .sm-btn { width: 100%; }
  .sm-hero__photo { height: 470px; border-radius: 22px; }
  .sm-hero__badge { left: 12px; bottom: 12px; width: 155px; }
  .sm-services__head { align-items: start; flex-direction: column; }
  .sm-service-grid, .sm-review-grid, .sm-team-grid { grid-template-columns: 1fr; }
  .sm-service-card { padding: 26px; }
  .sm-service-card--image { min-height: 430px; }
  .sm-process-grid { grid-template-columns: 1fr; }
  .sm-step__number { margin-bottom: 24px; }
  .sm-contact-card { padding: 36px 24px; border-radius: 22px; }
  .sm-contact-card::after { right: -55px; }
  .sm-contact-actions .sm-btn { width: 100%; }
  .sm-social-grid { grid-template-columns: repeat(2, 1fr); }
  .sm-social-link { min-height: 116px; }
  .sm-map { min-height: 360px; }
  .sm-footer__inner { align-items: flex-start; flex-direction: column; }
  .sm-floating-call { display: none; }
  .sm-mobile-callbar { position: fixed; z-index: 1300; left: 10px; right: 10px; bottom: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 7px; border: 1px solid var(--sm-line); border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: var(--sm-shadow); backdrop-filter: blur(12px); }
  .sm-mobile-callbar .sm-btn { min-height: 46px; padding: 10px; font-size: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
