/* specialty.css — medical specialty pages + /zdravlje/ hub.
   Sits on top of tokens.css. Mirrors the live per-page Elementor HTML blocks
   (#miren-cardio & friends) so the rebuilt pages look identical, but with one
   shared stylesheet instead of 20 copies of the same inline <style>. */

/* ---------------------------------------------------------- page title band */
/* gradient, watermark and height are the live Elementor values, read off
   _source/css/post-<id>.css by tools/extract_specialties.py (bg_map). All 17
   banners share them; only the watermark path varies, so it arrives as
   --sp-watermark from the template rather than being hard-coded here. */
.sp-banner {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: clamp(200px, 26vw, 355px);
  padding: 20px 0;
  background: linear-gradient(360deg, #0F3C3A 0%, #000000 100%);
  color: var(--mm-cream);
}
.sp-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--sp-watermark);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: .03;
  pointer-events: none;
}
.sp-banner > .mm-container { position: relative; width: 100%; }
.sp-banner__title {
  font-family: var(--mm-font-serif);
  font-weight: 400;
  color: var(--mm-cream);
  font-size: clamp(32px, 5.4vw, 62px);
  line-height: 1.1;
  margin: 0;
}

/* ------------------------------------------------------------------- hero */
.sp-hero { padding: var(--mm-section-y) 0; background: var(--mm-white); }
.sp-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
}
.sp-hero--plain .sp-hero__grid { grid-template-columns: 1fr; max-width: 860px; }
.sp-hero__text > p { margin: 0 0 20px; color: #5f6b68; }
.sp-hero__text h1 { margin: 0 0 18px; }
.sp-hero__media img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 20px 20px 0 var(--mm-gold);
}
.sp-hero .mm-btn { margin-top: 10px; }

/* --------------------------------------------------------- ključne usluge */
.sp-services {
  padding: var(--mm-section-y) 0;
  background: #f9fbfb;
  border-top: 1px solid var(--mm-line);
  border-bottom: 1px solid var(--mm-line);
}
.sp-head { max-width: 800px; margin: 0 auto clamp(32px, 5vw, 50px); text-align: center; }
.sp-head h2 { margin: 0 0 10px; }
.sp-head p { margin: 0; color: var(--mm-mute); }
/* Flex (not grid) so a trailing orphan card centres instead of hanging on the
   left of an empty row. */
.sp-svc-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(18px, 2vw, 26px);
}
.sp-svc {
  position: relative;
  flex: 1 1 300px;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  background: var(--mm-white);
  border: 1px solid var(--mm-line);
  border-radius: var(--mm-radius-tile);
  padding: clamp(26px, 3vw, 34px) clamp(22px, 2.4vw, 30px);
  transition: transform .35s cubic-bezier(.25, .8, .25, 1), box-shadow .35s ease, border-color .35s ease;
}
.sp-svc:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px -26px rgba(15, 62, 53, .38);
  border-color: var(--mm-gold-soft);
}
.sp-svc__icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--mm-beige);
  color: var(--mm-green);
  margin-bottom: 20px;
  transition: background .35s ease, color .35s ease;
}
.sp-svc__icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; }
.sp-svc:hover .sp-svc__icon { background: var(--mm-green); color: var(--mm-gold-light); }
.sp-svc h3 { font-size: clamp(17px, 1.5vw, 19px); margin: 0 0 8px; line-height: 1.3; }
.sp-svc p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--mm-mute); }

/* ---------------------------------------------------------------- doctors */
.sp-docs { padding: var(--mm-section-y) 0; background: var(--mm-cream); }
/* centre a short doctor row instead of leaving it hugging the left column */
.sp-docs .mm-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.sp-docs .mm-grid > * { flex: 1 1 280px; max-width: 340px; }
.sp-docs__head { text-align: center; margin-bottom: clamp(32px, 5vw, 50px); }
.sp-docs__head h2 { margin: 0; }
.sp-doc { display: flex; flex-direction: column; }
.sp-doc .mm-doc__name { margin-top: auto; }
.sp-doc .mm-btn { align-self: center; }

/* ------------------------------------------------------------------ video */
.sp-video { padding: 0 0 var(--mm-section-y); background: var(--mm-cream); }
.sp-video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--mm-radius-card);
  overflow: hidden;
  box-shadow: var(--mm-shadow-card);
  background: var(--mm-green);
}
.sp-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ------------------------------------------ infuzione: benefits + therapies */
.sp-benefits {
  padding: var(--mm-section-y) 0;
  background: #f9fbfb;
  border-top: 1px solid var(--mm-line);
  border-bottom: 1px solid var(--mm-line);
}
/* 340px floor keeps this at 3 across in the 1240px container, as on live */
.sp-b-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 30px; }
.sp-b-card {
  background: var(--mm-white);
  border: 1px solid var(--mm-line);
  padding: 34px 26px;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
}
.sp-b-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(15, 62, 53, .08); }
.sp-b-card__icon {
  width: 54px; height: 54px; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(15, 62, 53, .05);
}
.sp-b-card__icon { color: var(--mm-green); }
.sp-b-card__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; }
.sp-b-card h3 { font-size: 19px; margin: 0; }

.sp-therapies { padding: var(--mm-section-y) 0; background: var(--mm-white); }
.sp-th-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.sp-th-card {
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--mm-white);
  border: 1px solid var(--mm-line);
  border-radius: var(--mm-radius-tile);
  padding: 28px 26px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.sp-th-card:hover { transform: translateY(-6px); box-shadow: var(--mm-shadow-tile); border-color: var(--mm-gold-soft); }
.sp-th-card h3 { margin: 0 0 10px; font-size: 22px; }
.sp-th-card p { margin: 0 0 20px; font-size: 15px; color: var(--mm-mute); }
.sp-th-card__meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--mm-gold);
  padding-top: 16px;
  border-top: 1px solid var(--mm-line);
}
.sp-th-card__meta svg { width: 17px; height: 17px; fill: none; stroke: currentColor; flex: 0 0 auto; }

/* --------------------------------------------------------- long-form body */
.sp-body { padding: var(--mm-section-y) 0; background: var(--mm-white); }
.sp-body__inner { max-width: 860px; margin: 0 auto; }
.sp-body h2 { font-size: clamp(22px, 2.8vw, 30px); margin: 28px 0 14px; }
.sp-body h2:first-child { margin-top: 0; }
.sp-body h3 { font-size: clamp(18px, 2.2vw, 22px); margin: 22px 0 10px; }
.sp-body p { margin: 0 0 14px; line-height: 1.75; }
.sp-body ul, .sp-body ol { margin: 0 0 14px; padding-left: 22px; line-height: 1.75; }
.sp-body li { margin: .3em 0; }
.sp-body li strong { color: var(--mm-green); }
/* body links are underlined prose links; :not(.mm-btn) keeps this off the
   booking buttons, whose own colours would otherwise lose on specificity and
   render green-on-green */
.sp-body a:not(.mm-btn) { color: var(--mm-green); text-decoration: underline; }
.sp-body a:not(.mm-btn):hover { color: var(--mm-gold); }

.sp-prices { overflow-x: auto; margin: 0 0 8px; }
.sp-prices table { min-width: 420px; }

/* ==================================================== pricing (under hero) */
.sp-pricing { padding: clamp(28px, 4vw, 52px) 0 0; background: var(--mm-white); }
.sp-pricing__card {
  background: var(--mm-cream);
  border: 1px solid var(--mm-line);
  border-radius: var(--mm-radius-card);
  padding: clamp(24px, 3.4vw, 44px);
  box-shadow: 0 26px 60px -44px rgba(15, 62, 53, .5);
}
.sp-pricing__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  margin-bottom: clamp(18px, 2.2vw, 26px);
}
.sp-pricing__head h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); }
.sp-pricing__head .mm-eyebrow { margin-bottom: 8px; }
.sp-pricing__subtitle {
  font-family: var(--mm-font-body); font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--mm-mute);
  margin: 22px 0 10px;
}
.sp-pricing__table { overflow-x: auto; border-radius: 12px; }
.sp-pricing__table table { min-width: 420px; background: var(--mm-white); }
.sp-pricing__table tbody tr:nth-child(even) { background: rgba(15, 62, 53, .022); }
.sp-pricing__table tbody tr:hover { background: var(--mm-beige); }
.sp-pricing__note { margin-top: 14px; font-size: 13.5px; color: var(--mm-mute); }
.sp-pricing__note a { color: var(--mm-green); }
@media (max-width: 720px) {
  .sp-pricing__head { flex-direction: column; align-items: flex-start; }
  .sp-pricing__cta { width: 100%; justify-content: center; }
  .sp-pricing__table table { font-size: 14px; }
}
.sp-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
@media (max-width: 720px) {
  .sp-hero__actions { flex-direction: column; }
  .sp-hero__actions .mm-btn { width: 100%; justify-content: center; }
}
.sp-note { font-size: 14px; color: var(--mm-mute); margin: 0 0 22px; }
.sp-note p { margin: 0; font-size: 14px; }

.sp-faq { margin-bottom: 22px; }
.sp-faq .mm-faq__body p:last-child { margin-bottom: 0; }

.sp-links { margin: 0 0 14px; }
.sp-links h3 { font-size: 19px; margin: 0 0 8px; }
.sp-links ul { list-style: disc; padding-left: 20px; margin: 0; }
.sp-related { margin: 0 0 14px; }
.sp-nap {
  margin: 22px 0 0;
  padding: 16px 20px;
  background: #f9fbfb;
  border-left: 4px solid var(--mm-gold);
  border-radius: 4px;
  font-size: 15px;
  line-height: 1.65;
}
.sp-nap p { margin: 0; }
.sp-body__cta { margin-top: 26px; }

/* ------------------------------------------------------ /zdravlje/ hub */
.sp-hub-hero { background: var(--mm-green); color: var(--mm-cream); padding: clamp(48px, 8vw, 110px) 0; }
.sp-hub-hero h1 { color: var(--mm-cream); margin: 0 0 18px; }
.sp-hub-hero__lead { max-width: 900px; }
.sp-hub-hero__lead p { margin: 0; color: rgba(246, 249, 247, .82); font-size: clamp(15px, 1.6vw, 17px); }

.sp-hub { padding: var(--mm-section-y) 0; background: var(--mm-cream); }
.sp-hub__head { margin-bottom: clamp(28px, 4vw, 44px); }
.sp-hub__head h2 { margin: 0; }
.sp-hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.sp-tile {
  display: grid;
  grid-template-columns: 190px 1fr;
  align-items: stretch;
  gap: 0;
  background: var(--mm-white);
  border: 1px solid var(--mm-line);
  border-radius: var(--mm-radius-card);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.sp-tile:hover { transform: translateY(-4px); box-shadow: var(--mm-shadow-card); border-color: var(--mm-gold-soft); color: inherit; }
.sp-tile__media { position: relative; background: var(--mm-cream-deep); min-height: 100%; }
.sp-tile__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sp-tile__body { padding: 24px 26px; }
.sp-tile__title { font-family: var(--mm-font-serif); font-size: clamp(20px, 2.2vw, 26px); color: var(--mm-green); margin: 0 0 8px; line-height: 1.2; }
.sp-tile:hover .sp-tile__title { color: var(--mm-gold); }
.sp-tile__desc { margin: 0; font-size: 15px; color: var(--mm-mute); line-height: 1.6; }

/* --------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .sp-hub-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .sp-hero__grid { grid-template-columns: 1fr; gap: 34px; text-align: center; }
  .sp-hero__media { order: -1; margin: 0 auto; max-width: 500px; }
  .sp-hero__text .mm-eyebrow { text-align: center; }
  .sp-svc { align-items: center; text-align: center; }
  .sp-svc::before { transform-origin: center; }
}
@media (max-width: 640px) {
  .sp-hero { padding-top: 34px; }
  .sp-hero__media img { box-shadow: 10px 10px 0 var(--mm-gold); }
  .sp-hero .mm-btn, .sp-body__cta .mm-btn { width: 100%; justify-content: center; }
  .sp-svc { padding: 32px 24px; }
  .sp-tile { grid-template-columns: 1fr; }
  .sp-tile__media { min-height: 190px; }
  .sp-tile__media img { position: static; height: 190px; }
  .sp-prices table { font-size: 14px; }
  .sp-prices th, .sp-prices td { padding: 10px 12px; }
}
