/*
Theme Name: Toha Hotel
Theme URI: http://toha.test
Author: Toha Hotel
Description: Custom classic theme for Toha Hotel — Tailwind CSS, brochure-first, blog-ready.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: toha-hotel
*/

/* Styles are compiled to assets/css/main.css via Tailwind. Header/nav styling lives in header.php as utility classes. */

/* Hero thumbnail strip */
.hero-thumb {
	padding: 0;
	background: #0d2b33;
	cursor: pointer;
	opacity: 0.82;
	border-radius: 2px;
	transition: opacity 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.hero-thumb:hover {
	opacity: 1;
}

.hero-thumb.is-active {
	opacity: 1;
	border-color: #fff;
	box-shadow: 0 0 0 1px rgba(224, 192, 96, 0.55);
}

/* Introduction image + feature grid */
.about-grid {
	min-height: 320px;
}

.about-media,
.about-tiles {
	min-height: 320px;
	height: 100%;
}

.about-media {
	isolation: isolate;
	position: relative;
}

.about-media__img {
	position: absolute;
	inset: 0;
	display: block;
}

.about-tiles {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
}

.about-tile {
	position: relative;
	min-height: 0;
	transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.about-tile:hover,
.about-tile:focus-within {
	z-index: 2;
	box-shadow: inset 0 0 0 2px rgba(224, 192, 96, 0.85);
	transform: translateY(-2px);
}

.about-tile--dark:hover,
.about-tile--dark:focus-within {
	box-shadow: inset 0 0 0 2px rgba(224, 192, 96, 0.9);
}

@media (min-width: 768px) {
	.about-grid {
		min-height: 560px;
	}

	.about-media,
	.about-tiles {
		min-height: 560px;
	}
}

@media (min-width: 1024px) {
	.about-grid {
		min-height: 600px;
	}

	.about-media,
	.about-tiles {
		min-height: 600px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.about-tile {
		transition: none;
	}
}

/* Himalayas-style coverflow (Discover) */
.toha-coverflow-section {
	overflow: hidden;
	isolation: isolate;
}

.toha-coverflow__backdrop {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-color: #0d2b33;
	background-position: center;
	background-size: cover;
	filter: blur(28px) brightness(0.35);
	transform: scale(1.12);
	transition: background-image 0.7s ease;
	pointer-events: none;
}

.toha-coverflow__backdrop::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(13, 43, 51, 0.55), rgba(13, 43, 51, 0.82));
}

.toha-coverflow__stage {
	position: relative;
	height: 480px;
	overflow: clip;
	isolation: isolate;
}

.toha-coverflow__track {
	position: relative;
	height: 100%;
	width: 100%;
	perspective: 1200px;
	perspective-origin: 50% 45%;
	transform-style: preserve-3d;
}

.toha-coverflow__slide {
	position: absolute;
	left: 50%;
	top: 50%;
	width: min(260px, 56vw);
	height: min(360px, 78vw);
	margin-left: calc(min(260px, 56vw) / -2);
	margin-top: calc(min(360px, 78vw) / -2);
	padding: 0;
	border: 2px solid transparent;
	background: #0d2b33;
	cursor: pointer;
	overflow: hidden;
	border-radius: 8px;
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
	opacity: 0.4;
	transform: translate3d(0, 64px, 0) scale(0.7);
	transform-origin: center center;
	transform-style: preserve-3d;
	backface-visibility: hidden;
	transition: none;
	will-change: transform, opacity;
}

.toha-coverflow-section.is-ready .toha-coverflow__slide {
	transition:
		transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
		opacity 0.5s ease,
		box-shadow 0.5s ease,
		filter 0.5s ease,
		border-color 0.45s ease;
}

.toha-coverflow__slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
}

.toha-coverflow__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 18px 20px;
	color: #fff;
	font-size: 12px;
	letter-spacing: 0.04em;
	text-align: left;
	background: linear-gradient(to top, rgba(0, 20, 28, 0.85), transparent);
	transform: translateY(110%);
	transition: none;
}

.toha-coverflow-section.is-ready .toha-coverflow__caption {
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.toha-coverflow__slide.is-active {
	border-color: rgba(224, 192, 96, 0.95);
	box-shadow:
		0 0 0 1px rgba(224, 192, 96, 0.35),
		0 28px 56px rgba(0, 0, 0, 0.5);
	filter: none;
}

.toha-coverflow__slide.is-active .toha-coverflow__caption {
	transform: translateY(0);
}

.toha-coverflow__slide.is-near {
	border-color: rgba(255, 255, 255, 0.2);
	filter: brightness(0.82);
}

.toha-coverflow__slide.is-far {
	border-color: transparent;
	filter: brightness(0.62);
}

.toha-coverflow__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	background: rgba(255, 255, 255, 0.04);
	color: #fff;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, opacity 200ms ease;
}

.toha-coverflow__btn:hover:not(:disabled) {
	background: rgba(255, 255, 255, 0.12);
	border-color: #e0c060;
	color: #e0c060;
}

.toha-coverflow__btn:disabled {
	opacity: 0.35;
	cursor: default;
}

.toha-coverflow__btn:focus-visible {
	outline: 2px solid #e0c060;
	outline-offset: 2px;
}

@media (min-width: 768px) {
	.toha-coverflow__stage {
		height: 640px;
	}

	.toha-coverflow__slide {
		width: 360px;
		height: 420px;
		margin-left: -180px;
		margin-top: -210px;
	}
}

@media (min-width: 1024px) {
	.toha-coverflow__stage {
		height: 680px;
	}

	.toha-coverflow__slide {
		width: 420px;
		height: 460px;
		margin-left: -210px;
		margin-top: -230px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.toha-coverflow-section.is-ready .toha-coverflow__slide,
	.toha-coverflow-section.is-ready .toha-coverflow__caption {
		transition-duration: 0.01ms;
	}
}

/* Full-size lightbox */
body.toha-lightbox-open {
	overflow: hidden;
}

.toha-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(0, 20, 28, 0.92);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition:
		opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
		visibility 0.35s;
}

.toha-lightbox.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.toha-lightbox[hidden] {
	display: none;
}

.toha-lightbox.is-open:not([hidden]) {
	display: flex;
}

.toha-lightbox__figure {
	margin: 0;
	max-width: min(1100px, 100%);
	max-height: 90vh;
	text-align: center;
	transform: translateY(16px) scale(0.97);
	transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.toha-lightbox.is-open .toha-lightbox__figure {
	transform: translateY(0) scale(1);
}

.toha-lightbox__img {
	display: block;
	max-width: 100%;
	max-height: 82vh;
	width: auto;
	height: auto;
	margin: 0 auto;
	object-fit: contain;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.toha-lightbox__caption {
	margin-top: 12px;
	color: rgba(255, 255, 255, 0.8);
	font-size: 14px;
}

.toha-lightbox__close,
.toha-lightbox__nav {
	position: absolute;
	border: 0;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	cursor: pointer;
	transition: background-color 180ms ease;
}

.toha-lightbox__close:hover,
.toha-lightbox__nav:hover {
	background: rgba(255, 255, 255, 0.22);
}

.toha-lightbox__close:focus-visible,
.toha-lightbox__nav:focus-visible {
	outline: 2px solid #e0c060;
	outline-offset: 2px;
}

.toha-lightbox__close {
	top: 16px;
	right: 16px;
	width: 44px;
	height: 44px;
	font-size: 28px;
	line-height: 1;
}

.toha-lightbox__nav {
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	font-size: 32px;
	line-height: 1;
}

.toha-lightbox__prev {
	left: 16px;
}

.toha-lightbox__next {
	right: 16px;
}

@media (max-width: 640px) {
	.toha-lightbox__nav {
		top: auto;
		bottom: 20px;
		transform: none;
	}

	.toha-lightbox__prev {
		left: calc(50% - 64px);
	}

	.toha-lightbox__next {
		right: calc(50% - 64px);
	}
}

/* —— Site header bar (mobile + desktop) —— */
.toha-site-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	min-height: 4.5rem;
}

.toha-site-header__logo {
	display: flex;
	flex: 0 1 auto;
	align-items: center;
	justify-content: flex-start;
	line-height: 0;
}

.toha-site-header__logo img,
.toha-site-header__logo .custom-logo {
	display: block;
	height: 4rem;
	width: auto;
	max-width: min(160px, 52vw);
	object-fit: contain;
}

.toha-site-header__nav {
	display: none;
}

@media (min-width: 768px) {
	.toha-site-header__bar {
		display: grid;
		grid-template-columns: 1fr auto 1fr;
		align-items: center;
		gap: 1rem;
		min-height: auto;
	}

	.toha-site-header__nav--left {
		display: flex;
		justify-content: flex-start;
	}

	.toha-site-header__logo {
		justify-content: center;
		justify-self: center;
	}

	.toha-site-header__logo img,
	.toha-site-header__logo .custom-logo {
		height: 8rem;
		max-width: none;
	}

	.toha-site-header__nav--right {
		display: flex;
		justify-content: flex-end;
	}
}

/* —— Mobile menu (hamburger + full-screen overlay) —— */
.toha-menu-toggle {
	position: relative;
	z-index: 70;
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	margin-left: auto;
	padding: 0;
	border: 0;
	background: transparent;
	color: #0d2b33;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {
	.toha-menu-toggle {
		display: none !important;
	}
}

html.is-mobile-menu-open .toha-site-header {
	z-index: 70;
	border-color: transparent;
	background: transparent;
}

html.is-mobile-menu-open .toha-site-header__logo,
html.is-mobile-menu-open .toha-site-header__nav {
	visibility: hidden;
	pointer-events: none;
}

html.is-mobile-menu-open .toha-menu-toggle {
	color: #fff;
}

.toha-menu-toggle__box {
	position: relative;
	display: block;
	width: 1.4rem;
	height: 0.9rem;
}

.toha-menu-toggle__line {
	position: absolute;
	left: 0;
	display: block;
	width: 100%;
	height: 1.5px;
	background: currentColor;
	border-radius: 1px;
	transition:
		transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
		opacity 0.25s ease,
		top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toha-menu-toggle__line:nth-child(1) {
	top: 0;
}

.toha-menu-toggle__line:nth-child(2) {
	top: 50%;
	margin-top: -0.75px;
}

.toha-menu-toggle__line:nth-child(3) {
	top: 100%;
	margin-top: -1.5px;
}

html.is-mobile-menu-open .toha-menu-toggle__line:nth-child(1) {
	top: 50%;
	margin-top: -0.75px;
	transform: rotate(45deg);
}

html.is-mobile-menu-open .toha-menu-toggle__line:nth-child(2) {
	opacity: 0;
	transform: scaleX(0.4);
}

html.is-mobile-menu-open .toha-menu-toggle__line:nth-child(3) {
	top: 50%;
	margin-top: -0.75px;
	transform: rotate(-45deg);
}

.toha-mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 60;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 5.5rem 1.75rem 2.5rem;
	background:
		radial-gradient(ellipse 80% 50% at 50% 0%, rgba(214, 171, 79, 0.12), transparent 55%),
		linear-gradient(165deg, #152a32 0%, #0d2b33 55%, #0a2228 100%);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: scale(1.03);
	transition:
		opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
		visibility 0.4s,
		transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.toha-mobile-menu.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: scale(1);
}

.toha-mobile-menu__inner {
	display: flex;
	width: 100%;
	max-width: 22rem;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.toha-mobile-menu__brand {
	margin: 0 0 2.25rem;
	font-family: ui-serif, Georgia, Cambria, 'Times New Roman', Times, serif;
	font-size: 0.7rem;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.45);
	opacity: 0;
	transform: translateY(12px);
	transition:
		opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.05s,
		transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
}

.toha-mobile-menu.is-open .toha-mobile-menu__brand {
	opacity: 1;
	transform: translateY(0);
}

.toha-mobile-menu__nav {
	display: flex;
	width: 100%;
	flex-direction: column;
	align-items: center;
	gap: 0.15rem;
}

.toha-mobile-menu__link {
	position: relative;
	display: inline-flex;
	padding: 0.7rem 0.5rem;
	font-size: 0.95rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-decoration: none;
	color: rgba(255, 255, 255, 0.72);
	opacity: 0;
	transform: translateY(28px);
	transition:
		color 0.2s ease,
		opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
		transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
	transition-delay: 0s;
}

.toha-mobile-menu.is-open .toha-mobile-menu__link {
	opacity: 1;
	transform: translateY(0);
	transition-delay: calc(0.12s + (var(--i, 0) * 0.07s));
}

.toha-mobile-menu__link:hover,
.toha-mobile-menu__link:focus-visible {
	color: #fff;
	outline: none;
}

.toha-mobile-menu__link.is-current {
	color: #fff;
}

.toha-mobile-menu__link.is-current::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: 0.35rem;
	width: 1.75rem;
	height: 1.5px;
	background: #d6ab4f;
	transform: translateX(-50%);
}

.toha-mobile-menu__cta {
	margin-top: 2.5rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.85rem 1.75rem;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	color: #0d2b33;
	background: #d6ab4f;
	opacity: 0;
	transform: translateY(24px);
	transition:
		background 0.2s ease,
		opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
		transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
	transition-delay: 0s;
}

.toha-mobile-menu.is-open .toha-mobile-menu__cta {
	opacity: 1;
	transform: translateY(0);
	transition-delay: calc(0.12s + (var(--i, 6) * 0.07s));
}

.toha-mobile-menu__cta:hover,
.toha-mobile-menu__cta:focus-visible {
	background: #e0c060;
	outline: none;
}

html.is-mobile-menu-open {
	overflow: hidden;
}

html.is-mobile-menu-open body {
	overflow: hidden;
}

@media (min-width: 768px) {
	.toha-mobile-menu {
		display: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.toha-menu-toggle__line,
	.toha-mobile-menu,
	.toha-mobile-menu__brand,
	.toha-mobile-menu__link,
	.toha-mobile-menu__cta {
		transition: none !important;
		transition-delay: 0s !important;
	}

	.toha-mobile-menu {
		transform: none;
	}

	.toha-mobile-menu__brand,
	.toha-mobile-menu__link,
	.toha-mobile-menu__cta {
		transform: none;
	}

	.toha-mobile-menu.is-open .toha-mobile-menu__brand,
	.toha-mobile-menu.is-open .toha-mobile-menu__link,
	.toha-mobile-menu.is-open .toha-mobile-menu__cta {
		opacity: 1;
	}
}

/* —— Compact page hero + breadcrumbs —— */
.toha-page-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 280px;
	overflow: hidden;
	background: #0d2b33;
}

@media (min-width: 768px) {
	.toha-page-hero {
		min-height: 360px;
	}
}

.toha-page-hero__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.toha-page-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(13, 43, 51, 0.92) 0%,
		rgba(13, 43, 51, 0.45) 55%,
		rgba(13, 43, 51, 0.25) 100%
	);
}

.toha-page-hero__content {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 72rem; /* matches Tailwind max-w-6xl used by page sections */
	margin: 0 auto;
	padding: 2.5rem 1.5rem 2.25rem; /* px-6 — same horizontal inset as content titles */
}

@media (min-width: 768px) {
	.toha-page-hero__content {
		padding-top: 3rem;
		padding-bottom: 2.75rem;
	}
}

.toha-page-hero__title {
	margin: 0.75rem 0 0;
	font-family: ui-serif, Georgia, Cambria, 'Times New Roman', Times, serif;
	font-size: clamp(2rem, 4vw, 3.25rem);
	font-weight: 400;
	line-height: 1.15;
	color: #fff;
}

.toha-breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.toha-breadcrumbs__item {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: rgba(255, 255, 255, 0.55);
}

.toha-breadcrumbs__item:not(:last-child)::after {
	content: '/';
	color: rgba(255, 255, 255, 0.35);
}

.toha-breadcrumbs__link {
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
	transition: color 0.2s ease;
}

.toha-breadcrumbs__link:hover,
.toha-breadcrumbs__link:focus-visible {
	color: #d6ab4f;
	outline: none;
}

.toha-breadcrumbs__current {
	color: rgba(255, 255, 255, 0.95);
}

/* —— Gallery page masonry —— */
.toha-masonry {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-auto-rows: 120px;
	grid-auto-flow: dense;
	gap: 0.75rem;
}

@media (min-width: 768px) {
	.toha-masonry {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		grid-auto-rows: 150px;
		gap: 1rem;
	}
}

@media (min-width: 1024px) {
	.toha-masonry {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		grid-auto-rows: 160px;
	}
}

.toha-masonry__item {
	position: relative;
	display: block;
	padding: 0;
	border: 0;
	overflow: hidden;
	background: #0d2b33;
	cursor: pointer;
	grid-row: span 1;
	grid-column: span 1;
}

.toha-masonry__item--tall {
	grid-row: span 2;
}

.toha-masonry__item--wide {
	grid-column: span 2;
}

.toha-masonry__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.toha-masonry__item:hover .toha-masonry__image,
.toha-masonry__item:focus-visible .toha-masonry__image {
	transform: scale(1.05);
}

.toha-masonry__item:focus-visible {
	outline: 2px solid #d6ab4f;
	outline-offset: 2px;
}

html.toha-motion:not(.toha-motion-ready) .toha-masonry__item {
	opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
	.toha-masonry__image {
		transition: none;
	}

	html.toha-motion:not(.toha-motion-ready) .toha-masonry__item {
		opacity: 1;
	}
}
