/* ============================================================
   Cabinet Dr. Victoria Burcovschi — diabethusi.ro
   Direcție: medical calm & clean.
   Verde emerald (brand, dominant) + accent mov din logo (parcimonios),
   pe hârtie alb-cald. Serif cald (Spectral) + IBM Plex Sans.
   ============================================================ */

:root {
  --bg:        #f7faf6;
  --bg-deep:   #edf4ef;
  --surface:   #ffffff;
  --surface-soft: #fbfdfb;
  --fg:        #17241e;
  --muted:     #5c6c64;
  --border:    #dbe7dd;

  --green:        #1f6a50;
  --green-strong: #124d39;
  --green-soft:   #e2f1e8;
  --plum:         #684777;
  --plum-soft:    #f1eaf4;
  --gold-soft:    #f4eddd;

  --whatsapp:     #25D366;
  --whatsapp-hover: #1da851;

  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(23,36,30,.05);
  --shadow-md: 0 18px 46px -26px rgba(23,36,30,.32);
  --maxw: 1140px;

  --font-display: 'Spectral', Georgia, 'Times New Roman', serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--fg);
  background:
    radial-gradient(circle at 8% -8%, rgba(31,106,80,.08), transparent 30%),
    linear-gradient(180deg, #fbfdfb 0%, var(--bg) 28%, #f5f8f4 100%);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--fg);
  text-wrap: balance;
}

p { text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tint { background: var(--bg-deep); }
.section--green { background: var(--green-strong); color: #eaf3ec; }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--green);
  display: inline-block;
}
.section--green .eyebrow { color: #bcdcc6; }
.section--green .eyebrow::before { background: #bcdcc6; }

.h-display { font-size: clamp(38px, 5.6vw, 66px); letter-spacing: -0.025em; }
.h-section { font-size: clamp(28px, 3.6vw, 42px); }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 56ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body);
  font-weight: 550;
  font-size: 16px;
  letter-spacing: 0.02em;
  padding: 14px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
  line-height: 1.25;
  height: 52px;
  box-sizing: border-box;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green); color: #fff; box-shadow: var(--shadow-md); border-color: var(--green); }
.btn--primary:hover { background: var(--green-strong); border-color: var(--green-strong); }
.btn--ghost { background: transparent; color: var(--green-strong); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--green); background: var(--surface); }
.btn--ondark { background: #fff; color: var(--green-strong); border-color: #fff; }
.btn--ondark:hover { background: #eaf3ec; border-color: #eaf3ec; }
.btn .ic { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; flex: none; }

/* WhatsApp button */
.btn--whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: var(--shadow-md);
  border-color: var(--whatsapp);
}
.btn--whatsapp:hover {
  background: var(--whatsapp-hover);
  border-color: var(--whatsapp-hover);
}
.btn--whatsapp .ic-wa {
  width: 20px; height: 20px; fill: #fff; flex: none;
}

/* Address / Maps button */
.btn--address {
  background: var(--surface);
  color: var(--fg);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.btn--address:hover {
  background: var(--bg-deep);
  border-color: var(--green);
}
.btn--address .ic {
  width: 18px; height: 18px; stroke: var(--green); fill: none; flex: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; max-width: 318px; flex: 1 1 292px; text-decoration: none; }
.brand .mark { width: 38px; height: 38px; flex: none; }
.brand .bn { min-width: 0; line-height: 1.1; }
.brand .bn b {
  font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em;
  display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.brand .bn span {
  display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}

.nav-links { display: flex; align-items: center; gap: 2px; flex: 0 1 auto; min-width: 0; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--fg);
  font-weight: 500; font-size: 15.5px;
  padding: 9px 12px; border-radius: var(--radius);
  transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--green-soft); color: var(--green-strong); }
.nav-links a.active { color: var(--green-strong); background: var(--green-soft); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius);
  width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--fg); stroke-width: 1.8; fill: none; }

/* ---------- Contact rail (telefon/adresă/programări) ---------- */
.rail {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.rail .cell { background: linear-gradient(180deg, var(--surface), var(--surface-soft)); padding: 22px 24px; display: flex; gap: 14px; align-items: flex-start; }
.rail .cell .ic { width: 22px; height: 22px; stroke: var(--green); fill: none; stroke-width: 1.6; flex: none; margin-top: 2px; }
.rail .cell .k { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.rail .cell .v { font-size: 18px; font-weight: 550; line-height: 1.28; margin-top: 3px; overflow-wrap: anywhere; }
.rail .cell .v a { text-decoration: none; }
.rail .cell .v a:hover { color: var(--green-strong); }
.rail .cell .sub { font-size: 14.5px; color: var(--muted); }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 20px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface), var(--surface-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--green), transparent 74%);
  opacity: .22;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #c9dccd; }
.card .badge {
  width: 46px; height: 46px; border-radius: 10px;
  background: var(--green-soft); border: 1px solid #d2e6d8; display: grid; place-items: center; margin-bottom: 18px;
}
.card .badge svg { width: 24px; height: 24px; stroke: var(--green); fill: none; stroke-width: 1.6; }
.card h3 { font-size: 22px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card .num { font-family: var(--font-display); font-size: 15px; color: var(--plum); font-weight: 600; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 13px; align-items: flex-start; }
.checklist .tick {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: var(--green-soft); display: grid; place-items: center; margin-top: 1px;
}
.checklist .tick svg { width: 15px; height: 15px; stroke: var(--green); fill: none; stroke-width: 2.2; }
.checklist b { font-weight: 600; }
.checklist span { color: var(--muted); font-size: 15px; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: var(--bg-deep); border-bottom: 1px solid var(--border); padding-block: clamp(48px, 7vw, 84px); }
.page-hero {
  background:
    linear-gradient(135deg, rgba(31,106,80,.08), transparent 38%),
    linear-gradient(180deg, #f8fbf7, var(--bg-deep));
}
.page-hero .crumb { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.page-hero h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.025em; margin-top: 14px; }
.page-hero p { margin-top: 16px; max-width: 60ch; color: var(--muted); font-size: clamp(17px, 1.8vw, 20px); }

/* ---------- Article page ---------- */
.article-body {
  max-width: 760px;
  margin-inline: auto;
  font-size: 17px;
  line-height: 1.78;
}
.article-body h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-top: 40px;
  margin-bottom: 16px;
}
.article-body h3 {
  font-size: clamp(20px, 2.4vw, 26px);
  margin-top: 32px;
  margin-bottom: 12px;
}
.article-body p {
  margin-bottom: 18px;
  color: var(--fg);
}
.article-body ul, .article-body ol {
  margin-bottom: 18px;
  padding-left: 24px;
}
.article-body li {
  margin-bottom: 8px;
  color: var(--muted);
}
.article-body .lead-in {
  font-size: clamp(19px, 2.2vw, 23px);
  color: var(--muted);
  font-family: var(--font-display);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 28px;
}
.article-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}
.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Footer ---------- */
.site-footer { background: #16241d; color: #c4d4cb; padding-block: 56px 30px; }
.site-footer a { color: #c4d4cb; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-grid h4 { color: #fff; font-family: var(--font-body); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; font-weight: 600; }
.foot-grid ul { list-style: none; display: grid; gap: 10px; font-size: 15px; }
.foot-brand b { font-family: var(--font-display); font-size: 20px; color: #fff; display: block; }
.foot-brand span { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: #8fa79a; }
.foot-brand p { margin-top: 14px; color: #9fb4a8; font-size: 15px; max-width: 34ch; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; font-size: 13.5px; color: #8fa79a; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Mobile sticky call ---------- */
.callbar { display: none; }

/* ---------- Map ---------- */
.map-frame { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); background: var(--surface); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; min-height: 360px; }

/* ---------- Quote / tagline flourish ---------- */
.tagline { font-family: var(--font-display); font-style: italic; color: var(--plum); font-size: clamp(22px, 3vw, 30px); font-weight: 500; }

/* ---------- Utilities ---------- */
.grid-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.stack-lg > * + * { margin-top: 22px; }
.stack-md > * + * { margin-top: 14px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead, .center .eyebrow { margin-inline: auto; }
.media { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-md); background: var(--surface); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.pill { display:inline-block; font-size:13px; font-weight:600; letter-spacing:.04em; color:var(--plum); background:var(--plum-soft); padding:6px 12px; border-radius:999px; }

.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.hero-actions .btn { flex: 1 1 0; min-width: 0; }
.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 620px;
}
.hero-meta span {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 84%, var(--green-soft));
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
  letter-spacing: .02em;
}
.portrait-card {
  position: relative;
  isolation: isolate;
}
.portrait-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent);
  z-index: 1;
}

.poster-feature {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(220px, .55fr);
  align-items: stretch;
  gap: 0;
  background: linear-gradient(135deg, var(--surface), #f2f7f1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.poster-feature__image {
  min-height: 360px;
  padding: clamp(12px, 2vw, 18px);
  background:
    linear-gradient(180deg, rgba(31,106,80,.08), transparent),
    var(--surface);
}
.poster-feature__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
  background: #fff;
}
.poster-feature__note {
  display: grid;
  align-content: end;
  gap: 10px;
  padding: clamp(22px, 3vw, 30px);
  border-left: 1px solid var(--border);
}
.poster-feature__note span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--plum);
}
.poster-feature__note b {
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--fg);
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav { gap: 12px; }
  .brand { max-width: 286px; }
  .nav-links a { padding-inline: 10px; font-size: 15px; }
  .nav-cta .btn--ghost { display: none; }
}

@media (max-width: 1020px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open + .mobile-menu { display: block; }
  /* Hide WhatsApp & Address from header — they're in the callbar & mobile menu */
  .nav-cta .btn--whatsapp,
  .nav-cta .btn--address { display: none; }
  /* Phone button: clean green circle */
  .nav-cta .btn--primary {
    width: 48px;
    height: 48px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    font-size: 0;
    gap: 0;
    box-shadow: 0 2px 12px rgba(31,106,80,.28);
  }
  .nav-cta .btn--primary .ic { width: 22px; height: 22px; }
  /* Burger: refined outlined circle */
  .nav-toggle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--surface);
    box-shadow: 0 1px 3px rgba(23,36,30,.06);
  }
  .nav-toggle svg { width: 22px; height: 22px; stroke-width: 1.6; }
}

@media (max-width: 940px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .grid-split { grid-template-columns: 1fr; }
  .rail { grid-template-columns: 1fr; }
  .hero-meta { grid-template-columns: 1fr; max-width: none; }
  .poster-feature { grid-template-columns: minmax(0, .8fr) minmax(210px, .6fr); }
}
@media (max-width: 720px) {
  .nav { height: 68px; gap: 10px; }
  .nav-cta .btn--primary { width: 44px; height: 44px; }
  .nav-cta .btn--primary .ic { width: 20px; height: 20px; }
  .nav-toggle { width: 44px; height: 44px; }
  .nav-toggle svg { width: 20px; height: 20px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .cards-4, .cards-3, .cards-2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .foot-brand { grid-column: 1 / -1; }
  .wrap { padding-inline: 18px; }
  .section { padding-block: 48px; }
  .page-hero { padding-block: 40px; }
  .h-display { font-size: clamp(34px, 10vw, 46px); }
  .h-section { font-size: clamp(26px, 8vw, 34px); }
  .lead { font-size: 17px; }
  .card { padding: 24px 22px; }
  .rail .cell { padding: 19px 18px; }
  .checklist[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .poster-feature { grid-template-columns: 1fr; }
  .poster-feature__image { min-height: 0; aspect-ratio: 3 / 4; }
  .poster-feature__note { border-left: 0; border-top: 1px solid var(--border); align-content: start; }
  .poster-feature__note b { max-width: none; }
  .callbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--surface); border-top: 1px solid var(--border);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    gap: 12px; box-shadow: 0 -4px 20px -12px rgba(27,42,35,.25);
  }
  .callbar .btn {
    flex: 1; justify-content: center; font-size: 15px; padding: 14px 12px;
    border-radius: 12px; font-weight: 550; letter-spacing: 0.01em;
  }
  .callbar .btn--primary { box-shadow: 0 2px 10px rgba(31,106,80,.22); }
  .callbar .btn--whatsapp { box-shadow: 0 2px 10px rgba(37,211,102,.22); }
  .callbar .btn--address { box-shadow: 0 1px 4px rgba(23,36,30,.06); }
  main { padding-bottom: 72px; }
  .article-body { font-size: 16px; }
  .article-body h2 { margin-top: 32px; }
}
@media (max-width: 460px) {
  .brand { gap: 10px; max-width: calc(100vw - 152px); }
  .brand .mark { width: 34px; height: 34px; }
  .brand .bn b { font-size: 16px; }
  .brand .bn span { display: none; }
  .nav { gap: 8px; }
  .nav-cta { gap: 6px; }
  .nav-cta .btn--primary { width: 44px; height: 44px; }
  .nav-cta .btn--primary .ic { width: 20px; height: 20px; }
  .nav-toggle { width: 44px; height: 44px; }
  .btn { width: 100%; justify-content: center; white-space: normal; }
  .hero-actions { gap: 8px; }
  .hero-actions .btn {
    width: auto; white-space: nowrap; font-size: 14px; padding: 12px 16px;
    height: 46px; flex: 0 0 auto;
  }
  .callbar .btn { width: auto; white-space: nowrap; }
  .foot-bottom { display: grid; }
}
@media (max-width: 370px) {
  .brand { max-width: calc(100vw - 108px); }
  .nav { gap: 6px; }
  .nav-cta .btn--primary { width: 40px; height: 40px; }
  .nav-cta .btn--primary .ic { width: 18px; height: 18px; }
  .nav-toggle { width: 40px; height: 40px; }
  .nav-toggle svg { width: 20px; height: 20px; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu { display: none; border-bottom: 1px solid var(--border); background: var(--surface); }
.mobile-menu ul { list-style: none; padding: 16px 24px 20px; display: grid; gap: 2px; }
.mobile-menu a { display: block; text-decoration: none; color: var(--fg); font-weight: 500; padding: 14px 16px; border-radius: 12px; font-size: 16px; }
.mobile-menu a:hover, .mobile-menu a.active { background: var(--green-soft); color: var(--green-strong); }
.mobile-menu .btn { margin: 6px 24px 4px; display: flex; justify-content: center; padding: 15px 20px; border-radius: 12px; font-size: 16px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
