/*
Theme Name: Bridal Makeup Artist
Description: Clean, elegant theme for the Bridal Makeup Artist online course. Works with the Bridal Makeup Artist Membership plugin.
Version: 1.0.0
Author: Bridal Makeup Artist
Requires PHP: 8.0
Text Domain: bridal-glow
*/

:root {
	--ivory: #fbf7f3;
	--paper: #ffffff;
	--blush: #f4e6e1;
	--blush-2: #ecd5ce;
	--rose: #a85d6a;
	--rose-dark: #8a4553;
	--champagne: #c9a97f;
	--ink: #2a1f23;
	--muted: #6d5d62;
	--line: #eaded8;
	--success: #3f7a5a;
	--error: #a23b3b;
	--radius: 14px;
	--radius-lg: 22px;
	--shadow: 0 1px 2px rgba(42, 31, 35, .04), 0 8px 28px rgba(42, 31, 35, .06);
	--serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
	--sans: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;
	--wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--ivory);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--rose-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rose); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1.1em; }

:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text, .bga-hp {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 780px; }
.container--wide-narrow { max-width: 980px; }
.container--form { max-width: 520px; }

.eyebrow, .bga-eyebrow {
	font-family: var(--sans);
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--rose);
	margin: 0 0 .9em;
}

.icon { flex: none; vertical-align: -3px; }

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	font: 500 1rem/1 var(--sans);
	padding: .95em 1.5em;
	border-radius: 999px;
	border: 1px solid transparent;
	text-decoration: none;
	cursor: pointer;
	transition: background .2s, color .2s, border-color .2s, transform .2s;
	white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--rose); color: #fff; }
.btn--primary:hover { background: var(--rose-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--blush-2); }
.btn--ghost:hover { border-color: var(--rose); color: var(--rose-dark); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { color: var(--rose-dark); }
.btn--sm { padding: .7em 1.15em; font-size: .92rem; }
.btn--lg { padding: 1.1em 1.8em; font-size: 1.05rem; }
.btn--block { display: flex; width: 100%; }

.link-arrow { display: inline-flex; gap: .4em; align-items: center; font-weight: 500; text-decoration: none; }

/* ---------- Header ---------- */

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(251, 247, 243, .92);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__mark { color: var(--rose); }
.brand__text, .brand--footer { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: -.01em; }
.brand em, .brand--footer em { font-style: italic; color: var(--rose); font-weight: 500; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav .menu { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-nav .menu a, .nav-login { color: var(--ink); text-decoration: none; font-size: .98rem; }
.site-nav .menu a:hover, .nav-login:hover, .site-nav .current-menu-item > a { color: var(--rose); }
.site-nav__actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
	position: absolute; left: 11px; width: 22px; height: 1.5px; background: var(--ink); content: ""; transition: transform .25s, top .25s, opacity .2s;
}
.nav-toggle__bar { top: 21px; }
.nav-toggle__bar::before { left: 0; top: -7px; }
.nav-toggle__bar::after { left: 0; top: 7px; }
.nav-open .nav-toggle__bar { background: transparent; }
.nav-open .nav-toggle__bar::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle__bar::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 960px) {
	.nav-toggle { display: block; }
	.site-nav {
		position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 18px;
		background: var(--ivory); padding: 20px 24px 28px; border-bottom: 1px solid var(--line);
		transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
	}
	.nav-open .site-nav { transform: none; opacity: 1; visibility: visible; }
	.site-nav .menu { flex-direction: column; gap: 4px; }
	.site-nav .menu a { display: block; padding: 10px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
	.site-nav__actions { justify-content: space-between; }
}

/* ---------- Hero ---------- */

.hero { padding: 64px 0 80px; background: radial-gradient(1200px 500px at 85% 0%, var(--blush) 0%, transparent 60%); }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero h1 { max-width: 14ch; }
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 26px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: .95rem; }
.hero__points .icon { color: var(--rose); }
.hero__media { position: relative; margin: 0; }
.hero__media img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; border-radius: 200px 200px var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow); }
.hero__badge {
	position: absolute; left: -24px; bottom: 36px; background: #fff; padding: 14px 20px; border-radius: 999px; box-shadow: var(--shadow);
	font-size: .95rem; color: var(--muted);
}
.hero__badge strong { color: var(--ink); font-family: var(--serif); font-size: 1.3rem; }

@media (max-width: 900px) {
	.hero { padding: 36px 0 56px; }
	.hero__inner { grid-template-columns: 1fr; gap: 36px; }
	.hero__media { max-width: 460px; }
	.hero__badge { left: 12px; }
}

/* ---------- Sections ---------- */

.section { padding: 88px 0; }
.section--tint { background: var(--paper); border-block: 1px solid var(--line); }
.section--page { padding-top: 48px; }
.section__head { max-width: 640px; margin: 0 0 44px; }
.section__head p:last-child { color: var(--muted); }
.section__head--row { display: flex; justify-content: space-between; align-items: end; max-width: none; gap: 24px; }
.section__title { margin-bottom: 32px; }

@media (max-width: 700px) { .section { padding: 60px 0; } }

.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--3 { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.feature h3 { font-size: 1.35rem; }
.feature h3::before { content: ""; display: block; width: 28px; height: 2px; background: var(--champagne); margin-bottom: 18px; }
.feature p { color: var(--muted); margin: 0; font-size: .98rem; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* Curriculum */
.curriculum { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.curriculum__item { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 28px 0; border-top: 1px solid var(--line); }
.curriculum__num { font-family: var(--serif); font-size: 1.9rem; color: var(--champagne); line-height: 1; }
.curriculum h3 { font-size: 1.5rem; margin-bottom: .3em; }
.curriculum h3 a { color: inherit; text-decoration: none; }
.curriculum h3 a:hover { color: var(--rose); }
.curriculum p { color: var(--muted); font-size: .97rem; margin-bottom: .7em; }
.curriculum__lessons { list-style: none; margin: 0; padding: 0; font-size: .97rem; }
.curriculum__lessons li { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.curriculum__lessons a { color: var(--ink); text-decoration: none; }
.curriculum__lessons a:hover { color: var(--rose); }
.lock-inline { color: var(--muted); display: inline-flex; }
.lock-inline .icon { width: 15px; height: 15px; }
@media (max-width: 820px) { .curriculum { grid-template-columns: 1fr; } }

/* Spotlight */
.spotlight { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.spotlight__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.spotlight__copy p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
@media (max-width: 820px) { .spotlight { grid-template-columns: 1fr; gap: 28px; } }

/* Audience */
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.audience__card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.audience__card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.audience__card h3, .audience__card p { padding: 0 28px; }
.audience__card h3 { margin-top: 26px; }
.audience__card p { color: var(--muted); padding-bottom: 10px; }
@media (max-width: 760px) { .audience { grid-template-columns: 1fr; } }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: s; }
.steps li { padding: 30px; border-radius: var(--radius-lg); background: var(--ivory); border: 1px solid var(--line); }
.steps span { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blush); color: var(--rose-dark); font-family: var(--serif); font-size: 1.3rem; font-weight: 600; margin-bottom: 18px; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */

.lesson-card, .post-card {
	display: flex; flex-direction: column;
	background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
	transition: transform .25s, box-shadow .25s;
}
.lesson-card:hover, .post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.lesson-card__media, .post-card__media { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--blush); overflow: hidden; }
.lesson-card__media img, .post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.lesson-card.is-locked .lesson-card__media img { filter: saturate(.75); }
.lesson-card__num {
	position: absolute; left: 16px; bottom: 14px; font-family: var(--serif); font-size: 2.1rem; line-height: 1; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.35);
}
.lesson-card__body, .post-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.lesson-card__body .eyebrow, .post-card__body .eyebrow { margin-bottom: .6em; font-size: .72rem; }
.lesson-card__title, .post-card__title { font-size: 1.45rem; margin-bottom: .4em; }
.lesson-card__title a, .post-card__title a { color: var(--ink); text-decoration: none; }
.lesson-card__title a:hover, .post-card__title a:hover { color: var(--rose); }
.lesson-card__excerpt, .post-card__body p:last-child { color: var(--muted); font-size: .96rem; }
.lesson-card__meta { margin: auto 0 0; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .9rem; }
.lesson-card__meta .done { margin-left: auto; color: var(--success); display: inline-flex; gap: 4px; align-items: center; }

.tag {
	display: inline-flex; align-items: center; gap: 5px;
	font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
	padding: 6px 11px; border-radius: 999px; background: #fff; color: var(--ink);
}
.lesson-card__media .tag { position: absolute; top: 14px; right: 14px; }
.tag--free { background: var(--rose); color: #fff; }
.tag--lock { background: rgba(255,255,255,.94); color: var(--ink); }
.tag--lock .icon { width: 13px; height: 13px; }
.tag--inline { padding: 3px 9px; font-size: .68rem; background: var(--blush); color: var(--rose-dark); }
.tag--inline.tag--free { background: var(--rose); color: #fff; }

/* ---------- Page hero / breadcrumbs ---------- */

.page-hero { padding: 48px 0 40px; background: radial-gradient(900px 340px at 90% -10%, var(--blush) 0%, transparent 65%); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.3rem); max-width: 22ch; }
.page-hero__lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.page-hero--center { text-align: center; border-bottom: 0; padding-top: 64px; }
.page-hero--center h1 { margin-inline: auto; }
.page-hero--center .page-hero__actions { justify-content: center; }
.page-hero--article h1 { max-width: none; }
.article__date { color: var(--muted); font-size: .93rem; }

.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 22px; font-size: .88rem; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--blush-2); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--rose); }

.progress-inline { display: flex; align-items: center; gap: 16px; margin-top: 20px; max-width: 520px; }
.progress-inline p { margin: 0; color: var(--muted); font-size: .93rem; white-space: nowrap; }
.bga-progress { flex: 1; height: 8px; border-radius: 999px; background: var(--blush); overflow: hidden; }
.bga-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--rose), var(--champagne)); border-radius: inherit; }

.module-block + .module-block { margin-top: 72px; }
.module-block__head { margin-bottom: 26px; max-width: 720px; }
.module-block__head h2 a { color: inherit; text-decoration: none; }
.module-block__head h2 a:hover { color: var(--rose); }
.module-block__head p { color: var(--muted); }

.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.topic-chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--blush-2); background: var(--paper); color: var(--ink); text-decoration: none; font-size: .92rem; }
.topic-chip:hover { border-color: var(--rose); color: var(--rose-dark); }
.topic-chip.is-active { background: var(--rose); border-color: var(--rose); color: #fff; }
.page-hero .eyebrow a { color: inherit; text-decoration: none; }

.search-inline { display: flex; gap: 10px; max-width: 480px; margin-top: 22px; }
.search-inline input { flex: 1; }

/* ---------- Lesson ---------- */

.lesson__header { padding: 44px 0 30px; }
.lesson__header h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); max-width: 24ch; }
.lesson__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: .95rem; }
.lesson__meta li { display: inline-flex; align-items: center; gap: 6px; }
.lesson__hero { margin: 0 0 48px; }
.lesson__hero img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--radius-lg); }
.lesson__layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; padding-bottom: 96px; align-items: start; }
.lesson__sidebar { position: sticky; top: 100px; }
.lesson__footer { margin: 48px 0 0; padding-top: 32px; border-top: 1px solid var(--line); }
.bga-complete-hint { color: var(--muted); }
@media (max-width: 1000px) {
	.lesson__layout { grid-template-columns: 1fr; gap: 48px; }
	.lesson__sidebar { position: static; }
}

.outline { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.outline__title { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; margin-bottom: .6em; }
.outline__module { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--rose); margin: 18px 0 6px; }
.outline__list { list-style: none; margin: 0; padding: 0; }
.outline__list a { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: start; padding: 7px 8px; margin: 0 -8px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .93rem; line-height: 1.4; }
.outline__list a:hover { background: var(--ivory); }
.outline__list .is-current a { background: var(--blush); color: var(--rose-dark); font-weight: 500; }
.outline__list .is-done .icon { color: var(--success); }
.outline__list .icon { width: 15px; height: 15px; color: var(--muted); margin-top: 2px; }
.outline__num { color: var(--muted); font-variant-numeric: tabular-nums; }
.outline .btn { margin-top: 20px; }

.lesson-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.lesson-nav__link { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--paper); font-family: var(--serif); font-size: 1.15rem; line-height: 1.25; }
.lesson-nav__link span { font-family: var(--sans); font-size: .8rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.lesson-nav__link--next { text-align: right; grid-column: 2; }
.lesson-nav__link:hover { border-color: var(--rose); }
@media (max-width: 560px) { .lesson-nav { grid-template-columns: 1fr; } .lesson-nav__link--next { grid-column: auto; } }

/* ---------- Prose (lesson + page content) ---------- */

.prose { font-size: 1.08rem; }
.prose > * + * { margin-top: 0; }
.prose h2 { font-size: 2rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.45rem; margin-top: 1.6em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--rose); }
.prose strong { font-weight: 600; }
.prose blockquote { margin: 1.8em 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--champagne); font-family: var(--serif); font-size: 1.45rem; line-height: 1.4; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.6em; font-size: .97rem; background: var(--paper); border-radius: var(--radius); overflow: hidden; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--blush); font-weight: 600; }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: var(--radius); }
.prose figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; }

.tip, .note, .checklist-box {
	margin: 1.8em 0; padding: 22px 24px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line);
}
.tip { border-left: 3px solid var(--rose); }
.tip strong:first-child, .note strong:first-child { display: block; font-family: var(--serif); font-size: 1.25rem; margin-bottom: 4px; }
.note { background: var(--blush); border-color: var(--blush-2); }
.tip p:last-child, .note p:last-child, .checklist-box ul:last-child { margin-bottom: 0; }
.checklist-box h3 { margin-top: 0; }
.checklist-box ul { list-style: none; padding: 0; }
.checklist-box li { padding-left: 30px; position: relative; }
.checklist-box li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border: 1.5px solid var(--rose); border-radius: 4px; }

.key-takeaways { margin: 0 0 2em; padding: 24px 26px; border-radius: var(--radius); background: var(--blush); }
.key-takeaways h2 { font-size: 1.4rem; margin: 0 0 .5em; }
.key-takeaways ul { margin: 0; }

details.faq { border-bottom: 1px solid var(--line); padding: 18px 0; }
details.faq summary { cursor: pointer; list-style: none; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--rose); font-family: var(--sans); font-weight: 400; transition: transform .2s; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq > *:not(summary) { margin-top: 12px; color: var(--muted); }

.inline-cta { margin: 56px 0 0; padding: 34px; border-radius: var(--radius-lg); background: var(--ink); color: #f5ece8; }
.inline-cta h2 { color: #fff; font-size: 1.9rem; margin-top: 0; }
.inline-cta .eyebrow { color: var(--champagne); }

/* ---------- Lesson video ---------- */

.lesson-video { margin: 0 0 2.4em; }
.lesson-video__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); box-shadow: var(--shadow); }
.lesson-video__frame img { width: 100%; height: 100%; object-fit: cover; }
.lesson-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lesson-video__play { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; }
.lesson-video__play::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(42,31,35,.65), rgba(42,31,35,.05) 55%); transition: background .2s; }
.lesson-video__play:hover::after { background: linear-gradient(to top, rgba(42,31,35,.75), rgba(42,31,35,.15) 55%); }
.lesson-video__button {
	position: absolute; left: 50%; top: 50%; z-index: 1; transform: translate(-50%, -50%);
	display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%;
	background: rgba(255,255,255,.95); color: var(--rose-dark); padding-left: 4px; transition: transform .2s;
}
.lesson-video__play:hover .lesson-video__button { transform: translate(-50%, -50%) scale(1.06); }
.lesson-video__label { position: absolute; left: 22px; bottom: 18px; z-index: 1; font-weight: 500; font-size: .98rem; letter-spacing: .01em; }
.lesson-video__caption { font-size: .88rem; color: var(--muted); margin: 12px 2px 0; line-height: 1.5; }
.lesson-video__about { color: var(--ink); }
.lesson-video--locked .lesson-video__frame img { filter: blur(6px) brightness(.55); transform: scale(1.06); }
.lesson-video__lock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #fff; text-align: center; padding: 20px; }
.lesson-video__lock p { margin: 0; }

/* ---------- Paywall ---------- */

.bga-paywall {
	position: relative; margin: 8px 0 0; padding: 44px 40px 36px; text-align: center;
	background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.bga-paywall::before {
	content: ""; position: absolute; left: 0; right: 0; top: -120px; height: 120px; pointer-events: none;
	background: linear-gradient(to bottom, rgba(251, 247, 243, 0), var(--ivory));
}
.bga-paywall__icon { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--blush); color: var(--rose-dark); margin-bottom: 16px; }
.bga-paywall__title { font-size: 2rem; margin-top: 0 !important; }
.bga-paywall > p { color: var(--muted); max-width: 52ch; margin-inline: auto; }
.bga-paywall .bga-checklist { display: inline-block; text-align: left; margin: 6px auto 18px; }
.bga-paywall__price strong { font-family: var(--serif); font-size: 2.2rem; color: var(--ink); }
.bga-paywall__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 10px 0 18px; }
.bga-paywall__free { font-size: .95rem; margin: 0 !important; }

.bga-checklist { list-style: none; padding: 0; margin: 0 0 22px; }
.bga-checklist li { position: relative; padding-left: 28px; margin-bottom: 9px; }
.bga-checklist li::before {
	content: ""; position: absolute; left: 2px; top: .42em; width: 14px; height: 8px;
	border-left: 1.7px solid var(--rose); border-bottom: 1.7px solid var(--rose); transform: rotate(-45deg);
}

/* ---------- Pricing ---------- */

.bga-pricing { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; align-items: stretch; }
.bga-plan { padding: 34px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--ivory); display: flex; flex-direction: column; }
.bga-plan--featured { background: var(--ink); color: #f4ebe7; border-color: var(--ink); }
.bga-plan--featured .bga-eyebrow { color: var(--champagne); }
.bga-plan--featured .bga-checklist li::before { border-color: var(--champagne); }
.bga-plan__price { font-family: var(--serif); font-size: 3.4rem; line-height: 1; margin: 0 0 .15em; font-weight: 600; }
.bga-plan__note { color: var(--muted); margin-bottom: 1.4em; }
.bga-plan--featured .bga-plan__note { color: #cdbcb6; }
.bga-plan .bga-checklist { flex: 1; }
.bga-plan form, .bga-plan > .btn { margin-top: auto; }
.bga-demo-note { font-size: .82rem; color: #cdbcb6; margin: 12px 0 0; text-align: center; }
.bga-pay { display: grid; gap: 10px; }
.bga-pay__note { font-size: .82rem; color: #cdbcb6; margin: 4px 0 0; text-align: center; }
.btn--paypal { background: #ffc439; color: #1b1b1b; }
.btn--paypal:hover { background: #f2b52b; color: #1b1b1b; }
.btn--paypal b { font-weight: 700; font-style: italic; letter-spacing: -.01em; }
@media (max-width: 720px) { .bga-pricing { grid-template-columns: 1fr; } }

/* ---------- Forms, notices, account ---------- */

.bga-form { display: flex; flex-direction: column; gap: 6px; background: var(--paper); padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.bga-form label { font-weight: 500; font-size: .95rem; margin-top: 10px; }
.bga-hint { color: var(--muted); font-weight: 400; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], select, textarea {
	width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
	padding: 12px 14px; border: 1px solid var(--blush-2); border-radius: 10px; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px rgba(168, 93, 106, .15); }
.bga-form .btn { margin-top: 18px; }
.bga-check { display: flex; align-items: center; gap: 8px; font-weight: 400 !important; }
.bga-form__alt { text-align: center; color: var(--muted); font-size: .93rem; margin: 14px 0 0; }

.bga-notice { padding: 14px 18px; border-radius: 10px; background: var(--blush); margin-bottom: 18px; font-size: .97rem; }
.bga-notice--success { background: #e6f1ea; color: #24543b; }
.bga-notice--error { background: #f7e3e3; color: var(--error); }

.bga-account__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.bga-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.bga-card h2 { font-size: 2rem; margin-top: 0 !important; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bga-card .bga-progress { margin: 6px 0 14px; }
.bga-card p { color: var(--muted); }
.bga-badge { font-family: var(--sans); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; background: #e6f1ea; color: #24543b; padding: 5px 10px; border-radius: 999px; }
.bga-account__meta { margin-top: 22px; color: var(--muted); font-size: .95rem; }
.bga-account .bga-demo-note, .bga-account .bga-pay__note { color: var(--muted); }
@media (max-width: 720px) { .bga-account__grid { grid-template-columns: 1fr; } }

.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; gap: 8px; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; background: var(--paper); }
.pagination .current { background: var(--rose); color: #fff; border-color: var(--rose); }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #d9cbc6; padding: 72px 0 32px; font-size: .96rem; }
.site-footer a { color: #f1e6e2; text-decoration: none; }
.site-footer a:hover { color: var(--champagne); }
.site-footer h3 { color: #fff; font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer__cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer__cta h2 { color: #fff; margin: 0; max-width: 20ch; }
.site-footer__cta .eyebrow { color: var(--champagne); }
.site-footer__cta .btn--light { color: var(--ink); }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr 1fr; gap: 40px; }
.brand--footer { color: #fff; margin-bottom: 10px; }
.site-footer__about { max-width: 34ch; color: #bfaea9; }
.site-footer__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .88rem; color: #a99893; }
.site-footer__legal p { margin: 0; }
.site-footer__legal ul { display: flex; gap: 20px; }
.site-footer__legal li { margin: 0; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Fill-in templates inside lessons (e.g. the bridal booking agreement) */
.bga-template { border: 1px dashed var(--blush-2); border-radius: var(--radius-lg); background: #fff; padding: 24px 28px; margin: 1.5em 0; font-size: .96rem; }
.bga-template p { margin: 0 0 .8em; }
@media print { .site-header, .site-footer, .lesson-video, .bga-template ~ details { display: none; } .bga-template { border: 0; padding: 0; } }

/* Keep menu items on one line now the menu has seven links */
.site-nav .menu a, .nav-login { white-space: nowrap; }
@media (min-width: 961px) and (max-width: 1180px) {
	.site-nav { gap: 18px; }
	.site-nav .menu { gap: 16px; }
	.site-nav .menu a, .nav-login { font-size: .92rem; }
}

/* "I agree to the Terms" tick box above the pay buttons */
.bga-pay__agree { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; line-height: 1.45; text-align: left; margin-bottom: 4px; cursor: pointer; }
.bga-pay__agree input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--rose); }
.bga-pay__agree a { color: inherit; text-decoration: underline; }
.bga-plan--featured .bga-pay__agree { color: #f4ebe7; }

/* Course diagrams and download cards */
.bga-diagram { margin: 1.4em 0; }
.bga-diagram img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ivory); }
.bga-diagram figcaption { margin-top: 8px; font-size: .88rem; color: var(--muted); text-align: center; }
.bga-download { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 1.4em 0; padding: 16px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.bga-download__text { flex: 1 1 280px; }
.bga-download p { margin: 6px 0 0; font-size: .92rem; color: var(--muted); }
.bga-account__downloads { margin-top: 24px; }
.bga-account__downloads h2 { font-size: 1.8rem; margin: 0 0 8px; }


/* ---------- Phones and small tablets ---------- */

/* A long table or word must never push the page wider than the screen. */
.prose { overflow-wrap: break-word; }
.bga-diagram picture { display: block; }
.prose .bga-checklist { padding-left: 0; }

@media (max-width: 1000px) {
	.lesson__layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
	.hero__inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
	.spotlight, .steps, .curriculum { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
	.audience, .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

/* WordPress's admin bar is 46px tall on phones and scrolls away under 600px. */
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* A menu taller than the screen (small phones, landscape) can be scrolled. */
@media (max-width: 960px) {
	.site-nav { max-height: calc(100vh - 76px); max-height: calc(100dvh - 76px); overflow-y: auto; }
	.site-nav__actions { flex-wrap: wrap; }
}

@media (max-width: 720px) {
	.bga-pricing, .bga-account__grid { grid-template-columns: minmax(0, 1fr); }
	/* Long labels ("Continue: Building Your Bridal Makeup Kit") wrap instead of running off the screen. */
	.btn { white-space: normal; line-height: 1.25; text-align: center; max-width: 100%; }
	.section__head--row { flex-direction: column; align-items: flex-start; }
	.lesson__hero { margin-bottom: 32px; }
	.lesson__hero img { aspect-ratio: 16 / 9; }
	.lesson__layout { padding-bottom: 64px; }
	.bga-card, .bga-plan, .bga-form { padding: 24px 20px; }
	.bga-paywall { padding: 32px 20px 28px; }
	.bga-paywall__title, .inline-cta h2 { font-size: 1.7rem; }
	.bga-plan__price { font-size: 2.9rem; }
	.inline-cta { padding: 26px 22px; margin-top: 40px; }
	.bga-template { padding: 18px; }
	.tip, .note, .checklist-box, .key-takeaways { padding: 18px 20px; }
	.prose { font-size: 1.04rem; }
	.prose h2 { font-size: 1.75rem; }
	.prose h3 { font-size: 1.35rem; }
	.prose blockquote { font-size: 1.25rem; padding-left: 18px; }
	details.faq { padding: 0; }
	details.faq summary { font-size: 1.2rem; padding: 14px 0; align-items: flex-start; }
	details.faq > *:not(summary) { margin-top: 0; }
	.lesson-video__button { width: 60px; height: 60px; }
	.lesson-video__label { left: 14px; bottom: 10px; right: 14px; font-size: .9rem; }
	.lesson-video__lock { padding: 12px; gap: 6px; font-size: .95rem; }
	.lesson-nav__link--next { text-align: left; }
	.progress-inline { flex-wrap: wrap; gap: 8px 16px; }
	.progress-inline .bga-progress { flex-basis: 100%; }
	.pagination .nav-links { flex-wrap: wrap; }
	.pagination .page-numbers { display: inline-block; padding: 10px 15px; }
	.search-inline { flex-wrap: wrap; }
	.search-inline input { flex: 1 1 180px; }
	.site-footer { padding-top: 56px; }
	.site-footer__cta { padding-bottom: 40px; margin-bottom: 40px; }
	.site-footer li { margin-bottom: 4px; }
	.site-footer li a { display: inline-block; padding: 6px 0; }
	.site-footer__legal ul { flex-wrap: wrap; gap: 4px 20px; }
	.breadcrumbs ol { margin-bottom: 16px; align-items: baseline; }
	.breadcrumbs a { display: inline-block; padding: 7px 0; }
	.post-card__title a { display: inline-block; padding: 4px 0; }
	.curriculum__lessons li { padding: 0; }
	.curriculum__lessons a { display: inline-block; padding: 6px 0; }
	.bga-paywall__price strong { display: block; }

	/* The smallest labels, up to a size that can be read on a phone. */
	.eyebrow, .bga-eyebrow, .lesson-card__body .eyebrow, .post-card__body .eyebrow, .outline__module, .bga-badge { font-size: .78rem; }
	.tag { font-size: .76rem; }
	.tag--inline { font-size: .76rem; }
	.bga-pay__note, .bga-demo-note { font-size: .86rem; }
}

/* Tables become one card per row: the first cell is the title, the others carry their column name. */
@media (max-width: 640px) {
	.prose table { display: block; background: none; border-radius: 0; overflow: visible; font-size: 1rem; }
	.prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.prose tbody { display: block; }
	.prose tr { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 16px; margin-bottom: 12px; }
	.prose td, .prose tbody th { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); background: none; }
	.prose td:last-child, .prose tbody th:last-child { border-bottom: 0; }
	.prose td[data-label]::before, .prose tbody th[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font-family: var(--sans); font-size: .76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--rose); }
	.prose td:first-child, .prose tbody th:first-child { font-family: var(--serif); font-size: 1.22rem; font-weight: 600; line-height: 1.25; }
	.prose td:first-child::before, .prose tbody th:first-child::before { display: none; }
}

@media (max-width: 480px) {
	.container { padding: 0 20px; }
	h1 { font-size: 2.15rem; }
	.page-hero h1, .lesson__header h1 { font-size: 2.05rem; }
	h2 { font-size: 1.75rem; }
	.page-hero { padding: 32px 0 30px; }
	.page-hero--center { padding-top: 40px; }
	.lesson__header { padding: 28px 0 22px; }
	.section { padding: 48px 0; }
	.section--page { padding-top: 32px; }
	.hero { padding: 28px 0 44px; }
	.hero__badge { left: 10px; bottom: 16px; padding: 10px 16px; }
	.hero__actions .btn, .page-hero__actions .btn, .bga-paywall__actions .btn { flex: 1 1 100%; }
	.module-block + .module-block { margin-top: 48px; }
	.bga-download .btn { width: 100%; }
}

/* The smallest phones: stop the logo text crowding the menu button. */
@media (max-width: 380px) {
	.site-header__inner { gap: 10px; min-height: 68px; }
	.site-nav { inset: 68px 0 auto 0; }
	.brand { gap: 7px; }
	.brand__mark { width: 28px; height: 28px; }
	.brand__text { font-size: 1.22rem; }
}

/* Tablets: a long button label must not widen its card, and links stay easy to tap. */
.bga-account__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bga-card .btn { white-space: normal; line-height: 1.25; text-align: center; }
@media (max-width: 720px) { .bga-account__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1000px) and (pointer: coarse) {
	.breadcrumbs ol { align-items: baseline; }
	.breadcrumbs a, .curriculum__lessons a, .site-footer li a { display: inline-block; padding-block: 7px; }
	.site-footer li { margin-bottom: 2px; }
}
