/* Dr. Neghina - landing page
   Tema: deschisa, fixa (fara dark mode, la cererea clientului).
   Raze: carduri si imagini = 16px, butoane si campuri = 10px, cipuri si iconite = 8px.
   Culori: albastrul din logo e culoarea principala (butoane, linkuri).
   Teal si roz apar doar ca nuante pentru categoriile de servicii. */

@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF;
}

:root {
  --bg: #fbfcfd;
  --bg-alt: #f2f5f9;
  --surface: #fdfdfe;
  --ink: #12233d;
  --ink-2: #33415a;
  --muted: #5a6679;
  --line: #dde3eb;
  --line-strong: #c5cdd9;

  --accent: #1e5bb0;
  --accent-hover: #184b93;
  --accent-deep: #133c78;
  --accent-ink: #fdfdfe;
  --accent-soft: #eaf1fb;
  --accent-tint: #d6e4f7;

  --teal: #0b6b64;
  --teal-soft: #e0f2ef;
  --rose: #a63454;
  --rose-soft: #fae8ed;

  --ok: #17713a;
  --danger: #b42318;
  --shadow: 0 1px 2px rgb(18 50 100 / .06), 0 10px 30px -12px rgb(18 50 100 / .22);

  --r-card: 16px;
  --r-btn: 10px;
  --r-sm: 8px;
  --wrap: 1180px;
  --gutter: 20px;
  --header-h: 72px;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

.section { padding-block: 72px; }
@media (min-width: 1024px) { .section { padding-block: 104px; } }
.section-alt { background: var(--bg-alt); }

.h2 { font-size: clamp(1.875rem, 1.45rem + 1.6vw, 2.5rem); line-height: 1.15; }
.lead { font-size: 1.1875rem; color: var(--ink-2); max-width: 60ch; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: var(--r-btn); text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Butoane ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  border-radius: var(--r-btn); border: 1px solid transparent;
  font: inherit; font-size: 1.0625rem; font-weight: 600; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 2px rgb(18 50 100 / .2), 0 6px 16px -8px rgb(30 91 176 / .6); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: var(--accent-ink); color: var(--accent-deep); }
.btn-light:hover { background: var(--accent-soft); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: var(--header-h); display: flex; align-items: center; gap: 8px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand svg { width: 40px; height: 40px; color: var(--accent); --logo-bg: var(--accent-soft); flex: none; }
.brand b { display: block; font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
.brand small { display: block; font-size: .8125rem; color: var(--muted); line-height: 1.3; }

.nav { display: none; }
.nav ul { display: flex; gap: 4px; }
.nav a {
  display: block; padding: 8px 14px; border-radius: var(--r-sm);
  text-decoration: none; font-size: 1rem; font-weight: 500; color: var(--ink-2);
  transition: background-color .2s ease, color .2s ease;
}
.nav a:hover { background: var(--accent-soft); color: var(--accent-deep); }
.header-cta { display: none; }

.menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: var(--r-btn);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer;
}
.menu-btn .icon { width: 22px; height: 22px; }
/* pe mobil: buton de apel doar cu iconita, numarul complet e in aria-label si in bara de jos */
.call-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 46px; height: 46px; border-radius: var(--r-btn);
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 1px 2px rgb(18 50 100 / .2), 0 6px 16px -8px rgb(30 91 176 / .6);
  transition: background-color .2s ease, transform .15s ease;
}
.call-btn .icon { width: 22px; height: 22px; }
.call-btn:hover { background: var(--accent-hover); }
.call-btn:active { transform: translateY(1px) scale(.97); }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }

/* meniul de pe mobil: card plutitor pe toata latimea, cu margini egale cu cele ale paginii */
.mobile-nav {
  position: absolute; top: calc(100% + 8px); left: var(--gutter); right: var(--gutter);
  padding: 6px; border-radius: var(--r-card);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  display: block; padding: 10px 14px; border-radius: var(--r-btn);
  font-size: 1.0625rem; font-weight: 500; color: var(--ink); text-decoration: none;
}
.mobile-nav a:hover, .mobile-nav a:focus-visible { background: var(--accent-soft); color: var(--accent-deep); }
/* separatori subtiri intre linkuri, retrasi de la margini ca sa nu atinga zona de hover */
.mobile-nav li + li { position: relative; }
.mobile-nav li + li::before {
  content: ""; position: absolute; top: 0; left: 14px; right: 14px; height: 1px; background: var(--line);
}
@media (prefers-reduced-motion: no-preference) {
  .mobile-nav:not([hidden]) { animation: menu-in .18s cubic-bezier(.16, 1, .3, 1); transform-origin: top center; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } }

@media (min-width: 900px) {
  .nav { display: block; }
  .site-header .wrap { gap: 24px; }
  .header-cta { display: inline-flex; }
  .menu-btn, .mobile-nav, .call-btn { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: 48px 64px;
  background:
    radial-gradient(60% 80% at 85% 20%, var(--accent-tint) 0%, transparent 70%),
    linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 100%);
}
/* simbolul din logo, la scara mare, ca fundal discret */
.hero-mark {
  position: absolute; z-index: -1; pointer-events: none;
  width: 560px; height: 560px; right: -200px; top: 40px;
  color: var(--accent-tint); opacity: .45; --logo-bg: transparent; stroke-width: 2.4;
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 45%, transparent 85%);
}
.hero-grid { display: grid; gap: 48px; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--accent-tint);
  font-size: .9375rem; font-weight: 600; color: var(--accent-deep);
}
.pill .icon { width: 18px; height: 18px; color: var(--accent); }
.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.5rem, 1.7rem + 3.2vw, 4rem); line-height: 1.04; letter-spacing: -0.03em;
}
.hero h1 span { color: var(--accent); }
.hero .lead { margin-top: 22px; max-width: 42ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Card hero: programul saptamanal */
.hero-cards { display: grid; }
.hc {
  border-radius: var(--r-card); padding: 22px;
  background: var(--surface); box-shadow: var(--shadow);
  border: 1px solid rgb(18 50 100 / .06);
}
.hc h2 { font-size: 1.125rem; line-height: 1.3; }

.hc-week { grid-column: 1 / -1; padding: 22px 22px 0; overflow: hidden; }
.hc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; }
.hc-head h2 { display: flex; align-items: center; gap: 8px; }
.hc-head h2 .icon { color: var(--accent); width: 22px; height: 22px; }
.hc-head .status { margin-top: 0; }
.week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 16px; }
.week li {
  display: grid; justify-items: center; gap: 1px;
  padding: 10px 4px 12px; border-radius: var(--r-sm);
  background: var(--bg-alt); font-variant-numeric: tabular-nums;
  font-size: .9375rem; color: var(--ink-2); line-height: 1.35;
}
.week b { font-weight: 600; color: var(--ink); font-size: .875rem; margin-bottom: 4px; }
.week li.is-today { background: var(--accent); color: var(--accent-ink); }
.week li.is-today b { color: var(--accent-ink); }
.hc-addr {
  display: flex; align-items: center; gap: 10px;
  margin: 18px -22px 0; padding: 14px 22px;
  border-top: 1px solid var(--line); background: var(--surface);
  text-decoration: none; font-size: 1rem; font-weight: 500; color: var(--ink);
  transition: background-color .2s ease;
}
.hc-addr .icon { color: var(--accent); width: 20px; height: 20px; }
.hc-addr span { flex: 1; }
.hc-addr .hc-arrow { color: var(--muted); transition: transform .2s ease; }
.hc-addr:hover { background: var(--accent-soft); }
.hc-addr:hover .hc-arrow { transform: translateX(3px); color: var(--accent); }
.hc-note {
  display: flex; align-items: center; gap: 10px;
  margin: 0 -22px; padding: 12px 22px;
  background: var(--accent-soft); border-top: 1px solid var(--accent-tint);
  font-size: .9375rem; color: var(--ink-2); line-height: 1.4;
}
.hc-note .icon { width: 20px; height: 20px; color: var(--accent); }
.hc-note b { color: var(--accent-deep); font-weight: 600; }


.monogram {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-deep);
  font-size: .9375rem; font-weight: 700; letter-spacing: .02em; margin-bottom: 14px;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hc { animation: rise .7s cubic-bezier(.16, 1, .3, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .hero-copy > :nth-child(4) { animation-delay: .18s; }
  .hc-week { animation-delay: .2s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* telefon: hero centrat, doar informatia esentiala + programul compact; celelalte carduri raman pentru ecrane mari */
@media (max-width: 767px) {
  .hero { padding-block: 32px 40px; }
  .hero-grid { gap: 24px; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .hero h1 { margin-top: 18px; }
  .hero .lead { margin-top: 14px; font-size: 1.0625rem; }
  .hero-actions { width: 100%; flex-direction: column; gap: 10px; margin-top: 22px; }
  .hero-actions .btn { width: 100%; }
  .hero-mark { right: 50%; transform: translateX(50%); top: 60px; width: 480px; height: 480px; opacity: .3; }

  .hc-week { padding: 14px 14px 0; }
  .hc-head h2 { font-size: 1rem; }
  .hc-head h2 .icon { width: 19px; height: 19px; }
  .hc-head .status { font-size: .8125rem; }
  .week { gap: 4px; margin-top: 10px; }
  .week li { padding: 6px 2px 7px; font-size: .8125rem; line-height: 1.3; }
  .week b { font-size: .75rem; margin-bottom: 2px; }
  .hc-addr { margin: 12px -14px 0; padding: 10px 14px; font-size: .875rem; }
  .hc-addr .icon { width: 18px; height: 18px; }
  .hc-note { margin: 0 -14px; padding: 10px 14px; font-size: .8125rem; gap: 8px; }
  .hc-note .icon { width: 18px; height: 18px; }
}

@media (max-width: 479px) {
  .week { gap: 4px; }
  .week li { font-size: .8125rem; padding-inline: 2px; }
  .week b { font-size: .8125rem; }
}
@media (min-width: 1024px) {
  .hero { padding-block: 72px 80px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 64px; }
  /* cardul cu programul: mai inalt si asezat jos, cu baza aliniata la butoanele din stanga */
  .hero-cards { align-self: end; }
  .hc-week { padding: 26px 26px 0; }
  .hc-head h2 { font-size: 1.1875rem; }
  .week { gap: 8px; margin-top: 20px; }
  .week li { padding: 16px 4px 18px; font-size: 1rem; }
  .week b { font-size: .9375rem; margin-bottom: 6px; }
  .hc-addr { margin: 22px -26px 0; padding: 16px 26px; }
  .hc-note { margin: 0 -26px; padding: 14px 26px; }
  .hero-mark { width: 740px; height: 740px; right: calc((100% - var(--wrap)) / 2 - 110px); top: -90px; }
}

/* ---------- Despre ---------- */
.about-head { max-width: 860px; }
.about-head .statement {
  margin-top: 24px; font-size: clamp(1.25rem, 1.05rem + .8vw, 1.5rem);
  line-height: 1.5; color: var(--ink-2); font-weight: 400;
}

/* bento: fotografie inalta | card albastru + 3 carduri cu cate o idee din text */
.about-bento { display: grid; gap: 14px; margin-top: 48px; }
.ab-photo {
  position: relative; isolation: isolate; margin: 0; overflow: hidden;
  border-radius: var(--r-card); aspect-ratio: 4 / 3; background: var(--accent-soft);
}
.ab-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 50%; filter: grayscale(1) contrast(1.05); }
/* aceeasi tehnica ca la harta: fotografia alb-negru primeste nuanta albastra a site-ului */
.ab-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--accent); mix-blend-mode: color; opacity: .8;
}

.ab-lead {
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: 28px; border-radius: var(--r-card);
  background: linear-gradient(150deg, var(--accent) 0%, var(--accent-deep) 100%); color: var(--accent-ink);
}
.ab-lead h3 { color: var(--accent-ink); font-size: clamp(1.375rem, 1.15rem + .8vw, 1.75rem); line-height: 1.25; }
.ab-link {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  color: var(--accent-ink); font-weight: 600; text-decoration: none;
  padding-bottom: 2px; border-bottom: 1px solid color-mix(in srgb, var(--accent-ink) 45%, transparent);
  transition: border-color .2s ease, gap .2s ease;
}
.ab-link .icon { width: 18px; height: 18px; }
.ab-link:hover { gap: 12px; border-bottom-color: var(--accent-ink); }

.ab-card {
  padding: 26px; border-radius: var(--r-card);
  background: var(--surface); border: 1px solid var(--line);
}
.ab-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-sm);
  background: var(--accent-soft); color: var(--accent); margin-bottom: 18px;
}
.ab-icon .icon { width: 26px; height: 26px; }
.ab-card h4 { font-size: 1.1875rem; line-height: 1.3; }
.ab-card p { margin-top: 8px; font-size: 1rem; line-height: 1.6; color: var(--muted); }

/* pe telefon fotografia doar lungeste pagina, asa ca nu o afisam (fiind lazy, nici nu se descarca) */
@media (max-width: 767px) {
  .ab-photo { display: none; }
}
@media (min-width: 768px) {
  .about-bento { grid-template-columns: 1fr 1fr; }
  .ab-photo { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
}
@media (min-width: 1024px) {
  .about-bento { grid-template-columns: 1.15fr 1fr 1fr; }
  .ab-photo { grid-column: 1; grid-row: 1 / 3; aspect-ratio: auto; min-height: 100%; }
}

/* ---------- Servicii: carusel ---------- */
.svc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.car-nav { display: none; gap: 8px; }
.car-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px;
  border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--ink); cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease;
}
.car-btn .icon { width: 20px; height: 20px; }
.car-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.car-btn:disabled { opacity: .4; cursor: default; }
@media (min-width: 768px) { .car-nav { display: flex; } }

.cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.cat-link {
  font: inherit; cursor: pointer;
  padding: 8px 16px; border-radius: 999px; text-decoration: none;
  font-size: .9375rem; font-weight: 600; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink-2);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.cat-link:hover { border-color: currentColor; }
.cat-link.cat-consult { --c: var(--accent); --cs: var(--accent-soft); }
.cat-link.cat-acte { --c: var(--teal); --cs: var(--teal-soft); }
.cat-link.cat-mama { --c: var(--rose); --cs: var(--rose-soft); }
.cat-link:hover, .cat-link.is-active { color: var(--c); }
.cat-link.is-active { background: var(--cs); border-color: var(--c); }

.carousel {
  --edge: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  margin-top: 28px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: no-preference) { .carousel { scroll-behavior: smooth; } }
.carousel:focus-visible { outline-offset: -3px; }
.car-track {
  position: relative; display: flex; gap: 16px; width: max-content;
  padding: 6px var(--edge) 24px;
}
.svc-card {
  --c: var(--accent); --cs: var(--accent-soft);
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  width: clamp(264px, 74vw, 300px); min-height: 272px;
  padding: 26px 24px; border-radius: var(--r-card);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgb(18 50 100 / .04);
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s ease, border-color .3s ease;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.svc-card.cat-acte { --c: var(--teal); --cs: var(--teal-soft); }
.svc-card.cat-mama { --c: var(--rose); --cs: var(--rose-soft); }
.svc-chip {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-sm);
  background: var(--cs); color: var(--c); margin-bottom: auto;
}
.svc-chip .icon { width: 28px; height: 28px; }
.svc-cat { margin-top: 40px; font-size: .875rem; font-weight: 600; color: var(--c); }
.svc-card h3 { margin-top: 4px; font-size: 1.25rem; line-height: 1.3; }
.svc-card h3 + p { margin-top: 8px; font-size: 1rem; line-height: 1.55; color: var(--muted); }

.svc-cta { background: linear-gradient(150deg, var(--accent) 0%, var(--accent-deep) 100%); border-color: transparent; }
.svc-cta .svc-chip { background: rgb(253 253 254 / .14); color: var(--accent-ink); }
.svc-cta h3 { margin-top: 40px; color: var(--accent-ink); }
.svc-cta h3 + p { color: color-mix(in srgb, var(--accent-ink) 85%, transparent); }
.svc-cta .btn { margin-top: 20px; align-self: flex-start; }

.l-short { display: none; }

/* Mobil: in loc de carusel, tab-uri pe categorii + grila de 2 coloane */
@media (max-width: 767px) {
  .cats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
    padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  }
  .cat-link {
    display: grid; place-items: center; min-height: 48px; padding: 6px 4px;
    border: 0; border-radius: var(--r-btn); background: transparent;
    font-size: .875rem; line-height: 1.25; text-align: center; color: var(--muted);
  }
  .cat-link.is-active { background: var(--cs); color: var(--c); }
  .l-long { display: none; }
  .l-short { display: inline; }

  .carousel { overflow: visible; scroll-snap-type: none; margin-top: 16px; }
  .car-track {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    width: auto; padding: 0 var(--gutter);
  }
  .svc-cta,
  .carousel[data-cat="consult"] .svc-card:not(.cat-consult),
  .carousel[data-cat="acte"] .svc-card:not(.cat-acte),
  .carousel[data-cat="mama"] .svc-card:not(.cat-mama) { display: none; }

  .svc-card { width: auto; min-height: 0; padding: 16px 14px 18px; }
  .svc-card:hover { transform: none; box-shadow: none; border-color: var(--line); }
  .svc-chip { width: 42px; height: 42px; margin-bottom: 0; }
  .svc-chip .icon { width: 24px; height: 24px; }
  .svc-cat { display: none; }
  .svc-card h3 { margin-top: 14px; font-size: 1.0625rem; line-height: 1.3; }
  .svc-card h3 + p { margin-top: 6px; font-size: .9375rem; line-height: 1.5; }

  /* numar impar de servicii: ultimul card ocupa tot randul, cu iconita in stanga */
  .svc-card.is-wide {
    grid-column: 1 / -1;
    display: grid; grid-template-columns: 42px 1fr; column-gap: 14px; align-items: start;
  }
  .svc-card.is-wide .svc-chip { grid-row: span 2; }
  .svc-card.is-wide h3 { margin-top: 0; }
}
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  .svc-card.is-in { animation: rise .45s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--i, 0) * 50ms); }
}

/* ---------- Inscriere ---------- */
/* desktop: eticheta pe randul 1, documentele si cardul de transfer pe randul 2, cu aceeasi inaltime */
.enroll-grid { display: grid; gap: 12px 64px; margin-top: 48px; }
.docs-title { font-size: 1.0625rem; font-weight: 600; color: var(--muted); }
.enroll-docs { display: flex; flex-direction: column; gap: 10px; }
.docs { display: grid; gap: 10px; flex: 1; }
.docs li {
  display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: center;
  padding: 16px 20px 16px 16px; border-radius: var(--r-card);
  background: var(--surface); border: 1px solid var(--line);
}
.docs li > .icon {
  width: 52px; height: 52px; padding: 13px; border-radius: var(--r-sm);
  background: var(--accent-soft); color: var(--accent);
}
.docs strong { display: block; color: var(--ink); font-size: 1.1875rem; font-weight: 600; line-height: 1.3; }
.docs span { font-size: 1rem; color: var(--muted); }
/* cardul cu cererea are si buton de descarcare: pe randul urmator,
   iar in dreapta doar cand lista e destul de lata ca textul sa nu se rupa */
.docs { container-type: inline-size; }
.doc-dl .btn { grid-column: 1 / -1; }
@container (min-width: 540px) {
  .docs .doc-dl { grid-template-columns: 52px 1fr auto; }
  .doc-dl .btn { grid-column: auto; }
}
.kids {
  display: flex; gap: 14px; align-items: flex-start; margin-top: 6px;
  padding: 18px 20px; border-radius: var(--r-card);
  background: var(--accent-soft); border: 1px solid var(--accent-tint);
  font-size: 1.0625rem; color: var(--ink-2);
}
.kids .icon { width: 24px; height: 24px; color: var(--accent); margin-top: 2px; }
.kids b { color: var(--ink); font-weight: 600; }

.transfer {
  display: flex; flex-direction: column;
  margin-top: 20px; padding: 32px 30px; border-radius: var(--r-card);
  background: var(--surface); box-shadow: var(--shadow);
  border: 1px solid rgb(18 50 100 / .06); border-top: 4px solid var(--accent);
}
.transfer h3 { font-size: 1.3125rem; line-height: 1.3; margin-bottom: 14px; }
.transfer p + p { margin-top: 12px; }
.transfer .note {
  margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 1rem; color: var(--muted);
}
.transfer > p:last-of-type { margin-bottom: 24px; }
.transfer .nums { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.transfer .nums .btn { flex: 1 1 auto; }
@media (min-width: 1024px) {
  .enroll-grid { grid-template-columns: 1.1fr 1fr; grid-template-rows: auto 1fr; }
  .docs-title { grid-column: 1; grid-row: 1; }
  .enroll-docs { grid-column: 1; grid-row: 2; }
  .transfer { grid-column: 2; grid-row: 2; margin-top: 0; }
}

/* ---------- Echipa ---------- */
/* gradientul sta pe fundalul sectiunii; cardurile sunt albe.
   Medicul: card ridicat, placute albastre cu iconite pline. Asistentul: card plat, placute albe cu contur.
   Fiecare card are atatea placute cate calificari are persoana; latimea cardului urmeaza numarul lor. */
.team {
  background:
    radial-gradient(55% 75% at 8% 30%, #cddff6 0%, transparent 70%),
    radial-gradient(50% 70% at 95% 90%, #d9e6f8 0%, transparent 70%),
    linear-gradient(160deg, #edf3fb 0%, var(--bg-alt) 100%);
}
.team-grid { display: grid; gap: 16px; margin-top: 40px; }
.person {
  display: flex; flex-direction: column; gap: 28px;
  padding: 28px; border-radius: var(--r-card);
  background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--line);
}
.person-lead { background: var(--surface); border-color: rgb(18 50 100 / .06); box-shadow: var(--shadow); }
.person-head { display: flex; align-items: center; gap: 18px; }
.person .monogram {
  width: 64px; height: 64px; margin: 0; flex: none; font-size: 1.125rem;
  background: transparent; border: 1.5px solid var(--accent-tint);
}
.person-lead .monogram { background: var(--accent); color: var(--accent-ink); border: 0; }
.person h3 { font-size: clamp(1.375rem, 1.2rem + .6vw, 1.625rem); line-height: 1.2; }
.person .role { margin-top: 2px; color: var(--accent); font-weight: 600; font-size: 1rem; }

.facts { display: grid; gap: 10px; margin-top: auto; }
.facts li {
  display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: var(--r-btn);
  background: var(--surface); border: 1px solid var(--line);
}
.person-lead .facts li { background: var(--accent-soft); border-color: transparent; }
.facts .icon {
  grid-row: span 2; width: 40px; height: 40px; padding: 9px; border-radius: var(--r-sm);
  background: var(--accent-soft); color: var(--accent);
}
.person-lead .facts .icon { background: var(--accent); color: var(--accent-ink); }
.facts span { font-size: .875rem; color: var(--muted); line-height: 1.3; }
.facts b { font-size: 1.0625rem; font-weight: 600; color: var(--ink); line-height: 1.3; }

@media (min-width: 640px) {
  .person-lead .facts { grid-template-columns: repeat(3, 1fr); }
  .person:not(.person-lead) .facts { grid-template-columns: repeat(2, 1fr); }
  .facts li { grid-template-columns: 1fr; align-content: start; row-gap: 2px; padding: 18px; }
  .facts .icon { grid-row: auto; margin-bottom: 14px; }
}
@media (min-width: 1024px) {
  .team-grid { grid-template-columns: 3fr 2fr; }
}

/* ---------- Locatie & program ---------- */
/* compact: adresa pe un rand, programul pe 2 coloane, telefoanele in acelasi card */
.visit-grid { display: grid; gap: 32px; margin-top: 40px; }
.visit-info { display: flex; flex-direction: column; gap: 20px; }
.addr { display: flex; gap: 12px; align-items: flex-start; font-size: 1.125rem; color: var(--ink); font-weight: 500; line-height: 1.45; }
.addr .icon { width: 24px; height: 24px; color: var(--accent); margin-top: 1px; }
.text-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; margin-left: 36px;
  color: var(--accent); font-weight: 600; text-decoration: none; font-size: 1rem;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link .icon { width: 18px; height: 18px; }

.hours { padding: 22px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.hours-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; margin-bottom: 14px; }
.hours-head h3 { font-size: 1.25rem; }
/* coloana 1: luni-miercuri, coloana 2: joi-weekend */
.hours-list {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, auto);
  grid-auto-flow: column; gap: 8px;
}
.hours-list li {
  display: grid; gap: 1px; padding: 10px 14px; border-radius: var(--r-btn);
  background: var(--bg-alt); font-variant-numeric: tabular-nums;
}
.hours-list .d { font-size: .9375rem; color: var(--muted); }
.hours-list .h { font-size: 1.0625rem; font-weight: 600; color: var(--ink); }
.hours-list li.is-today { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-tint); }
.hours-list li.is-today .d { color: var(--accent-deep); font-weight: 600; }
.hours-list .closed .h { color: var(--muted); font-weight: 500; }
.today-tag { font-size: .8125rem; font-weight: 600; color: var(--accent); margin-left: 6px; }

.hours-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.hours-foot p { font-size: 1rem; }
.hours-foot .nums { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.hours-foot .btn { flex: 1 1 auto; }

@media (min-width: 1024px) {
  .visit-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .addr { white-space: nowrap; }
  .hours-list li { grid-template-columns: 1fr auto; align-items: baseline; padding: 12px 16px; }
}

.map {
  position: relative; isolation: isolate;
  border-radius: var(--r-card); overflow: hidden; min-height: 360px;
  background: var(--bg-alt); border: 1px solid var(--line);
}
.map iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; filter: grayscale(1) contrast(1.1); }
/* embed-ul Google nu poate fi stilizat; harta e alb-negru, iar un strat in modul "color" coloreaza doar
   accentele (drumuri, iconite, pin) in albastrul site-ului, albul ramane alb.
   Stratul nu primeste click-uri, deci harta ramane interactiva. */
.map::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--accent); mix-blend-mode: color;
}
@media (min-width: 1024px) {
  .map, .map iframe { min-height: 100%; }
}

/* punctul de stare transmite o stare reala (deschis / inchis) */
.status { display: flex; align-items: flex-start; gap: 8px; font-weight: 500; font-size: .9375rem; line-height: 1.4; }
.status::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .45em; border-radius: 50%; background: currentColor; }
.status.is-open { color: var(--ok); }
.status.is-closed { color: var(--muted); }
.status:empty { display: none; }

/* ---------- Feedback ---------- */
/* compact: un singur card; pe desktop intro | nume + buton | mesaj */
.feedback { padding-block: 56px; }
@media (min-width: 1024px) { .feedback { padding-block: 72px; } }
.fb-card {
  display: grid; gap: 28px; padding: 28px; border-radius: var(--r-card);
  background: var(--surface); border: 1px solid rgb(18 50 100 / .06); box-shadow: var(--shadow);
}
.fb-intro h2 { font-size: clamp(1.5rem, 1.3rem + .8vw, 1.875rem); line-height: 1.2; }
.fb-intro p { margin-top: 10px; font-size: 1.0625rem; color: var(--ink-2); max-width: 44ch; }

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-weight: 600; color: var(--ink); font-size: 1rem; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-btn);
  padding: 12px 15px; transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 104px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: #9aa5b6; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.field .help { font-size: .9375rem; color: var(--muted); }
.field .error { display: none; align-items: center; gap: 8px; font-size: .9375rem; color: var(--danger); font-weight: 500; }
.field .error .icon { width: 18px; height: 18px; }
.field.has-error textarea, .field.has-error input { border-color: var(--danger); }
.field.has-error .error { display: flex; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.form-foot .help { font-size: .9375rem; color: var(--muted); }
.form-msg { flex-basis: 100%; }
.form-msg { display: flex; align-items: center; gap: 10px; font-size: 1rem; color: var(--ok); font-weight: 500; }
.form-msg[hidden] { display: none; }

/* nume si e-mail pe doua coloane egale, mesajul pe toata latimea, butonul la final */
@media (min-width: 640px) {
  .form { grid-template-columns: 1fr 1fr; gap: 16px 16px; }
  .fb-msg, .form-foot { grid-column: 1 / -1; }
  .form-foot { justify-content: space-between; }
  .form-foot .help { flex: 1 1 0; }
}

@media (min-width: 1024px) {
  .fb-card { grid-template-columns: .85fr 2fr; gap: 48px; padding: 36px 40px; align-items: center; }
}

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 40px; background: var(--surface); border-top: 1px solid var(--line); font-size: 1rem; }
.foot-grid { display: grid; gap: 40px; }
.foot-grid h4 { margin: 0 0 14px; font-size: .9375rem; color: var(--ink); font-weight: 600; }
.foot-grid ul li + li { margin-top: 8px; }
.foot-grid a { text-decoration: none; color: var(--ink-2); }
.foot-grid a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.foot-brand p { margin-top: 16px; color: var(--muted); max-width: 32ch; }
.foot-bottom {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem;
}
.anpc img { width: 200px; height: auto; border-radius: var(--r-sm); }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ---------- Bara de apel pe mobil ---------- */
.call-bar {
  position: fixed; inset: auto 0 0 0; z-index: 30;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.call-bar .btn { width: 100%; }
/* bara de apel apare abia dupa ce butoanele din hero ies din ecran, ca sa nu fie dublura la prima vedere */
.call-bar { transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.hero-cta-visible .call-bar { transform: translateY(110%); }
@media (max-width: 899px) { body { padding-bottom: 84px; } }
@media (min-width: 900px) { .call-bar { display: none; } }

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