/*
Theme Name: Crowned And Booked
Theme URI: https://www.crownedandbookedtravel.com
Author: Crowned And Booked Travel
Description: Custom block theme for Crowned And Booked Travel — wickedly well-planned Disney, Universal, and cruise vacations for families. Royal purple "castle at night" design with champagne-glow accents.
Version: 1.13.1
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: crownedandbooked
Tags: block-theme, full-site-editing, travel
*/

html {
	scroll-behavior: smooth;
}

/* ---- Hero: nighttime glow ---- */
.cb-hero {
	position: relative;
	background:
		radial-gradient(ellipse 70% 55% at 50% 0%, rgba(255, 231, 194, 0.16), transparent 70%),
		radial-gradient(ellipse 40% 35% at 82% 18%, rgba(199, 168, 240, 0.08), transparent 70%),
		linear-gradient(180deg, #201933 0%, #120d1c 100%) !important;
	border-radius: 28px;
	overflow: hidden;
}

/* faint starfield in heroes */
.cb-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image:
		radial-gradient(1.5px 1.5px at 12% 25%, rgba(255, 231, 194, 0.8), transparent 100%),
		radial-gradient(1px 1px at 25% 60%, rgba(255, 255, 255, 0.5), transparent 100%),
		radial-gradient(1.5px 1.5px at 38% 18%, rgba(255, 231, 194, 0.6), transparent 100%),
		radial-gradient(1px 1px at 55% 40%, rgba(255, 255, 255, 0.4), transparent 100%),
		radial-gradient(2px 2px at 68% 15%, rgba(255, 231, 194, 0.7), transparent 100%),
		radial-gradient(1px 1px at 80% 45%, rgba(255, 255, 255, 0.5), transparent 100%),
		radial-gradient(1.5px 1.5px at 90% 25%, rgba(255, 231, 194, 0.6), transparent 100%);
}

/* ---- Buttons: glow pills ---- */
.wp-block-button__link {
	transition: transform 0.18s ease, box-shadow 0.18s ease;
	box-shadow: 0 0 0 rgba(255, 231, 194, 0);
}

.wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 28px rgba(255, 231, 194, 0.35);
}

/* ---- Cards: elevated pine surfaces ---- */
.cb-card {
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
	border-radius: 20px;
	border: 1px solid rgba(255, 231, 194, 0.14);
}

.cb-card:hover {
	transform: translateY(-4px);
	border-color: rgba(255, 231, 194, 0.35);
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

/* dark tint sections get gentle rounding + breathing room */
.wp-block-group.has-seafoam-mist-background-color {
	border-radius: 28px;
	border: 1px solid rgba(255, 231, 194, 0.08);
}

/* ---- Accents ---- */
.cb-divider {
	width: 64px;
	height: 3px;
	background: var(--wp--preset--color--rose);
	border: none;
}

.cb-step-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--wp--preset--color--rose);
	color: var(--wp--preset--color--sea-deep);
	font-size: 1.5rem;
	font-weight: 700;
	box-shadow: 0 0 24px rgba(255, 231, 194, 0.35);
}

/* ---- FAQ ---- */
.cb-faq details {
	border: 1px solid rgba(255, 231, 194, 0.16);
	border-radius: 14px;
	padding: 1.1rem 1.35rem;
	margin-bottom: 0.85rem;
	background: var(--wp--preset--color--sea);
	transition: border-color 0.2s ease;
}

.cb-faq details:hover {
	border-color: rgba(255, 231, 194, 0.4);
}

.cb-faq summary {
	cursor: pointer;
	font-weight: 600;
	font-size: 1.05rem;
	color: var(--wp--preset--color--rose);
}

/* FAQ questions are headings for semantic structure; render them like summary text */
.cb-faq summary h2.cb-faq-q,
.cb-faq summary h3.cb-faq-q {
	display: inline;
	margin: 0;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
	font-size: 1.05rem;
	line-height: 1.5;
	color: var(--wp--preset--color--rose);
}

.cb-faq details[open] summary {
	margin-bottom: 0.5rem;
}

/* ---- FAQ hub: jump menu + category headings ---- */
.cb-faq-jump {
	border: 1px solid rgba(255, 231, 194, 0.2);
	border-radius: 16px;
	background: var(--wp--preset--color--sea);
	padding: 1.25rem 1.5rem;
	margin-bottom: 2.5rem;
}

.cb-faq-jump p {
	margin: 0 0 0.5rem;
	color: var(--wp--preset--color--cream);
}

.cb-faq-jump ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 0.6rem;
}

.cb-faq-jump li a {
	display: inline-block;
	padding: 0.3rem 0.85rem;
	border: 1px solid rgba(255, 231, 194, 0.3);
	border-radius: 999px;
	font-size: 0.9rem;
	text-decoration: none;
	color: var(--wp--preset--color--rose);
	transition: background 0.15s ease, border-color 0.15s ease;
}

.cb-faq-jump li a:hover {
	background: rgba(255, 231, 194, 0.12);
	border-color: rgba(255, 231, 194, 0.6);
}

h2.cb-faq-cat {
	margin-top: 3rem;
	margin-bottom: 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid rgba(255, 231, 194, 0.25);
	scroll-margin-top: 2rem;
}

.cb-faq-more {
	font-size: 0.9rem;
	margin: 0.75rem 0 0;
}

/* footer separator: thin champagne line */
.wp-block-separator.has-rose-background-color {
	opacity: 0.35;
	height: 1px;
}

/* ---- Gravity Forms on dark theme ---- */
.gform_wrapper .gfield_label,
.gform_wrapper legend.gfield_label,
.gform_wrapper .gform_title {
	color: var(--wp--preset--color--cream) !important;
	font-weight: 600;
}

.gform_wrapper .gfield_description,
.gform_wrapper .ginput_complex label,
.gform_wrapper .gfield_consent_description,
.gform_wrapper .gform_fileupload_rules {
	color: var(--wp--preset--color--charcoal) !important;
}

.gform_wrapper .gfield_required {
	color: var(--wp--preset--color--rose) !important;
}

.gform_wrapper .gfield_radio label,
.gform_wrapper .gfield_checkbox label {
	color: var(--wp--preset--color--cream) !important;
}

.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper select,
.gform_wrapper textarea {
	background: #ffffff;
	color: #241B33;
	border: 1px solid rgba(255, 231, 194, 0.25);
	border-radius: 10px;
	padding: 0.65rem 0.85rem;
}

.gform_wrapper input:focus,
.gform_wrapper select:focus,
.gform_wrapper textarea:focus {
	outline: 2px solid var(--wp--preset--color--rose);
	outline-offset: 1px;
}

.gform_wrapper .gform_button,
.gform_wrapper .gform_next_button,
.gform_wrapper .gform_previous_button {
	background: var(--wp--preset--color--rose) !important;
	color: var(--wp--preset--color--sea-deep) !important;
	border: none;
	border-radius: 999px !important;
	font-weight: 700;
	font-size: 1.05rem;
	padding: 1rem 2.25rem !important;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.gform_wrapper .gform_button:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 28px rgba(255, 231, 194, 0.35);
	background: var(--wp--preset--color--rose-soft) !important;
}

.gform_confirmation_message {
	color: var(--wp--preset--color--cream);
	font-size: 1.25rem;
	text-align: center;
	padding: 2rem;
	border: 1px solid rgba(255, 231, 194, 0.3);
	border-radius: 16px;
	background: var(--wp--preset--color--sea);
}

.gform_validation_errors,
.gform_wrapper .gfield_validation_message {
	border-radius: 10px;
}

/* ---- Mobile header: stack and center ---- */
@media (max-width: 782px) {
	header .wp-block-group,
	header .wp-block-group .wp-block-group {
		justify-content: center !important;
	}

	header .wp-block-group .wp-block-group {
		flex-wrap: wrap;
	}

	header img {
		height: 48px !important;
		margin-inline: auto;
	}

	header .wp-block-buttons {
		justify-content: center;
	}

	header .wp-block-navigation {
		justify-content: center;
	}
}

/* keep hero text comfortably padded on small screens */
@media (max-width: 600px) {
	.cb-hero {
		border-radius: 18px;
	}
}

/* ---- Mobile nav overlay: centered, on-theme ---- */
.wp-block-navigation__responsive-container.is-menu-open {
	background-color: #120D1C !important;
	color: var(--wp--preset--color--cream);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: center;
	justify-content: center;
	text-align: center;
	padding-top: 4rem;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
.wp-block-navigation__responsive-container.is-menu-open ul.wp-block-navigation {
	align-items: center !important;
	justify-content: center !important;
	text-align: center;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	justify-content: center;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	color: var(--wp--preset--color--rose) !important;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.75rem;
	padding: 0.5rem 0;
}

.wp-block-navigation__responsive-container-close {
	color: var(--wp--preset--color--cream) !important;
}

/* hamburger button inherits cream on the dark header */
.wp-block-navigation__responsive-container-open {
	color: var(--wp--preset--color--cream) !important;
}
