/* ── Drips page (page-drips.php) ─────────────────────────────────
   Loaded after solene.css on that template only. */
.dr-ic { flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--sl-ivory); color: var(--sl-gold-deep); border: 1px solid var(--sl-sand); }
.dr-ic svg { display: block; }
.dr-gold { background: var(--sl-gold-ink-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Hero: text + line-art drip composition (no photo) */
.dr-hero { position: relative; overflow: hidden; isolation: isolate; padding-block: calc(var(--banner-h, 0px) + var(--sl-header-h) + 48px) 72px;
  background: radial-gradient(ellipse 55% 70% at 82% 45%, rgba(220, 183, 77, .16), transparent 70%), linear-gradient(180deg, #FBF8F2 0%, var(--sl-ivory) 100%); }
.dr-crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--sl-ink-soft); margin-bottom: 26px; }
.dr-crumbs a { color: var(--sl-ink-soft); text-decoration: none; }
.dr-crumbs a:hover { color: var(--sl-brown); }
.dr-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.dr-hero__text { display: grid; gap: 20px; justify-items: start; }
.dr-hero h1 { font-size: clamp(32px, 4vw, 54px); line-height: 1.08; letter-spacing: -.025em; font-weight: 600; color: var(--sl-ink); margin: 0; }
.dr-hero h1 em { font-style: normal; }
.dr-hero__lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--sl-ink); max-width: 58ch; margin: 0; }
.dr-hero__sub { font-size: 16px; line-height: 1.6; color: var(--sl-ink-soft); max-width: 58ch; margin: 0; }
.dr-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.dr-hero__text > * { animation: sl-fromRight .9s cubic-bezier(.2,.7,.2,1) backwards; }
.dr-hero__text > :nth-child(2) { animation-delay: .08s; } .dr-hero__text > :nth-child(3) { animation-delay: .16s; }
.dr-hero__text > :nth-child(4) { animation-delay: .24s; } .dr-hero__text > :nth-child(5) { animation-delay: .32s; }

.dr-art { position: relative; aspect-ratio: 1; max-width: 500px; justify-self: center; width: 100%; }
.dr-art__disc { position: absolute; inset: 9%; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #fff 0%, #FBF6EC 60%, #F4EAD8 100%); box-shadow: 0 40px 80px rgba(43, 31, 23, .12), inset 0 0 0 1px rgba(203, 156, 18, .18); }
.dr-art__ring { position: absolute; inset: 2%; border-radius: 50%; border: 1px dashed rgba(203, 156, 18, .45); animation: dr-spin 60s linear infinite; }
.dr-art__bag { position: absolute; left: 50%; top: 50%; width: 46%; transform: translate(-50%, -52%); }
.dr-art__drop { animation: dr-drip 2.4s cubic-bezier(.5, 0, .9, .5) infinite; transform-box: fill-box; transform-origin: center; }
.dr-liq { transform: translateY(46px); animation: dr-level 26s ease-in-out infinite; }
.dr-wave { animation: dr-wave 2.6s linear infinite; }
@keyframes dr-level { 0% { transform: translateY(46px); } 86% { transform: translateY(108px); } 90% { transform: translateY(108px); } 98%, 100% { transform: translateY(46px); } }
@keyframes dr-wave { to { transform: translateX(-40px); } }
.dr-orb { position: absolute; width: 17%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--sl-gold-deep); border: 1px solid var(--sl-sand); box-shadow: 0 16px 34px rgba(43, 31, 23, .1); animation: dr-float 6s ease-in-out infinite; }
.dr-orb .sl-i { width: 44%; height: 44%; }
.dr-orb--1 { left: 1%; top: 30%; } .dr-orb--2 { left: 12%; top: 4%; animation-delay: -1.2s; } .dr-orb--3 { right: 10%; top: 2%; animation-delay: -2.4s; }
.dr-orb--4 { right: 0; top: 40%; animation-delay: -3.6s; } .dr-orb--5 { left: 8%; bottom: 6%; animation-delay: -4.8s; }
.dr-badge { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 16px; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); box-shadow: 0 18px 40px rgba(43, 31, 23, .14); animation: dr-float 7s ease-in-out infinite; }
.dr-badge b { display: block; font-size: 15.5px; font-weight: 600; color: var(--sl-ink); line-height: 1.2; }
.dr-badge div > span { display: block; font-size: 12.5px; color: var(--sl-ink-soft); }
.dr-badge .dr-ic { width: 42px; height: 42px; }
.dr-badge--price { right: -4%; bottom: 10%; animation-delay: -2s; }
.dr-badge--price b { font-size: 20px; }
@keyframes dr-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes dr-spin { to { transform: rotate(360deg); } }
@keyframes dr-drip { 0% { transform: translateY(-6px) scale(.4); opacity: 0; } 25% { opacity: 1; transform: translateY(-6px) scale(1); } 80% { transform: translateY(20px) scale(1); opacity: 1; } 100% { transform: translateY(24px) scale(.8); opacity: 0; } }

/* How it works */
.dr-how { padding-block: clamp(48px, 6vw, 80px); }
.dr-how__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.dr-how__item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; padding: 24px; border-radius: 20px; background: var(--sl-bg); border: 1px solid var(--sl-sand); }
.dr-how__item .dr-ic { width: 56px; height: 56px; }
.dr-how__item small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--sl-gold-text); margin-bottom: 6px; }
.dr-how__item h2 { margin: 0 0 6px; font-size: 17px; line-height: 1.35; font-weight: 600; }
.dr-how__item p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--sl-ink-soft); }

/* Programs */
.dr-programs { background: var(--sl-ivory); }
.dr-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; align-items: end; margin-bottom: clamp(24px, 3vw, 36px); }
.dr-head__text { display: grid; gap: 12px; max-width: 640px; }
.dr-head h2, .dr-head p { margin: 0; }
.dr-head p { color: var(--sl-ink-soft); font-size: 17px; line-height: 1.6; }
.dr-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.dr-chip { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(58, 42, 31, .2); background: #fff; color: var(--sl-ink); font: 500 14px var(--sl-font); cursor: pointer; transition: background-color .25s, color .25s, border-color .25s, box-shadow .25s; }
.dr-chip span { font-size: 12px; color: var(--sl-ink-soft); }
.dr-chip:hover { border-color: var(--sl-gold-deep); box-shadow: 0 0 0 3px rgba(220, 183, 77, .2); }
.dr-chip[aria-pressed="true"] { background: var(--sl-brown); border-color: var(--sl-brown); color: #fff; }
.dr-chip[aria-pressed="true"] span { color: var(--sl-gold-light); }

.dr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.dr-card { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: 22px; background: var(--sl-bg); border: 1px solid var(--sl-sand); scroll-margin-top: calc(var(--sl-header-h) + 24px);
  transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .6s ease, border-color .6s ease, opacity .35s ease; }
.dr-card[hidden] { display: none; }
.dr-card.is-entering { animation: dr-in .5s cubic-bezier(.2,.7,.2,1) backwards; }
@keyframes dr-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.dr-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(43, 31, 23, .1); border-color: transparent; }
/* Gold ring that draws itself around the card on hover (same as the declaration page) */
@property --dr-sweep { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.dr-card::after { content: ""; position: absolute; inset: -1px; padding: 1.5px; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from 0deg, #AC7A05, #DCB74D calc(var(--dr-sweep) * .25), #F1E364 calc(var(--dr-sweep) * .5), #DCB74D calc(var(--dr-sweep) * .75), #AC7A05 var(--dr-sweep), transparent var(--dr-sweep));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  transition: --dr-sweep .9s cubic-bezier(.45, 0, .2, 1); }
.dr-card:hover::after { --dr-sweep: 360deg; }
.dr-card__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dr-card__top .dr-ic { width: 76px; height: 76px; transition: background-color .4s, color .4s, border-color .4s; }
.dr-card:hover .dr-card__top .dr-ic { background: var(--sl-brown); color: var(--sl-gold-light); border-color: var(--sl-brown); }
.dr-price { text-align: right; line-height: 1.1; }
.dr-price b { display: block; font-size: 24px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.dr-from { font-size: 15px; font-weight: 500; color: var(--sl-ink-soft); }
.dr-card__name small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sl-gold-text); margin-bottom: 6px; }
.dr-card h3 { margin: 0; font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; color: var(--sl-ink); }
.dr-card__tagline { margin: 6px 0 0; font-size: 15px; font-weight: 500; line-height: 1.45; color: var(--sl-ink); }
.dr-card__text { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--sl-ink-soft); }
.dr-comp { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--sl-sand); }
.dr-comp__label { display: block; font-size: 12.5px; font-weight: 600; color: var(--sl-ink); margin-bottom: 10px; }
.dr-comp ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.dr-comp li { padding: 6px 11px; border-radius: 14px; background: var(--sl-ivory); border: 1px solid var(--sl-sand); font-size: 13px; line-height: 1.2; color: var(--sl-ink); }
.dr-comp li.is-extra { background: transparent; border-style: dashed; color: var(--sl-ink-soft); }
.dr-tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: #FFF8E6; border: 1px solid #F0DDA6; font-size: 12px; font-weight: 600; color: var(--sl-gold-text); }
.dr-card .sl-btn { width: 100%; }

/* Doctor note (from the client's graphic) */
.dr-note { display: flex; align-items: center; gap: 22px; margin-top: 28px; padding: 22px 28px; border-radius: 22px; background: var(--sl-brown); color: var(--sl-on-dark); }
.dr-note .dr-ic { width: 64px; height: 64px; background: transparent; border: 1px solid rgba(241, 227, 100, .5); color: var(--sl-gold-light); }
.dr-note p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--sl-on-dark-soft); }
.dr-note b { color: #fff; font-weight: 600; }

/* Home visit cross-link */
.dr-home { padding-block: clamp(48px, 6vw, 80px); }
.dr-home__card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px 32px; align-items: center; padding: clamp(24px, 3.5vw, 40px); border-radius: 24px; background: var(--sl-bg); border: 1px solid var(--sl-sand); box-shadow: 0 24px 60px rgba(43, 31, 23, .06); }
.dr-home__card .dr-ic { width: 72px; height: 72px; }
.dr-home h2 { margin: 0 0 8px; font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; letter-spacing: -.01em; }
.dr-home p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--sl-ink-soft); max-width: 62ch; }

/* Final CTA */
.dr-cta { background: var(--sl-brown); color: var(--sl-on-dark); position: relative; overflow: hidden; isolation: isolate; }
.dr-cta::before { content: ""; position: absolute; z-index: -1; left: -140px; bottom: -160px; width: 520px; height: 520px; background: url(../images/solene-mark.svg) center / contain no-repeat; opacity: .07; filter: brightness(2); }
.dr-cta__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; }
.dr-cta h2 { margin: 0 0 12px; color: #fff; }
.dr-cta p { margin: 0; color: var(--sl-on-dark-soft); max-width: 60ch; font-size: 17px; line-height: 1.6; }
.dr-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Reveal on scroll */
.dr-reveal { opacity: 0; }
.dr-reveal.is-in { opacity: 1; animation: dr-rise .8s cubic-bezier(.2,.7,.2,1) backwards; }
@keyframes dr-rise { from { opacity: 0; transform: translateY(24px); } }
.dr-how__list .dr-reveal:nth-child(2) { animation-delay: .1s; } .dr-how__list .dr-reveal:nth-child(3) { animation-delay: .2s; }

@media (max-width: 1100px) { .dr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dr-head { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
  .dr-hero__grid, .dr-cta__in { grid-template-columns: minmax(0, 1fr); }
  .dr-art { max-width: 420px; margin-top: 8px; }
  .dr-how__list { grid-template-columns: minmax(0, 1fr); }
  .dr-home__card { grid-template-columns: minmax(0, 1fr); }
  .dr-filter { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * clamp(16px, 4vw, 40px)); padding-inline: clamp(16px, 4vw, 40px); scrollbar-width: none; }
  .dr-filter::-webkit-scrollbar { display: none; }
  .dr-chip { flex: none; }
}
@media (max-width: 640px) {
  .dr-grid { grid-template-columns: minmax(0, 1fr); }
  .dr-card { padding: 24px; }
  .dr-note { flex-direction: column; align-items: flex-start; }
  .dr-hero__actions .sl-btn { flex: 1 1 100%; }
  .dr-badge--price { right: 0; bottom: 4%; }
}
@media (prefers-reduced-motion: reduce) {
  .dr-hero__text > *, .dr-orb, .dr-badge, .dr-art__ring, .dr-art__drop, .dr-liq, .dr-wave { animation: none; }
  .dr-liq { transform: translateY(60px); }
  .dr-reveal { opacity: 1; animation: none; }
  .dr-card::after { transition: none; }
}
