/*
Theme Name: Overtur
Theme URI: http://18.130.133.94/
Description: Bespoke luxury destination management theme for Overtur. Single-page cinematic layout with GSAP/ScrollTrigger, Lenis smooth scroll, and an interactive brand waveform canvas.
Author: Barb Agency
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: overtur
*/

/* =========================================================
   Overtur — custom styles (extracted from the design's <style>)
   Tailwind utility classes are loaded separately (see functions.php).
   ========================================================= */

/* Aspekta Font Loading */
@font-face {
    font-family: 'Aspekta';
    src: url('https://raw.githubusercontent.com/ivodolenc/aspekta/main/fonts/webfonts/Aspekta-300.woff2') format('woff2');
    font-weight: 300;
    font-display: swap;
}
@font-face {
    font-family: 'Aspekta';
    src: url('https://raw.githubusercontent.com/ivodolenc/aspekta/main/fonts/webfonts/Aspekta-400.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Aspekta';
    src: url('https://raw.githubusercontent.com/ivodolenc/aspekta/main/fonts/webfonts/Aspekta-500.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

body {
    background-color: #0a2124; /* theme('colors.brand.bg') */
    color: #fafafa;           /* theme('colors.brand.text') */
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection {
    background-color: #B0AD78;
    color: #0a2124;
}

/* Hide Scrollbar for Carousel */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Dynamic Entrance Mask Reveals */
.mask-container {
    position: relative;
    overflow: hidden;
    padding-bottom: 0.25em;
    padding-right: 0.15em;
    margin-bottom: -0.22em;
    margin-right: -0.15em;
}
.mask-item {
    display: inline-block;
    width: 100%;
    transform: translate3d(0, 115%, 0);
    opacity: 0;
    will-change: transform, opacity;
    transition: transform 1.25s cubic-bezier(0.25, 1, 0.25, 1), opacity 1.25s cubic-bezier(0.25, 1, 0.25, 1);
}
.mask-container.flex .mask-item {
    display: flex;
}
.mask-container.visible .mask-item {
    transform: translate3d(0, 0, 0);
    opacity: 1;
}

/* Cinematic Body Fade Up & Blur Reveal */
.reveal-body {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    filter: blur(4px);
    transition: opacity 1s cubic-bezier(0.25, 1, 0.25, 1), transform 1s cubic-bezier(0.25, 1, 0.25, 1), filter 1s cubic-bezier(0.25, 1, 0.25, 1);
    will-change: opacity, transform, filter;
}
.reveal-body.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
}

/* Progressive enhancement: if JS never runs (blocked/failed), reveal all
   content statically so the page is never left blank. When JS loads it swaps
   <html class="no-js"> for "js", these overrides drop out, and the animated
   reveals take over. */
.no-js .mask-item {
    opacity: 1;
    transform: none;
}
.no-js .reveal-body {
    opacity: 1;
    transform: none;
    filter: none;
}

/* Delay helpers (kept as plain CSS so they work without Tailwind's arbitrary values) */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* Hover Reveal Lines */
.hover-line {
    position: relative;
    display: inline-block;
}
.hover-line::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #B0AD78;
    transition: width 0.6s cubic-bezier(0.25, 1, 0.25, 1);
}
.hover-line:hover::after {
    width: 100%;
}

/* Expandable Carousel Smooth Easing Transitions */
.carousel-card {
    transition: width 0.8s cubic-bezier(0.25, 1, 0.25, 1);
    will-change: width, transform;
    backface-visibility: hidden;
    transform: translate3d(0,0,0);
    user-select: none; /* rapid open/close clicks shouldn't select text */
}
.carousel-card img {
    -webkit-user-drag: none; /* no ghost-image drag on desktop trackpads */
    user-select: none;
    pointer-events: none;
}

@media (min-width: 768px) {
    .carousel-card {
        width: 50vw;
    }
    #dest-carousel.has-active .carousel-card:not(.active) {
        width: 30vw;
    }
    #dest-carousel .carousel-card.active {
        width: 70vw;
    }
}
@media (max-width: 767px) {
    .carousel-card { width: 85vw; }
    .carousel-card.active { width: 90vw; }
}

/* Carousel Content Transitions */
.carousel-item-bg {
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.25, 1);
    transform: translateY(100%);
    will-change: transform;
}
.carousel-card.active .carousel-item-bg {
    transform: translateY(0);
}

.carousel-item-text {
    font-size: clamp(2rem, 6vw, 5rem);
    transition: color 0.8s cubic-bezier(0.25, 1, 0.25, 1),
                margin 0.8s cubic-bezier(0.25, 1, 0.25, 1),
                font-size 0.8s cubic-bezier(0.25, 1, 0.25, 1);
    will-change: font-size, color, margin;
}
.carousel-card.active .carousel-item-text {
    color: #0a2124;
    margin-bottom: 2rem;
}

.cities-list {
    transition: max-height 0.8s cubic-bezier(0.25, 1, 0.25, 1), opacity 0.8s cubic-bezier(0.25, 1, 0.25, 1);
    max-height: 0;
    opacity: 0;
    will-change: max-height, opacity;
}
.carousel-card.active .cities-list {
    max-height: 400px;
    opacity: 1;
}

/* Interactive Grid capabilities Expand State */
.capability-tab .capability-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.8s cubic-bezier(0.25, 1, 0.25, 1);
}
.capability-tab.active .capability-content {
    grid-template-rows: 1fr;
}
.capability-tab {
    transition: border-color 0.4s ease, color 0.4s ease, padding-left 0.4s ease;
}
.capability-tab.active {
    border-color: #B0AD78;
    color: #B0AD78;
    padding-left: 1.5rem;
}

/* =========================================================
   Journey Form — full-screen modal, brand-styled
   ========================================================= */
.ovt-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: #0a2124;
    display: flex;
    align-items: stretch;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.25, 1), visibility 0s linear 0.5s;
}
.ovt-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.25, 1);
}
body.ovt-modal-open { overflow: hidden; }

/* subtle brand ambience — a faint radial glow anchored top-right */
.ovt-modal::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle at 50% 50%, rgba(176, 173, 120, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.ovt-modal__close {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    border: 1px solid rgba(250, 250, 250, 0.2);
    background: transparent;
    color: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 110;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.ovt-modal__close:hover { background: #fafafa; color: #0a2124; transform: rotate(90deg); }
.ovt-modal__close svg { width: 1.25rem; height: 1.25rem; }
@media (min-width: 768px) {
    .ovt-modal__close { top: 2rem; right: 2rem; width: 3.5rem; height: 3.5rem; }
    .ovt-modal__close svg { width: 1.5rem; height: 1.5rem; }
}

.ovt-modal__inner {
    position: relative;
    width: 100%;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    color: #fafafa;
    font-family: 'Aspekta', sans-serif;
    font-weight: 300;
    z-index: 1;
    max-height: 100vh;
}
.ovt-form__header {
    flex: none;
    padding: 4.5rem 1.5rem 1.5rem;
}
.ovt-form {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.ovt-form__body {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.5rem 1.5rem 2rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(250, 250, 250, 0.15) transparent;
}
.ovt-form__body::-webkit-scrollbar { width: 6px; }
.ovt-form__body::-webkit-scrollbar-thumb { background: rgba(250, 250, 250, 0.15); border-radius: 3px; }
@media (min-width: 768px) {
    .ovt-form__header { padding: 5.5rem 3rem 1.5rem; }
    .ovt-form__body { padding: 0.5rem 3rem 2.5rem; }
}

/* Header + progress */
.ovt-form__eyebrow {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    color: #B0AD78;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.ovt-form__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin: 0 0 2.5rem;
}
.ovt-progress { margin-bottom: 3rem; }
.ovt-progress__track {
    height: 1px;
    background: rgba(250, 250, 250, 0.15);
    position: relative;
    overflow: hidden;
}
.ovt-progress__fill {
    position: absolute;
    inset: 0 auto 0 0;
    background: #B0AD78;
    width: 12.5%;
    transition: width 0.8s cubic-bezier(0.25, 1, 0.25, 1);
}
/* Header meta is a11y-only — the step counter now lives in the sticky nav. */
.ovt-progress__meta { position: absolute; left: -9999px; }

/* Steps */
.ovt-step {
    display: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.25, 1), transform 0.5s cubic-bezier(0.25, 1, 0.25, 1);
}
.ovt-step.is-active { display: block; opacity: 1; transform: none; }

.ovt-q {
    font-size: 1.25rem;
    color: #fafafa;
    margin: 0 0 1.75rem;
    font-weight: 300;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 1rem;
}
.ovt-hint {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(250, 250, 250, 0.4);
}
.ovt-sublbl {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(250, 250, 250, 0.5);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* Layout helpers */
.ovt-mt { margin-top: 0.75rem; }
.ovt-mt-lg { margin-top: 2rem; }
.ovt-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.ovt-row > .ovt-field { flex: 1 1 200px; }
.ovt-grid { display: grid; gap: 0.75rem; }
.ovt-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ovt-stack { display: flex; flex-direction: column; gap: 0.75rem; }
.ovt-pills { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* Option boxes (radios / checkboxes rendered as boxes) */
.ovt-opt { position: relative; cursor: pointer; }
.ovt-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.ovt-opt > span {
    display: block;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(250, 250, 250, 0.15);
    color: rgba(250, 250, 250, 0.8);
    font-weight: 400;
    transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
    font-size: 0.95rem;
}
.ovt-opt:hover > span { border-color: rgba(250, 250, 250, 0.4); color: #fafafa; }
.ovt-opt input:checked + span {
    border-color: #B0AD78;
    color: #B0AD78;
    background: rgba(176, 173, 120, 0.05);
}
.ovt-opt--wide { grid-column: 1 / -1; }

/* Pills (checkbox chips) */
.ovt-pill { position: relative; cursor: pointer; }
.ovt-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.ovt-pill > span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border: 1px solid rgba(250, 250, 250, 0.2);
    border-radius: 9999px;
    color: rgba(250, 250, 250, 0.75);
    font-size: 0.85rem;
    transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}
.ovt-pill:hover > span { border-color: rgba(250, 250, 250, 0.5); color: #fafafa; }
.ovt-pill input:checked + span {
    border-color: #B0AD78;
    color: #B0AD78;
    background: rgba(176, 173, 120, 0.08);
}
.ovt-pill__icon { width: 1rem; height: 1rem; opacity: 0.9; }

/* Text inputs */
.ovt-field { display: block; }
.ovt-field--stacked { margin-bottom: 1.5rem; }
.ovt-lbl {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    color: rgba(250, 250, 250, 0.5);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.ovt-req { color: #B0AD78; margin-left: 0.25rem; }
.ovt-input {
    display: block;
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(250, 250, 250, 0.25);
    padding: 0.75rem 0;
    color: #fafafa;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 300;
    outline: none;
    transition: border-color 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
    color-scheme: dark;
}
.ovt-input:focus { border-bottom-color: #B0AD78; }
.ovt-input::placeholder { color: rgba(250, 250, 250, 0.3); }
.ovt-input--textarea { border: 1px solid rgba(250, 250, 250, 0.2); padding: 0.75rem 1rem; border-radius: 2px; resize: vertical; min-height: 5rem; }
.ovt-input--textarea:focus { border-color: #B0AD78; }
.ovt-input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1) opacity(0.4); cursor: pointer; }
.ovt-input:disabled { opacity: 0.4; cursor: not-allowed; }

/* Reveal blocks */
.ovt-reveal { max-height: 0; overflow: hidden; transition: max-height 0.5s cubic-bezier(0.25, 1, 0.25, 1), margin-top 0.3s ease; }
.ovt-reveal.is-open { max-height: 200px; margin-top: 1rem; }

/* Budget toggle */
.ovt-toggle {
    display: inline-flex;
    border: 1px solid rgba(250, 250, 250, 0.2);
    padding: 0.25rem;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}
.ovt-toggle__opt { position: relative; cursor: pointer; }
.ovt-toggle__opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.ovt-toggle__opt > span {
    display: block;
    padding: 0.5rem 1.25rem;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(250, 250, 250, 0.5);
    transition: background-color 0.3s ease, color 0.3s ease;
}
.ovt-toggle__opt input:checked + span { background: #B0AD78; color: #0a2124; }

/* Dual-range slider */
.ovt-slider { padding: 0 0.5rem; }
.ovt-slider__vals {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #B0AD78;
    margin-bottom: 1rem;
}
.ovt-slider__sep { color: rgba(250, 250, 250, 0.3); font-weight: 300; }
.ovt-slider__rail {
    position: relative;
    height: 1px;
    background: rgba(250, 250, 250, 0.2);
    margin: 1.5rem 0;
}
.ovt-slider__fill { position: absolute; inset: 0 50% 0 10%; background: #B0AD78; }
.ovt-slider input[type="range"] {
    position: absolute;
    width: 100%;
    top: -10px;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
    height: 20px;
    outline: none;
}
.ovt-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #B0AD78;
    border: 2px solid #0a2124;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 0 0 1px #B0AD78;
}
.ovt-slider input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #B0AD78;
    border: 2px solid #0a2124;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 0 0 1px #B0AD78;
}
.ovt-slider input[type="range"]::-moz-range-track { background: transparent; }
#ovt-budget-min-input { z-index: 2; }
#ovt-budget-max-input { z-index: 3; }

/* Nav bar — sticky at the bottom; positions never shift between steps */
.ovt-form__nav {
    flex: none;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 1.5rem 2rem;
    border-top: 1px solid rgba(250, 250, 250, 0.08);
    background: linear-gradient(180deg, rgba(10, 33, 36, 0) 0%, #0a2124 40%);
}
.ovt-nav__slot--prev { justify-self: start; }
.ovt-nav__slot--mid { justify-self: center; font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(250, 250, 250, 0.35); font-weight: 500; white-space: nowrap; }
.ovt-nav__slot--next { justify-self: end; }
@media (min-width: 768px) {
    .ovt-form__nav { padding: 1.75rem 3rem 2.25rem; }
}

.ovt-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    border: 0;
    padding: 0.75rem 0;
    color: #B0AD78;
    font-family: inherit;
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease, opacity 0.3s ease;
}
.ovt-btn::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1px;
    width: 0;
    background: #B0AD78;
    transition: width 0.5s cubic-bezier(0.25, 1, 0.25, 1);
}
.ovt-btn:hover::after { width: 100%; }
.ovt-btn__arrow { width: 1.1rem; height: 1.1rem; transition: transform 0.4s cubic-bezier(0.25, 1, 0.25, 1); }
.ovt-btn:hover .ovt-btn__arrow { transform: translateX(4px); }
.ovt-btn__arrow--back { transform: rotate(180deg); }
.ovt-btn:hover .ovt-btn__arrow--back { transform: rotate(180deg) translateX(4px); }
.ovt-btn--ghost { color: rgba(250, 250, 250, 0.5); }
.ovt-btn--ghost::after { background: rgba(250, 250, 250, 0.5); }
.ovt-btn--ghost:hover { color: #fafafa; }
.ovt-btn[hidden] { display: none; }
.ovt-btn.is-hidden { visibility: hidden; pointer-events: none; }
.ovt-btn:disabled { opacity: 0.4; cursor: wait; }
.ovt-btn--outline {
    color: #fafafa;
    border: 1px solid rgba(250, 250, 250, 0.25);
    padding: 0.9rem 1.75rem;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}
.ovt-btn--outline::after { display: none; }
.ovt-btn--outline:hover { background: #B0AD78; border-color: #B0AD78; color: #0a2124; }

/* Success */
.ovt-success { text-align: center; padding: 3rem 0 2rem; }
.ovt-success__mark {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 9999px;
    border: 1px solid #B0AD78;
    color: #B0AD78;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    position: relative;
}
.ovt-success__mark::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid rgba(176, 173, 120, 0.25);
    animation: ovt-pulse 2.4s cubic-bezier(0.25, 1, 0.25, 1) infinite;
}
@keyframes ovt-pulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.4); opacity: 0; }
}
.ovt-success__mark svg { width: 1.75rem; height: 1.75rem; }
.ovt-success__body { color: rgba(250, 250, 250, 0.65); font-size: 1.05rem; line-height: 1.7; max-width: 32rem; margin: 0 auto 2.5rem; }
.ovt-success__actions { display: flex; justify-content: center; }

/* Error line */
.ovt-form__err {
    margin: 1rem 0 0;
    font-size: 0.8rem;
    color: #e57373;
    letter-spacing: 0.05em;
}

/* Honeypot */
.ovt-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Fail-safe when JS never boots */
.no-js .ovt-modal { display: none; }
