/*
 * Made Hot — Collection page redesign (2026-09-18).
 * Loaded only on page-templates/template-collection.php, after
 * microlessons.css (see Madehot_Microlessons::maybe_enqueue_assets()).
 * Everything below is scoped under .madehot-collection so it can't leak
 * into the shop page or any other template.
 *
 * Token sourcing (confirmed with the client before writing this file):
 *   --accent, --black, --muted, --line, --cream, --ink  = real brand colors,
 *     pulled from Elementor Global Colors (kit #6) and the live /shop/ page.
 *   --accent-dark, --charcoal, --greige, --espresso      = derived — no
 *     source for these exists anywhere in the site; --accent-dark is
 *     --accent darkened ~12%, the other three are blended from the
 *     sourced colors toward black. Flagged here, not hidden.
 *   --testimonial-brown                                  = real, reused from
 *     the live testimonials slider (style.css .testimonials_slider .slide
 *     .child-element / .testimonials_slider_mobile), not invented.
 */

.madehot-collection {
	--cream: #F4F2F0;
	--charcoal: #181818;
	--black: #000000;
	--greige: #E8E2DC;
	--accent: #B59E8F;
	--accent-dark: #9F8B7E;
	--espresso: #4A3B32;
	--testimonial-brown: #433a35;
	--line: #A8A8A8;
	--ink: #000000;
	--muted: #666666;

	--madehot-serif: 'Playfair Display', 'Editors Note Regular', serif;
	--madehot-sans: 'Jost', 'Public Sans', sans-serif;
	--madehot-script: 'Sacramento', cursive;
}

/* ============ Hero banner — image only, no text overlay ============ */
.madehot-hero-banner {
	background-color: var(--charcoal);
	background-image: var(--madehot-hero-image);
	background-size: cover;
	background-position: center;
	min-height: 50vh;
}

@media (max-width: 600px) {
	.madehot-hero-banner { min-height: 300px; }
}

/* ============ Hero content — separate solid-background section below
   the banner image (was overlaid on it until the 2026-09-21 split) ============ */
.madehot-hero-content {
	background: var(--testimonial-brown);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 64px 20px;
	text-align: center;
}

.madehot-hero-inner {
	max-width: 760px;
}

.madehot-hero-content .madehot-eyebrow {
	color: var(--accent);
}

.madehot-hero-content h1 {
	font-family: var(--madehot-serif);
	color: var(--cream);
	font-size: clamp(2rem, 4vw, 3.25rem);
	line-height: 1.2;
	margin: 0 0 1.25rem;
}

.madehot-hero-content .madehot-collection-intro-copy p {
	color: var(--cream);
	opacity: .92;
}

/* CTA inside the hero content — reuses .madehot-lesson-cta's own
   taupe/uppercase/hover-darken styling (defined further down), this just
   repositions it. */
.madehot-hero-cta {
	display: inline-flex;
	margin-top: .5rem;
	text-decoration: none;
}

/* ============ "Shop the Collection" heading ============ */
.madehot-shop-heading {
	text-align: center;
	max-width: 640px;
	margin: 0 auto;
	padding: 80px 20px 40px;
}

.madehot-shop-heading h2 {
	font-family: var(--madehot-serif);
	font-weight: 600;
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	color: var(--ink);
	text-transform: uppercase;
	letter-spacing: .02em;
	margin: 0;
}

.madehot-shop-heading h2 em {
	font-style: italic;
	font-weight: 400;
	color: var(--accent);
}

/* ============ Lesson grid — text cards, spaced not hairline ============
   Full ruleset for .madehot-lesson-grid / .madehot-lesson-block lives here
   only — these classes are exclusive to this template, so there's no base
   version elsewhere to merge with (moved out of microlessons.css).
   2026-09-18: switched from a 1px hairline-gap grid to real whitespace
   between cards, per reference image — background removed since there's
   no longer a colored sliver meant to show through the gap.
   2026-09-18: dropped the per-card image slot (and its gradient
   placeholder / uploaded-photo variants) per request — cards are text
   only now, so .madehot-lesson-block keeps even padding on every side
   again instead of zeroing the top for a flush image. */
.madehot-lesson-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-auto-rows: 1fr;
	gap: 15px;
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 20px 100px;
}

/* A trailing lone card (3rd of 3, 5th of 5, ...) sits alone in the last
   row of a 2-col grid — :last-child + :nth-child(odd) catches exactly
   that case regardless of total count, and centers it instead of
   stretching it across both columns or leaving it flush left. */
.madehot-lesson-grid > .madehot-lesson-block:last-child:nth-child(odd) {
	grid-column: 1 / -1;
	max-width: calc(50% - 7.5px);
	margin: 0 auto;
}

.madehot-lesson-block {
	background: var(--cream);
	font-family: var(--madehot-sans);
	padding: 3.5rem 3rem;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.madehot-lesson-title {
	font-family: var(--madehot-serif);
	font-weight: 600;
	font-size: 1.65rem;
	line-height: 1.3;
	margin: 0;
	color: var(--ink);
}

.madehot-lesson-number {
	text-transform: uppercase;
	letter-spacing: .08em;
	font-weight: 600;
	color: var(--accent);
	font-size: .8rem;
	margin: 0;
}

.madehot-lesson-meta {
	font-family: var(--madehot-sans);
	color: var(--muted);
	font-size: .8rem;
	margin: 0;
}

.madehot-lesson-quote {
	font-family: var(--madehot-serif);
	font-style: italic;
	font-size: 1.2rem;
	line-height: 1.6;
	margin: 0;
	color: var(--ink);
}

.madehot-lesson-body p {
	font-size: .95rem;
	line-height: 1.8;
	margin: 0 0 1rem;
	color: var(--ink);
}

.madehot-lesson-perfect-if,
.madehot-lesson-closing {
	margin: 0;
	font-weight: 600;
	font-size: .95rem;
	padding-top: .25rem;
	color: var(--ink);
}

/* Both expandable sections in a card — "Read more" (body copy) and
   "Booking & cancellation" — share this exact toggle treatment. */
.madehot-lesson-policy-details,
.madehot-lesson-body-details {
	border-top: 1px solid var(--line);
	padding-top: .75rem;
	margin-top: .25rem;
}

.madehot-lesson-policy-details summary,
.madehot-lesson-body-details summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	cursor: pointer;
	font-family: var(--madehot-sans);
	font-weight: 500;
	font-size: .85rem;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--ink);
	list-style: none;
}

.madehot-lesson-policy-details summary::-webkit-details-marker,
.madehot-lesson-body-details summary::-webkit-details-marker {
	display: none;
}

.madehot-lesson-policy-details summary::after,
.madehot-lesson-body-details summary::after {
	content: '+';
	flex-shrink: 0;
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1;
}

.madehot-lesson-policy-details[open] summary::after,
.madehot-lesson-body-details[open] summary::after {
	content: '\2212';
}

.madehot-lesson-policy-details .madehot-policy-notice,
.madehot-lesson-body-details .madehot-lesson-body {
	margin-top: .75rem;
}

.madehot-lesson-cta {
	display: inline-block;
	align-self: center;
	margin-top: .5rem;
	padding: 1rem 2rem;
	border: 1px solid var(--accent);
	background: var(--accent);
	color: #fff;
	text-transform: uppercase;
	letter-spacing: .06em;
	font-weight: 600;
	font-size: .85rem;
	font-family: var(--madehot-sans);
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

/* Ghost/outline hover — text is --ink, not white. .madehot-lesson-cta is
   shared by 3 different backgrounds (card = --cream, thank-you body =
   --madehot-white, hero = --testimonial-brown): white text on a
   transparent fill would be invisible on the two light ones the moment
   the solid fill drops away. .madehot-hero-cta below overrides back to a
   light color for the one dark-background instance. */
.madehot-lesson-cta:hover,
.madehot-lesson-cta:focus-visible {
	border-color: var(--accent);
	background: transparent;
	color: var(--ink);
}

.madehot-hero-cta:hover,
.madehot-hero-cta:focus-visible {
	color: var(--cream);
}

.madehot-lesson-cta:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
}

.madehot-lesson-cta:disabled {
	background: var(--greige);
	border-color: var(--line);
	color: var(--ink);
	opacity: .5;
	cursor: not-allowed;
}

.madehot-lesson-block .madehot-lesson-cta {
	width: 100%;
	margin-top: auto;
}

.madehot-booking-unavailable {
	font-style: italic;
	opacity: .7;
	margin: .5rem 0 0;
	color: var(--ink);
}

@media (max-width: 640px) {
	.madehot-lesson-grid {
		grid-template-columns: 1fr;
	}

	.madehot-lesson-grid > .madehot-lesson-block:last-child:nth-child(odd) {
		max-width: none;
	}

	.madehot-lesson-block {
		padding: 1.75rem;
	}
}

/* ============ Split banner — greige quote block, text-only ============ */
.madehot-split-banner {
	background: var(--greige);
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 320px;
	padding: 60px 24px;
}

.madehot-split-banner-text {
	display: flex;
	align-items: center;
	justify-content: center;
}

.madehot-split-banner-quote {
	font-family: var(--madehot-serif);
	font-style: italic;
	font-size: clamp(1.25rem, 2.4vw, 1.75rem);
	line-height: 1.5;
	color: var(--espresso);
	max-width: 640px;
	text-align: center;
	margin: 0;
}

/* The quote itself is already italic — the emphasized phrase flips to
   upright + accent color for contrast instead of stacking italic-on-italic,
   same "one word/phrase stands out" device as the headings above. */
.madehot-split-banner-quote em {
	font-style: normal;
	color: var(--accent);
}

/* ============ Full-bleed quote band ============ */
.madehot-quote-band {
	background-color: var(--testimonial-brown);
	min-height: 320px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 60px 24px;
}

.madehot-quote-band-text {
	font-family: var(--madehot-serif);
	font-style: italic;
	font-weight: 400;
	font-size: clamp(1.5rem, 3.5vw, 2.25rem);
	line-height: 1.4;
	color: var(--cream);
	max-width: 760px;
	text-align: center;
	margin: 0;
}

.madehot-quote-band-text em {
	font-style: normal;
	color: var(--accent);
}

/* ============ Bio ============ */
.madehot-collection-bio {
	padding: 100px 20px 120px;
}

.madehot-collection-bio h2 {
	font-family: var(--madehot-heading-font);
	font-size: 2.75rem;
	font-weight: 400;
	color: var(--accent);
	margin-bottom: 2rem;
}

.madehot-collection-bio p {
	font-family: var(--madehot-sans);
	color: var(--ink);
}

/* ============ Booking confirmation — full-width sections, not a card ============
   2026-09-18: replaces the original approved mockup's centered white card
   with the same full-width section pattern used above (hero / greige band
   / centered text column) — "use current site design and styles" instead
   of that mockup's own separate palette. Reuses .madehot-eyebrow and
   .madehot-lesson-cta directly rather than re-defining equivalents. */
.madehot-ty-hero {
	text-align: center;
	padding: 80px 20px 40px;
}

.madehot-ty-mark {
	width: 56px;
	height: 56px;
	border-radius: 999px;
	background: var(--accent);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 24px;
}

.madehot-ty-mark svg {
	width: 26px;
	height: 26px;
	display: block;
}

.madehot-ty-mark svg path,
.madehot-ty-mark svg circle,
.madehot-ty-mark svg line {
	stroke: #fff;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
	fill: none;
}

.madehot-ty-mark--success svg path {
	stroke-dasharray: 40;
	stroke-dashoffset: 40;
	animation: madehot-ty-draw .55s ease-out .15s forwards;
}

@keyframes madehot-ty-draw {
	to { stroke-dashoffset: 0; }
}

.madehot-ty-hero .madehot-eyebrow {
	justify-content: center;
}

.madehot-ty-hero h1 {
	font-family: var(--madehot-heading-font);
	font-weight: 400;
	font-size: clamp(2rem, 4vw, 2.75rem);
	color: var(--ink);
	margin: 0;
}

.madehot-ty-details {
	background: var(--greige);
	text-align: center;
	max-width: 420px;
	margin: 0 auto 8px;
	padding: 32px 28px;
	border: 1px solid var(--line);
}

.madehot-ty-lesson {
	font-family: var(--madehot-serif);
	font-size: 1.5rem;
	color: var(--ink);
	margin: 0;
}

.madehot-ty-when {
	font-family: var(--madehot-sans);
	font-size: 1.1rem;
	line-height: 1.6;
	color: var(--muted);
	margin: 12px 0 0;
}

.madehot-ty-body {
	max-width: 640px;
	margin: 0 auto;
	padding: 40px 20px;
	text-align: center;
}

.madehot-ty-lead,
.madehot-ty-before {
	font-family: var(--madehot-sans);
	font-size: 1rem;
	line-height: 1.7;
	color: var(--ink);
	margin: 0 0 1.25rem;
}

.madehot-ty-before strong {
	color: var(--ink);
}

.madehot-ty-body .madehot-lesson-cta {
	margin-top: 1.5rem;
}

.madehot-ty-policy {
	max-width: 480px;
	margin: 0 auto;
	padding: 32px 20px 60px;
	text-align: center;
	border-top: 1px solid var(--line);
}

.madehot-ty-policy .madehot-eyebrow {
	justify-content: center;
	margin-bottom: .5rem;
}

.madehot-ty-policy p {
	font-family: var(--madehot-sans);
	font-size: .9rem;
	line-height: 1.6;
	color: var(--muted);
	margin: 0;
}

.madehot-ty-footer {
	text-align: center;
	padding: 24px 20px 60px;
	border-top: 1px solid var(--line);
}

.madehot-ty-footer p {
	font-family: var(--madehot-sans);
	font-size: .8rem;
	color: var(--muted);
	margin: 0;
}

/* ============ Motion / accessibility ============ */
@media (prefers-reduced-motion: reduce) {
	.madehot-ty-mark--success svg path {
		animation: none;
		stroke-dashoffset: 0;
	}
}

.madehot-collection a:focus-visible,
.madehot-collection button:focus-visible,
.madehot-collection summary:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
}

.madehot-collection-dirty-talk .madehot-collection-hero-overlay {
    padding-top: clamp(60px, 14.93vw, 287px);
    padding-bottom: clamp(60px, 14.93vw, 287px);
}