/**
 * Starter Adult Shop — Factory Page Styles
 * Dark mode default — industrial premium aesthetic
 */

/* ===== Layout ===== */
.sas-factory { width: 100%; overflow: hidden; }
.sas-factory-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.sas-factory-section { padding: 5rem 0; position: relative; }
.sas-factory-section__title {
	font-family: 'Playfair Display', serif;
	font-size: 2.4rem;
	font-weight: 600;
	margin-bottom: 1.5rem;
	color: #f0e6f0;
}
.sas-factory-section__title--center { text-align: center; }
.sas-factory-section__subtitle {
	text-align: center;
	color: #9a8a9e;
	font-size: 1.05rem;
	max-width: 650px;
	margin: -.5rem auto 2.5rem;
	line-height: 1.6;
}
.sas-factory-divider {
	border: none;
	height: 1px;
	background: linear-gradient(to right, transparent, rgba(232,98,138,.15), transparent);
	margin: 0;
}

/* ===== Scroll reveal (reuse about pattern) ===== */
.sas-factory .sas-reveal {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}
.sas-factory .sas-reveal.visible {
	opacity: 1;
	transform: translateY(0);
}
.sas-factory .sas-reveal-delay-1 { transition-delay: .1s; }
.sas-factory .sas-reveal-delay-2 { transition-delay: .2s; }
.sas-factory .sas-reveal-delay-3 { transition-delay: .3s; }
.sas-factory .sas-reveal-delay-4 { transition-delay: .4s; }

/* ===== Hero ===== */
.sas-factory-hero {
	position: relative;
	min-height: 560px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	background: linear-gradient(135deg, #0e0a14 0%, #1a1028 30%, #2d1f3d 60%, #1a1028 100%);
	background-size: cover;
	background-position: center;
	overflow: hidden;
}
.sas-factory-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}
.sas-factory-hero__overlay {
	position: absolute;
	inset: 0;
	background: rgba(14, 10, 20, .55);
	z-index: 1;
}
.sas-factory-hero::before,
.sas-factory-hero::after {
	content: '';
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	z-index: 0;
	animation: factoryOrb 8s ease-in-out infinite alternate;
}
.sas-factory-hero::before {
	width: 500px; height: 500px;
	background: radial-gradient(circle, rgba(232,98,138,.2), transparent 70%);
	top: -100px; left: -100px;
}
.sas-factory-hero::after {
	width: 400px; height: 400px;
	background: radial-gradient(circle, rgba(180,120,220,.15), transparent 70%);
	bottom: -80px; right: -80px;
	animation-delay: 4s;
}
@keyframes factoryOrb {
	0% { transform: translate(0, 0) scale(1); }
	100% { transform: translate(30px, -20px) scale(1.1); }
}
#sas-factory-particles {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}
.sas-factory-hero__content {
	position: relative;
	z-index: 2;
	padding: 2rem;
}
.sas-factory-hero__title {
	font-family: 'Playfair Display', serif;
	font-size: 3.5rem;
	font-weight: 700;
	color: #fff;
	margin: 0 0 1rem;
	text-shadow: 0 4px 30px rgba(0,0,0,.4);
}
.sas-factory-hero__subtitle {
	font-family: 'Inter', sans-serif;
	font-size: 1.15rem;
	color: rgba(255,255,255,.65);
	max-width: 600px;
	margin: 0 auto 2rem;
	line-height: 1.6;
}
.sas-factory-hero__scroll {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .5rem;
	color: rgba(255,255,255,.3);
	font-size: .7rem;
	letter-spacing: .15em;
	text-transform: uppercase;
	font-family: 'Inter', sans-serif;
}
.sas-factory-hero__scroll-line {
	width: 1px;
	height: 40px;
	background: linear-gradient(to bottom, rgba(232,98,138,.5), transparent);
	animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
	0%, 100% { opacity: .3; }
	50% { opacity: 1; }
}

/* ===== Stats ===== */
.sas-factory-stats {
	padding: 3rem 0;
	background: linear-gradient(135deg, rgba(232,98,138,.04) 0%, rgba(14,10,20,.6) 50%, rgba(180,120,220,.03) 100%);
	border-top: 1px solid rgba(232,98,138,.08);
	border-bottom: 1px solid rgba(232,98,138,.08);
}
.sas-factory-stats__grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 1.5rem;
	text-align: center;
}
.sas-factory-stat__number {
	font-family: 'Playfair Display', serif;
	font-size: 2rem;
	font-weight: 700;
	background: linear-gradient(135deg, #e8628a, #d4a0b9);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: .25rem;
}
.sas-factory-stat__label {
	font-family: 'Inter', sans-serif;
	font-size: .75rem;
	color: #9a8a9e;
	text-transform: uppercase;
	letter-spacing: .08em;
}

/* ===== Overview ===== */
.sas-factory-overview--has-image {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
}
.sas-factory-overview__body,
.sas-factory-overview__body p {
	color: rgba(255,255,255,.6);
	font-size: .95rem;
	line-height: 1.8;
	font-family: 'Inter', sans-serif;
}
.sas-factory-overview__image img {
	width: 100%;
	border-radius: 16px;
	border: 1px solid rgba(232,98,138,.1);
	box-shadow: 0 8px 40px rgba(0,0,0,.3);
}

/* ===== Production Process Timeline ===== */
.sas-factory-process__timeline {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	margin-top: 1rem;
}
.sas-factory-process__step {
	position: relative;
	background: linear-gradient(180deg, #1a1028, #150d20);
	border: 1px solid rgba(232,98,138,.1);
	border-radius: 16px;
	padding: 2rem 1.5rem 1.5rem;
	text-align: center;
	transition: all .35s ease;
}
.sas-factory-process__step:hover {
	border-color: rgba(232,98,138,.25);
	transform: translateY(-4px);
	box-shadow: 0 12px 40px rgba(232,98,138,.1);
}
.sas-factory-process__number {
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	background: linear-gradient(135deg, #e8628a, #d4507a);
	color: #fff;
	font-family: 'Inter', sans-serif;
	font-size: .65rem;
	font-weight: 700;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.sas-factory-process__icon {
	font-size: 2.5rem;
	margin-bottom: .75rem;
}
.sas-factory-process__title {
	font-family: 'Inter', sans-serif;
	font-size: .95rem;
	font-weight: 700;
	color: #fff;
	margin: 0 0 .5rem;
}
.sas-factory-process__desc {
	font-family: 'Inter', sans-serif;
	font-size: .82rem;
	color: rgba(255,255,255,.5);
	line-height: 1.6;
	margin: 0;
}

/* ===== Video Showcase ===== */
.sas-factory-videos__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
}
.sas-factory-video__wrap {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	background: #1a1028;
	aspect-ratio: 16/9;
	cursor: pointer;
	border: 1px solid rgba(232,98,138,.1);
	transition: border-color .3s;
}
.sas-factory-video__wrap:hover {
	border-color: rgba(232,98,138,.3);
}
.sas-factory-video__wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s;
}
.sas-factory-video__wrap:hover img {
	transform: scale(1.05);
}
.sas-factory-video__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: rgba(232,98,138,.85);
	border: none;
	border-radius: 50%;
	width: 64px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	cursor: pointer;
	transition: all .3s;
	box-shadow: 0 8px 30px rgba(232,98,138,.3);
}
.sas-factory-video__play:hover {
	background: #e8628a;
	transform: translate(-50%, -50%) scale(1.1);
}
.sas-factory-video__play svg {
	margin-left: 4px;
}
.sas-factory-video__title {
	font-family: 'Inter', sans-serif;
	font-size: .85rem;
	font-weight: 600;
	color: rgba(255,255,255,.7);
	margin: .75rem 0 0;
	text-align: center;
}

/* Video modal */
.sas-factory-video-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	background: rgba(0,0,0,.85);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity .3s;
}
.sas-factory-video-modal.active {
	opacity: 1;
	pointer-events: auto;
}
.sas-factory-video-modal__inner {
	width: 90vw;
	max-width: 900px;
	aspect-ratio: 16/9;
	position: relative;
}
.sas-factory-video-modal__content {
	width: 100%;
	height: 100%;
}
.sas-factory-video-modal__inner video {
	width: 100%;
	height: 100%;
	border-radius: 12px;
}
.sas-factory-video__wrap--image {
	cursor: default;
}
.sas-factory-video-modal__close {
	position: absolute;
	top: -40px;
	right: 0;
	background: none;
	border: none;
	color: #fff;
	font-size: 1.5rem;
	cursor: pointer;
}

/* ===== Certifications ===== */
.sas-factory-certs {
	padding-bottom: 1.5rem;
}
.sas-factory-certs__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
}
.sas-factory-cert {
	background: linear-gradient(180deg, #1a1028, #150d20);
	border: 1px solid rgba(232,98,138,.1);
	border-radius: 16px;
	padding: 2rem 1.25rem;
	text-align: center;
	transition: all .35s;
}
.sas-factory-cert:hover {
	border-color: rgba(232,98,138,.25);
	transform: translateY(-4px);
	box-shadow: 0 12px 40px rgba(232,98,138,.1);
}
.sas-factory-cert__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: linear-gradient(135deg, rgba(232,98,138,.15), rgba(180,120,220,.1));
	border: 2px solid rgba(232,98,138,.2);
	font-family: 'Inter', sans-serif;
	font-size: .7rem;
	font-weight: 800;
	color: #e8628a;
	letter-spacing: .05em;
	margin-bottom: 1rem;
}
.sas-factory-cert__image {
	width: 72px;
	height: 72px;
	margin: 0 auto 1rem;
	border-radius: 12px;
	overflow: hidden;
}
.sas-factory-cert__image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.sas-factory-cert__name {
	font-family: 'Inter', sans-serif;
	font-size: .9rem;
	font-weight: 700;
	color: #fff;
	margin: 0 0 .4rem;
}
.sas-factory-cert__desc {
	font-family: 'Inter', sans-serif;
	font-size: .78rem;
	color: rgba(255,255,255,.5);
	line-height: 1.5;
	margin: 0;
}

/* ===== Certificate Images Row ===== */
.sas-factory-certimgs {
	padding: 0 0 3rem;
}
.sas-factory-certimgs__row {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	gap: 4px;
}
.sas-factory-certimgs__item {
	background: linear-gradient(180deg, #1a1028, #150d20);
	border: 1px solid rgba(232,98,138,.1);
	border-radius: 4px;
	overflow: hidden;
	transition: all .35s;
	flex: 1 1 0;
	min-width: 0;
	max-width: 200px;
	aspect-ratio: 210 / 297; /* A4 portrait */
}
.sas-factory-certimgs__item:hover {
	border-color: rgba(232,98,138,.25);
	transform: translateY(-3px);
	box-shadow: 0 8px 30px rgba(232,98,138,.12);
}
.sas-factory-certimgs__item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ===== Equipment Gallery ===== */
.sas-factory-equip__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
}
.sas-factory-equip__item {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid rgba(232,98,138,.08);
	aspect-ratio: 4/3;
	cursor: pointer;
	transition: all .35s;
}
.sas-factory-equip__item:hover {
	border-color: rgba(232,98,138,.25);
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(232,98,138,.1);
}
.sas-factory-equip__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s;
}
.sas-factory-equip__item:hover img {
	transform: scale(1.06);
}
.sas-factory-equip__caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: .5rem .75rem;
	background: linear-gradient(transparent, rgba(0,0,0,.7));
	font-family: 'Inter', sans-serif;
	font-size: .7rem;
	color: rgba(255,255,255,.8);
}

/* ===== CTA ===== */
.sas-factory-cta {
	text-align: center;
	padding: 5rem 0;
	position: relative;
}
.sas-factory-cta::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(232,98,138,.06) 0%, transparent 50%, rgba(180,120,220,.04) 100%);
	pointer-events: none;
}
.sas-factory-cta__heading {
	font-family: 'Playfair Display', serif;
	font-size: 2.4rem;
	font-weight: 700;
	color: #fff;
	margin: 0 0 1rem;
}
.sas-factory-cta__sub {
	font-family: 'Inter', sans-serif;
	font-size: 1.05rem;
	color: #9a8a9e;
	max-width: 550px;
	margin: 0 auto 2rem;
	line-height: 1.6;
}
.sas-factory-cta__btn {
	display: inline-block;
	background: linear-gradient(135deg, #e8628a, #d4507a);
	color: #fff;
	padding: .9rem 2.5rem;
	border-radius: 12px;
	font-family: 'Inter', sans-serif;
	font-size: .9rem;
	font-weight: 700;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: .08em;
	transition: all .3s;
	box-shadow: 0 8px 30px rgba(232,98,138,.25);
}
.sas-factory-cta__btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 40px rgba(232,98,138,.35);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
	.sas-factory-stats__grid { grid-template-columns: repeat(3, 1fr); }
	.sas-factory-process__timeline { grid-template-columns: repeat(2, 1fr); }
	.sas-factory-certs__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
	.sas-factory-hero { min-height: 420px; }
	.sas-factory-hero__title { font-size: 2.2rem; }
	.sas-factory-hero__subtitle { font-size: .95rem; }
	.sas-factory-section { padding: 3rem 0; }
	.sas-factory-section__title { font-size: 1.8rem; }
	.sas-factory-stats__grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
	.sas-factory-stat__number { font-size: 1.5rem; }
	.sas-factory-overview--has-image { grid-template-columns: 1fr; gap: 2rem; }
	.sas-factory-process__timeline { grid-template-columns: 1fr; gap: 1rem; }
	.sas-factory-videos__grid { grid-template-columns: 1fr; }
	.sas-factory-certs__grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
	.sas-factory-equip__grid { grid-template-columns: repeat(2, 1fr); }
	.sas-factory-certimgs__item { width: 140px; }
	.sas-factory-cta__heading { font-size: 1.8rem; }
}

/* ===== Light Mode ===== */
body.sas-light .sas-factory-hero { background: linear-gradient(135deg, #faf5f8 0%, #f0dce4 40%, #faf5f8 100%); }
body.sas-light .sas-factory-hero__overlay { background: rgba(255,255,255,.3); }
body.sas-light .sas-factory-hero__title { color: #2d2235; text-shadow: none; }
body.sas-light .sas-factory-hero__subtitle { color: #7a6a82; }
body.sas-light .sas-factory-hero__scroll { color: rgba(90,74,98,.4); }
body.sas-light .sas-factory-hero__scroll-line { background: linear-gradient(to bottom, rgba(232,98,138,.4), transparent); }
body.sas-light .sas-factory-hero::before { background: radial-gradient(circle, rgba(232,98,138,.08), transparent 70%); }
body.sas-light .sas-factory-hero::after { background: radial-gradient(circle, rgba(180,120,220,.06), transparent 70%); }
body.sas-light .sas-factory-section__title { color: #2d2235; }
body.sas-light .sas-factory-section__subtitle { color: #7a6a82; }
body.sas-light .sas-factory-divider { background: linear-gradient(to right, transparent, rgba(232,98,138,.1), transparent); }
body.sas-light .sas-factory-stats { background: linear-gradient(135deg, rgba(232,98,138,.03) 0%, rgba(250,245,248,.6) 50%, rgba(180,120,220,.02) 100%); border-color: rgba(232,98,138,.06); }
body.sas-light .sas-factory-stat__label { color: #7a6a82; }
body.sas-light .sas-factory-overview__body, body.sas-light .sas-factory-overview__body p { color: #5a4a62; }
body.sas-light .sas-factory-overview__image img { box-shadow: 0 8px 40px rgba(45,34,53,.1); border-color: rgba(232,98,138,.08); }
body.sas-light .sas-factory-process__step { background: #fff; border-color: rgba(232,98,138,.08); box-shadow: 0 2px 12px rgba(45,34,53,.04); }
body.sas-light .sas-factory-process__step:hover { box-shadow: 0 12px 40px rgba(232,98,138,.1); border-color: rgba(232,98,138,.2); }
body.sas-light .sas-factory-process__title { color: #2d2235; }
body.sas-light .sas-factory-process__desc { color: #7a6a82; }
body.sas-light .sas-factory-video__wrap { background: #faf5f7; border-color: rgba(232,98,138,.08); }
body.sas-light .sas-factory-video__title { color: #2d2235; }
body.sas-light .sas-factory-cert { background: #fff; border-color: rgba(232,98,138,.08); box-shadow: 0 2px 12px rgba(45,34,53,.04); }
body.sas-light .sas-factory-cert:hover { box-shadow: 0 12px 40px rgba(232,98,138,.1); border-color: rgba(232,98,138,.2); }
body.sas-light .sas-factory-cert__badge { background: linear-gradient(135deg, rgba(232,98,138,.08), rgba(212,160,185,.06)); border-color: rgba(232,98,138,.12); }
body.sas-light .sas-factory-cert__name { color: #2d2235; }
body.sas-light .sas-factory-cert__desc { color: #7a6a82; }
body.sas-light .sas-factory-equip__item { border-color: rgba(232,98,138,.06); }
body.sas-light .sas-factory-certimgs__item { background: #fff; border-color: rgba(232,98,138,.08); box-shadow: 0 2px 12px rgba(45,34,53,.04); }
body.sas-light .sas-factory-certimgs__item:hover { border-color: rgba(232,98,138,.2); box-shadow: 0 8px 24px rgba(232,98,138,.08); }
body.sas-light .sas-factory-equip__item:hover { border-color: rgba(232,98,138,.2); box-shadow: 0 8px 24px rgba(232,98,138,.08); }
body.sas-light .sas-factory-cta::before { background: linear-gradient(135deg, rgba(232,98,138,.04) 0%, rgba(250,245,248,.9) 50%, rgba(180,120,220,.03) 100%); }
body.sas-light .sas-factory-cta__heading { color: #2d2235; }
body.sas-light .sas-factory-cta__sub { color: #7a6a82; }
