/*
Theme Name:   Living Heritage Koslanda
Theme URI:    https://dev.koslanda.com/
Author:       Uga Resorts - IT Team
Description:  Bespoke, lightweight theme for Living Heritage Koslanda — an eco-luxury
              hideaway in Sri Lanka's hill country. Earthy, editorial design inspired by
              boutique-hotel moodboards (Gage, State of Sage, La Figue, Casalma) and the
              Teardrop Hotels experience: image-first hero that hands over to a film,
              slide-out booking panel, full-screen menu, carousels and built-in SEO.
Version:      1.0.0
Requires PHP: 7.4
License:      Proprietary
Text Domain:  koslanda
*/

/* ==========================================================================
   1. DESIGN TOKENS
   All colours, fonts and spacing live here so the look can be tuned in one place.
   ========================================================================== */
:root {
	/* Palette — taken from the moodboard: moss, cream, clay, wine and forest */
	--paper:   #FBF8F2;   /* page background (warm off-white)            */
	--cream:   #F2EBDD;   /* soft section background                     */
	--sand:    #D9C9A8;   /* lines, offset blocks                        */
	--sage:    #8B8F6B;   /* muted green accents                         */
	--moss:    #3F4A30;   /* primary brand green                         */
	--forest:  #20271B;   /* darkest green — footer, dark sections       */
	--clay:    #9C5D3B;   /* terracotta accent (buttons, kickers)        */
	--wine:    #5B2226;   /* burgundy block (dining)                     */
	--blush:   #E9C9B6;   /* blush block                                 */
	--ink:     #2A2823;   /* body text                                   */
	--muted:   #6E6A60;   /* secondary text                              */
	--white:   #FFFFFF;

	/* Typography */
	--serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
	--sans:  "Jost", "Helvetica Neue", Arial, sans-serif;

	/* Layout */
	--wrap: 1240px;
	--gutter: clamp(20px, 4vw, 48px);
	--section: clamp(72px, 10vw, 140px);
	--radius: 14px;
	--ease: cubic-bezier(.22, .61, .36, 1);
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 300 17px/1.75 var(--sans);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
body.kos-lock { overflow: hidden; } /* used while the menu / booking panel is open */
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .3s var(--ease), opacity .3s; }
p { margin: 0 0 1.2em; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
em { font-style: italic; }
::selection { background: var(--moss); color: var(--paper); }

/* Accessibility helpers */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 999; width: auto; height: auto; clip: auto; padding: 12px 18px; background: var(--paper); color: var(--ink); }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

/* ==========================================================================
   3. LAYOUT UTILITIES
   ========================================================================== */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 860px; }
.section { padding: var(--section) 0; position: relative; }
.center { text-align: center; }
.bg-cream  { background: var(--cream); }
.bg-forest { background: var(--forest); color: #E9E4D6; }
.bg-moss   { background: var(--moss);   color: #EEE9DC; }
.bg-wine   { background: var(--wine);   color: #F3E6DF; }

/* Small caps label above headings ("STAY OPTIONS") */
.kicker {
	display: inline-block;
	font: 500 .72rem/1 var(--sans);
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--clay);
	margin-bottom: 1.4em;
}
.bg-forest .kicker, .bg-moss .kicker, .bg-wine .kicker { color: var(--sand); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); }
.bg-forest .lead, .bg-moss .lead, .bg-wine .lead { color: rgba(240, 233, 220, .82); }

/* Leaf emblem used as a divider (Gage-style centred motif) */
.emblem { width: 34px; height: 44px; margin: 0 auto 28px; color: var(--clay); }

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */
.btn {
	display: inline-flex; align-items: center; gap: .7em;
	padding: 15px 30px;
	font: 500 .74rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
	border: 1px solid currentColor; border-radius: 0;
	background: transparent; color: inherit; cursor: pointer;
	transition: background .35s var(--ease), color .35s var(--ease), border-color .35s;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--solid { background: var(--clay); border-color: var(--clay); color: var(--white); }
.btn--solid:hover { background: var(--moss); border-color: var(--moss); }
.btn--light { color: var(--white); }
.btn--light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.link-arrow { font: 500 .74rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 6px; }
.link-arrow::after { content: " \2192"; }

/* ==========================================================================
   5. HEADER (transparent over hero → solid cream on scroll)
   ========================================================================== */
.site-header {
	position: fixed; inset: 0 0 auto 0; z-index: 60;
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
	padding: 18px var(--gutter);
	color: var(--white);
	transition: background .45s var(--ease), color .45s var(--ease), padding .45s var(--ease), box-shadow .45s;
}
.site-header.is-solid, body:not(.has-hero) .site-header {
	background: rgba(251, 248, 242, .96); color: var(--ink);
	padding-top: 10px; padding-bottom: 10px;
	box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
	backdrop-filter: blur(8px);
}
.site-header .menu-toggle, .site-header .book-toggle {
	display: inline-flex; align-items: center; gap: 12px;
	background: none; border: 0; color: inherit; cursor: pointer;
	font: 500 .72rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase;
	padding: 10px 0;
}
.book-toggle { justify-self: end; }
.book-toggle span.pill { border: 1px solid currentColor; padding: 12px 22px; transition: background .3s, color .3s; }
.book-toggle:hover span.pill { background: var(--clay); border-color: var(--clay); color: var(--white); }
.header-phone { justify-self: end; display: none; }
.burger { width: 26px; height: 10px; position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .35s var(--ease); }
.burger::before { top: 0; } .burger::after { bottom: 0; }
.brand { display: block; text-align: center; line-height: 1; }
.brand__name { font: 400 1.55rem/1 var(--serif); letter-spacing: .14em; text-transform: uppercase; display: block; }
.brand__sub  { font: 400 .6rem/1 var(--sans); letter-spacing: .5em; text-transform: uppercase; display: block; margin-top: 7px; opacity: .85; }
.site-header.is-solid .brand__name { font-size: 1.3rem; }

/* ==========================================================================
   6. FULL-SCREEN MENU OVERLAY
   ========================================================================== */
.menu-overlay {
	position: fixed; inset: 0; z-index: 80;
	display: grid; grid-template-columns: 1.1fr 1fr;
	background: var(--forest); color: var(--paper);
	opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
}
.menu-overlay.is-open { opacity: 1; visibility: visible; }
.menu-overlay__nav { padding: 110px var(--gutter) 60px; display: flex; flex-direction: column; justify-content: center; overflow-y: auto; }
.menu-overlay__nav ul { list-style: none; margin: 0; padding: 0; }
.menu-overlay__nav li { overflow: hidden; }
.menu-overlay__nav a {
	display: inline-block; font: 300 clamp(2rem, 4.4vw, 3.4rem)/1.25 var(--serif);
	transform: translateY(100%); transition: transform .7s var(--ease), color .3s;
}
.menu-overlay.is-open .menu-overlay__nav a { transform: none; }
.menu-overlay__nav li:nth-child(2) a { transition-delay: .04s; } .menu-overlay__nav li:nth-child(3) a { transition-delay: .08s; }
.menu-overlay__nav li:nth-child(4) a { transition-delay: .12s; } .menu-overlay__nav li:nth-child(5) a { transition-delay: .16s; }
.menu-overlay__nav li:nth-child(6) a { transition-delay: .2s; }  .menu-overlay__nav li:nth-child(7) a { transition-delay: .24s; }
.menu-overlay__nav li:nth-child(8) a { transition-delay: .28s; }
.menu-overlay__nav a:hover, .menu-overlay__nav .current-menu-item a { color: var(--sand); font-style: italic; }
.menu-overlay__meta { margin-top: 40px; font-size: .9rem; color: rgba(240, 233, 220, .7); }
.menu-overlay__meta a { display: block; }
.menu-overlay__img { position: relative; overflow: hidden; }
.menu-overlay__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.6s var(--ease); }
.menu-overlay.is-open .menu-overlay__img img { transform: none; }
.overlay-close {
	position: absolute; top: 22px; left: var(--gutter); z-index: 2;
	background: none; border: 0; color: inherit; cursor: pointer;
	font: 500 .72rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; padding: 10px 0;
}

/* ==========================================================================
   7. BOOKING SLIDE-OUT PANEL (Teardrop-style "Check rates & availability")
   ========================================================================== */
.booking-panel {
	position: fixed; top: 0; right: 0; bottom: 0; z-index: 90;
	width: min(460px, 100%);
	background: var(--paper); color: var(--ink);
	padding: 90px 40px 40px; overflow-y: auto;
	transform: translateX(100%); transition: transform .55s var(--ease);
	box-shadow: -20px 0 60px rgba(0, 0, 0, .15);
}
.booking-panel.is-open { transform: none; }
.booking-panel .overlay-close { left: auto; right: 32px; color: var(--ink); }
.booking-panel h2 { font-size: 2.2rem; }
.booking-panel form { display: grid; gap: 18px; margin-top: 28px; }
.booking-panel label { display: grid; gap: 8px; font: 500 .68rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.booking-panel input, .booking-panel select {
	width: 100%; padding: 14px 14px; font: 400 1rem var(--sans); color: var(--ink);
	background: var(--white); border: 1px solid var(--sand); border-radius: 0; appearance: none;
}
.booking-panel .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.booking-panel .btn { justify-content: center; margin-top: 6px; }
.booking-panel .alt { margin-top: 26px; font-size: .92rem; color: var(--muted); }
.booking-panel .alt a { color: var(--clay); border-bottom: 1px solid; }
.scrim { position: fixed; inset: 0; z-index: 85; background: rgba(20, 24, 16, .5); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.scrim.is-on { opacity: 1; visibility: visible; }

/* ==========================================================================
   8. HERO — poster image first, film fades in once it can play
   ========================================================================== */
.hero {
	position: relative; height: 100vh; height: 100svh; min-height: 560px;
	overflow: hidden; color: var(--white); background: var(--forest);
}
.hero__media, .hero__media img, .hero__video {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
/* Slow "breathing" zoom on the still image while the film loads */
.hero__media img { animation: kosZoom 22s ease-out forwards; }
@keyframes kosZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero__video { opacity: 0; transition: opacity 2s var(--ease); }
.hero__video.is-playing { opacity: 1; }
.hero::after { /* soft vignette so white type always reads */
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(15, 18, 12, .45) 0%, rgba(15, 18, 12, .05) 35%, rgba(15, 18, 12, .1) 60%, rgba(15, 18, 12, .65) 100%);
}
.hero__content {
	position: relative; z-index: 2; height: 100%;
	display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
	padding: 0 var(--gutter);
}
.hero__eyebrow { font: 500 .72rem/1 var(--sans); letter-spacing: .4em; text-transform: uppercase; margin-bottom: 26px; opacity: .9; }
.hero__title { font: 300 clamp(2.8rem, 7.4vw, 6.4rem)/1.02 var(--serif); margin: 0; max-width: 14ch; }
.hero__title em { font-style: italic; }
.hero__sub { margin-top: 22px; font-size: 1.05rem; max-width: 44ch; opacity: .92; }
/* Gage-style "Stay · Explore · Dine" links across the bottom of the hero */
.hero__links {
	position: absolute; left: 0; right: 0; bottom: 70px; z-index: 2;
	display: flex; justify-content: space-around; max-width: 980px; margin: 0 auto; padding: 0 var(--gutter);
}
.hero__links a { font: 400 clamp(1.3rem, 2.2vw, 1.8rem)/1 var(--serif); letter-spacing: .04em; position: relative; }
.hero__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .4s var(--ease); }
.hero__links a:hover::after { transform: scaleX(1); }
.hero__scroll { position: absolute; left: 50%; bottom: 18px; z-index: 2; transform: translateX(-50%); font: 500 .62rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; opacity: .8; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero__scroll::after { content: ""; width: 1px; height: 26px; background: currentColor; animation: kosLine 2.2s infinite; transform-origin: top; }
@keyframes kosLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.hero__sound { position: absolute; right: var(--gutter); bottom: 22px; z-index: 3; }

/* Inner-page hero (shorter) */
.hero--page { height: 72vh; min-height: 460px; }
.hero--page .hero__title { font-size: clamp(2.6rem, 6vw, 5rem); max-width: 18ch; }

/* ==========================================================================
   9. INTRO (centred emblem + welcome copy)
   ========================================================================== */
.intro { text-align: center; }
.intro h1 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); max-width: 22ch; margin: 0 auto .6em; }
.intro p { max-width: 62ch; margin-left: auto; margin-right: auto; }
.stats { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(28px, 6vw, 90px); margin-top: 56px; }
.stats div { text-align: center; }
.stats strong { display: block; font: 300 clamp(2.4rem, 4vw, 3.4rem)/1 var(--serif); color: var(--moss); }
.stats span { font: 500 .68rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }

/* ==========================================================================
   10. STAY — list on the left, image with offset colour block on the right
   ========================================================================== */
.stay { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.stay__list { list-style: none; padding: 0; margin: 30px 0 36px; border-top: 1px solid var(--sand); }
.stay__list li { border-bottom: 1px solid var(--sand); }
.stay__list button {
	width: 100%; text-align: left; background: none; border: 0; cursor: pointer; color: var(--muted);
	padding: 18px 0; display: flex; justify-content: space-between; align-items: baseline;
	font: 400 1.35rem/1.2 var(--serif); transition: color .3s, padding .3s var(--ease);
}
.stay__list button small { font: 500 .66rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.stay__list button.is-active, .stay__list button:hover { color: var(--ink); padding-left: 10px; }
.stay__desc { min-height: 5.5em; color: var(--muted); }
.stay__visual { position: relative; padding: 0 0 34px 34px; }
.stay__visual::before { content: ""; position: absolute; left: 0; bottom: 0; width: 82%; height: 82%; background: var(--sage); opacity: .55; }
.stay__frame { position: relative; aspect-ratio: 4 / 4.6; overflow: hidden; }
.stay__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.05); transition: opacity .9s var(--ease), transform 1.4s var(--ease); }
.stay__frame img.is-active { opacity: 1; transform: none; }

/* ==========================================================================
   11. IMAGE TILES (three tall panels with labels — Gage "Occasions / Adventure / Wellness")
   ========================================================================== */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); }
.tile { position: relative; aspect-ratio: 3 / 3.6; overflow: hidden; color: var(--white); display: block; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .45)); transition: background .5s; }
.tile:hover img { transform: scale(1.06); }
.tile__label { position: absolute; inset: auto 0 12% 0; z-index: 2; text-align: center; display: grid; gap: 14px; justify-items: center; }
.tile__label h3 { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
.tile__label span { font: 500 .62rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; border: 1px solid rgba(255, 255, 255, .7); padding: 10px 16px; opacity: 0; transform: translateY(8px); transition: .5s var(--ease); }
.tile:hover .tile__label span, .tile:focus .tile__label span { opacity: 1; transform: none; }

/* ==========================================================================
   12. ROUNDED CARD ON TEXTURE (State of Sage — "You embody a reverence…")
   ========================================================================== */
.reverence { background: var(--cream); }
.reverence__card {
	position: relative; overflow: hidden; border-radius: var(--radius);
	min-height: 560px; display: grid; place-items: center; text-align: center; color: #F3EEDF;
	padding: 80px var(--gutter);
	box-shadow: 0 30px 70px rgba(32, 39, 27, .25);
}
.reverence__card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reverence__card::before { content: ""; position: absolute; inset: 0; background: rgba(48, 58, 34, .72); z-index: 1; }
.reverence__inner { position: relative; z-index: 2; max-width: 680px; }
.reverence__inner h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
.reverence__inner p.script { font: italic 400 1.35rem/1.5 var(--serif); }

/* ==========================================================================
   13. "A DAY AT KOSLANDA" — dark editorial timeline
   ========================================================================== */
.day h2 em { color: var(--sand); }
.day__strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 50px 0 70px; }
.day__strip img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.day__strip img:nth-child(even) { margin-top: 40px; }
.day__line { position: relative; max-width: 780px; margin: 0 auto; }
.day__line::before { content: ""; position: absolute; left: 92px; top: 6px; bottom: 6px; width: 1px; background: rgba(217, 201, 168, .35); }
.day__item { display: grid; grid-template-columns: 92px 1fr; gap: 34px; padding: 0 0 38px; position: relative; }
.day__item::before { content: ""; position: absolute; left: 88px; top: 14px; width: 9px; height: 9px; border-radius: 50%; background: var(--sand); }
.day__time { font: 400 1.6rem/1 var(--serif); color: var(--sand); padding-top: 4px; }
.day__item h3 { font-size: 1.45rem; margin-bottom: .25em; color: #F6F1E6; }
.day__item p { margin: 0; color: rgba(240, 233, 220, .75); }

/* ==========================================================================
   14. SPLIT SECTIONS (dining, story, sustainability — image + text)
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; }
.split__media .inset { position: absolute; width: 46%; right: -6%; bottom: -10%; aspect-ratio: 3 / 4; border: 8px solid var(--paper); box-shadow: 0 20px 50px rgba(0, 0, 0, .18); }
.bg-wine .split__media .inset { border-color: var(--wine); }
.bg-cream .split__media .inset { border-color: var(--cream); }

/* Three-up image row (La Figue / dining) */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 60px; }
.trio figure { margin: 0; }
.trio img { aspect-ratio: 4 / 3.2; object-fit: cover; width: 100%; }
.trio figcaption { margin-top: 14px; font: 500 .68rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; }

/* ==========================================================================
   15. EXPERIENCES CAROUSEL (horizontal scroll-snap with "1 / 9" counter)
   ========================================================================== */
.carousel__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 40px; flex-wrap: wrap; }
.carousel__controls { display: flex; align-items: center; gap: 18px; font: 400 1.1rem var(--serif); }
.carousel__controls button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--sand); background: none; cursor: pointer; font-size: 1.1rem; color: var(--ink); transition: background .3s, color .3s; }
.carousel__controls button:hover { background: var(--moss); color: var(--paper); border-color: var(--moss); }
.carousel__track {
	display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 31%); gap: 22px;
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px;
	padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
	scroll-padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
}
.carousel__track::-webkit-scrollbar { display: none; }
.card { scroll-snap-align: start; display: block; }
.card__img { overflow: hidden; aspect-ratio: 4 / 5; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card__img img { transform: scale(1.05); }
.card h3 { margin: 20px 0 6px; font-size: 1.55rem; }
.card p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ==========================================================================
   16. REGENERATION / SUSTAINABILITY (Casalma "humans & nature")
   ========================================================================== */
.regen__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 60px; }
.regen__grid > div { border-top: 1px solid rgba(217, 201, 168, .4); padding-top: 26px; }
.regen__grid h3 { font-size: 1.5rem; color: #F6F1E6; }
.regen__grid p { color: rgba(240, 233, 220, .75); margin: 0; }

/* ==========================================================================
   17. ACCOLADES STRIP & QUOTE
   ========================================================================== */
.accolades { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px 56px; margin-top: 30px; }
.accolades span { font: italic 400 1.25rem/1.3 var(--serif); color: var(--moss); }
.accolades span small { display: block; font: 500 .6rem/1.6 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-style: normal; }

/* ==========================================================================
   18. CTA BANNER (full-bleed image, parallax-ish)
   ========================================================================== */
.cta-banner { position: relative; min-height: 76vh; display: grid; place-items: center; text-align: center; color: var(--white); overflow: hidden; }
.cta-banner > img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; will-change: transform; }
.cta-banner::before { content: ""; position: absolute; inset: 0; background: rgba(24, 30, 18, .45); z-index: 1; }
.cta-banner__inner { position: relative; z-index: 2; padding: 0 var(--gutter); max-width: 760px; }
.cta-banner h2 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); }

/* ==========================================================================
   19. INNER PAGE CONTENT (rendered from the WordPress editor)
   ========================================================================== */
.page-content > * + * { margin-top: 0; }
.page-content .block { padding: clamp(56px, 8vw, 110px) 0; }
.page-content .block + .block { border-top: 1px solid rgba(0, 0, 0, .06); }
.page-content ul.ticks { list-style: none; padding: 0; margin: 1.4em 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px; }
.page-content ul.ticks li { padding-left: 22px; position: relative; font-size: .97rem; }
.page-content ul.ticks li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1px; background: var(--clay); }
.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 26px; }
.grid-cards .card__img { aspect-ratio: 4 / 3.4; }
.faq details { border-bottom: 1px solid var(--sand); padding: 22px 0; }
.faq summary { cursor: pointer; font: 400 1.35rem/1.3 var(--serif); list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 300; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 14px 0 0; color: var(--muted); }
.map-embed { width: 100%; aspect-ratio: 16 / 9; border: 0; filter: grayscale(.4) sepia(.15); }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list strong { display: block; font: 500 .66rem/1.6 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--clay); }

/* ==========================================================================
   20. FOOTER
   ========================================================================== */
.site-footer { background: var(--forest); color: rgba(240, 233, 220, .78); padding: 100px 0 40px; font-size: .95rem; }
.footer-top { text-align: center; padding-bottom: 70px; border-bottom: 1px solid rgba(217, 201, 168, .2); }
.footer-top h2 { color: #F6F1E6; font-size: clamp(2rem, 4vw, 3rem); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 60px 0; }
.footer-grid h3 { font: 500 .68rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--sand); margin-bottom: 22px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a:hover { color: var(--white); }
.footer-brand .brand__name { color: #F6F1E6; font-size: 1.5rem; }
.footer-brand p { margin-top: 20px; max-width: 32ch; }
.socials { display: flex; gap: 12px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border: 1px solid rgba(217, 201, 168, .4); border-radius: 50%; display: grid; place-items: center; transition: background .3s, border-color .3s; }
.socials a:hover { background: var(--clay); border-color: var(--clay); }
.socials svg { width: 16px; height: 16px; fill: currentColor; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: .78rem; letter-spacing: .06em; color: rgba(240, 233, 220, .5); padding-top: 30px; border-top: 1px solid rgba(217, 201, 168, .2); }

/* Mobile sticky action bar (Book + WhatsApp) */
.mobile-bar { display: none; }

/* ==========================================================================
   21. SCROLL REVEAL ANIMATIONS (added by main.js; disabled for reduced motion)
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .12s; } .reveal-d2 { transition-delay: .24s; } .reveal-d3 { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.reveal { opacity: 1; transform: none; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   22. RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.carousel__track { grid-auto-columns: minmax(260px, 44%); }
}
@media (max-width: 860px) {
	body { font-size: 16px; }
	.menu-overlay { grid-template-columns: 1fr; }
	.menu-overlay__img { display: none; }
	.stay, .split { grid-template-columns: 1fr; }
	.split--reverse .split__media { order: 0; }
	.split__media .inset { display: none; }
	.tiles { grid-template-columns: 1fr; }
	.tile { aspect-ratio: 4 / 3.4; }
	.tile__label span { opacity: 1; transform: none; }
	.day__strip { grid-template-columns: repeat(2, 1fr); }
	.day__strip img:nth-child(even) { margin-top: 24px; }
	.day__line::before { left: 70px; } .day__item { grid-template-columns: 70px 1fr; gap: 24px; } .day__item::before { left: 66px; }
	.day__time { font-size: 1.25rem; }
	.trio, .regen__grid, .grid-cards { grid-template-columns: 1fr; }
	.carousel__track { grid-auto-columns: 80%; }
	.hero__links { bottom: 92px; }
	.hero__links a { font-size: 1.2rem; }
	.page-content ul.ticks { grid-template-columns: 1fr; }
	.book-toggle .label-long { display: none; }
	.brand__name { font-size: 1.2rem; letter-spacing: .1em; }
	.brand__sub { letter-spacing: .32em; }
	/* Bottom action bar on phones */
	.mobile-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; }
	.mobile-bar a, .mobile-bar button { padding: 17px 10px; text-align: center; border: 0; font: 500 .7rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; cursor: pointer; }
	.mobile-bar .mb-book { background: var(--clay); color: var(--white); }
	.mobile-bar .mb-wa { background: var(--forest); color: var(--paper); }
	.site-footer { padding-bottom: 90px; }
}
@media (max-width: 560px) {
	.footer-grid { grid-template-columns: 1fr; }
	.booking-panel { padding: 80px 24px 30px; }
	.hero__title { font-size: 2.7rem; }
}

/* ==========================================================================
   23. DEVICE & OS FRIENDLINESS
   - Safe areas for notched iPhones / Android cut-outs (viewport-fit=cover)
   - Touch devices: no hover-only content, larger tap targets
   - Header label switches to a short "Book" on small phones
   ========================================================================== */
.site-header { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); padding-top: max(18px, env(safe-area-inset-top)); }
.mobile-bar { padding-bottom: env(safe-area-inset-bottom); background: var(--forest); }
.book-toggle .label-short::before { content: "Book"; }
.book-toggle .label-short { display: none; }
@media (max-width: 860px) { .book-toggle .label-short { display: inline; } .book-toggle span.pill { padding: 10px 16px; } }
@media (hover: none) { .tile__label span { opacity: 1; transform: none; } }
input[type="date"] { min-height: 50px; -webkit-appearance: none; } /* iOS Safari renders date fields collapsed otherwise */
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
@media print { .site-header, .mobile-bar, .booking-panel, .menu-overlay, .hero__video { display: none !important; } .reveal { opacity: 1 !important; transform: none !important; } }

/* ==========================================================================
   24. POLISH
   ========================================================================== */
.emblem { display: block; }
.emblem svg { width: 100%; height: 100%; display: block; }
/* Keep the header below the WordPress toolbar when an editor is logged in */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.hero__links { bottom: 96px; }
.stay__frame img { object-position: center 70%; }
/* Cookie-consent plugin (CookieAdmin): lift its button above the phone action bar */
@media (max-width: 860px) {
	.cookieadmin_re_consent { bottom: calc(68px + env(safe-area-inset-bottom)) !important; }
	.cookieadmin_law_container { bottom: calc(60px + env(safe-area-inset-bottom)) !important; }
	.hero__eyebrow { letter-spacing: .24em; font-size: .64rem; }
}

/* ==========================================================================
   25. LEGAL PAGES, LEGAL LINKS & PRIVACY-FRIENDLY MAP
   ========================================================================== */
.legal h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-top: 1.6em; }
.legal ul.ticks { grid-template-columns: 1fr; }
.legal__updated { margin-top: 3em; color: var(--muted); font-size: .9rem; }
.legal-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.legal-nav a:hover { color: var(--white); }
.map-consent { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--moss); }
.map-consent > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.55); }
.map-consent__box { position: relative; z-index: 1; height: 100%; display: grid; place-content: center; justify-items: center; text-align: center; padding: 24px; color: var(--white); gap: 6px; }
.map-consent__box p { max-width: 32ch; font-size: .95rem; }
.map-consent iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }
