/* Moldova Dental Journey — ti.ghpe.org
   System fonts on purpose: loading Google Fonts from Google's servers sends
   every visitor's IP address to a third party, which German courts have ruled
   a GDPR breach. A site for European patients should not start there. */
:root {
  --ink: #12233a;
  --ink-soft: #3d4f66;
  --muted: #5d6b7e;
  --bg: #fbf9f5;
  --surface: #ffffff;
  --line: #e4e0d7;
  --brand: #0f4c75;
  --brand-dark: #0a3657;
  --brand-tint: #e8f1f7;
  --accent: #c9952b;
  --accent-tint: #fbf3e2;
  /* Gold dark enough for small text: 5.6:1 on the cream background (WCAG AA). */
  --accent-text: #8a6315;
  --ok: #2f7a55;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(18,35,58,.06), 0 8px 24px rgba(18,35,58,.06);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--sans); }
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; font-weight: 600; color: var(--ink); margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(251,249,245,.94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 600; font-size: 1.12rem; line-height: 1.1; }
.logo small { display: block; font-family: var(--sans); font-weight: 500; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.logo svg { width: 38px; height: 38px; flex: none; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { white-space: nowrap; text-decoration: none; color: var(--ink-soft); font-size: .93rem; padding: 8px 10px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); background: var(--brand-tint); }
.langs { display: flex; gap: 2px; margin-left: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: #fff; }
.langs a { text-decoration: none; font-size: .78rem; font-weight: 600; color: var(--muted); padding: 4px 9px; border-radius: 999px; }
.langs a[aria-current="true"] { background: var(--brand); color: #fff; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer; }
@media (max-width: 1180px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 20px 18px; gap: 2px; }
  .nav.open { display: flex; }
  .nav a { padding: 11px 12px; font-size: 1rem; }
  .langs { margin: 10px 0 0; align-self: flex-start; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: .98rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-ghost:hover { background: var(--brand-tint); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Hero */
.hero { padding: 72px 0 64px; background: radial-gradient(1100px 420px at 85% -10%, var(--brand-tint), transparent 70%), radial-gradient(700px 300px at 0% 110%, var(--accent-tint), transparent 70%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 40em; }
.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: var(--shadow); }
.hero-card .card-h { font-size: 1.05rem; margin-bottom: 14px; }
.card-h { font-size: 1.2rem; }
.reviewed { font-size: .85rem; color: var(--muted); margin: 14px 0 0; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230f4c75' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3L15 7'/%3E%3C/svg%3E") center/12px no-repeat; }
.page-hero { padding: 56px 0 40px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--brand-tint), var(--bg)); }
.page-hero .lead { margin-bottom: 0; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } .hero { padding: 48px 0; } }

/* Sections */
section.block { padding: 64px 0; }
section.block.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head p { color: var(--muted); }
.grid { display: grid; gap: 20px; }
/* Grid items default to min-width:auto, so a wide table would stretch its
   column past the screen instead of scrolling inside .table-wrap. */
.grid > * { min-width: 0; }
.g-form { grid-template-columns: 1.4fr 1fr; align-items: start; }
@media (max-width: 860px) { .g-form { grid-template-columns: 1fr; } }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .icon { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; font-weight: 700; font-family: var(--serif); }
.card .icon svg { width: 22px; height: 22px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* Steps */
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding: 20px 22px 20px 74px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin: 0; }
.steps li::before { content: counter(s); position: absolute; left: 20px; top: 18px; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--serif); }
.steps h3 { margin-bottom: .25em; font-size: 1.08rem; }
.steps p { margin: 0; color: var(--ink-soft); }
.who { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; margin-left: 8px; vertical-align: 2px; }
.who.us { background: var(--brand-tint); color: var(--brand); }
.who.clinic { background: var(--accent-tint); color: #8a6315; }

/* Notices */
.notice { border-left: 4px solid var(--accent); background: var(--accent-tint); padding: 16px 20px; border-radius: 0 10px 10px 0; color: var(--ink-soft); margin: 0 0 1.2em; }
.notice strong { color: var(--ink); }
.notice.blue { border-color: var(--brand); background: var(--brand-tint); }
.disclaimer { font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 28px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 1.2em; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f5f2ec; font-weight: 600; font-size: .85rem; letter-spacing: .02em; color: var(--ink-soft); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--brand-tint); color: var(--brand); white-space: nowrap; }
.tag.p2 { background: var(--accent-tint); color: #8a6315; }
.tag.p3 { background: #eef0f3; color: var(--muted); }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; position: relative; padding-right: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.4rem; color: var(--brand); font-weight: 400; }
details[open] summary::after { content: "–"; }
details > div { padding-bottom: 16px; color: var(--ink-soft); }

/* Commitments */
.pillars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.pillars .card { padding: 20px; }
.pillars h3 { font-size: 1.02rem; }
.pillars p { font-size: .92rem; color: var(--muted); }
@media (max-width: 980px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }

/* Timeline */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.timeline .card { border-top: 4px solid var(--brand); }
.timeline .when { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.timeline ul { font-size: .93rem; color: var(--ink-soft); }
@media (max-width: 900px) { .timeline { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .timeline { grid-template-columns: 1fr; } }

/* Stats */
.stat { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--brand); line-height: 1.1; }
.stat-label { font-size: .88rem; color: var(--muted); }

/* Bars (lead targets) */
.bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 190px; padding: 12px 0 0; }
.bars div { background: linear-gradient(180deg, var(--brand), #2f6e98); border-radius: 6px 6px 0 0; position: relative; min-height: 4px; }
.bars div span { position: absolute; top: -20px; left: 0; right: 0; text-align: center; font-size: .72rem; font-weight: 600; color: var(--ink-soft); }
.bar-labels { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; font-size: .72rem; color: var(--muted); text-align: center; margin-top: 6px; }

/* Forms */
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { form .row { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
label .opt { font-weight: 400; color: var(--muted); }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.field { margin-bottom: 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .92rem; color: var(--ink-soft); }
.check input { width: 18px; height: 18px; margin-top: 3px; flex: none; }
.hp { position: absolute; left: -9999px; }
.form-result { display: none; margin-top: 16px; }
.form-result.show { display: block; }

/* CTA band */
.cta-band { background: var(--brand); color: #e8f1f7; border-radius: 22px; padding: 44px; display: grid; grid-template-columns: 1.5fr auto; gap: 24px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; color: #cfe0ec; }
.cta-band .btn-primary { background: #fff; color: var(--brand); }
.cta-band .btn-primary:hover { background: var(--accent-tint); }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; padding: 30px 24px; } }

/* Footer */
.site-footer { background: #0d1d31; color: #b9c5d4; margin-top: 64px; padding: 52px 0 28px; font-size: .92rem; }
.site-footer a { color: #dde6f0; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot-grid .foot-h { font-family: var(--sans); font-weight: 600; color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 12px; }
.foot-grid ul { list-style: none; padding: 0; }
.foot-brand { font-family: var(--serif); color: #fff; font-size: 1.15rem; margin-bottom: 6px; }
.foot-legal { border-top: 1px solid #22344b; margin-top: 30px; padding-top: 20px; font-size: .82rem; color: #8b9bb0; }
.foot-legal p { margin-bottom: .5em; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.toc a { font-size: .85rem; text-decoration: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
