/* The home page as the hub: every treatment, the scar types, the questions,
   the prices and the way to the clinic live here, and each opens in place. */

/* ---------- behandlinger: exactly three cards across, more scroll ---------- */
.treat-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 36px; }
.treat-lead { margin-top: 16px; max-width: 54ch; color: var(--cream-2); font-size: 1.08rem; }
.treat .reel-btns { flex: none; }
.treat:not(.has-overflow) .reel-btns { display: none; }
.treat .reel li { flex: 0 0 calc((100% - 36px) / 3); }
.card { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; border-radius: 30px; overflow: hidden; background: var(--esp-2); color: var(--cream); text-align: left; cursor: pointer; box-shadow: 0 40px 80px -44px rgba(0, 0, 0, .9); transition: box-shadow .6s var(--ease), translate .6s var(--ease); }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.8) saturate(.96); transition: transform 1.6s var(--ease), filter .8s var(--ease); }
.card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18, 12, 9, .95) 0%, rgba(18, 12, 9, .45) 46%, rgba(18, 12, 9, 0) 72%); }
.card .r-cap { gap: 10px; }
.r-open { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 8px 16px 8px 18px; border-radius: 999px; font-weight: 700; font-size: .9rem; box-shadow: inset 0 0 0 1.5px rgba(227, 161, 90, .55); transition: background-color .3s, color .3s; }
.card:hover img, .card:focus-visible img { transform: scale(1.04); filter: brightness(.95) saturate(1.05); }
.card:hover .r-open, .card[aria-expanded="true"] .r-open { background: var(--ember); color: var(--esp-0); }
.card[aria-expanded="true"] { box-shadow: 0 0 0 2px var(--ember), 0 40px 90px -36px rgba(227, 161, 90, .55); translate: 0 -6px; }

/* the drawer opens under the row, one at a time */
.drawers { position: relative; }
.drawer { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); margin-top: 26px; padding: clamp(28px, 4vw, 56px); border-radius: 30px; background: linear-gradient(160deg, rgba(227, 161, 90, .12), rgba(227, 161, 90, .03) 55%), var(--esp-2); box-shadow: inset 0 0 0 1px rgba(227, 161, 90, .22), 0 50px 100px -56px rgba(0, 0, 0, .9); }
.drawer:focus { outline: none; }
.drawer h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 3vw, 2.7rem); line-height: 1.05; }
.drawer-lead { margin-top: 14px; font-size: 1.16rem; color: var(--cream); max-width: 52ch; }
.drawer-main > p:not(.drawer-lead) { margin-top: 18px; color: var(--cream-2); max-width: 56ch; }
.ticks { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--cream-2); }
.ticks li::before { content: ''; position: absolute; left: 0; top: .8em; width: 16px; height: 1.5px; border-radius: 2px; background: var(--ember); }
.ticks.quotes li { font-family: var(--serif); font-size: 1.12rem; color: var(--cream); }
.facts { margin: 0; display: grid; gap: 0; }
.facts div { display: grid; gap: 2px; padding: 14px 0; background: linear-gradient(90deg, rgba(227, 161, 90, .4), rgba(227, 161, 90, 0)) no-repeat 0 0 / 100% 1px; }
.facts dt { font-size: .86rem; font-weight: 600; color: var(--latte); }
.facts dd { margin: 0; font-family: var(--serif); font-size: 1.3rem; line-height: 1.25; }
.drawer-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 24px; }
.drawer-close { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(244, 233, 218, .07); color: var(--cream); cursor: pointer; transition: background-color .25s; }
.drawer-close span { width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6 6 18' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6 6 18' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.drawer-close:hover { background: rgba(227, 161, 90, .2); }

/* ---------- arvæv: rows that open in place ---------- */
.scar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; row-gap: 4px; align-items: center; width: 100%; padding: 22px 0; border: 0; background: none; color: var(--cream); text-align: left; cursor: pointer; }
.scar-row .t { grid-column: 1; }
.scar-row .chev { grid-column: 2; grid-row: 1 / 3; width: 1.5rem; height: 1.5rem; color: var(--ember); }
.scar-row:hover .t, .scar-row[aria-expanded="true"] .t { color: var(--ember-hi); }
.scar-more { padding: 0 0 26px; }
.voices { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 8px; }
.voices li { padding: 12px 18px; border-radius: 18px 18px 18px 6px; background: var(--esp-3); font-family: var(--serif); font-size: 1.05rem; line-height: 1.4; box-shadow: inset 0 0 0 1px rgba(227, 161, 90, .16); width: fit-content; max-width: 100%; }
.scar-more > p { color: var(--cream-2); max-width: 58ch; }
.more-actions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 14px 24px; }

/* ---------- questions: three, and the rest on request ---------- */
.chat-more { display: flex; flex-direction: column; gap: 14px; }
.chat-toggle { align-self: center; display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; padding: 12px 22px; border: 0; border-radius: 999px; background: rgba(244, 233, 218, .07); color: var(--cream); font-weight: 700; cursor: pointer; box-shadow: inset 0 0 0 1.5px rgba(227, 161, 90, .4); transition: background-color .25s; }
.chat-toggle:hover { background: rgba(227, 161, 90, .16); }
.chat-toggle .when-open, .chat-toggle[aria-expanded="true"] .when-closed { display: none; }
.chat-toggle[aria-expanded="true"] .when-open { display: inline; }

/* ---------- prices: one card, like a menu ---------- */
.price-card { padding: clamp(26px, 4vw, 48px); border-radius: 30px; background: var(--esp-2); box-shadow: inset 0 0 0 1px rgba(227, 161, 90, .16), 0 40px 80px -44px rgba(0, 0, 0, .9); }
.price-rows { margin: 0; }
.price-rows div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 15px 0; background: linear-gradient(90deg, rgba(227, 161, 90, 0), rgba(227, 161, 90, .3) 20%, rgba(227, 161, 90, .3) 80%, rgba(227, 161, 90, 0)) no-repeat 0 100% / 100% 1px; }
.price-rows div:last-child { background: none; }
.price-rows dt { display: grid; gap: 3px; }
.price-rows .len { font-weight: 700; color: var(--cream); }
.price-rows .fit { font-size: .92rem; color: var(--cream-3); max-width: 40ch; }
.price-rows dd { margin: 0; font-family: var(--serif); font-size: 1.75rem; line-height: 1; white-space: nowrap; font-variant-numeric: lining-nums; }
.price-sub { margin-top: 26px; font-family: var(--serif); font-size: 1.35rem; color: var(--ember-hi); }
.packs dd { font-size: 1.5rem; }
.price-note { margin: 4px 0 18px; font-size: .92rem; color: var(--cream-3); }

/* ---------- the closing band: Kontakt is its own page now ---------- */
.visit-band { text-align: center; background: radial-gradient(closest-side at 50% 60%, rgba(227, 161, 90, .14), rgba(227, 161, 90, 0)); }
.visit-band h2 { max-width: 18ch; margin: 0 auto; }
.visit-band > p { max-width: 52ch; margin: 16px auto 0; color: var(--cream-2); font-size: 1.1rem; }
.visit-band .cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; }

@media (max-width: 1023px) {
  .treat .reel li { flex-basis: calc((100% - 18px) / 2); }
  .drawer { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .treat-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  /* phones: the three cards stack, each one fully on screen */
  .treat .reel { flex-direction: column; overflow: visible; margin: 0; padding: 0; scroll-snap-type: none; }
  .treat .reel li { flex: none; }
  .card { aspect-ratio: 4 / 3; border-radius: 24px; }
  .card[aria-expanded="true"] { translate: none; }
  .drawer { padding: 24px 20px 28px; border-radius: 24px; }
  .drawer-close { top: 12px; right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .card img { transition: none; }
}
