/*
 * Treatment page (Phase 3 plan 06) - Katie's styles for templates/treatment-page-body.php.
 * Loaded only when the plugin renders the treatment page (boon_treatment_template_active()).
 * Breakpoints copy Elementor's: 1366 / 971 / 767px.
 *
 * DM Sans: not imported here; boon-booking.php loads it (handle boon-dm-sans) on every page with
 * the booking window, which includes every treatment page.
 *
 * THE THEME PAINTS BARE ELEMENTS. Elementor's kit styles `.elementor-kit-25 button / h2 / p / a`
 * (specificity 0,1,1; button:hover 0,2,1) and Hello's reset.css styles every button (padding
 * .5rem 1rem; [type=button]:hover gets a #c36 background, 0,2,0). This file loads after both, so
 * `.btp h2`-style rules (0,1,1) win their ties, but a single class loses. Anything that styles a
 * button, or overrides the kit, needs `.btp .btp-...` and explicit :hover / :focus states.
 *
 * Still from the Customizer's Additional CSS (not in this file): `.promo-bar*` (the pricing grid's
 * "Book more. Save more." bar), the whole `.boon-opt-btn` family (plan 14: the closing CTA pair is
 * peach / deeper peach like every button) and the rule hiding the WhatsApp icon while the booking
 * window is open.
 *
 * The pricing background is live's image by absolute URL on purpose: staging has no copy of it.
 */

.btp{
	--btp-peach:#FDC7B0; --btp-coral:#F9A981; --btp-blush:#FEE5DB; --btp-ink:#272727; --btp-grey:#5C5C5C;
	--btp-max:1400px; --btp-pad:32px;
	font-family:"DM Sans",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
	font-size:16px; font-weight:300; line-height:1.5; color:var(--btp-grey);
	-webkit-font-smoothing:antialiased;
}
.btp *,.btp *::before,.btp *::after{box-sizing:border-box}
.btp img{max-width:100%;height:auto}
.btp h1,.btp h2,.btp h3,.btp h4{font-family:inherit;margin:0;color:var(--btp-ink)}
/* Type scale - matches the "Dynamic Treatment Page CSS" WPCode snippet the Elementor pages used,
   so the page looks the same whether or not that snippet still targets treatment pages */
.btp h2{font-size:38px;font-weight:500;line-height:1.2}
.btp h3{font-size:22px;font-weight:600}
.btp p{margin:0 0 .7em;font-size:16px;line-height:1.6;color:var(--btp-ink)}
.btp p:last-child{margin-bottom:0}
.btp-section{position:relative;padding:var(--btp-pad)}
.btp-wrap{max-width:var(--btp-max);margin:0 auto;position:relative;z-index:1}
.btp-center{text-align:center}

/* ---------- Hero ---------- */
.btp-hero{background:var(--btp-ink);padding:42px var(--btp-pad) 64px;text-align:center;overflow:hidden}
.btp-hero--img::before{content:"";position:absolute;inset:0;background:var(--btp-hero-img) center/cover no-repeat;opacity:.63;mix-blend-mode:overlay;pointer-events:none}
.btp-hero__col{max-width:900px;margin:0 auto;position:relative;z-index:1}
.btp-hero__pre{font-size:28px;font-weight:400;line-height:1;color:var(--btp-blush)}
.btp-hero h1{font-size:52px;font-weight:600;line-height:1.15;text-transform:none;color:#fff;margin:8px 0 16px}
.btp-hero__shape{position:absolute;left:0;right:0;bottom:-1px;height:31px;line-height:0;pointer-events:none;z-index:1}
.btp-hero__shape svg{width:100%;height:100%;display:block;transform:rotate(180deg)}
.btp-hero__shape path{fill:#fff}

/* ---------- Intro + media ---------- */
.btp-intro{padding:0}
.btp-intro .btp-wrap{display:flex;gap:3px}
.btp-intro__text{flex:0 0 66%;padding:var(--btp-pad);display:flex;flex-direction:column;gap:20px}
.btp-intro__media{flex:1 1 auto;padding:var(--btp-pad);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px}
.btp-intro h3{font-size:22px;font-weight:600;line-height:1.3;color:var(--btp-coral);text-transform:capitalize}
.btp-intro__body p{color:var(--btp-ink)}
.btp-intro__body .boon-opt-cta{margin-top:20px} /* 20px under the text (Katie, 2026-11-24: 11px looked cramped). It collapses with the paragraph's .7em bottom margin (block flow), so this number IS the gap; build 42's 10px left it at 11px. */
.btp-intro__media > *{width:100%}
.btp .hero-promo-hint{display:inline-block;width:auto;background:var(--btp-blush);border:1px solid var(--btp-peach);color:#C95F2E;font-size:13px;font-weight:400;letter-spacing:.04em;padding:6px 16px;border-radius:999px;line-height:1.5;text-align:center}
/* The hint's text arrives wrapped in a <p>, which `.btp p` (and the snippet's p rules, !important) would
   turn into 16px dark body text over two lines. The p takes the pill's own type instead. */
.btp .hero-promo-hint p{margin:0;font-size:inherit!important;font-weight:inherit;line-height:inherit!important;letter-spacing:inherit;color:inherit!important}

/* ---------- Offers ---------- */
.btp-offers{margin-top:-1em}

/* ---------- Pricing ---------- */
.btp-pricing{background:var(--btp-blush);margin-top:16px;padding:0;overflow:hidden}
.btp-pricing::before{content:"";position:absolute;inset:0;background:url("https://boonaesthetics.com/wp-content/uploads/2026/08/boonaesthetics-812.jpg") center/cover no-repeat;opacity:.18;pointer-events:none}
.btp-pricing .btp-wrap{padding:var(--btp-pad);display:flex;flex-direction:column;gap:20px}
.btp-pricing h2{margin-top:32px;text-transform:capitalize}
.btp-pricing__lead p:last-child{margin:0}
.btp-pricing__grid{margin-bottom:32px}

/* ---------- Video gallery ---------- */
.btp-gallery{background:#FEE5DB78}
.btp-gallery .btp-wrap{display:flex;flex-direction:column;gap:2em}

/* ---------- Reviews ---------- */
.btp-reviews{background:#fff}
.btp-reviews .btp-wrap{display:flex;flex-direction:column;gap:2em}
.btp-fade{opacity:0;transition:opacity 1.25s ease}
.btp-fade.is-in{opacity:1}

/* ---------- At a glance ---------- */
.btp-glance{background:var(--btp-ink)}
.btp-glance h2{color:var(--btp-blush);margin-bottom:16px}
.btp-glance__rule{height:1px;background:var(--btp-blush);border:0;margin:9px 0 29px}
.btp-glance__grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:20px}
.btp-glance__item{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;color:#fff}
.btp-glance__icon{width:64px;height:64px;padding:16px;color:var(--btp-peach)}
.btp-glance__icon svg{width:32px;height:32px;display:block}
.btp-glance__item h3{font-size:22px;font-weight:600;line-height:1.3;color:#fff;text-transform:capitalize}
.btp .btp-glance__item p{margin:0;color:#fff!important} /* !important beats the snippet's p{color:#272727!important} */

/* ---------- Closing CTA ---------- */
.btp-cta{background:linear-gradient(134deg,var(--btp-blush) 0%,var(--btp-peach) 100%)}
.btp-cta .btp-wrap{display:flex;flex-direction:column;align-items:center;text-align:center;gap:20px;padding:24px}
.btp-cta p{margin:0}
.btp-cta .boon-opt-cta{margin-top:0;justify-content:center}
/* The CTA sits on the blush/peach gradient, so its buttons carry the border
   (the family's --on-light treatment, applied by context; plan 14). */
.btp .btp-cta .boon-opt-btn{border-color:var(--btp-ink)!important}
.btp .btp-cta__micro{font-size:13px!important;line-height:1.4;letter-spacing:.01em;color:var(--btp-ink);opacity:.6;margin-top:10px}

/* ---------- FAQs ---------- */
/* Matches the rest of the page (Katie, 2026-11-18): the list runs the full width of .btp-wrap like
   the other sections, no eyebrow above the heading, and each question is a borderless card with the
   pricing cards' 15px corners and 25px padding, its question at the pricing card titles' 22px. */
.btp-faq{background:#fff;padding-top:64px;padding-bottom:64px}
.btp-faq .btp-wrap{display:flex;flex-direction:column;gap:20px}
.btp-faq__head{text-align:center}
.btp-faq__list{display:flex;flex-direction:column;gap:16px;line-height:1.65}
.btp-faq details{border:0;border-radius:15px;background:#FEE5DB78}
.btp-faq summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:25px;cursor:pointer;font-size:22px;font-weight:600;line-height:1.3;color:var(--btp-ink);border-radius:15px}
.btp-faq summary::-webkit-details-marker{display:none}
.btp-faq summary:focus-visible{outline:2px solid var(--btp-ink);outline-offset:2px}
.btp-faq__icon{position:relative;flex:0 0 32px;width:32px;height:32px;border-radius:50%;background:#fff;color:#B8562A;transition:background-color .2s ease}
.btp-faq__icon::before,.btp-faq__icon::after{content:"";position:absolute;left:10px;right:10px;top:50%;height:2px;margin-top:-1px;background:currentColor;border-radius:1px;transition:transform .25s ease}
.btp-faq__icon::after{transform:rotate(90deg)}
.btp-faq details[open] .btp-faq__icon,.btp-faq summary:hover .btp-faq__icon{background:var(--btp-peach)}
.btp-faq details[open] .btp-faq__icon::after{transform:rotate(0)}
.btp-faq__a{padding:0 25px 25px;color:var(--btp-ink)}
.btp-faq__a p:last-child{margin-bottom:0}

/* ---------- You may also like ---------- */
.btp-related{background:var(--btp-ink)}
.btp-related h2{color:#fff;margin-bottom:16px}
.btp-carousel{position:relative;--per:3;--gap:10px}
.btp-carousel__track{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));gap:var(--gap);overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;list-style:none;margin:0;padding:0}
.btp-carousel__track::-webkit-scrollbar{display:none}
/* Fewer cards than fit (two related treatments on a computer) sit in the middle, not on the left. Only
   while nothing scrolls: centring a track that overflows would put its first card out of reach. */
.btp-carousel:not(.is-scrollable) .btp-carousel__track{justify-content:center}
.btp-card{scroll-snap-align:start;background:#fff;border-radius:15px;overflow:hidden;display:flex;flex-direction:column}
.btp-card__img{display:block;overflow:hidden}
.btp-card__img img{display:block;width:100%;height:281px;object-fit:cover;transition:transform .3s ease}
.btp-card__img:hover img{transform:scale(1.1)}
.btp-card__body{padding:2em;display:flex;flex-direction:column;gap:20px;flex:1}
.btp-card h3{font-size:22px;font-weight:600;line-height:1.3}
.btp .btp-card h3 a{text-decoration:none;color:var(--btp-ink)}
.btp-card p{font-size:14px;margin:0;color:var(--btp-ink);flex:1}
.btp .btp-card__btn{display:flex;align-items:center;justify-content:center;gap:15px;padding:10px 20px;border-radius:5px;background:var(--btp-ink);color:#fff;border:1px solid var(--btp-ink);text-decoration:none;font-weight:400;transition:color .2s ease,border-color .2s ease}
.btp .btp-card__btn:hover,.btp .btp-card__btn:focus-visible{color:var(--btp-peach);border-color:var(--btp-blush)}
.btp-card__btn svg{width:10px;height:10px}
/* The arrows and dots are <button type="button">, which the theme paints (see the note at the top):
   every rule here is .btp-scoped, padding/font-weight are reset, and hover/focus are spelled out. */
.btp .btp-carousel__arrow{position:absolute;top:140px;transform:translateY(-50%);z-index:2;width:40px;height:40px;padding:0;border-radius:50%;border:0;background:rgba(39,39,39,.75);color:#fff;font-size:24px;font-weight:400;line-height:1;cursor:pointer;display:none;align-items:center;justify-content:center}
.btp .btp-carousel__arrow:hover,.btp .btp-carousel__arrow:focus{background:rgba(39,39,39,.75);color:#fff;border:0}
.btp-carousel__arrow--prev{left:6px}
.btp-carousel__arrow--next{right:6px}
.btp .btp-carousel.is-scrollable .btp-carousel__arrow{display:flex}
.btp-carousel__dots{display:flex;justify-content:center;gap:0;margin-top:21px;min-height:34px}
.btp .btp-carousel__dots button{position:relative;width:34px;height:34px;border:0;border-radius:0;padding:0;background:none;cursor:pointer}
.btp .btp-carousel__dots button:hover,.btp .btp-carousel__dots button:focus{background:none;border:0}
.btp-carousel__dots button::before{content:"";position:absolute;top:50%;left:50%;width:9px;height:9px;margin:-4.5px 0 0 -4.5px;border-radius:50%;background:var(--btp-peach);opacity:.4;transition:opacity .2s ease}
.btp-carousel__dots button[aria-current="true"]::before{opacity:1}
.btp .btp-carousel__dots button:focus-visible{outline:2px solid var(--btp-peach);outline-offset:-4px;border-radius:50%;box-shadow:none}

/* ---------- Responsive (Elementor breakpoints 1366 / 971 / 767) ---------- */
/* Checked against live's Elementor page (Hydrafacial, 2026-09-28) at 1600 / 1280 / 768 / 375px and matched
   where Katie's first version differed (Severin's call): at 1366 and below the hero text runs full width
   inside 32px (24px on phones) and the video stays a centred 420px box; on phones the page keeps 24px
   sides, a left-aligned intro and At a Glance one per row. */
@media (max-width:1366px){
	.btp-hero__col{max-width:none;padding:0 var(--btp-pad)}
	.btp-intro .btp-wrap{flex-direction:column}
	.btp-intro__text,.btp-intro__media{flex-basis:auto;width:100%}
	.btp-intro__media{align-self:center;max-width:calc(420px + 2 * var(--btp-pad))}
	.btp-offers{margin-top:0;padding:0 1em}
	.btp-glance__grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:971px){
	.btp{--btp-max:1024px}
	.btp-carousel{--per:2}
}
@media (max-width:767px){
	/* Headings a little smaller on phones (Katie, 2026-10-07; Severin chose 30 / 26 on 2026-10-14; were 35 / 30).
	   !important because the WPCode snippet "Dynamic Treatment Page CSS", still printed on treatment pages,
	   sets a bare h1 / h2 size with !important here; a class with !important outranks it. */
	.btp-hero h1{font-size:30px!important;line-height:1.2!important}
	.btp h2{font-size:26px!important}
	.btp p{font-size:15px}
	.btp{--btp-pad:24px}
	.btp-hero__pre{font-size:22px}
	.btp-pricing .btp-wrap{padding:16px}
	.btp-glance__grid{grid-template-columns:minmax(0,1fr)}
	.btp-faq{padding-top:48px;padding-bottom:48px}
	.btp-faq summary{padding:18px;font-size:18px}
	.btp-faq__a{padding:0 18px 18px}
	.btp-carousel{--per:1}
}
@media (prefers-reduced-motion:reduce){
	.btp *{transition:none!important;animation:none!important}
	.btp-carousel__track{scroll-behavior:auto}
}
