/* ==========================================================================
   Elite Crest Villa — Main Styles
   ========================================================================== */

:root {
	--ink: #0e1518;
	--ink-soft: #182226;
	--terracotta: #a12e28;
	--terracotta-deep: #7f221e;
	--amber: #c8963e;
	--amber-deep: #a6772a;
	--stone: #f2f0ed;
	--mist: #e6e1da;
	--paper: #fbfaf8;
	--text: #1c2326;
	--muted: #5e676c;
	--line: rgba(28, 35, 38, 0.12);
	--line-light: rgba(255, 255, 255, 0.16);
	--radius: 4px;
	--container: 1180px;
	--header-h: 88px;
	--font-brand: "Italiana", Georgia, serif;
	--font-display: "Syne", "Segoe UI", sans-serif;
	--font-body: "Manrope", "Segoe UI", sans-serif;
	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
	--ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1.05rem;
	line-height: 1.7;
	color: var(--text);
	background:
		radial-gradient(1200px 600px at 10% -10%, rgba(161, 46, 40, 0.08), transparent 55%),
		radial-gradient(900px 500px at 100% 0%, rgba(200, 150, 62, 0.08), transparent 50%),
		linear-gradient(180deg, var(--paper), var(--stone));
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

body.nav-open {
	overflow: hidden;
}

img,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

button,
input,
textarea,
select {
	font: inherit;
	color: inherit;
}

h1,
h2,
h3,
h4 {
	font-family: var(--font-display);
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin: 0 0 0.6em;
	font-weight: 700;
}

h1 {
	font-size: clamp(2.8rem, 7vw, 5.5rem);
}

h2 {
	font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
	font-size: clamp(1.25rem, 2vw, 1.55rem);
}

p {
	margin: 0 0 1em;
}

p:last-child {
	margin-bottom: 0;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.container {
	width: min(100% - 2.5rem, var(--container));
	margin-inline: auto;
}

.eyebrow {
	font-family: var(--font-body);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--terracotta);
	margin: 0 0 0.9rem;
}

.section {
	padding: clamp(4.5rem, 9vw, 7.5rem) 0;
	position: relative;
}

.section--ink {
	background:
		linear-gradient(160deg, rgba(161, 46, 40, 0.18), transparent 40%),
		linear-gradient(180deg, var(--ink), var(--ink-soft));
	color: #f4f1ec;
}

.section--ink .eyebrow {
	color: var(--amber);
}

.section--stone {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent),
		var(--mist);
}

.section-head {
	max-width: 720px;
	margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	font-weight: 600;
	color: var(--terracotta);
	border-bottom: 1px solid currentColor;
	padding-bottom: 0.15rem;
	transition: color 0.3s var(--ease-soft), transform 0.3s var(--ease-soft);
}

.text-link::after {
	content: "→";
	transition: transform 0.3s var(--ease-soft);
}

.text-link:hover {
	color: var(--terracotta-deep);
}

.text-link:hover::after {
	transform: translateX(4px);
}

/* Buttons
   ========================================================================== */

.btn {
	--btn-bg: var(--terracotta);
	--btn-fg: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 52px;
	padding: 0.85rem 1.55rem;
	border: 1px solid transparent;
	border-radius: var(--radius);
	background: var(--btn-bg);
	color: var(--btn-fg);
	font-family: var(--font-body);
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: transform 0.35s var(--ease-out), background 0.3s var(--ease-soft), border-color 0.3s var(--ease-soft), color 0.3s var(--ease-soft);
	position: relative;
	overflow: hidden;
}

.btn::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.18) 45%, transparent 70%);
	transform: translateX(-120%);
	transition: transform 0.7s var(--ease-out);
}

.btn:hover {
	transform: translateY(-2px);
}

.btn:hover::before {
	transform: translateX(120%);
}

.btn--book {
	--btn-bg: linear-gradient(135deg, var(--amber), var(--amber-deep));
	background: var(--btn-bg);
	color: #1a1408;
}

.btn--book:hover {
	filter: brightness(1.05);
}

.btn--ghost {
	--btn-bg: transparent;
	--btn-fg: #fff;
	border-color: rgba(255, 255, 255, 0.45);
	backdrop-filter: blur(6px);
}

.btn--ghost:hover {
	background: rgba(255, 255, 255, 0.1);
}

.btn--ink {
	--btn-bg: var(--ink);
	--btn-fg: #fff;
}

.btn--block {
	width: 100%;
}

/* Loader
   ========================================================================== */

.page-loader {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: grid;
	place-items: center;
	background: var(--ink);
	color: #fff;
	transition: opacity 0.7s var(--ease-soft), visibility 0.7s;
}

.page-loader.is-done {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.page-loader__inner {
	text-align: center;
}

.page-loader__logo {
	display: block;
	width: min(260px, 72vw);
	height: auto;
	margin: 0 auto 1.25rem;
	filter: drop-shadow(0 8px 24px rgba(200, 150, 62, 0.18));
	animation: brandPulse 1.4s var(--ease-soft) infinite alternate;
}

.page-loader__bar {
	display: block;
	width: 140px;
	height: 2px;
	margin-inline: auto;
	background: rgba(255, 255, 255, 0.15);
	position: relative;
	overflow: hidden;
}

.page-loader__bar::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, var(--terracotta), var(--amber));
	transform: translateX(-100%);
	animation: loaderBar 1.1s var(--ease-soft) infinite;
}

@keyframes brandPulse {
	from { opacity: 0.55; transform: scale(0.98); }
	to { opacity: 1; transform: scale(1); }
}

@keyframes loaderBar {
	to { transform: translateX(100%); }
}

/* Header
   ========================================================================== */

.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 1000;
	height: var(--header-h);
	transition: background 0.35s var(--ease-soft), backdrop-filter 0.35s var(--ease-soft), box-shadow 0.35s var(--ease-soft);
}

.site-header.is-scrolled {
	background: rgba(14, 21, 24, 0.88);
	backdrop-filter: blur(14px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.site-header__inner {
	width: min(100% - 2rem, 1280px);
	margin-inline: auto;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}

.site-brand {
	display: inline-flex;
	align-items: center;
	color: #fff;
	z-index: 2;
	flex-shrink: 0;
}

.site-brand__logo {
	display: block;
	height: 48px;
	width: auto;
	max-width: min(240px, 58vw);
	object-fit: contain;
	animation: logoIn 0.9s var(--ease-out) both;
}

@keyframes logoIn {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

.site-nav__list,
.mobile-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 1.6rem;
}

.site-nav__list a,
.mobile-nav__list a {
	color: rgba(255, 255, 255, 0.88);
	font-size: 0.92rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	position: relative;
}

.site-nav__list a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -0.35rem;
	width: 100%;
	height: 1px;
	background: var(--amber);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.35s var(--ease-out);
}

.site-nav__list a:hover::after,
.site-nav__list .current-menu-item > a::after {
	transform: scaleX(1);
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.site-header__actions .btn--book {
	min-height: 44px;
	padding-inline: 1.15rem;
	font-size: 0.8rem;
}

.nav-toggle {
	display: none;
	width: 46px;
	height: 46px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: var(--radius);
	background: transparent;
	color: #fff;
	cursor: pointer;
	place-items: center;
}

.nav-toggle__lines,
.nav-toggle__lines::before,
.nav-toggle__lines::after {
	display: block;
	width: 18px;
	height: 1.5px;
	background: currentColor;
	position: relative;
	transition: transform 0.3s var(--ease-soft);
}

.nav-toggle__lines::before,
.nav-toggle__lines::after {
	content: "";
	position: absolute;
	left: 0;
}

.nav-toggle__lines::before { top: -6px; }
.nav-toggle__lines::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__lines {
	background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__lines::before {
	top: 0;
	transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__lines::after {
	top: 0;
	transform: rotate(-45deg);
}

.mobile-nav {
	position: fixed;
	inset: 0;
	z-index: 980;
	background: rgba(14, 21, 24, 0.96);
	padding: calc(var(--header-h) + 1.5rem) 1.5rem 2rem;
	transform: translateY(-8px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s var(--ease-soft), transform 0.35s var(--ease-soft), visibility 0.35s;
}

.mobile-nav.is-open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.mobile-nav__list {
	flex-direction: column;
	align-items: flex-start;
	gap: 1.25rem;
	margin-bottom: 2rem;
}

.mobile-nav__list a {
	font-family: var(--font-display);
	font-size: 1.8rem;
	color: #fff;
}

/* Hero
   ========================================================================== */

.hero {
	position: relative;
	min-height: 100svh;
	display: grid;
	align-items: end;
	color: #fff;
	overflow: hidden;
}

.hero__media,
.page-hero__media,
.cta-banner__bg {
	position: absolute;
	inset: 0;
}

.hero__video,
.hero__media img,
.page-hero__media img,
.cta-banner__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero__veil,
.page-hero__veil,
.cta-banner__veil {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(14, 21, 24, 0.35) 0%, rgba(14, 21, 24, 0.15) 35%, rgba(14, 21, 24, 0.78) 100%),
		linear-gradient(90deg, rgba(14, 21, 24, 0.55), transparent 55%);
}

.hero__grain {
	position: absolute;
	inset: 0;
	opacity: 0.18;
	pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	mix-blend-mode: soft-light;
}

.hero__content {
	position: relative;
	z-index: 2;
	width: min(100% - 2.5rem, var(--container));
	margin: 0 auto;
	padding: calc(var(--header-h) + 3rem) 0 6rem;
}

.hero__eyebrow {
	color: var(--amber);
}

.hero__brand {
	font-family: var(--font-brand);
	font-weight: 400;
	font-size: clamp(4.2rem, 12vw, 8.5rem);
	letter-spacing: 0.04em;
	line-height: 0.92;
	margin-bottom: 0.35em;
	text-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.hero__lead,
.page-hero__lead {
	max-width: 34rem;
	font-size: clamp(1.05rem, 2vw, 1.25rem);
	color: rgba(255, 255, 255, 0.88);
	margin-bottom: 1.8rem;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
}

.hero__scroll {
	position: absolute;
	left: 50%;
	bottom: 1.5rem;
	transform: translateX(-50%);
	width: 28px;
	height: 44px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 20px;
	display: grid;
	place-items: start center;
	padding-top: 8px;
	z-index: 2;
}

.hero__scroll span {
	width: 4px;
	height: 8px;
	border-radius: 4px;
	background: var(--amber);
	animation: scrollDot 1.6s var(--ease-soft) infinite;
}

@keyframes scrollDot {
	0% { transform: translateY(0); opacity: 1; }
	100% { transform: translateY(16px); opacity: 0; }
}

.reveal-hero {
	opacity: 0;
	transform: translateY(28px);
}

.reveal-hero.is-in {
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal-hero.is-in:nth-child(1) { transition-delay: 0.05s; }
.reveal-hero.is-in:nth-child(2) { transition-delay: 0.18s; }
.reveal-hero.is-in:nth-child(3) { transition-delay: 0.3s; }
.reveal-hero.is-in:nth-child(4) { transition-delay: 0.42s; }

/* Page hero
   ========================================================================== */

.page-hero {
	position: relative;
	min-height: clamp(420px, 62vh, 640px);
	display: grid;
	align-items: end;
	color: #fff;
	overflow: hidden;
}

.page-hero--compact {
	min-height: clamp(360px, 50vh, 520px);
}

.page-hero__content {
	position: relative;
	z-index: 2;
	padding: calc(var(--header-h) + 2rem) 0 3.5rem;
}

.page-hero h1 {
	font-family: var(--font-brand);
	font-weight: 400;
	letter-spacing: 0.04em;
}

/* Experience / media frames
   ========================================================================== */

.experience__grid,
.about-story__grid,
.rooms-preview__grid,
.contact-section__grid,
.booking-section__grid,
.map-band__inner {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}

.feature-list {
	list-style: none;
	margin: 1.5rem 0 2rem;
	padding: 0;
	display: grid;
	gap: 0.75rem;
}

.feature-list li {
	position: relative;
	padding-left: 1.4rem;
}

.feature-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.7em;
	width: 0.55rem;
	height: 1px;
	background: var(--terracotta);
}

.experience__visual {
	position: relative;
	min-height: 560px;
}

.media-frame {
	margin: 0;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--ink);
}

.media-frame--tall {
	width: 78%;
	height: 520px;
}

.media-frame--overlap {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 58%;
	height: 280px;
	box-shadow: 0 20px 50px rgba(14, 21, 24, 0.25);
	border: 4px solid var(--paper);
}

.media-frame__img,
.media-frame img,
.about-story__media img,
.rooms-preview__mosaic img,
.about-gallery img,
.service-block__media img,
.map-band__image img,
.booking-perks img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ken-burns img,
.ken-burns .media-frame__img,
.ken-burns.cta-banner__bg img,
.ken-burns.page-hero__media img {
	transform: scale(1.08);
	animation: kenBurns 18s var(--ease-soft) infinite alternate;
	will-change: transform;
}

@keyframes kenBurns {
	from { transform: scale(1.08) translate3d(0, 0, 0); }
	to { transform: scale(1.16) translate3d(-2%, -1.5%, 0); }
}

/* Highlights
   ========================================================================== */

.highlights__row,
.values-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.highlight,
.value {
	padding: 1.75rem 1.5rem;
	border-top: 1px solid var(--line-light);
}

.section--stone .value {
	border-top-color: var(--line);
	background: rgba(255, 255, 255, 0.45);
	padding: 1.75rem;
}

.highlight__num {
	display: inline-block;
	font-family: var(--font-display);
	font-size: 0.85rem;
	letter-spacing: 0.16em;
	color: var(--amber);
	margin-bottom: 1rem;
}

.section--stone .highlight__num,
.service-block .highlight__num {
	color: var(--terracotta);
}

/* Gallery marquee
   ========================================================================== */

.gallery-strip {
	padding-bottom: 2rem;
	overflow: hidden;
}

.gallery-strip__track {
	display: flex;
	width: max-content;
	gap: 1rem;
	animation: marquee 42s linear infinite;
}

.gallery-strip__track:hover {
	animation-play-state: paused;
}

.gallery-strip__group {
	display: flex;
	gap: 1rem;
}

.gallery-strip__item {
	margin: 0;
	width: min(72vw, 360px);
	height: 260px;
	overflow: hidden;
	border-radius: var(--radius);
}

.gallery-strip__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s var(--ease-out);
}

.gallery-strip__item:hover img {
	transform: scale(1.06);
}

@keyframes marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

/* Rooms preview / about gallery
   ========================================================================== */

.rooms-preview__mosaic {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	grid-template-rows: 220px 220px;
	gap: 0.85rem;
}

.rooms-preview__mosaic figure,
.about-gallery__grid figure,
.booking-perks__grid figure {
	margin: 0;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--ink);
}

.rooms-preview__mosaic figure:first-child {
	grid-row: 1 / span 2;
	min-height: 100%;
}

.about-gallery__grid,
.booking-perks__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0.85rem;
}

.about-gallery__grid figure {
	height: 280px;
}

.booking-perks__grid {
	grid-template-columns: repeat(3, 1fr);
}

.booking-perks__grid figure {
	height: 280px;
}

/* CTA banner
   ========================================================================== */

.cta-banner {
	position: relative;
	min-height: 520px;
	display: grid;
	align-items: center;
	color: #fff;
	overflow: hidden;
	padding: 0;
}

.cta-banner__content {
	position: relative;
	z-index: 2;
	padding: clamp(4rem, 8vw, 6rem) 0;
	max-width: 700px;
}

.cta-banner .eyebrow {
	color: var(--amber);
}

/* Services
   ========================================================================== */

.services-list__grid {
	display: grid;
	gap: clamp(2.5rem, 6vw, 4.5rem);
}

.service-block {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: center;
}

.service-block--reverse {
	direction: rtl;
}

.service-block--reverse > * {
	direction: ltr;
}

.service-block__media {
	margin: 0;
	height: min(420px, 55vw);
	overflow: hidden;
	border-radius: var(--radius);
}

.service-block__media img {
	transition: transform 1s var(--ease-out);
}

.service-block:hover .service-block__media img {
	transform: scale(1.05);
}

.amenities__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.85rem;
}

.amenities__grid li {
	padding: 1.1rem 1.15rem;
	border: 1px solid var(--line-light);
	border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.03);
	transition: border-color 0.3s var(--ease-soft), transform 0.35s var(--ease-out), background 0.3s var(--ease-soft);
}

.amenities__grid li:hover {
	border-color: rgba(200, 150, 62, 0.55);
	background: rgba(200, 150, 62, 0.08);
	transform: translateY(-3px);
}

.amenities__note {
	margin-top: 1.25rem;
	opacity: 0.65;
	font-size: 0.9rem;
}

/* Forms / contact / booking
   ========================================================================== */

.form-panel {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78)),
		var(--stone);
	border: 1px solid var(--line);
	border-radius: calc(var(--radius) + 2px);
	padding: clamp(1.5rem, 4vw, 2.4rem);
	box-shadow: 0 18px 50px rgba(14, 21, 24, 0.08);
}

.ec-form {
	display: grid;
	gap: 1rem;
	margin-top: 1.25rem;
}

.ec-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.ec-form label {
	display: grid;
	gap: 0.45rem;
}

.ec-form label span {
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}

.ec-form input,
.ec-form textarea {
	width: 100%;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.85);
	padding: 0.9rem 1rem;
	outline: none;
	transition: border-color 0.25s var(--ease-soft), box-shadow 0.25s var(--ease-soft);
}

.ec-form input:focus,
.ec-form textarea:focus {
	border-color: rgba(161, 46, 40, 0.55);
	box-shadow: 0 0 0 3px rgba(161, 46, 40, 0.12);
}

.ec-form__status {
	min-height: 1.4em;
	margin: 0;
	font-size: 0.95rem;
}

.ec-form__status.is-success { color: #1f6b3a; }
.ec-form__status.is-error { color: var(--terracotta-deep); }

.contact-details,
.booking-points {
	list-style: none;
	margin: 1.5rem 0 2rem;
	padding: 0;
	display: grid;
	gap: 1rem;
}

.contact-details li {
	display: grid;
	gap: 0.2rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--line);
}

.contact-details span {
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
}

.booking-points li {
	padding-left: 1.2rem;
	position: relative;
}

.booking-points li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.75em;
	width: 0.5rem;
	height: 0.5rem;
	border: 1px solid var(--terracotta);
	border-radius: 1px;
	transform: rotate(45deg);
}

.booking-mini {
	display: grid;
	gap: 0.35rem;
	padding: 1.25rem;
	background: var(--ink);
	color: #fff;
	border-radius: var(--radius);
}

.booking-mini a {
	color: var(--amber);
	font-weight: 600;
}

.map-band__image {
	margin: 0;
	height: 360px;
	overflow: hidden;
	border-radius: var(--radius);
}

/* Footer
   ========================================================================== */

.site-footer {
	position: relative;
	background: var(--ink);
	color: rgba(255, 255, 255, 0.82);
	padding-top: clamp(3.5rem, 7vw, 5.5rem);
	overflow: hidden;
}

.site-footer__glow {
	position: absolute;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(161, 46, 40, 0.35), transparent 70%);
	top: -160px;
	right: -80px;
	pointer-events: none;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 0.8fr 1fr 1.1fr;
	gap: 2rem;
	position: relative;
	padding-bottom: 3rem;
}

.site-footer__logo {
	display: inline-block;
	margin-bottom: 0.8rem;
}

.site-footer__logo-img {
	display: block;
	height: auto;
	width: min(240px, 80%);
	object-fit: contain;
	filter: drop-shadow(0 6px 18px rgba(200, 150, 62, 0.12));
}

.site-footer h3 {
	font-size: 1rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff;
	margin-bottom: 1rem;
}

.site-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.55rem;
}

.site-footer a:hover {
	color: var(--amber);
}

.site-footer__bottom {
	border-top: 1px solid var(--line-light);
}

.site-footer__bottom-inner {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.2rem 0;
	font-size: 0.9rem;
}

.to-top:hover {
	color: var(--amber);
}

.whatsapp-float {
	position: fixed;
	right: 1.25rem;
	bottom: 5.6rem;
	z-index: 1100;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: #1faa55;
	color: #fff;
	box-shadow: 0 12px 28px rgba(14, 21, 24, 0.28);
	transition: transform 0.3s var(--ease-out);
}

.whatsapp-float svg {
	width: 28px;
	height: 28px;
}

.whatsapp-float:hover {
	transform: translateY(-4px) scale(1.04);
}

/* Floating chatbot
   ========================================================================== */

.ec-chat {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 1200;
	font-family: var(--font-body);
}

.ec-chat__launcher {
	position: relative;
	width: 58px;
	height: 58px;
	border: 0;
	border-radius: 50%;
	display: grid;
	place-items: center;
	cursor: pointer;
	color: #fff;
	background: linear-gradient(145deg, var(--terracotta), var(--terracotta-deep));
	box-shadow: 0 14px 30px rgba(14, 21, 24, 0.3);
	transition: transform 0.3s var(--ease-out);
}

.ec-chat__launcher:hover {
	transform: translateY(-3px) scale(1.04);
}

.ec-chat__launcher svg {
	width: 26px;
	height: 26px;
}

.ec-chat__pulse {
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	border: 2px solid rgba(161, 46, 40, 0.45);
	animation: ec-chat-pulse 2.2s var(--ease-soft) infinite;
	pointer-events: none;
}

.ec-chat.is-open .ec-chat__pulse {
	display: none;
}

@keyframes ec-chat-pulse {
	0% { transform: scale(0.92); opacity: 0.9; }
	70% { transform: scale(1.18); opacity: 0; }
	100% { transform: scale(1.18); opacity: 0; }
}

.ec-chat__tooltip {
	position: absolute;
	right: 70px;
	bottom: 8px;
	width: min(220px, calc(100vw - 6rem));
	padding: 0.75rem 2rem 0.75rem 0.9rem;
	background: var(--ink);
	color: #fff;
	border-radius: var(--radius);
	box-shadow: 0 16px 36px rgba(14, 21, 24, 0.28);
	animation: ec-chat-tooltip-in 0.45s var(--ease-out);
	pointer-events: auto;
}

.ec-chat__tooltip[hidden] {
	display: none !important;
}

.ec-chat__tooltip strong {
	display: block;
	font-family: var(--font-display);
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.ec-chat__tooltip span {
	display: block;
	margin-top: 0.15rem;
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.72);
	line-height: 1.35;
}

.ec-chat__tooltip-close {
	position: absolute;
	top: 0.35rem;
	right: 0.35rem;
	width: 22px;
	height: 22px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: rgba(255, 255, 255, 0.75);
	cursor: pointer;
	font-size: 1rem;
	line-height: 1;
}

.ec-chat__tooltip::after {
	content: "";
	position: absolute;
	right: -6px;
	bottom: 18px;
	width: 12px;
	height: 12px;
	background: var(--ink);
	transform: rotate(45deg);
}

@keyframes ec-chat-tooltip-in {
	from { opacity: 0; transform: translateX(10px); }
	to { opacity: 1; transform: translateX(0); }
}

.ec-chat__panel {
	position: absolute;
	right: 0;
	bottom: 72px;
	width: min(360px, calc(100vw - 2rem));
	height: min(520px, calc(100vh - 7rem));
	display: none;
	flex-direction: column;
	overflow: hidden;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 10px;
	box-shadow: 0 24px 50px rgba(14, 21, 24, 0.28);
	transform-origin: bottom right;
}

.ec-chat__panel.is-visible {
	display: flex;
	animation: ec-chat-panel-in 0.35s var(--ease-out);
}

.ec-chat__panel[hidden] {
	display: none !important;
}

@keyframes ec-chat-panel-in {
	from { opacity: 0; transform: translateY(12px) scale(0.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.ec-chat__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.95rem 1rem;
	background: var(--ink);
	color: #fff;
}

.ec-chat__eyebrow {
	margin: 0;
	font-size: 0.68rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.65);
}

.ec-chat__head strong {
	font-family: var(--font-display);
	font-weight: 600;
}

.ec-chat__close {
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	cursor: pointer;
	font-size: 1.25rem;
	line-height: 1;
	flex-shrink: 0;
}

.ec-chat__messages {
	flex: 1;
	overflow-y: auto;
	padding: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	background:
		radial-gradient(500px 180px at 0% 0%, rgba(200, 150, 62, 0.08), transparent 60%),
		var(--stone);
}

.ec-chat__bubble {
	max-width: 88%;
	padding: 0.7rem 0.85rem;
	border-radius: 10px;
	font-size: 0.92rem;
	line-height: 1.45;
	white-space: pre-wrap;
}

.ec-chat__bubble--bot {
	align-self: flex-start;
	background: #fff;
	border: 1px solid var(--line);
	color: var(--text);
}

.ec-chat__bubble--user {
	align-self: flex-end;
	background: var(--ink);
	color: #fff;
}

.ec-chat__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-top: 0.15rem;
}

.ec-chat__action {
	border: 1px solid var(--line);
	background: #fff;
	color: var(--text);
	border-radius: 999px;
	padding: 0.4rem 0.75rem;
	font-size: 0.8rem;
	cursor: pointer;
	transition: background 0.2s var(--ease-soft), color 0.2s var(--ease-soft);
	text-align: left;
}

.ec-chat__action:hover,
.ec-chat__action:focus-visible {
	background: var(--ink);
	color: #fff;
	outline: none;
}

.ec-chat__composer {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.5rem;
	padding: 0.75rem;
	border-top: 1px solid var(--line);
	background: #fff;
}

.ec-chat__composer input {
	width: 100%;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 0.65rem 0.75rem;
	background: var(--paper);
}

.ec-chat__composer input:disabled {
	opacity: 0.55;
}

.ec-chat__composer button {
	border: 0;
	border-radius: var(--radius);
	padding: 0.65rem 0.9rem;
	background: var(--terracotta);
	color: #fff;
	cursor: pointer;
}

.ec-chat__composer button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

@media (max-width: 520px) {
	.whatsapp-float {
		right: 0.85rem;
		bottom: 5.2rem;
	}

	.ec-chat {
		right: 0.85rem;
		bottom: 0.85rem;
	}

	.ec-chat__tooltip {
		right: 0;
		bottom: 70px;
		width: min(240px, calc(100vw - 1.7rem));
	}

	.ec-chat__tooltip::after {
		right: 22px;
		bottom: -6px;
	}

	.ec-chat__panel {
		position: fixed;
		right: 0.85rem;
		left: 0.85rem;
		bottom: 5.1rem;
		width: auto;
		height: min(70vh, 520px);
	}
}

/* Reveal on scroll
   ========================================================================== */

.reveal {
	opacity: 0;
	transform: translateY(36px);
	transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
	transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-in {
	opacity: 1;
	transform: translateY(0);
}

.error-404__inner {
	text-align: center;
	max-width: 560px;
	margin-inline: auto;
	padding: 4rem 0;
}

.content-flow {
	max-width: 760px;
}

.content-article + .content-article {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid var(--line);
}

/* Responsive
   ========================================================================== */

@media (max-width: 980px) {
	.site-nav {
		display: none;
	}

	.nav-toggle {
		display: grid;
	}

	.site-header__actions .btn--book {
		display: none;
	}

	.experience__grid,
	.about-story__grid,
	.rooms-preview__grid,
	.contact-section__grid,
	.booking-section__grid,
	.map-band__inner,
	.service-block,
	.service-block--reverse,
	.site-footer__grid {
		grid-template-columns: 1fr;
		direction: ltr;
	}

	.experience__visual {
		min-height: 420px;
	}

	.media-frame--tall {
		width: 100%;
		height: 360px;
	}

	.media-frame--overlap {
		width: 62%;
		height: 200px;
	}

	.highlights__row,
	.values-row,
	.amenities__grid {
		grid-template-columns: 1fr;
	}

	.about-gallery__grid,
	.booking-perks__grid {
		grid-template-columns: 1fr 1fr;
	}

	.rooms-preview__mosaic {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: 200px 200px;
	}
}

@media (max-width: 640px) {
	.site-brand__logo {
		height: 40px;
	}

	.ec-form__row {
		grid-template-columns: 1fr;
	}

	.about-gallery__grid,
	.booking-perks__grid,
	.rooms-preview__mosaic {
		grid-template-columns: 1fr;
		grid-template-rows: none;
	}

	.rooms-preview__mosaic figure:first-child {
		grid-row: auto;
		height: 260px;
	}

	.about-gallery__grid figure,
	.booking-perks__grid figure {
		height: 220px;
	}

	.site-footer__bottom-inner {
		flex-direction: column;
	}

	.hero__brand {
		font-size: clamp(3.4rem, 18vw, 4.8rem);
	}

	.gallery-strip__item {
		height: 210px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
	.reveal,
	.reveal-hero {
		opacity: 1;
		transform: none;
	}
}