/* danboicu.ro — Dan Boicu, terapeut osteopat
   Brand: docs/brand/identitate-de-brand.pdf
   Structure: rail editorial (sticky index left, content right; top bar on mobile) */

/* ---------- tokens ---------- */
:root {
  --bg: #10140F;
  --ink: #F2F4EE;
  --ink-2: #B9C0B3;          /* ink tinted toward sage, 9.6:1 on bg */
  --sage: #92b18c;
  --sage-hover: #a6c2a0;
  --sage-deep: #5f7a5a;
  --surface: #171c16;
  --rule: rgba(242, 244, 238, 0.14);

  --font-display: "Fredoka", "Poppins", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --rail-w: 260px;
  --gutter: clamp(24px, 5vw, 80px);
  --num-col: 4rem;
  --num-gap: 20px;
  --measure: 66ch;
  --content-w: 1120px;
  --topbar-h: 69px;   /* 12 + 44 + 12 + 1px rule */

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.6s;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
h1, h2, h3, p, figure, blockquote, ol, ul, table { margin: 0; }
ol, ul { padding: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
address { font-style: normal; }
table { border-collapse: collapse; width: 100%; }

/* ---------- base ---------- */
html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 100%;
  line-height: 1.65;
  scrollbar-color: var(--sage-deep) var(--bg);
  scrollbar-width: thin;
  accent-color: var(--sage);
  caret-color: var(--sage);
}
body {
  background: var(--bg);
  font-size: 1.0625rem;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--sage); color: var(--bg); }

/* Fredoka's Romanian glyphs (ș ț ă) only exist at the regular master, so headings use 400 to keep
   every letter the same weight; numerals carry no diacritics and stay at the brand's Light (300). */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  text-wrap: balance;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(2.125rem, 4vw, 3.25rem); }
h3 { font-size: 1.5rem; line-height: 1.15; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: var(--rule); transition: color 0.2s, text-decoration-color 0.2s; }
a:hover { color: var(--sage); text-decoration-color: var(--sage); }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: 16px; z-index: 100;
  padding: 10px 16px; background: var(--sage); color: var(--bg);
  border-radius: 999px; text-decoration: none; font-weight: 500;
  transform: translateY(-200%); transition: transform 0.2s;
}
.skip:focus { transform: none; }

/* placeholder text the owner must replace */
.ph {
  color: var(--ink-2);
  border-bottom: 1px dashed var(--sage);
  padding-bottom: 1px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 0.9375rem; font-weight: 500; line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease-out);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--sage); color: var(--bg); }
.btn--primary:hover { background: var(--sage-hover); color: var(--bg); }
.btn--ghost { border-color: var(--rule); color: var(--ink); }
.btn--ghost:hover { border-color: var(--sage); color: var(--sage); }

/* ---------- page grid ---------- */
body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "topbar" "main" "footer";
}
.rail { display: none; }
.topbar { grid-area: topbar; }
main { grid-area: main; }
.footer { grid-area: footer; }

main, .footer {
  width: 100%;
  max-width: calc(var(--content-w) + 2 * var(--gutter));
  padding-inline: var(--gutter);
}

@media (min-width: 1024px) {
  body {
    grid-template-columns: var(--rail-w) minmax(0, 1fr);
    grid-template-areas: "rail main" "rail footer";
  }
  .rail { display: flex; grid-area: rail; }
}

/* ---------- rail (desktop) ---------- */
.rail {
  position: sticky; top: 0;
  height: 100vh; height: 100dvh;
  flex-direction: column;
  padding: 40px 32px 36px;
  border-right: 1px solid var(--rule);
}
.rail__mark { width: 40px; color: var(--ink); transition: color 0.2s; }
.rail__mark:hover { color: var(--sage); }
.rail__index { position: relative; margin-top: auto; margin-bottom: auto; padding-left: 18px; }
.rail__list { list-style: none; }
.rail__item a {
  display: flex; align-items: baseline; gap: 12px;
  padding: 7px 0;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s;
}
.rail__num { font-family: var(--font-display); font-weight: 300; font-size: 0.8125rem; letter-spacing: 0.06em; color: var(--ink-2); min-width: 1.6em; transition: color 0.2s; }
.rail__item a:hover, .rail__item a:hover .rail__num { color: var(--ink); }
.rail__item a[aria-current="true"], .rail__item a[aria-current="true"] .rail__num { color: var(--sage); }
.rail__tick {
  position: absolute; left: 0; top: 0;
  width: 2px; height: 0;
  background: var(--sage);
  border-radius: 1px;
  opacity: 0;
  transition: transform 0.4s var(--ease-out), opacity 0.2s;
}
.rail__call { align-self: flex-start; }

/* ---------- top bar (mobile) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px var(--gutter);
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.topbar__logo img { height: 26px; width: auto; }
.topbar__call {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--rule); border-radius: 999px;
  color: var(--ink);
}
.topbar__call svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.topbar__call:hover { border-color: var(--sage); color: var(--sage); }
@media (min-width: 1024px) { .topbar { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--topbar-h));
  min-height: calc(100svh - var(--topbar-h));
  display: grid; align-content: center;
  padding-block: clamp(48px, 7vh, 96px);
  margin-inline-end: calc(-1 * var(--gutter));
  padding-inline-end: var(--gutter);
  overflow: hidden;
}
@media (min-width: 1024px) { .hero { min-height: 100vh; min-height: 100svh; } }
.hero__deco {
  position: absolute; right: -8%; top: 50%;
  width: min(62vw, 720px); height: auto;
  transform: translateY(-50%);
  color: var(--ink);
  opacity: 0.06;
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 60ch; }
.hero__logo { width: clamp(150px, 18vw, 220px); margin-bottom: clamp(32px, 5vh, 56px); }
.hero h1 {
  font-size: clamp(2.75rem, 6vw, 5.25rem);
  line-height: 1.0;
  letter-spacing: -0.015em;
  max-width: 13ch;
}
.hero__lead {
  margin-top: clamp(24px, 3vw, 36px);
  max-width: 46ch;
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  color: var(--ink-2);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(32px, 4vw, 48px); }

/* hero entrance: one orchestrated moment */
.rise { animation: rise var(--dur) var(--ease-out) both; }
.hero__logo.rise { animation-delay: 0ms; }
.hero h1.rise { animation-delay: 90ms; }
.hero__lead.rise { animation-delay: 180ms; }
.hero__cta.rise { animation-delay: 270ms; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

/* ---------- sections ---------- */
.section {
  padding-block: clamp(72px, 10vw, 128px);
  border-top: 1px solid var(--rule);
}
.section__head {
  display: grid;
  grid-template-columns: var(--num-col) minmax(0, 1fr);
  column-gap: var(--num-gap);
  align-items: baseline;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section__num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.125rem;
  letter-spacing: 0.06em;
  color: var(--sage);
}
.section__body { max-width: var(--measure); }
.section__body--wide { max-width: none; }
.section__caption { margin-top: 18px; color: var(--ink-2); font-size: 0.9375rem; }
@media (min-width: 768px) {
  .section__body, .section__caption { margin-left: calc(var(--num-col) + var(--num-gap)); }
}
@media (max-width: 767px) {
  :root { --num-col: 2.5rem; --num-gap: 12px; }
}

.prose > * + * { margin-top: 1.1em; }
.prose > .btn { margin-top: 28px; }
.prose__note { color: var(--ink-2); font-size: 0.9375rem; margin-top: 28px; }
.section__body > .prose__note { max-width: 56ch; }

/* ---------- despre ---------- */
.despre { display: grid; gap: clamp(32px, 5vw, 64px); max-width: none; }
@media (min-width: 720px) and (max-width: 1023px), (min-width: 1200px) {
  .despre { grid-template-columns: minmax(0, 1fr) clamp(240px, 30%, 340px); align-items: start; }
  .despre .prose { max-width: var(--measure); }
}

/* ---------- image slots ---------- */
.slot {
  position: relative;
  display: grid; place-items: center;
  aspect-ratio: 4 / 3;
  background: var(--surface);
  border: 1px dashed var(--rule);
  border-radius: 20px;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}
.slot--portrait { aspect-ratio: 4 / 5; }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot:has(img) { border-style: solid; }
.slot:has(img) .slot__label { display: none; }

/* ---------- video ---------- */
.lite-yt {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
}
.lite-yt__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
.lite-yt__poster:not([src]) { visibility: hidden; }
.lite-yt__play {
  position: absolute; left: 50%; top: 50%;
  width: 84px; height: 84px;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--sage);
  color: var(--bg);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.6);
  transition: background-color 0.2s, transform 0.3s var(--ease-out);
}
.lite-yt__play svg { width: 30px; height: 30px; fill: currentColor; margin-left: 3px; }
.lite-yt__play:hover { background: var(--sage-hover); transform: translate(-50%, -50%) scale(1.06); }
.lite-yt__play:focus-visible { outline-offset: 6px; }
.lite-yt__link { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); }
.lite-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- ce tratez ---------- */
.list-rules { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); }
.list-rules li { padding: 22px 0 24px; border-top: 1px solid var(--rule); }
.list-rules h3 { margin-bottom: 6px; }
.list-rules p { color: var(--ink-2); font-size: 0.9375rem; max-width: 40ch; }
@media (min-width: 640px) {
  .list-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 64px); }
}
#ce-tratez .section__body { max-width: none; }
#ce-tratez .list-rules { max-width: 68rem; }

/* ---------- ședința: a real sequence ---------- */
.steps { list-style: none; counter-reset: step; display: grid; gap: 36px 32px; grid-template-columns: minmax(0, 1fr); }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 3rem; line-height: 1;
  color: var(--sage);
  margin-bottom: 14px;
}
.steps h3 { font-size: 1.375rem; margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: 0.9375rem; }
@media (min-width: 560px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
#sedinta .section__body { max-width: none; }

/* ---------- păreri ---------- */
.quotes { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
.quotes blockquote { border-top: 1px solid var(--rule); padding-top: 24px; }
.quotes blockquote p {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.375rem; line-height: 1.35;
  text-wrap: pretty;
}
.quotes cite { display: block; margin-top: 18px; font-size: 0.875rem; color: var(--ink-2); }
@media (min-width: 720px) and (max-width: 1023px), (min-width: 1280px) { .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.quotes blockquote { max-width: 60ch; }
#pareri .section__body { max-width: none; }

/* ---------- prețuri ---------- */
.prices td { padding: 22px 0; border-top: 1px solid var(--rule); vertical-align: baseline; }
.prices tr:last-child td { border-bottom: 1px solid var(--rule); }
.prices__name { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1.2; }
.prices__desc { display: block; color: var(--ink-2); font-size: 0.9375rem; margin-top: 4px; }
.prices__amount {
  text-align: right; white-space: nowrap;
  font-family: var(--font-display); font-weight: 300; font-size: 1.75rem;
  color: var(--sage);
  font-variant-numeric: tabular-nums;
  padding-left: 24px;
}
.prices__amount .ph { color: var(--sage); }

/* ---------- galerie ---------- */
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) and (max-width: 1023px), (min-width: 1280px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- contact ---------- */
.contact { display: grid; gap: clamp(32px, 5vw, 64px); max-width: none; }
@media (min-width: 720px) and (max-width: 1023px), (min-width: 1200px) { .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.contact .prose { max-width: 40ch; }
.contact__list ul { list-style: none; }
.contact__list li {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}
.contact__list li:last-child { border-bottom: 1px solid var(--rule); }
.contact__list svg { flex: none; width: 22px; height: 22px; margin-top: 3px; fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.contact__list a { text-decoration: none; }
.contact__list a:hover .ph { color: var(--sage); }

/* ---------- footer ---------- */
.footer {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding-block: 48px 40px;
  border-top: 1px solid var(--rule);
}
.footer__logo { width: 120px; }
.footer__meta { color: var(--ink-2); font-size: 0.8125rem; line-height: 1.6; text-align: right; }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { animation: none; }
  .rail__tick, .btn, .lite-yt__play { transition: none; }
}
.no-motion .rise { animation: none; }
.no-motion .rail__tick { transition: opacity 0.2s; }
