/*
Theme Name: Club Sandwich
Theme URI: https://example.com/club-sandwich
Description: Club Sandwich child block theme, built on the Acme Theme starter.
Author: Club Sandwich
Template: acme-theme
Version: 1.0.1
Text Domain: club-sandwich
License: GPL-2.0-or-later
*/

:root {
	--club-maroon: #7b242b;
	--club-cream: #f1f2f2;
	--club-yellow: #ffc60b;
	--club-yellow-hover: #ffd95a;
	--club-brown: #b17640;
	--club-ink: #231f20;
	--club-panel: rgba(255, 255, 255, 0.06);
	--club-border: rgba(255, 255, 255, 0.15);
}

html {
	scroll-behavior: smooth;
}

body {
	overflow-x: hidden;
}

body,
.editor-styles-wrapper {
	background: var(--club-maroon);
	color: #fff;
}

a {
	transition: color 180ms ease;
}

a:hover {
	color: var(--club-yellow-hover);
}

.club-shell {
	width: min(1100px, 92vw);
	margin-inline: auto;
	padding-inline: 16px;
}

.club-header {
	border-bottom: 1px solid var(--club-border);
	padding-block: 40px 24px;
}

.club-header .wp-block-image {
	margin: 0;
}

.club-logo img {
	display: block;
	width: auto;
	height: 56px;
}

.club-main {
	padding-bottom: 24px;
}

.club-section {
	margin-block: 24px;
	padding-block: 36px;
}

.club-hero {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 32px;
	align-items: center;
	padding-top: 32px;
}

.club-hero > * {
	min-width: 0;
}

.club-tagline {
	color: var(--club-cream);
	font-size: clamp(1rem, 2vw, 1.125rem);
}

.club-video {
	overflow: hidden;
	margin: 0;
	border-radius: 14px;
	background: #000;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.club-video .wp-block-embed__wrapper {
	aspect-ratio: 16 / 9;
}

.club-video iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.club-card-grid,
.club-resource-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.club-card,
.club-resource-card {
	height: 100%;
	margin: 0;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 14px;
	background: var(--club-panel);
}

.club-card {
	padding: 18px;
}

.club-card > :first-child,
.club-resource-card > :first-child {
	margin-top: 0;
}

.club-card > :last-child,
.club-resource-card > :last-child {
	margin-bottom: 0;
}

.club-resource-card {
	overflow: hidden;
	transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.club-resource-card:hover {
	transform: translateY(-3px);
	border-color: rgba(255, 255, 255, 0.22);
	box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
}

.club-resource-card .wp-block-image {
	margin: 12px 12px 0;
	border: 6px solid #fff;
	border-radius: 10px;
	background: #fff;
}

.club-resource-card .wp-block-image img {
	display: block;
	width: 100%;
	aspect-ratio: 17 / 22;
	object-fit: cover;
}

.club-resource-card.club-audio-card .wp-block-image img {
	aspect-ratio: 1;
}

.club-resource-body {
	padding: 12px;
}

.club-resource-title {
	font-weight: 800;
}

.club-resource-note {
	color: var(--club-cream);
	font-size: 0.875rem;
}

.club-resource-card .wp-block-audio {
	margin-bottom: 0;
}

.club-resource-card audio {
	width: 100%;
}

.wp-block-button__link {
	border: 1px solid var(--club-brown);
	box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
	font-weight: 800;
	transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.wp-block-button__link:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	border-color: rgba(255, 255, 255, 0.4);
	color: #fff;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.12);
}

.club-start-intro {
	position: relative;
	padding-top: 56px;
}

.club-back-link {
	font-weight: 700;
	text-decoration: none;
}

.club-start-card {
	margin-block: 36px;
	padding: 24px;
}

.club-start-card ul {
	padding-left: 1.4rem;
}

.wp-block-acme-accordion.club-accordion {
	margin-bottom: 14px;
	border-color: rgba(255, 255, 255, 0.18);
	border-radius: 12px;
	background: var(--club-panel);
}

.wp-block-acme-accordion.club-accordion .acme-accordion__summary {
	padding: 18px;
	background: transparent;
	color: #fff;
}

.wp-block-acme-accordion.club-accordion .acme-accordion__body {
	padding: 0 18px 18px;
	background: transparent;
	color: #fff;
}

.club-footer {
	margin-top: 56px;
	border-top: 1px solid var(--club-border);
	padding-block: 20px 30px;
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.875rem;
}

.club-footer p {
	margin: 0;
}

.club-footer .wp-block-group {
	gap: 0.35rem;
}

.club-reveal {
	opacity: 1;
	transform: none;
}

.club-has-motion .club-reveal.is-visible {
	animation: club-reveal 600ms ease both;
}

@keyframes club-reveal {
	from {
		opacity: 0;
		transform: translateY(12px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 900px) {
	.club-hero,
	.club-card-grid,
	.club-resource-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 700px) {
	.club-shell {
		width: 100%;
		padding-inline: 16px;
	}

	.club-header {
		padding-block: 24px 16px;
	}

	.club-logo img {
		height: 48px;
	}

	.club-hero {
		gap: 18px;
		padding-top: 20px;
	}

	.club-hero .club-video {
		order: -1;
	}

	.club-section {
		padding-block: 28px;
	}

	.wp-block-buttons .wp-block-button {
		width: 100%;
	}

	.wp-block-buttons .wp-block-button__link {
		width: 100%;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition: none !important;
	}

	.club-has-motion .club-reveal,
	.club-has-motion .club-reveal.is-visible {
		opacity: 1;
		transform: none;
		animation: none;
	}
}
