/*
Theme Name: MotoSol Adventures
Theme URI: https://motosol.com
Author: MotoSol Team
Author URI: https://motosol.com
Description: A modern, high-energy block theme for MotoSol Adventure Motorcycle Tours in Spain. Features full site editing with customizable patterns for hero sections, service cards, contact forms, and more.
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
Version: 1.7.1
GitHub Theme URI: https://github.com/HandsomeStrife/motosol
Text Domain: motosol
Tags: block-theme, full-site-editing, adventure, sports, travel, custom-colors, custom-menu, editor-style, responsive-layout, sticky-post, threaded-comments, translation-ready
*/

/**
 * Custom Styles for MotoSol Theme
 * Extends the design tokens defined in theme.json
 */

/* ==========================================================================
   Sticky Footer Layout
   ========================================================================== */

/* Ensure the page takes at least full viewport height */
html {
	height: 100%;
}

body {
	min-height: 100%;
	display: flex;
	flex-direction: column;
}

/* WordPress block theme site container - make it a flex container */
.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

/* Main content area grows to push footer down */
.wp-site-blocks > main,
.wp-site-blocks > .wp-block-group[tagName="main"],
.wp-site-blocks > main.wp-block-group {
	flex-grow: 1;
}

/* Ensure template parts behave correctly in flex layout */
.wp-site-blocks > header,
.wp-site-blocks > footer,
.wp-site-blocks > .wp-block-template-part {
	flex-shrink: 0;
}

/* ==========================================================================
   Button Styles
   ========================================================================== */

/* Orange pill button style */
.wp-block-button.is-style-orange-pill .wp-block-button__link {
	border-radius: 8px;
	padding: 1rem 2.5rem;
	background-color: var(--wp--preset--color--primary-orange);
	color: #ffffff;
	font-weight: 600;
	text-transform: none;
	transition: all 0.3s ease;
	border: 2px solid var(--wp--preset--color--primary-orange);
}

.wp-block-button.is-style-orange-pill .wp-block-button__link:hover {
	background-color: #e55f00;
	border-color: #e55f00;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

/* White solid button style with orange text */
.wp-block-button.is-style-white-outline .wp-block-button__link {
	border-radius: 8px;
	padding: 1rem 2.5rem;
	background-color: #ffffff;
	color: var(--wp--preset--color--primary-orange);
	font-weight: 600;
	border: 2px solid #ffffff;
	transition: all 0.3s ease;
}

.wp-block-button.is-style-white-outline .wp-block-button__link:hover {
	background-color: #f5f5f5;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Card Styles
   ========================================================================== */

.motosol-service-card {
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
	background-color: #ffffff;
}

.motosol-service-card .wp-block-group > .wp-block-group {
	color: var(--wp--preset--color--contrast);
}

.motosol-service-card .wp-block-group > .wp-block-group h3 {
	color: var(--wp--preset--color--contrast);
}

.motosol-service-card .wp-block-group > .wp-block-group p:last-child {
	text-align: right;
	margin-bottom: 0;
}

.motosol-service-card figure.wp-block-image {
	border-radius: 12px 12px 0 0;
	margin-bottom: 0;
}

.motosol-service-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	transform: translateY(-4px);
}

/* ==========================================================================
   Header & Navigation Styles
   ========================================================================== */

/* Remove margins from main block */
main.wp-block-group {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

/* -------------------------------------------------------------------------
   Common Header Styles (both home and default)
   ------------------------------------------------------------------------- */

.site-header {
	z-index: 1000;
}

/* Remove default sticky positioning from old code */
.wp-block-template-part.site-header {
	position: relative;
	background-color: transparent;
	box-shadow: none;
}

/* Header logo sizing */
.header-logo img {
	height: auto;
	max-height: 60px;
	width: auto;
}

.header-logo-full img {
	max-height: 80px;
}

.header-logo-small img {
	max-height: 50px;
}

/* Navigation styling - smaller text, white color */
.header-navigation {
	font-size: 0.875rem !important;
}

.header-navigation .wp-block-navigation__container {
	gap: 0.5rem;
}

.header-navigation .wp-block-navigation-item__content {
	color: #ffffff !important;
	font-weight: 500;
	padding: 0.5rem 1rem;
	border-radius: 4px;
	transition: all 0.2s ease;
}

.header-navigation .wp-block-navigation-item__content:hover {
	color: #ffffff !important;
	opacity: 0.8;
}

/* Active/current page indicator - orange background */
.header-navigation .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content,
.header-navigation .current_page_item .wp-block-navigation-item__content {
	background-color: var(--wp--preset--color--primary-orange);
	color: #ffffff !important;
	border-radius: 4px;
}

/* -------------------------------------------------------------------------
   Home Page Header - Transparent with absolute positioned logo
   ------------------------------------------------------------------------- */

.site-header-home {
	background-color: rgba(0, 0, 0, 0.4) !important;
	position: absolute !important;
	width: 100%;
	top: 0;
	left: 0;
}

/* Ensure the header group container doesn't clip the logo */
.site-header-home > .wp-block-group {
	overflow: visible;
}

/* Navigation should align to the right on home page */
.site-header-home .header-navigation {
	margin-left: auto;
}

/* Full logo - absolutely positioned to hang below header */
.site-header-home .header-logo-full {
	position: absolute;
	top: 15px;
	z-index: 10;
	margin: 0;
}

.site-header-home .header-logo-full img {
	max-height: 100px;
	width: auto;
}

/* -------------------------------------------------------------------------
   Default Header (non-home pages) - Dark Ocean Blue solid background
   ------------------------------------------------------------------------- */

.site-header-default {
	background-color: var(--wp--preset--color--dark-ocean-blue) !important;
	position: sticky;
	top: 0;
}

.site-header-default .header-logo-small {
	position: relative;
	margin: 0 !important;
}

/* Constrain logo in default header to fit within header height */
.site-header-default .header-logo-small,
.site-header-default .header-logo,
.site-header-default figure.wp-block-image {
	max-height: 50px !important;
	overflow: hidden;
}

.site-header-default .header-logo-small img,
.site-header-default .header-logo img,
.site-header-default figure.wp-block-image img {
	max-height: 50px !important;
	width: auto !important;
	height: auto !important;
	object-fit: contain;
}

/* Editor-specific: Ensure logo constraints apply in Site Editor */
.editor-styles-wrapper .site-header-default .header-logo img,
.editor-styles-wrapper .site-header-default .header-logo-small img,
.editor-styles-wrapper .site-header-default figure.wp-block-image img,
.block-editor-iframe__body .site-header-default .header-logo img,
.block-editor-iframe__body .site-header-default .header-logo-small img,
.block-editor-iframe__body .site-header-default figure.wp-block-image img {
	max-height: 50px !important;
	width: auto !important;
	height: auto !important;
	object-fit: contain;
}

/* -------------------------------------------------------------------------
   Mobile Navigation Overlay
   ------------------------------------------------------------------------- */

/* Hide hamburger on desktop, show on mobile */
@media (min-width: 783px) {
	.header-navigation .wp-block-navigation__responsive-container-open {
		display: none !important;
	}
	
	/* Ensure desktop nav is visible */
	.header-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: flex !important;
		width: auto;
	}
}

@media (max-width: 782px) {
	/* Show hamburger button on mobile */
	.header-navigation .wp-block-navigation__responsive-container-open {
		display: flex !important;
	}
	
	/* Hide desktop nav on mobile */
	.header-navigation .wp-block-navigation__responsive-container:not(.is-menu-open):not(.hidden-by-default) .wp-block-navigation__container {
		display: none;
	}
}

/* Mobile menu container - full screen overlay */
.header-navigation .wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--dark-ocean-blue) !important;
	position: fixed !important;
	inset: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
	z-index: 100000 !important;
	display: flex !important;
	flex-direction: column !important;
	box-sizing: border-box !important;
	padding-top: calc(4rem + env(safe-area-inset-top)) !important;
	padding-right: env(safe-area-inset-right) !important;
	padding-left: env(safe-area-inset-left) !important;
	padding-bottom: calc(env(safe-area-inset-bottom) + clamp(9rem, 18vh, 14rem)) !important;
	margin: 0 !important;
	overflow-y: auto !important;
	overflow-x: hidden !important;
	-webkit-overflow-scrolling: touch !important;
	overscroll-behavior: contain !important;
	touch-action: pan-y !important;
	scroll-padding-top: calc(4rem + env(safe-area-inset-top)) !important;
	scroll-padding-bottom: calc(env(safe-area-inset-bottom) + clamp(9rem, 18vh, 14rem)) !important;
}

/* Mobile menu content wrapper - scrollable for short screens */
.header-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: flex-start !important;
	width: 100% !important;
	max-width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
	gap: 0 !important;
	overflow: visible !important;
}

/* Navigation list in mobile - centered in viewport */
.header-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: var(--wp--preset--spacing--40);
	width: 100% !important;
	height: auto !important;
	padding: 0 !important;
	margin: auto 0 !important;
	list-style: none;
	flex-shrink: 0 !important;
}

/* Mobile menu items */
.header-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: auto;
	text-align: center;
	margin: 0;
}

.header-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	color: #ffffff !important;
	font-size: 1.5rem;
	font-weight: 500;
	padding: 0.75rem 1.5rem;
	display: block;
	text-align: center;
	text-decoration: none;
	transition: all 0.2s ease;
}

.header-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--primary-orange) !important;
}

/* Active item in mobile menu */
.header-navigation .wp-block-navigation__responsive-container.is-menu-open .current-menu-item .wp-block-navigation-item__content,
.header-navigation .wp-block-navigation__responsive-container.is-menu-open .current_page_item .wp-block-navigation-item__content {
	background-color: var(--wp--preset--color--primary-orange);
	color: #ffffff !important;
	border-radius: 8px;
}

/* Close button - fixed to top right of viewport */
.header-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	color: #ffffff !important;
	position: fixed !important;
	top: calc(1.25rem + env(safe-area-inset-top)) !important;
	right: calc(1.25rem + env(safe-area-inset-right)) !important;
	z-index: 100001;
	width: 48px !important;
	height: 48px !important;
	padding: 0 !important;
	background: transparent !important;
	border: none !important;
	cursor: pointer;
}

.header-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close svg {
	width: 32px !important;
	height: 32px !important;
}

.header-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close:hover {
	color: var(--wp--preset--color--primary-orange) !important;
}

/* Hamburger menu button - three line style */
.header-navigation .wp-block-navigation__responsive-container-open {
	color: #ffffff;
	width: 28px;
	height: 24px;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: stretch;
	padding: 0;
	background: transparent;
	border: none;
	cursor: pointer;
}

/* Hide default SVG icon */
.header-navigation .wp-block-navigation__responsive-container-open svg {
	display: none !important;
}

/* Create three-line hamburger with pseudo-elements */
.header-navigation .wp-block-navigation__responsive-container-open::before,
.header-navigation .wp-block-navigation__responsive-container-open::after {
	content: '';
	display: block;
	width: 100%;
	height: 3px;
	background-color: #ffffff;
	border-radius: 2px;
	transition: all 0.2s ease;
}

.header-navigation .wp-block-navigation__responsive-container-open::before {
	box-shadow: 0 10px 0 #ffffff;
}

.header-navigation .wp-block-navigation__responsive-container-open:hover::before,
.header-navigation .wp-block-navigation__responsive-container-open:hover::after {
	background-color: var(--wp--preset--color--primary-orange);
}

.header-navigation .wp-block-navigation__responsive-container-open:hover::before {
	box-shadow: 0 10px 0 var(--wp--preset--color--primary-orange);
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */

/* Remove footer top margin */
.wp-block-template-part[data-area="footer"],
footer.wp-block-template-part,
.wp-site-blocks > footer {
	margin-top: 0 !important;
}

/* Compact footer spacing */
.wp-block-template-part footer .wp-block-group {
	line-height: 1.4;
}

/* Footer links styling */
.wp-block-template-part footer a {
	color: inherit;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.wp-block-template-part footer a:hover {
	opacity: 0.8;
	text-decoration: none;
}

/* Reduce social icons spacing in footer */
.wp-block-template-part footer .wp-block-social-links {
	gap: 0.75rem !important;
}

.wp-block-template-part footer .wp-block-social-links .wp-social-link {
	width: 2.25rem;
	height: 2.25rem;
}

/* Old sticky header styles removed - now handled per header type */

/* ==========================================================================
   Hero Section Styles
   ========================================================================== */

/* Hero section needs to account for absolute positioned header */
.motosol-hero-content {
	margin-top: 0;
}

/* Make cover inner container fill available space and left-align content */
.motosol-hero-content .wp-block-cover__inner-container {
	margin-left: 0;
	margin-right: 0;
	display: flex !important;
	flex-direction: column;
	align-items: flex-start !important;
	justify-content: center;
	max-width: var(--wp--style--global--wide-size);
	padding-top: 50px;
}

/* Hero text content - half width on large screens, left aligned with other content */
.motosol-hero-content .motosol-hero-text {
	max-width: calc(var(--wp--style--global--wide-size, 1340px) * 0.6) !important;
	width: calc(var(--wp--style--global--wide-size, 1340px) * 0.6) !important;
	align-items: flex-start !important;
	margin-left: 10px !important;
	margin-right: auto !important;
}

.motosol-hero-content .motosol-hero-text > * {
	max-width: 100%;
}

@media (max-width: 1024px) {
	.motosol-hero-content .motosol-hero-text {
		max-width: 70% !important;
		width: 70% !important;
	}
}

@media (max-width: 782px) {
	.motosol-hero-content .motosol-hero-text {
		max-width: 100% !important;
		width: 100% !important;
	}
}

.motosol-hero-content h1 {
	text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.motosol-hero-content p {
	text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   About Section with Orange Diagonal Stripes
   ========================================================================== */

.motosol-about-section {
	position: relative;
	overflow: hidden;
}

/* Decorative diagonal stripes - matching reference design */
.motosol-about-section::before {
	content: '';
	position: absolute;
	right: -15%;
	top: -20%;
	width: 40%;
	height: 160%;
	z-index: 0;
	pointer-events: none;
	background: 
		linear-gradient(
			-70deg,
			var(--wp--preset--color--primary-orange) 0%,
			var(--wp--preset--color--primary-orange) 25%,
			var(--wp--preset--color--ocean-blue) 25%,
			var(--wp--preset--color--ocean-blue) 28%,
			var(--wp--preset--color--primary-orange) 28%,
			var(--wp--preset--color--primary-orange) 48%,
			var(--wp--preset--color--ocean-blue) 48%,
			var(--wp--preset--color--ocean-blue) 51%,
			var(--wp--preset--color--primary-orange) 51%,
			var(--wp--preset--color--primary-orange) 68%,
			var(--wp--preset--color--ocean-blue) 68%,
			var(--wp--preset--color--ocean-blue) 71%,
			transparent 71%
		);
}

/* Ensure content stays above decorative stripes */
.motosol-about-section > * {
	position: relative;
	z-index: 1;
}

@media (max-width: 782px) {
	.motosol-about-section::before {
		width: 30%;
		right: -10%;
		opacity: 0.5;
	}
}

@media (max-width: 600px) {
	.motosol-about-section::before {
		display: none;
	}
}

/* ==========================================================================
   Contact Form 7 Styles
   ========================================================================== */

/* Form container */
.wpcf7 {
	width: 100%;
}

.wpcf7-form {
	width: 100%;
}

/* Input fields, textareas, and selects - targeting CF7 specific classes */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 select,
.wpcf7 textarea,
.wpcf7-form-control.wpcf7-text,
.wpcf7-form-control.wpcf7-email,
.wpcf7-form-control.wpcf7-tel,
.wpcf7-form-control.wpcf7-textarea,
.wpcf7-form-control.wpcf7-select {
	width: 100% !important;
	max-width: 100% !important;
	padding: 0.875rem 1rem !important;
	border: 2px solid #e1e8ed !important;
	border-radius: 8px !important;
	font-family: inherit;
	font-size: 1rem !important;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
	background-color: #ffffff !important;
	box-sizing: border-box !important;
}

/* Focus states */
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 input[type="number"]:focus,
.wpcf7 input[type="date"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus,
.wpcf7-form-control:focus {
	border-color: #FF6B00 !important;
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1) !important;
}

/* Textarea specific */
.wpcf7 textarea,
.wpcf7-form-control.wpcf7-textarea {
	resize: vertical;
	min-height: 150px !important;
	width: 100% !important;
}

/* Select dropdown */
.wpcf7 select {
	appearance: none;
	background-image: 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='%231A1A1A' d='M1.41 0L6 4.59L10.59 0L12 1.41l-6 6l-6-6z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	background-size: 12px;
	padding-right: 3rem;
}

/* Submit button - Multiple selectors for specificity */
.wpcf7 input[type="submit"],
.wpcf7 button[type="submit"],
.wpcf7-form input[type="submit"],
.wpcf7-form button[type="submit"],
.wpcf7-submit,
input.wpcf7-submit {
	width: 100%;
	padding: 1rem 2.5rem !important;
	background-color: #FF6B00 !important;
	color: #ffffff !important;
	font-weight: 600 !important;
	font-size: 1rem !important;
	border: 2px solid #FF6B00 !important;
	border-radius: 8px !important;
	cursor: pointer;
	transition: all 0.3s ease;
	font-family: inherit;
	appearance: none;
	-webkit-appearance: none;
	text-transform: none;
	letter-spacing: normal;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 button[type="submit"]:hover,
.wpcf7-form input[type="submit"]:hover,
.wpcf7-form button[type="submit"]:hover,
.wpcf7-submit:hover,
input.wpcf7-submit:hover {
	background-color: #e55f00 !important;
	border-color: #e55f00 !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3) !important;
}

.wpcf7 input[type="submit"]:active,
.wpcf7 button[type="submit"]:active,
.wpcf7-form input[type="submit"]:active,
.wpcf7-form button[type="submit"]:active,
.wpcf7-submit:active,
input.wpcf7-submit:active {
	transform: translateY(0);
}

/* Form field wrappers */
.wpcf7-form-control-wrap {
	display: block !important;
	width: 100% !important;
	position: relative;
}

/* Form paragraphs */
.wpcf7-form p {
	margin-bottom: 1.25rem;
	position: relative;
	width: 100%;
}

/* Ensure form uses full width */
.wpcf7-form {
	width: 100%;
}

/* Labels should also be full width */
.wpcf7 p > label {
	display: block;
	width: 100%;
}

/* Labels */
.wpcf7 label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: var(--wp--preset--color--contrast);
}

/* Hide label text when using placeholders */
.wpcf7 label br {
	display: none;
}

.wpcf7 p {
	margin-bottom: 1.25rem;
}

/* Validation errors */
.wpcf7-not-valid-tip {
	color: #dc3545;
	font-size: 0.875rem;
	margin-top: 0.25rem;
	display: block;
}

.wpcf7-not-valid {
	border-color: #dc3545 !important;
}

/* Response output */
.wpcf7-response-output {
	margin: 1.5rem 0 0;
	padding: 1rem;
	border-radius: 8px;
	font-size: 0.95rem;
	border: 2px solid;
}

.wpcf7-mail-sent-ok {
	color: #28a745;
	background-color: #d4edda;
	border-color: #28a745;
}

.wpcf7-validation-errors,
.wpcf7-acceptance-missing {
	color: #dc3545;
	background-color: #f8d7da;
	border-color: #dc3545;
}

.wpcf7-spam-blocked {
	color: #856404;
	background-color: #fff3cd;
	border-color: #856404;
}

/* Loading spinner */
.wpcf7-spinner {
	position: absolute;
	right: 1rem;
	top: 50%;
	transform: translateY(-50%);
	margin: 0;
}

/* Acceptance checkbox */
.wpcf7-list-item {
	margin-bottom: 0.5rem;
}

.wpcf7-list-item-label {
	font-size: 0.875rem;
	margin-left: 0.5rem;
}

/* Placeholder text */
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
	color: #6c757d;
	opacity: 1;
}

/* Screen reader text */
.wpcf7-screen-reader-response {
	position: absolute;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
}

/* ==========================================================================
   Contact Section - Force Top Alignment
   ========================================================================== */

#contact .wp-block-columns {
	align-items: flex-start !important;
}

#contact .wp-block-column.is-vertically-aligned-center {
	align-self: flex-start !important;
}

/* ==========================================================================
   Service Cards V2 (White cards with image at top)
   ========================================================================== */

.motosol-service-card-v2 {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

.motosol-service-card-v2:hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.motosol-service-card-v2 figure {
	margin: 0;
}

.motosol-service-card-v2 figure img {
	display: block;
	width: 100%;
}

/* ==========================================================================
   Testimonials Section Styles
   ========================================================================== */

/* Avatar styles with default person icon */
.motosol-avatar {
	width: 48px;
	height: 48px;
	min-width: 48px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background-size: cover;
	background-position: center;
	position: relative;
	margin-top: var(--wp--preset--spacing--30);
}

/* Default person icon using SVG */
.motosol-avatar::before {
	content: '';
	width: 24px;
	height: 24px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
}

/* Color variants */
.motosol-avatar-orange {
	background-color: var(--wp--preset--color--primary-orange);
}

.motosol-avatar-blue {
	background-color: var(--wp--preset--color--ocean-blue);
}

.motosol-avatar-green {
	background-color: #2D8A6E;
}

.motosol-avatar-sky {
	background-color: var(--wp--preset--color--sky-blue);
}

/* When an image is added, hide the icon */
.motosol-avatar.has-background-image::before {
	display: none;
}

/* Testimonial cards layout - equal height */
.motosol-testimonials-row {
	align-items: stretch !important;
}

.motosol-testimonials-row > .wp-block-column {
	display: flex;
	flex-direction: column;
}

.motosol-testimonial-card {
	flex: 1;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.motosol-testimonial-card > p:first-child {
	flex: 1;
	margin-bottom: var(--wp--preset--spacing--40) !important;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.has-rounded-corners {
	border-radius: 12px;
	overflow: hidden;
}

.has-shadow {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.has-text-shadow {
	text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 782px) {
	.wp-block-button.is-style-orange-pill .wp-block-button__link,
	.wp-block-button.is-style-white-outline .wp-block-button__link {
		padding: 0.875rem 2rem;
		font-size: 0.95rem;
	}
	
	/* Force columns to stack properly on mobile */
	.wp-block-columns .wp-block-column {
		flex-basis: 100% !important;
	}
	
	/* Ensure footer links have adequate tap targets */
	.wp-block-template-part footer a {
		display: inline-block;
		min-height: 44px;
		line-height: 44px;
		padding: 0 0.25rem;
	}
	
	/* Improve footer link spacing on mobile */
	.wp-block-template-part footer .wp-block-group {
		gap: 1rem !important;
	}
}

@media (max-width: 600px) {
	/* Ensure even better stacking on very small screens */
	.wp-block-columns {
		gap: var(--wp--preset--spacing--50) !important;
	}
	
	/* Bottom footer bar links - better mobile spacing */
	.wp-block-template-part footer p a {
		padding: 0.5rem;
	}
}

/* ==========================================================================
   Gallery Page Styles
   ========================================================================== */

/* Gallery Hero Section */
.motosol-gallery-hero {
	position: relative;
	overflow: hidden;
}

.motosol-gallery-hero::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 120px;
	background: linear-gradient(to top, rgba(10, 58, 94, 0.8) 0%, transparent 100%);
	pointer-events: none;
}

.motosol-gallery-hero .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
}

/* Breadcrumb styling */
.motosol-gallery-breadcrumb {
	opacity: 0.9;
}

.motosol-gallery-breadcrumb a {
	text-decoration: none;
	transition: color 0.2s ease;
}

.motosol-gallery-breadcrumb a:hover {
	color: var(--wp--preset--color--primary-orange) !important;
}

/* Gallery Grid Enhancements */
.wp-block-gallery {
	--wp--style--gallery-gap-default: 1rem;
}

.wp-block-gallery.has-nested-images figure.wp-block-image {
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wp-block-gallery.has-nested-images figure.wp-block-image:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.wp-block-gallery.has-nested-images figure.wp-block-image img {
	transition: transform 0.4s ease;
}

.wp-block-gallery.has-nested-images figure.wp-block-image:hover img {
	transform: scale(1.03);
}

/* Gallery captions */
.wp-block-gallery figcaption {
	background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
	padding: 2rem 1rem 1rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: #ffffff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Masonry-style gallery variation */
.motosol-gallery-masonry {
	columns: 3;
	column-gap: 1.5rem;
}

.motosol-gallery-masonry figure.wp-block-image {
	break-inside: avoid;
	margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
	.motosol-gallery-masonry {
		columns: 2;
	}
}

@media (max-width: 600px) {
	.motosol-gallery-masonry {
		columns: 1;
	}
}

/* Gallery CTA Section */
.motosol-gallery-cta {
	position: relative;
	overflow: hidden;
}

.motosol-gallery-cta::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -10%;
	width: 300px;
	height: 300px;
	background: radial-gradient(circle, var(--wp--preset--color--ocean-blue) 0%, transparent 70%);
	opacity: 0.4;
	pointer-events: none;
}

.motosol-gallery-cta::after {
	content: '';
	position: absolute;
	bottom: -30%;
	left: -5%;
	width: 200px;
	height: 200px;
	background: radial-gradient(circle, var(--wp--preset--color--primary-orange) 0%, transparent 70%);
	opacity: 0.2;
	pointer-events: none;
}

.motosol-gallery-cta > .wp-block-group {
	position: relative;
	z-index: 1;
}

/* Gallery Filter Tabs (for categorized galleries) */
.motosol-gallery-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
	margin-bottom: var(--wp--preset--spacing--50);
}

.motosol-gallery-filter-btn {
	padding: 0.625rem 1.25rem;
	border: 2px solid var(--wp--preset--color--border-gray);
	border-radius: 50px;
	background-color: transparent;
	color: var(--wp--preset--color--contrast);
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
}

.motosol-gallery-filter-btn:hover {
	border-color: var(--wp--preset--color--primary-orange);
	color: var(--wp--preset--color--primary-orange);
}

.motosol-gallery-filter-btn.is-active {
	background-color: var(--wp--preset--color--primary-orange);
	border-color: var(--wp--preset--color--primary-orange);
	color: #ffffff;
}

/* Lightbox Enhancements */
.wp-lightbox-overlay {
	background-color: rgba(10, 58, 94, 0.95) !important;
}

.wp-lightbox-overlay button.close-button {
	background-color: var(--wp--preset--color--primary-orange);
	border-radius: 50%;
	width: 48px;
	height: 48px;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.wp-lightbox-overlay button.close-button:hover {
	background-color: #e55f00;
	transform: scale(1.1);
}

/* Gallery image count badge */
.motosol-gallery-count {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	background-color: var(--wp--preset--color--primary-orange);
	color: #ffffff;
	border-radius: 50px;
	font-size: 0.875rem;
	font-weight: 600;
}

.motosol-gallery-count svg {
	width: 18px;
	height: 18px;
}

/* ==========================================================================
   Blog Page Styles
   ========================================================================== */

/* Blog Hero - same styling as gallery hero */
.motosol-blog-hero {
	position: relative;
	overflow: hidden;
}

.motosol-blog-hero::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 120px;
	background: linear-gradient(to top, rgba(10, 58, 94, 0.8) 0%, transparent 100%);
	pointer-events: none;
}

.motosol-blog-hero .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
}

/* Breadcrumb styling */
.motosol-blog-breadcrumb {
	opacity: 0.9;
}

.motosol-blog-breadcrumb a {
	text-decoration: none;
	transition: color 0.2s ease;
}

.motosol-blog-breadcrumb a:hover {
	color: var(--wp--preset--color--primary-orange) !important;
}

/* Blog Post Cards */
.motosol-post-card {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	overflow: hidden;
	height: 100%;
}

.motosol-post-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* Featured image in post cards */
.motosol-post-card .wp-block-post-featured-image {
	margin: 0;
	overflow: hidden;
}

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

.motosol-post-card:hover .wp-block-post-featured-image img {
	transform: scale(1.05);
}

/* Post title link styling */
.motosol-post-card .wp-block-post-title a {
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
	transition: color 0.2s ease;
}

.motosol-post-card .wp-block-post-title a:hover {
	color: var(--wp--preset--color--primary-orange);
}

/* Post excerpt Read More link */
.motosol-post-card .wp-block-post-excerpt__more-link {
	color: var(--wp--preset--color--primary-orange);
	font-weight: 600;
	text-decoration: none;
	transition: color 0.2s ease;
}

.motosol-post-card .wp-block-post-excerpt__more-link:hover {
	color: #e55f00;
}

/* Blog posts grid responsive */
@media (max-width: 782px) {
	.motosol-blog-posts .wp-block-post-template {
		grid-template-columns: 1fr !important;
	}
}

/* Query pagination styling */
.motosol-blog-posts .wp-block-query-pagination {
	gap: 1rem;
}

.motosol-blog-posts .wp-block-query-pagination-numbers {
	display: flex;
	gap: 0.5rem;
}

.motosol-blog-posts .wp-block-query-pagination-numbers .page-numbers {
	padding: 0.5rem 1rem;
	border-radius: 4px;
	text-decoration: none;
	transition: all 0.2s ease;
}

.motosol-blog-posts .wp-block-query-pagination-numbers .page-numbers.current {
	background-color: var(--wp--preset--color--primary-orange);
	color: #ffffff;
}

.motosol-blog-posts .wp-block-query-pagination-numbers .page-numbers:not(.current):hover {
	background-color: var(--wp--preset--color--light-gray);
}

/* ==========================================================================
   Single Post Hero Styles
   ========================================================================== */

.motosol-post-hero {
	position: relative;
	overflow: hidden;
}

.motosol-post-hero::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 120px;
	background: linear-gradient(to top, rgba(10, 58, 94, 0.8) 0%, transparent 100%);
	pointer-events: none;
}

.motosol-post-hero .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
}

/* Post meta styling in hero */
.motosol-post-hero .wp-block-post-date,
.motosol-post-hero .wp-block-post-terms {
	opacity: 0.9;
}

.motosol-post-hero .wp-block-post-terms a {
	color: inherit;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.motosol-post-hero .wp-block-post-terms a:hover {
	opacity: 0.8;
}

/* ==========================================================================
   Page Hero Styles
   ========================================================================== */

.motosol-page-hero {
	position: relative;
	overflow: hidden;
	align-items: flex-end !important;
}

.motosol-page-hero::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 120px;
	background: linear-gradient(to top, rgba(51, 51, 51, 0.8) 0%, transparent 100%);
	pointer-events: none;
}

.motosol-page-hero .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
}

/* Breadcrumb styling for pages */
.motosol-page-breadcrumb {
	opacity: 0.9;
}

.motosol-page-breadcrumb a {
	text-decoration: none;
	transition: color 0.2s ease;
}

.motosol-page-breadcrumb a:hover {
	color: var(--wp--preset--color--primary-orange) !important;
}

/* Hero content wrapper - constrain width to 60% */
.motosol-page-hero .motosol-hero-content-wrapper {
	max-width: 60% !important;
	width: 60%;
}

@media (max-width: 782px) {
	.motosol-page-hero .motosol-hero-content-wrapper {
		max-width: 100% !important;
		width: 100%;
	}
}

/* Hero title with drop shadow */
.motosol-hero-title {
	text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
}

.motosol-hero-excerpt p {
	margin: 0;
}

/* When no featured image, ensure hero still looks good */
.motosol-post-hero:not(.has-background-image),
.motosol-page-hero:not(.has-background-image) {
	background-image: url('/wp-content/themes/motosol/assets/images/hero-motorcycle.jpg');
	background-size: cover;
	background-position: center;
}

/* ==========================================================================
   Team Card Styles
   ========================================================================== */

.motosol-team-card {
	position: relative;
	overflow: hidden;
}

.wp-block-cover.motosol-team-card .motosol-team-card-gradient {
	position: absolute !important;
	bottom: 0 !important;
	left: 0 !important;
	right: 0 !important;
	top: auto !important;
	height: 60% !important;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%) !important;
	opacity: 1 !important;
	pointer-events: none;
	z-index: 1 !important;
}

.wp-block-cover.motosol-team-card .wp-block-cover__inner-container {
	position: relative;
	z-index: 2 !important;
}

.motosol-team-card .wp-block-cover__image-background {
	transition: transform 0.4s ease;
}

.motosol-team-card:hover .wp-block-cover__image-background {
	transform: scale(1.05);
}

/* Team grid layout */
.motosol-team-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--wp--preset--spacing--50);
	max-width: var(--wp--style--global--wide-size);
	margin: 0 auto;
}

@media (max-width: 900px) {
	.motosol-team-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.motosol-team-grid {
		grid-template-columns: 1fr;
	}
}

/* Clickable team cards */
.motosol-team-card[data-member-id] {
	cursor: pointer;
}

.motosol-team-card[data-member-id]:focus {
	outline: 2px solid var(--wp--preset--color--primary-orange);
	outline-offset: 4px;
}

/* ==========================================================================
   Team Member Modal
   ========================================================================== */

.motosol-team-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.motosol-team-modal.is-open {
	opacity: 1;
	visibility: visible;
}

.motosol-team-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.85);
	backdrop-filter: blur(4px);
}

.motosol-team-modal-container {
	position: relative;
	max-width: 900px;
	max-height: 90vh;
	width: 100%;
	background: var(--wp--preset--color--base);
	border-radius: 16px;
	overflow: hidden;
	transform: scale(0.95) translateY(20px);
	transition: transform 0.3s ease;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.motosol-team-modal.is-open .motosol-team-modal-container {
	transform: scale(1) translateY(0);
}

.motosol-team-modal-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	width: 44px;
	height: 44px;
	border: none;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	transition: background-color 0.2s ease, transform 0.2s ease;
	color: var(--wp--preset--color--contrast);
}

.motosol-team-modal-close:hover {
	background: var(--wp--preset--color--primary-orange);
	color: var(--wp--preset--color--base);
	transform: rotate(90deg);
}

.motosol-team-modal-close:focus {
	outline: 2px solid var(--wp--preset--color--primary-orange);
	outline-offset: 2px;
}

.motosol-team-modal-content {
	display: grid;
	grid-template-columns: 350px 1fr;
	max-height: 90vh;
}

.motosol-team-modal-image {
	position: relative;
	background: var(--wp--preset--color--ocean-blue);
	overflow: hidden;
}

.motosol-team-modal-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	min-height: 400px;
}

.motosol-team-modal-info {
	padding: 2.5rem;
	overflow-y: auto;
	max-height: 90vh;
}

.motosol-team-modal-name {
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	font-weight: 700;
	color: var(--wp--preset--color--contrast);
	margin: 0 0 0.5rem 0;
	line-height: 1.2;
}

.motosol-team-modal-role {
	font-size: 1.125rem;
	color: var(--wp--preset--color--primary-orange);
	margin: 0 0 1rem 0;
	font-weight: 600;
}

/* Social links in modal */
.motosol-team-modal-social {
	display: flex;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}

.motosol-team-social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--wp--preset--color--light-gray);
	color: var(--wp--preset--color--contrast);
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.motosol-team-social-link:hover {
	transform: translateY(-2px);
}

.motosol-team-social-linkedin:hover {
	background: #0A66C2;
	color: #fff;
}

.motosol-team-social-twitter:hover {
	background: #000;
	color: #fff;
}

.motosol-team-social-instagram:hover {
	background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
	color: #fff;
}

.motosol-team-social-facebook:hover {
	background: #1877F2;
	color: #fff;
}

.motosol-team-social-email:hover {
	background: var(--wp--preset--color--primary-orange);
	color: #fff;
}

.motosol-team-modal-bio {
	font-size: 1rem;
	line-height: 1.7;
	color: var(--wp--preset--color--contrast);
}

.motosol-team-modal-bio p {
	margin: 0 0 1rem 0;
}

.motosol-team-modal-bio p:last-child {
	margin-bottom: 0;
}

/* Modal responsive styles */
@media (max-width: 768px) {
	.motosol-team-modal-content {
		grid-template-columns: 1fr;
		max-height: 90vh;
		overflow-y: auto;
	}
	
	.motosol-team-modal-image {
		max-height: 250px;
	}
	
	.motosol-team-modal-image img {
		min-height: 250px;
		max-height: 250px;
	}
	
	.motosol-team-modal-info {
		padding: 1.5rem;
		max-height: none;
		overflow-y: visible;
	}
	
	.motosol-team-modal-close {
		background: rgba(0, 0, 0, 0.7);
		color: var(--wp--preset--color--base);
	}
	
	.motosol-team-modal-close:hover {
		background: var(--wp--preset--color--primary-orange);
	}
}

/* ==========================================================================
   Services Page Styles
   ========================================================================== */

/* Service Card Hero - Image cards with gradient overlay */
.motosol-service-card-hero {
	position: relative;
	overflow: hidden;
	width: 100%;
}

.motosol-service-card-hero .wp-block-cover__image-background {
	transition: transform 0.5s ease;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
}

.motosol-service-card-hero:hover .wp-block-cover__image-background {
	transform: scale(1.08);
}

.wp-block-cover.motosol-service-card-hero .motosol-service-card-gradient {
	position: absolute !important;
	bottom: 0 !important;
	left: 0 !important;
	right: 0 !important;
	top: auto !important;
	height: 100% !important;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 40%, transparent 100%) !important;
	opacity: 1 !important;
	pointer-events: none;
	z-index: 1 !important;
}

.wp-block-cover.motosol-service-card-hero .wp-block-cover__inner-container {
	position: relative;
	z-index: 2 !important;
}

/* Service cards stack - three equal cards filling full height */
.motosol-service-cards-stack {
	height: 100%;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--40);
}

.motosol-service-cards-stack > .wp-block-cover {
	flex: 1 1 0;
	min-height: 0;
}

/* Fix cover blocks to fill available space */
.motosol-service-cards-stack > .wp-block-cover.motosol-service-card-hero {
	position: relative;
}

/* Ensure left and right columns have equal height */
.motosol-services-overview > .alignwide > .wp-block-columns {
	align-items: stretch;
}

.motosol-services-overview .wp-block-columns > .wp-block-column {
	display: flex;
	flex-direction: column;
}

.motosol-services-overview .wp-block-columns > .wp-block-column:first-child > .wp-block-cover {
	flex: 1;
}

.motosol-services-overview .wp-block-columns > .wp-block-column:last-child > .motosol-service-cards-stack {
	flex: 1;
}

/* Override min-height from pattern for stacked cards */
.motosol-service-cards-stack > .wp-block-cover[style*="min-height"] {
	min-height: 0 !important;
}

/* Clickable service cards - entire card is hoverable */
.motosol-service-card-link {
	cursor: pointer;
}

.motosol-service-card-link h3 a {
	display: block;
}

.motosol-service-card-link h3 a:hover {
	text-decoration: underline;
}

/* Area Card Hero - Location cards with gradient overlay */
.motosol-area-card-hero {
	position: relative;
	overflow: hidden;
}

.motosol-area-card-hero .wp-block-cover__image-background {
	transition: transform 0.5s ease;
}

.motosol-area-card-hero:hover .wp-block-cover__image-background {
	transform: scale(1.08);
}

.wp-block-cover.motosol-area-card-hero .motosol-area-card-gradient {
	position: absolute !important;
	bottom: 0 !important;
	left: 0 !important;
	right: 0 !important;
	top: auto !important;
	height: 100% !important;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 45%, transparent 100%) !important;
	opacity: 1 !important;
	pointer-events: none;
	z-index: 1 !important;
}

.wp-block-cover.motosol-area-card-hero .wp-block-cover__inner-container {
	position: relative;
	z-index: 2 !important;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: 100%;
}

/* ==========================================================================
   Booking Benefits Section
   ========================================================================== */

/* Ensure all benefit cards have equal heights */
.motosol-booking-benefits .wp-block-columns {
	align-items: stretch;
}

.motosol-booking-benefits .wp-block-column {
	display: flex;
	flex-direction: column;
}

.motosol-benefit-card {
	flex: 1;
	display: flex !important;
	flex-direction: column !important;
	align-items: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.motosol-benefit-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Inner content fills available space */
.motosol-benefit-card > .wp-block-group {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	width: 100%;
}

/* Responsive adjustments for benefit cards */
@media (max-width: 782px) {
	.motosol-booking-benefits .wp-block-columns {
		flex-direction: column;
	}
	
	.motosol-benefit-card {
		min-height: auto;
	}
}

/* ==========================================================================
   Process Section
   ========================================================================== */

/* Process Section - Big numbers */
.motosol-process-big-number {
	min-width: 80px;
	opacity: 0.9;
	white-space: nowrap;
	flex-shrink: 0;
}

.motosol-process-item {
	transition: transform 0.3s ease;
}

.motosol-process-item:hover {
	transform: translateX(8px);
}

.motosol-process-item:hover .motosol-process-big-number {
	opacity: 1;
}

/* Testimonial Card V2 */
.motosol-testimonial-card-v2 {
	height: 100%;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.motosol-testimonial-card-v2:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.motosol-testimonial-avatar {
	margin: 0 !important;
}

/* Star Rating */
.motosol-star-rating {
	margin-bottom: 0;
}

/* Responsive adjustments for services */
@media (max-width: 782px) {
	.motosol-process-big-number {
		min-width: 60px;
		font-size: 2.5rem !important;
	}
	
	/* Service cards - stack and show as consistent squares on mobile */
	.motosol-services-overview .wp-block-columns {
		flex-direction: column !important;
	}
	
	.motosol-services-overview .wp-block-columns > .wp-block-column {
		flex-basis: 100% !important;
		width: 100% !important;
	}
	
	/* All service cards become consistent squares on mobile */
	.motosol-service-card-hero {
		min-height: 320px !important;
		aspect-ratio: 1 / 1;
		max-height: 400px;
	}
	
	/* Stacked cards layout adjustments on mobile */
	.motosol-service-cards-stack {
		gap: var(--wp--preset--spacing--40);
	}
	
	.motosol-service-cards-stack > .wp-block-cover {
		flex: none !important;
		min-height: 320px !important;
		aspect-ratio: 1 / 1;
		max-height: 400px;
	}
	
	/* Ensure content fits well in mobile cards */
	.motosol-service-card-hero .wp-block-cover__inner-container {
		padding: var(--wp--preset--spacing--40) !important;
	}
	
	.motosol-service-card-hero h3 {
		font-size: 1.25rem !important;
	}
	
	.motosol-service-card-hero p {
		font-size: 0.875rem !important;
		line-height: 1.5 !important;
	}
}

/* ==========================================================================
   Tour Page Styles
   ========================================================================== */

/* Tour Card Styles */
.motosol-tour-card {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	height: 100%;
}

.motosol-tour-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.motosol-tour-card .wp-block-post-featured-image {
	margin: 0;
	overflow: hidden;
}

.motosol-tour-card .wp-block-post-featured-image img {
	transition: transform 0.4s ease;
}

.motosol-tour-card:hover .wp-block-post-featured-image img {
	transform: scale(1.05);
}

.motosol-tour-card .wp-block-post-title a {
	text-decoration: none;
	color: inherit;
	transition: color 0.2s ease;
}

.motosol-tour-card .wp-block-post-title a:hover {
	color: var(--wp--preset--color--primary-orange);
}

/* Tour Grid */
.motosol-tour-grid .wp-block-post-template {
	gap: var(--wp--preset--spacing--40);
}

/* Tour Hero */
.motosol-tour-hero {
	position: relative;
	overflow: hidden;
}

.motosol-tour-hero::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 120px;
	background: linear-gradient(to top, rgba(10, 58, 94, 0.8) 0%, transparent 100%);
	pointer-events: none;
}

.motosol-tour-hero .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
}

/* Tour Quick Facts Box */
.motosol-tour-quick-facts {
	backdrop-filter: blur(10px);
	background-color: rgba(15, 76, 129, 0.95) !important;
}

/* Tour Highlights Bar */
.motosol-tour-highlights {
	backdrop-filter: blur(10px);
	background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Itinerary Day Cards */
.motosol-itinerary-day {
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.motosol-itinerary-day:hover {
	transform: translateX(4px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Tour Lists - Custom Checkmarks */
.motosol-check-list {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.motosol-check-list li {
	position: relative;
	padding-left: 1.75rem;
	margin-bottom: 0.5rem;
}

.motosol-check-list li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: var(--wp--preset--color--primary-orange);
	font-weight: 700;
}

/* Tour Lists - X marks for not included */
.motosol-x-list {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.motosol-x-list li {
	position: relative;
	padding-left: 1.75rem;
	margin-bottom: 0.5rem;
}

.motosol-x-list li::before {
	content: '✗';
	position: absolute;
	left: 0;
	color: #dc3545;
	font-weight: 700;
}

/* Requirements List */
.motosol-requirements-list {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.motosol-requirements-list li {
	position: relative;
	padding-left: 1.75rem;
	margin-bottom: 0.5rem;
}

.motosol-requirements-list li::before {
	content: '•';
	position: absolute;
	left: 0;
	color: var(--wp--preset--color--primary-orange);
	font-weight: 700;
}

/* Tour Dates Box */
.motosol-tour-dates {
	position: relative;
	overflow: hidden;
}

.motosol-tour-dates::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -20%;
	width: 120px;
	height: 120px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
	pointer-events: none;
}

/* Tour Responsive Styles */
@media (max-width: 782px) {
	/* Tour cards - 2 columns on tablet, 1 on mobile */
	.motosol-tour-grid .wp-block-post-template {
		grid-template-columns: repeat(2, 1fr) !important;
	}
	
	/* Tour hero - stack columns */
	.motosol-tour-hero .wp-block-columns {
		flex-direction: column !important;
	}
	
	.motosol-tour-hero .wp-block-columns > .wp-block-column {
		flex-basis: 100% !important;
		width: 100% !important;
	}
	
	/* Quick facts box - full width on mobile */
	.motosol-tour-quick-facts {
		margin-top: var(--wp--preset--spacing--40);
	}
	
	/* Highlights bar - wrap nicely */
	.motosol-tour-highlights {
		flex-direction: column !important;
		align-items: flex-start !important;
	}
	
	/* Tour content - stack columns */
	.motosol-tour-itinerary + .wp-block-columns,
	.motosol-tour-content .wp-block-columns {
		flex-direction: column !important;
	}
}

@media (max-width: 600px) {
	/* Tour cards - single column on small mobile */
	.motosol-tour-grid .wp-block-post-template {
		grid-template-columns: 1fr !important;
	}
	
	/* Reduce hero title size */
	.motosol-tour-hero h1 {
		font-size: clamp(2rem, 8vw, 3rem) !important;
	}
	
	/* Reduce price display */
	.motosol-tour-hero .has-primary-orange-color[style*="font-size:2.5rem"] {
		font-size: 2rem !important;
	}
}

/* ==========================================================================
   PHP-Based Tour Grid Styles
   ========================================================================== */

.motosol-tours-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--wp--preset--spacing--40);
}

.motosol-tours-grid .motosol-tour-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.motosol-tours-grid .motosol-tour-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.motosol-tours-grid .motosol-tour-card a img {
	transition: transform 0.4s ease;
}

.motosol-tours-grid .motosol-tour-card:hover a img {
	transform: scale(1.05);
}

.motosol-tours-grid .motosol-tour-card h3 a:hover {
	color: var(--wp--preset--color--primary-orange) !important;
}

/* Responsive tour grid */
@media (max-width: 900px) {
	.motosol-tours-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 600px) {
	.motosol-tours-grid {
		grid-template-columns: 1fr !important;
	}
}

/* ==========================================================================
   Single Tour Page - Professional Styles
   ========================================================================== */

/* Hero wrapper */
.motosol-tour-hero-wrapper {
	overflow: hidden;
}

/* Hero main flex responsive */
@media (max-width: 782px) {
	.motosol-hero-main {
		flex-direction: column !important;
		align-items: stretch !important;
	}
}

/* Stats grid responsive */
.motosol-tour-stats-grid {
	transition: all 0.3s ease;
}

@media (max-width: 900px) {
	.motosol-tour-stats-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 500px) {
	.motosol-tour-stats-grid {
		grid-template-columns: 1fr !important;
	}
}

/* Main content grid responsive */
.motosol-tour-main-grid {
	transition: all 0.3s ease;
}

@media (max-width: 900px) {
	.motosol-tour-main-grid {
		grid-template-columns: 1fr !important;
	}
}

/* Itinerary columns */
.motosol-itinerary-columns {
	transition: all 0.3s ease;
}

@media (max-width: 700px) {
	.motosol-itinerary-columns {
		grid-template-columns: 1fr !important;
	}
}

/* Last itinerary item in each column - no border */
.motosol-itinerary-col > .motosol-itinerary-item:last-child {
	border-bottom: none !important;
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

/* Booking grid responsive */
.motosol-booking-grid {
	transition: all 0.3s ease;
}

@media (max-width: 782px) {
	.motosol-booking-grid {
		grid-template-columns: 1fr !important;
	}
}

/* ==========================================================================
   Transport Page Styles
   ========================================================================== */

/* Transport Card with gradient overlay */
.motosol-transport-card {
	position: relative;
	overflow: hidden;
	min-height: 450px;
}

.motosol-transport-card .wp-block-cover__image-background {
	transition: transform 0.5s ease;
}

.motosol-transport-card:hover .wp-block-cover__image-background {
	transform: scale(1.08);
}

.wp-block-cover.motosol-transport-card .motosol-transport-card-gradient {
	position: absolute !important;
	bottom: 0 !important;
	left: 0 !important;
	right: 0 !important;
	top: auto !important;
	height: 100% !important;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 40%, transparent 100%) !important;
	opacity: 1 !important;
	pointer-events: none;
	z-index: 1 !important;
}

.wp-block-cover.motosol-transport-card .wp-block-cover__inner-container {
	position: relative;
	z-index: 2 !important;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: 100%;
}

/* Transport Step Cards */
.motosol-transport-step {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	height: 100%;
}

.motosol-transport-step:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.motosol-step-number {
	opacity: 0.9;
	transition: opacity 0.3s ease;
}

.motosol-transport-step:hover .motosol-step-number {
	opacity: 1;
}

/* Ensure transport step columns have equal height */
.motosol-transport-process .wp-block-columns {
	align-items: stretch;
}

.motosol-transport-process .wp-block-column {
	display: flex;
	flex-direction: column;
}

.motosol-transport-process .motosol-transport-step {
	flex: 1;
}

/* Transport Benefits */
.motosol-benefit-item {
	transition: transform 0.3s ease;
}

.motosol-benefit-item:hover {
	transform: translateX(8px);
}

.motosol-benefit-icon {
	width: 48px;
	height: 48px;
	min-width: 48px;
	flex-shrink: 0;
	border-radius: 50%;
	background-color: var(--wp--preset--color--primary-orange);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 0.125rem;
}

/* Transport CTA responsive */
@media (max-width: 782px) {
	.motosol-transport-cta .wp-block-columns {
		flex-direction: column !important;
	}
	
	.motosol-transport-cta .wp-block-column {
		flex-basis: 100% !important;
		width: 100% !important;
	}
	
	.motosol-transport-cta .wp-block-buttons {
		justify-content: center !important;
		margin-top: var(--wp--preset--spacing--40);
	}
	
	.motosol-transport-cta h2 {
		text-align: center;
	}
	
	.motosol-transport-cta p {
		text-align: center;
	}
}

/* Transport Process responsive - 2 columns on tablet, 1 on mobile */
@media (max-width: 1024px) {
	.motosol-transport-process .wp-block-columns {
		flex-wrap: wrap !important;
	}
	
	.motosol-transport-process .wp-block-columns > .wp-block-column {
		flex-basis: calc(50% - var(--wp--preset--spacing--40) / 2) !important;
		margin-bottom: var(--wp--preset--spacing--40);
	}
}

@media (max-width: 600px) {
	.motosol-transport-process .wp-block-columns > .wp-block-column {
		flex-basis: 100% !important;
	}
	
	.motosol-step-number {
		font-size: 2.5rem !important;
	}
}

/* Transport Solution responsive */
@media (max-width: 782px) {
	.motosol-transport-solution .wp-block-columns {
		flex-direction: column-reverse !important;
	}
	
	.motosol-transport-solution .wp-block-column {
		flex-basis: 100% !important;
		width: 100% !important;
	}
	
	.motosol-transport-card {
		min-height: 300px;
		margin-top: var(--wp--preset--spacing--40);
	}
}

/* Transport Intro responsive */
@media (max-width: 782px) {
	.motosol-transport-intro .wp-block-columns {
		flex-direction: column !important;
	}
	
	.motosol-transport-intro .wp-block-column {
		flex-basis: 100% !important;
		width: 100% !important;
	}
	
	.motosol-transport-intro figure.wp-block-image {
		margin-top: var(--wp--preset--spacing--40);
	}
}

/* ==========================================================================
   Logo Marquee - Gallery-based scrolling logos
   ========================================================================== */

.motosol-logo-marquee-wrapper {
	overflow: hidden;
}

.motosol-logo-marquee {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	gap: 4rem !important;
	width: max-content;
}

/* Only animate when JS has cloned for seamless loop */
.motosol-logo-marquee.is-cloned {
	animation: motosol-marquee 20s linear infinite;
}

.motosol-logo-marquee:hover {
	animation-play-state: paused;
}

@keyframes motosol-marquee {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

.motosol-logo-marquee .wp-block-image {
	flex-shrink: 0;
	margin: 0 !important;
	width: auto !important;
	height: 60px !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

.motosol-logo-marquee .wp-block-image img {
	height: 60px !important;
	width: auto !important;
	max-width: none !important;
	object-fit: contain !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

/* Responsive: slower animation on mobile */
@media (max-width: 782px) {
	.motosol-logo-marquee.is-cloned {
		animation-duration: 15s;
	}

	.motosol-logo-marquee {
		gap: 2rem !important;
	}

	.motosol-logo-marquee .wp-block-image,
	.motosol-logo-marquee .wp-block-image img {
		height: 40px !important;
	}
}

/* ==========================================================================
   Service Card Links - Stretched link pattern
   ========================================================================== */

.motosol-service-card-link {
	position: relative;
	cursor: pointer;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.motosol-service-card-link:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* Stretched link via heading - makes entire card clickable */
.motosol-service-card-link .motosol-card-title-link a {
	text-decoration: none;
}

.motosol-service-card-link .motosol-card-title-link a::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
}

/* Ensure all content stays readable */
.motosol-service-card-link .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
}

/* ==========================================================================
   Landing Page Styles
   ========================================================================== */

/* Landing Page Header - centered logo only */
.site-header-landing {
	position: relative;
	z-index: 100;
}

.site-header-landing .header-logo-landing {
	max-width: 200px;
}

.site-header-landing .header-logo-landing img {
	max-height: 50px;
	width: auto;
}

/* Landing Page Footer - minimal copyright/legal */
.site-footer-landing {
	margin-top: auto;
}

.site-footer-landing a {
	text-decoration: none;
	opacity: 0.8;
	transition: opacity 0.2s ease;
}

.site-footer-landing a:hover {
	opacity: 1;
}

/* Landing Page Container */
.motosol-landing-page {
	flex-grow: 1;
}

/* Landing Hero - full viewport */
.motosol-landing-hero {
	display: flex;
	align-items: center;
	justify-content: center;
}

.motosol-landing-hero .wp-block-cover__inner-container {
	max-width: 800px;
	text-align: center;
}

/* Responsive adjustments for landing pages */
@media (max-width: 782px) {
	.site-header-landing .header-logo-landing {
		max-width: 160px;
	}

	.site-header-landing .header-logo-landing img {
		max-height: 40px;
	}

	.site-footer-landing .wp-block-group {
		flex-direction: column;
		text-align: center;
		gap: 0.5rem;
	}
}

