/* ==========================================================================
   ZU LIBRA S — STYLE.CSS
   Privatna ginekološka ordinacija, Banja Luka
   ========================================================================== */

/* ===== 1. DESIGN TOKENS ===== */
:root {
  /* Brand — usklađeno sa logom (teal plava + koralno crvena) */
  --c-primary: #1F6E8C;           /* teal iz loga "LIBRA" */
  --c-primary-dark: #164F66;
  --c-primary-soft: #E4F0F5;
  --c-accent: #E74C4C;            /* koralna / EKG crvena iz loga */
  --c-accent-dark: #C83939;
  --c-accent-soft: #FDE8E8;

  /* Neutrals */
  --c-bg: #FAFAF7;
  --c-bg-alt: #F1EFE9;
  --c-white: #FFFFFF;
  --c-text: #162E36;              /* usklađeno sa teal-om loga */
  --c-text-muted: #5F6E74;
  --c-border: #E3E0D8;

  /* Soft accents */
  --c-pink: #FDE8E8;
  --c-purple: #EDE7F4;
  --c-mint: #E4F0F5;

  /* Type */
  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1200px;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(22, 46, 54, 0.04);
  --shadow: 0 8px 28px rgba(22, 46, 54, 0.08);
  --shadow-lg: 0 20px 60px rgba(22, 46, 54, 0.12);
  --transition: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ===== 2. RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* ===== 3. TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--c-text);
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 500; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.625rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
h5 { font-size: 0.95rem; font-family: var(--font-sans); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
em { font-style: italic; color: var(--c-accent); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--c-primary);
  padding: 0.45rem 0.95rem;
  background: var(--c-mint);
  border-radius: 100px;
  margin-bottom: 1.4rem;
}

/* ===== 4. LAYOUT ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section {
  padding: 6rem 0;
  position: relative;
}
.section--alt { background: var(--c-bg-alt); }
.section__head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}
.section__lead {
  font-size: 1.125rem;
  color: var(--c-text-muted);
  margin-top: 1rem;
}

/* ===== 5. BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 100px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn--primary {
  background: var(--c-primary);
  color: var(--c-white);
  box-shadow: 0 6px 20px rgba(44, 95, 93, 0.25);
}
.btn--primary:hover {
  background: var(--c-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(44, 95, 93, 0.35);
}
.btn--ghost {
  background: var(--c-white);
  color: var(--c-primary);
  border-color: var(--c-border);
}
.btn--ghost:hover {
  border-color: var(--c-primary);
  transform: translateY(-2px);
}
.btn--sm { padding: 0.7rem 1.25rem; font-size: 0.875rem; }
.btn--block { display: flex; width: 100%; }

/* ===== 6. NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.nav.is-scrolled {
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
}

/* Kad nav sjedi preko tamnog hero-a (nije skrolovan), tekst mora biti bijel */
.nav:not(.is-scrolled) .nav__links > a:not(.btn) { color: #fff; }
.nav:not(.is-scrolled) .nav__logo-img { filter: brightness(0) invert(1); }
.nav:not(.is-scrolled) .nav__toggle span { background: #fff; }
.nav:not(.is-scrolled) .nav__links > a:not(.btn)::after { background: #fff; }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity var(--transition);
}
.nav__logo:hover { opacity: 0.85; }

.nav__logo-img {
  height: 60px;
  width: auto;
  display: block;
}
.nav__logo-img--light {
  /* Logo ima providnu pozadinu — u tamnom footeru dodajemo suptilan kontejner */
  background: var(--c-white);
  padding: 10px 14px;
  border-radius: 10px;
  height: 52px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__links > a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--c-text);
  position: relative;
}
.nav__links > a:not(.btn):hover { color: var(--c-primary); }
.nav__links > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--c-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav__links > a:not(.btn):hover::after { transform: scaleX(1); }

/* ===== DROPDOWN ===== */
.nav__dropdown { position: relative; }
.nav__dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--c-text);
  position: relative;
}
.nav__dropdown-toggle svg { transition: transform var(--transition); flex-shrink: 0; }
.nav__dropdown:hover .nav__dropdown-toggle svg,
.nav__dropdown.is-open .nav__dropdown-toggle svg { transform: rotate(180deg); }

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 215px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 200;
}
.nav__dropdown-menu::before {
  content: '';
  position: absolute;
  top: -7px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid var(--c-border);
}
.nav__dropdown-menu::after {
  content: '';
  position: absolute;
  top: -5px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--c-white);
}
.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown.is-open .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav__dropdown-menu a {
  display: block;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-text);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.nav__dropdown-menu a:hover { background: var(--c-mint); color: var(--c-primary); }

.nav:not(.is-scrolled) .nav__dropdown > .nav__dropdown-toggle { color: #fff; }

@media (max-width: 768px) {
  .nav__dropdown-toggle {
    width: 100%;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--c-border);
    justify-content: space-between;
    color: var(--c-text) !important;
  }
  .nav__dropdown-menu {
    position: static;
    opacity: 1; visibility: visible;
    transform: none;
    box-shadow: none; border: none;
    background: var(--c-bg-alt);
    border-radius: var(--radius);
    margin: 0.25rem 0 0.4rem 1rem;
    padding: 0.25rem 0.5rem;
    display: none;
  }
  .nav__dropdown.is-open .nav__dropdown-menu { display: flex; }
  .nav__dropdown-menu::before, .nav__dropdown-menu::after { display: none; }
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== 7. HERO — IMMERSIVE / WOW ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 8rem 0 6rem;
}

/* Pozadinski kontejner — parallax wrapper */
.hero__bg {
  position: absolute;
  inset: -6%;
  z-index: -2;
  overflow: hidden;
  will-change: transform;
}

/* Pozadinska slika — Ken Burns + cinematic intro */
.hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  animation:
    heroImgIn 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.05s both,
    kenBurns 30s ease-in-out 2.05s infinite alternate;
  will-change: transform, filter;
}

@keyframes heroImgIn {
  from {
    transform: scale(1.08);
    filter: brightness(0.25) saturate(0.4);
  }
  to {
    transform: scale(0.95);
    filter: brightness(1) saturate(1);
  }
}

@keyframes kenBurns {
  0%   { transform: scale(0.95) translate(0,    0);     }
  30%  { transform: scale(0.98) translate(-1.0%, 0.5%); }
  60%  { transform: scale(0.96) translate( 0.8%, -0.6%);}
  100% { transform: scale(1.00) translate(-0.4%, 1.0%); }
}

/* Gradient overlay — tamni teal, čini tekst čitljivim */
.hero__bg-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg,
      rgba(10, 35, 48, 0.92) 0%,
      rgba(22, 78, 102, 0.75) 35%,
      rgba(22, 78, 102, 0.25) 65%,
      rgba(22, 78, 102, 0.10) 100%
    ),
    linear-gradient(180deg,
      rgba(10, 35, 48, 0.25) 0%,
      transparent 30%,
      transparent 70%,
      rgba(10, 35, 48, 0.50) 100%
    );
}

/* Unutrašnji grid */
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2rem;
  align-items: center;
  width: 100%;
}

/* Eyebrow varijanta za svijetlu podlogu */
.eyebrow--light {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero__content { color: #fff; max-width: 640px; }
.hero__content h1 {
  color: #fff;
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  line-height: 1.05;
  margin-bottom: 1.75rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}
.hero__content h1 em {
  color: #F9B8B8;
  font-style: italic;
  position: relative;
}
.hero__content h1 em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 8px;
  background: rgba(231, 76, 76, 0.35);
  z-index: -1;
  border-radius: 4px;
}

.hero__sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2.5rem;
  max-width: 560px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn--lg { padding: 1.1rem 2rem; font-size: 1rem; }
.btn--glass {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--glass:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* Meta traka sa statistikama */
.hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 1.75rem;
  padding: 1.25rem 1.75rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
}
.hero__meta-item { color: #fff; }
.hero__meta-value {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 4px;
}
.hero__meta-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
}
.hero__meta-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
}

/* Lebdeći elementi */
.hero__floats {
  position: relative;
  height: 100%;
  min-height: 500px;
  display: none; /* default; pokazuje se na >= 900px */
  will-change: transform;
}
.hero__badge {
  position: absolute;
  top: 10%;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.75rem 1.25rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-text);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  opacity: 0;
  animation:
    heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1.0s both,
    floatY 6s ease-in-out 1.9s infinite;
}
.hero__badge strong { color: var(--c-primary); font-weight: 700; }
.hero__badge-dot {
  width: 9px; height: 9px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.6);
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero__pill {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.4rem 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}
.hero__pill span {
  font-size: 1.4rem;
  flex-shrink: 0;
}
.hero__pill div { display: flex; flex-direction: column; line-height: 1.25; }
.hero__pill strong {
  font-size: 0.92rem;
  color: var(--c-text);
  font-weight: 600;
}
.hero__pill small {
  font-size: 0.78rem;
  color: var(--c-text-muted);
  margin-top: 2px;
}
.hero__pill--1 {
  top: 42%;
  left: 0;
  opacity: 0;
  animation:
    heroSlideInLeft 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1.2s both,
    floatY 7s ease-in-out 2.1s infinite;
}
.hero__pill--2 {
  bottom: 12%;
  right: 8%;
  opacity: 0;
  animation:
    heroSlideInRight 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1.4s both,
    floatY 5.5s ease-in-out 2.3s infinite;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 46px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 100px;
  display: grid;
  place-items: flex-start center;
  padding-top: 8px;
  transition: border-color var(--transition);
}
.hero__scroll span {
  width: 4px;
  height: 8px;
  background: #fff;
  border-radius: 4px;
  animation: scrollDot 2s ease-in-out infinite;
}
.hero__scroll:hover { border-color: #fff; }
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(14px); opacity: 0; }
  61% { transform: translateY(0); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Pokazuje lebdeće elemente samo na široj širini */
@media (min-width: 900px) {
  .hero__floats { display: block; }
}

/* ===== 8. DOCTOR ===== */
.doctor__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}
.doctor__image { position: relative; }
.doctor__photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  /* Pozadina odgovara sivoj pozadini fotografije */
  background: #E9E9E7;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.doctor__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.doctor__signature {
  position: absolute;
  bottom: -20px;
  left: 30px;
  background: var(--c-white);
  padding: 0.8rem 1.4rem;
  border-radius: 100px;
  font-family: var(--font-serif);
  font-weight: 500;
  box-shadow: var(--shadow);
}
.doctor__content h2 { margin-bottom: 1.5rem; }
.doctor__content p {
  color: var(--c-text-muted);
  margin-bottom: 1rem;
}
.doctor__content p strong { color: var(--c-text); }
.doctor__list {
  margin: 2rem 0;
  display: grid;
  gap: 0.75rem;
}
.doctor__list li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--c-text);
  font-size: 0.95rem;
}
.doctor__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--c-primary);
  font-weight: 700;
}

/* ===== 8b. SPECIALISTS ===== */
.specialists__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* 5 redova: foto | spec | ime | opis | link */
  grid-template-rows: auto auto auto 1fr auto;
  column-gap: 1.5rem;
  row-gap: 0;
}
@media (max-width: 1024px) {
  .specialists__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto auto 1fr auto
                        auto auto auto 1fr auto;
  }
}
@media (max-width: 560px) {
  .specialists__grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
}

.specialist-card {
  grid-row: span 5;
  display: grid;
  grid-template-rows: subgrid;
  background: var(--c-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--c-border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.specialist-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Na mobilnom — normalan flex layout */
@media (max-width: 560px) {
  .specialist-card {
    grid-row: auto;
    display: flex;
    flex-direction: column;
  }
}

.specialist-card__photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--c-bg-alt);
}
.specialist-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s ease;
}
.specialist-card__photo--contain img {
  object-fit: cover;
  object-position: 72% 8%;
}
.specialist-card:hover .specialist-card__photo img {
  transform: scale(1.04);
}

/* Body postaje subgrid sudionik za redove 2–5 */
.specialist-card__body {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  padding: 0;
}
@media (max-width: 560px) {
  .specialist-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.5rem;
    gap: 0;
  }
}

.specialist-card__spec {
  display: inline-block;
  align-self: end;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-primary);
  background: var(--c-mint);
  padding: 0.28rem 0.7rem;
  border-radius: 100px;
  margin: 1.4rem 1.4rem 0;
  width: fit-content;
}
.specialist-card__body h3 {
  font-size: 1.15rem;
  padding: 0.6rem 1.4rem 0;
  align-self: end;
}
.specialist-card__body p {
  font-size: 0.88rem;
  color: var(--c-text-muted);
  line-height: 1.65;
  padding: 0.5rem 1.4rem 0;
  align-self: start;
}
.specialist-card__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.75rem 1.4rem 1.4rem;
  align-self: start;
  transition: gap var(--transition);
}
.specialist-card__link:hover { gap: 0.6rem; }

/* Mobilni spacing */
@media (max-width: 560px) {
  .specialist-card__spec { margin: 0 0 0.75rem; }
  .specialist-card__body h3 { padding: 0; margin-bottom: 0.5rem; }
  .specialist-card__body p { padding: 0; margin-bottom: 1rem; }
  .specialist-card__link { padding: 0; }
}

/* ===== 9. SERVICES ===== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--c-white);
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--c-border);
}
.service-card--featured {
  background: var(--c-primary);
  color: var(--c-white);
}
.service-card--featured h3,
.service-card--featured .service-card__tag,
.service-card--featured .service-card__list li {
  color: var(--c-white);
}
.service-card--featured .service-card__tag { opacity: 0.85; }
.service-card--featured .service-card__list li::before { color: var(--c-accent-soft); }
.service-card--featured .service-card__cta { color: var(--c-accent-soft); }

.service-card__icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
}
.service-card__icon--1 { background: var(--c-mint); color: var(--c-primary); }
.service-card__icon--2 { background: var(--c-accent-soft); color: var(--c-accent); }
.service-card__icon--3 { background: var(--c-purple); color: #6B4E9B; }
.service-card--featured .service-card__icon--2 { background: rgba(255, 255, 255, 0.15); color: var(--c-white); }

.service-card h3 { margin-bottom: 0.75rem; }
.service-card__tag {
  font-size: 0.95rem;
  color: var(--c-text-muted);
  margin-bottom: 1.5rem;
  font-style: italic;
}
.service-card__list {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex: 1;
}
.service-card__list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  color: var(--c-text);
}
.service-card__list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--c-primary);
  font-weight: 700;
}
.service-card__cta {
  font-weight: 600;
  color: var(--c-primary);
  font-size: 0.95rem;
  transition: gap var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.service-card__cta:hover { gap: 0.7rem; }

/* ===== 10. PREGNANCY ===== */
.pregnancy {
  background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-pink) 100%);
}
.pregnancy__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.pregnancy__content h2 { margin-bottom: 1.5rem; }
.pregnancy__content p {
  color: var(--c-text-muted);
  margin-bottom: 1rem;
}
.pregnancy__content p strong { color: var(--c-text); }
.pregnancy__bullets {
  margin: 2rem 0 2.5rem;
  display: grid;
  gap: 1rem;
}
.pregnancy__bullets li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--c-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-weight: 500;
}
.pregnancy__bullets li span { font-size: 1.3rem; }

.pregnancy__bullets-contact { align-items: flex-start !important; }
.pregnancy__contact-wrap { display: flex; flex-direction: column; gap: 0.65rem; }
.pregnancy__contact-btns { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.contact-app-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.contact-app-btn:hover { transform: translateY(-2px); }

.contact-app-btn--wa {
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}
.contact-app-btn--wa:hover { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5); }

.contact-app-btn--viber {
  background: #7360F2;
  color: #fff;
  box-shadow: 0 4px 14px rgba(115, 96, 242, 0.35);
}
.contact-app-btn--viber:hover { box-shadow: 0 6px 20px rgba(115, 96, 242, 0.5); }

.pregnancy__timeline {
  display: grid;
  gap: 1.25rem;
}
.trimester {
  background: var(--c-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.trimester:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow);
}
.trimester__num {
  position: absolute;
  top: -20px;
  left: 2rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--c-primary);
  color: var(--c-white);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  box-shadow: var(--shadow);
}
.trimester h4 { margin: 1rem 0 0.5rem; }
.trimester p {
  font-size: 0.95rem;
  color: var(--c-text-muted);
}

/* ===== 11. TESTIMONIALS ===== */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial {
  background: var(--c-white);
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.testimonial__stars {
  color: #F4B400;
  letter-spacing: 2px;
  font-size: 1.1rem;
}
.testimonial blockquote {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--c-text);
  flex: 1;
}
.testimonial figcaption {
  border-top: 1px solid var(--c-border);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.testimonial figcaption strong {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.05rem;
}
.testimonial figcaption span {
  font-size: 0.85rem;
  color: var(--c-text-muted);
}

/* ===== 12. CONTACT ===== */
.contact {
  background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-alt) 100%);
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
}
.contact__info h2 { margin-bottom: 1.5rem; }
.contact__lead {
  color: var(--c-text-muted);
  margin-bottom: 2.5rem;
}
.contact__list { display: grid; gap: 1.5rem; }
.contact__list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--c-white);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  font-size: 1.1rem;
}
.contact__list li > div:last-child { display: flex; flex-direction: column; gap: 0.15rem; }
.contact__list strong {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--c-text);
  margin-bottom: 0.25rem;
}
.contact__list a, .contact__list span {
  color: var(--c-text-muted);
  font-size: 0.95rem;
}
.contact__list a:hover { color: var(--c-primary); }

.contact__inline-link {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--transition);
}
.contact__inline-link:hover { opacity: 0.8; }
.contact__inline-link--wa    { color: #1EA952; }
.contact__inline-link--viber { color: #7360F2; }

.contact__form {
  background: var(--c-white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.contact__form h3 { margin-bottom: 1.75rem; }
.form__row { margin-bottom: 1.25rem; }
.form__row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--c-text);
}
.form__row input,
.form__row select,
.form__row textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--c-text);
  background: var(--c-bg);
  border: 2px solid var(--c-border);
  border-radius: var(--radius);
  transition: border-color var(--transition), background var(--transition);
}
.form__row input:focus,
.form__row select:focus,
.form__row textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  background: var(--c-white);
}
.form__row textarea { resize: vertical; font-family: inherit; }
.form__note {
  font-size: 0.8rem;
  color: var(--c-text-muted);
  margin-top: 1rem;
  text-align: center;
}
.form__success {
  margin-top: 1.25rem;
  padding: 1rem;
  background: var(--c-mint);
  color: var(--c-primary);
  border-radius: var(--radius);
  font-size: 0.95rem;
  text-align: center;
  animation: fadeInUp 0.5s ease;
}
/* Formspree skriva success div dok forma nije uspješno poslana */
[data-fs-success]:not([data-fs-active]) { display: none; }
.form__field-error {
  display: block;
  font-size: 0.8rem;
  color: #c0392b;
  margin-top: 0.25rem;
  min-height: 1rem;
}
input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #c0392b;
  outline: none;
  box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.15);
}

/* ===== 13. FOOTER ===== */
.footer {
  background: var(--c-primary);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 4rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer__brand .nav__logo { margin-bottom: 1.25rem; }
.footer__brand p {
  font-size: 0.95rem;
  max-width: 320px;
  line-height: 1.6;
}
.footer__col h5 {
  color: var(--c-white);
  margin-bottom: 1.25rem;
}
.footer__col ul { display: grid; gap: 0.65rem; }
.footer__col a, .footer__col li {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
}
.footer__col a:hover { color: var(--c-white); }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.5rem 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ===== 14. FLOATING WHATSAPP ===== */
.float-wa {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: var(--c-white);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  z-index: 50;
  transition: transform var(--transition);
  animation: floatIn 0.6s ease 0.5s backwards;
}
.float-wa:hover { transform: scale(1.1); }
@keyframes floatIn {
  from { opacity: 0; transform: translateY(20px) scale(0.8); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== 15. REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 16. HERO — WOW ANIMACIJE ===== */

/* Stagger entrances — svi elementi hero-a */
.hero__content > .eyebrow {
  opacity: 0;
  animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}
.hero__sub {
  opacity: 0;
  animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1.5s both;
}
.hero__cta {
  opacity: 0;
  animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1.75s both;
}
.hero__meta {
  opacity: 0;
  animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 2.0s both;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroSlideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes heroSlideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Reveal ne smeta hero animacijama */
.hero .reveal { transition: none; }

/* Word-split animacija za H1 */
.word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1.15;
}
.word {
  display: inline-block;
  animation: wordSlideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes wordSlideUp {
  from { transform: translateY(115%); }
  to   { transform: translateY(0); }
}

/* Cursor glow */
.hero__cursor-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 110, 140, 0.18) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  will-change: transform;
  top: 0;
  left: 0;
  transform: translate(-350px, -350px);
}

/* Em highlight animacija na load */
.hero__content h1 em::after {
  transform-origin: left center;
  animation: highlightExpand 0.7s cubic-bezier(0.16, 1, 0.3, 1) 1.6s both;
}
@keyframes highlightExpand {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Meta stat brojevi */
.hero__meta-value {
  font-variant-numeric: tabular-nums;
}

/* ===== 17. RESPONSIVE ===== */
@media (max-width: 1024px) {
  .doctor__grid, .pregnancy__grid, .contact__grid { grid-template-columns: 1fr; gap: 3rem; }
  .services__grid, .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__content { max-width: 720px; }
}

@media (max-width: 768px) {
  .section { padding: 4rem 0; }

  .hero { min-height: 85vh; padding: 6rem 0 5rem; }
  .hero__bg-overlay {
    background:
      linear-gradient(180deg,
        rgba(10, 35, 48, 0.72) 0%,
        rgba(10, 35, 48, 0.55) 40%,
        rgba(10, 35, 48, 0.85) 100%
      );
  }
  .hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.25rem;
    padding: 1rem 1.25rem;
    border-radius: 20px;
  }
  .hero__meta-divider { display: none; }
  .hero__scroll { display: none; }

  .nav__links {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--c-white);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 0.5rem;
    border-bottom: 1px solid var(--c-border);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    transition: transform var(--transition);
    max-height: calc(100vh - 78px);
    overflow-y: auto;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav:not(.is-scrolled) .nav__links > a:not(.btn) { color: var(--c-text); }
  .nav__links > a:not(.btn) {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--c-border);
  }
  .nav__links > a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 0.5rem; }
  .nav__toggle { display: flex; }

  .services__grid, .testimonials__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact__form { padding: 1.75rem; }
  .btn { padding: 0.9rem 1.4rem; }
}

@media (max-width: 480px) {
  .hero { min-height: 82vh; }
  .hero__content h1 { font-size: 2.1rem; }
  .hero__cta { flex-direction: column; width: 100%; }
  .hero__cta .btn { width: 100%; }
  .float-wa { width: 54px; height: 54px; bottom: 1rem; right: 1rem; }
  .nav__logo-img { height: 49px; }
}

/* ===== 17. ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .hero__content > .eyebrow, .hero__sub, .hero__cta,
  .hero__meta, .hero__badge, .hero__pill--1, .hero__pill--2 {
    opacity: 1; transform: none;
  }
  .word-wrap { overflow: visible; }
  .word { transform: none !important; }
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
}
