/**
 * Urban-Bamboo Enhancer — Modern Boutique Hospitality Stylesheet
 * Tailored specifically for the Appetite WordPress theme on urban-bamboo.com.
 */

:root {
	--ube-forest: #1b3022;
	--ube-forest-mid: #274431;
	--ube-bamboo: #c9973e;
	--ube-bamboo-hover: #b4832d;
	--ube-cream: #faf8f4;
	--ube-sand: #f2ede3;
	--ube-white: #ffffff;
	--ube-ink: #1f2922;
	--ube-muted: #5a665d;
	--ube-border: rgba(27, 48, 34, 0.1);
	--ube-shadow-sm: 0 4px 18px rgba(27, 48, 34, 0.06);
	--ube-shadow-md: 0 14px 34px rgba(27, 48, 34, 0.14);
	--ube-radius: 14px;
	--ube-font-heading: 'Playfair Display', 'Noto Sans Thai', Georgia, serif;
	--ube-font-body: 'Plus Jakarta Sans', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --------------------------------------------------------------------------
   1. Base Typography (English + Thai Pairing)
   -------------------------------------------------------------------------- */
body.ube-modern-design {
	font-family: var(--ube-font-body);
	color: var(--ube-ink);
	background-color: var(--ube-cream);
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body.ube-modern-design h1,
body.ube-modern-design h2,
body.ube-modern-design h3,
body.ube-modern-design .site-title,
body.ube-modern-design .entry-title {
	font-family: var(--ube-font-heading);
	line-height: 1.3;
	letter-spacing: -0.01em;
}

body.ube-modern-design p {
	line-height: 1.8;
}

body.ube-modern-design a {
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

/* --------------------------------------------------------------------------
   2. Boutique Homepage Welcome Bar (Semantic H1)
   -------------------------------------------------------------------------- */
.ube-top-welcome-bar {
	background: linear-gradient(90deg, var(--ube-forest) 0%, var(--ube-forest-mid) 100%);
	color: #f6f3ec;
	padding: 9px 24px;
	border-bottom: 1px solid rgba(201, 151, 62, 0.38);
	position: relative;
	z-index: 60;
}

.ube-top-welcome-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.ube-top-welcome-copy {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 0.85rem;
	line-height: 1.4;
}

.ube-home-h1 {
	margin: 0 !important;
	padding: 0 !important;
	font-family: var(--ube-font-body) !important;
	font-size: 0.875rem !important;
	font-weight: 600 !important;
	color: #ffffff !important;
	letter-spacing: 0.02em;
	line-height: 1.4 !important;
}

.ube-home-h1-sep {
	color: var(--ube-bamboo);
	font-weight: 700;
}

.ube-home-h1-sub {
	color: rgba(246, 243, 236, 0.84);
	font-size: 0.82rem;
}

.ube-top-welcome-cta {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
	padding: 5px 15px;
	border-radius: 999px;
	background-color: var(--ube-bamboo);
	color: #ffffff !important;
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none !important;
}

.ube-top-welcome-cta:hover,
.ube-top-welcome-cta:focus {
	background-color: var(--ube-bamboo-hover);
	transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   3. Header & Navigation Refinement (Fixes White-on-White Logo & Mobile Menu)
   -------------------------------------------------------------------------- */
body.ube-modern-design #masthead.site-header {
	background-color: rgba(255, 255, 255, 0.97) !important;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	color: var(--ube-forest) !important;
	text-shadow: none !important;
	border-bottom: 1px solid var(--ube-border);
	position: sticky !important;
	top: 0;
	z-index: 50;
	padding-top: 14px !important;
	padding-bottom: 14px !important;
	transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

body.admin-bar.ube-modern-design #masthead.site-header {
	top: 32px;
}

body.ube-modern-design #masthead.site-header.ube-header-scrolled {
	box-shadow: 0 8px 24px rgba(27, 48, 34, 0.09);
	background-color: rgba(255, 255, 255, 0.99) !important;
}

/* Reveal crisp brand wordmark on the left of the white header */
body.ube-modern-design #masthead .site-branding {
	width: auto !important;
	flex: 0 0 auto;
	margin-bottom: 0 !important;
	text-align: left !important;
}

body.ube-modern-design #masthead .site-title {
	position: static !important;
	clip: auto !important;
	clip-path: none !important;
	width: auto !important;
	height: auto !important;
	overflow: visible !important;
	margin: 0 !important;
	font-size: 1.35rem !important;
	line-height: 1.2 !important;
}

body.ube-modern-design #masthead .site-title a {
	color: var(--ube-forest) !important;
	font-family: var(--ube-font-heading) !important;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-decoration: none;
	white-space: nowrap;
}

body.ube-modern-design #masthead .site-title a:hover {
	color: var(--ube-bamboo-hover) !important;
}

body.ube-modern-design #masthead .toggle-sidebar-button {
	color: var(--ube-forest) !important;
	text-shadow: none !important;
	gap: 6px;
	font-weight: 600;
	font-size: 0.85rem;
	letter-spacing: 0.06em;
	padding: 6px 10px;
	border-radius: 8px;
}

body.ube-modern-design #masthead .toggle-sidebar-button:hover {
	background-color: var(--ube-sand);
	color: var(--ube-forest) !important;
}

body.ube-modern-design #masthead .toggle-sidebar-button svg {
	stroke: var(--ube-forest);
	color: var(--ube-forest);
}

body.ube-modern-design #site-navigation {
	flex: 1 1 auto;
}

body.ube-modern-design #site-navigation ul.menu {
	align-items: center;
	gap: 4px;
}

body.ube-modern-design #site-navigation ul.menu > li > a {
	font-family: var(--ube-font-body);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.07em;
	color: var(--ube-ink) !important;
	padding: 8px 12px;
	border-radius: 8px;
	text-shadow: none !important;
}

body.ube-modern-design #site-navigation ul.menu > li > a:hover,
body.ube-modern-design #site-navigation ul.menu > li.current-menu-item > a {
	color: var(--ube-forest) !important;
	background-color: var(--ube-sand);
}

/* Highlight RESERVATION Nav CTA */
body.ube-modern-design.ube-cta-nav #site-navigation a.ube-nav-booking-cta,
body.ube-modern-design.ube-cta-nav #site-navigation #menu-item-313 > a {
	background-color: var(--ube-forest);
	color: #ffffff !important;
	border-radius: 999px;
	padding: 9px 20px;
	margin-left: 8px;
	box-shadow: 0 4px 12px rgba(27, 48, 34, 0.22);
}

body.ube-modern-design.ube-cta-nav #site-navigation a.ube-nav-booking-cta:hover,
body.ube-modern-design.ube-cta-nav #site-navigation #menu-item-313 > a:hover {
	background-color: var(--ube-bamboo);
	color: #ffffff !important;
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(201, 151, 62, 0.34);
}

/* --------------------------------------------------------------------------
   4. Hero Slideshow Polish (#featured-content — Full-Bleed & Crisp Contrast)
   -------------------------------------------------------------------------- */
body.ube-modern-design.ube-clean-hero #primary-header {
	background-color: var(--ube-forest) !important;
	color: #ffffff !important;
}

body.ube-modern-design.ube-clean-hero #featured-content {
	color: #ffffff !important;
}

body.ube-modern-design.ube-clean-hero #featured-content .featured-image {
	opacity: 0.56 !important;
}

body.ube-modern-design.ube-clean-hero #featured-content .featured-image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(16, 29, 20, 0.28) 0%,
		rgba(16, 29, 20, 0.52) 55%,
		rgba(16, 29, 20, 0.72) 100%
	);
	pointer-events: none;
}

body.ube-modern-design.ube-clean-hero #featured-content .container {
	position: relative;
	z-index: 2;
	padding-top: 4.5rem !important;
	padding-bottom: 4.5rem !important;
}

body.ube-modern-design.ube-clean-hero #featured-content .entry-title,
body.ube-modern-design.ube-clean-hero #featured-content .entry-title a {
	color: #ffffff !important;
	text-shadow: 0 3px 20px rgba(0, 0, 0, 0.45);
	margin-bottom: 1.25rem;
}

body.ube-modern-design.ube-clean-hero #featured-content .taxonomy-description {
	max-width: 720px;
	margin: 0 auto;
	padding: 22px 28px;
	background: rgba(17, 32, 22, 0.64);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: var(--ube-radius);
	color: rgba(255, 255, 255, 0.96) !important;
	max-height: 270px;
	overflow: hidden;
	position: relative;
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}

body.ube-modern-design.ube-clean-hero #featured-content .taxonomy-description::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 50px;
	background: linear-gradient(to bottom, rgba(17, 32, 22, 0), rgba(17, 32, 22, 0.94));
	pointer-events: none;
}

body.ube-modern-design.ube-clean-hero #featured-content .taxonomy-description h3,
body.ube-modern-design.ube-clean-hero #featured-content .taxonomy-description h3 strong {
	font-size: 1.15rem;
	margin-top: 0;
	margin-bottom: 0.65rem;
	color: #f6ddb0 !important;
}

body.ube-modern-design.ube-clean-hero #featured-content .taxonomy-description p,
body.ube-modern-design.ube-clean-hero #featured-content .taxonomy-description strong {
	font-size: 0.96rem;
	line-height: 1.7;
	margin-bottom: 0.65rem;
	color: rgba(255, 255, 255, 0.95) !important;
}

/* Hide accidental stray pasted ChatGPT wrapper articles inside hero if present */
body.ube-modern-design.ube-clean-hero #featured-content article.text-token-text-primary {
	display: none !important;
}

/* --------------------------------------------------------------------------
   5. Remove Homepage Jetpack Share / Like Clutter
   -------------------------------------------------------------------------- */
body.ube-hide-front-social .sharedaddy,
body.ube-hide-front-social .sd-sharing-enabled,
body.ube-hide-front-social .jetpack-likes-widget-wrapper,
body.ube-hide-front-social .jetpack-likes-widget-unloaded {
	display: none !important;
}

/* --------------------------------------------------------------------------
   6. Front-Page Featured Sections (Warm Alternating Rhythm & Clean Images)
   -------------------------------------------------------------------------- */
body.ube-modern-design.home section.front-page-block {
	padding-top: 4.5rem !important;
	padding-bottom: 4.5rem !important;
	border-bottom: 1px solid var(--ube-border);
}

body.ube-modern-design.home section.front-page-block:nth-of-type(odd) {
	background-color: var(--ube-cream);
}

body.ube-modern-design.home section.front-page-block:nth-of-type(even) {
	background-color: var(--ube-white);
}

/* Keep Appetite's flex padding on .entry-thumb clean; apply frame styling to the img */
body.ube-modern-design section.front-page-block .entry-thumb {
	background: transparent !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	overflow: visible !important;
}

body.ube-modern-design section.front-page-block .entry-thumb img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--ube-radius);
	box-shadow: var(--ube-shadow-md);
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

body.ube-modern-design section.front-page-block .entry-thumb img:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 40px rgba(27, 48, 34, 0.18);
}

body.ube-modern-design section.front-page-block .entry-title,
body.ube-modern-design section.front-page-block .entry-title a {
	color: var(--ube-forest);
	font-weight: 700;
}

body.ube-modern-design section.front-page-block .entry-header.th-has-line-sep::after,
body.ube-modern-design .th-has-line-sep::after {
	background-color: var(--ube-bamboo) !important;
}

body.ube-modern-design section.front-page-block .entry-content h3 {
	font-size: 1.22rem;
	color: var(--ube-forest-mid);
	margin-bottom: 0.85rem;
}

body.ube-modern-design section.front-page-block .entry-content a:not(.more-link) {
	color: var(--ube-forest);
	text-decoration-color: var(--ube-bamboo);
	text-underline-offset: 3px;
}

body.ube-modern-design section.front-page-block .entry-content a:not(.more-link):hover {
	color: var(--ube-bamboo-hover);
}

/* Refined Boutique "Read More" Buttons */
body.ube-modern-design .more-link-container {
	margin-top: 1.5rem;
}

body.ube-modern-design .more-link-container .more-link,
body.ube-modern-design .more-link-container a {
	border: 1.5px solid var(--ube-forest) !important;
	border-radius: 999px !important;
	padding: 10px 24px !important;
	color: var(--ube-forest) !important;
	background-color: transparent !important;
	font-family: var(--ube-font-body);
	font-size: 0.78rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none !important;
}

body.ube-modern-design .more-link-container .more-link:hover,
body.ube-modern-design .more-link-container a:hover {
	background-color: var(--ube-forest) !important;
	color: #ffffff !important;
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(27, 48, 34, 0.18);
}

/* --------------------------------------------------------------------------
   7. HAPPENINGS Recent Posts Grid (Uniform Boutique Cards)
   -------------------------------------------------------------------------- */
body.ube-modern-design section.front-recent-posts {
	background-color: var(--ube-sand) !important;
}

body.ube-modern-design section.front-recent-posts .grid-page-title {
	color: var(--ube-forest);
	font-weight: 700;
	letter-spacing: 0.08em;
	margin-bottom: 2.5rem !important;
}

body.ube-modern-design section.front-recent-posts .grid-row {
	row-gap: 28px;
}

body.ube-modern-design section.front-recent-posts article.recent-post {
	background-color: var(--ube-white);
	border: 1px solid var(--ube-border);
	border-radius: var(--ube-radius);
	padding: 18px !important;
	box-shadow: var(--ube-shadow-sm);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	display: flex;
	flex-direction: column;
}

body.ube-modern-design section.front-recent-posts article.recent-post:hover {
	transform: translateY(-4px);
	box-shadow: var(--ube-shadow-md);
}

body.ube-modern-design section.front-recent-posts article.recent-post .thumb-link {
	display: block;
	overflow: hidden;
	border-radius: 10px;
	margin-bottom: 14px;
	background-color: var(--ube-sand);
}

body.ube-modern-design section.front-recent-posts article.recent-post .thumb-link img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
	transition: transform 0.45s ease;
}

body.ube-modern-design section.front-recent-posts article.recent-post:hover .thumb-link img {
	transform: scale(1.04);
}

body.ube-modern-design section.front-recent-posts article.recent-post .entry-title {
	font-size: 1.12rem;
	line-height: 1.45;
	color: var(--ube-forest);
}

body.ube-modern-design section.front-recent-posts article.recent-post .entry-meta {
	font-size: 0.8rem;
	color: var(--ube-muted);
}

/* --------------------------------------------------------------------------
   8. Footer & Booking Bar Compatibility
   -------------------------------------------------------------------------- */
body.ube-modern-design #colophon.site-footer {
	background-color: var(--ube-forest) !important;
	color: rgba(250, 248, 244, 0.88);
	border-top: 3px solid var(--ube-bamboo);
}

body.ube-modern-design #colophon.site-footer a {
	color: #f3d599;
}

body.ube-modern-design #colophon.site-footer a:hover {
	color: #ffffff;
}

body.ube-modern-design #colophon.site-footer iframe {
	border-radius: 10px;
	max-width: 100%;
}

/* Prevent existing fixed #urban-booking-bar from covering footer links */
body.ube-modern-design.ube-has-booking-bar #colophon.site-footer {
	padding-bottom: 92px !important;
}

/* --------------------------------------------------------------------------
   9. Responsive Polish
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
	body.ube-modern-design #masthead.site-header {
		justify-content: space-between !important;
		flex-wrap: nowrap !important;
		padding-left: 16px !important;
		padding-right: 16px !important;
	}

	body.ube-modern-design #masthead .site-title {
		font-size: 1.12rem !important;
	}
}

@media (max-width: 782px) {
	body.admin-bar.ube-modern-design #masthead.site-header {
		top: 0;
	}

	.ube-top-welcome-bar {
		padding: 8px 14px;
	}

	.ube-home-h1-sep,
	.ube-home-h1-sub {
		display: none;
	}

	.ube-home-h1 {
		font-size: 0.78rem !important;
	}

	body.ube-modern-design.home section.front-page-block {
		padding-top: 3rem !important;
		padding-bottom: 3rem !important;
	}

	body.ube-modern-design.ube-clean-hero #featured-content .taxonomy-description {
		padding: 16px 18px;
		max-height: 230px;
	}
}
