/*
Theme Name: Ola Adventure
Theme URI: https://ola-adventure.com
Author: Ola Adventure
Description: A polished coastal luxury theme for campervan rental — warm earth tones, editorial typography, and cinematic hero compositions designed to convert visitors into bookings.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ola-adventure
Tags: block-patterns, full-site-editing, wide-blocks, custom-colors, custom-fonts, one-column, translation-ready
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
*/

/* ==========================================================================
   Reset & Foundation
   ========================================================================== */

:root,
body,
.wp-site-blocks {
	overflow: visible;
}

/* Prevent any gap between header and the first section / hero */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* ==========================================================================
   Sticky Header
   ========================================================================== */

.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
}

/* Backdrop pseudo for scrolled state — keeps header clean so mobile overlay
   position: fixed inset: 0 resolves to the viewport, not the header. */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
}

.wp-site-blocks > header.wp-block-template-part::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	transition: background 0.4s ease, box-shadow 0.4s ease;
}

body.is-scrolled .wp-site-blocks > header.wp-block-template-part::before {
	background: var(--wp--preset--color--background);
	box-shadow: 0 1px 12px rgba(26, 18, 9, 0.08);
}

/* Header inner group transitions */
.site-header {
	transition: padding 0.3s ease;
}

/* ==========================================================================
   Typography Polish
   ========================================================================== */

/* Body copy — warm serif editorial feel */
body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

/* Heading letter-spacing refinements */
h1, .wp-block-post-title {
	letter-spacing: -0.02em;
}

h2 {
	letter-spacing: -0.015em;
}

h3 {
	letter-spacing: -0.01em;
}

h4, h5, h6 {
	letter-spacing: 0;
}

/* Paragraph drop-cap for editorial flair */
.has-drop-cap:not(:focus)::first-letter {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	color: var(--wp--preset--color--primary);
	font-size: 3.5em;
	line-height: 0.85;
	margin-right: 0.08em;
}

/* Muted / caption text */
.has-muted-color {
	color: var(--wp--preset--color--muted);
}

figcaption,
.wp-element-caption {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--muted);
	letter-spacing: 0.02em;
}

/* ==========================================================================
   Link Styles
   ========================================================================== */

a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	transition: color 0.25s ease, text-decoration-color 0.25s ease;
}

a:hover {
	text-decoration-color: var(--wp--preset--color--primary-hover);
}

/* Navigation link underline animation */
.wp-block-navigation a {
	position: relative;
	text-decoration: none;
}

.wp-block-navigation a::after {
	content: '';
	position: absolute;
	bottom: -3px;
	left: 0;
	width: 0;
	height: 1.5px;
	background: var(--wp--preset--color--primary);
	transition: width 0.3s ease;
}

.wp-block-navigation a:hover::after,
.wp-block-navigation a:focus::after {
	width: 100%;
}

/* Prevent underline on CTA buttons inside nav */
.wp-block-navigation .wp-block-button a::after,
.wp-block-navigation .wp-block-buttons a::after {
	display: none;
}

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

/* Primary button polish */
.wp-block-button__link,
.wp-element-button {
	transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
	cursor: pointer;
}

.wp-block-button__link:hover,
.wp-element-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 16px rgba(10, 158, 138, 0.2);
}

.wp-block-button__link:active,
.wp-element-button:active {
	transform: translateY(0);
	box-shadow: none;
}

/* Outline button variant */
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	border: 2px solid var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
	transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease, border-color 0.25s ease;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--primary);
	transform: translateY(-1px);
}

/* ==========================================================================
   Image Treatments
   ========================================================================== */

/* Warm editorial image polish */
.wp-block-image img {
	transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.wp-block-image:hover img {
	box-shadow: 0 8px 32px rgba(26, 18, 9, 0.12);
}

/* Cover block image warmth */
.wp-block-cover {
	overflow: hidden;
}

.wp-block-cover__image-background,
.wp-block-cover img {
	transition: transform 8s ease;
}

/* Gallery rounded corners to match theme */
.wp-block-gallery .wp-block-image img {
	border-radius: 8px;
}

/* Media & Text block image radius */
.wp-block-media-text .wp-block-media-text__media img {
	border-radius: 8px;
}

/* ==========================================================================
   Card / Surface Treatments
   ========================================================================== */

/* Surface background cards */
.has-surface-background-color {
	border-radius: 12px;
}

/* Group blocks used as cards on surface bg */
.wp-block-group.has-surface-background-color {
	border: 1px solid var(--wp--preset--color--border);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.wp-block-group.has-surface-background-color:hover {
	box-shadow: 0 8px 28px rgba(26, 18, 9, 0.08);
	transform: translateY(-2px);
}

/* ==========================================================================
   Quote Block Enhancement
   ========================================================================== */

.wp-block-quote {
	padding-left: var(--wp--preset--spacing--40);
}

.wp-block-quote cite,
.wp-block-quote footer {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--small);
	font-style: normal;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
	margin-top: var(--wp--preset--spacing--20);
	display: block;
}

/* ==========================================================================
   Separator Enhancement
   ========================================================================== */

.wp-block-separator {
	border: none;
	border-top: 1px solid var(--wp--preset--color--border);
	opacity: 1;
}

.wp-block-separator.is-style-wide {
	width: 100%;
}

.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
	max-width: 120px;
	margin-left: auto;
	margin-right: auto;
}

.wp-block-separator.is-style-dots::before {
	color: var(--wp--preset--color--border);
}

/* ==========================================================================
   Hero Tagline Utility
   ========================================================================== */

/* Tagline decoration (line + text) for hero subtitle labels */
.hero-tagline {
	display: flex;
	align-items: center;
	gap: 0.8rem;
}

.hero-tagline::before {
	content: '';
	display: inline-block;
	width: 36px;
	height: 1.5px;
	background: var(--wp--preset--color--primary);
	flex-shrink: 0;
}

/* ==========================================================================
   Scroll Hint Decoration
   ========================================================================== */

.scroll-hint {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4rem;
}

.scroll-hint .scroll-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: rgba(253, 252, 250, 0.4);
}

.scroll-hint .scroll-line {
	width: 1px;
	height: 36px;
	background: linear-gradient(to bottom, rgba(253, 252, 250, 0.5), transparent);
}

/* ==========================================================================
   Vehicle / Feature Card Utility
   ========================================================================== */

.vehicle-card {
	background: rgba(253, 252, 250, 0.95);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 16px 48px rgba(26, 18, 9, 0.18), 0 4px 12px rgba(26, 18, 9, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vehicle-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 56px rgba(26, 18, 9, 0.22), 0 6px 16px rgba(26, 18, 9, 0.1);
}

/* ==========================================================================
   Site Title Polish
   ========================================================================== */

.wp-block-site-title a {
	text-decoration: none;
	color: inherit;
	transition: color 0.25s ease;
}

.wp-block-site-title a:hover {
	color: var(--wp--preset--color--primary);
}

/* ==========================================================================
   Columns on Small Screens
   ========================================================================== */

@media (max-width: 781px) {
	.wp-block-columns {
		flex-wrap: wrap;
	}

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

/* ==========================================================================
   Cover Block Inner Content Alignment Utility
   ========================================================================== */

.wp-block-cover .wp-block-cover__inner-container {
	width: 100%;
}

/* ==========================================================================
   Mobile Hamburger Overlay
   ========================================================================== */

.wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: var(--wp--preset--spacing--40);
	align-items: flex-start;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: var(--wp--preset--font-size--large);
}

/* Remove nav link underline animation inside the overlay */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after {
	display: none;
}

/* ==========================================================================
   Post Template / Query Loop Card Polish
   ========================================================================== */

.wp-block-post-template .wp-block-post-featured-image img {
	border-radius: 8px;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	width: 100%;
}

.wp-block-post-template .wp-block-post-title a {
	text-decoration: none;
	color: var(--wp--preset--color--text);
	transition: color 0.25s ease;
}

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

.wp-block-post-template .wp-block-post-excerpt {
	color: var(--wp--preset--color--muted);
}

/* ==========================================================================
   Footer Polish
   ========================================================================== */

footer.wp-block-template-part a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

/* ==========================================================================
   Utility: Uppercase Label
   ========================================================================== */

.is-style-label {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
}

/* ==========================================================================
   Form Inputs (Search, Contact etc.)
   ========================================================================== */

.wp-block-search__input,
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--text);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 6px;
	padding: 0.75rem 1rem;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.wp-block-search__input:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 3px rgba(10, 158, 138, 0.15);
}

.wp-block-search__button {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	border: none;
	border-radius: 6px;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.25s ease;
}

.wp-block-search__button:hover {
	background: var(--wp--preset--color--primary-hover);
}

/* ==========================================================================
   Table Block
   ========================================================================== */

.wp-block-table table {
	border-collapse: collapse;
	width: 100%;
}

.wp-block-table td,
.wp-block-table th {
	border: 1px solid var(--wp--preset--color--border);
	padding: 0.75rem 1rem;
}

.wp-block-table th {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--text);
}

.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
	background: var(--wp--preset--color--surface);
}

/* ==========================================================================
   Loop Layout Utilities
   ========================================================================== */
/* These classes are wired to the wp:query blocks emitted by content/pages and
   templates. Do not rename. Tune colours and spacing to theme.json tokens. */

/* Horizontal scrollable rail */
.wp-block-query.is-style-loop-rail .wp-block-post-template {
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	padding-bottom: var(--wp--preset--spacing--20);
}
.wp-block-query.is-style-loop-rail .wp-block-post-template > * {
	flex: 0 0 320px;
	scroll-snap-align: start;
}

/* Compact list with hairline row dividers */
.wp-block-query.is-style-loop-list .wp-block-post-template > * {
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding-block: var(--wp--preset--spacing--30);
}
.wp-block-query.is-style-loop-list .wp-block-post-template > *:last-child {
	border-bottom: 0;
}

/* Zigzag — flip the columns inside every even entry */
.wp-block-query.is-style-loop-zigzag .wp-block-post-template > *:nth-child(even) .wp-block-columns {
	flex-direction: row-reverse;
}

/* Timeline — vertical line with node markers per entry */
.wp-block-query.is-style-loop-timeline .wp-block-post-template {
	position: relative;
	padding-inline-start: 2.5rem;
}
.wp-block-query.is-style-loop-timeline .wp-block-post-template::before {
	content: '';
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0.5rem;
	width: 2px;
	background: var(--wp--preset--color--border);
	opacity: 0.4;
}
.wp-block-query.is-style-loop-timeline .wp-block-post-template > * {
	position: relative;
}
.wp-block-query.is-style-loop-timeline .wp-block-post-template > *::before {
	content: '';
	position: absolute;
	inset-inline-start: -2.25rem;
	inset-block-start: 0.6rem;
	width: 1rem;
	height: 1rem;
	border: 2px solid var(--wp--preset--color--primary);
	border-radius: 50%;
	background: var(--wp--preset--color--background);
}

/* Magazine — first child spans 2 columns of the grid */
.wp-block-query.is-style-loop-magazine .wp-block-post-template > *:first-child {
	grid-column: span 2;
}
@media (max-width: 600px) {
	.wp-block-query.is-style-loop-magazine .wp-block-post-template > *:first-child {
		grid-column: auto;
	}
}

/* ==========================================================================
   Selection Color
   ========================================================================== */

::selection {
	background: rgba(10, 158, 138, 0.18);
	color: var(--wp--preset--color--text);
}

/* ==========================================================================
   Smooth Scroll
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}