/* Creare site clinică medicală / Medical clinic website design.
   Sits on top of styles.css and conversion-architecture.css (ca- components)
   and only adds the blocks this page needs. The accent is the site coral. */

body.cw-page { --good: #E27A6A; --bad: #8A8782; }

/* ── HERO TITLE: two lines across, the italic two on the left, copy on the right ── */
.cw-hero { display: grid; grid-template-columns: 1fr; margin-top: 22px; }
.cw-h1 { display: contents; }
.cw-h1 > span { display: block; font-family: var(--f-display); font-weight: 700; letter-spacing: -0.045em; line-height: 0.98; font-size: clamp(42px, 5.6vw, 84px); }
.cw-h1 > span > span { display: block; }
.cw-h1 .b { margin-top: 0.08em; font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.015em; font-size: clamp(42px, 5.4vw, 82px); line-height: 1.02; }
.cw-hero__note { margin: 18px 0 0; font-size: 15px; line-height: 1.55; color: rgba(245, 242, 235, 0.6); }
.cw-hero__side { margin-top: 30px; }
.cw-hero__side .ca-lede { margin-top: 0; font-size: 18px; }
.cw-hero__side .ca-cta-row { margin-top: 28px; }
@media (min-width: 900px) {
  .cw-hero { grid-template-columns: minmax(0, 1fr) minmax(360px, 460px); column-gap: clamp(40px, 6vw, 100px); }
  .cw-h1 .a { grid-column: 1 / -1; }
  .cw-h1 .b { grid-column: 1; grid-row: 2; }
  .cw-h1 > span > span { white-space: nowrap; }
  .cw-hero__side { grid-column: 2; grid-row: 2; align-self: end; margin-top: 0; padding-bottom: 0.2em; }
  .cw-hero__side .ca-cta-row { flex-wrap: nowrap; }
}

/* ── 4 stats: one is text (1,5s), keep it on one line ── */
.cw-page .ca-stat .v { white-space: nowrap; }
.cw-proofline { display: grid; gap: 1px; margin-top: 34px; border: 1px solid var(--hair-d); border-radius: 18px; overflow: hidden; background: var(--hair-d); }
.cw-proofline a { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; background: var(--ink); color: var(--bone); text-decoration: none; transition: background .25s; }
.cw-proofline a:hover { background: rgba(245, 242, 235, .045); }
.cw-proofline strong { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 28px; line-height: 1; color: var(--good); }
.cw-proofline span { font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: rgba(245, 242, 235, .58); }
@media (min-width: 720px) { .cw-proofline { grid-template-columns: repeat(3, 1fr); } }

/* ── ANATOMY: sticky browser showcase (desktop), swipe carousel (phones) ── */
.cw-show { margin-top: 64px; }
.cw-show__stage { display: none; }

/* shared: the screenshot in a small browser frame (carousel cards) */
.cw-shot { margin: 0; min-width: 0; border-radius: 18px; overflow: hidden; background: #161616; border: 1px solid rgba(245, 242, 235, 0.1); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5); }
.cw-shot__bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #1b1b1b; border-bottom: 1px solid rgba(245, 242, 235, 0.07); }
.cw-shot__bar i { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: rgba(245, 242, 235, 0.18); }
.cw-shot__bar span { flex: 1 1 auto; min-width: 0; margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; letter-spacing: 0.06em; text-transform: none; color: rgba(245, 242, 235, 0.5); }
.cw-shot__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.cw-shot__img { background: #fafafa; }
.cw-shot__img img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* phones and tablets: swipe carousel */
.cw-show__list { list-style: none; margin: 0 calc(var(--ca-pad) * -1); padding: 6px var(--ca-pad) 18px; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--ca-pad); -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.cw-show__list::-webkit-scrollbar { display: none; }
.cw-feat { flex: 0 0 auto; width: min(82%, 440px); min-width: 0; scroll-snap-align: start; display: flex; flex-direction: column; border: 1px solid var(--hair-d); border-radius: 26px; padding: 10px; background: linear-gradient(180deg, rgba(245, 242, 235, 0.04), rgba(245, 242, 235, 0) 60%); }
.cw-feat__body { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 18px 10px 10px; }
.cw-feat__n { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.05em; font-size: 34px; line-height: 0.9; color: transparent; -webkit-text-stroke: 1px rgba(226, 122, 106, 0.8); }
.cw-feat__tag { display: block; color: var(--good); }
.cw-feat h3 { margin: 8px 0 0; font-family: var(--f-display); font-weight: 700; letter-spacing: -0.03em; font-size: 24px; line-height: 1.08; }
.cw-feat p { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: rgba(245, 242, 235, 0.7); }
.cw-feat__src { display: block; margin-top: 14px; font-size: 10px; color: rgba(245, 242, 235, 0.42); }

/* desktop: sticky browser + scrolling list */
@media (min-width: 1000px) {
  .cw-show { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr); gap: clamp(48px, 6vw, 96px); align-items: start; }
  .cw-show__stage { display: block; position: sticky; top: calc(50vh - min(19vw, 300px) - 40px); }
  .cw-show__glow { position: absolute; left: 8%; right: 8%; top: 12%; bottom: 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(226, 122, 106, 0.22), rgba(226, 122, 106, 0)); filter: blur(30px); pointer-events: none; }
  .cw-win { position: relative; border-radius: 22px; overflow: hidden; background: #141414; border: 1px solid rgba(245, 242, 235, 0.14); box-shadow: 0 50px 110px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(0, 0, 0, 0.6); }
  .cw-win__bar { position: relative; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; background: #1a1a1a; border-bottom: 1px solid rgba(245, 242, 235, 0.08); }
  .cw-win__bar > i { width: 10px; height: 10px; border-radius: 50%; background: rgba(245, 242, 235, 0.16); }
  .cw-win__url { position: absolute; left: 50%; top: 8px; translate: -50% 0; display: flex; align-items: center; gap: 8px; max-width: 70%; height: 28px; padding: 0 16px; border-radius: 14px; background: rgba(245, 242, 235, 0.06); font-size: 11px; letter-spacing: 0.05em; text-transform: none; color: rgba(245, 242, 235, 0.72); white-space: nowrap; overflow: hidden; }
  .cw-win__url .lock { font-size: 7px; color: var(--good); }
  .cw-win__view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #101010; }
  .cw-win__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; clip-path: inset(100% 0 0 0); transform: scale(1.08); transition: clip-path 0.9s var(--ca-ease), transform 1.4s var(--ca-ease); z-index: 1; }
  .cw-win__img.is-prev { clip-path: inset(0 0 0 0); transform: scale(1); z-index: 2; transition: none; }
  .cw-win__img.is-on { clip-path: inset(0 0 0 0); transform: scale(1); z-index: 3; }
  .cw-show__meta { display: flex; align-items: center; gap: 18px; margin-top: 22px; padding: 0 4px; }
  .cw-show__count { color: rgba(245, 242, 235, 0.55); }
  .cw-show__count span { color: var(--bone); }
  .cw-show__rail { display: flex; flex: 1 1 auto; gap: 6px; }
  .cw-show__rail i { flex: 1 1 0; height: 2px; border-radius: 2px; background: rgba(245, 242, 235, 0.16); transition: background 0.5s, flex-grow 0.6s var(--ca-ease); }
  .cw-show__rail i.is-on { flex-grow: 3; background: var(--good); }
  .cw-show__src { color: rgba(245, 242, 235, 0.55); white-space: nowrap; }

  .cw-show__list { display: block; margin: 0; padding: 0; overflow: visible; }
  .cw-feat { width: auto; display: flex; align-items: center; min-height: 62vh; padding: 0; border: 0; border-radius: 0; background: none; opacity: 0.26; transition: opacity 0.6s var(--ca-ease); cursor: pointer; }
  .cw-feat:first-child { min-height: 50vh; align-items: flex-start; padding-top: 4vh; }
  .cw-feat.is-on { opacity: 1; }
  .cw-feat .cw-shot { display: none; }
  .cw-feat__body { grid-template-columns: 72px 1fr; gap: 6px; padding: 0; }
  .cw-feat__n { font-size: 56px; -webkit-text-stroke: 1px rgba(245, 242, 235, 0.35); transition: -webkit-text-stroke-color 0.5s; }
  .cw-feat.is-on .cw-feat__n { -webkit-text-stroke-color: var(--good); }
  .cw-feat h3 { font-size: clamp(30px, 2.6vw, 42px); }
  .cw-feat p { font-size: 17px; max-width: 40ch; }
}
@media (prefers-reduced-motion: reduce) {
  .cw-win__img, .cw-win__img.is-on { transition: none; animation: none; transform: none; }
}

/* ── SPEED ── */
.cw-speed { display: grid; gap: 56px; }
.cw-race { border: 1px solid var(--hair-d); border-radius: 28px; padding: clamp(26px, 3vw, 44px); }
.cw-lane + .cw-lane { margin-top: 30px; }
.cw-lane .h { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.cw-lane strong { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.04em; font-size: clamp(40px, 4.6vw, 64px); line-height: 1; color: rgba(245, 242, 235, 0.45); font-variant-numeric: tabular-nums; }
.cw-lane.good strong { color: var(--bone); }
.cw-lane .bar { margin-top: 14px; height: 14px; border-radius: 7px; background: rgba(245, 242, 235, 0.07); overflow: hidden; }
.cw-lane .bar i { display: block; height: 100%; width: calc(var(--w) * 100%); border-radius: 7px; background: rgba(245, 242, 235, 0.35); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.6s var(--ca-ease); }
.cw-lane.good .bar i { background: var(--good); box-shadow: 0 0 22px rgba(226, 122, 106, 0.6); transition-duration: 0.6s; }
.cw-race.is-in .bar i { transform: scaleX(1); }
.cw-race .cap { margin: 18px 0 0; }
.cw-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--hair-d); }
.cw-kpis .v { display: block; font-family: var(--f-display); font-weight: 700; letter-spacing: -0.04em; font-size: clamp(24px, 2.3vw, 36px); line-height: 1; color: var(--good); white-space: nowrap; }
.cw-kpis .k { display: block; margin-top: 8px; font-size: 13.5px; line-height: 1.45; color: rgba(245, 242, 235, 0.62); }
@media (min-width: 1000px) { .cw-speed { grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; } }
@media (prefers-reduced-motion: reduce) { .cw-lane .bar i { transform: none; transition: none; } }

/* ── PROJECTS ── */
.cw-cases { display: grid; gap: 18px; margin-top: 64px; }
.cw-case { display: flex; flex-direction: column; border: 1px solid var(--hair-d); border-radius: 28px; padding: 14px 14px 28px; color: var(--bone); text-decoration: none; transition: border-color 0.4s, background 0.4s; }
.cw-case:hover { border-color: var(--hair-d2); background: rgba(245, 242, 235, 0.025); }
.cw-case .img { display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10; background: #151515; }
.cw-case .img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ca-ease); }
.cw-case:hover .img img { transform: scale(1.04); }
.cw-case .meta { margin: 22px 14px 0; }
.cw-case .n { margin: 8px 14px 0; font-family: var(--f-display); font-weight: 700; letter-spacing: -0.035em; font-size: 34px; line-height: 1; }
.cw-case .v { margin: 14px 14px 0; font-family: var(--f-serif); font-style: italic; font-size: 30px; line-height: 1; color: var(--good); }
.cw-case .p { margin: 14px 14px 0; font-size: 15.5px; line-height: 1.6; color: rgba(245, 242, 235, 0.68); }
.cw-case .more { margin: auto 14px 0; padding-top: 22px; color: var(--bone); }
@media (min-width: 900px) { .cw-cases { grid-template-columns: repeat(3, 1fr); } }

/* ── PROCESS: five steps ── */
@media (min-width: 1300px) { .cw-page .cw-process { grid-template-columns: repeat(5, 1fr); } }

/* ── PRICE ── */
.cw-tiers { display: grid; gap: 18px; margin-top: 64px; }
.cw-tier { display: flex; flex-direction: column; border: 1px solid var(--hair-d); border-radius: 28px; padding: clamp(26px, 3vw, 44px); }
.cw-tier.is-main { border-color: rgba(226, 122, 106, 0.5); background: radial-gradient(120% 80% at 100% 0%, rgba(226, 122, 106, 0.1), rgba(226, 122, 106, 0) 60%); }
.cw-tier h3 { margin: 0; font-family: var(--f-display); font-weight: 700; letter-spacing: -0.035em; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.05; }
.cw-tier.is-main h3 { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; font-size: clamp(34px, 3.4vw, 50px); }
.cw-tier > p { margin: 14px 0 0; font-size: 16px; line-height: 1.6; color: rgba(245, 242, 235, 0.7); }
.cw-tier ul { list-style: none; margin: 24px 0 30px; padding: 0; }
.cw-tier li { position: relative; padding: 14px 0 14px 30px; border-top: 1px solid var(--hair-d); font-size: 15.5px; color: rgba(245, 242, 235, 0.85); }
.cw-tier li::before { content: '✓'; position: absolute; left: 0; top: 14px; color: var(--good); font-weight: 700; }
.cw-tier .btn { align-self: flex-start; margin-top: auto; }
.cw-factors { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cw-factors li { padding: 10px 16px; border: 1px solid var(--hair-d2); border-radius: 999px; color: rgba(245, 242, 235, 0.75); }
@media (min-width: 900px) { .cw-tiers { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .cw-page .ca-related { grid-template-columns: repeat(4, 1fr); } }

/* ── FAQ: inline link to Conversion Architecture ── */
.cw-page .ca-faq .a .cw-faq-link { color: var(--good); text-decoration: none; border-bottom: 1px solid rgba(226, 122, 106, 0.45); transition: border-color 0.3s, color 0.3s; }
.cw-page .ca-faq .a .cw-faq-link:hover { color: #F0A090; border-bottom-color: currentColor; }
