/*
 * Proweaver Factory: shared helpers. Section styles go in assets/css/sections/<section>.css.
 *
 * Scroll animations: add the class pf-reveal to a block, plus one direction (pf-reveal-up, -down, -left, -right, -zoom)
 * and optionally a delay (pf-delay-1 to pf-delay-4). assets/js/animate.js adds .is-visible when the block comes into
 * view. Nothing is hidden without JavaScript, in the editor, or for visitors who ask for reduced motion.
 */
.pf-js .pf-reveal {
	opacity: 0;
	transition: opacity var(--pf-reveal-duration, 0.6s) ease, transform var(--pf-reveal-duration, 0.6s) ease;
	will-change: opacity, transform;
}
.pf-js .pf-reveal-up { transform: translateY(24px); }
.pf-js .pf-reveal-down { transform: translateY(-24px); }
.pf-js .pf-reveal-left { transform: translateX(-32px); }
.pf-js .pf-reveal-right { transform: translateX(32px); }
.pf-js .pf-reveal-zoom { transform: scale(0.94); }
.pf-js .pf-reveal.is-visible { opacity: 1; transform: none; }
.pf-delay-1 { transition-delay: 0.12s; }
.pf-delay-2 { transition-delay: 0.24s; }
.pf-delay-3 { transition-delay: 0.34s; }
.pf-delay-4 { transition-delay: 0.44s; }
/* Once revealed, hover effects must not wait for the delay. */
.pf-reveal.pf-revealed { transition-delay: 0s !important; }

@media (prefers-reduced-motion: reduce) {
	.pf-js .pf-reveal { opacity: 1; transform: none; transition: none; }
}

/* In the editor everything stays visible. */
.editor-styles-wrapper .pf-reveal { opacity: 1 !important; transform: none !important; }

/* A visible keyboard focus for everything clickable. */
:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent, currentColor);
	outline-offset: 2px;
}

/* ------------------------------------------------------------------ */
/* Global resets that match the design (Tailwind preflight)             */
/* ------------------------------------------------------------------ */
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
*, *::before, *::after { box-sizing: border-box; }
body { background: transparent; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body ::selection { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--base); }
.wp-site-blocks :where(p, h1, h2, h3, h4, h5, h6, ul, ol, figure, blockquote) { margin: 0; }
.wp-site-blocks :where(ul, ol) { padding: 0; list-style: none; }
.wp-site-blocks img { display: block; max-width: 100%; }
.wp-site-blocks { display: flex; flex-direction: column; min-height: 100vh; }
.wp-site-blocks > main { flex: 1 1 auto; position: relative; z-index: 10; }
.wp-site-blocks > footer { position: relative; z-index: 10; margin-top: auto; }
.wp-site-blocks > * + * { margin-block-start: 0; }
/* Content blocks never add their own gaps; the sections' stylesheets set them. */
.wp-site-blocks :where(.wp-block-buttons) { margin: 0; }
.wp-block-post-content > * { max-width: none; margin-left: 0; margin-right: 0; }

/* Shared width container used inside every section (max-w-7xl, px-4 sm:px-6 lg:px-8) */
.pf-inner { width: 100%; max-width: 80rem; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 640px) { .pf-inner { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .pf-inner { padding-left: 2rem; padding-right: 2rem; } }

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--wp--preset--color--slate-300); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: var(--wp--preset--color--slate-400); }

/* ------------------------------------------------------------------ */
/* Whole-layout animated background (layers are added by effects.js)    */
/* ------------------------------------------------------------------ */
@keyframes pf-gradient-flow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes pf-orb-1 { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(80px, -90px) scale(1.15); } 66% { transform: translate(-50px, 70px) scale(0.9); } }
@keyframes pf-orb-2 { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(-90px, 80px) scale(1.1); } 66% { transform: translate(60px, -60px) scale(0.95); } }
@keyframes pf-orb-3 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(70px, 90px) scale(1.2); } }
.pf-bg-layer { position: fixed; inset: 0; z-index: -2; pointer-events: none;
	background: linear-gradient(135deg, var(--wp--preset--color--cream), var(--wp--preset--color--secondary), var(--wp--preset--color--orange-100), var(--wp--preset--color--sky-100), var(--wp--preset--color--orange-50));
	background-size: 400% 400%; animation: pf-gradient-flow 20s ease infinite; }
.pf-orb { position: fixed; border-radius: 50%; pointer-events: none; z-index: -1; }
.pf-orb-1 { top: 10%; left: -10%; width: 550px; height: 550px; animation: pf-orb-1 16s ease-in-out infinite;
	background: radial-gradient(circle, color-mix(in srgb, var(--wp--preset--color--sky-500) 22%, transparent) 0%, color-mix(in srgb, var(--wp--preset--color--sky-100) 0%, transparent) 70%); }
.pf-orb-2 { top: 45%; right: -10%; width: 600px; height: 600px; animation: pf-orb-2 20s ease-in-out infinite;
	background: radial-gradient(circle, color-mix(in srgb, var(--wp--preset--color--accent) 16%, transparent) 0%, color-mix(in srgb, var(--wp--preset--color--orange-100) 0%, transparent) 70%); }
.pf-orb-3 { bottom: -10%; left: 30%; width: 500px; height: 500px; animation: pf-orb-3 18s ease-in-out infinite;
	background: radial-gradient(circle, color-mix(in srgb, var(--wp--preset--color--sky-400) 15%, transparent) 0%, transparent 70%); }
.pf-bg-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* Spring cursor */
.pf-cursor-ring { position: fixed; pointer-events: none; z-index: 9999; width: 40px; height: 40px;
	border: 2px solid color-mix(in srgb, var(--wp--preset--color--accent) 65%, transparent); border-radius: 50%;
	transform: translate(-50%, -50%); opacity: 0; transition: width 0.25s, height 0.25s, border-color 0.25s, background 0.25s; will-change: transform; }
.pf-cursor-ring.is-hover { width: 64px; height: 64px; border-color: color-mix(in srgb, var(--wp--preset--color--sky-500) 90%, transparent); background: color-mix(in srgb, var(--wp--preset--color--sky-500) 6%, transparent); }
.pf-cursor-dot { position: fixed; pointer-events: none; z-index: 9999; width: 9px; height: 9px; background: var(--wp--preset--color--accent);
	border-radius: 50%; transform: translate(-50%, -50%); opacity: 0; will-change: transform; }
.pf-cursor-ring.is-active, .pf-cursor-dot.is-active { opacity: 1; }
@media (pointer: coarse) { .pf-cursor-ring, .pf-cursor-dot { display: none !important; } }

/* Lightbox (built by effects.js) */
.pf-lightbox-modal { position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; padding: 1rem;
	background: color-mix(in srgb, #020617 80%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.pf-lightbox-modal.is-open { display: flex; }
.pf-lightbox-box { position: relative; width: 100%; max-width: 56rem; padding: 1rem; border-radius: 1.5rem; overflow: hidden;
	background: color-mix(in srgb, var(--wp--preset--color--base) 95%, transparent); border: 1px solid color-mix(in srgb, var(--wp--preset--color--base) 20%, transparent);
	box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
@media (min-width: 640px) { .pf-lightbox-box { padding: 1.5rem; } }
.pf-lightbox-frame { aspect-ratio: 16 / 10; border-radius: 1rem; overflow: hidden; background: var(--wp--preset--color--contrast); margin-bottom: 1rem; }
.pf-lightbox-frame img { width: 100%; height: 100%; object-fit: cover; }
.pf-lightbox-caption { margin: 0; text-align: center; font-weight: 700; font-size: 1.125rem; color: var(--wp--preset--color--contrast); }
.pf-lightbox-close { position: absolute; top: 1rem; right: 1rem; z-index: 2; width: 2.5rem; height: 2.5rem; border-radius: 9999px; border: 0; cursor: pointer;
	background: var(--wp--preset--color--slate-100); color: var(--wp--preset--color--slate-700); font: 700 1.5rem/1 var(--wp--preset--font-family--body);
	display: flex; align-items: center; justify-content: center; transition: background-color 0.15s, color 0.15s; }
.pf-lightbox-close:hover { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--base); }

/* ------------------------------------------------------------------ */
/* Scroll-reveal variants (use with pf-reveal; see animate.js)          */
/* ------------------------------------------------------------------ */
.pf-js .pf-reveal.pf-fx-curtain { clip-path: inset(0 0 100% 0); transform: translateY(36px);
	transition: clip-path 0.95s cubic-bezier(0.16, 1, 0.3, 1), transform 0.95s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.75s ease; }
.pf-js .pf-reveal.pf-fx-curtain.is-visible { clip-path: inset(0 0 0% 0); }
.pf-js .pf-reveal.pf-fx-flip { transform: rotateX(22deg) rotateY(-18deg) translateY(45px) scale(0.9); transform-origin: top center;
	transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s ease, box-shadow 0.35s ease, border-color 0.35s ease; }
.pf-js .pf-reveal.pf-fx-pendulum { transform: rotate(-4.5deg) translateY(55px) scale(0.93); transform-origin: top left;
	transition: transform 0.95s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.7s ease, box-shadow 0.3s ease; }
.pf-js .pf-reveal.pf-fx-slide-left { transform: translateX(-80px) rotate(-2.5deg); transition: transform 0.95s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease; }
.pf-js .pf-reveal.pf-fx-slide-right { transform: translateX(80px) rotate(2.5deg); transition: transform 0.95s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease; }
.pf-js .pf-reveal.pf-fx-diagonal { transform: translate(-40px, 50px) scale(0.9); transition: transform 0.85s cubic-bezier(0.34, 1.45, 0.64, 1), opacity 0.7s ease; }
.pf-js .pf-reveal.pf-fx-wave { transform: translateX(-40px) scale(0.96); transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.65s ease; }
.pf-js .pf-reveal.pf-fx-pop { transform: scale(0.82) translateY(35px); transition: transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.7s ease; }
.pf-js .pf-reveal.pf-fx-footer { transform: translateY(40px); transition: transform 0.95s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.85s ease; }
.pf-js .pf-reveal[class*="pf-fx-"].is-visible { opacity: 1; transform: none; clip-path: none; }
@media (prefers-reduced-motion: reduce) {
	.pf-js .pf-reveal { clip-path: none !important; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Animations used by several sections */
@keyframes pf-ping { 75%, 100% { transform: scale(2); opacity: 0; } }
@keyframes pf-levitate { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-12px) rotate(1deg); } }
@keyframes pf-shimmer { 0% { transform: translateX(-120%) skewX(-20deg); } 60%, 100% { transform: translateX(240%) skewX(-20deg); } }
@keyframes pf-ring-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--wp--preset--color--base) 65%, transparent); } 70% { box-shadow: 0 0 0 16px color-mix(in srgb, var(--wp--preset--color--base) 0%, transparent); } 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--wp--preset--color--base) 0%, transparent); } }
@keyframes pf-quote-pulse { 0%, 100% { transform: scale(1); opacity: 0.25; } 50% { transform: scale(1.22); opacity: 0.6; } }

/* Translucent white used across the design (bg-white/NN) and the soft glass blur */
:root { --pf-w95: color-mix(in srgb, var(--wp--preset--color--base) 95%, transparent); --pf-w90: color-mix(in srgb, var(--wp--preset--color--base) 90%, transparent);
	--pf-w80: color-mix(in srgb, var(--wp--preset--color--base) 80%, transparent); --pf-w70: color-mix(in srgb, var(--wp--preset--color--base) 70%, transparent);
	--pf-w60: color-mix(in srgb, var(--wp--preset--color--base) 60%, transparent); --pf-w50: color-mix(in srgb, var(--wp--preset--color--base) 50%, transparent);
	--pf-w40: color-mix(in srgb, var(--wp--preset--color--base) 40%, transparent); --pf-w-line: color-mix(in srgb, var(--wp--preset--color--base) 60%, transparent); }

/* Button colours shared by several sections (sizes are set in each section's stylesheet) */
.wp-block-button.pf-btn-orange .wp-block-button__link { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--base); }
.wp-block-button.pf-btn-orange .wp-block-button__link:hover { background: var(--wp--preset--color--orange-600); color: var(--wp--preset--color--base); }
.wp-block-button.pf-btn-sky .wp-block-button__link { background: var(--wp--preset--color--sky-500); color: var(--wp--preset--color--base); }
.wp-block-button.pf-btn-sky .wp-block-button__link:hover { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--base); }
.wp-block-button.pf-btn-sky-dark .wp-block-button__link { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--base); box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); }
.wp-block-button.pf-btn-sky-dark .wp-block-button__link:hover { background: var(--wp--preset--color--sky-700); color: var(--wp--preset--color--base); }
.wp-block-button.pf-btn-white .wp-block-button__link { background: var(--pf-w90); color: var(--wp--preset--color--sky-700); border: 1px solid color-mix(in srgb, var(--wp--preset--color--sky-200) 80%, transparent);
	box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.wp-block-button.pf-btn-white .wp-block-button__link:hover { background: var(--wp--preset--color--secondary); color: var(--wp--preset--color--sky-700); }
.wp-block-button .wp-block-button__link { transition: background-color 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s; }

/* Shared section heading parts */
.pf-eyebrow { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--wp--preset--color--sky-700); }
.pf-eyebrow-orange { color: var(--wp--preset--color--orange-600); }
.pf-eyebrow-sky { color: var(--wp--preset--color--primary); }
.pf-pill { display: inline-block; padding: 0.25rem 0.875rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.pf-pill-orange { background: var(--wp--preset--color--orange-100); color: var(--wp--preset--color--orange-700); }
.pf-pill-sky { background: var(--wp--preset--color--sky-100); color: var(--wp--preset--color--sky-700); }
.pf-section-head { text-align: center; max-width: 42rem; margin-left: auto; margin-right: auto; }
.pf-section-head .pf-pill { margin-bottom: 0.75rem; }
.pf-section-head h2 { font-size: var(--wp--preset--font-size--xxxl); color: var(--wp--preset--color--contrast); }
.pf-section-sub { color: var(--wp--preset--color--slate-600); margin-top: 0.75rem; font-size: 0.875rem; }
@media (min-width: 640px) { .pf-section-head h2 { font-size: var(--wp--preset--font-size--display); } .pf-section-sub { font-size: 1rem; } }

/* Contact Form 7 fields (tour request and contact forms) */
.wpcf7 form { display: flex; flex-direction: column; gap: 1rem; margin: 0; }
.wpcf7 form .pf-form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .wpcf7 form .pf-form-row { grid-template-columns: 1fr 1fr; } }
.wpcf7 .pf-field { display: block; }
.wpcf7 .pf-label { display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--wp--preset--color--slate-700); margin-bottom: 0.25rem; }
.wpcf7 .wpcf7-form-control-wrap { display: block; }
.wpcf7 input[type="text"], .wpcf7 input[type="tel"], .wpcf7 input[type="email"] { width: 100%; padding: 0.75rem 1rem; border-radius: 0.75rem; border: 1px solid var(--wp--preset--color--slate-200);
	background: var(--pf-w90); font: inherit; font-size: 0.875rem; line-height: 1.25rem; color: var(--wp--preset--color--ink); outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.wpcf7 input[type="text"]:hover, .wpcf7 input[type="tel"]:hover, .wpcf7 input[type="email"]:hover { border-color: var(--wp--preset--color--slate-300); }
.wpcf7 input[type="text"]:focus, .wpcf7 input[type="tel"]:focus, .wpcf7 input[type="email"]:focus { border-color: var(--wp--preset--color--sky-500); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--sky-500) 25%, transparent); }
.wpcf7 input::placeholder { color: var(--wp--preset--color--slate-400); }
.wpcf7 .pf-submit { width: 100%; cursor: pointer; border: 0; border-radius: 0.75rem; color: var(--wp--preset--color--base); font: inherit; font-weight: 700; font-size: 0.875rem; line-height: 1.25rem; transition: background-color 0.15s, filter 0.15s, box-shadow 0.15s; }
.wpcf7 .wpcf7-spinner { display: none; }
.wpcf7 .wpcf7-not-valid-tip { font-size: 0.75rem; margin-top: 0.25rem; color: var(--wp--preset--color--orange-700); }
.wpcf7 form .wpcf7-response-output { margin: 0; padding: 1rem; border-radius: 0.75rem; border: 1px solid var(--wp--preset--color--sky-200); background: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--sky-900); font-size: 0.875rem; font-weight: 500; }
.wpcf7 form.init .wpcf7-response-output { display: none; }

/* Page can't scroll while the intro screen is showing */
html.pf-intro-lock, html.pf-intro-lock body { overflow: hidden; }
