/* ==========================================================================
   Biography Studio — page-sample-pages.css
   Sample pages: editorial demo, PDF embed, gated download.
   Background sequence: cream → white → cream → white → blue-grey
   ========================================================================== */


/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */
.bssp-reveal {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}
.bssp-reveal--in {
	opacity: 1;
	transform: none;
}


/* ==========================================================================
   SHARED SECTION UTILITIES
   ========================================================================== */
.bssp-section__label {
	font-family:    var(--bs-ui-font);
	font-size:      1.125rem;
	font-weight:    600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color:          var(--bs-text-muted);
	margin-bottom:  28px;
}
.bssp-section__label--light {
	color: rgba(46, 74, 94, 0.55);
}

.bssp-section__copy {
	font-family: var(--bs-body-font);
	font-size:   1.0625rem;
	line-height: 1.9;
	color:       var(--bs-text);
}
.bssp-section__copy p            { margin-bottom: 1.6em; }
.bssp-section__copy p:last-child { margin-bottom: 0; }


/* ==========================================================================
   1 · HERO — centred, cream background
   ========================================================================== */
.bssp-hero {
	background-color: var(--bs-cream);
	background-image:
		radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,254,250,0.8) 0%, transparent 60%),
		radial-gradient(ellipse 50% 40% at 5% 95%, rgba(237,229,217,0.35) 0%, transparent 50%);
	padding:    96px 0 104px;
	text-align: center;
}
.bssp-hero__inner {
	display:        flex;
	flex-direction: column;
	align-items:    center;
}
.bssp-hero__label {
	font-family:    var(--bs-ui-font);
	font-size:      0.875rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color:          var(--bs-pink-dark);
	margin-bottom:  20px;
}
.bssp-hero__heading {
	font-family:    var(--bs-heading-font);
	font-size:      clamp(2.5rem, 5vw, 5rem);
	font-weight:    400;
	font-style:     italic;
	line-height:    1.1;
	letter-spacing: -0.015em;
	color:          var(--bs-navy);
	margin-bottom:  28px;
}
.bssp-hero__intro {
	font-family: var(--bs-body-font);
	font-size:   1.1875rem;
	line-height: 1.75;
	color:       var(--bs-text-muted);
	max-width:   50ch;
}


/* ==========================================================================
   2 · BEFORE AND AFTER — white background
   ========================================================================== */
.bssp-ba {
	background:  var(--bs-white);
	padding:     104px 0;
	border-top:  1px solid var(--bs-border-light);
}
.bssp-ba__header {
	max-width:     680px;
	margin-bottom: 48px;
}
.bssp-ba__intro {
	font-family:   var(--bs-body-font);
	font-size:     1.0625rem;
	line-height:   1.75;
	color:         var(--bs-text-muted);
	margin-bottom: 16px;
}
.bssp-ba__question {
	font-family: var(--bs-body-font);
	font-size:   1.0625rem;
	line-height: 1.6;
	color:       var(--bs-text);
	margin:      0;
}

/* Two-column grid */
.bssp-ba__grid {
	display:               grid;
	grid-template-columns: 1fr 1fr;
	gap:                   32px;
	margin-bottom:         56px;
	align-items:           start;
}

/* Individual panel */
.bssp-ba__panel {
	border-radius: 3px;
	overflow:      hidden;
}
.bssp-ba__panel--raw {
	background: #f6f2ec;
	border:     1px solid rgba(193, 176, 152, 0.45);
}
.bssp-ba__panel--edited {
	background: var(--bs-white);
	border:     1px solid var(--bs-border-light);
	position:   sticky;
	top:        120px;
	align-self: start;
}

.bssp-ba__panel-label {
	font-family:    var(--bs-ui-font);
	font-size:      0.75rem;
	font-weight:    600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding:        14px 24px;
	margin:         0;
	border-bottom:  1px solid rgba(0, 0, 0, 0.07);
}
.bssp-ba__panel--raw    .bssp-ba__panel-label { color: rgba(100, 75, 50, 0.65); background: rgba(193, 176, 152, 0.2); }
.bssp-ba__panel--edited .bssp-ba__panel-label { color: var(--bs-text-muted); background: rgba(9, 58, 102, 0.04); }

.bssp-ba__text {
	padding:     28px 24px 32px;
	font-family: var(--bs-body-font);
	font-size:   0.9375rem;
	line-height: 1.8;
	color:       var(--bs-text);
}
.bssp-ba__panel--raw .bssp-ba__text {
	color: rgba(60, 45, 30, 0.85);
}
.bssp-ba__text p            { margin-bottom: 1.2em; }
.bssp-ba__text p:last-child { margin-bottom: 0; }

/* Analysis — lives inside the edited panel, below the text */
.bssp-ba__panel-analysis {
	padding:     0 24px 28px;
	border-top:  1px solid var(--bs-border-light);
	margin-top:  4px;
}
.bssp-ba__panel-analysis p {
	font-family: var(--bs-body-font);
	font-size:   0.9rem;
	font-style:  italic;
	line-height: 1.8;
	color:       var(--bs-text-muted);
	margin:      0;
}
.bssp-ba__panel-analysis p + p { margin-top: 1em; }
/* Add a little top breathing room */
.bssp-ba__panel-analysis p:first-child { padding-top: 24px; }


/* ==========================================================================
   3 · SAMPLE BIOGRAPHY — cream, PDF embed
   ========================================================================== */
.bssp-sample {
	background:  var(--bs-cream);
	padding:     104px 0;
	border-top:  1px solid var(--bs-border-light);
}
.bssp-sample__copy {
	font-family:   var(--bs-body-font);
	font-size:     1.0625rem;
	line-height:   1.9;
	color:         var(--bs-text);
	max-width:     640px;
	margin-bottom: 48px;
}
.bssp-sample__copy p            { margin-bottom: 1.6em; }
.bssp-sample__copy p:last-child { margin-bottom: 0; }

/* PDF frame */
.bssp-pdf {
	width:         100%;
	border-radius: 4px;
	overflow:      hidden;
	border:        1px solid var(--bs-border-light);
	background:    var(--bs-white);
	margin-bottom: 36px;
}
.bssp-pdf__frame {
	display: block;
	width:   100%;
	height:  clamp(480px, 70vh, 760px);
	border:  none;
}

/* Placeholder shown while PDF URL is not yet set */
.bssp-pdf__placeholder {
	display:         flex;
	align-items:     center;
	justify-content: center;
	height:          clamp(240px, 40vh, 400px);
	padding:         48px;
}
.bssp-pdf__placeholder-text {
	font-family:    var(--bs-ui-font);
	font-size:      0.875rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color:          var(--bs-text-muted);
	opacity:        0.5;
	margin:         0;
}

.bssp-sample__cta {
	display: flex;
}


/* ==========================================================================
   4 · DOWNLOAD GATE — white, email capture
   ========================================================================== */
.bssp-gate {
	background:  var(--bs-white);
	padding:     96px 0 104px;
	border-top:  1px solid var(--bs-border-light);
}
.bssp-gate__inner {
	max-width: 560px;
}
.bssp-gate__heading {
	font-family:    var(--bs-heading-font);
	font-size:      clamp(1.75rem, 3vw, 2.5rem);
	font-weight:    400;
	font-style:     italic;
	line-height:    1.2;
	letter-spacing: -0.01em;
	color:          var(--bs-navy);
	margin-bottom:  16px;
}
.bssp-gate__subtext {
	font-family:   var(--bs-body-font);
	font-size:     1rem;
	line-height:   1.75;
	color:         var(--bs-text-muted);
	margin-bottom: 40px;
}

/* Form */
.bssp-gate__form-wrap { position: relative; }

.bssp-gate__fields {
	display: flex;
	gap:     16px;
	margin-bottom: 16px;
}
.bssp-gate__field {
	flex:    1;
	display: flex;
	flex-direction: column;
	gap:     6px;
}
.bssp-gate__field-label {
	font-family:    var(--bs-ui-font);
	font-size:      0.8125rem;
	font-weight:    600;
	letter-spacing: 0.04em;
	color:          var(--bs-text);
}
.bssp-gate__input {
	font-family:  var(--bs-body-font);
	font-size:    1rem;
	color:        var(--bs-text);
	background:   var(--bs-white);
	border:       1px solid rgba(9, 58, 102, 0.25);
	border-radius: 3px;
	padding:      10px 14px;
	width:        100%;
	transition:   border-color 0.2s;
	outline:      none;
}
.bssp-gate__input:focus {
	border-color: var(--bs-navy);
}
.bssp-gate__consent {
	font-family:   var(--bs-body-font);
	font-size:     0.8125rem;
	line-height:   1.6;
	color:         var(--bs-text-muted);
	margin-bottom: 24px;
	opacity:       0.7;
}
.bssp-gate__submit {
	cursor: pointer;
}
.bssp-gate__error {
	font-family:   var(--bs-body-font);
	font-size:     0.875rem;
	color:         #c0392b;
	margin-top:    12px;
}

/* Success state */
.bssp-gate__success {
	padding-top: 8px;
}
.bssp-gate__success-rule {
	width:      40px;
	height:     2px;
	background: var(--bs-pink);
	margin-bottom: 28px;
}
.bssp-gate__success-msg {
	font-family:   var(--bs-body-font);
	font-size:     1.0625rem;
	line-height:   1.7;
	color:         var(--bs-text);
	margin-bottom: 28px;
}


/* ==========================================================================
   5 · CLOSING — blue-grey accent
   ========================================================================== */
.bssp-close {
	background:  #ccd8e2;
	padding:     104px 0;
	border-top:  1px solid rgba(9, 58, 102, 0.1);
}
.bssp-close__inner {
	max-width: 640px;
}
.bssp-close .bssp-section__copy {
	margin-bottom: 40px;
}
.bssp-close__ctas {
	display:  flex;
	flex-wrap: wrap;
	gap:      14px;
}
.bssp-close .bsh-btn--ghost {
	border-color: rgba(9, 58, 102, 0.45);
	color:        var(--bs-navy);
}
.bssp-close .bsh-btn--ghost:hover {
	background:   rgba(9, 58, 102, 0.06);
	border-color: var(--bs-navy);
}


/* ==========================================================================
   RESPONSIVE — below 1024px
   ========================================================================== */
@media ( max-width: 1024px ) {

	.bssp-ba__grid {
		gap: 24px;
	}

}


/* ==========================================================================
   RESPONSIVE — below 768px
   ========================================================================== */
@media ( max-width: 768px ) {

	.bssp-hero  { padding: 64px 0 72px; }

	.bssp-ba,
	.bssp-sample,
	.bssp-close { padding: 64px 0 56px; }

	.bssp-gate  { padding: 64px 0 72px; }

	.bssp-ba__grid {
		grid-template-columns: 1fr;
	}
	.bssp-ba__panel--edited {
		position: static;
	}

	.bssp-gate__fields {
		flex-direction: column;
	}

	.bssp-close__ctas {
		flex-direction: column;
	}
	.bssp-close__ctas .bsh-btn {
		width:      100%;
		max-width:  320px;
		text-align: center;
	}

}


/* ==========================================================================
   BOOK GALLERY — blue-grey section, above before/after
   ========================================================================== */
.bssp-gallery {
	background: #ccd8e2;
	padding:    72px 0;
}

.bssp-gallery__intro {
	max-width:   640px;
	margin:      0 0 40px;
	font-family: var(--bs-body-font);
	font-size:   1rem;
	line-height: var(--bs-line-height);
	color:       var(--bs-text);
}

/* Track */
.bssp-gallery__track {
	display:              flex;
	overflow-x:           auto;
	scroll-snap-type:     x mandatory;
	scroll-behavior:      smooth;
	-ms-overflow-style:   none;
	scrollbar-width:      none;
}
.bssp-gallery__track::-webkit-scrollbar { display: none; }

.bssp-gallery__slide {
	flex:             0 0 100%;
	scroll-snap-align: start;
}

.bssp-gallery__slide img {
	width:       100%;
	aspect-ratio: 3 / 2;
	object-fit:  cover;
	display:     block;
}

/* Controls row: prev · dots · next */
.bssp-gallery__controls {
	display:         flex;
	align-items:     center;
	justify-content: center;
	gap:             20px;
	margin-top:      24px;
}

.bssp-gallery__btn {
	display:         flex;
	align-items:     center;
	justify-content: center;
	width:           40px;
	height:          40px;
	border:          none;
	border-radius:   50%;
	background:      var(--bs-white);
	color:           var(--bs-navy);
	cursor:          pointer;
	box-shadow:      var(--bs-shadow);
	transition:      background .2s, box-shadow .2s;
	flex-shrink:     0;
}
.bssp-gallery__btn:hover {
	background:  var(--bs-navy-light);
	box-shadow:  var(--bs-shadow-lg);
}

.bssp-gallery__dots {
	display: flex;
	gap:     8px;
}

.bssp-gallery__dot {
	width:         8px;
	height:        8px;
	border-radius: 50%;
	background:    rgba(9, 58, 102, 0.25);
	transition:    background .2s;
}
.bssp-gallery__dot--active {
	background: var(--bs-navy);
}

@media ( max-width: 768px ) {
	.bssp-gallery         { padding: 56px 0; }
	.bssp-gallery__intro  { margin-bottom: 28px; }
	.bssp-gallery__slide img { aspect-ratio: 4 / 3; }
}
