/*
Theme Name: Astra Story Films
Theme URI: https://harmoniccelebrations.local
Description: A custom Astra child theme for a cinematic one-page video storytelling website.
Author: OpenAI Codex
Template: astra
Version: 1.0.0
Text Domain: astra-storyfilms
*/

:root {
	--sf-bg: #f7f4ef;
	--sf-surface: #fffcf8;
	--sf-card: rgba(255, 255, 255, 0.82);
	--sf-ink: #111111;
	--sf-muted: #5f5a54;
	--sf-line: rgba(17, 17, 17, 0.1);
	--sf-accent: #b48652;
	--sf-accent-strong: #8a6237;
	--sf-dark: #111111;
	--sf-shadow: 0 24px 80px rgba(17, 17, 17, 0.12);
	--sf-radius: 28px;
}

body,
body .site {
	background:
		radial-gradient(circle at top left, rgba(180, 134, 82, 0.15), transparent 34%),
		radial-gradient(circle at top right, rgba(17, 17, 17, 0.05), transparent 28%),
		var(--sf-bg);
	color: var(--sf-ink);
	font-family: "Manrope", sans-serif;
}

body .ast-container {
	max-width: 100%;
	padding-left: 0;
	padding-right: 0;
}

body.home .site-content > .ast-container,
body.home .entry-content[ast-blocks-layout] {
	max-width: 100%;
	padding: 0;
}

body.home .site-content #primary,
body.home .ast-page-builder-template .site-content #primary {
	width: 100%;
	margin-left: 0;
}

@media (min-width: 921px) {
	body.home .site-content #primary,
	body.home .ast-page-builder-template .site-content #primary {
		width: 90%;
		margin-left: 20rem;
	}
}

body.home .entry-header,
body.home .post-navigation,
body.home .comments-area,
body.home .ast-breadcrumbs,
body.home .main-header-bar-wrap,
body.home .ast-above-header-wrap,
body.home .ast-below-header-wrap,
body.home .main-footer-bar-wrap,
body.home .ast-small-footer-wrap,
body.home .ast-footer-overlay {
	display: none;
}

.sf-topbar {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 30;
	width: 20%;
	height: 100vh;
	box-sizing: border-box;
	border-right: 1px solid rgba(17, 17, 17, 0.08);
	background: rgba(247, 244, 239, 0.9);
	backdrop-filter: blur(14px);
}

.sf-topbar-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	justify-content: center;
	column-gap: 24px;
	height: 100%;
	padding: 48px 0;
	transform: translateY(-5rem);
}

.sf-brand,
.sf-brand:visited {
	color: var(--sf-ink);
	font-size: 0.95rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	align-self: center;
}

.sf-brand img {
	display: block;
	width: min(220px, 100%);
	height: auto;
}

.sf-menu-toggle,
.sf-menu-close {
	display: none;
	border: 0;
	background: transparent;
	color: var(--sf-ink);
	cursor: pointer;
}

.sf-menu-toggle {
	padding: 8px 6px;
}

.sf-menu-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	margin: 5px 0;
	background: var(--sf-ink);
}

.sf-nav,
.sf-footer-nav {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	gap: 18px;
}

.sf-nav a,
.sf-nav a:visited,
.sf-footer-nav a,
.sf-footer-nav a:visited {
	color: var(--sf-ink);
	font-size: 0.94rem;
	font-weight: 700;
	text-decoration: none;
}

.sf-nav a:hover,
.sf-footer-nav a:hover {
	color: var(--sf-accent-strong);
}

.storyfilms-page {
	position: relative;
	overflow: hidden;
	width: auto;
	margin-left: 20%;
	min-height: 100vh;
}

.sf-shell {
	width: min(1180px, calc(100% - 40px));
	margin: 0 auto;
}

.sf-hero,
.sf-section {
	padding: 88px 0;
}

.sf-hero {
	padding-top: 92px;
	transform: translateY(-5rem);
}

@media (min-width: 921px) {
	.sf-hero {
		transform: translateY(-2rem);
	}
}

.sf-hero-grid,
.sf-split {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 40px;
	align-items: center;
}

.sf-hero-grid {
	min-height: calc(100vh - 92px);
	align-content: center;
	transform: translateY(-2rem);
}

.sf-kicker,
.sf-section-label {
	margin: 0 0 16px;
	color: var(--sf-accent-strong);
	font-size: 0.84rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.sf-hero h1,
.sf-section h2,
.sf-cta-card h2 {
	margin: 0;
	font-family: "Cormorant Garamond", serif;
	font-size: clamp(3.4rem, 8vw, 6.4rem);
	line-height: 0.94;
	letter-spacing: -0.04em;
}

.sf-section h2,
.sf-cta-card h2 {
	font-size: clamp(2.4rem, 5vw, 4.2rem);
}

.sf-lead,
.sf-section-intro p,
.sf-copy p,
.sf-cta-card p,
.sf-video-card p,
.sf-service-card p,
.sf-contact-card p {
	color: var(--sf-muted);
	font-size: 1.02rem;
	line-height: 1.8;
}

.sf-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 30px;
}

.sf-button,
.sf-button:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 15px 24px;
	border-radius: 999px;
	background: var(--sf-dark);
	color: #ffffff;
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.25s ease, background 0.25s ease;
}

.sf-button:hover {
	background: var(--sf-accent-strong);
	color: #ffffff;
	transform: translateY(-2px);
}

.sf-link,
.sf-link:visited,
.sf-contact-card a,
.sf-contact-card a:visited {
	color: var(--sf-ink);
	font-weight: 700;
	text-decoration: none;
}

.sf-contact-card a {
	font-size: 0.9rem;
	white-space: nowrap;
}

.sf-link:hover,
.sf-contact-card a:hover {
	color: var(--sf-accent-strong);
}

.sf-video-frame,
.sf-service-card,
.sf-contact-card,
.sf-cta-card {
	border: 1px solid var(--sf-line);
	border-radius: var(--sf-radius);
	background: var(--sf-card);
	backdrop-filter: blur(10px);
	box-shadow: var(--sf-shadow);
}

.sf-video-frame {
	position: relative;
	min-height: 320px;
	overflow: hidden;
}

.sf-video-frame iframe {
	display: block;
	width: 100%;
	height: 100%;
	min-height: inherit;
	border: 0;
}

.sf-video-frame--hero {
	min-height: 560px;
	background:
		linear-gradient(160deg, rgba(17, 17, 17, 0.88), rgba(17, 17, 17, 0.52)),
		radial-gradient(circle at top, rgba(180, 134, 82, 0.35), transparent 42%),
		#181818;
}

.sf-video-badge {
	position: absolute;
	top: 22px;
	left: 22px;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.sf-video-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: inherit;
	padding: 32px;
	text-align: center;
	color: #ffffff;
}

.sf-video-placeholder span {
	max-width: 300px;
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.5;
}

.sf-video-placeholder small {
	margin-top: 12px;
	font-size: 0.92rem;
	color: rgba(255, 255, 255, 0.76);
}

.sf-section-intro {
	max-width: 680px;
	margin-bottom: 34px;
}

.sf-video-grid,
.sf-service-grid,
.sf-contact-grid {
	display: grid;
	gap: 24px;
}

.sf-video-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sf-service-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sf-contact-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-top: 24px;
}

.sf-video-card,
.sf-service-card,
.sf-contact-card {
	display: flex;
	flex-direction: column;
}

.sf-video-card h3,
.sf-service-card h3,
.sf-contact-card h3 {
	margin: 0 0 10px;
	font-size: 1.28rem;
	line-height: 1.3;
}

.sf-video-meta {
	margin: 0 0 10px;
	color: var(--sf-accent-strong);
	font-size: 0.85rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.sf-video-card .sf-video-frame {
	min-height: 220px;
	margin-bottom: 18px;
	background:
		linear-gradient(180deg, rgba(17, 17, 17, 0.72), rgba(17, 17, 17, 0.84)),
		radial-gradient(circle at top, rgba(180, 134, 82, 0.28), transparent 36%),
		#222222;
}

.sf-video-card,
.sf-service-card,
.sf-contact-card,
.sf-cta-card {
	padding: 26px;
}

.sf-section--dark {
	background: #111111;
	color: #ffffff;
}

.sf-section--dark .sf-section-label,
.sf-section--dark .sf-service-card h3 {
	color: #f5d8b4;
}

.sf-section--dark .sf-section-intro h2,
.sf-section--dark .sf-service-card h3 {
	color: #ffffff;
}

.sf-section--dark .sf-section-intro p,
.sf-section--dark .sf-service-card p {
	color: rgba(255, 255, 255, 0.75);
}

.sf-section--dark .sf-service-card {
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.1);
	box-shadow: none;
}

.sf-section--cta {
	padding-bottom: 72px;
}

.sf-section--legal {
	padding-top: 0;
}

.sf-legal-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.sf-quote-block {
	grid-column: 1 / -1;
	padding: 8px 12px 4px;
	text-align: center;
}

.sf-quote-block p {
	margin: 0;
	font-family: "Cormorant Garamond", serif;
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	font-weight: 600;
	letter-spacing: -0.02em;
}

.sf-legal-card {
	padding: 26px;
	border: 1px solid var(--sf-line);
	border-radius: var(--sf-radius);
	background: rgba(255, 255, 255, 0.72);
	box-shadow: var(--sf-shadow);
}

.sf-legal-card h2 {
	font-size: clamp(2rem, 4vw, 3rem);
}

.sf-cta-card {
	padding: 36px;
	margin-bottom: 24px;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 248, 239, 0.92));
}

.reveal {
	animation: sf-fade-up 0.8s ease both;
}

.reveal-delay-1 {
	animation-delay: 0.12s;
}

.reveal-delay-2 {
	animation-delay: 0.24s;
}

@keyframes sf-fade-up {
	from {
		opacity: 0;
		transform: translateY(18px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 920px) {
	.sf-topbar {
		position: fixed;
		top: 0;
		left: auto;
		width: 100%;
		height: auto;
		border-right: 0;
		border-bottom: 1px solid rgba(17, 17, 17, 0.08);
	}

	.sf-hero,
	.sf-section {
		padding: 72px 0;
	}

	.sf-hero-grid,
	.sf-split,
	.sf-video-grid,
	.sf-service-grid,
	.sf-contact-grid,
	.sf-legal-grid {
		grid-template-columns: 1fr;
	}

	.sf-hero {
		padding-top: 96px;
		transform: none;
	}

	.sf-hero-grid {
		min-height: auto;
		transform: none;
	}

	.sf-topbar-inner {
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		height: auto;
		padding: 18px 0;
		transform: none;
	}

	.sf-brand img {
		width: min(160px, 100%);
	}

	.sf-menu-toggle,
	.sf-menu-close {
		display: block;
	}

	.sf-nav {
		position: fixed;
		top: 0;
		right: 0;
		z-index: 50;
		width: min(320px, 82vw);
		height: 100vh;
		padding: 1rem 24px 32px;
		border-left: 1px solid rgba(17, 17, 17, 0.08);
		background: rgba(247, 244, 239, 0.98);
		box-shadow: -20px 0 60px rgba(17, 17, 17, 0.14);
		align-items: flex-start;
		justify-content: flex-start;
		gap: 20px;
		transform: translateX(100%);
		transition: transform 0.25s ease;
	}

	.storyfilms-page {
		width: 100%;
		margin-left: 0;
		padding-top: 88px;
	}

	body.home .site-content #primary,
	body.home .ast-page-builder-template .site-content #primary {
		width: 100%;
		margin-left: 0;
	}

	.sf-video-frame--hero {
		min-height: 380px;
	}

	body.sf-menu-open .sf-nav {
		transform: translateX(0);
	}

	.sf-menu-close {
		align-self: flex-end;
		padding: 0;
		margin-bottom: 0.5rem;
		font-size: 2rem;
		line-height: 1;
	}

	.sf-nav a,
	.sf-nav a:visited {
		font-size: 1rem;
	}
}

@media (max-width: 640px) {
	.sf-hero {
		transform: translateY(-10rem);
	}

	.storyfilms-page > .sf-section {
		transform: translateY(-10rem);
	}

	.storyfilms-page > section[id] {
		scroll-margin-top: calc(3rem + 88px + 10rem);
	}

	.sf-brand img {
		width: 25%;
	}

	.sf-shell {
		width: min(100% - 24px, 1180px);
	}

	.sf-hero h1,
	.sf-section h2,
	.sf-cta-card h2 {
		line-height: 1;
	}

	.sf-video-card,
	.sf-service-card,
	.sf-contact-card,
	.sf-cta-card {
		padding: 22px;
	}
}
