/*
 * Content pages (Science, Training, About, For patients, Contact, Mesotherapy, Skincare,
 * Apply, Thank-you). Enqueued after the main stylesheet (assets/css/prodermis-uk.css) and
 * elementor-map.css. Pages built in elementor/pages/content.py.
 *
 * Rules: tokens only (var(--blue) and friends), the spacing scale in 02-DESIGN 3.2, radius by
 * role (photos and cards 18px, panels 12px), breakpoints 980px and 560px, nothing under 15px.
 * Light plus Medium pairing on section headings only (the .m span). Selectors for containers
 * are written as .e-con.name so they beat Elementor's own .e-con rules.
 */

/* ---------- Shared page parts ---------- */

/* Widgets carry no spacing of their own on these pages: margins are set below. */
.pg .elementor-widget:not(:last-child) { margin-block-end: 0; }

/* Blue band hero used by Science, Training and About. */
.e-con.page-hero { position: relative; overflow: hidden; padding: 72px 0 64px; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(36px, 3.6vw, 52px); }
.page-hero .band__lead { margin: 16px 0 0; max-width: 34em; text-align: left; font-size: 18px; font-weight: 300; opacity: .92; }

/* Section heading, body text and the plain page-section rhythm. */
.pg-h2 h2 { font-size: clamp(32px, 3.2vw, 44px); margin-bottom: 20px; }
.prose { max-width: 36em; }
.prose p { margin: 0 0 20px; color: var(--ink); }
.prose p:last-child { margin-bottom: 0; }
.prose.pg-lead p { font-size: 18px; font-weight: 300; color: var(--mute); }
.e-con.pg-sec { padding: 72px 0 0; }
.e-con.pg-sec--last { padding-bottom: 96px; }
.e-con.pg-sec:has(+ .compare),
.e-con.pg-sec:last-child { padding-bottom: 96px; }

/* Two columns: text and a panel, or two text blocks. */
.e-con.pg-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.e-con.pg-split > .e-con { min-width: 0; }
.e-con.pg-split--flip > .pg-split__text { order: 2; }

/* Panel on the light surface. */
.e-con.pg-panel { background: var(--mist); border-radius: var(--r-panel); padding: 36px; }
.pg-panel h3 { font-size: 24px; margin-bottom: 12px; }
.pg-panel p { color: var(--mute); }
.pg-dl { margin: 0; }
.pg-dl div { padding: 16px 0; border-top: 1px solid var(--hair-2); }
.pg-dl div:first-child { border-top: 0; padding-top: 0; }
.pg-dl div:last-child { padding-bottom: 0; }
.pg-dl dt { font-size: 22px; font-weight: 400; line-height: 1.2; color: var(--night); }
.pg-dl dd { margin: 4px 0 0; font-size: 16px; line-height: 1.5; color: var(--mute); }
.pg-words { list-style: none; margin: 0; padding: 0; }
.pg-words li { font-size: 28px; font-weight: 300; line-height: 1.2; padding: 16px 0; border-top: 1px solid var(--hair-2); color: var(--night); }
.pg-words li:first-child { border-top: 0; padding-top: 0; }
.pg-words li:last-child { padding-bottom: 0; }

/* Hairline list (practitioner questions, formulation points). */
.pg-list { list-style: none; margin: 0; padding: 0; }
.pg-list li { padding: 14px 0; border-top: 1px solid var(--hair-2); font-size: 17px; line-height: 1.5; color: var(--ink); }
.pg-panel .pg-list li:first-child { border-top: 0; padding-top: 0; }
.pg-panel .pg-list li:last-child { padding-bottom: 0; }
.prose .pg-list li { border-top-color: var(--hair); }
.prose .pg-list li:last-child { border-bottom: 1px solid var(--hair); }

/* Grid of short text blocks with a hairline on top. */
.e-con.pg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin-top: 40px; }
.e-con.pg-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.e-con.pg-grid__item { border-top: 1px solid var(--hair); padding: 24px 0 32px; }
.pg-grid__item h3 { font-size: 24px; margin-bottom: 8px; }
.pg-grid__item p { color: var(--mute); font-size: 16px; line-height: 1.5; }

/* Call-to-action strip. */
.e-con.cta-strip { background: var(--mist); border-radius: var(--r-photo); padding: 56px 64px; gap: 28px; }
.cta-strip h2 { max-width: 20em; margin-bottom: 0; }

/* Stack of cards (Training). The theme's card margins are not wanted inside it. */
.e-con.pg-stack { gap: 40px; }
.pg .course { margin: 0; }
.e-con.course { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 40px 48px; }
.e-con.course > .e-con { width: auto; flex: 1 1 320px; }
.e-con.academy { padding: 48px; }

/* ---------- For patients ---------- */
.e-con.pt-hero { position: relative; overflow: hidden; padding: 88px 0 56px; }
.pt-hero .wrap { position: relative; z-index: 1; }
.pt-hero h1 { font-size: clamp(36px, 3.6vw, 52px); margin-bottom: 20px; }
.pt-lead { font-size: 18px; font-weight: 300; color: var(--mute); max-width: 32em; }
.e-con.pt-sec { padding: 0 0 56px; }
.e-con.pt-sec--last { padding-bottom: 104px; }
.e-con.pt-sec__in { border-top: 1px solid var(--hair); padding-top: 40px; }
.pt-sec h2 { font-size: 30px; margin-bottom: 20px; }
.pt-sec .prose + .prose { margin-top: 20px; }
.pt-foot { margin-top: 20px; font-size: 15px; color: var(--mute); }

/* ---------- Contact ---------- */
.e-con.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 56px; align-items: start; padding: 72px 0 104px; }
.e-con.contact > .e-con { min-width: 0; }
.e-con.contact__panel { background: var(--mist); border-radius: var(--r-photo); padding: 36px; }
.contact__panel h1 { font-size: clamp(32px, 3.2vw, 44px); margin-bottom: 24px; }
.contact__list { list-style: none; margin: 0; padding: 0; font-size: 18px; }
.contact__list li { padding: 8px 0; }
.e-con.contact__company { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--hair-2); }
.contact__company p { color: var(--mute); font-size: 16px; }

/* ---------- Mesotherapy and Skincare ---------- */
.pill-tag { display: inline-block; background: rgba(255, 255, 255, .94); color: var(--blue); font: 500 15px/1 var(--font); padding: 8px 14px; border-radius: var(--r-pill); margin-bottom: 22px; }
.hero__lead--tight { margin-bottom: 12px; }
.hero__note--launch { font-size: 16px; opacity: .88; margin-bottom: 32px; max-width: 30em; }

/* Line-up: name, 40 by 2px accent rule, nothing else until approved one-liners exist. */
.e-con.lineup { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.e-con.lineup--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.e-con.lineup__item { --accent: var(--blue); border-top: 1px solid var(--hair); padding: 24px 0 32px; }
.lineup__item .elementor-heading-title { font-size: 24px; color: var(--night); }
.lineup__item .elementor-heading-title::after { content: ""; display: block; width: 40px; height: 2px; margin-top: 16px; background: var(--accent); }
.e-con.lineup__item--proskin { --accent: #CBA052; }
.e-con.lineup__item--probright { --accent: #F47D71; }
.e-con.lineup__item--probtx { --accent: #5BC2E7; }
.e-con.lineup__item--prolipo { --accent: #44D62C; }
.e-con.lineup__item--prohair { --accent: #D22730; }
.e-con.lineup__item--proacne { --accent: #00B7BD; }
.lineup-note { margin-top: 16px; font-size: 16px; color: var(--mute); }

/* Register interest panel with the form beside it. */
.e-con.sec--register { padding-top: 0; scroll-margin-top: 24px; }
.e-con.register { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; align-items: start; background: var(--mist); border-radius: var(--r-photo); padding: 56px; }
.e-con.register > .e-con { min-width: 0; }
.register h2 { font-size: clamp(32px, 3.2vw, 44px); margin-bottom: 12px; }
.register p { color: var(--mute); max-width: 26em; }

/* ---------- Apply and thank-you (theme grids need the extra selector to beat Elementor) ---------- */
.e-con.apply { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); min-height: 760px; }
.e-con.apply__aside { padding: 72px 56px; }
.e-con.apply__form { padding: 64px clamp(24px, 5vw, 72px); }
.apply__aside h1 { font-size: clamp(36px, 3.4vw, 48px); }
.apply__aside .perks { margin-bottom: 28px; }
.apply__who { font-size: 15px; font-weight: 300; opacity: .9; margin-bottom: 36px; max-width: 26em; }
.apply__aside .apply__help { max-width: none; margin-bottom: 0; opacity: .9; }
.e-con.pending { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 72px; padding: 88px 0 104px; align-items: start; }
.e-con.pending > .e-con { min-width: 0; }
.e-con.pending aside { padding: 36px; }
.pending .elementor-widget { margin-block-end: 0; }
.pending h1 { margin-bottom: 16px; }
.pending .lead { margin-bottom: 32px; }

/* ---------- 980px and below ---------- */
@media (max-width: 980px) {
	.page-hero .hex, .pt-hero .hex { display: none; }
	.e-con.page-hero { padding: 56px 0 48px; }
	.e-con.pg-sec { padding-top: 56px; }
	.e-con.pg-sec--last, .e-con.pg-sec:last-child, .e-con.pg-sec:has(+ .compare) { padding-bottom: 72px; }
	.e-con.pg-split, .e-con.pg-split--flip { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.e-con.pg-split--flip > .pg-split__text { order: 0; }
	.e-con.pg-panel { padding: 28px; }
	.e-con.pg-grid, .e-con.pg-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
	.e-con.cta-strip { padding: 40px 28px; }
	.e-con.course { flex-direction: column; align-items: flex-start; padding: 32px 28px; }
	.e-con.academy { padding: 32px 28px; }
	.e-con.pt-hero { padding: 56px 0 40px; }
	.e-con.pt-sec { padding-bottom: 40px; }
	.e-con.pt-sec--last { padding-bottom: 80px; }
	.e-con.contact { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 40px 0 72px; }
	.e-con.lineup, .e-con.lineup--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.e-con.register { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 40px 28px; }
	.e-con.apply { grid-template-columns: minmax(0, 1fr); min-height: 0; }
	.e-con.apply__aside { padding: 48px 28px; }
	.e-con.apply__form { padding: 40px var(--gutter); }
	.e-con.pending { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 56px 0 80px; }
}

/* ---------- 560px and below ---------- */
@media (max-width: 560px) {
	.e-con.pg-grid, .e-con.pg-grid--3, .e-con.lineup, .e-con.lineup--2 { grid-template-columns: minmax(0, 1fr); }
	.e-con.pg-grid__item { padding: 20px 0 24px; }
	.e-con.actions > .elementor-widget-button, .e-con.actions > .elementor-widget-button .elementor-button { width: 100%; }
	.e-con.actions > .elementor-widget-button .elementor-button-content-wrapper { width: 100%; justify-content: space-between; }
	.pg-words li { font-size: 24px; }
}

/* Science rows built straight inside a section: keep them in the 1240px column. */
.e-con.pg-sec > .e-con.pg-split { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); box-sizing: border-box; }

/* A portrait photo in the landscape intro frame fills it instead of sitting as a strip. */
.intro__photo--cover { position: relative; overflow: hidden; }
.intro__photo--cover .elementor-widget-image { position: static; }
.intro__photo--cover img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; object-position: center 70%; }

/* Terms and privacy (drafts) */
.legal-page h1 { font-size: clamp(36px, 3.6vw, 52px); margin-bottom: 24px; }
.legal { max-width: 46em; }
.legal .legal__h2 h2, .legal h2 { font-size: 24px; font-weight: 500; margin: 40px 0 12px; }
.legal ul { margin: 0 0 20px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal__table { overflow-x: auto; margin: 0 0 20px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal caption { text-align: left; font-weight: 500; margin-bottom: 8px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-top: 1px solid var(--hair); }
.legal thead th { color: var(--mute); font-weight: 500; }
