/*
Theme Name: Firefly Inflatables
Theme URI: https://fireflyinflatables.com
Template: twentytwentyfour
Version: 1.0.0
Description: Firefly Inflatables brand theme, built as a block-theme child of Twenty Twenty-Four. Modern homepage, a Rental Item catalog (bounce houses, dry slides, water slides), and call/text-focused calls to action in place of a web contact form.
Author: Firefly Inflatables
Text Domain: firefly-theme
*/

/* Rental catalog grids (home teaser, archive, category) use a fixed
   3-column grid, which WordPress core does not auto-collapse on narrow
   screens. Step it down manually so cards don't get squeezed. */
@media (max-width: 782px) {
	.wp-block-post-template.is-layout-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

/* Header nav: pill-button links, with a dropdown panel for the Rentals
   submenu (Bounce Houses / Dry Slides / Water Slides). */
.wp-block-navigation .wp-block-navigation-item__content {
	padding: 8px 18px;
	border-radius: 999px;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.wp-block-navigation .wp-block-navigation-item > .wp-block-navigation-item__content:hover,
.wp-block-navigation .wp-block-navigation-item > .wp-block-navigation-item__content:focus {
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--contrast) !important;
}

.wp-block-navigation__submenu-container {
	background-color: var(--wp--preset--color--base);
	border-radius: 14px;
	box-shadow: 0 8px 24px rgba(22, 35, 63, 0.16);
	padding: 8px;
	min-width: 220px;
}

.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	color: var(--wp--preset--color--contrast);
	border-radius: 10px;
	padding: 10px 16px;
}

.wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus {
	background-color: var(--wp--preset--color--base-2);
	color: var(--wp--preset--color--contrast) !important;
}

/* Rental catalog cards: several inventory photos are close-up shots
   rather than full views, and a hard object-fit:cover crop at a fixed
   4:3 ratio cuts them down to awkward, unrecognizable closeups. Contain
   shows the whole photo (letterboxed on a matching background) instead. */
.wp-block-post-featured-image img {
	object-fit: contain !important;
	background-color: var(--wp--preset--color--base-2);
}

.wp-block-details {
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--base-2);
	border-radius: 12px;
	padding: 4px 20px;
	margin-bottom: 10px;
}

.wp-block-details summary {
	cursor: pointer;
	padding: 16px 0;
	font-weight: 600;
}

.wp-block-details p {
	padding-bottom: 18px;
	color: var(--wp--preset--color--contrast-2);
}

/* Party-bunting divider: a diagonal ribbon of brand colors marking the
   start of a new section, so the page reads as distinct "rooms" instead
   of one long scroll of plain text blocks. Forced edge-to-edge (the
   same alignfull technique used elsewhere in this theme) regardless of
   the content-width container it sits in, so it isn't lost as a thin
   inset line on narrow screens. */
.firefly-bunting {
	height: 14px;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	background: repeating-linear-gradient(
		-45deg,
		var(--wp--preset--color--accent) 0 14px,
		var(--wp--preset--color--accent-2) 14px 28px,
		var(--wp--preset--color--accent-3) 28px 42px,
		var(--wp--preset--color--accent-4) 42px 56px
	);
}

/* Service area: colorful pill chips instead of a plain comma-separated
   sentence of town names. */
.firefly-chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.firefly-chip {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 0.86rem;
	font-weight: 600;
	white-space: nowrap;
	line-height: 1.4;
}

.firefly-chip--a {
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--contrast);
}

.firefly-chip--b {
	background-color: var(--wp--preset--color--accent-2);
	color: var(--wp--preset--color--base);
}

.firefly-chip--c {
	background-color: var(--wp--preset--color--accent-3);
	color: var(--wp--preset--color--base);
}

.firefly-chip--d {
	background-color: var(--wp--preset--color--accent-4);
	color: var(--wp--preset--color--base);
}

/* About section: a row of fun badges breaking up the paragraph. */
.firefly-badge-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.firefly-badge-row span {
	background-color: var(--wp--preset--color--base-2);
	border: 1px solid var(--wp--preset--color--contrast-3);
	border-radius: 999px;
	padding: 8px 16px;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
}

/* How It Works: colorful circular number badges on a navy section. */
.firefly-step-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 800;
	font-size: 1.2rem;
}

.firefly-step-number--gold {
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--contrast);
}

.firefly-step-number--blue {
	background-color: var(--wp--preset--color--accent-2);
	color: var(--wp--preset--color--base);
}

.firefly-step-number--orange {
	background-color: var(--wp--preset--color--accent-3);
	color: var(--wp--preset--color--base);
}

.firefly-step-number--red {
	background-color: var(--wp--preset--color--accent-4);
	color: var(--wp--preset--color--base);
}

/* Testimonials: a colorful top border per card instead of one flat grey. */
.firefly-testimonial {
	border-top: 5px solid var(--wp--preset--color--accent);
}

.firefly-testimonial--blue {
	border-top-color: var(--wp--preset--color--accent-2);
}

.firefly-testimonial--orange {
	border-top-color: var(--wp--preset--color--accent-3);
}

.firefly-rental-field {
	margin: 0;
}

.firefly-rental-field--badge {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--contrast-2);
	font-weight: 600;
}

.firefly-rental-field--detail {
	font-size: var(--wp--preset--font-size--medium);
}

@media (max-width: 480px) {
	.wp-block-post-template.is-layout-grid {
		grid-template-columns: 1fr !important;
	}

	/* The hero headline uses a fixed 3rem size rather than a fluid preset,
	   so it needs its own mobile step-down to avoid cramped wrapping. */
	.wp-block-cover h1 {
		font-size: 2rem !important;
	}
}

/* About section badges: side-by-side pills get cramped on a phone-width
   screen, so stack them one per line instead. */
@media (max-width: 600px) {
	.firefly-badge-row {
		flex-direction: column;
		align-items: center;
	}

	.firefly-badge-row span {
		width: 100%;
		max-width: 280px;
		text-align: center;
	}
}
