/*
Theme Name: Solo Circus Modern
Description: A custom block theme scaffolded by Studio Code.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: solocircus-modern
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, style-variations
*/

/* WordPress inserts a margin-block-start equal to the block gap (24px unless
   theme.json sets styles.spacing.blockGap) between the template's top-level
   sections (header part, main, footer part) — a gap that exists even when no
   markup asks for it. Zero it so sections butt edge-to-edge and own their
   vertical rhythm via padding; this does not affect block gaps inside nested
   layouts. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* With that gap gone, main carries its own vertical padding so templates this
   theme does not author (WooCommerce shop, product, cart…) still clear the
   header and footer. A descendant selector, not a child one: WooCommerce wraps
   the single-product main in an extra group. Templates built from full-bleed
   sections opt out with is-flush and let the sections own the rhythm. */
.wp-site-blocks main {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}
.wp-site-blocks main.is-flush {
	padding-block: 0;
}

/* === Header & navigation === */
.sc-header {
	position: relative;
}
/* Only the menu bar is sticky/fixed: it pins to the top and the logo scrolls away */
.sc-header > nav.wp-block-navigation {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background: var(--wp--preset--color--gold);
	justify-content: flex-end;
	padding: 13px max(24px, calc(50% - 640px));
	border-bottom: 1px solid rgba(0, 0, 0, .12);
}
/* Logged in: sit below the admin bar (core sets its height: 32px, 46px under 782px) */
.admin-bar .sc-header > nav.wp-block-navigation {
	top: var(--wp-admin--admin-bar--height, 32px);
}
/* Under 600px core lets the admin bar scroll away, which would leave a gap above
   the pinned menu; keep the admin bar pinned too so the two stay stacked */
@media screen and (max-width: 600px) {
	.admin-bar #wpadminbar {
		position: fixed;
	}
}
.sc-header .sc-logo img {
	display: block;
	margin-inline: auto;
}
.sc-nav a {
	font-weight: 600;
	font-size: 14px;
	color: var(--wp--preset--color--text);
	text-decoration: none;
}
.sc-nav a:hover {
	color: var(--wp--preset--color--primary);
}
.sc-nav .wp-block-navigation__submenu-container a {
	color: var(--wp--preset--color--text);
}
.sc-nav .wp-block-navigation__submenu-container a:hover {
	color: var(--wp--preset--color--primary);
	opacity: 1;
}
.sc-nav {
	column-gap: 1.1rem;
	justify-content: flex-end;
}
.sc-header .wp-block-navigation__responsive-container-open {
	color: var(--wp--preset--color--text);
}
.wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--surface);
	border: 1px solid #ece5d6;
	border-radius: var(--wp--custom--rounded--sm);
	box-shadow: 0 14px 34px rgba(0, 0, 0, .10);
	padding: 6px 10px;
}

/* Responsive video embeds: keep the 16:9 iframe sized to its column */
.wp-block-post-content > .wp-block-embed.is-type-video,
.wp-block-column > .wp-block-embed.is-type-video {
	width: 100%;
}
.wp-block-post-content > .wp-block-embed.is-type-video .wp-block-embed__wrapper,
.wp-block-column > .wp-block-embed.is-type-video .wp-block-embed__wrapper {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
}
.wp-block-post-content > .wp-block-embed.is-type-video iframe,
.wp-block-column > .wp-block-embed.is-type-video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

/* Pages whose content opens with wide columns (the gallery pages): widen the
   template's title to match so it lines up with the first column */
main:has(> .wp-block-post-content > .wp-block-columns.alignwide:first-child) .wp-block-post-title {
	max-width: var(--wp--style--global--wide-size);
}

/* Galleries in a column (the gallery pages' sidebar): square thumbnails */
.wp-block-column > .wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) {
	aspect-ratio: 1;
}

/* === Image lightbox ("Enlarge on click") ===
   Core sets the backdrop to the site background (white, 90%) and the buttons to
   the text colour via inline styles, hence the !important overrides. */
.wp-lightbox-overlay .scrim {
	background-color: var(--wp--preset--color--text) !important;
	opacity: 1;
}
.wp-lightbox-overlay .wp-lightbox-close-button,
.wp-lightbox-overlay .wp-lightbox-navigation-button {
	fill: var(--wp--preset--color--surface) !important;
	color: var(--wp--preset--color--surface);
}
.wp-lightbox-overlay .wp-lightbox-close-button:hover,
.wp-lightbox-overlay .wp-lightbox-close-button:focus-visible,
.wp-lightbox-overlay .wp-lightbox-navigation-button:hover,
.wp-lightbox-overlay .wp-lightbox-navigation-button:focus-visible {
	fill: var(--wp--preset--color--gold) !important;
	color: var(--wp--preset--color--gold);
}
.wp-lightbox-overlay .wp-block-image figcaption {
	color: var(--wp--preset--color--surface);
}

/* === Footer === */
.sc-footer {
	color: var(--wp--preset--color--surface);
}
.sc-footer p,
.sc-footer .wp-block-site-title,
.sc-footer .wp-block-site-tagline {
	color: var(--wp--preset--color--surface);
}
.sc-footer .sc-footer-title {
	font-family: var(--wp--preset--font-family--figtree);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold);
	margin-block-end: var(--wp--preset--spacing--sm);
}
.sc-footer .wp-block-navigation a {
	color: var(--wp--preset--color--surface);
}
.sc-footer .wp-block-navigation a:hover {
	color: var(--wp--preset--color--gold);
}
.sc-footer .sc-footer-cta .wp-block-button__link,
.sc-footer .sc-footer-cta .wp-block-button__link:visited {
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--text);
}
.sc-footer .sc-footer-rule {
	background: rgba(255, 255, 255, .18);
	color: rgba(255, 255, 255, .18);
	border: 0;
	margin-block: var(--wp--preset--spacing--lg);
}

/* === Bands & section rhythm === */
.sc-band {
	padding-block: clamp(3.25rem, 8vw, 5.5rem);
}

/* === Eyebrows === */
.sc-eyebrow {
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
	margin: 0;
}
.sc-hero .sc-eyebrow {
	color: var(--wp--preset--color--surface);
}

/* === Hero === */
.sc-hero {
	color: var(--wp--preset--color--surface);
}
.sc-hero-title {
	color: var(--wp--preset--color--surface);
	font-size: clamp(2.4rem, 5.4vw, 3.9rem);
	line-height: 1.04;
	margin-block: .35em .3em;
}
.sc-hero-sub {
	max-width: 34em;
	color: rgba(255, 255, 255, .92);
}
.sc-hero-img {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--wp--custom--rounded--lg);
	box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
	margin: 0;
}
.sc-hero-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* === Section titles & lede === */
.sc-band-title {
	font-size: clamp(2rem, 4vw, 2.8rem);
	margin-block: .15em .5em;
}
.sc-lede {
	max-width: 46em;
	margin-inline: auto;
}

/* === Cards === */
.is-style-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid #ece5d6;
	border-radius: var(--wp--custom--rounded--lg);
	padding: var(--wp--preset--spacing--md);
	box-shadow: 0 12px 30px rgba(0, 0, 0, .06);
	transition: transform .25s ease, box-shadow .25s ease;
}
.is-style-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 40px rgba(0, 0, 0, .10);
}
.sc-highlight-n {
	font-size: var(--wp--preset--font-size--display);
	color: var(--wp--preset--color--primary);
	margin-block: 0 .15em;
}

/* === Offerings === */
.sc-card-title {
	font-size: var(--wp--preset--font-size--headline);
	margin-block: .5em .3em;
}
.sc-offering-img {
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: var(--wp--custom--rounded--md);
	margin: 0;
}
.sc-offering-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.sc-card-link {
	margin-block: .6em 0 0;
}
.sc-card-link a {
	font-weight: 600;
	color: var(--wp--preset--color--primary);
	text-decoration: none;
	border-bottom: 2px solid var(--wp--preset--color--gold);
}

/* === Acts === */
.sc-acts-grid {
	gap: var(--wp--preset--spacing--md);
}
.sc-act-img {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: var(--wp--custom--rounded--lg);
	margin: 0;
}
.sc-act-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .35s ease;
}
.sc-act:hover .sc-act-img img {
	transform: scale(1.05);
}
.sc-act-name {
	text-align: center;
	font-size: var(--wp--preset--font-size--body);
	font-weight: 700;
	margin-block: .6em 0 0;
}
.sc-acts-more a {
	font-weight: 600;
	color: var(--wp--preset--color--primary);
}

/* === Testimonials === */
.sc-quote-text {
	font-size: 1.12rem;
	line-height: 1.5;
}
.sc-quote-attrib {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	margin-block-start: 1em;
}
.sc-quotes-more a {
	font-weight: 600;
	color: var(--wp--preset--color--primary);
}

/* === CTA === */
.sc-cta {
	color: var(--wp--preset--color--surface);
}
.sc-cta-title {
	color: var(--wp--preset--color--surface);
	font-size: clamp(2rem, 4vw, 3rem);
}
.sc-cta-sub {
	color: rgba(255, 255, 255, .9);
	max-width: 36em;
	margin-inline: auto;
}
.sc-cta-note {
	color: rgba(255, 255, 255, .85);
	margin-block-start: var(--wp--preset--spacing--md);
}
.sc-cta-note a {
	color: var(--wp--preset--color--gold);
}

/* === Buttons === */
.wp-block-button .wp-block-button__link {
	transition: background-color .2s ease, transform .2s ease, border-color .2s ease;
}
.wp-block-button .wp-block-button__link:hover {
	background: var(--wp--preset--color--primary-deep);
}
.wp-block-button.is-style-gold .wp-block-button__link {
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--text);
}
.wp-block-button.is-style-gold .wp-block-button__link:hover {
	background: #bd7a18;
}
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--surface);
	border: 2px solid rgba(255, 255, 255, .7);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: rgba(255, 255, 255, .12);
	border-color: #ffffff;
}

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
	.is-style-card {
		transform: none;
	}
	.sc-act-img img {
		transform: none;
	}
}
