/* ==========================================================================
   HOMEPAGE HERO (classes used by patterns/hero.php)
   Styling lives here, not in inline styles, so the block editor can validate it.
   ========================================================================== */
:root {
	--radius-photo: 28px;
	--radius-card: 24px;
}

.lgm-hero-section {
	background-image:
		linear-gradient(rgba(30, 17, 36, 0.9), rgba(30, 17, 36, 0.9)),
		url('../images/taishan-hero.webp');
	background-size: cover;
	background-position: center;
}

.lgm-hero-eyebrow {
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin: 0 0 0.75rem;
}

.lgm-hero-title {
	font-size: clamp(2.4rem, 5vw, 3.8rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.03em;
	margin: 0 0 1.5rem;
}

.lgm-hero-lead {
	font-size: 1.125rem;
	line-height: 1.65;
	margin: 0 0 2.5rem;
}

.lgm-hero-actions {
	margin-bottom: 2.5rem;
}

.lgm-hero-rating-stars {
	font-size: 0.9375rem;
	margin: 0;
}

.lgm-hero-rating-text {
	font-size: 0.875rem;
	font-weight: 600;
	margin: 0;
}

.lgm-hero-collage {
	gap: 1.25rem;
}

.lgm-hero-collage > .wp-block-column:last-child {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.lgm-hero-photo {
	margin: 0;
}

.lgm-hero-photo img {
	width: 100%;
	object-fit: cover;
	object-position: center top;
	border-radius: var(--radius-card);
}

.lgm-hero-photo--main img {
	height: 380px;
	border-radius: var(--radius-photo);
}

.lgm-hero-photo--sub img {
	height: 180px;
}

@media (max-width: 781px) {
	.lgm-hero-title {
		font-size: 2.4rem;
	}

	.lgm-hero-photo--main img {
		height: 260px;
	}

	.lgm-hero-photo--sub img {
		height: 150px;
	}
}

/* ==========================================================================
   PROGRAMS SECTION (classes used by patterns/programs.php)
   ========================================================================== */
.lgm-programs-section {
	padding-block: var(--wp--preset--spacing--70);
	padding-inline: var(--wp--preset--spacing--40);
}

.lgm-programs-intro {
	text-align: center;
	margin-bottom: var(--wp--preset--spacing--50);
}

.lgm-programs-eyebrow {
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin: 0 0 0.75rem;
}

.lgm-programs-title {
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0 0 1rem;
}

.lgm-programs-intro-text {
	font-size: 1.0625rem;
	max-width: 680px;
	margin: 0 auto;
}

.lgm-card-grid {
	gap: var(--wp--preset--spacing--30);
}

.lgm-card-grid--second {
	margin-top: var(--wp--preset--spacing--30);
}

.lgm-program-card {
	padding-block: var(--wp--preset--spacing--40);
	padding-inline: var(--wp--preset--spacing--30);
}

.lgm-program-eyebrow {
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin: 0 0 0.5rem;
}

.lgm-program-name {
	font-size: 1.25rem;
	font-weight: 800;
	margin: 0 0 0.5rem;
}

.lgm-program-text {
	font-size: 0.875rem;
	line-height: 1.6;
	margin: 0 0 0.75rem;
}

.lgm-program-meta {
	font-size: 0.75rem;
	font-weight: 700;
	margin: 0 0 0.75rem;
}

.lgm-program-link {
	font-size: 0.875rem;
	font-weight: 800;
	margin: 0;
}

/* ==========================================================================
   SHARED SECTION CLASSES (why-legacy and later sections)
   ========================================================================== */
.lgm-section {
	padding-block: var(--wp--preset--spacing--70);
	padding-inline: var(--wp--preset--spacing--40);
}

.lgm-intro {
	text-align: center;
	margin-bottom: var(--wp--preset--spacing--50);
}

.lgm-eyebrow {
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin: 0 0 0.75rem;
}

.lgm-section-title {
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0 0 1rem;
}

.lgm-lead {
	font-size: 1.0625rem;
	max-width: 680px;
	margin: 0 auto;
}

.lgm-benefit-card {
	padding-block: var(--wp--preset--spacing--40);
	padding-inline: var(--wp--preset--spacing--30);
}

.lgm-benefit-title {
	font-size: 1.125rem;
	font-weight: 800;
	margin: 0 0 0.5rem;
}

.lgm-benefit-text {
	font-size: 0.875rem;
	line-height: 1.6;
	margin: 0;
}

/* ==========================================================================
   PARTIES & CAMPS PACKAGES (classes used by patterns/parties-camps.php)
   ========================================================================== */
.lgm-party-card {
	padding-block: var(--wp--preset--spacing--40);
	padding-inline: var(--wp--preset--spacing--30);
}

.lgm-tier-label {
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin: 0 0 0.5rem;
}

.lgm-package-name {
	font-size: 1.375rem;
	font-weight: 800;
	margin: 0 0 0.5rem;
}

.lgm-package-meta {
	font-size: 0.8125rem;
	margin: 0 0 0.5rem;
}

.lgm-package-price {
	font-size: 1.75rem;
	font-weight: 800;
	margin: 0 0 0.25rem;
}

.lgm-package-extra {
	font-size: 0.75rem;
	margin: 0 0 0.75rem;
}

.lgm-package-list {
	font-size: 0.8125rem;
	line-height: 1.7;
}

.lgm-package-cta {
	margin-top: var(--wp--preset--spacing--30);
}

.lgm-notice {
	margin-top: var(--wp--preset--spacing--40);
	padding: var(--wp--preset--spacing--30);
	text-align: center;
}

.lgm-notice-text {
	font-size: 0.875rem;
	font-weight: 700;
	margin: 0;
}

.lgm-notice-sub {
	font-size: 0.8125rem;
	margin: 0.35rem 0 0;
}

/* ==========================================================================
   GYMNAST SPOTLIGHT & OUR STORY (classes used by patterns)
   ========================================================================== */
.lgm-spotlight-card {
	padding: var(--wp--preset--spacing--50);
}

.lgm-spotlight-columns,
.lgm-split {
	gap: var(--wp--preset--spacing--50);
}

.lgm-spotlight-photo {
	margin: 0;
}

.lgm-spotlight-photo img {
	width: 100%;
	height: 340px;
	object-fit: cover;
	border-radius: var(--radius-photo);
}

.lgm-spotlight-title {
	font-size: 2rem;
	font-weight: 800;
	margin: 0 0 0.5rem;
}

.lgm-spotlight-subtitle {
	font-size: 0.9375rem;
	font-weight: 700;
	margin: 0 0 1rem;
}

.lgm-spotlight-bio {
	line-height: 1.65;
	margin: 0;
}

.lgm-story-photo {
	margin: 0;
}

.lgm-story-photo img {
	width: 100%;
	height: 380px;
	object-fit: cover;
	border-radius: var(--radius-photo);
}

.lgm-story-text {
	font-size: 1.0625rem;
	line-height: 1.65;
}

.lgm-story-list {
	font-size: 0.9375rem;
	line-height: 1.7;
}

@media (max-width: 781px) {
	.lgm-spotlight-photo img {
		height: 240px;
	}

	.lgm-story-photo img {
		height: 260px;
	}
}

/* ==========================================================================
   FIRST VISIT STEPS, CENTRED CTA, VIDEO STACK (classes used by patterns)
   ========================================================================== */
.lgm-step-card {
	padding-block: var(--wp--preset--spacing--40);
	padding-inline: var(--wp--preset--spacing--30);
}

.lgm-step-number {
	font-size: 1.5rem;
	font-weight: 800;
	margin: 0 0 0.5rem;
}

.lgm-step-title {
	font-size: 1.25rem;
	font-weight: 800;
	margin: 0 0 0.5rem;
}

.lgm-step-text {
	font-size: 0.875rem;
	line-height: 1.6;
	margin: 0;
}

.lgm-cta-center {
	display: flex;
	justify-content: center;
	margin-top: var(--wp--preset--spacing--50);
}

.lgm-action-stack {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--20);
}

/* ==========================================================================
   GOOGLE REVIEWS (classes used by patterns/reviews.php)
   ========================================================================== */
.lgm-rating-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
	margin-top: var(--wp--preset--spacing--20);
}

.lgm-rating-stars,
.lgm-rating-score,
.lgm-rating-count {
	margin: 0;
}

.lgm-rating-stars {
	font-size: 0.9375rem;
}

.lgm-rating-score {
	font-size: 0.875rem;
	font-weight: 800;
}

.lgm-rating-count {
	font-size: 0.8125rem;
}

.lgm-review-card {
	padding-block: var(--wp--preset--spacing--40);
	padding-inline: var(--wp--preset--spacing--30);
}

.lgm-review-stars {
	margin: 0 0 0.5rem;
}

.lgm-review-text {
	font-size: 0.875rem;
	line-height: 1.65;
	margin: 0 0 var(--wp--preset--spacing--20);
}

.lgm-review-name {
	font-size: 0.875rem;
	font-weight: 800;
	margin: 0;
}

.lgm-review-source {
	font-size: 0.75rem;
	margin: 0;
}

/* ==========================================================================
   PRICING TABLES (classes used by patterns/pricing-tables.php)
   ========================================================================== */
.lgm-price-lead {
	font-size: 1.0625rem;
	font-weight: 600;
	margin: 0 0 0.25rem;
}

.lgm-price-note {
	font-size: 0.875rem;
	margin: 0;
}

.lgm-walkin-heading-wrap {
	text-align: center;
	margin-top: var(--wp--preset--spacing--60);
	margin-bottom: var(--wp--preset--spacing--30);
}

.lgm-walkin-heading {
	font-size: 1.5rem;
	font-weight: 800;
}

.lgm-walkin-card {
	padding: var(--wp--preset--spacing--30);
}

.lgm-walkin-title {
	font-size: 1.125rem;
	font-weight: 800;
	margin: 0 0 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 1.5px solid rgba(61, 38, 69, 0.08);
}

.lgm-rate-list,
.lgm-notes-list {
	list-style: none;
	margin: 0;
	padding-left: 0;
	line-height: 1.8;
	font-size: 0.9375rem;
}

.lgm-notes-card {
	margin-top: var(--wp--preset--spacing--40);
	padding: var(--wp--preset--spacing--40);
	border-left: 4px solid var(--wp--preset--color--gold);
}

.lgm-notes-title {
	font-size: 1.25rem;
	font-weight: 800;
	margin: 0 0 0.75rem;
}

.lgm-notes-list {
	line-height: 1.75;
	padding-left: 1.25rem;
	list-style: disc;
}

.lgm-contact-bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	margin-top: var(--wp--preset--spacing--40);
	padding: var(--wp--preset--spacing--30);
}

.lgm-contact-text {
	font-weight: 700;
	margin: 0;
}

/* ==========================================================================
   PHOTO GALLERY (classes used by patterns/photo-gallery.php)
   ========================================================================== */
.lgm-photo-grid-showcase .lgm-photo-grid-card img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	object-position: center top;
}

.lgm-photo-grid-showcase .lgm-photo-grid-card--low img {
	object-position: center 20%;
}

@media (max-width: 781px) {
	.lgm-photo-grid-showcase .lgm-photo-grid-card img {
		height: 160px;
	}
}

/* ==========================================================================
   LOCATION MAP & TODAY'S CLASSES (classes used by patterns)
   ========================================================================== */
.lgm-location-text {
	font-size: 0.9375rem;
	line-height: 1.65;
}

.lgm-location-list {
	font-size: 0.9375rem;
	line-height: 1.8;
}

.lgm-cta-start {
	margin-top: var(--wp--preset--spacing--30);
}

.lgm-venue-card {
	border-radius: var(--radius-photo);
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
	text-align: center;
}

.lgm-venue-pin {
	font-size: 2.5rem;
	margin: 0 0 0.625rem;
}

.lgm-venue-title {
	font-size: 1.5rem;
	font-weight: 800;
}

.lgm-venue-address {
	font-size: 0.875rem;
	line-height: 1.6;
}

.lgm-venue-note {
	font-size: 0.8125rem;
	font-weight: 700;
}

/* Quick Navigation bar and hero image (moved from inline styles) */
.lgm-toc-bar { text-align: center; }
.lgm-featured-hero-img img { border-radius: 12px; width: 100%; height: auto; max-height: 450px; object-fit: cover; }

/* Parties schedule cards (birthday party timeline) */
.lgm-schedule-card {
	padding: 1.5rem 1.25rem !important;
	border-radius: var(--radius-card, 20px) !important;
	background-color: var(--wp--preset--color--white);
	box-shadow: var(--card-shadow, 0 12px 32px -8px rgba(30, 17, 36, 0.08));
	border: 1px solid rgba(61, 38, 69, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	display: flex !important;
	flex-direction: column !important;
	box-sizing: border-box !important;
}

.lgm-schedule-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 36px -8px rgba(30, 17, 36, 0.12);
}

.lgm-schedule-time {
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	margin: 0 0 0.5rem;
}

.lgm-schedule-heading {
	font-size: 1.125rem;
	font-weight: 800;
	line-height: 1.3;
	margin: 0 0 0.5rem;
}

.lgm-schedule-desc {
	font-size: 0.8125rem;
	line-height: 1.55;
	margin: 0;
}

/* Parties schedule heading spacing */
.lgm-schedule-title {
	margin-bottom: var(--wp--preset--spacing--large, 2rem) !important;
}

/* Parties schedule columns gap */
#party-schedule .wp-block-columns {
	gap: 1.25rem !important;
}

/* Feedback & Concerns page: card layout and modern Fluent Forms styling */
.wp-block-post-content:has(.ff-el-form-control):not(:has(.lgm-contact-grid-row)) { max-width: 720px; margin: 40px auto; padding: clamp(24px, 4vw, 44px); background: #ffffff; border-radius: 24px; border: 1px solid rgba(61, 38, 69, 0.08); box-shadow: 0 18px 50px rgba(61, 38, 69, 0.10); }
.ff-el-group { margin-bottom: 20px; }
.ff-el-input--label label { display: block; font-weight: 600; color: #2b1a31; margin-bottom: 8px; }
.ff-el-form-control { width: 100%; box-sizing: border-box; padding: 13px 16px; border: 1px solid #d9cfe0; border-radius: 12px; background: #fbf9fc; font-size: 1rem; color: #2b1a31; transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }
.ff-el-form-control:focus { outline: none; border-color: #8b5cf6; box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15); background: #ffffff; }
textarea.ff-el-form-control { min-height: 140px; resize: vertical; }
.ff-el-is-error .ff-el-form-control { border-color: #dc2626; }
.ff-btn-submit { background: #3d2645; color: #ffffff; border: 0; border-radius: 999px; padding: 14px 30px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: background 0.2s ease; }
.ff-btn-submit:hover { background: #2b1a31; }
.ff-btn-submit:focus-visible { outline: 3px solid #8b5cf6; outline-offset: 3px; }

/* Feedback form: matching fields, frames, and a toggle for follow-up consent */
.wp-block-post-content:has(.ff-el-form-control) input[type="text"],
.wp-block-post-content:has(.ff-el-form-control) input[type="email"],
.wp-block-post-content:has(.ff-el-form-control) input[type="tel"],
.wp-block-post-content:has(.ff-el-form-control) select,
.wp-block-post-content:has(.ff-el-form-control) textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 13px 16px;
	border: 1px solid #d9cfe0;
	border-radius: 12px;
	background: #fbf9fc;
	font-size: 1rem;
	color: #2b1a31;
}
.wp-block-post-content:has(.ff-el-form-control) input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	position: relative;
	width: 46px;
	height: 26px;
	margin: 0 12px 0 0;
	border-radius: 999px;
	background: #d9cfe0;
	cursor: pointer;
	vertical-align: middle;
	transition: background 0.2s ease;
}
.wp-block-post-content:has(.ff-el-form-control) input[type="checkbox"]::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
	transition: transform 0.2s ease;
}
.wp-block-post-content:has(.ff-el-form-control) input[type="checkbox"]:checked {
	background: #3d2645;
}
.wp-block-post-content:has(.ff-el-form-control) input[type="checkbox"]:checked::after {
	transform: translateX(20px);
}
.wp-block-post-content:has(.ff-el-form-control) input[type="checkbox"]:focus-visible {
	outline: 3px solid #8b5cf6;
	outline-offset: 3px;
}

/* Feedback page: framed intro text and clean submit button */
.wp-block-post-content:has(.ff-el-form-control):not(:has(.lgm-contact-grid-row)) > p:nth-of-type(-n+2) {
	background: #faf6fb;
	border: 1px solid rgba(61, 38, 69, 0.10);
	border-left: 4px solid #d4af37;
	border-radius: 16px;
	padding: 14px 18px;
	margin: 0 0 14px;
}
.wp-block-post-content:has(.ff-el-form-control) .ff-btn-submit img {
	display: none;
}

/* Contact page: use more of the desktop width (phones keep the stacked layout) */
@media (min-width: 900px) {
	.lgm-contact-grid-row {
		width: 100% !important;
		max-width: 1280px !important;
		margin-left: auto !important;
		margin-right: auto !important;
		box-sizing: border-box !important;
		flex-wrap: nowrap !important;
	}
	.lgm-contact-grid-row > .wp-block-column {
		min-width: 0 !important;
		box-sizing: border-box !important;
	}
	.lgm-contact-grid-row > .wp-block-column:first-child {
		flex-basis: 38% !important;
	}
	.lgm-contact-grid-row > .wp-block-column:last-child {
		flex-basis: 62% !important;
	}
}

/* Toggle switch: fixed size so the knob stays inside the track */
.wp-block-post-content:has(.ff-el-form-control) input[type="checkbox"] {
	display: inline-block !important;
	box-sizing: border-box !important;
	flex: 0 0 46px !important;
	width: 46px !important;
	min-width: 46px !important;
	height: 26px !important;
	min-height: 26px !important;
	padding: 0 !important;
	margin: 0 12px 0 0 !important;
	position: relative !important;
	vertical-align: middle !important;
}
.wp-block-post-content:has(.ff-el-form-control) input[type="checkbox"]::after {
	box-sizing: border-box;
	top: 3px !important;
	left: 3px !important;
	width: 20px !important;
	height: 20px !important;
}
.wp-block-post-content:has(.ff-el-form-control) input[type="checkbox"]:checked::after {
	transform: translateX(20px) !important;
}

/* Footer link lists: tight spacing between items. */
.site-footer ul.is-style-none,
.site-footer ul.is-style-none li {
	margin-block: 0;
	padding-block: 0;
	row-gap: 0;
	gap: 0;
}
.site-footer ul.is-style-none li + li {
	margin-block-start: 0;
}

/* Footer column headings: space before their link lists. */
.site-footer .wp-block-column > h4.wp-block-heading {
	margin-bottom: 1rem;
}
