/*
Theme Name: Calverion Hotel
Theme URI: https://sawebcraft.com/
Author: SA Webcraft
Author URI: https://sawebcraft.com/
Description: A cinematic, image-led luxury hotel homepage theme with editable demo listings and booking connections.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: calverion-hotel
Tags: custom-logo, custom-menu, featured-images
*/

:root {
  --aqua: #d9f2ee;
  --aqua-strong: #b9e2dc;
  --teal: #083d43;
  --teal-deep: #062f35;
  --ink: #14383a;
  --muted: #5b7070;
  --stone: #f5f1e8;
  --paper: #fffdfa;
  --gold: #c7a671;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page-pad: clamp(1.25rem, 5vw, 5.5rem);
  --shadow: 0 22px 70px rgba(6, 47, 53, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; }
body, button, input, select, textarea { font-family: var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font-size: 1rem; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #d5ad6b; outline-offset: 4px; }
.skip-link { position: fixed; z-index: 1000; top: .5rem; left: .5rem; padding: .75rem 1rem; color: white; background: var(--teal); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: absolute; z-index: 20; top: 0; left: 0; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1rem var(--page-pad); color: white; }
.site-header.is-solid { position: fixed; top: 0; color: var(--teal); background: rgba(255,253,250,.96); box-shadow: 0 1px 0 rgba(8,61,67,.1); backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; min-width: 0; }
.brand-mark { width: 2.6rem; height: 2.6rem; flex: 0 0 auto; }
.brand-mark--uploaded { width: auto; max-width: 9rem; height: 2.7rem; object-fit: contain; }
.brand-name { display: flex; flex-direction: column; line-height: 1.08; }
.brand-name strong { font-family: var(--serif); font-size: 1.28rem; font-weight: 500; letter-spacing: .13em; }
.brand-name small { margin-top: .25rem; font-size: .62rem; letter-spacing: .38em; text-transform: uppercase; }
.primary-nav { display: flex; align-items: center; gap: clamp(.65rem, 2vw, 1.8rem); }
.primary-nav a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.primary-nav a:hover { color: var(--aqua-strong); }
.site-header.is-solid .primary-nav a:hover { color: #8c6f43; }
.nav-toggle { display: none; min-width: 44px; min-height: 44px; padding: .5rem; border: 1px solid currentColor; background: transparent; color: inherit; }

.arrival { height: calc(100svh + var(--entry-travel, 150vh)); min-height: 700px; position: relative; background: var(--teal-deep); color: white; }
.arrival__pin { position: sticky; top: 0; height: 100svh; min-height: 560px; overflow: hidden; isolation: isolate; }
.arrival__image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-focus-x, 54%) center; will-change: transform, opacity; }
.arrival__image[data-entry-bridge], .arrival__image[data-entry-lobby] { opacity: 0; }
.arrival__image[data-entry-bridge] { object-position: var(--entry-focus-x, 50%) center; }
.arrival__image[data-entry-lobby] { object-position: var(--lobby-focus-x, 50%) center; }
.arrival.is-arrived .arrival__image[data-entry-exterior] { opacity: 0; transform: scale(1.22); }
.arrival.is-arrived .arrival__image[data-entry-bridge] { opacity: 0; }
.arrival.is-arrived .arrival__image[data-entry-lobby] { opacity: 1; transform: none; }
.arrival__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4,33,37,.72), rgba(4,33,37,.16) 68%, rgba(4,33,37,.05)), linear-gradient(0deg, rgba(4,33,37,.34), transparent 55%); }
.arrival__content { position: absolute; top: 50%; left: var(--page-pad); width: min(42rem, 72vw); transform: translateY(-45%); transition: opacity .35s ease, transform .35s ease; }
.eyebrow { display: inline-flex; align-items: center; gap: .75rem; margin: 0 0 1.1rem; color: var(--gold); font-size: .72rem; font-weight: 650; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow::before { width: 2.2rem; height: 1px; background: currentColor; content: ""; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; }
.arrival h1 { max-width: 11ch; margin-bottom: 1.25rem; font-size: clamp(3.4rem, 8vw, 7.8rem); letter-spacing: -.035em; }
.arrival__content p:not(.eyebrow) { max-width: 35rem; color: rgba(255,255,255,.88); font-size: clamp(1rem, 1.45vw, 1.22rem); }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: .8rem 1.35rem; border: 1px solid var(--teal); background: var(--teal); color: white; text-decoration: none; text-align: center; letter-spacing: .075em; font-size: .78rem; font-weight: 650; text-transform: uppercase; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.button:hover { background: var(--teal-deep); border-color: var(--teal-deep); }
.button--light { border-color: rgba(255,255,255,.72); background: rgba(255,255,255,.08); color: white; }
.button--light:hover { background: white; color: var(--teal); }
.button--outline { background: transparent; color: var(--teal); }
.button--outline:hover { background: var(--teal); color: white; }
.arrival__scroll-note { position: absolute; bottom: 1.7rem; left: var(--page-pad); display: flex; align-items: center; gap: .8rem; color: rgba(255,255,255,.83); font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; }
.arrival__scroll-note::before { width: 2.6rem; height: 1px; background: var(--gold); content: ""; }
.arrival__lobby { position: absolute; inset: auto var(--page-pad) 5rem auto; width: min(36rem, 68vw); opacity: 0; visibility: hidden; transform: translateY(1rem); transition: opacity .45s ease, transform .45s ease, visibility .45s; }
.arrival.is-arrived .arrival__content, .arrival.is-arrived .arrival__scroll-note { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-1rem); }
.arrival.is-arrived .arrival__lobby { opacity: 1; visibility: visible; transform: none; }
.arrival__lobby h2 { margin: 0 0 1rem; font-size: clamp(2.3rem, 4vw, 4.4rem); }
.lobby-choices { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .7rem; }
.lobby-choice { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .85rem 1rem; border: 1px solid rgba(255,255,255,.62); background: rgba(5,45,50,.56); color: white; text-decoration: none; font-family: var(--serif); font-size: 1.17rem; transition: background .2s ease, border-color .2s ease; }
.lobby-choice:hover, .lobby-choice:focus-visible { background: rgba(8,61,67,.9); border-color: white; }

.demo-ribbon { display: inline-block; margin: 0 0 .8rem; padding: .32rem .55rem; background: #f3e7cf; color: #51432d; font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }

.scene { padding: clamp(4.5rem, 9vw, 9rem) var(--page-pad); scroll-margin-top: 5.3rem; }
.scene:nth-of-type(even) { background: var(--stone); }
.scene__head { max-width: 56rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.scene__head h2 { margin-bottom: 1rem; font-size: clamp(2.8rem, 6vw, 6rem); letter-spacing: -.025em; }
.scene__head p:not(.eyebrow) { max-width: 42rem; color: var(--muted); font-size: 1.05rem; }
.scene__grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(18rem,.9fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.scene__grid--reverse { grid-template-columns: minmax(18rem,.9fr) minmax(0,1.1fr); }
.scene__grid--reverse .scene-gallery { order: 2; }
.scene-gallery { position: relative; min-width: 0; }
.gallery-frame { position: relative; overflow: hidden; background: #d5ded9; box-shadow: var(--shadow); }
.gallery-frame img { width: 100%; aspect-ratio: 1.28; object-fit: cover; object-position: var(--scene-focus-x, 50%) center; }
.gallery-frame img[hidden] { display: none; }
.gallery-count { position: absolute; right: 1rem; bottom: 1rem; padding: .35rem .6rem; background: rgba(5,45,50,.8); color: white; font-size: .75rem; }
.gallery-controls { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .8rem; }
.text-control { min-width: 44px; min-height: 44px; padding: .55rem .75rem; border: 1px solid rgba(8,61,67,.32); background: transparent; color: var(--teal); cursor: pointer; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.text-control:hover { background: var(--teal); color: white; }
.gallery-status { color: var(--muted); font-size: .78rem; }
.scene-copy { max-width: 36rem; }
.scene-copy h3 { margin-bottom: .8rem; font-size: clamp(1.8rem,3vw,2.65rem); }
.scene-copy p { color: var(--muted); }
.feature-list { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 1.8rem; padding: 0; list-style: none; }
.feature-list li { padding: .45rem .7rem; border: 1px solid rgba(8,61,67,.17); color: var(--teal); font-size: .78rem; }
.booking-box { margin-top: 1.75rem; padding: 1.4rem; background: white; border: 1px solid rgba(8,61,67,.12); box-shadow: 0 10px 35px rgba(8,61,67,.06); }
.booking-box h3 { margin: 0 0 .5rem; font-size: 1.6rem; }
.booking-box p { color: var(--muted); font-size: .9rem; }
.booking-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .85rem; }
.field { display: flex; flex-direction: column; gap: .3rem; }
.field--wide { grid-column: 1 / -1; }
.field label { color: var(--teal); font-size: .76rem; font-weight: 650; letter-spacing: .04em; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: .7rem .75rem; border: 1px solid #a9bfba; border-radius: 0; background: white; color: var(--ink); }
.field textarea { min-height: 90px; resize: vertical; }
.form-note { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .78rem; }
.booking-status { padding: .75rem; background: #edf6f1; color: #164a3c; }
.booking-status.is-error { background: #fff0ec; color: #783b30; }
.demo-notice { padding: 1rem; border-left: 3px solid var(--gold); background: #fbf7ed; color: #514831; font-size: .88rem; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.services-carousel { display: grid; grid-template-columns: 1fr minmax(16rem,.85fr); gap: clamp(2rem,5vw,5rem); align-items: center; }
.services-carousel .gallery-frame img { aspect-ratio: 1.35; }
.service-list { display: grid; gap: .75rem; }
.service-item { padding: 1rem 0; border-bottom: 1px solid rgba(8,61,67,.18); }
.service-item h3 { margin: 0 0 .35rem; font-size: 1.55rem; }
.service-item p { margin: 0; color: var(--muted); }

.menu-list { margin: 1.2rem 0; padding: 0; list-style: none; border-top: 1px solid rgba(8,61,67,.2); }
.menu-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid rgba(8,61,67,.2); }
.menu-list small { color: var(--muted); }
.listing-section { background: var(--teal-deep); color: white; }
.listing-section .scene__head p:not(.eyebrow) { color: rgba(255,255,255,.75); }
.listing-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; }
.listing-card { min-width: 0; background: #0d444a; border: 1px solid rgba(255,255,255,.14); }
.listing-card img { width: 100%; aspect-ratio: 1.15; object-fit: cover; }
.listing-card__body { padding: 1rem; }
.listing-card h3 { margin: .35rem 0 .5rem; font-size: 1.45rem; }
.listing-card p { color: rgba(255,255,255,.74); font-size: .86rem; }
.listing-card .text-control { border-color: rgba(255,255,255,.46); color: white; }
.listing-card .text-control:hover { background: white; color: var(--teal); }
.listing-card .demo-ribbon { margin: 0; font-size: .6rem; }
.listing-section .feature-list li { border-color: rgba(255,255,255,.25); color: white; }
.listing-note { margin-top: 1.5rem; color: rgba(255,255,255,.65); font-size: .83rem; }

.site-footer { padding: 3rem var(--page-pad); background: #041f23; color: rgba(255,255,255,.77); }
.site-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.site-footer .brand { color: white; }
.site-footer p { margin: 0; font-size: .78rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-nav a { color: inherit; font-size: .78rem; text-decoration: none; }
.transition-curtain { position: fixed; z-index: 90; inset: 0; pointer-events: none; opacity: 0; background: center/cover no-repeat; transform: scale(1.06); transition: opacity var(--tap-duration, 300ms) ease, transform var(--tap-duration, 300ms) cubic-bezier(.2,.7,.2,1); }
.transition-curtain.is-on { opacity: 1; transform: scale(1); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.room-experience { position: fixed; z-index: 80; inset: 0; display: none; min-height: 100svh; overflow-x: hidden; overflow-y: auto; isolation: isolate; background: var(--teal-deep); color: white; }
.room-experience-open { overflow: hidden; }
.room-experience[hidden] { display: none; }
.room-experience.is-open { display: block; animation: roomSceneIn .4s ease both; }
@keyframes roomSceneIn { from { opacity: 0; } to { opacity: 1; } }
.room-experience__backdrop, .room-experience__shade { position: fixed; inset: 0; pointer-events: none; }
.room-experience__backdrop { z-index: -2; overflow: hidden; background: var(--teal-deep); }
.room-experience__backdrop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.035); transition: opacity .8s ease, transform 7s linear; }
.room-experience__backdrop img.is-active { opacity: 1; transform: scale(1); }
.room-experience__shade { z-index: -1; background: linear-gradient(90deg,rgba(3,24,27,.76),rgba(3,24,27,.42) 55%,rgba(3,24,27,.48)),linear-gradient(0deg,rgba(3,24,27,.55),transparent 60%); }
.room-toolbar { position: fixed; z-index: 8; top: 0; right: 0; left: 0; display: flex; justify-content: space-between; align-items: flex-start; padding: 0 var(--page-pad); }
.room-toolbar__back, .room-toolbar__reserve { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; margin-top: 15px; padding: .7rem 1rem; border: 1px solid rgba(255,255,255,.8); background: rgba(5,45,50,.62); color: white; cursor: pointer; text-decoration: none; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.room-toolbar__back:hover, .room-toolbar__reserve:hover { background: white; color: var(--teal); }
.room-experience__inner { position: relative; z-index: 1; width: min(100%, 110rem); min-height: 100svh; margin: 0 auto; padding: 7.3rem var(--page-pad) 2.5rem; }
.room-category-view { max-width: 104rem; margin: 0 auto; }
.room-category-view > .eyebrow { color: #edd29e; }
.room-category-view > h1 { max-width: 16ch; margin: 0 0 .65rem; font-size: clamp(2.8rem,5vw,5.4rem); text-wrap: balance; }
.room-experience__intro { max-width: 48rem; margin-bottom: 1.5rem; color: rgba(255,255,255,.8); }
.room-category-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.25rem; }
.room-category-card { min-width: 0; overflow: hidden; background: var(--paper); color: var(--ink); box-shadow: 0 18px 50px rgba(0,0,0,.2); }
.room-category-card > img { width: 100%; aspect-ratio: 1.65; object-fit: cover; }
.room-category-card__body { padding: clamp(1rem,2vw,1.45rem); }
.room-category-card .demo-ribbon { margin-bottom: .55rem; }
.room-category-card h2 { margin: 0 0 .45rem; font-size: clamp(1.45rem,2.4vw,2rem); }
.room-category-card__rate { margin: 0 0 .75rem; color: var(--muted); font-size: .85rem; }
.room-amenities { display: flex; flex-wrap: wrap; gap: .45rem; margin: .9rem 0 1.25rem; padding: 0; list-style: none; }
.room-amenities li { padding: .4rem .58rem; border: 1px solid rgba(8,61,67,.2); color: var(--teal); font-size: .76rem; }
.room-amenities--compact { min-height: 4.1rem; margin: .6rem 0 1rem; }
.room-category-card .button { min-width: 9.5rem; }
.room-slider-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 1rem 0 0; color: rgba(255,255,255,.82); font-size: .8rem; }
.room-slider-controls .text-control { border-color: rgba(255,255,255,.58); color: white; }
.room-slider-controls .text-control:hover { background: white; color: var(--teal); }
.room-detail-view { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(20rem,.92fr); align-items: center; gap: clamp(2rem,5vw,5rem); min-height: calc(100svh - 9.8rem); padding: 1rem 0 2.5rem; }
.room-detail-view__image { overflow: hidden; background: #d7e2de; box-shadow: var(--shadow); }
.room-detail-view__image img { width: 100%; aspect-ratio: 1.25; object-fit: cover; }
.room-detail-view__copy { max-width: 42rem; }
.room-detail-view__copy .eyebrow { color: #9f8050; }
.room-detail-view__copy h2 { margin-bottom: 1rem; font-size: clamp(2.8rem,5vw,5.5rem); }
.room-detail-view__copy > p { color: var(--muted); }
.room-detail-view__rate { font-weight: 650; }
.room-detail-view__copy .booking-box { margin-top: 1.2rem; }
.room-experience.is-detail { background: var(--paper); color: var(--ink); }
.room-experience.is-detail .room-experience__backdrop, .room-experience.is-detail .room-experience__shade { display: none; }
.room-experience.is-detail .room-toolbar__back, .room-experience.is-detail .room-toolbar__reserve { border-color: var(--teal); background: var(--paper); color: var(--teal); }
.room-experience.is-detail .room-toolbar__back:hover, .room-experience.is-detail .room-toolbar__reserve:hover { background: var(--teal); color: white; }
.room-detail-view[hidden], .room-category-view[hidden] { display: none; }

@media (max-width: 900px) {
  .primary-nav { gap: .7rem; }
  .primary-nav a { font-size: .69rem; letter-spacing: .04em; }
  .scene__grid, .scene__grid--reverse, .services-carousel { grid-template-columns: 1fr; }
  .scene__grid--reverse .scene-gallery { order: initial; }
  .listing-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .room-category-grid { grid-template-columns: 1fr; max-width: 42rem; margin: 0 auto; }
  .room-category-card > img { aspect-ratio: 1.7; }
  .room-detail-view { grid-template-columns: 1fr; align-items: start; gap: 1.5rem; padding-top: 0; }
  .room-detail-view__image img { aspect-ratio: 1.35; }
  .room-experience__inner { padding-top: 6.3rem; }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 4.5rem; }
  .site-header { position: absolute; padding: .75rem 1rem; }
  .brand-mark { width: 2.2rem; height: 2.2rem; }
  .brand-name strong { font-size: 1.02rem; }
  .brand-name small { font-size: .55rem; }
  .nav-toggle { display: block; }
  .primary-nav { position: absolute; top: 100%; right: 1rem; left: 1rem; display: none; padding: .5rem; background: rgba(5,45,50,.96); color: white; box-shadow: var(--shadow); }
  .primary-nav.is-open { display: grid; }
  .primary-nav a { min-height: 48px; padding: .5rem .75rem; font-size: .78rem; }
  .site-header.is-solid .primary-nav { background: white; color: var(--teal); }
  .arrival { height: 100svh; min-height: 620px; }
  .arrival__pin { min-height: 620px; }
  .arrival__image { object-position: var(--hero-focus-x, 54%) center; }
  .arrival__content { top: 48%; width: calc(100% - 2rem); left: 1rem; transform: translateY(-38%); }
  .arrival h1 { max-width: 9ch; font-size: clamp(3rem,14vw,5rem); }
  .arrival__lobby { right: 1rem; bottom: 1.5rem; left: 1rem; width: auto; }
  .arrival__lobby h2 { font-size: 2.5rem; }
  .lobby-choices { gap: .5rem; }
  .lobby-choice { min-height: 54px; padding: .7rem .65rem; font-size: 1rem; }
  .arrival__scroll-note { left: 1rem; bottom: 1rem; }
  .scene { padding: 4.2rem 1rem; }
  .scene__head h2 { font-size: 3rem; }
  .booking-form { grid-template-columns: 1fr; }
  .field--wide, .form-note { grid-column: auto; }
  .listing-grid { grid-template-columns: 1fr; }
  .listing-card img { aspect-ratio: 1.45; }
  .room-toolbar { padding: 0 1rem; }
  .room-toolbar__back, .room-toolbar__reserve { min-height: 44px; padding: .6rem .7rem; font-size: .64rem; letter-spacing: .08em; }
  .room-experience__inner { padding: 5.3rem 1rem 2rem; }
  .room-category-view > h1 { font-size: 2.8rem; }
  .room-detail-view { padding-top: 1rem; }
  .room-detail-view__copy h2 { font-size: 2.8rem; }
  .room-slider-controls { justify-content: space-between; }
  .site-footer__inner { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
