/* ---------------------------------------------------------------------------
 * Authored service pages - richer layout vocabulary, built entirely from the site's
 * own design tokens (bronze/rose, chestnut, Hedvig headings) so it reads as native.
 *
 * Mobile-first: everything is a single column by default and opens up at >=768px.
 * All classes are namespaced `dj-` and never touch the migrated pages.
 * Every pill/stat/label carries a fact from the source document - no invented data.
 * ------------------------------------------------------------------------- */

:root {
  --dj-accent: var(--color--bronze);
  --dj-ink: var(--color--chestnut);
  --dj-body: var(--color--body);
  --dj-line: var(--color--chestnut-10);
  --dj-soft: var(--color--gray-2);
  --dj-rose: var(--color--gray-3);
  --dj-serif: var(--_typography---font-family--heading);
}

/* --- rhythm ----------------------------------------------------------------
   .service-single-content is a flex column with a built-in 100px gap, so dj-block only
   needs a small top-up to reach the reference page's ~140px section rhythm - not a full
   80px, which stacked on top of the container gap to make an oversized 180px void. */
.dj-block { margin-top: 1.5rem; }
.dj-block:first-child { margin-top: 0; }

/* Hero headline: match the reference page (4rem desktop / ~1.9rem mobile). The authored
   pages don't carry the per-page <style> embed that shrinks .service-detail-title, so
   without this they fall back to the global 5.5rem (88px) and dominate the hero. */
.dj-hero-h1 { font-size: clamp(1.9rem, 5vw, 4rem); line-height: 1.08; }

.dj-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--dj-accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dj-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dj-accent);
  flex: none;
}

.dj-h2 {
  margin: 0 0 0.75rem;
  color: var(--dj-ink);
  font-family: var(--dj-serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  line-height: 1.15;
}
.dj-lead {
  margin: 0;
  max-width: 62ch;
  color: var(--dj-body);
  font-size: 1.05rem;
  line-height: 1.6;
}
.dj-lead + .dj-lead { margin-top: 1rem; }

/* --- pull quote (the clinic's motto, set as a real quote) ------------------
   Explicit resets so it doesn't inherit Webflow's global filled/centered blockquote - 
   we want a light editorial rule that contrasts the filled panels around it. */
.dj-quote {
  margin: 2rem 0 0;
  padding: 0.5rem 0 0.5rem 1.5rem;
  border-left: 3px solid var(--dj-accent);
  border-radius: 0;
  background: transparent;
  text-align: left;
  color: var(--dj-ink);
  font-family: var(--dj-serif);
  font-weight: 400;
  font-size: clamp(1.35rem, 4vw, 2rem);
  line-height: 1.25;
}

/* --- signature: the diagnosis → cause → treatment chain ------------------- */
.dj-chain {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.dj-chain-step {
  flex: 1;
  background: #fff;
  border: 1px solid var(--dj-line);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
}
.dj-chain-k {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--dj-accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.dj-chain-v { color: var(--dj-ink); font-weight: 600; line-height: 1.35; }
.dj-chain-arrow {
  align-self: center;
  color: var(--dj-accent);
  font-size: 1.25rem;
  line-height: 1;
  transform: rotate(90deg);
}
@media (min-width: 900px) {
  .dj-chain { flex-direction: row; align-items: stretch; }
  .dj-chain-arrow { transform: none; align-self: center; }
}

/* --- category cards (title + compact list) -------------------------------- */
.dj-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.75rem;
}
@media (min-width: 600px) { .dj-cards { grid-template-columns: 1fr 1fr; gap: 1.1rem; } }
@media (min-width: 992px) { .dj-cards.dj-cards-3 { grid-template-columns: repeat(3, 1fr); } }

.dj-card {
  background: #fff;
  border: 1px solid var(--dj-line);
  border-radius: 18px;
  padding: 1.5rem;
}
.dj-card-title {
  margin: 0 0 0.85rem;
  color: var(--dj-ink);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
}
.dj-card-list { margin: 0; padding: 0; list-style: none; }
.dj-card-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--dj-body);
  font-size: 0.95rem;
  line-height: 1.5;
}
.dj-card-list li:last-child { margin-bottom: 0; }
.dj-card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dj-accent);
}
.dj-card p { margin: 0.75rem 0 0; color: var(--dj-body); font-size: 0.95rem; line-height: 1.55; }

/* --- split panels (aesthetic | medical, adults | children) ---------------- */
.dj-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.75rem;
}
@media (min-width: 768px) { .dj-split { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }

.dj-panel { border-radius: 22px; padding: 1.75rem; }
.dj-panel--soft { background: var(--dj-soft); border: 1px solid var(--dj-line); }
.dj-panel--rose { background: var(--dj-rose); }
.dj-panel-title {
  margin: 0 0 1rem;
  color: var(--dj-ink);
  font-family: var(--dj-serif);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.2;
}
.dj-panel-list { margin: 0; padding: 0; list-style: none; }
.dj-panel-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--dj-body);
  line-height: 1.5;
}
.dj-panel-list li:last-child { margin-bottom: 0; }
.dj-panel-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--dj-accent);
}

/* --- fact pills (each carries a datum from the document) ------------------
   Crisp white chips with a thin rose ring + soft shadow, rather than a pale filled blob. */
.dj-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.dj-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(45, 27, 37, 0.05), inset 0 0 0 1px rgba(212, 117, 158, 0.22);
  color: var(--dj-ink);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
}
.dj-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dj-accent);
  flex: none;
}
.dj-pill strong { color: var(--dj-accent); font-weight: 600; }

/* --- awards band (international recognition) ------------------------------- */
.dj-awards {
  margin-top: 1.75rem;
  background: var(--dj-ink);
  border-radius: 24px;
  padding: 1.75rem;
  color: #fff;
}
@media (min-width: 768px) { .dj-awards { padding: 2.5rem; } }
.dj-awards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}
@media (min-width: 768px) { .dj-awards-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem 2rem; } }
.dj-award {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding-top: 1rem;
  border-top: 1px solid #ffffff26;
  color: #fff;
  line-height: 1.45;
}
.dj-award-mark { color: var(--color--bronze); font-weight: 600; flex: none; }

/* --- numbered steps: reuse the site's .step-item, just guarantee spacing --- */
.dj-steps { margin-top: 1.75rem; }

/* --- contraindication / safety notes (warm caution, not alarm) ------------ */
.dj-note {
  margin-top: 1.75rem;
  background: var(--color--bronze-6);
  border: 1px solid var(--color--bronze-10);
  border-radius: 20px;
  padding: 1.5rem 1.6rem;
}
.dj-note-list { margin: 1rem 0 0; padding: 0; list-style: none; }
.dj-note-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.6rem;
  color: var(--dj-body);
  line-height: 1.5;
}
.dj-note-list li:last-child { margin-bottom: 0; }
.dj-note-list li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: var(--dj-accent);
}

/* --- authored hero: pack the content -------------------------------------
   .service-detail-left is space-between with a 150px row-gap (Webflow spreads the top copy
   and the bottom spec-list across the tall hero). Our authored hero has copy + pills + CTA
   as three children, so that spreads them into big voids. Group them at a sane rhythm. */
.service-detail-left.dj-hero-left {
  justify-content: center;
  row-gap: 1.25rem;
}
.service-detail-left.dj-hero-left .dj-pills { margin-top: 0.25rem; }
.service-detail-left.dj-hero-left .cta-direct { margin-top: 0.25rem; }

/* --- technology accordions (native <details>) ------------------------------
   The two dermatocosmetics/body-contouring pages carry long device chapters (16 and 4
   technologies). Rendered open they bury the rest of the page; rendered as accordions the
   copy is still in the HTML - so still indexed and still findable with ⌘F - while the page
   stays scannable. Same native <details> mechanism as the FAQ and the injectables list, so
   it needs no JavaScript and works with the keyboard for free. */
.dj-acc-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.dj-acc {
  background: #fff;
  border: 1px solid var(--dj-line);
  border-radius: 18px;
  overflow: hidden;
}
.dj-acc-sum {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.35rem;
  cursor: pointer;
  list-style: none;
}
.dj-acc-sum::-webkit-details-marker { display: none; }
.dj-acc-sum:focus-visible {
  outline: 3px solid rgba(212, 117, 158, 0.55);
  outline-offset: -3px;
  border-radius: 18px;
}
.dj-acc-n {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--dj-accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.dj-acc-t {
  display: block;
  margin: 0;
  color: var(--dj-ink);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
}
.dj-acc-st {
  display: block;
  margin-top: 0.3rem;
  color: var(--dj-body);
  font-size: 0.9rem;
  line-height: 1.45;
}
/* The glyph is generated, not typed, so the open state can flip it from CSS alone. */
.dj-acc-ic {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--color--bronze-10);
  color: var(--dj-accent);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s, color 0.25s;
}
.dj-acc-ic::before { content: "+"; }
.dj-acc[open] .dj-acc-ic { background-color: var(--dj-ink); color: #fff; }
.dj-acc[open] .dj-acc-ic::before { content: "–"; }
.dj-acc-body { padding: 0 1.35rem 1.5rem; }
.dj-acc-body > :first-child { margin-top: 0; }
.dj-acc-body .dj-lead { font-size: 1rem; }
.dj-acc-body .dj-sub {
  margin: 1.35rem 0 0.6rem;
  font-family: inherit;
  color: var(--dj-ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}
.dj-acc-body .dj-pills { margin-top: 1rem; }
.dj-acc-body .dj-card-list { margin-top: 0.5rem; }
.dj-acc-head { min-width: 0; }
/* Device shot inside an accordion: the vendor renders are on white, so they sit on a soft
   tile instead of floating on the card. */
.dj-acc-img {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 1.25rem 0 0;
  padding: 0.75rem;
  border: 1px solid var(--dj-line);
  border-radius: 16px;
  background: var(--dj-soft);
}

/* --- brand signature blocks ------------------------------------------------
   The source documents close several chapters with a signature refrain ("DOCTOR JOLIE - 
   Tehnologie. Diagnostic. Prevenție."). Dropping them lost the documents' own cadence, so
   they get a quiet centred block rather than being folded into body copy. */
.dj-sign {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--dj-line);
  text-align: center;
}
.dj-sign-name {
  margin: 0 0 0.55rem;
  color: var(--dj-ink);
  font-family: var(--dj-serif);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.dj-sign-meta {
  margin: 0;
  color: var(--dj-accent);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
}
.dj-sign p {
  margin: 0.5rem auto 0;
  max-width: 44ch;
  color: var(--dj-body);
  line-height: 1.6;
}
