/**
 * FEWAS Ayurveda Theme - Header, Navigation Drawer & Footer CSS
 * Matches exact aesthetics of React components (Transparent Header, Drawer, Footer)
 */

/* ==========================================================================
   1. TRANSPARENT FLOATING HEADER
   ========================================================================== */
.fewas-transparent-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	padding: 24px 20px 16px 20px;
	pointer-events: auto;
}

@media (min-width: 640px) {
	.fewas-transparent-header {
		padding: 32px 40px 20px 40px;
	}
}

@media (min-width: 1024px) {
	.fewas-transparent-header {
		padding: 40px 48px 24px 48px;
	}
}

/* Soft Dark Overlay Gradient for Perfect Text & Logo Legibility */
.fewas-header-gradient-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.25) 50%, transparent 100%);
	pointer-events: none;
	z-index: 1;
}

.fewas-header-flex-row {
	position: relative;
	z-index: 10;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

/* Left: Toggle Menu Button */
.fewas-header-left {
	display: flex;
	align-items: center;
}

.fewas-header-menu-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #FAF9F5;
	padding: 6px 10px 6px 4px;
	background: none;
	border: none;
	cursor: pointer;
	transition: color 0.3s ease;
}

.fewas-header-menu-btn:hover {
	color: #B98A65;
}

.fewas-menu-icon {
	color: #FAF9F5;
	transition: color 0.3s ease;
}

.fewas-header-menu-btn:hover .fewas-menu-icon {
	color: #B98A65;
}

.fewas-menu-label {
	display: none;
	font-family: var(--font-sans);
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: #FAF9F5;
	transition: color 0.3s ease;
}

@media (min-width: 640px) {
	.fewas-menu-label {
		display: inline-block;
	}
}

.fewas-header-menu-btn:hover .fewas-menu-label {
	color: #B98A65;
}

/* Center: Logo Image */
.fewas-header-center {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	pointer-events: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-top: 6px;
}

.fewas-center-logo-link {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	transition: opacity 0.3s ease;
}

.fewas-center-logo-link:hover {
	opacity: 0.9;
}

.fewas-main-logo-img {
	height: 64px;
	width: auto;
	object-fit: contain;
	filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
	transition: height 0.3s ease;
}

@media (min-width: 640px) {
	.fewas-main-logo-img {
		height: 76px;
	}
}

@media (min-width: 768px) {
	.fewas-main-logo-img {
		height: 84px;
	}
}

@media (min-width: 1024px) {
	.fewas-main-logo-img {
		height: 96px;
	}
}

/* Right: Book Now Button */
.fewas-header-right {
	display: none;
	align-items: center;
}

@media (min-width: 640px) {
	.fewas-header-right {
		display: flex;
	}
}

.fewas-header-book-btn {
	background-color: #B98A65;
	color: #FAF9F5;
	padding: 10px 24px;
	border-radius: var(--fewas-radius-pill);
	font-family: var(--font-sans);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid transparent;
	transition: all 0.3s ease;
	cursor: pointer;
}

.fewas-header-book-btn:hover {
	background-color: #FAF9F5;
	color: #0B2F2E;
	transform: translateY(-1px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

.fewas-cal-icon {
	width: 16px;
	height: 16px;
}

/* ==========================================================================
   2. SLIDING NAVIGATION DRAWER
   ========================================================================== */
.fewas-nav-drawer-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	justify-content: flex-end;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s ease, visibility 0.35s ease;
}

.fewas-nav-drawer-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.fewas-drawer-backdrop {
	position: fixed;
	inset: 0;
	background-color: rgba(6, 33, 31, 0.8);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	cursor: pointer;
}

.fewas-drawer-panel {
	position: relative;
	width: 100%;
	max-width: 440px;
	height: 100%;
	background-color: #0B2F2E;
	color: #FAF9F5;
	box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
	border-left: 1px solid rgba(185, 138, 101, 0.25);
	transform: translateX(100%);
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
	z-index: 10;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.fewas-nav-drawer-overlay.is-open .fewas-drawer-panel {
	transform: translateX(0);
}

/* Ambient glow */
.fewas-drawer-glow-top {
	position: absolute;
	top: 0;
	right: 0;
	width: 320px;
	height: 320px;
	background: radial-gradient(circle, rgba(185, 138, 101, 0.15) 0%, transparent 70%);
	pointer-events: none;
	filter: blur(40px);
}

.fewas-drawer-glow-bottom {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 320px;
	height: 320px;
	background: radial-gradient(circle, rgba(6, 33, 31, 0.8) 0%, transparent 70%);
	pointer-events: none;
	filter: blur(40px);
}

.fewas-drawer-inner {
	position: relative;
	z-index: 10;
	height: 100%;
	overflow-y: auto;
	padding: 28px 28px 32px 28px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.fewas-drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 24px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fewas-drawer-logo-img {
	height: 48px;
	width: auto;
	object-fit: contain;
}

.fewas-drawer-close-btn {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: rgba(250, 249, 245, 0.8);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.25s ease;
	cursor: pointer;
}

.fewas-drawer-close-btn:hover {
	color: #FAF9F5;
	background: rgba(255, 255, 255, 0.1);
	border-color: #FAF9F5;
}

.fewas-drawer-nav {
	margin: 28px 0;
}

.fewas-drawer-menu-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.fewas-drawer-nav-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 16px;
	border-radius: 12px;
	color: rgba(250, 249, 245, 0.9);
	font-family: var(--font-serif);
	font-size: 1.15rem;
	letter-spacing: 0.02em;
	transition: all 0.25s ease;
}

.fewas-drawer-nav-item:hover {
	background: rgba(255, 255, 255, 0.06);
	color: #FAF9F5;
	transform: translateX(4px);
}

.fewas-drawer-nav-item.is-active {
	background-color: #B98A65;
	color: #FAF9F5;
	box-shadow: 0 4px 15px rgba(185, 138, 101, 0.3);
}

.fewas-nav-arrow {
	opacity: 0.5;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.fewas-drawer-nav-item:hover .fewas-nav-arrow {
	opacity: 1;
	transform: translateX(3px);
}

.fewas-drawer-footer {
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.fewas-drawer-contacts {
	margin-bottom: 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.fewas-d-label {
	display: block;
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: #B98A65;
	font-weight: 700;
	margin-bottom: 2px;
}

.fewas-d-val {
	font-size: 0.82rem;
	color: rgba(250, 249, 245, 0.85);
	line-height: 1.4;
}

.fewas-btn-gold-drawer {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background-color: #B98A65;
	color: #FAF9F5;
	padding: 14px 24px;
	border-radius: var(--fewas-radius-pill);
	font-weight: 600;
	font-size: 0.85rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
	transition: all 0.3s ease;
}

.fewas-btn-gold-drawer:hover {
	background-color: #FAF9F5;
	color: #0B2F2E;
}

/* ==========================================================================
   3. FOOTER (Matching Footer.tsx)
   ========================================================================== */
.fewas-site-footer {
	position: relative;
	width: 100%;
	background-color: #0B2F2E;
	color: #F4EFE7;
	overflow: hidden;
	user-select: none;
	font-family: var(--font-sans);
	padding: 0;
	border-top: 1px solid rgba(185, 138, 101, 0.25);
}

.fewas-footer-bg-wrapper {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	overflow: hidden;
}

.fewas-footer-bg-img {
	position: absolute;
	inset: 0;
	background-position: center bottom;
	background-repeat: no-repeat;
	background-size: cover;
	opacity: 0.85;
	transition: opacity 1s ease-out;
}

.fewas-footer-gradient-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, #0B2F2E 0%, rgba(11, 47, 46, 0.9) 45%, rgba(11, 47, 46, 0.8) 75%, rgba(11, 47, 46, 0.5) 100%);
	z-index: 1;
}

.fewas-footer-radial-glow {
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at top, rgba(11, 47, 46, 0.95) 0%, rgba(11, 47, 46, 0.6) 60%, rgba(6, 59, 53, 0.3) 100%);
	z-index: 1;
}

.fewas-footer-grounding-shade {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 96px;
	background: linear-gradient(0deg, #0B2F2E 0%, rgba(11, 47, 46, 0.7) 70%, transparent 100%);
	z-index: 2;
}

.fewas-footer-container {
	position: relative;
	z-index: 10;
	max-width: 1360px;
	margin: 0 auto;
	padding: 48px 24px 24px 24px;
}

@media (min-width: 640px) {
	.fewas-footer-container {
		padding: 64px 32px 32px 32px;
	}
}

@media (min-width: 1024px) {
	.fewas-footer-container {
		padding: 80px 48px 36px 48px;
	}
}

.fewas-footer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	padding-bottom: 24px;
}

@media (min-width: 768px) {
	.fewas-footer-grid {
		grid-template-columns: 1.5fr 1fr 1.1fr 1.2fr;
		gap: 36px;
		padding-bottom: 40px;
	}
}

@media (min-width: 1024px) {
	.fewas-footer-grid {
		grid-template-columns: 4fr 2fr 3fr 3fr;
		gap: 40px;
	}
}

.fewas-footer-brand-col {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.fewas-footer-logo-link {
	display: inline-block;
}

.fewas-footer-logo-img {
	height: 60px;
	width: auto;
	object-fit: contain;
	filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
	transition: transform 0.3s ease;
}

@media (min-width: 640px) {
	.fewas-footer-logo-img {
		height: 72px;
	}
}

@media (min-width: 1024px) {
	.fewas-footer-logo-img {
		height: 80px;
	}
}

.fewas-footer-tagline {
	font-size: 0.85rem;
	line-height: 1.65;
	color: rgba(232, 224, 211, 0.85);
	font-weight: 300;
	max-width: 360px;
}

.fewas-footer-plan-cta {
	padding-top: 4px;
}

.fewas-footer-col-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 0;
	cursor: default;
}

@media (max-width: 767px) {
	.fewas-footer-accordion-col {
		border-top: 1px solid rgba(255, 255, 255, 0.1);
		padding-top: 12px;
	}
	.fewas-footer-col-header {
		cursor: pointer;
	}
}

.fewas-footer-title {
	font-family: var(--font-serif);
	font-size: 1.15rem;
	color: #B98A65;
	font-weight: 400;
	letter-spacing: 0.03em;
	margin: 0;
}

.fewas-footer-col-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	color: #B98A65;
	font-size: 1.25rem;
	cursor: pointer;
	padding: 4px 8px;
}

.fewas-toggle-icon-minus {
	display: none;
}

.fewas-footer-accordion-col.is-expanded .fewas-toggle-icon-plus {
	display: none;
}

.fewas-footer-accordion-col.is-expanded .fewas-toggle-icon-minus {
	display: inline;
}

@media (min-width: 768px) {
	.fewas-footer-col-toggle {
		display: none;
	}
}

.fewas-footer-col-content {
	padding-top: 12px;
}

@media (max-width: 767px) {
	.fewas-footer-col-content {
		display: none;
	}
	.fewas-footer-accordion-col.is-expanded .fewas-footer-col-content {
		display: block;
	}
}

.fewas-footer-links {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.fewas-footer-links a {
	font-size: 0.85rem;
	color: rgba(232, 224, 211, 0.8);
	font-weight: 300;
	transition: all 0.2s ease;
	display: inline-block;
}

.fewas-footer-links a:hover {
	color: #FAF9F5;
	transform: translateX(4px);
}

.fewas-footer-links a.fewas-quiz-link {
	color: #B98A65;
	font-weight: 400;
}

.fewas-footer-contact-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	font-size: 0.85rem;
	color: rgba(232, 224, 211, 0.85);
	font-weight: 300;
}

.fewas-contact-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	line-height: 1.45;
}

.fewas-contact-icon {
	flex-shrink: 0;
	margin-top: 2px;
}

.fewas-contact-row a {
	color: inherit;
	transition: color 0.2s ease;
}

.fewas-contact-row a:hover {
	color: #FAF9F5;
}

/* Editorial Botanical Diamond Divider */
.fewas-footer-divider-wrap {
	position: relative;
	margin: 20px 0 16px 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.fewas-footer-divider-line {
	width: 100%;
	height: 1px;
	background-color: rgba(244, 239, 231, 0.15);
}

.fewas-footer-divider-ornament {
	position: absolute;
	padding: 0 14px;
	background-color: #0B2F2E;
	display: flex;
	align-items: center;
	gap: 6px;
}

.fewas-dot-sm {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: rgba(185, 138, 101, 0.6);
}

.fewas-diamond-accent {
	width: 8px;
	height: 8px;
	transform: rotate(45deg);
	border: 1px solid #B98A65;
	background-color: #0B2F2E;
}

/* Giant Delayed Wordmark */
.fewas-footer-wordmark-container {
	width: 100%;
	overflow: hidden;
	padding: 12px 0 20px 0;
	display: flex;
	justify-content: center;
	align-items: center;
}

.fewas-footer-huge-wordmark {
	font-family: var(--font-serif);
	font-size: clamp(4.5rem, 19vw, 15rem);
	line-height: 0.9;
	font-weight: 400;
	letter-spacing: 0.2em;
	color: rgba(244, 239, 231, 0.22);
	user-select: none;
	text-transform: uppercase;
	display: block;
	text-align: center;
	transition: all 1.4s cubic-bezier(0.16, 1, 0.3, 1);
	transform: translateY(60px) scale(0.94);
	opacity: 0;
	text-shadow: 0 4px 35px rgba(0, 0, 0, 0.45), 0 1px 4px rgba(0, 0, 0, 0.3);
	margin-right: -0.2em; /* optical alignment */
}

.fewas-footer-wordmark-container.is-revealed .fewas-footer-huge-wordmark {
	transform: translateY(0) scale(1);
	opacity: 1;
}

.fewas-footer-huge-wordmark:hover {
	color: rgba(244, 239, 231, 0.32);
}

/* Bottom Legal Bar */
.fewas-footer-bottom-bar {
	padding-top: 14px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: 0.75rem;
	color: rgba(232, 224, 211, 0.6);
	font-family: var(--font-sans);
}

@media (min-width: 640px) {
	.fewas-footer-bottom-bar {
		flex-direction: row;
	}
}

.fewas-footer-legal-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 16px;
}

.fewas-footer-legal-links a {
	color: inherit;
	transition: color 0.2s ease;
}

.fewas-footer-legal-links a:hover {
	color: #FAF9F5;
}

.fewas-legal-sep {
	color: rgba(232, 224, 211, 0.25);
}

/* ==========================================================================
   FLOATING SCROLL TO TOP BUTTON (Matching React App)
   ========================================================================== */
.fewas-scroll-top-btn {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 999;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background-color: #0B2F2E;
	color: #FAF9F5;
	border: 1px solid rgba(185, 138, 101, 0.4);
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px) scale(0.8);
	transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
	            transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
	            visibility 0.3s ease,
	            background-color 0.25s ease,
	            border-color 0.25s ease;
}

.fewas-scroll-top-btn.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scale(1);
}

.fewas-scroll-top-btn:hover {
	background-color: #B98A65;
	border-color: #FAF9F5;
	transform: translateY(-2px) scale(1.1);
}

.fewas-scroll-top-btn:active {
	transform: translateY(0) scale(0.95);
}

.fewas-scroll-top-btn svg {
	transition: transform 0.25s ease;
}

.fewas-scroll-top-btn:hover svg {
	transform: translateY(-2px);
}


/* FEWAS rooms hero/header integration */
body.page-template-page-rooms .site-header.fewas-transparent-header,
body.page-template-page-rooms .fewas-transparent-header {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 100 !important;
}
body.page-template-page-rooms .fewas-rooms-page-wrapper {
    position: relative;
    isolation: isolate;
}
body.page-template-page-rooms .fewas-rooms-page-wrapper > .fewas-subpage-hero {
    position: relative;
    z-index: 1;
    margin-top: 0 !important;
}
