/*
Theme Name: Extendable
Theme URI: https://github.com/extendify/extendable
Author: Extendify
Author URI: https://extendify.com
Description: Extendable is a distinct, dynamic block theme designed as a canvas for your next online venture. Sporting multiple style variations, Extendable is the most expressive block theme yet. Go fresh, bold, bohemian or minimal — with a single click.
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 7.4
Version: 2.1.7
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: extendable
Tags: one-column, custom-colors, custom-menu, custom-logo, e-commerce, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments

Extendable is a derivative work of the code from the
Twenty Twenty-Two WordPress Theme, which is licensed GPLv2.

Extendable WordPress Theme, Copyright (C) 2021-2025 Extendify Inc.
Extendable therefore is also distributed under the terms of the GNU GPL.
*/


/* Fallback for deprecate variables.
---------------------------------------------------------------------------- */
:root {
	--wp--custom--spacing--small: var(--wp--preset--spacing--30, clamp(1.5rem, 5vw, 2rem));
	--wp--custom--spacing--medium: var(--wp--preset--spacing--50, clamp(2.5rem, 8vw, 4rem));
	--wp--custom--spacing--large: var(--wp--preset--spacing--60, clamp(2.5rem, 8vw, 6rem));
	--wp--custom--spacing--outer: max(1.25rem, 4vw);
	--wp--preset--spacing--80: min(8rem, 12vw);
}

/*
 * Smooth scrolling
 */

html {
	scroll-behavior: smooth;
}

/* overflow-x: clip does NOT create a scroll container (unlike hidden),
   so position: sticky on the header keeps working. */
body {
	overflow-x: clip;
}

/* =============================================================
   Wave dividers between page sections
   Tertiary (#C8E8F5) <-> Background (#FFFFFF)
   ============================================================= */

/* All full-width sections that can have waves need position:relative */
.wp-site-blocks > .wp-block-group.alignfull.has-tertiary-background-color.has-background,
.wp-site-blocks > .wp-block-group.alignfull.has-background-background-color.has-background {
	position: relative;
}

/* Wave at the BOTTOM of a tertiary section (tertiary → white) */
.wp-site-blocks > .wp-block-group.alignfull.has-tertiary-background-color.has-background::after {
	content: '';
	display: block;
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 100%;
	height: 60px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0,0 C240,60 480,0 720,40 C960,80 1200,20 1440,0 L1440,60 L0,60 Z' fill='%23FFFFFF'/%3E%3C/svg%3E");
	background-size: 100% 100%;
	pointer-events: none;
	z-index: 1;
}

/* Wave at the BOTTOM of a white section (white → tertiary) */
.wp-site-blocks > .wp-block-group.alignfull.has-background-background-color.has-background::after {
	content: '';
	display: block;
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 100%;
	height: 60px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0,0 C240,60 480,0 720,40 C960,80 1200,20 1440,0 L1440,60 L0,60 Z' fill='%23C8E8F5'/%3E%3C/svg%3E");
	background-size: 100% 100%;
	pointer-events: none;
	z-index: 1;
}

/*
 * Font smoothing.
 * This is a niche setting that will not be available via Global Styles.
 * https://github.com/WordPress/gutenberg/issues/35934
 */

body {
	-moz-osx-font-smoothing: var(--wp--custom--typography--font-smoothing--moz, auto);
	-webkit-font-smoothing: var(--wp--custom--typography--font-smoothing--webkit, auto);
}

/*
 * Text and navigation link styles.
 * Necessary until the following issue is resolved in Gutenberg:
 * https://github.com/WordPress/gutenberg/issues/27075
 */

a {
	text-decoration-style: var(--wp--custom--elements--link--static--text-decoration-style, solid);
	text-decoration-thickness: var(--wp--custom--elements--link--text-decoration-thickness, 1px);
	text-underline-offset: var(--wp--custom--elements--link--text-underline-offset, 0.25ch);
}

a:hover,
a:focus {
	text-decoration-style: var(--wp--custom--elements--link--interactive--text-decoration-style, dashed);
}

:where(.wp-site-blocks *:focus) {
	outline-width: 1px;
	outline-style: solid;
}

a:active {
	text-decoration: none;
}

/*
 * Navigation Block
 */

@media (min-width: 600px) {

	.site-logo-title {
		display: none;
	}

	.wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__responsive-container-content .wp-block-navigation-item,
	.wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__responsive-container-content .wp-block-navigation__container,
	.wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__responsive-container-content .wp-block-page-list {
		align-items: flex-start !important;
	}
}

@media (max-width: 600px) {

	.has-modal-open .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__responsive-container-content .wp-block-navigation-item,
	.has-modal-open .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__responsive-container-content .wp-block-navigation__container,
	.has-modal-open .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__responsive-container-content .wp-block-page-list {
		align-items: flex-start !important;
	}
}

.wp-block-navigation__responsive-container.has-modal-open.is-menu-open .site-logo-title {
	display: flex;
	flex-wrap: nowrap;
	max-width: 100%;
	align-items: center;
	gap: 0.5rem;
	padding-bottom: var(--wp--preset--spacing--30);
	position: relative;
	padding-inline-end: 52px;
}

.wp-block-navigation__responsive-container.has-modal-open.is-menu-open .site-logo-title::after {
	content: "";
	position: absolute;
	left: calc(-1 * var(--wp--preset--spacing--30));
	right: calc(-1 * var(--wp--preset--spacing--30));
	bottom: 0;
	height: 1px;
	background: #8080801d;
}

.wp-block-navigation__responsive-container.has-modal-open.is-menu-open .site-logo-title img {
	max-height: 42px !important;
	height: auto !important;
	width: auto !important;

}

.wp-block-navigation__responsive-container.has-modal-open.is-menu-open .site-logo-title .site-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--wp--preset--color--foreground);
	text-transform: uppercase;
	letter-spacing: -0.02em;
	box-sizing: border-box;
	line-height: 1.15;
}

.wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__responsive-container-content {
	padding-top: var(--wp--preset--spacing--30);
}

.has-modal-open .wp-block-navigation__responsive-container-close {
	background-color: var(--wp--preset--color--tertiary);
	padding: 0.625rem;
	border-radius: 100%;
	top: -2.5px !important;
}

.has-modal-open .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
	gap: 0 !important;
	width: 100%;
}

.has-modal-open .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navrigation__containe,
.has-modal-open .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__container ul {
	row-gap: 0.75rem !important;
	width: -webkit-fill-available;
	max-width: 100%;
}

.has-modal-open .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__responsive-container-content > ul.wp-block-navigation__container > li.wp-block-navigation-item:not(.wp-block-navigation__submenu-container) {
	border-bottom: 1px solid #8080801d;
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
	width: -webkit-fill-available;
	max-width: 100%;
}

.has-modal-open .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container {
	padding: 0.75rem 0.75rem 0 0.75rem !important;
	gap: 0.75rem !important;
}

.has-modal-open .wp-block-navigation__responsive-container:not(.disable-default-overlay) .wp-block-navigation__responsive-dialog ul.wp-block-navigation__container > li:not(.wp-block-navigation__submenu-container) > a.wp-block-navigation-item__content {
	font-size: 1.25rem;
	font-weight: 600;
}

.has-modal-open .wp-block-navigation__responsive-container:not(.disable-default-overlay) .wp-block-navigation__submenu-container {
	padding-top: 0.75rem !important;
}

.has-modal-open .wp-block-navigation__responsive-container:not(.disable-default-overlay) .wp-block-navigation__responsive-dialog ul.wp-block-navigation__container .wp-block-navigation-submenu .wp-block-navigation-item a {
	font-size: 1rem !important;
}

/*
 * When the responsive navigation modal opens (WordPress sets .has-modal-open
 * on <html>), suppress every property on the modal's ancestor chain that
 * creates a containing block for position:fixed descendants — otherwise
 * the modal is trapped inside the header instead of overlaying the viewport.
 *
 * Two rules here:
 *
 * 1) Broad ancestor coverage — the header itself plus any element inside
 *    it that contains the responsive dialog. Handles transform/filter on
 *    any header variant (overlay, glass, floating-pill, future ones).
 *
 * 2) Animation override — mirrors the selectors used by the floating-pill
 *    scroll animations so we can match their specificity. Those animations
 *    use !important + a deep selector to apply translate/backdrop-filter
 *    via keyframes; without a same-or-higher-specificity override our broad
 *    rule loses the cascade and the animation keeps trapping the modal.
 */
html.has-modal-open header.wp-block-template-part,
html.has-modal-open header.wp-block-template-part :has(.wp-block-navigation__responsive-dialog) {
	backdrop-filter: none !important;
	transform: none !important;
	translate: none !important;
	filter: none !important;
	animation: none !important;
}

html.has-modal-open body:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child) header.wp-block-template-part:has(.ext-header-sticky.ext-header-sticky--floating-pill.ext-header-glass) .ext-header-sticky.ext-header-sticky--floating-pill.ext-header-glass,
html.has-modal-open body:not(:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child)) header.wp-block-template-part:has(.ext-header-sticky.ext-header-sticky--floating-pill.ext-header-glass) .ext-header-sticky.ext-header-sticky--floating-pill.ext-header-glass {
	animation: none !important;
	backdrop-filter: none !important;
	translate: none !important;
}

/*
 * Mobile nav-extras: cloned by navigation-customization.js into the
 * responsive menu dialog so phone / CTA / social aren't visible in the
 * cramped top bar on small screens. We target the specific modifier
 * classes (.ext-nav-extras-phone, -btn, -social) rather than the
 * .ext-nav-extras wrapper, because some header parts use the wrapper
 * class around the nav block itself.
 *
 * On desktop the dialog is rendered inline (it's only "modal-shaped"
 * when the hamburger opens it), so the cloned extras must stay hidden
 * until WordPress sets .has-modal-open on <html>.
 */
@media (max-width: 781px) {

	body:not(:has(.wp-block-navigation__responsive-container.disable-default-overlay)) header.wp-block-template-part :is(.ext-nav-extras-phone, .ext-nav-extras-btn):not(.ext-nav-extras-mobile *) {
		display: none;
	}

	/* Collapse the .ext-nav-extras wrapper too when its only children are the
	   extras (no nav inside) — otherwise the empty wrapper holds a flex slot
	   and the hamburger stays stuck in the middle instead of moving to the
	   end of the row. */
	header.wp-block-template-part .ext-nav-extras:not(:has(nav, .wp-block-navigation)) {
		display: none;
	}

	/*
	 * Mobile header bar: hamburger (left) | logo + title (center) | social (right).
	 * Five-column grid: icon | flex gap | brand | flex gap | icon — equal 1fr
	 * gutters keep the brand visually centered between hamburger and social.
	 */
	header.wp-block-template-part .alignwide:has(.wp-block-navigation) {
		display: grid;
		grid-template-columns: auto 1fr auto 1fr auto;
		align-items: center;
		column-gap: 0.35rem;
	}

	header.wp-block-template-part .alignwide > .wp-block-group:has(.wp-block-site-logo) {
		grid-column: 3;
		grid-row: 1;
		justify-self: center;
		min-width: 0;
		max-width: 100%;
	}

	header.wp-block-template-part .alignwide > .ext-nav-extras,
	header.wp-block-template-part .alignwide > .wp-block-group:has(.wp-block-navigation):not(:has(.wp-block-site-logo)) {
		display: contents;
	}

	header.wp-block-template-part .alignwide nav.wp-block-navigation {
		display: contents;
	}

	header.wp-block-template-part .wp-block-navigation__responsive-container-open {
		grid-column: 1;
		grid-row: 1;
		justify-self: start;
		margin: 0;
	}

	header.wp-block-template-part :is(.traila-social-nav-links, .ext-nav-extras-social):not(.ext-nav-extras-mobile *) {
		grid-column: 5;
		grid-row: 1;
		justify-self: end;
		display: inline-flex !important;
		align-items: center;
		flex-wrap: nowrap;
		gap: 0.5rem;
		margin: 0 !important;
	}

	header.wp-block-template-part .traila-social-nav-links .traila-social-link {
		display: inline-flex;
		align-items: center;
		line-height: 0;
		color: currentColor;
	}

	header.wp-block-template-part .traila-social-nav-links .traila-social-link svg {
		width: 22px;
		height: 22px;
	}

	/* Social stays in the top bar; skip duplicate icons inside the slide-out menu. */
	.has-modal-open .wp-block-navigation__responsive-dialog .ext-nav-extras-mobile .ext-nav-extras-social {
		display: none !important;
	}
}

.ext-nav-extras-mobile {
	display: none;
}

/* Social icons moved out of nav into the ext-nav-extras flex row by JS.
   Keep everything on one line: nav | icons | Book a Dive */
@media (min-width: 782px) {
	header.wp-block-template-part .ext-nav-extras {
		flex-wrap: nowrap !important;
		align-items: center !important;
	}

	header.wp-block-template-part .ext-nav-extras > .wp-block-navigation {
		flex: 1 1 auto !important;
		min-width: 0 !important;
	}

	header.wp-block-template-part .ext-nav-extras > .traila-social-nav-links {
		display: inline-flex !important;
		align-items: center !important;
		flex-wrap: nowrap !important;
		gap: 0.5rem !important;
		margin: 0 !important;
		flex: 0 0 auto !important;
	}

	header.wp-block-template-part .ext-nav-extras > .traila-social-nav-links .traila-social-link {
		display: inline-flex;
		align-items: center;
		line-height: 0;
		color: currentColor;
	}

	header.wp-block-template-part .ext-nav-extras > .traila-social-nav-links .traila-social-link svg {
		width: 22px;
		height: 22px;
	}

	header.wp-block-template-part .ext-nav-extras > .wp-block-buttons {
		flex: 0 0 auto !important;
	}
}

.has-modal-open .wp-block-navigation__responsive-dialog .ext-nav-extras-mobile {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: var(--wp--preset--spacing--20);
	margin-top: var(--wp--preset--spacing--30);
}

.has-modal-open .wp-block-navigation__responsive-dialog .ext-nav-extras-mobile .wp-block-button {
	width: 100%;
}

.has-modal-open .wp-block-navigation__responsive-dialog .ext-nav-extras-mobile .wp-block-button__link {
	display: block;
	text-align: center;
	width: 100%;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
}

.has-modal-open .wp-block-navigation__responsive-dialog .site-logo-title .site-title {
	color: var(--wp--preset--color--foreground) !important;
	flex: 1 1 auto;
	min-width: 0;
}

/* Match the nav-link typography (see rule above) on the cloned phone CTA. */
.has-modal-open .wp-block-navigation__responsive-dialog .ext-nav-extras-mobile .ext-nav-extras-phone,
.has-modal-open .wp-block-navigation__responsive-dialog .ext-nav-extras-mobile .ext-nav-extras-phone a,
.has-modal-open .wp-block-navigation__responsive-dialog .ext-nav-extras-mobile .ext-nav-extras-phone p {
	font-size: 1.25rem !important;
	font-weight: 600 !important;
}

/* Bigger, more tappable social icons in the menu. */
.has-modal-open .wp-block-navigation__responsive-dialog .ext-nav-extras-mobile .wp-block-social-link {
	width: 32px;
	height: 32px;
}

.has-modal-open .wp-block-navigation__responsive-dialog .ext-nav-extras-mobile .wp-social-link svg {
	width: 28px;
	height: 28px;
}

.wp-block-navigation .wp-block-navigation-item a:hover,
.wp-block-navigation .wp-block-navigation-item a:focus {
	text-decoration: underline;
	text-decoration-style: solid;
}

/* Don't display the homepage in the Page List block, when located inside a navigation element. */
nav .wp-block-pages-list__item.wp-block-navigation-item.menu-item-home {
	display: none;
}

/*
 * Responsive menu container padding.
 * This ensures the responsive container inherits the same
 * spacing defined above. This behavior may be built into
 * the Block Editor in the future.
 */

.wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) {
	padding-top: var(--wp--preset--spacing--30);
	padding-bottom: var(--wp--preset--spacing--30);
	padding-right: var(--wp--preset--spacing--30);
	padding-left: var(--wp--preset--spacing--30);
}

/* Temporary: WP core ships this padding as a 4-value clamp() shorthand
   that some browsers fail to parse — re-declare as individual props. */
.wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) {
	padding-top: clamp(1rem, var(--wp--style--root--padding-top), 20rem);
	padding-right: clamp(1rem, var(--wp--style--root--padding-right), 20rem);
	padding-bottom: clamp(1rem, var(--wp--style--root--padding-bottom), 20rem);
	padding-left: clamp(1rem, var(--wp--style--root--padding-left), 20rem);
}

/*
 * --------------------------------------------------------
 *  Custom - blocks
 * --------------------------------------------------------
 */

/* Button
----------------------------------------------------------*/
.wp-element-button {
	transition: background-color 0.15s ease;
}

.wp-block-button .wp-block-button__link.is-style-outline:not(.has-background):hover,
.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background):hover {
	background-color: rgba(159, 159, 159, 0.2);
}

/* Table
----------------------------------------------------------*/
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
	background-color: var(--wp--custom--blocks--core-table--variant-stripes--color--background, var(--wp--preset--color--tertiary));
}

/* Template Part Block
----------------------------------------------------------*/

/* Temporary fix until template-part blocks support spacing */

footer.wp-block-template-part:not([style*="margin-top"]) {
	margin-top: 0;
}

/* Quote - 'Plain' variation
----------------------------------------------------------*/
blockquote:is(.is-style-plain) {
	border: none;
	padding-left: 0;
}

/* Search Block
----------------------------------------------------------*/
:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) {
	border-color: var(--wp--custom--elements--input--border--color);
	border-radius: var(--wp--custom--elements--button--border--radius);
	border-width: var(--wp--custom--elements--input--border--width);
}

:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input {
	border-color: transparent;
}

.wp-block-search .wp-block-search__input {
	border-radius: var(--wp--custom--elements--button--border--radius);
}

/* Image
----------------------------------------------------------*/
.wp-block-image[style*="-radius"]:not([style*="overflow"]) {
	overflow: hidden;
}

/*
 * --------------------------------------------------------
 *  Custom - experimental
 * --------------------------------------------------------
 */

.block-editor-block-list__block.wp-block.is-default-size.wp-block-site-logo .components-resizable-box__container,
.wp-block-site-logo.is-default-size img {
	max-height: 42px !important;
	height: auto !important;
	width: auto !important;
}

.wp-block-site-logo,
.wp-block-site-logo a,
.wp-block-site-logo img {
	background: transparent !important;
}

/* Ensure default logo works well on light and dark backgrounds
----------------------------------------------------------*/
.wp-block-site-logo img[src*="extendify-demo-"],
.wp-block-site-logo img[src*="ext-custom-logo-"] {
	filter: var(--wp--preset--duotone--primary-foreground);
	min-width: 40px;
}


/*
 * Remove all animations, transitions and smooth scroll
 * for people that prefer not to see them.
 */
@media (prefers-reduced-motion: reduce) {

	html:focus-within {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/*
 * Matching caret and focus outline colors.
 */
input,
textarea {
	caret-color: inherit;
	outline-color: inherit;
}

/*
 * Matching input with outline button style.
 */
:where(.wp-block-post-comments-form) input:not([type="submit"]),
:where(.wp-block-post-comments-form) textarea {
	background-color: var(--wp--preset--color--background);
	color: var(--wp--preset--color--foreground);
	border-color: inherit;
}


/*
 * Woocommerce temporarily customization until the woo blocks offer support
 */

.woocommerce-Tabs-panel--description h2,
.woocommerce-Reviews-title {
	font-size: var(--wp--preset--font-size--medium);
}

.wp-block-button.wc-block-components-product-button {
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: start;
	gap: 1rem;
}

.wp-block-button.wc-block-components-product-button a.added_to_cart {
	margin-top: 0;
}

.woocommerce-checkout.woocommerce-page header.wp-block-template-part nav.wp-block-navigation {
	visibility: hidden;
}

.wp-site-blocks .wp-block-group.woocommerce.product {
	margin-top: 0;
	margin-bottom: 0;
}

.wc-block-product-template__responsive {
	grid-row-gap: 2rem;
}

.wc-block-components-product-button__button {
	z-index: 1;
}

/*
 * Adds offset for sticky header overlap
 */

.sticky-header-offset-container .entry-content > .wp-block-group {
	scroll-margin-top: var(--wp--preset--spacing--60);
}

/*
 * Avoids parent/child color collision when child has no custom background.
 */

:not(.block-editor-block-preview__content-iframe)
.has-tertiary-background-color.has-background
[class*="is-style-ext-preset--group--"][class*="item-card-1"]:not(.has-background) {
	background-color: var(--wp--preset--color--background);
}

:not(.block-editor-block-preview__content-iframe)
.has-tertiary-background-color.has-background
[class*="is-style-ext-preset--group--"][class*="item-card-1"]:not(.has-background)::before {
	background-color: var(--wp--preset--color--background) !important;
}

:not(.block-editor-block-preview__content-iframe)
.has-tertiary-background-color.has-background
[class*="is-style-ext-preset--image--"]:not(.has-background)::before {
	background-color: var(--wp--preset--color--tertiary) !important;
}

:not(.block-editor-block-preview__content-iframe)
.has-tertiary-background-color.has-background
[class*="is-style-ext-preset--group--"][class*="item-card-1"]::before,
:not(.block-editor-block-preview__content-iframe)
.has-tertiary-background-color.has-background
[class*="is-style-ext-preset--media-text--"]::before {
	background-color: var(--wp--preset--color--background) !important;
}

.block-editor-block-preview__content-iframe
[class*="is-style-ext-preset--group--natural-1"][class*="item-card-1"] {
	background-color: transparent !important;
}

:root {
	--grid-v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IHk9IjcwNi4wNzgiIHdpZHRoPSI4MC4yMjYyIiBoZWlnaHQ9IjgwLjIyNjIiIGZpbGwtb3BhY2l0eT0iMC4xMyIgLz4KICAgIDxyZWN0IHg9IjEyMDYuOTkiIHk9Ijc4Ni4zMDUiIHdpZHRoPSI4MC4yMjYyIiBoZWlnaHQ9IjgwLjIyNjIiIGZpbGwtb3BhY2l0eT0iMC4xMyIgLz4KICA8L2c+Cjwvc3ZnPg==");
}

/*
 * CSS related to prism vibe
 */

/*
 * CSS related to wave vibe
 */

[class*="is-style-ext-preset--group--"][class*="--section"].has-tertiary-background-color:has(
+ .has-background-background-color > .wp-block-cover.alignfull
)::after {
	content: none !important;
}

[class*="is-style-ext-preset--group--"][class*="--section"].has-tertiary-background-color:has(
+ .has-background-background-color > .wp-block-cover.alignfull
) {
	margin-bottom: 0 !important;
}

[class*="is-style-ext-preset--group--"][class*="--section"].has-background-background-color:has(.wp-block-cover.alignfull) + .has-tertiary-background-color::before {
	content: none !important;
}

[class*="is-style-ext-preset--group--"][class*="--section"].has-background-background-color:has(.wp-block-cover.alignfull) + .has-tertiary-background-color {
	margin-top: 0 !important;
}

/*
 * utilities
 */

.m-0 {
	margin: 0 !important;
}

.z-0 {
	z-index: 0 !important;
}

.z-10 {
	z-index: 10 !important;
}

.z-20 {
	z-index: 20 !important;
}

.z-30 {
	z-index: 30 !important;
}


.d-none {
	display: none;
}

.d-block {
	display: block;
}

@media (min-width: 640px) {

	.sm-d-none {
		display: none;
	}

	.sm-d-block {
		display: block;
	}
}

@media (min-width: 768px) {

	.md-d-none {
		display: none;
	}

	.md-d-block {
		display: block;
	}
}

@media (min-width: 1024px) {

	.lg-d-none {
		display: none;
	}

	.lg-d-block {
		display: block;
	}
}

/* RTL-only fix for Gutenberg Group left justification */

[dir="rtl"] [class*="wp-container-core-group-is-layout-"].ext-is-logical-start.is-content-justification-left > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	margin-inline-start: 0 !important;
	margin-inline-end: auto !important;
}

.no-underline,
.no-underline a {
	text-decoration: none;
}

/* CSS for extendify-agent vibe previews */

.extendify-agent .preview-is-style-ext-preset--group--matrix-1--section .preview-is-style-ext-preset--group--matrix-1--item-card-1--align-center {
	border: solid 6px color-mix(in oklab, var(--wp--preset--color--foreground) 10%, transparent) !important;
}


.extendify-agent .preview-is-style-ext-preset--group--wave-1--section {
	--wave-ratio: 1440 / 80;
	overflow: visible;
}

.extendify-agent .preview-is-style-ext-preset--group--wave-1--section .preview-is-style-ext-preset--group--wave-1--item-card-1--align-center {
	position: relative;
	overflow: visible;
}

.extendify-agent .preview-is-style-ext-preset--group--wave-1--section .preview-is-style-ext-preset--group--wave-1--item-card-1--align-center::after {
	content: "";
	position: absolute;
	width: 150%;
	left: 50%;
	transform: translateX(-35%);
	aspect-ratio: var(--wave-ratio);
	background-color: var(--wp--preset--color--background);
	-webkit-mask: var(--wave-mask) no-repeat center / 100% 100%;
	mask: var(--wave-mask) no-repeat center / 100% 100%;
	bottom: -1px;
	pointer-events: none;
	z-index: 1;
}

.extendify-agent .preview-is-style-ext-preset--group--wave-1--section .preview-is-style-ext-preset--group--wave-1--item-card-1--align-center::before {
	content: "";
	position: absolute;
	width: 150%;
	left: 50%;
	transform: translateX(-65%) scale(-1, -1);
	aspect-ratio: var(--wave-ratio);
	background-color: var(--wp--preset--color--background);
	-webkit-mask: var(--wave-mask) no-repeat center / 100% 100%;
	mask: var(--wave-mask) no-repeat center / 100% 100%;
	top: -1px;
	pointer-events: none;
	z-index: 1;
}

/*
 * --------------------------------------------------------
 *  Modular Header System
 * --------------------------------------------------------
 *
 *  Layout (positioning):
 *    - .ext-header-sticky    → position: sticky + admin-bar handling
 *    - .ext-header-overlay   → hero section overlap (negative margin)
 *
 *  Appearance:
 *    - .ext-header-glass     → static glassmorphism (bg + blur + radius)
 *    - .ext-header--dark     → dark color scheme: white text + dark scrim/glass tint
 *
 *  Behavior:
 *    - .ext-header-sticky--floating-pill → scroll-driven intensification of glass + layout shift
 *
 *  Compositions:
 *    - ext-header-sticky                                                                          → just sticky, theme bg
 *    - ext-header-overlay                                                                         → overlay, transparent
 *    - ext-header-overlay ext-header--dark                                                        → overlay + dark scrim + white text
 *    - ext-header-sticky ext-header-glass                                                         → static glass header
 *    - ext-header-sticky ext-header-glass ext-header--dark                                        → static dark glass
 *    - ext-header-sticky ext-header-overlay ext-header-glass ext-header-sticky--floating-pill   → animated glass over hero
 *    - + ext-header--dark on the above                                                            → animated DARK glass over hero
 */

:root {
	--ext-header-height: 96px;
	--ext-header-offset: 1rem;
	--ext-header-blur-start: 4px;
	--ext-header-blur-end: 12px;
	--ext-header-bg-opacity-start: 0.75;
	--ext-header-bg-opacity-end: 0.95;
	--ext-header-padding: 1.5rem;
	--ext-header-animation-distance: 100px;
	--ext-header-glass-tint-dark: #ffffff;
	--ext-header-glass-tint-dark-end: #101010;
	--ext-header-dark-logo-filter: brightness(0) invert(1);
}

body {
	timeline-scope: --ext-hero-timeline;
}

/* ===========================================================
   Layout: ext-header-sticky
   =========================================================== */
header.wp-block-template-part:has(.ext-header-sticky) {
	position: sticky;
	top: 0;
	z-index: 12;
}

/* Default bg for sticky headers without glass.
   Glass headers leave the wrapper transparent so the inner glass element shows through. */
header.wp-block-template-part:has(.ext-header-sticky):not(:has(.ext-header-glass)):not(.has-background) {
	background-color: var(--wp--preset--color--background);
}

body.admin-bar header.wp-block-template-part:has(.ext-header-sticky) {
	top: var(--wp-admin--admin-bar--position-offset, var(--wp-admin--admin-bar--height, 32px));
}

@media (max-width: 782px) {

	body.admin-bar header.wp-block-template-part:has(.ext-header-sticky) {
		top:0;
	}
}

html:has(.ext-header-sticky) {
	scroll-padding-top: var(--ext-header-height);
}

/* ===========================================================
   Layout: ext-header-overlay (hero overlap)
   =========================================================== */
body:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child) header.wp-block-template-part:has(.ext-header-overlay):not(:has(.ext-header-sticky)) {
	position: relative;
	top: 0;
	z-index: 12;
}

body:has(.ext-header-overlay) .entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child {
	margin-top: calc(-1 * var(--ext-header-height)) !important;
	position: relative;
	z-index: 0;
}

/* Overlay over hero: wrapper goes transparent so the hero shows through.
   Reverts to default theme bg once .is-past-hero is added or on subpages without a hero. */
body:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child) header.wp-block-template-part:has(.ext-header-overlay):not(.is-past-hero):not(:has(.ext-header-glass)) {
	background-color: transparent;
}

/* ===========================================================
   Appearance: ext-header-glass (static glassmorphism)
   - --ext-header-glass-color-start: tint during the frosted/initial state
   - --ext-header-glass-color-end: tint at the solid/scrolled state
   - Static glass shows the end state (most readable)
   =========================================================== */
.ext-header-glass {
	--ext-header-glass-color-start: var(--wp--preset--color--background);
	--ext-header-glass-color-end: var(--wp--preset--color--background);
}

header.wp-block-template-part:has(.ext-header-glass) .ext-header-glass {
	background-color: oklch(from var(--ext-header-glass-color-end) l c h / var(--ext-header-bg-opacity-end));
	backdrop-filter: blur(var(--ext-header-blur-end));
	border-radius: 1rem;
}

/* ===========================================================
   Color: ext-header--dark
   - Sets shared scrim/glass color variable
   - Wrapper gets white text when used with overlay or glass
   - Inner blocks reset their colors to inherit
   =========================================================== */
/* Dark variant only takes effect on pages with a fullscreen hero.
   On subpages, dark+glass falls back to the light glass defaults. */
body:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child) .ext-header-glass.ext-header--dark {
	--ext-header-glass-color-start: var(--ext-header-glass-tint-dark);
	--ext-header-glass-color-end: var(--ext-header-glass-tint-dark-end);
	--ext-header-bg-opacity-start: 0.06;
	--ext-header-bg-opacity-end: 0.85;
	--ext-header-blur-start: 16px;
	--ext-header-blur-end: 24px;
}

body:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child) header.wp-block-template-part:has(.ext-header-glass.ext-header--dark) .ext-header-glass {
	border: 1px solid rgb(255 255 255 / 0.12);
}

body:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child) header.wp-block-template-part:not(.is-past-hero):has(.ext-header-overlay.ext-header--dark) {
	color: #fff;
}

/* Top-fade scrim on the hero's cover block — softer falloff than a header-bound gradient.
   Flat (non-nested) :has() check on body so the rule reliably matches on hero pages
   that use an overlay+dark header.
   Fades out via opacity once the smart-sticky JS adds .is-past-hero on the header,
   in sync with the header reverting to its default theme appearance. */
body:has(.ext-header-overlay.ext-header--dark) .ext-hero-section--full-screen .wp-block-cover::after {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: calc(var(--ext-header-height) * 3);
	transition: opacity 300ms ease;
	background: linear-gradient(
		to bottom,
		rgb(0 0 0 / 0.50) 0%,
		rgb(0 0 0 / 0.25) 50%,
		rgb(0 0 0 / 0.05) 80%,
		rgb(0 0 0 / 0) 100%
	);
	pointer-events: none;
	z-index: 1;
}

/* Past-hero: fade the scrim out so the hero image returns to its natural look,
   matching the header reverting to default theme bg + colors. */
body:has(header.wp-block-template-part.is-past-hero) .ext-hero-section--full-screen .wp-block-cover::after {
	opacity: 0;
}

body:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child) header.wp-block-template-part:has(.ext-header-glass.ext-header--dark) {
	color: #fff;
}

/* Inner-block dark overrides — fire only on hero pages with a dark backdrop.
   Overlay+dark drops out at .is-past-hero (header has reverted to default theme).
   Glass+dark keeps firing past-hero because the glass stays dark via its own animation. */
body:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child) header.wp-block-template-part:not(.is-past-hero):has(.ext-header-overlay.ext-header--dark) :where(a, button, .wp-block-site-title):not(.has-background, .wp-block-button__link, .cloned-for-mobile, .cloned-for-mobile *),
body:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child) header.wp-block-template-part:has(.ext-header-glass.ext-header--dark) :where(a, button, .wp-block-site-title):not(.has-background, .wp-block-button__link, .cloned-for-mobile, .cloned-for-mobile *) {
	color: inherit;
}

body:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child) header.wp-block-template-part:not(.is-past-hero):has(.ext-header-overlay.ext-header--dark) .wp-social-link:not(.cloned-for-mobile, .cloned-for-mobile *),
body:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child) header.wp-block-template-part:has(.ext-header-glass.ext-header--dark) .wp-social-link:not(.cloned-for-mobile, .cloned-for-mobile *) {
	color: #fff !important;
}

/* Phone CTA: force white over the dark hero. Needed because the paragraph carries
   WP's wp-elements-* link-color rule (preset primary), which beats .has-text-color
   inheritance on the inner <a>. Drops out at .is-past-hero so the phone reverts to theme. */
body:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child) header.wp-block-template-part:not(.is-past-hero):has(.ext-header-overlay.ext-header--dark) :is(.ext-nav-extras-phone, .ext-nav-extras-phone a):not(.cloned-for-mobile, .cloned-for-mobile *),
body:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child) header.wp-block-template-part:has(.ext-header-glass.ext-header--dark) :is(.ext-nav-extras-phone, .ext-nav-extras-phone a):not(.cloned-for-mobile, .cloned-for-mobile *) {
	color: #fff !important;
}

body:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child) header.wp-block-template-part:not(.is-past-hero):has(.ext-header-overlay.ext-header--dark) svg:not(.cloned-for-mobile *),
body:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child) header.wp-block-template-part:has(.ext-header-glass.ext-header--dark) svg:not(.cloned-for-mobile *) {
	fill: currentColor;
}

body:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child) header.wp-block-template-part:not(.is-past-hero):has(.ext-header-overlay.ext-header--dark) :is(.wp-block-site-logo, .wp-duotone-primary-foreground):not(.cloned-for-mobile, .cloned-for-mobile *),
body:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child) header.wp-block-template-part:has(.ext-header-glass.ext-header--dark) :is(.wp-block-site-logo, .wp-duotone-primary-foreground):not(.cloned-for-mobile, .cloned-for-mobile *) {
	filter: var(--ext-header-dark-logo-filter);
}

/* Nav-extras CTA: white pill + dark text for contrast against the dark hero scrim.
   Drops out at .is-past-hero so the button returns to its preset styling. */
body:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child) header.wp-block-template-part:not(.is-past-hero):has(.ext-header-overlay.ext-header--dark) .ext-nav-extras-btn:not(.cloned-for-mobile, .cloned-for-mobile *) .wp-block-button__link,
body:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child) header.wp-block-template-part:has(.ext-header-glass.ext-header--dark) .ext-nav-extras-btn:not(.cloned-for-mobile, .cloned-for-mobile *) .wp-block-button__link {
	background-color: #fefefe !important;
	color: #060606 !important;
}

/* Sticky non-glass headers: smooth shadow/bg transitions (toggle on .is-scrolled / .is-past-hero) */
header.wp-block-template-part:has(.ext-header-sticky):not(:has(.ext-header-glass)) {
	transition: background-color 300ms ease, box-shadow 300ms ease;
}

/* Floating-pill: smooth the top change when .is-scrolled toggles, so the
   header doesn't snap up when scrolling past the admin bar. */
header.wp-block-template-part:has(.ext-header-sticky.ext-header-sticky--floating-pill) {
	transition: top 300ms ease;
}

/* Subpage elevation shadow: appears when user scrolls (no hero on the page) */
body:not(:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child)) header.wp-block-template-part.is-scrolled:has(.ext-header-sticky):not(:has(.ext-header-glass)) {
	box-shadow: 0 4px 24px -8px rgb(0 0 0 / 0.08);
}

/* Smart sticky transitions: smooth color/filter changes when toggling .is-past-hero */
header.wp-block-template-part:has(.ext-header--dark) {
	transition: background-color 300ms ease, color 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}

header.wp-block-template-part:has(.ext-header--dark) :where(a, button, .wp-block-site-title, .wp-social-link) {
	transition: color 300ms ease;
}

header.wp-block-template-part:has(.ext-header--dark) .wp-block-site-logo {
	transition: filter 300ms ease;
}

/* Past-hero: any sticky+overlay gets solid theme bg + elevation shadow.
   Glass headers are excluded — they manage their own scroll visuals. */
header.wp-block-template-part.is-past-hero:has(.ext-header-sticky.ext-header-overlay):not(:has(.ext-header-glass)) {
	background-color: var(--wp--preset--color--background);
	box-shadow: 0 4px 24px -8px rgb(0 0 0 / 0.08);
}

/* Past-hero on dark variant: also revert white text / inverted logo / forced social color */
header.wp-block-template-part.is-past-hero:has(.ext-header-overlay.ext-header--dark):not(:has(.ext-header-glass)) {
	color: var(--wp--preset--color--foreground);
}

header.wp-block-template-part.is-past-hero:has(.ext-header-overlay.ext-header--dark):not(:has(.ext-header-glass)) :where(a, button, .wp-block-site-title):not(.has-background, .wp-block-button__link) {
	color: inherit;
}

header.wp-block-template-part.is-past-hero:has(.ext-header-overlay.ext-header--dark):not(:has(.ext-header-glass)) .wp-social-link {
	color: var(--wp--preset--color--foreground) !important;
}

header.wp-block-template-part.is-past-hero:has(.ext-header-overlay.ext-header--dark):not(:has(.ext-header-glass)) .wp-block-site-logo {
	filter: brightness(1) invert(0);
}

/* ===========================================================
   Hero timeline (for scroll-driven animations)
   =========================================================== */
@supports (animation-timeline: scroll()) {

	.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child {
		view-timeline: --ext-hero-timeline block;
	}
}

/* ===========================================================
   Behavior: ext-header-sticky--floating-pill
   - Layout shift: header wrapper goes transparent + constrained width
   - When combined with .ext-header-glass, animates glass intensity
   =========================================================== */
header.wp-block-template-part .ext-header-sticky--floating-pill.ext-animate {
	opacity: 1 !important;
}

header.wp-block-template-part:has(.ext-header-sticky.ext-header-sticky--floating-pill) {
	position: sticky;
	top: 0;
	z-index: 12;
	border-bottom: none;
}

body:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child) header.wp-block-template-part:has(.ext-header-sticky.ext-header-sticky--floating-pill) {
	position: sticky;
	top: var(--ext-header-offset);
	max-width: var(--wp--style--global--wide-size);
	margin-left: auto;
	margin-right: auto;
	background-color: transparent;
	padding-inline: var(--wp--style--root--padding-right) var(--wp--style--root--padding-left);
}

/* Initial glass state (over hero): override static glass-end with start values */
body:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child) header.wp-block-template-part:has(.ext-header-sticky.ext-header-sticky--floating-pill.ext-header-glass) .ext-header-sticky.ext-header-sticky--floating-pill.ext-header-glass {
	background-color: oklch(from var(--ext-header-glass-color-start) l c h / var(--ext-header-bg-opacity-start));
	backdrop-filter: blur(var(--ext-header-blur-start));
}

body.admin-bar:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child) header.wp-block-template-part:has(.ext-header-sticky.ext-header-sticky--floating-pill) {
	top:
		calc(var(--ext-header-offset) +
		var(--wp-admin--admin-bar--position-offset, var(--wp-admin--admin-bar--height, 32px)));
	background-color: transparent;
}

@media (max-width: 782px) {
	body.admin-bar:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child) header.wp-block-template-part:has(.ext-header-sticky.ext-header-sticky--floating-pill) {
		top:
			calc(var(--ext-header-offset) +
			var(--wp-admin--admin-bar--position-offset, var(--wp-admin--admin-bar--height, 46px)));
	}

	body.admin-bar:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child) header.wp-block-template-part.is-scrolled:has(.ext-header-sticky.ext-header-sticky--floating-pill) {
		top:var(--ext-header-offset);
	}
}


@supports (animation-timeline: scroll()) {

	body:not(:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child)) header.wp-block-template-part:has(.ext-header-sticky.ext-header-sticky--floating-pill) {
		max-width: calc(var(--wp--style--global--wide-size) + var(--wp--style--root--padding-right) + var(--wp--style--root--padding-left));
		margin-left: auto;
		margin-right: auto;
	}

	@media (prefers-reduced-motion: no-preference) {

		body:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child) header.wp-block-template-part:has(.ext-header-sticky.ext-header-sticky--floating-pill.ext-header-glass) .ext-header-sticky.ext-header-sticky--floating-pill.ext-header-glass {
			animation: ext-header-glass-intensify linear both !important;
			animation-timeline: --ext-hero-timeline !important;
			animation-range: exit 0% exit 80% !important;
		}

		body:not(:has(.entry-content > .ext-hero-section.ext-hero-section--full-screen:first-child)) header.wp-block-template-part:has(.ext-header-sticky.ext-header-sticky--floating-pill.ext-header-glass) .ext-header-sticky.ext-header-sticky--floating-pill.ext-header-glass {
			animation: ext-header-glass-intensify-no-hero linear forwards !important;
			animation-timeline: scroll() !important;
			animation-range: 0 var(--ext-header-animation-distance) !important;
		}
	}
}

@keyframes ext-header-glass-intensify {

	from {
		background-color: oklch(from var(--ext-header-glass-color-start) l c h / var(--ext-header-bg-opacity-start));
		backdrop-filter: blur(var(--ext-header-blur-start));
	}

	to {
		background-color: oklch(from var(--ext-header-glass-color-end) l c h / var(--ext-header-bg-opacity-end));
		backdrop-filter: blur(var(--ext-header-blur-end));
		box-shadow: 0 14px 28px -10px rgb(0 0 0 / 0.14), 0 -14px 28px -10px rgb(0 0 0 / 0.14);
	}
}

@keyframes ext-header-glass-intensify-no-hero {

	from {
		background-color: oklch(from var(--ext-header-glass-color-start) l c h / var(--ext-header-bg-opacity-start));
		backdrop-filter: blur(var(--ext-header-blur-start));
		box-shadow: none;
		translate: 0 0;
		max-width: 100%;
		margin-inline: auto;
	}

	to {
		background-color: oklch(from var(--ext-header-glass-color-end) l c h / var(--ext-header-bg-opacity-end));
		backdrop-filter: blur(var(--ext-header-blur-end));
		box-shadow: 0 14px 28px -10px rgb(0 0 0 / 0.14), 0 -14px 28px -10px rgb(0 0 0 / 0.14);

		translate: 0 var(--ext-header-offset);
		max-width: var(--wp--style--global--wide-size);
		margin-inline: var(--wp--style--root--padding-right) var(--wp--style--root--padding-left);
		border-radius: 1rem;
	}
}

/* ===========================================================
   Vibe/gradient fix
   -----------------------------------------------------------
   Vibe block-style variations (e.g. is-style-ext-preset--group--*--header-1--N)
   paint a background gradient on the header. That gradient fights every
   over-hero / glass-tint / dark-scrim treatment we apply to overlay or glass
   headers, because the glass and overlay rules set background-COLOR while the
   variation sets a background-IMAGE that paints on top.
   Override the variation's background-image specifically (not the whole
   `background:` shorthand). That lets each header keep working in its
   natural design:
     - overlay non-glass: gets transparent bg over hero, theme bg past hero
     - glass: gets the glass tint (light by default, dark when --dark is set)
   On non-overlay / non-glass headers the variation gradient stays as-is.
   =========================================================== */
.ext-header-overlay[class*="is-style-ext-preset--"],
.ext-header-glass[class*="is-style-ext-preset--"] {
	background-image: none !important;
}

/* Temporary: a few template parts (e.g. no-title-sticky-header.html) wrap our
   header in another sticky <header>. Scope the fix to the three new headers
   (atlas-beacon, catalina-skyline, ceadar-peak) — they're the only ones
   using .ext-header-overlay, so older headers that intentionally rely on
   the wrapper's positioning aren't affected. display: contents removes the
   wrapper from layout entirely so its bg/border/sticky/box-shadow/
   wp-container-* styles don't apply. Remove once the upstream template
   stops wrapping. */
header:has(> header.wp-block-template-part :where(.ext-header-overlay)) {
	display: contents;
}

/* =============================================================
   Traila: Reduce excessive section white space
   ============================================================= */

/* Section padding: reduce spacing-70 (7rem) to ~4rem max */
.wp-block-group.alignfull[style*="spacing--70"] {
	padding-top: clamp(2.5rem, 6vw, 4rem) !important;
	padding-bottom: clamp(2.5rem, 6vw, 4rem) !important;
}

/* =============================================================
   Traila Photo Gallery — masonry grid + lightbox styling
   ============================================================= */
.traila-photo-gallery {
	gap: 0.75rem !important;
}

.traila-photo-gallery .wp-block-image {
	overflow: hidden;
	border-radius: 8px;
	cursor: pointer;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.traila-photo-gallery .wp-block-image:hover {
	transform: scale(1.02);
	box-shadow: 0 8px 24px rgba(13, 43, 75, 0.22);
}

.traila-photo-gallery .wp-block-image img {
	width: 100%;
	height: 260px;
	object-fit: cover;
	display: block;
	border-radius: 8px;
	transition: transform 0.3s ease;
}

.traila-photo-gallery .wp-block-image:hover img {
	transform: scale(1.05);
}

/* =============================================================
   Traila Homepage — compact 4-image gallery grid
   ============================================================= */
.traila-home-gallery {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr);
	gap: 0.75rem !important;
	flex-wrap: unset !important;
}

.traila-home-gallery > .wp-block-column {
	flex-basis: unset !important;
	width: auto !important;
}

.traila-home-gallery__item,
.traila-home-gallery .wp-block-image {
	margin: 0;
	overflow: hidden;
	border-radius: 10px;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.traila-home-gallery__item a,
.traila-home-gallery .wp-block-image a {
	display: block;
	line-height: 0;
}

.traila-home-gallery__item:hover,
.traila-home-gallery .wp-block-image:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 28px rgba(13, 43, 75, 0.2);
}

.traila-home-gallery__item img,
.traila-home-gallery .wp-block-image img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
	border-radius: 10px;
	transition: transform 0.35s ease;
}

.traila-home-gallery__item:hover img,
.traila-home-gallery .wp-block-image:hover img {
	transform: scale(1.06);
}

@media (max-width: 900px) {
	.traila-home-gallery {
		grid-template-columns: repeat(2, 1fr);
	}
	.traila-home-gallery__item img,
	.traila-home-gallery .wp-block-image img {
		height: 180px;
	}
}

@media (max-width: 480px) {
	.traila-home-gallery {
		grid-template-columns: 1fr 1fr;
		gap: 0.5rem !important;
	}
	.traila-home-gallery__item img,
	.traila-home-gallery .wp-block-image img {
		height: 140px;
	}
}

/* Tighten gap before Google Reviews slider */
.traila-section-before-reviews {
	padding-bottom: clamp(0.75rem, 2vw, 1.25rem) !important;
}

/* No white wave band before the dark reviews section */
.traila-section-before-reviews::after {
	display: none !important;
}

.traila-section-before-reviews + .wp-block-shortcode,
.traila-section-before-reviews ~ .wp-block-shortcode {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.wp-block-post-content > .wp-block-shortcode {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

.traila-reviews {
	padding-top: clamp(1.25rem, 3vw, 2rem) !important;
	margin-top: 0 !important;
}

/* Tighter spacing between stacked intro paragraphs (homepage + inner pages) */
#about.wp-block-group > .has-text-align-center + .has-text-align-center,
.wp-block-group#about .wp-block-paragraph.has-text-align-center + .wp-block-paragraph.has-text-align-center,
.wp-block-post-content .wp-block-paragraph.has-text-align-center[style*="margin-top:1.5rem"] + .wp-block-paragraph.has-text-align-center {
	margin-top: 0.75rem !important;
}

.traila-tight-paragraphs .wp-block-paragraph + .wp-block-paragraph {
	margin-top: 0.75rem !important;
}

/* Calendly booking widget on homepage */
.traila-booking-widget {
	background: #fff;
	border-radius: 12px;
	padding: 0.75rem 0.75rem 0.25rem;
	box-shadow: 0 4px 24px rgba(13, 43, 75, 0.08);
	max-width: min(900px, 100%);
	margin: 1.5rem auto 0;
	overflow: hidden;
}

.traila-booking-widget .traila-cal-inline-host,
.traila-booking-widget .calendly-inline-widget {
	min-height: 700px;
	height: 700px;
	overflow: hidden;
}

.page-id-23 .traila-cal-inline-host,
.page-id-23 .calendly-inline-widget,
.page-id-25 .traila-cal-inline-host,
.page-id-25 .calendly-inline-widget,
.page-id-26 .traila-cal-inline-host,
.page-id-26 .calendly-inline-widget {
	min-height: 700px;
	height: 700px;
}

/* Multi-service booking selector */
.traila-booking-selector {
	max-width: min(900px, 100%);
	width: 100%;
	margin: 0 auto 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.traila-booking-selector__head {
	background: #fff;
	border-radius: 12px;
	padding: 1.25rem 1.5rem 1rem;
	box-shadow: 0 4px 24px rgba(13, 43, 75, 0.08);
	margin-bottom: 0;
}

.traila-booking-selector__label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: rgba(13, 43, 75, 0.65);
	margin-bottom: 0.5rem;
}

.traila-booking-selector__control {
	position: relative;
}

.traila-service-select {
	width: 100%;
	appearance: none;
	-webkit-appearance: none;
	background: #f4f8fb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230D2B4B' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E") no-repeat right 1rem center;
	border: 2px solid rgba(13, 43, 75, 0.12);
	border-radius: 10px;
	padding: 0.9rem 2.75rem 0.9rem 1rem;
	font-size: 1rem;
	font-weight: 500;
	color: #0d2b4b;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.traila-service-select:hover,
.traila-service-select:focus {
	border-color: #cc1122;
	box-shadow: 0 0 0 3px rgba(204, 17, 34, 0.12);
	outline: none;
}

.traila-service-hint {
	margin: 0.75rem 0 0;
	font-size: 0.95rem;
	color: rgba(13, 43, 75, 0.72);
	line-height: 1.5;
}

.traila-booking-selector .traila-booking-widget {
	max-width: 100%;
	width: 100%;
	margin: 0;
}

.traila-booking-widget--multi {
	margin-top: 0;
}

.traila-calendly-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 280px;
	padding: 2rem 1.5rem;
	text-align: center;
	color: rgba(13, 43, 75, 0.55);
	background: #fff;
	border-radius: 12px;
	border: 2px dashed rgba(13, 43, 75, 0.12);
}

.traila-calendly-placeholder[hidden],
.traila-calendly-container[hidden] {
	display: none !important;
}

.traila-calendly-placeholder__icon {
	font-size: 2rem;
	margin-bottom: 0.5rem;
}

.traila-calendly-placeholder p {
	margin: 0;
	font-size: 1rem;
	max-width: 28ch;
}

@media (max-width: 600px) {
	.traila-booking-selector__head {
		padding: 1rem;
	}

	.traila-service-select {
		font-size: 0.95rem;
	}
}

/* Left-aligned intro copy (Home / Services / About) */
.traila-section-wide-intro > .wp-block-paragraph,
.traila-section-wide-intro .wp-block-columns .wp-block-paragraph,
.traila-tight-paragraphs .wp-block-paragraph,
.traila-tight-paragraphs .wp-block-columns .wp-block-paragraph,
#about.traila-section-wide-intro > .wp-block-paragraph {
	text-align: left !important;
}

/* Services + About: three-column feature blurbs left-aligned (not activity cards) */
.traila-section-wide-intro .wp-block-columns .wp-block-column p,
.traila-section-wide-intro .wp-block-columns .wp-block-column h4,
.page-id-24 #about ~ .wp-block-columns.alignwide .wp-block-column p,
.page-id-24 .wp-block-column:not(:has(.wp-block-cover)) > .wp-block-paragraph {
	text-align: left !important;
}

/* Services activity cards — 3-column grid with square images */
body.page-id-28 .traila-services-activity-grid.wp-block-columns,
body.page-id-28 .wp-block-columns.traila-services-activity-grid {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 1.25rem !important;
	flex-wrap: unset !important;
	align-items: stretch !important;
}

body.page-id-28 .traila-services-activity-grid > .wp-block-column {
	flex-basis: auto !important;
	width: auto !important;
	max-width: none !important;
	min-width: 0 !important;
	margin: 0 !important;
	display: flex !important;
	flex-direction: column !important;
}

body.page-id-28 .traila-services-activity-grid .wp-block-cover,
body.page-id-28 .traila-services-activity-grid .traila-activity-card {
	aspect-ratio: 1 / 1 !important;
	min-height: 0 !important;
	height: auto !important;
	width: 100% !important;
	flex: 1 1 auto;
	position: relative !important;
}

body.page-id-28 .traila-services-activity-grid .wp-block-cover__image-background {
	object-fit: cover !important;
	height: 100% !important;
	width: 100% !important;
}

/* Services activity cards — label, title, price and button centered */
.page-id-28 .wp-block-columns.alignwide > .wp-block-column > .wp-block-cover .wp-block-cover__inner-container,
.page-id-28 .traila-activity-card .wp-block-cover__inner-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	text-align: center !important;
	width: 100%;
}

.page-id-28 .wp-block-columns.alignwide > .wp-block-column > .wp-block-cover .wp-block-cover__inner-container p,
.page-id-28 .wp-block-columns.alignwide > .wp-block-column > .wp-block-cover .wp-block-cover__inner-container h3,
.page-id-28 .traila-activity-card .wp-block-cover__inner-container p,
.page-id-28 .traila-activity-card .wp-block-cover__inner-container h3 {
	text-align: center !important;
	width: 100%;
}

.page-id-28 .wp-block-columns.alignwide > .wp-block-column > .wp-block-cover .wp-block-buttons,
.page-id-28 .traila-activity-card .wp-block-buttons {
	width: 100%;
	justify-content: center !important;
}

.page-id-28 .traila-activity-card .wp-block-cover__inner-container h3 {
	min-height: 2.75em;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 0.75rem !important;
}

.page-id-28 .traila-activity-card .wp-block-button__link,
.page-id-28 .wp-block-columns.alignwide > .wp-block-column > .wp-block-cover .wp-block-button__link {
	font-weight: 600 !important;
	font-size: 0.85rem !important;
	padding: 0.45rem 1.25rem !important;
	line-height: 1.35 !important;
	min-height: unset !important;
}

@media (max-width: 900px) {
	body.page-id-28 .traila-services-activity-grid.wp-block-columns,
	body.page-id-28 .wp-block-columns.traila-services-activity-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 580px) {
	body.page-id-28 .traila-services-activity-grid.wp-block-columns,
	body.page-id-28 .wp-block-columns.traila-services-activity-grid {
		grid-template-columns: 1fr !important;
	}
}

/* Blog archive (home template + posts page) */
body.home .traila-blog-archive,
body.blog .traila-blog-archive,
.traila-blog-archive {
	background-color: var(--wp--preset--color--background, #fff);
}

.traila-blog-archive__intro {
	max-width: 42rem;
	margin: 0 auto 2.5rem;
	text-align: center;
}

.traila-blog-archive__intro h2 {
	color: var(--wp--preset--color--primary, #0D2B4B);
	margin-bottom: 0.75rem;
}

.traila-blog-archive__intro p {
	color: var(--wp--preset--color--foreground, #1a1a2e);
	line-height: 1.65;
	margin: 0;
}

.traila-blog-grid .wp-block-post-template {
	gap: 2rem;
}

.traila-blog-grid .wp-block-post-template.is-layout-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.traila-blog-card {
	display: flex;
	flex-direction: column;
	box-shadow: 0 4px 20px rgba(13, 43, 75, 0.08);
	border: 1px solid rgba(13, 43, 75, 0.06);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	overflow: hidden;
	height: 100%;
	background: #fff;
}

.traila-blog-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(13, 43, 75, 0.14);
}

.traila-blog-card .wp-block-post-featured-image {
	overflow: hidden;
}

.traila-blog-card .wp-block-post-featured-image img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.traila-blog-card:hover .wp-block-post-featured-image img {
	transform: scale(1.04);
}

.traila-blog-card__body {
	padding: 1.25rem 1.35rem 1.5rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.traila-blog-card .wp-block-post-title {
	margin: 0 0 0.65rem !important;
	font-size: 1.15rem !important;
	line-height: 1.35;
}

.traila-blog-card .wp-block-post-title a {
	color: var(--wp--preset--color--primary, #0D2B4B);
	text-decoration: none;
}

.traila-blog-card .wp-block-post-title a:hover {
	color: var(--wp--preset--color--secondary, #CC1122);
}

.traila-blog-card .wp-block-post-excerpt {
	margin: 0 0 1rem !important;
	flex: 1;
	color: rgba(13, 43, 75, 0.78);
	line-height: 1.6;
	font-size: 0.95rem;
}

.traila-blog-card .wp-block-post-excerpt__more-link {
	display: inline-block;
	margin-top: 0.25rem;
	font-weight: 600;
	font-size: 0.875rem;
	color: var(--wp--preset--color--secondary, #CC1122);
	text-decoration: none;
}

.traila-blog-card .wp-block-post-excerpt__more-link:hover {
	text-decoration: underline;
}

.traila-blog-card .wp-block-post-date {
	margin: 0 0 0.5rem !important;
	font-size: 0.8rem !important;
	color: rgba(13, 43, 75, 0.55);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.traila-blog-card .wp-block-post-title {
	text-align: left;
}

.traila-blog-card .wp-block-post-excerpt {
	text-align: left;
}

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

@media (min-width: 782px) and (max-width: 1100px) {
	.traila-blog-grid .wp-block-post-template.is-layout-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

/* Single blog post readability */
.single-post .entry-content,
.single-post .wp-block-post-content {
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

.traila-single-post__hero {
	align-items: flex-start;
}

.traila-single-post .wp-block-post-title,
.traila-single-post .wp-block-post-title a {
	text-decoration: none !important;
	color: var(--wp--preset--color--primary, #0D2B4B);
	line-height: 1.25;
}

.traila-single-post .wp-block-post-title a:hover {
	color: var(--wp--preset--color--secondary, #CC1122);
}

.traila-single-post .wp-block-post-date {
	color: rgba(13, 43, 75, 0.55);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.85rem;
}

.traila-single-post .wp-block-post-featured-image img {
	width: 100%;
	height: auto;
	object-fit: cover;
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(13, 43, 75, 0.12);
}

.traila-single-post .wp-block-post-content {
	font-size: 1.05rem;
	line-height: 1.75;
	color: rgba(13, 43, 75, 0.88);
}

.traila-single-post .wp-block-post-content .wp-block-post-featured-image {
	display: none;
}

@media (max-width: 781px) {
	.traila-single-post__hero {
		flex-direction: column-reverse !important;
	}

	.traila-single-post__hero > .wp-block-column {
		flex-basis: 100% !important;
		width: 100% !important;
	}
}

.traila-booking-fallback {
	text-align: center;
	margin: 0.5rem 0 0.25rem;
	padding-bottom: 0.25rem;
	font-size: 0.9rem;
}

/* Services + About: intro text same width as card rows (alignwide) */
.traila-section-wide-intro:not(#about),
.traila-section-wide-intro:not(#about).wp-block-group {
	max-width: var(--wp--style--global--wide-size, 80rem) !important;
	width: 100% !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: var(--wp--preset--spacing--30, 1.25rem);
	padding-right: var(--wp--preset--spacing--30, 1.25rem);
	box-sizing: border-box;
}

.traila-section-wide-intro .wp-block-columns,
.traila-section-wide-intro:not(#about) .wp-block-columns {
	max-width: 100% !important;
	width: 100% !important;
}

/* About: full-bleed section bg, wide inner content matching columns below */
#about.traila-section-wide-intro > .wp-block-heading,
#about.traila-section-wide-intro > .wp-block-paragraph,
#about.traila-section-wide-intro > .wp-block-columns {
	max-width: var(--wp--style--global--wide-size, 80rem) !important;
	width: 100% !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: var(--wp--preset--spacing--30, 1.25rem);
	padding-right: var(--wp--preset--spacing--30, 1.25rem);
	box-sizing: border-box;
}

/* Homepage booking section — centered booking stack (~900px) */
#book-now.wp-block-group {
	padding-top: clamp(1rem, 2.5vw, 1.75rem) !important;
	padding-bottom: clamp(1.25rem, 3vw, 2rem) !important;
}

#book-now.wp-block-group.is-layout-constrained > .wp-block-heading,
#book-now.wp-block-group.is-layout-constrained > .wp-block-paragraph,
#book-now.wp-block-group[class*="wp-container-core-group-is-layout"] > .wp-block-heading,
#book-now.wp-block-group[class*="wp-container-core-group-is-layout"] > .wp-block-paragraph {
	margin-block-start: 0 !important;
}

#book-now > .wp-block-heading {
	margin-top: 0 !important;
	margin-bottom: 0.65rem !important;
}

#book-now > .wp-block-paragraph {
	margin-top: 0 !important;
	margin-bottom: 0.65rem !important;
}

#book-now > .wp-block-group.alignwide,
.traila-booking-stack {
	width: min(900px, 100%) !important;
	max-width: min(900px, 100%) !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: var(--wp--preset--spacing--30, 1.25rem);
	padding-right: var(--wp--preset--spacing--30, 1.25rem);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.75rem;
}

#book-now .alignwide .traila-discount-notice--booking,
.traila-booking-stack .traila-discount-notice--booking,
#book-now .alignwide .traila-booking-selector,
.traila-booking-stack .traila-booking-selector,
#book-now .alignwide .traila-booking-selector .traila-booking-widget,
.traila-booking-stack .traila-booking-selector .traila-booking-widget,
#book-now .alignwide .traila-booking-selector__head,
.traila-booking-stack .traila-booking-selector__head {
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	box-sizing: border-box;
}

#book-now .alignwide .traila-discount-notice--booking,
.traila-booking-stack .traila-discount-notice--booking {
	margin-bottom: 0 !important;
	padding: 0.65rem 1.25rem !important;
}

#book-now .alignwide .traila-booking-selector,
.traila-booking-stack .traila-booking-selector {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	max-width: 100% !important;
}

#book-now .alignwide .traila-booking-selector__head,
.traila-booking-stack .traila-booking-selector__head {
	padding: 1.25rem 1.5rem 1rem !important;
	margin-bottom: 0 !important;
}

#book-now .alignwide .traila-booking-selector .traila-booking-widget,
.traila-booking-stack .traila-booking-selector .traila-booking-widget {
	margin-top: 0 !important;
	max-width: 100% !important;
}

#book-now .alignwide .traila-booking-fallback,
.traila-booking-stack .traila-booking-fallback {
	margin: 0 !important;
	text-align: center;
}

.traila-booking-fallback a {
	color: var(--wp--preset--color--secondary, #1A6FA8);
	font-weight: 600;
	text-decoration: none;
}

.traila-booking-fallback a:hover {
	text-decoration: underline;
}

/* Mobile gallery: 1 col */
@media (max-width: 600px) {
	.traila-photo-gallery {
		columns: 1 !important;
	}
	.traila-photo-gallery .wp-block-image img {
		height: 220px;
	}
}

/* =============================================================
   Traila Footer styling
   ============================================================= */
footer.wp-block-template-part.wp-block-group,
footer.wp-block-group {
	margin-top: 0 !important;
}

.traila-footer-list {
	padding-left: 0 !important;
	margin: 0;
	list-style: none !important;
}

.traila-footer-list li {
	margin-bottom: 0.6rem;
	list-style: none !important;
}

.traila-footer-list li::before {
	display: none !important;
}

.traila-footer-list a {
	color: rgba(255,255,255,0.65) !important;
	text-decoration: none !important;
	font-size: 0.875rem;
	transition: color 0.2s;
}

.traila-footer-list a:hover {
	color: #fff !important;
}

/* Footer social icons — larger */
footer .wp-block-social-links .wp-social-link,
footer .wp-block-social-links .wp-block-social-link {
	width: 28px !important;
	height: 28px !important;
}

footer .wp-block-social-links .wp-social-link svg,
footer .wp-block-social-links .wp-block-social-link-anchor svg {
	width: 22px !important;
	height: 22px !important;
}

/* Footer responsive */
@media (max-width: 781px) {
	footer .wp-block-columns.alignwide {
		flex-direction: column;
		gap: 2rem;
	}
	footer .wp-block-column {
		flex-basis: 100% !important;
	}
}

/* =============================================================
   Traila Global Spacing + Responsiveness Audit Fixes
   ============================================================= */

/* Remove gap between sections completely */
.wp-site-blocks > .wp-block-group.alignfull {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

/* Hero cover blocks: no bottom margin bleeding */
.wp-site-blocks > .wp-block-group.alignfull > .wp-block-cover:first-child,
.wp-site-blocks > .wp-block-cover.alignfull:first-child {
	margin: 0 !important;
}

/* Ensure cover block (hero) on inner pages fills properly */
.wp-block-cover.alignfull {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

/* Fix post-content layout gap at top of page */
.wp-block-post-content > .wp-block-cover.alignfull:first-child,
.wp-block-post-content > .wp-block-group.alignfull:first-child {
	margin-top: 0 !important;
}

/* Consistent section padding on mobile */
@media (max-width: 600px) {
	.wp-block-group.alignfull.has-global-padding {
		padding-left: var(--wp--preset--spacing--20) !important;
		padding-right: var(--wp--preset--spacing--20) !important;
	}

	.wp-block-cover__inner-container {
		padding-left: var(--wp--preset--spacing--20);
		padding-right: var(--wp--preset--spacing--20);
	}

	/* Hero headings smaller on mobile */
	.wp-block-cover .has-xx-large-font-size {
		font-size: clamp(1.6rem, 6vw, 2.5rem) !important;
	}
}

/* Wave only between visible sections, not on hero covers */
.wp-site-blocks > .wp-block-cover.alignfull::after,
.wp-block-post-content > .wp-block-cover.alignfull::after {
	display: none;
}

/* Wave should not show after the reviews section (last on page) */
.traila-reviews + * {
	margin-top: 0 !important;
}

/* Columns gap fix on mobile */
@media (max-width: 781px) {
	.wp-block-columns.alignwide {
		flex-direction: column;
	}

	.wp-block-columns.alignwide .wp-block-column {
		flex-basis: 100% !important;
		width: 100% !important;
	}

	/* Service cards grid on services page */
	body.page-id-28 .traila-services-activity-grid .wp-block-cover {
		min-height: 0 !important;
	}

	body:not(.page-id-28) .wp-block-columns.alignwide .wp-block-column .wp-block-cover {
		min-height: 280px !important;
	}
}

@media (min-width: 580px) and (max-width: 900px) {
	/* Service cards: 2 cols on tablet (not services activity grid) */
	body:not(.page-id-28) .wp-block-columns.alignwide {
		flex-wrap: wrap;
	}
	body:not(.page-id-28) .wp-block-columns.alignwide .wp-block-column {
		flex-basis: calc(50% - 0.75rem) !important;
		width: calc(50% - 0.75rem) !important;
		min-width: 0;
	}
}

/* Booking info 3-column contact: stack on mobile */
@media (max-width: 600px) {
	.wp-block-columns.alignwide:has(.wp-block-column:nth-child(3)) {
		gap: 1rem;
	}
}

/* =============================================================
   Service booking sidebar (single service pages)
   ============================================================= */
.traila-service-booking .wp-block-separator,
.page-id-83 .wp-block-group:has(h3 + p + p + .wp-block-buttons) .wp-block-separator,
.page-id-84 .wp-block-group:has(h3 + p + p + .wp-block-buttons) .wp-block-separator,
.page-id-85 .wp-block-group:has(h3 + p + p + .wp-block-buttons) .wp-block-separator,
.page-id-86 .wp-block-group:has(h3 + p + p + .wp-block-buttons) .wp-block-separator,
.page-id-87 .wp-block-group:has(h3 + p + p + .wp-block-buttons) .wp-block-separator,
.page-id-166 .wp-block-group:has(h3 + p + p + .wp-block-buttons) .wp-block-separator {
	display: none !important;
}

.traila-service-booking .wp-block-buttons {
	margin-bottom: 1.25rem;
}

.traila-service-booking .wp-block-buttons .wp-block-button__link {
	border-radius: 2rem;
	padding: 0.65rem 1.75rem;
	font-weight: 600;
	background-color: var(--wp--preset--color--secondary, #CC1122) !important;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
}

.traila-service-booking .wp-block-buttons .wp-block-button__link:hover {
	background-color: #a80e1b !important;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
}

.traila-service-booking > p:last-child,
.traila-service-booking .wp-block-paragraph:last-child {
	margin-top: 0;
	line-height: 1.7;
	font-size: 0.9rem;
}

.traila-service-booking .wp-block-paragraph:last-child a,
.traila-service-booking > p:last-child a {
	text-decoration: none;
	color: var(--wp--preset--color--primary, #0D2B4B);
}

.traila-service-booking .wp-block-paragraph:last-child a:hover,
.traila-service-booking > p:last-child a:hover {
	color: var(--wp--preset--color--secondary, #CC1122);
}

/* =============================================================
   Click-to-play YouTube embed
   ============================================================= */
.traila-youtube {
	position: relative;
	width: 100%;
	max-width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 12px;
	overflow: hidden;
	background: #0d2b4b;
	box-shadow: 0 8px 24px rgba(13, 43, 75, 0.15);
}

.traila-youtube__poster {
	display: block;
	position: relative;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.traila-youtube__poster img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.traila-youtube__play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 72px;
	height: 72px;
	margin: -36px 0 0 -36px;
	border-radius: 50%;
	background: rgba(204, 17, 34, 0.92);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.traila-youtube__play::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 54%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 14px 0 14px 22px;
	border-color: transparent transparent transparent #fff;
}

.traila-youtube__poster:hover .traila-youtube__play,
.traila-youtube__poster:focus-visible .traila-youtube__play {
	background: rgba(168, 14, 27, 0.95);
	transform: scale(1.05);
}

.traila-youtube__poster:focus-visible {
	outline: 3px solid var(--wp--preset--color--secondary, #CC1122);
	outline-offset: 3px;
}

.traila-youtube__player,
.traila-youtube__player iframe {
	width: 100%;
	height: 100%;
}

.traila-youtube__player {
	position: absolute;
	inset: 0;
}

/* =============================================================
   Online payment discount notice
   ============================================================= */
.traila-discount-notice {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	padding: 0.55rem 1rem;
	border-radius: 12px;
	border: 1px solid rgba(204, 17, 34, 0.2);
	background: linear-gradient(135deg, rgba(204, 17, 34, 0.07) 0%, rgba(13, 43, 75, 0.05) 100%);
	box-shadow: none;
}

.traila-discount-notice__icon {
	flex: 0 0 auto;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: var(--wp--preset--color--secondary, #CC1122);
	color: #fff;
	font-weight: 800;
	font-size: 0.92rem;
	line-height: 2rem;
	text-align: center;
	box-shadow: none;
}

.traila-discount-notice__content {
	flex: 1;
	min-width: 0;
}

.traila-discount-notice__title {
	margin: 0 0 0.2rem;
	font-weight: 700;
	font-size: 0.98rem;
	color: var(--wp--preset--color--foreground, #0B0620);
	line-height: 1.3;
}

.traila-discount-notice__text {
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.45;
	color: color-mix(in srgb, var(--wp--preset--color--foreground, #0B0620) 82%, transparent);
}

.traila-discount-notice--compact {
	margin: 0.2rem auto 0.35rem;
}

.page-id-28 .is-style-ext-preset--group--natural-1--section:has(.traila-discount-notice--compact) {
	padding-bottom: clamp(1rem, 2.5vw, 1.5rem) !important;
}

.page-id-28 .wp-block-shortcode:has(.traila-discount-notice--compact) {
	margin-top: 0.15rem !important;
	margin-bottom: 0.25rem !important;
}

.page-id-28 .wp-block-shortcode:has(.traila-discount-notice--compact) + .traila-services-activity-grid,
.page-id-28 .wp-block-shortcode:has(.traila-discount-notice--compact) + .wp-block-columns.traila-services-activity-grid {
	margin-top: 0 !important;
}

.traila-discount-notice--booking {
	width: 100%;
	max-width: min(900px, 100%);
	margin: 0 auto 0.75rem;
	box-sizing: border-box;
}

.traila-booking-selector {
	margin-top: 0;
}

.traila-booking-selector__head {
	margin-bottom: 1rem;
}

/* Tighter spacing around booking shortcode sections on home/booking/contact */
.wp-block-shortcode + .traila-booking-selector,
.traila-discount-notice--booking + .traila-booking-selector {
	margin-top: 0;
}

.page-id-28 .traila-discount-notice--compact {
	margin-bottom: 1rem;
}

.traila-discount-notice--sidebar {
	margin-bottom: 1rem;
	padding: 0.55rem 1rem;
}

.traila-discount-notice--sidebar .traila-discount-notice__icon {
	width: 2.15rem;
	height: 2.15rem;
	line-height: 2.15rem;
	font-size: 0.95rem;
}

.traila-discount-notice--sidebar .traila-discount-notice__title {
	font-size: 0.9rem;
}

.traila-discount-notice--sidebar .traila-discount-notice__text {
	font-size: 0.8rem;
}

@media (max-width: 600px) {
	.traila-discount-notice {
		padding: 0.5rem 0.85rem;
	}

	.traila-discount-notice__title {
		font-size: 0.92rem;
	}

	.traila-discount-notice__text {
		font-size: 0.84rem;
	}
}

/* Deposit pricing summary (PayPal Phase 1) */
.traila-deposit-summary {
	margin: 0 0 1rem;
	padding: 1rem 1.1rem;
	border-radius: 10px;
	border: 1px solid rgba(13, 43, 75, 0.12);
	background: rgba(13, 43, 75, 0.04);
}

.traila-deposit-summary__title {
	margin: 0 0 0.65rem;
	font-weight: 700;
	font-size: 0.92rem;
	color: var(--wp--preset--color--foreground, #0B0620);
}

.traila-deposit-summary__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.traila-deposit-summary__list li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.35rem 0;
	font-size: 0.86rem;
	border-bottom: 1px solid rgba(13, 43, 75, 0.08);
}

.traila-deposit-summary__list li:last-child {
	border-bottom: none;
}

.traila-deposit-summary__note {
	margin: 0.65rem 0 0;
	font-size: 0.78rem;
	line-height: 1.5;
	color: color-mix(in srgb, var(--wp--preset--color--foreground, #0B0620) 70%, transparent);
}

/* Post-booking deposit checkout panel */
.traila-deposit-checkout {
	margin-top: 1.5rem;
}

.traila-deposit-checkout__card {
	max-width: 640px;
	margin: 0 auto;
	padding: 1.5rem 1.35rem;
	border-radius: 12px;
	border: 1px solid rgba(13, 43, 75, 0.12);
	background: #fff;
	box-shadow: 0 8px 28px rgba(13, 43, 75, 0.08);
	text-align: center;
}

.traila-deposit-checkout__card--error {
	border-color: rgba(179, 45, 46, 0.35);
}

.traila-deposit-checkout__icon {
	margin: 0 0 0.35rem;
	font-size: 1.75rem;
	line-height: 1;
	color: #1a7f37;
}

.traila-deposit-checkout__title {
	margin: 0 0 0.5rem;
	font-size: 1.35rem;
	color: var(--wp--preset--color--foreground, #0B0620);
}

.traila-deposit-checkout__title:focus {
	outline: 2px solid var(--wp--preset--color--primary, #C0392B);
	outline-offset: 4px;
}

.traila-deposit-checkout__lead {
	margin: 0 0 1rem;
	font-size: 0.92rem;
	line-height: 1.55;
	color: color-mix(in srgb, var(--wp--preset--color--foreground, #0B0620) 78%, transparent);
}

.traila-deposit-checkout__btn {
	display: inline-block;
	margin-top: 1rem;
	padding: 0.85rem 1.5rem;
	border-radius: 999px;
	background: var(--wp--preset--color--primary, #C0392B);
	color: #fff !important;
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.traila-deposit-checkout__btn:hover {
	opacity: 0.92;
}

.traila-deposit-checkout__methods,
.traila-deposit-checkout__paid {
	margin: 0.75rem 0 0;
	font-size: 0.82rem;
	line-height: 1.5;
	color: color-mix(in srgb, var(--wp--preset--color--foreground, #0B0620) 68%, transparent);
}

.traila-deposit-checkout .traila-deposit-summary {
	text-align: left;
}

.traila-deposit-payment {
	margin-top: 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(13, 43, 75, 0.1);
	text-align: center;
}

.traila-deposit-payment__title {
	margin: 0 0 0.35rem;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--wp--preset--color--foreground, #0B0620);
}

.traila-deposit-payment__subtitle {
	margin: 0 0 1rem;
	font-size: 0.84rem;
	line-height: 1.5;
	color: color-mix(in srgb, var(--wp--preset--color--foreground, #0B0620) 62%, transparent);
}

.traila-deposit-payment__buttons {
	min-height: 130px;
	max-width: 420px;
	margin: 0 auto;
}

.traila-deposit-payment__buttons > div,
.traila-deposit-payment__buttons iframe {
	width: 100% !important;
	min-height: 44px;
}

.traila-deposit-payment__fallback {
	max-width: 420px;
	margin: 0 auto;
}

.traila-deposit-payment__fallback[hidden] {
	display: none !important;
}

.traila-deposit-payment__note {
	max-width: 420px;
	margin: 0.85rem auto 0;
	padding: 0.65rem 0.75rem;
	border-radius: 8px;
	background: rgba(13, 43, 75, 0.05);
	font-size: 0.78rem;
	line-height: 1.45;
	color: color-mix(in srgb, var(--wp--preset--color--foreground, #0B0620) 72%, transparent);
}

.traila-deposit-checkout__btn--card {
	display: block;
	width: 100%;
	max-width: 420px;
	margin: 0 auto;
	background: #2c2e2f;
}

.traila-deposit-checkout__expire,
.traila-deposit-checkout__choose {
	margin: 0 0 1rem;
	font-size: 0.88rem;
	line-height: 1.5;
	color: color-mix(in srgb, var(--wp--preset--color--foreground, #0B0620) 72%, transparent);
}

.traila-deposit-checkout__change-wrap {
	margin: 0.75rem 0 0;
}

.traila-deposit-checkout__change {
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--primary, #C0392B);
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
	padding: 0;
}

.traila-payment-options {
	display: grid;
	gap: 0.85rem;
	margin-top: 0.5rem;
	text-align: left;
}

.traila-payment-option {
	appearance: none;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	width: 100%;
	padding: 1rem 1.05rem;
	border: 1px solid rgba(13, 43, 75, 0.16);
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
	text-align: left;
	font: inherit;
	color: inherit;
}

.traila-payment-option:hover,
.traila-payment-option:focus-visible {
	border-color: var(--wp--preset--color--primary, #C0392B);
	box-shadow: 0 6px 20px rgba(13, 43, 75, 0.1);
	outline: none;
}

.traila-payment-option--featured {
	border-color: rgba(192, 57, 43, 0.45);
	background: color-mix(in srgb, var(--wp--preset--color--primary, #C0392B) 6%, #fff);
}

.traila-payment-option__badge {
	display: inline-block;
	align-self: flex-start;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	background: var(--wp--preset--color--primary, #C0392B);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.traila-payment-option__title {
	font-size: 1.02rem;
	font-weight: 700;
	color: var(--wp--preset--color--foreground, #0B0620);
}

.traila-payment-option__desc {
	font-size: 0.84rem;
	line-height: 1.45;
	color: color-mix(in srgb, var(--wp--preset--color--foreground, #0B0620) 68%, transparent);
}

.traila-payment-option__amount {
	margin-top: 0.25rem;
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--wp--preset--color--foreground, #0B0620);
}

.traila-payment-option__meta {
	font-size: 0.8rem;
	color: color-mix(in srgb, var(--wp--preset--color--foreground, #0B0620) 62%, transparent);
}

@media (min-width: 640px) {
	.traila-payment-options {
		grid-template-columns: 1fr 1fr;
	}
}

/* Deposit thank-you page */
.traila-deposit-thank-you {
	max-width: 640px;
	margin: 1.5rem auto 0;
	padding: 2rem 1.75rem;
	border-radius: 14px;
	background: #fff;
	border: 1px solid rgba(13, 43, 75, 0.1);
	box-shadow: 0 8px 32px rgba(13, 43, 75, 0.08);
	text-align: center;
}

.traila-deposit-thank-you__icon {
	font-size: 2.5rem;
	line-height: 1;
	margin: 0 0 0.75rem;
	color: var(--wp--preset--color--secondary, #CC1122);
}

.traila-deposit-thank-you__heading {
	margin: 0 0 0.75rem;
	color: var(--wp--preset--color--primary, #0D2B4B);
	font-size: 1.45rem;
}

.traila-deposit-thank-you__lead {
	margin: 0 0 1.25rem;
	line-height: 1.65;
	color: color-mix(in srgb, var(--wp--preset--color--foreground, #0B0620) 82%, transparent);
}

.traila-deposit-thank-you__summary {
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
	text-align: left;
}

.traila-deposit-thank-you__summary li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.5rem 0;
	border-bottom: 1px solid rgba(13, 43, 75, 0.08);
	font-size: 0.92rem;
}

.traila-deposit-thank-you__summary li:last-child {
	border-bottom: none;
}

.traila-deposit-thank-you__note,
.traila-deposit-thank-you__contact {
	margin: 0.75rem 0 0;
	font-size: 0.88rem;
	line-height: 1.6;
}

.traila-deposit-thank-you__btn {
	display: inline-block;
	margin-top: 0.5rem;
	padding: 0.65rem 1.5rem;
	border-radius: 2rem;
	background: var(--wp--preset--color--secondary, #CC1122);
	color: #fff !important;
	text-decoration: none;
	font-weight: 600;
}

/* Reduce excess vertical space on booking sections */
.page-id-25 .wp-block-shortcode:has(.traila-discount-notice),
.page-id-27 .wp-block-shortcode:has(.traila-discount-notice),
.page-id-26 .wp-block-shortcode:has(.traila-discount-notice) {
	margin-top: 0.15rem !important;
	margin-bottom: 0.25rem !important;
}

.page-id-25 .wp-block-shortcode:has(.traila-discount-notice) + .wp-block-shortcode,
.page-id-27 .wp-block-shortcode:has(.traila-discount-notice) + .wp-block-shortcode,
.page-id-26 .wp-block-shortcode:has(.traila-discount-notice) + .wp-block-shortcode {
	margin-top: 0 !important;
}

.home #book-now .wp-block-shortcode:has(.traila-discount-notice) {
	margin-top: 0 !important;
	margin-bottom: 0.15rem !important;
}

/* =============================================================
   Contact page — clean two-column layout
   ============================================================= */
.page-id-26 .traila-contact-main {
	background: #fff;
}

.page-id-26 .traila-contact-layout {
	align-items: flex-start;
	max-width: 960px;
	margin: 0 auto;
}

.page-id-26 .traila-contact-sidebar .wp-block-image {
	margin: 0 0 1.25rem;
}

.page-id-26 .traila-contact-sidebar .wp-block-image img {
	width: 100%;
	max-height: 260px;
	object-fit: cover;
	border-radius: 12px;
	display: block;
}

.page-id-26 .traila-contact-form-panel {
	background: #f4f8fb;
	border-radius: 16px;
	padding: 1.5rem 1.75rem !important;
	border: 1px solid rgba(13, 43, 75, 0.06);
}

.page-id-26 .traila-contact-form-panel .wp-block-heading {
	color: var(--wp--preset--color--primary, #0D2B4B);
	font-size: 1.35rem;
}

.page-id-26 .traila-contact-details {
	padding: 0;
}

.page-id-26 .traila-contact-details > .wp-block-paragraph {
	margin: 0 0 1rem;
	color: rgba(13, 43, 75, 0.82);
}

.page-id-26 .traila-contact-booking {
	background: #f4f8fb;
}

.page-id-26 .traila-contact-booking .wp-block-heading {
	color: var(--wp--preset--color--primary, #0D2B4B);
}

/* WPForms on contact page */
.page-id-26 .wpforms-container,
.page-id-26 div.wpforms-container-full {
	margin: 0 !important;
	padding: 0 !important;
}

.page-id-26 .wpforms-container .wpforms-field-label,
.page-id-26 .wpforms-container-full .wpforms-field-label {
	color: #0D2B4B !important;
	font-weight: 600 !important;
	font-size: 0.875rem !important;
	margin-bottom: 0.3rem !important;
}

.page-id-26 .wpforms-container input[type="text"],
.page-id-26 .wpforms-container input[type="email"],
.page-id-26 .wpforms-container textarea,
.page-id-26 .wpforms-container-full input[type="text"],
.page-id-26 .wpforms-container-full input[type="email"],
.page-id-26 .wpforms-container-full textarea {
	width: 100% !important;
	max-width: 100% !important;
	border: 1px solid rgba(13, 43, 75, 0.18) !important;
	border-radius: 10px !important;
	padding: 0.7rem 0.9rem !important;
	font-size: 0.95rem !important;
	background: #fff !important;
	color: #0D2B4B !important;
	box-shadow: none !important;
}

.page-id-26 .wpforms-container input:focus,
.page-id-26 .wpforms-container textarea:focus,
.page-id-26 .wpforms-container-full input:focus,
.page-id-26 .wpforms-container-full textarea:focus {
	border-color: #CC1122 !important;
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(204, 17, 34, 0.1) !important;
}

.page-id-26 .wpforms-container textarea,
.page-id-26 .wpforms-container-full textarea {
	min-height: 96px !important;
}

.page-id-26 .wpforms-container .wpforms-field,
.page-id-26 .wpforms-container-full .wpforms-field {
	padding: 0 !important;
	margin-bottom: 0.75rem !important;
}

.page-id-26 .wpforms-container button[type="submit"],
.page-id-26 .wpforms-container .wpforms-submit,
.page-id-26 .wpforms-container-full button[type="submit"],
.page-id-26 .wpforms-container-full .wpforms-submit {
	background-color: #CC1122 !important;
	background: #CC1122 !important;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	border: none !important;
	border-radius: 999px !important;
	padding: 0.75rem 1.75rem !important;
	font-weight: 600 !important;
	font-size: 0.95rem !important;
	width: 100% !important;
	margin-top: 0.25rem !important;
	cursor: pointer;
	box-shadow: none !important;
}

.page-id-26 .wpforms-container button[type="submit"]:hover,
.page-id-26 .wpforms-container-full button[type="submit"]:hover {
	background-color: #a80e1b !important;
	color: #ffffff !important;
}

/* Inline contact list */
.traila-contact-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
}

.traila-contact-list__item {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.6rem;
	text-decoration: none;
	color: #0D2B4B;
	font-weight: 500;
	font-size: 0.95rem;
	line-height: 1.35;
}

.traila-contact-list__item:hover {
	color: #CC1122;
}

.traila-contact-list__icon {
	flex: 0 0 1.25rem;
	font-size: 1rem;
	line-height: 1;
}

.traila-contact-list__text {
	flex: 1;
	min-width: 0;
	word-break: break-word;
}

@media (max-width: 781px) {
	.page-id-26 .traila-contact-layout {
		flex-direction: column !important;
	}

	.page-id-26 .traila-contact-layout > .wp-block-column {
		flex-basis: 100% !important;
		width: 100% !important;
	}

	.page-id-26 .traila-contact-sidebar .wp-block-image img {
		max-height: 200px;
	}

	.page-id-26 .traila-contact-form-panel {
		padding: 1.25rem !important;
	}

	.page-id-26 .wpforms-container input[type="text"],
	.page-id-26 .wpforms-container input[type="email"],
	.page-id-26 .wpforms-container textarea {
		font-size: 16px !important;
	}
}

@media (max-width: 600px) {
	.page-id-26 .trp-language-switcher-container.trp-float-bottom-right {
		bottom: 92px !important;
		right: 10px !important;
	}

	.page-id-26 .cht-widget-holder,
	.page-id-26 #chat-widget-container {
		bottom: 18px !important;
		right: 14px !important;
	}
}

/* Traila reviews section: responsive fix */
@media (max-width: 480px) {
	.traila-reviews__intro {
		padding: 0 1rem;
	}
	.traila-reviews__title {
		font-size: clamp(1.4rem, 6vw, 2rem);
	}
}

/* Fix excessive blockGap on wp-site-blocks */
:where(.wp-site-blocks) > * {
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
}

/* Prevent horizontal overflow from reviews full-width */
.wp-site-blocks {
	overflow-x: clip;
}

/* =============================================================
   Albania Adventure-inspired: Stats bar between hero and content
   ============================================================= */
.traila-stats-bar {
	background: var(--wp--preset--color--foreground, #0D2B4B);
	padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(1.5rem, 4vw, 4rem);
	flex-wrap: wrap;
}

.traila-stats-bar__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.15rem;
	color: #fff;
}

.traila-stats-bar__number {
	font-size: clamp(1.4rem, 3vw, 1.9rem);
	font-weight: 700;
	line-height: 1.1;
	color: var(--wp--preset--color--primary, #CC1122);
}

.traila-stats-bar__label {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	opacity: 0.75;
	white-space: nowrap;
}

@media (max-width: 480px) {
	.traila-stats-bar {
		gap: 1.5rem 2rem;
	}
}

/* =============================================================
   Language switcher position fix (keep above WhatsApp button)
   ============================================================= */
.trp-language-switcher-container.trp-float-bottom-right {
	bottom: 90px !important;
	z-index: 999 !important;
}

/* =============================================================
   WhatsApp / click-to-chat button brand color override
   ============================================================= */
.cht-icon-circle {
	background-color: #25d366 !important;
}

/* =============================================================
   Section card hover lift for service pages
   ============================================================= */
.wp-block-column .wp-block-cover {
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.wp-block-column .wp-block-cover:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(13, 43, 75, 0.18);
}
