/* ============================================================
   DELFISCLINIC — Design System
   ============================================================ */

:root {
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Layout */
  --maxw: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Type scale */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0 0 0.4em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(48px, 7vw, 90px); }
h2 { font-size: clamp(36px, 4.4vw, 64px); }
h3 { font-size: clamp(24px, 2.4vw, 34px); }
h4 { font-size: 20px; font-family: var(--font-body); font-weight: 500; letter-spacing: 0; }

p { margin: 0 0 1em; max-width: 65ch; text-wrap: pretty; }
a { color: inherit; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--accent);
  display: inline-block;
}
/* Variants reused across several sections (newsletter, valori, banner sarcină / centered hero eyebrows). */
.eyebrow--alt { color: var(--accent-2); }
.eyebrow--center { display: flex; justify-content: center; }

.lead {
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 60ch;
}

.serif-italic { font-family: var(--font-display); font-style: italic; font-weight: 400; }

/* Container */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ====== Top bar (announcement strip) ====== */
.topbar {
  background: var(--ink);
  color: #d8dcd6;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}
.topbar a { color: inherit; text-decoration: none; }
.topbar .tb-left, .topbar .tb-right {
  display: flex; gap: 22px; align-items: center;
}
.topbar .tb-right { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; }
.tb-phone { display: inline-flex; align-items: center; gap: 6px; }
.tb-phone svg { flex-shrink: 0; opacity: .85; position: relative; top: 0; left: 2px; }

/* ====== Header / Nav ====== */
.site-header {
  position: sticky;
  top: var(--wpadminbar-h, 0px);
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
  gap: 24px;
  transition: padding .35s ease;
}
.site-header.scrolled .nav { padding: 10px var(--gutter); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand { display: flex; align-items: center; margin-bottom: 3px; }
/* Text fallback shown in place of the logo image when none is set in Setări DELFIS. */
.brand-fallback { font-family: var(--font-display); font-size: 26px; letter-spacing: .04em; }
.brand-fallback .accent { color: var(--accent); }
.nav-link {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.nav-link.active::after,
.nav-link:hover::after { transform: scaleX(1); }
.site-logo { display: block; height: 70px; width: auto; max-width: 200px; transition: height .35s ease; }
.site-header.scrolled .site-logo { height: 50px; }
.footer-brand .site-logo { margin-bottom: 18px; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  background: var(--accent);
  color: #f6f3ec;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background .25s;
}
.nav-cta:hover { background: var(--ink); }
.nav-cta::after {
  content: "→";
  display: inline-block;
  font-size: 14px;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform .25s ease;
}
.nav-cta:hover::after { transform: translateY(-1px) translateX(4px); }

/* ====== Buttons ====== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border: none;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border-radius: 999px;
  transition: all .25s;
}
.btn:hover { background: var(--ink); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--light {
  background: var(--bg);
  color: var(--ink);
}
.btn--light:hover { background: #fff; color: var(--accent); }
.btn--lg { padding: 20px 36px; font-size: 14px; }

/* ====== Section utilities ====== */
.section { padding: clamp(70px, 10vw, 90px) 0; }
.section--dark { background: var(--ink); color: #d8dcd6; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #f6f3ec; }
.section--cream { background: var(--bg-alt); }

/* ====== Image placeholder ====== */
.img-ph {
  position: relative;
  background-color: var(--accent-3);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.img-ph[style*="background-image"]::after { display: none; }
.img-ph[data-label]::after {
  content: attr(data-label);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(14, 31, 29, 0.55);
  padding: 6px 12px;
  border: 1px solid rgba(14, 31, 29, 0.25);
  background: rgba(246, 243, 236, 0.6);
  backdrop-filter: blur(2px);
}
.img-ph--dark {
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.04) 0,
      rgba(255,255,255,0.04) 1px,
      transparent 1px,
      transparent 12px),
    var(--accent);
}
.img-ph--dark::after {
  color: rgba(246, 243, 236, 0.7);
  border-color: rgba(246, 243, 236, 0.3);
  background: rgba(14, 31, 29, 0.4);
}
.img-ph--warm {
  background:
    repeating-linear-gradient(135deg,
      rgba(0,0,0,0.04) 0,
      rgba(0,0,0,0.04) 1px,
      transparent 1px,
      transparent 12px),
    #d8c8b0;
}

/* ====== Footer ====== */
.site-footer {
  background: var(--ink);
  color: #c4d0c5;
  padding: 80px 0 30px;
}
.site-footer h4 {
  color: #f6f3ec;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 18px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-grid a { color: inherit; text-decoration: none; display: block; padding: 4px 0; opacity: 0.85; transition: opacity .2s; font-size: 14px; }
.footer-grid a:hover { opacity: 1; color: #fff; }
.footer-bottom a, .footer-bottom span { display: inline-block; padding: 2px; }
.footer-bottom a { color: inherit; text-decoration: none; opacity: 0.85; transition: opacity .2s; }
.footer-bottom a:hover { opacity: 1; }
.legal-links a:not(:first-child)::before { content: " · "; opacity: 0.6; }
.footer-brand img { max-height: 70px; max-width: 200px; width: auto; height: auto; margin-bottom: 18px; }
.footer-brand h4 { font-size: 28px; }
.footer-brand p { font-size: 14px; opacity: 0.75; max-width: 32ch; }
.footer-bottom {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* ====== Cards ====== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(14, 31, 29, 0.08); }

/* ====== Mobile ====== */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}



/* ====== Reveal anim ======
   Only when JS runs (header.php adds .js on <html>): without it, nothing
   would ever add .in and the content would stay invisible. */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
/* ===== Hero ===== */
    .hero {
      position: relative;
      padding: clamp(60px, 8vw, 110px) 0 clamp(80px, 10vw, 140px);
      overflow: hidden;
    }
    .hero-grid {
      display: grid;
      grid-template-columns: 1.1fr 1fr;
      gap: 60px;
      align-items: center;
    }
    .hero h1 {
      font-size: clamp(48px, 6.4vw, 90px);
      line-height: 1.02;
      letter-spacing: -0.02em;
      margin-bottom: 36px;
    }
    .hero h1 .it { font-style: italic; font-weight: 300; color: var(--accent); }
    .hero-cta {
      display: flex; gap: 14px; flex-wrap: wrap;
      margin-top: 36px;
    }
    .hero-img {
      aspect-ratio: 4/5;
      width: 100%;
      border-radius: 4px;
    }
    .hero-meta {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 32px;
      margin-top: 80px;
      padding-top: 36px;
      border-top: 1px solid var(--line);
    }
    .meta-item .num {
      font-family: var(--font-display);
      font-size: 56px;
      font-weight: 300;
      color: var(--accent);
      line-height: 1;
      margin-bottom: 6px;
    }
    .meta-item .lbl {
      font-family: var(--font-mono);
      font-size: 11px;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .meta-item p { font-size: 14px; color: var(--ink-soft); margin-top: 8px; }

    @media (max-width: 880px) {
      .hero-grid { grid-template-columns: 1fr; }
      .hero-meta { grid-template-columns: 1fr; gap: 24px; }
    }

    /* ===== Marquee ===== */
    .marquee {
      background: var(--ink);
      color: #d8dcd6;
      padding: 22px 0;
      overflow: hidden;
      border-top: 1px solid #2a3a37;
      border-bottom: 1px solid #2a3a37;
    }
    .marquee-track {
      display: flex;
      white-space: nowrap;
      animation: marquee 38s linear infinite;
      font-family: var(--font-display);
      font-style: italic;
      font-size: 24px;
    }
    .marquee-group { display: flex; flex-shrink: 0; }
    .marquee-track span { display: inline-flex; align-items: center; gap: 60px; margin-right: 60px; }
    .marquee-track span::after {
      content: "✦";
      color: var(--accent-warm);
      font-style: normal;
      font-size: 14px;
    }
    /* JS (initMarquee in main.js) clones .marquee-group as many times as
       needed to always overflow the viewport, and sets --marquee-shift to
       one group's exact pixel width — so the loop point always lands on a
       group boundary, seamless regardless of term count or screen width.
       The -50% fallback only applies before JS runs / if JS is disabled. */
    @keyframes marquee {
      from { transform: translateX(0); }
      to { transform: translateX(var(--marquee-shift, -50%)); }
    }

    /* ===== Specialties (services preview) ===== */
    .specialties { padding: clamp(80px, 10vw, 140px) 0; }
    .specialties-head {
      display: grid;
      grid-template-columns: 1fr 1.4fr;
      gap: 60px;
      margin-bottom: 80px;
      align-items: end;
    }
    .specialties-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1px;
      background: var(--line);
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }
    .spec-card {
      background: var(--bg);
      padding: 44px 36px;
      transition: background .3s;
      cursor: pointer;
      position: relative;
      display: flex;
      flex-direction: column;
      text-decoration: none;
      color: inherit;
    }
    .spec-card:hover { background: var(--bg-alt); }
    .spec-card .num {
      font-family: var(--font-mono);
      font-size: 11px;
      letter-spacing: 0.18em;
      color: var(--muted);
      margin-bottom: 32px;
    }
    .spec-card h3 {
      font-size: 30px;
      margin-bottom: 16px;
    }
    .spec-card p {
      font-size: 14px;
      color: var(--ink-soft);
      margin-bottom: 24px;
      flex: 1;
    }
    .spec-card .arrow {
      font-size: 28px;
      color: var(--accent);
      align-self: flex-start;
      transition: transform .3s;
    }
    .spec-card:hover .arrow { transform: translateX(8px); }

    @media (max-width: 880px) {
      .specialties-head, .specialties-grid { grid-template-columns: 1fr; }
    }

    /* ===== About strip ===== */
    .about-strip {
      background: var(--bg-alt);
      padding: clamp(80px, 10vw, 140px) 0;
    }
    .about-grid {
      display: grid;
      grid-template-columns: 1fr 1.2fr;
      gap: 80px;
      align-items: center;
    }
    .about-img {
      aspect-ratio: 4/5;
      border-radius: 4px;
    }
    .about-text h2 { font-size: clamp(40px, 4.5vw, 68px); margin-bottom: 28px; }
    .pillars {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 30px;
      margin-top: 48px;
      padding-top: 36px;
      border-top: 1px solid var(--line);
    }
    .pillar h4 { color: var(--accent); margin-bottom: 8px; }
    .pillar p { font-size: 14px; color: var(--ink-soft); margin: 0; }
    @media (max-width: 880px) {
      .about-grid, .pillars { grid-template-columns: 1fr; }
    }

    /* ===== Doctors preview ===== */
    .doctors-preview { padding: clamp(80px, 10vw, 140px) 0; }
    .doctors-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 60px; gap: 40px; }
    .doctors-head h2 { margin: 0; max-width: 30ch; }
    .doctors-row {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 28px;
    }
    .doc-card .doc-img {
      aspect-ratio: 3/4;
      margin-bottom: 18px;
    }
    .doc-card .doc-name {
      font-family: var(--font-display);
      font-size: 24px;
      margin-bottom: 4px;
    }
    .doc-card .doc-spec {
      font-family: var(--font-mono);
      font-size: 11px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 10px;
    }
    .doc-card .doc-bio { font-size: 13px; color: var(--ink-soft); margin: 0; }
    @media (max-width: 880px) {
      .doctors-head { flex-direction: column; align-items: start; }
      .doctors-row { grid-template-columns: 1fr 1fr; }
    }

    /* ===== Pregnancy banner ===== */
    .pregnancy-banner {
      background: var(--ink);
      color: #d8dcd6;
      position: relative;
      overflow: hidden;
    }
    .pb-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      min-height: 600px;
    }
    .pb-img {
      background-color: var(--accent);
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
    }
    .pb-content {
      padding: clamp(60px, 8vw, 100px) clamp(40px, 6vw, 80px);
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
    .pb-content h2 { color: #f6f3ec; font-size: clamp(36px, 4.4vw, 60px); margin-bottom: 24px; }
    .pb-content p { color: #c4d0c5; max-width: 50ch; margin-bottom: 32px; font-size: 16px; }
    .pb-list { list-style: none; padding: 0; margin: 0 0 36px; }
    .pb-list li {
      padding: 14px 0;
      border-top: 1px solid #2a3a37;
      font-size: 14px;
      display: flex;
      justify-content: space-between;
      gap: 24px;
    }
    .pb-list li:last-child { border-bottom: 1px solid #2a3a37; }
    .pb-list .week { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; color: var(--accent-2); }
    .pregnancy-banner .btn--light:hover { background: var(--accent); color: #fff; }
    @media (max-width: 880px) {
      .pb-grid { grid-template-columns: 1fr; }
      .pb-img { aspect-ratio: 16/10; }
    }

    /* ===== Testimonials ===== */
    .testimonials { padding: clamp(80px, 10vw, 140px) 0; }
    .test-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; }
    .testimonials .lead { max-width: 40ch; }
    .test-grid {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 32px;
      margin-top: 60px;
    }
    .test-card {
      padding: 40px 32px;
      background: var(--bg-card);
      border-radius: 4px;
      display: flex;
      flex-direction: column;
    }
    .test-card .quote {
      font-family: var(--font-display);
      font-size: 22px;
      line-height: 1.4;
      font-style: italic;
      color: var(--ink);
      margin: 0 0 24px;
      flex: 1;
    }
    .test-card .quote::before {
      content: "“";
      display: block;
      font-size: 56px;
      line-height: 0.4;
      color: var(--accent-warm);
      margin-bottom: 18px;
    }
    .test-author {
      padding-top: 20px;
      border-top: 1px solid var(--line);
    }
    .test-author .name { font-size: 14px; font-weight: 500; }
    .test-author .when { font-size: 12px; color: var(--muted); font-family: var(--font-mono); letter-spacing: 0.06em; }
    @media (max-width: 880px) { .test-grid { grid-template-columns: 1fr; } }

    /* ===== Tour gallery ===== */
    .tour { background: var(--bg-alt); padding: clamp(80px, 10vw, 140px) 0; }
    .tour-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; }
    .tour-head h2 { margin: 0; max-width: 30ch; }
    .tour-grid {
      display: grid;
      grid-template-columns: 1.4fr 1fr 1fr;
      grid-template-rows: 280px 280px;
      gap: 16px;
      margin-top: 60px;
    }
    .tour-grid > div { border-radius: 4px; }
    .tour-grid > div:nth-child(1) { grid-row: 1 / 3; }
    @media (max-width: 880px) {
      .tour-head { flex-direction: column; align-items: start; }
      .tour-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 220px 220px; }
      .tour-grid > div:nth-child(1) { grid-row: 1; grid-column: 1 / 3; }
    }

    /* ===== CTA ===== */
    .cta-final {
      padding: clamp(80px, 10vw, 130px) 0;
      text-align: center;
      background: var(--bg);
    }
    .cta-final h2 {
      font-size: clamp(48px, 6vw, 96px);
      max-width: 30ch;
      margin: 0 auto 24px;
    }
    .cta-final p { max-width: 50ch; margin: 0 auto 40px; color: var(--ink-soft); font-size: 18px; }
    .cta-final .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
/* ============================================================
   ADDITIONS FOR PRODUCTION / WORDPRESS
   ============================================================ */

/* --- Mobile menu (was missing in original design) --- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background .2s, border-color .2s;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 1px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform .3s, opacity .3s, background .2s;
}
.nav-toggle:hover { background: var(--accent); border-color: var(--accent); }
.nav-toggle:hover span { background: #f6f3ec; }
body.menu-open { overflow: hidden; }
.mobile-menu {
  position: fixed;
  top: var(--wpadminbar-h, 0px);
  right: 0; bottom: 0; left: 0;
  z-index: 60;
  background: var(--bg);
  transform: translateX(100%);
  /* hidden (not just off-screen) while closed, so its links can't be
     reached with Tab; visibility flips only after the slide-out ends */
  visibility: hidden;
  transition: transform .4s cubic-bezier(.4,0,.2,1), visibility 0s linear .4s;
  display: flex;
  flex-direction: column;
  padding: 24px var(--gutter) 48px;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.mobile-menu-head { display: flex; align-items: center; margin-bottom: 10px; }
.mobile-menu-close {
  position: relative;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  cursor: pointer;
  transition: background .2s;
}
.mobile-menu-close::before,
.mobile-menu-close::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 16px; height: 1px;
  background: #f6f3ec;
}
.mobile-menu-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.mobile-menu-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.mobile-menu-close:hover { background: var(--ink); }
.mobile-menu a.m-link {
  font-family: var(--font-display);
  font-size: 24px;
  text-decoration: none;
  color: var(--ink);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a.m-link.active { color: var(--accent); font-style: italic; }
.mobile-menu .nav-cta { margin-top: 28px; align-self: flex-start; }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
}

/* --- Header search toggle (Setări DELFIS → Căutare → "Căutare în site") --- */
.nav-search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .2s, color .2s;
}
.nav-search-toggle:hover { border-color: var(--accent); color: var(--accent); }
.nav-search {
  max-height: 0;
  overflow: hidden;
  border-bottom: 0 solid var(--line);
  background: var(--bg);
  transition: max-height .3s ease, border-color .3s ease;
}
.nav-search.open { max-height: 120px; border-bottom-width: 1px; }
.nav-search form {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
}
.nav-search input[type="search"] {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
  outline: none;
}
.nav-search button {
  padding: 12px 22px;
  background: var(--accent);
  color: #f6f3ec;
  border: none;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.mobile-search { display: flex; gap: 8px; margin-top: 28px; }
.mobile-search input[type="search"] {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  background: transparent;
  color: var(--ink);
}
.mobile-search button {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #f6f3ec;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
@media (max-width: 880px) {
  .nav-search-toggle { display: none; }
}

/* --- WordPress core / editor helpers --- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: 12px 20px; z-index: 100;
}
.skip-link:focus { left: 0; }
.alignwide { max-width: var(--maxw); margin-inline: auto; }
.alignfull { max-width: none; }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* --- WP comment/post niceties (blog) --- */
.entry-header { margin-bottom: 40px; }
.entry-thumb { aspect-ratio: 16/9; border-radius: var(--radius); margin-bottom: 50px; }
.entry-content img { border-radius: var(--radius); }
.entry-content p { max-width: none; }

/* --- CF7 minimal styling so forms inherit the design --- */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="date"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 4px;
}
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus {
  outline: none; border-color: var(--accent);
}
.wpcf7 label { display: block; font-size: 13px; letter-spacing: .04em; margin-bottom: 16px; color: var(--ink-soft); }
.wpcf7 .wpcf7-submit {
  padding: 16px 28px; background: var(--accent); color: var(--bg);
  border: none; border-radius: 999px; text-transform: uppercase;
  letter-spacing: .1em; font-size: 13px; cursor: pointer; transition: background .25s;
}
.wpcf7 .wpcf7-submit:hover { background: var(--ink); }
.wpcf7-not-valid-tip { display: block; color: #c96b6b; font-size: 12px; margin-top: 4px; }
/* CF7's own stylesheet targets ".wpcf7 form .wpcf7-response-output" (and
   ".wpcf7 form.STATE .wpcf7-response-output" for colors), so our overrides
   have to match that same selector shape to actually win the cascade. */
.wpcf7 form .wpcf7-response-output {
  margin: 16px 0 0;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-alt);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}
/* Same red/green identity as .nl-form's messages below, just recalibrated
   for a light background (nl-form's translucent-on-dark tints would be
   unreadable here — light pink text on a cream page background). */
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--accent-2); background: #eef4f0; color: var(--ink); }
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
  border-color: #d98b8b; background: #fbeeee; color: #7a3a3a;
}
/* The outer .wpcf7-spinner only positions the icon (translate is used for
   centering it, e.g. inside .nl-form's button below). The actual ring +
   rotation lives on ::before — keeping them on separate boxes means the
   positioning transform and the rotation transform never fight over the
   same "transform" property. */
.wpcf7 .wpcf7-spinner {
  background: none;
  width: 24px;
  height: 24px;
  margin: 0 0 0 8px;
  vertical-align: middle;
  opacity: 1;
}
.wpcf7 .wpcf7-spinner::before {
  content: "";
  box-sizing: border-box;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: none;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  /* CF7's own stylesheet sets a fixed "transform-origin: 8px 8px" (tuned
     for its 16px default spinner) on this same selector; since we don't
     match its box size, that origin sits off-center and made the ring
     wobble while spinning. Reset it to the box's real center. */
  transform-origin: center;
  animation: wpcf7-spin .6s linear infinite;
}
@keyframes wpcf7-spin { to { transform: rotate(360deg); } }

/* Shared submit-button spinner dock. CF7 always inserts .wpcf7-spinner as
   the submit button's *next* sibling, never as its child — so our form
   templates wrap [submit ...] in <span class="submit-wrap"> (see the
   Newsletter and "Programare online" CF7 form templates). That wrapper
   shrinks to the button's own size, so the spinner can be centered with a
   plain 50%/50% regardless of label length, instead of guessing a fixed
   pixel width per button (which breaks the moment the flex row around it
   isn't flush against the button's own edge). */
.submit-wrap { position: relative; display: inline-flex; }
.submit-wrap .wpcf7-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
}
.wpcf7 form.submitting .submit-wrap .wpcf7-submit { color: transparent; }

/* --- Respect reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   BLOG / ARCHIVE / PAGE HERO (WordPress templates)
   ============================================================ */
.page-hero { padding: clamp(60px, 9vw, 90px) 0 clamp(30px, 5vw, 60px); border-bottom: 1px solid var(--line); }
.page-hero h1 .it { font-style: italic; color: var(--accent); font-weight: 300; }
.page-hero .blog-search { margin-top: 28px; }
.page-hero-note {
  max-width: none;
  margin-top: 20px;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
  font-size: 14px;
  color: var(--ink-soft);
}

.post-grid { padding: clamp(60px, 8vw, 100px) 0; }
.post-grid-wp {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.post-card-wp { display: flex; flex-direction: column; }
.post-card-img {
  display: block;
  aspect-ratio: 3/2;
  background-color: var(--accent-3);
}
.post-card-body { padding: 26px 28px 30px; }
.post-card-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.post-card-title { font-size: 24px; margin-bottom: 10px; }
.post-card-title a { text-decoration: none; }
.post-card-excerpt { font-size: 14px; color: var(--ink-soft); margin-bottom: 16px; }
.post-card-link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--accent);
}
.pagination { margin-top: 60px; }
.pagination .nav-links { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
}
.pagination .current { background: var(--accent); color: var(--bg); border-color: var(--accent); }

@media (max-width: 880px) {
  .post-grid-wp { grid-template-columns: 1fr; }
}

/* --- Featured post (blog home) --- */
.featured-post { padding: clamp(60px, 8vw, 110px) 0; border-bottom: 1px solid var(--line); }
.fp-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.fp-grid .img-ph { display: block; aspect-ratio: 4/3; border-radius: 4px; }
.fp-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.fp-grid h2 { font-size: clamp(36px, 4.5vw, 50px); line-height: 1.05; margin-bottom: 20px; }
.fp-grid p { color: var(--ink-soft); font-size: 17px; max-width: 50ch; margin-bottom: 28px; }

/* --- Category filters + inline search (blog home & archives) --- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn {
  display: inline-flex;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
  font-family: var(--font-body);
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.filter-btn:hover { border-color: var(--accent); }
.filter-btn.active { background: var(--accent); color: #f6f3ec; border-color: var(--accent); }
.blog-search {
  display: flex;
  align-items: center;
  width: 260px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 6px 4px 18px;
  background: var(--bg-card);
}
.blog-search input[type="search"] {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink);
  outline: none;
}
.blog-search button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #f6f3ec;
  cursor: pointer;
  flex-shrink: 0;
}
.blog-search button:hover { background: var(--ink); }

/* --- Newsletter (blog home) --- */
.newsletter {
  background: var(--ink);
  color: #d8dcd6;
  padding: clamp(80px, 10vw, 120px) 0;
  text-align: center;
}
.newsletter h2 { color: #f6f3ec; max-width: 30ch; margin: 0 auto 18px; }
.newsletter p { color: #c4d0c5; max-width: 48ch; margin: 0 auto 32px; }
.nl-form { position: relative; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; max-width: 480px; margin: 0 auto; }
.nl-form .wpcf7-form-control-wrap { flex: 1 1 240px; width: auto; text-align: left; }
.nl-form input[type="email"] {
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  border: 1px solid #2a3a37;
  color: #f6f3ec;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  margin: 0;
  box-sizing: border-box;
}
.nl-form input::placeholder { color: var(--muted); }
.nl-form .submit-wrap { flex: 0 0 auto; }
.nl-form .wpcf7-submit {
  padding: 16px 28px;
  background: var(--bg);
  color: var(--ink);
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.nl-form .wpcf7-submit:hover { background: var(--accent); color: #fff; }
.nl-form .wpcf7-spinner::before { border-color: rgba(14, 31, 29, .2); border-top-color: var(--ink); }
.nl-form .wpcf7-submit:hover ~ .wpcf7-spinner::before { border-color: rgba(255, 255, 255, .35); border-top-color: #fff; }
.nl-form .wpcf7-not-valid-tip { color: #e8a0a0; font-size: 12px; margin-top: 8px; text-align: left; }
.wpcf7 form.nl-form .wpcf7-response-output {
  flex-basis: 100%;
  width: 100%;
  margin: 12px 0 0;
  font-size: 13px;
  text-align: left;
  border-color: #2a3a37;
  background: rgba(255, 255, 255, 0.05);
  color: #f6f3ec;
}
.wpcf7 form.nl-form.sent .wpcf7-response-output { border-color: var(--accent-2); background: rgba(122, 155, 142, 0.15); color: #f6f3ec; }
.wpcf7 form.nl-form.failed .wpcf7-response-output,
.wpcf7 form.nl-form.aborted .wpcf7-response-output,
.wpcf7 form.nl-form.spam .wpcf7-response-output,
.wpcf7 form.nl-form.invalid .wpcf7-response-output,
.wpcf7 form.nl-form.unaccepted .wpcf7-response-output,
.wpcf7 form.nl-form.payment-required .wpcf7-response-output {
  border-color: #d98b8b; background: rgba(217, 139, 139, 0.12); color: #f3d5d5;
}
@media (max-width: 880px) {
  .fp-grid { grid-template-columns: 1fr; }
  .filters { flex-direction: column; align-items: stretch; }
  .blog-search { width: 100%; }
  .nl-form { flex-direction: column; align-items: stretch; }
  .nl-form .wpcf7-form-control-wrap { width: 100%; }
  .nl-form .submit-wrap, .nl-form .wpcf7-submit { width: 100%; }
}

/* Utility: hide secondary info on small screens (topbar) */
@media (max-width: 720px) {
  .hide-sm { display: none !important; }
}

/* ============================================================
   PAGINA CONTACT
   ============================================================ */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* contact-grid: form + sidebar */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  padding: clamp(70px, 9vw, 120px) 0;
}

/* form wrap */
.form-wrap h2 { font-size: clamp(32px, 3.5vw, 48px); margin-bottom: 14px; }
.form-wrap > p { color: var(--ink-soft); margin-bottom: 32px; }
.ct-no-form { color: var(--muted); font-style: italic; }

/* appointment form — multi-step (CF7-rendered) */
.step-progress { display: flex; gap: 8px; margin-bottom: 28px; }
.step-progress .step {
  flex: 1;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  transition: background .25s;
}
.step-progress .step.active { background: var(--accent); }

#appointment-form-wrap .step-pane:not([data-step="1"]) { display: none; }
.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.step-title { font-family: var(--font-display); font-size: 28px; margin-bottom: 24px; }
.step-actions { display: flex; gap: 12px; margin-top: 20px; }
.step-actions .wpcf7-spinner::before { border-color: rgba(255, 255, 255, .3); border-top-color: #fff; }

#appointment-form-wrap .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.step-pane[data-step="2"] .form-row { margin-top: 20px; }
@media (max-width: 600px) { #appointment-form-wrap .form-row { grid-template-columns: 1fr; } }
#appointment-form-wrap .field { margin-bottom: 10px; }
#appointment-form-wrap .field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
#appointment-form-wrap .field .wpcf7-form-control-wrap { display: block; }
#appointment-form-wrap input[type="text"],
#appointment-form-wrap input[type="tel"],
#appointment-form-wrap input[type="email"],
#appointment-form-wrap input[type="date"],
#appointment-form-wrap select,
#appointment-form-wrap textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  border-radius: var(--radius);
  transition: border-color .2s;
}
#appointment-form-wrap input:focus,
#appointment-form-wrap select:focus,
#appointment-form-wrap textarea:focus { outline: none; border-color: var(--accent); }
#appointment-form-wrap textarea { resize: vertical; min-height: 110px; }

.doctor-pick, .service-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.doctor-pick label,
.service-pick label {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--bg-card);
  transition: all .2s;
}
.doctor-pick label:hover,
.service-pick label:hover { border-color: var(--accent-2); }
.doctor-pick input,
.service-pick input { display: none; }
.doctor-pick label:has(input:checked),
.service-pick label:has(input:checked) {
  border-color: var(--accent);
  background: var(--bg-alt);
}
.doctor-pick input:checked + .pick-content,
.service-pick input:checked + .pick-content { color: var(--accent); }
.pick-content strong { display: block; font-weight: 500; font-size: 14px; }
.pick-content small { font-size: 12px; color: var(--muted); }
@media (max-width: 600px) { .doctor-pick, .service-pick { grid-template-columns: 1fr; } }

.success-msg {
  display: none;
  padding: 60px 40px;
  background: var(--bg-alt);
  text-align: center;
  border-radius: var(--radius);
}
.success-msg.show { display: block; }
.success-msg h3 { font-size: 32px; margin-bottom: 12px; }
.success-msg .check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
}

/* info sidebar */
.info-side { display: flex; flex-direction: column; gap: 24px; }

.info-card {
  background: var(--bg-alt);
  padding: 28px 24px;
  border-radius: var(--radius);
}
.info-card h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
  font-weight: 500;
}
.info-card p { margin: 0; font-size: 15px; }
.info-card p + p { margin-top: 16px; }
.info-card a { color: var(--ink); text-decoration: none; }
.info-card a:hover { color: var(--accent); }

.info-card--dark {
  background: var(--ink);
  color: #d8dcd6;
}
.info-card--dark h4 { color: var(--accent-2); }
.info-card--dark a { color: #f6f3ec; }

.ct-phone {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.1;
  display: block;
  margin-top: 6px;
  color: #f6f3ec !important;
}
.ct-phone-note { margin-top: 10px !important; font-size: 13px; color: #c4d0c5; }
.ct-note { font-size: 13px; color: var(--muted); }

.ct-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.ct-row:last-child { border-bottom: 1px solid var(--line); }
.info-card--dark .ct-row { border-color: #2a3a37; }

.ct-lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 2px;
  white-space: nowrap;
}
.ct-val { font-size: 14px; text-align: right; }

/* map section */
.map-section { background: var(--bg-alt); padding: clamp(60px, 8vw, 100px) 0; }
.map-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}
.map-side h2 { font-size: clamp(32px, 3.5vw, 48px); margin-bottom: 16px; }
.map-side > p { color: var(--ink-soft); margin-bottom: 24px; }
.map-side .ct-row { border-color: var(--line); }
.map-side .btn { margin-top: 28px; }

.map-canvas {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 70% 35%, rgba(45,74,68,.08), transparent 40%),
    repeating-linear-gradient(0deg, #d8dcd6 0, #d8dcd6 1px, transparent 1px, transparent 60px),
    repeating-linear-gradient(90deg, #d8dcd6 0, #d8dcd6 1px, transparent 1px, transparent 60px),
    var(--bg);
}
.map-canvas iframe { border: 0; position: absolute; inset: 0; width: 100%; height: 100%; }
.map-pin {
  position: absolute;
  top: 38%; left: 52%;
  width: 24px; height: 24px;
  background: var(--accent);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 0 0 4px rgba(45,74,68,.15), 0 0 0 12px rgba(45,74,68,.08);
}
.map-pin::after {
  content: "";
  position: absolute;
  top: 7px; left: 7px;
  width: 10px; height: 10px;
  background: var(--bg);
  border-radius: 50%;
}
.map-pin-label {
  position: absolute;
  top: calc(38% + 30px); left: 50%;
  background: var(--bg-card);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  white-space: nowrap;
}

/* ============================================================
   PAGINA DESPRE
   ============================================================ */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  padding: clamp(70px, 9vw, 120px) 0;
}
.story-grid .img-ph { aspect-ratio: 4/5; border-radius: var(--radius); }
.story-text h3 { font-size: 36px; margin-bottom: 18px; }
.story-text h3 ~ h3 { margin-top: 40px; }
.story-text p { font-size: 17px; line-height: 1.65; }

.values {
  background: var(--ink);
  color: #d8dcd6;
  padding: clamp(80px, 10vw, 130px) 0;
}
.values h2 { color: #f6f3ec; max-width: 30ch; margin-bottom: 60px; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid #2a3a37;
}
.value {
  padding: 36px 28px 36px 0;
  border-right: 1px solid #2a3a37;
}
.value:last-child { border-right: none; padding-right: 0; }
.value:not(:first-child) { padding-left: 28px; }
.value .num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--accent-2); margin-bottom: 24px; }
.value h3 { font-size: 28px; color: #f6f3ec; margin-bottom: 14px; }
.value p { font-size: 14px; color: #c4d0c5; }

.timeline { padding: clamp(80px, 10vw, 130px) 0; }
.timeline h2 { margin-bottom: 60px; max-width: 30ch; }
.tl-row {
  display: grid;
  grid-template-columns: 140px 1fr 1.5fr;
  gap: 40px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.tl-row--wide { grid-template-columns: 56px 1fr; gap: 16px; }
.tl-row--wide .tl-title { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.25; }
.tl-row:last-child { border-bottom: 1px solid var(--line); }
.tl-year { font-family: var(--font-display); font-size: 42px; color: var(--accent); }
.tl-title { font-family: var(--font-display); font-size: 26px; }
.tl-desc { color: var(--ink-soft); font-size: 15px; }

.gallery-section { background: var(--bg-alt); padding: clamp(80px, 10vw, 130px) 0; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.gallery-grid > div,
.gallery-grid > button { aspect-ratio: 4/5; border-radius: var(--radius); }
button.gallery-item {
  border: 0;
  margin: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  width: 100%;
}

/* CTA final (Despre) */
.about-cta { padding: 130px 0; background: var(--bg); text-align: center; }
.about-cta h2 { font-size: clamp(40px, 5vw, 76px); max-width: 30ch; margin: 0 auto 24px; }
.about-cta p { max-width: 50ch; margin: 0 auto 36px; color: var(--ink-soft); }

@media (max-width: 880px) {
  .story-grid, .values-grid { grid-template-columns: 1fr; }
  .value { border-right: none; border-bottom: 1px solid #2a3a37; padding: 28px 0 !important; }
  .tl-row { grid-template-columns: 1fr; gap: 8px; }
  .tl-row--wide { grid-template-columns: 40px 1fr; gap: 12px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .map-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PAGINA SERVICII
   ============================================================ */
.toc { padding: 50px 0; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.toc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.toc li a {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  color: var(--ink);
  background: var(--bg);
  transition: all .2s;
}
.toc li a:hover { background: var(--accent); color: #f6f3ec; border-color: var(--accent); }

.svc-block { padding: clamp(70px, 9vw, 120px) 0; border-bottom: 1px solid var(--line); }
.svc-block:nth-child(even) { background: var(--bg-alt); }
.svc-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.svc-block .img-ph { aspect-ratio: 4/5; border-radius: var(--radius); position: sticky; top: 100px; }
.svc-block .num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--accent); margin-bottom: 16px; }
.svc-block h2 { font-size: clamp(36px, 4vw, 60px); margin-bottom: 24px; }
.svc-block .lead-svc {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-soft);
  margin-bottom: 28px;
  max-width: 50ch;
}
.svc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 36px; border-top: 1px solid var(--line); }
.svc-list .item { padding: 22px 0; border-bottom: 1px solid var(--line); padding-right: 24px; }
.svc-list .item:nth-child(odd) { padding-right: 24px; }
.svc-list .item:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
.svc-list h4 { font-family: var(--font-body); font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.svc-list p { font-size: 13px; color: var(--ink-soft); margin: 0; }
.svc-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 880px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-list { grid-template-columns: 1fr; }
  .svc-list .item:nth-child(even) { border-left: none; padding-left: 0; }
  .svc-block .img-ph { position: static; }
}

/* ============================================================
   PAGINA ECHIPA
   ============================================================ */
.doctors-list { padding: clamp(60px, 8vw, 100px) 0; }
.doc-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  padding: 60px 0;
  align-items: start;
}
.doc-row + .doc-row { border-top: 1px solid var(--line); }
.doc-row .img-ph { aspect-ratio: 4/5; border-radius: var(--radius); }

.doc-detail .role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.doc-detail h2 { font-size: clamp(36px, 4vw, 56px); margin-bottom: 12px; }
.doc-detail .specialty {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.doc-detail p { font-size: 16px; line-height: 1.65; max-width: 60ch; }

.doc-creds {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.cred h4 { color: var(--accent); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--font-mono); margin-bottom: 10px; font-weight: 500; }
.cred ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 24px; }
.cred li { font-size: 14px; padding: 4px 0; color: var(--ink-soft); break-inside: avoid; }

.doc-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

.join {
  background: var(--bg-alt);
  padding: clamp(80px, 10vw, 130px) 0;
  text-align: center;
}
.join h2 { max-width: 30ch; margin: 0 auto 20px; }
.join p { max-width: 50ch; margin: 0 auto 32px; color: var(--ink-soft); }

@media (max-width: 880px) {
  .doc-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .cred ul { columns: 1; }
}

/* ============================================================
   PAGINA PRETURI
   ============================================================ */
.price-section { padding: clamp(60px, 8vw, 100px) 0; border-bottom: 1px solid var(--line); }
.price-section:nth-child(even) { background: var(--bg-alt); }
.ps-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
}
.ps-grid h2 { font-size: clamp(32px, 3.5vw, 48px); margin: 0 0 14px; }
.ps-grid .lead { font-size: 16px; color: var(--ink-soft); }
.price-table { width: 100%; border-collapse: collapse; }
.price-table tr { border-bottom: 1px solid var(--line); }
.price-table tr:first-child { border-top: 1px solid var(--line); }
.price-table td { padding: 12px 0; vertical-align: top; }
.price-table td:last-child {
  text-align: right;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--accent);
  white-space: nowrap;
  padding-left: 24px;
}
.price-table .name { font-size: 15px; font-weight: 500; line-height: 1.3; }
.price-table .desc { font-size: 13px; color: var(--ink-soft); line-height: 1.3; margin-top: 3px; }

@media (max-width: 880px) {
  .ps-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================================
   PAGINA SARCINA
   ============================================================ */
.preg-hero {
  padding: clamp(60px, 8vw, 110px) 0 clamp(70px, 9vw, 120px);
  background: var(--ink);
  color: #d8dcd6;
  position: relative;
}
.preg-hero h1 { color: #f6f3ec; }
.preg-hero h1 .it { font-style: italic; color: var(--accent-2); font-weight: 300; }
.preg-hero .breadcrumb { color: var(--accent-2); }
.preg-hero .lead { color: #c4d0c5; }
.preg-hero .actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.preg-hero .btn--ghost { color: #f6f3ec; border-color: #f6f3ec; }
.preg-hero .btn--ghost:hover { background: #f6f3ec; color: var(--ink); }
.preg-hero .btn--light:hover { background: var(--accent); color: #fff; }

.trimesters { padding: clamp(80px, 10vw, 130px) 0; }
.trimesters h2 { max-width: 30ch; margin-bottom: 60px; }
.trim-row {
  display: grid;
  grid-template-columns: 200px 1fr 1.4fr;
  gap: 60px;
  padding: 60px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.trim-row:last-child { border-bottom: 1px solid var(--line); }
.trim-num {
  font-family: var(--font-display);
  font-size: 80px;
  color: var(--accent);
  line-height: 1;
  font-weight: 300;
}
.trim-num small { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }
.trim-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  margin-bottom: 16px;
}
.trim-desc { color: var(--ink-soft); font-size: 15px; max-width: 40ch; }
.trim-list { list-style: none; padding: 0; margin: 0; }
.trim-list li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  font-size: 14px;
  align-items: start;
}
.trim-list li:last-child { border-bottom: 1px solid var(--line); }
.trim-list .week {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  padding-top: 2px;
}
.trim-list .what strong { display: block; margin-bottom: 4px; font-weight: 500; }
.trim-list .what span { color: var(--ink-soft); font-size: 13px; }

.package {
  background: var(--bg-alt);
  padding: clamp(80px, 10vw, 130px) 0;
}
.package h2 { max-width: 30ch; }
.pkg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 50px;
}
.pkg-card {
  background: var(--bg-card);
  padding: 48px 40px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
}
.pkg-card.featured { background: var(--ink); color: #d8dcd6; }
.pkg-card .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.pkg-card.featured .label { color: var(--accent-2); }
.pkg-card h3 { font-size: 36px; margin-bottom: 8px; }
.pkg-card.featured h3 { color: #f6f3ec; }
.pkg-card .desc { font-size: 14px; max-width: 38ch; margin: 0; color: var(--ink-soft); }
.pkg-card.featured .desc { color: #c4d0c5; }
.pkg-card .price {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 300;
  margin: 24px 0;
}
.pkg-card .price small { font-family: var(--font-body); font-size: 14px; color: var(--muted); display: block; }
.pkg-card.featured .price small { color: var(--accent-2); }
.pkg-card ul { list-style: none; padding: 0; margin: 0 0 32px; flex: 1; }
.pkg-card li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.pkg-card.featured li { border-color: #2a3a37; color: #c4d0c5; }
.pkg-card li::before { content: "✓ "; color: var(--accent); font-weight: 500; margin-right: 6px; }
.pkg-card.featured li::before { color: var(--accent-2); }
.pkg-card.featured .btn--light:hover { background: var(--accent); color: #fff; }

.preg-faq { padding: clamp(80px, 10vw, 130px) 0; }
.preg-faq h2 { max-width: 30ch; margin-bottom: 50px; }
.faq-item { border-top: 1px solid var(--line); padding: 24px 0; cursor: pointer; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 30px);
  gap: 24px;
}
.faq-q .plus { font-size: 24px; color: var(--accent); flex-shrink: 0; transition: transform .3s; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, margin .35s ease;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.65;
  padding-right: 48px;
}
.faq-item.open .faq-a { max-height: 300px; margin-top: 14px; }

@media (max-width: 880px) {
  .trim-row { grid-template-columns: 1fr; gap: 24px; }
  .faq-a { padding-right: 0; }
  .pkg-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PAGINA 404
   ============================================================ */
.error-hero { text-align: center; min-height: 50vh; display: flex; align-items: center; }
.error-hero h1 { margin-bottom: 20px; }
.error-hero .lead { margin: 0 auto 32px; }
body.maintenance-mode .error-hero { min-height: 100vh; }
body.maintenance-mode .error-hero h1 { font-size: clamp(34px, 5vw, 63px); }
body.maintenance-mode .error-hero .lead { font-size: clamp(13px, 1vw, 15px); }

/* ============================================================
   LIGHTBOX (galerie)
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(14, 31, 29, 0.92);
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: min(90vw, 1100px);
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(246, 243, 236, .1);
  border: 1px solid rgba(246, 243, 236, .3);
  cursor: pointer;
  border-radius: 999px;
  transition: background .2s;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(246, 243, 236, .2); }
.lightbox-close { top: 24px; right: 24px; width: 44px; height: 44px; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-close::before,
.lightbox-close::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 16px; height: 1px;
  background: #f6f3ec;
}
.lightbox-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.lightbox-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.lightbox-prev::before,
.lightbox-next::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 10px; height: 10px;
  border-style: solid;
  border-color: #f6f3ec;
  border-width: 0 1px 1px 0;
}
.lightbox-prev::before { transform: translate(-40%, -50%) rotate(135deg); }
.lightbox-next::before { transform: translate(-60%, -50%) rotate(-45deg); }
.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: rgba(246, 243, 236, .7);
}
body.lightbox-open { overflow: hidden; }

@media (max-width: 640px) {
  .lightbox { padding: 20px; }
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; }
}
