/* =========================================================================
   The Middle Terang Hotel — site styles
   Premium heritage-hospitality system, evolved from the original WordPress
   (Astra child) theme without changing the site's lightweight architecture.

   Structure of this file:
     1. Design tokens            (from the WP theme, extended)
     2. Base / reset / type      (replaces the Astra parent defaults)
     3. Layout helpers
     4. Header + navigation
     5. Hero + page bands
     6. Home sections
     7. Components  ── booking · reviews · rooms · hours   (from WP theme)
     8. Floating "Book a Table" button
     9. Footer
    10. Motion / reveal polish   (UI-UX-pro, respects reduced-motion)
    11. Responsive
   ========================================================================= */

/* =========================================================================
   1. Design tokens  (verbatim from the WP theme, plus a few additions)
   ========================================================================= */
:root {
	--tmth-ink:   #17211c;
	--tmth-body:  #50544d;
	--tmth-gold:  #a7793d;
	--tmth-gold-d:#765124;
	--tmth-cream: #f3efe7;
	--tmth-card:  #fbfaf6;
	--tmth-line:  #d9d2c5;
	--tmth-green: #163d34;
	--tmth-green-d: #0d2a24;
	--tmth-shadow: 0 28px 70px -38px rgba(16, 30, 24, .52);
	--tmth-shadow-soft: 0 18px 44px -34px rgba(16, 30, 24, .45);
	--tmth-radius: 10px;
	--tmth-radius-lg: 24px;

	/* additions for the rebuilt shell */
	--tmth-max: 1240px;
	--tmth-cream-2: #e9e1d3;
	--tmth-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--tmth-font-head: "Fraunces", Georgia, "Times New Roman", serif;
}

/* =========================================================================
   2. Base / reset / typography  (the parent Astra theme is not loaded here,
      so we provide a warm, equivalent base)
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--tmth-font-body);
	font-size: 17px;
	line-height: 1.7;
	color: var(--tmth-body);
	background: var(--tmth-cream);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
	font-family: var(--tmth-font-head);
	color: var(--tmth-ink);
	line-height: 1.08;
	font-weight: 600;
	letter-spacing: -.025em;
	margin: 0 0 .6rem;
}
h1 { font-size: clamp(2.5rem, 5vw, 4.15rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.15rem); }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--tmth-gold-d); text-underline-offset: .18em; }

:focus-visible { outline: 3px solid #d2a968; outline-offset: 3px; border-radius: 4px; }

.skip-link {
	position: fixed; top: .75rem; left: .75rem; z-index: 10000;
	transform: translateY(-180%); padding: .7rem 1rem; border-radius: 6px;
	background: #fff; color: var(--tmth-green-d); font-weight: 800; text-decoration: none;
	box-shadow: var(--tmth-shadow);
}
.skip-link:focus { transform: translateY(0); }

/* =========================================================================
   3. Layout helpers
   ========================================================================= */
.tmth-container { max-width: var(--tmth-max); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.tmth-section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.tmth-section[id] { scroll-margin-top: 96px; }
.tmth-section--cream { background: var(--tmth-cream); }
.tmth-section--paper { background: var(--tmth-card); }
.tmth-section--sand  { background: linear-gradient(180deg, var(--tmth-cream) 0%, var(--tmth-cream-2) 100%); }

.tmth-eyebrow {
	display: inline-block; color: var(--tmth-gold-d); font-weight: 800;
	letter-spacing: .2em; text-transform: uppercase; font-size: .72rem; margin-bottom: 1rem;
	font-family: var(--tmth-font-body);
}
.tmth-section-head { max-width: 760px; margin: 0 auto 3.6rem; text-align: center; }
.tmth-section-head p { color: var(--tmth-body); font-size: 1.1rem; margin: 0; }
.tmth-section-title { text-align: center; margin-bottom: 1.6rem; }
.tmth-mt { margin-top: 3.4rem; }
.tmth-page-lead { max-width: 760px; margin: 0 auto 2.4rem; text-align: center; color: var(--tmth-body); font-size: 1.15rem; line-height: 1.6; }
.tmth-list-spaced { margin: 1.2rem 0 0; }
.tmth-centered-action { text-align: center; margin-top: 2rem; }
.tmth-self-start { align-self: flex-start; }

/* =========================================================================
   4. Header + navigation  (recreates the Astra header: logo left, menu right,
      "Book a Table" pill on the far right)
   ========================================================================= */
.site-header {
	position: sticky; top: 0; z-index: 9995;
	background: rgba(13,42,36,.94);
	-webkit-backdrop-filter: saturate(140%) blur(10px);
	backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid rgba(255,255,255,.1);
	transition: box-shadow .25s ease, background .25s ease;
}
.site-header.is-stuck { box-shadow: 0 16px 34px -22px rgba(0,0,0,.8); background: rgba(13,42,36,.985); }
.site-header-inner { display: flex; align-items: center; gap: 1rem; min-height: 84px; }

.site-brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.site-brand img { height: 58px; width: auto; }
.site-brand .site-brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.site-brand .site-brand-name { font-family: var(--tmth-font-head); font-weight: 600; color: #fffaf0; font-size: 1.17rem; letter-spacing: 0; }
.site-brand .site-brand-sub  { font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; color: #d9b779; font-weight: 700; }

.main-header-menu { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.main-header-menu a { display: block; min-height: 44px; text-decoration: none; color: #f8f3e9; font-weight: 600; font-size: .9rem; padding: .68em .72em; border-radius: 6px; transition: color .2s ease, background .2s ease; }
.main-header-menu > li > a:hover { color: #fff; background: rgba(255,255,255,.08); }
.main-header-menu .current-menu-item > a { color: #e8c98e; }
.main-header-menu .current-menu-item > a::after { content: ""; display: block; height: 2px; border-radius: 2px; background: var(--tmth-gold); margin: 2px .85em 0; }

/* "Book a Table" button in the nav (WP used the class "menu-book-btn") */
.main-header-menu .menu-book-btn > a {
	background: #f3e5c8; color: var(--tmth-green-d) !important; border-radius: 6px;
	padding-inline: 1.25em; margin-left: .5em;
}
.main-header-menu .menu-book-btn > a:hover { background: #fff8e9; }
.main-header-menu .menu-book-btn.current-menu-item > a::after { display: none; }

/* Mobile toggle */
.nav-toggle { display: none; width: 48px; height: 48px; place-content: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: 8px; cursor: pointer; padding: .7rem; margin-left: auto; box-shadow: none; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-scrim { display: none; }

/* =========================================================================
   5. Hero + page bands
   ========================================================================= */
/* Home hero — full-width, warm overlay, matches the theme hero language */
.home-hero {
	position: relative; isolation: isolate; overflow: hidden;
	min-height: min(88vh, 780px); display: flex; align-items: center;
	background-size: cover; background-position: center 42%;
	background-image: url('../media/terang-hotel-hero-poster.webp');
	color: #fff; text-align: left;
}
.home-hero-video {
	position: absolute; inset: 0; z-index: 0;
	width: 100%; height: 100%; object-fit: cover; object-position: center 42%;
	pointer-events: none;
}
.home-hero::before {
	content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background:
		linear-gradient(90deg, rgba(8,30,25,.94) 0%, rgba(8,30,25,.82) 38%, rgba(8,30,25,.36) 70%, rgba(8,30,25,.5) 100%),
		linear-gradient(180deg, rgba(8,22,19,.14), rgba(8,22,19,.68));
}
.home-hero::after {
	content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background: linear-gradient(180deg, transparent 70%, rgba(8,22,19,.35));
}
.home-hero-inner { position: relative; z-index: 2; padding-block: clamp(5rem, 12vw, 9rem); width: 100%; }
.home-hero .tmth-eyebrow { color: #f0c778; }
.home-hero h1 { color: #fff; font-size: clamp(3.15rem, 7vw, 5.8rem); max-width: 10ch; margin-bottom: 1.25rem; letter-spacing: -.045em; text-wrap: balance; }
.home-hero p { color: rgba(255,255,255,.88); font-size: clamp(1.05rem, 2vw, 1.22rem); max-width: 590px; margin: 0 0 2rem; line-height: 1.65; }
.home-hero-actions { display: flex; gap: .8rem; justify-content: flex-start; flex-wrap: wrap; }
.home-hero-meta { margin-top: 2.2rem; display: inline-flex; align-items: center; gap: .55rem; color: #fff; font-weight: 700; background: rgba(7,27,22,.54); border: 1px solid rgba(255,255,255,.2); padding: .6rem .9rem; border-radius: 6px; font-size: .86rem; backdrop-filter: blur(8px); }
.home-hero-video-toggle {
	display: none; position: absolute; right: clamp(1rem, 3vw, 2.25rem); bottom: clamp(1rem, 3vw, 2.25rem); z-index: 3;
	min-height: 44px; align-items: center; gap: .45rem; padding: .62rem .82rem;
	border: 1px solid rgba(255,255,255,.32); border-radius: 999px;
	background: rgba(7,27,22,.72); color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.18);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	font: 700 .78rem/1 var(--tmth-font-body); letter-spacing: .02em; cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.js .home-hero-video-toggle { display: inline-flex; }
.home-hero-video-toggle[hidden] { display: none; }
.home-hero-video-toggle:hover { background: rgba(7,27,22,.92); border-color: rgba(255,255,255,.58); }
.home-hero-video-toggle:active { transform: scale(.97); }
.home-hero-video-toggle:focus-visible { outline: 3px solid var(--tmth-gold); outline-offset: 3px; }
.home-hero-video-icon { width: 18px; height: 18px; flex: 0 0 18px; }
.home-hero-video-icon--play { display: none; }
.home-hero-video-toggle.is-paused .home-hero-video-icon--pause { display: none; }
.home-hero-video-toggle.is-paused .home-hero-video-icon--play { display: block; }

/* Sub-page hero band (Book / Stay) — verbatim from the WP theme */
.tmth-hero {
	position: relative; border-radius: var(--tmth-radius-lg); overflow: hidden; isolation: isolate;
	min-height: 410px; display: flex; align-items: center; justify-content: center;
	text-align: center; background-size: cover; background-position: center;
	margin: 0 auto 2.8rem; max-width: 1240px; box-shadow: var(--tmth-shadow);
}
.tmth-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(180deg, rgba(11,36,30,.35) 0%, rgba(8,28,23,.82) 100%);
}
.tmth-hero-inner { padding: 3.2rem 1.5rem; max-width: 720px; }
.tmth-hero .tmth-eyebrow { color: var(--tmth-gold); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-size: .8rem; display: block; margin-bottom: .6rem; }
.tmth-hero h1 { color: #fff !important; font-size: clamp(2.1rem, 5vw, 3.3rem); line-height: 1.08; margin: 0 0 .6rem; }
.tmth-hero p { color: rgba(255,255,255,.92); font-size: 1.15rem; line-height: 1.55; margin: 0; }
.tmth-hero .tmth-btn { margin-top: 1.4rem; }
/* Background images set via classes */
.tmth-hero--book { background-image: url('../media/table-setting.webp'); }
.tmth-hero--menu { background-image: url('../media/bistro-dining-room.webp'); }
.tmth-hero--stay { background-image: url('../images/terang-photo-1.jpg'); }
.tmth-hero--story { background-image: url('../media/heritage-stained-glass.webp'); background-position: center 48%; }
.tmth-aside-photo--bistro { background-image: url('../media/bistro-dining-room.webp'); }
.tmth-aside-photo--room { background-image: url('../images/terang-photo-1.jpg'); background-position: center 58%; }
.tmth-cta-band--stay { background-image: url('../media/heritage-stained-glass.webp'); }

/* Closing CTA band — verbatim from the WP theme */
.tmth-cta-band {
	max-width: 1240px; margin: 3rem auto 0; border-radius: var(--tmth-radius-lg); text-align: center;
	padding: clamp(3.5rem, 7vw, 5.75rem) 1.5rem; color: #fff; position: relative; overflow: hidden; isolation: isolate;
	background-size: cover; background-position: center; box-shadow: var(--tmth-shadow);
	background-image: url('../images/terang-photo-4.jpg');
}
.tmth-cta-band::before { content:""; position:absolute; inset:0; z-index:-1; background: linear-gradient(180deg, rgba(47,74,53,.82), rgba(24,20,15,.86)); }
.tmth-cta-band h2 { color:#fff !important; margin: 0 0 .6rem; font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.tmth-cta-band p { color: rgba(255,255,255,.9); margin: 0 auto 1.4rem; max-width: 560px; }

/* =========================================================================
   6. Home sections  (welcome split + feature cards)
   ========================================================================= */
.tmth-welcome { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 7vw, 6.5rem); align-items: center; }
.tmth-welcome-body h2 { margin-bottom: 1rem; }
.tmth-welcome-body p { color: var(--tmth-body); font-size: 1.08rem; }
.tmth-welcome-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.4rem; }
.tmth-welcome-media {
	position: relative; border-radius: var(--tmth-radius-lg); overflow: hidden; box-shadow: var(--tmth-shadow);
	aspect-ratio: 4 / 3.45; background-size: cover; background-position: center 68%;
	background-image: url('../media/main-bar.webp');
}

/* Real venue media — editorial, warm and deliberately simple. */
.tmth-section--gallery { background: var(--tmth-green-d); color: #e7dcc4; }
.tmth-section--gallery .tmth-section-head h2 { color: #fff; }
.tmth-section--gallery .tmth-section-head p { color: #cfc5b2; }
.tmth-section--gallery .tmth-eyebrow { color: #f0c778; }
.tmth-media-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(240px, 20vw, 310px); gap: .75rem; }
.tmth-media-card { position: relative; min-height: 240px; margin: 0; overflow: hidden; border-radius: 8px; background: #111914; border: 1px solid rgba(255,255,255,.11); box-shadow: 0 18px 45px -28px rgba(0,0,0,.8); }
.tmth-media-card--video { grid-row: span 2; }
.tmth-media-card--wide { grid-column: span 2; }
.tmth-media-card img, .tmth-media-card video { width: 100%; height: 100%; object-fit: cover; }
.tmth-media-card img { transition: transform .35s ease; }
.tmth-media-card:hover img { transform: scale(1.025); }
.tmth-media-card figcaption { position: absolute; inset: auto 0 0; z-index: 1; padding: 3.2rem 1.1rem 1rem; background: linear-gradient(transparent, rgba(18,16,12,.9)); pointer-events: none; }
.tmth-media-card figcaption strong, .tmth-media-card figcaption span { display: block; color: #fff; }
.tmth-media-card figcaption strong { font-family: var(--tmth-font-head); font-size: 1.15rem; }
.tmth-media-card figcaption span { margin-top: .15rem; color: #e5ddce; font-size: .82rem; line-height: 1.45; }
.tmth-welcome-badge {
	position: absolute; left: 18px; bottom: 18px; background: var(--tmth-card);
	border: 1px solid var(--tmth-line); border-radius: 8px; padding: .8rem 1rem;
	box-shadow: var(--tmth-shadow); display: flex; align-items: center; gap: .7rem;
}
.tmth-welcome-badge img { height: 42px; width: auto; }
.tmth-welcome-badge strong { display: block; color: var(--tmth-ink); font-size: 1.4rem; line-height: 1; font-family: var(--tmth-font-head); }
.tmth-welcome-badge span { font-size: .82rem; color: var(--tmth-body); }

.tmth-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tmth-feature {
	background: var(--tmth-card); border: 1px solid var(--tmth-line); border-radius: var(--tmth-radius);
	padding: clamp(1.6rem, 3vw, 2.25rem); box-shadow: var(--tmth-shadow-soft);
	transition: transform .2s ease, box-shadow .2s ease;
}

/* Heritage story page */
.tmth-story-layout {
	display: grid;
	grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
	gap: clamp(2rem, 6vw, 5rem);
	align-items: center;
	max-width: 1120px;
	margin-inline: auto;
}
.tmth-story-layout--reverse { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.tmth-story-copy h2 { margin-bottom: 1rem; }
.tmth-story-copy p { font-size: 1.06rem; }
.tmth-story-image {
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--tmth-line);
	border-radius: var(--tmth-radius-lg);
	background: var(--tmth-card);
	box-shadow: var(--tmth-shadow);
}
.tmth-story-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tmth-story-image--portrait img { aspect-ratio: 4 / 3; }
.tmth-story-image figcaption { padding: .9rem 1.1rem; color: var(--tmth-body); font-size: .84rem; line-height: 1.5; }
.tmth-room-enquiry { scroll-margin-top: 104px; }
.tmth-feature:hover { transform: translateY(-3px); box-shadow: var(--tmth-shadow); }
.tmth-feature-icon {
	width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
	background: var(--tmth-green); border: 0; color: #eacb91; margin-bottom: 1.4rem;
}
.tmth-feature-icon svg { width: 26px; height: 26px; }
.tmth-feature h3 { margin-bottom: .4rem; }
.tmth-feature p { margin: 0; color: var(--tmth-body); font-size: .98rem; }

/* =========================================================================
   7. Components  (booking · reviews · rooms · hours) — from the WP theme
   ========================================================================= */

/* ---- Shared buttons ---- */
.tmth-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 48px; padding: .84em 1.45em; border-radius: 6px; font-weight: 800;
	font-size: .84rem; letter-spacing: .09em; text-transform: uppercase; text-decoration: none;
	line-height: 1.1; cursor: pointer; border: 2px solid transparent; font-family: var(--tmth-font-body);
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.tmth-btn--gold { background: var(--tmth-gold-d); color: #fff; border-color: var(--tmth-gold-d); }
.tmth-btn--gold:hover { background: var(--tmth-gold-d); border-color: var(--tmth-gold-d); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(184,130,47,.7); }
.tmth-btn--ghost { background: transparent; color: var(--tmth-ink); border-color: var(--tmth-line); }
.tmth-btn--ghost:hover { border-color: var(--tmth-gold); color: var(--tmth-gold-d); }
.tmth-btn--light { background: #fff; color: var(--tmth-ink); border-color: #fff; }
.tmth-btn--light:hover { background: var(--tmth-cream); border-color: var(--tmth-cream); color: var(--tmth-ink); transform: translateY(-2px); }
.tmth-btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.tmth-btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.12); color: #fff; }
.tmth-link { background: none; border: 0; color: var(--tmth-gold-d); font-weight: 600; cursor: pointer; text-decoration: underline; padding: 0; font-family: inherit; font-size: 1rem; }

/* ---- Section rhythm for our shortcode blocks ---- */
.tmth-booking, .tmth-reviews, .tmth-rooms, .tmth-hours { max-width: 1100px; margin-inline: auto; }

/* ---- Booking form ---- */
.tmth-booking { position: relative; }
.tmth-booking-form {
	display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.4rem;
	background: var(--tmth-card); border: 1px solid var(--tmth-line);
	border-radius: var(--tmth-radius-lg); padding: clamp(1.5rem, 4vw, 3rem);
	box-shadow: var(--tmth-shadow);
}
.tmth-field { display: flex; flex-direction: column; gap: .4rem; }
.tmth-field--full { grid-column: 1 / -1; }
.tmth-field label { font-weight: 700; color: var(--tmth-ink); font-size: .9rem; }
.tmth-field label span { color: #c0392b; margin-left: .15em; }
.tmth-required { color: #c0392b; }
.tmth-booking .tmth-booking-form input,
.tmth-booking .tmth-booking-form select,
.tmth-booking .tmth-booking-form textarea {
	width: 100%; box-sizing: border-box;
	padding: .8rem .9rem; border: 1px solid var(--tmth-line);
	min-height: 50px; border-radius: 7px; background-color: #fff; color: var(--tmth-ink);
	font-size: 1rem; font-family: inherit; line-height: 1.3;
	color-scheme: light; -webkit-appearance: none; appearance: none;
}
.tmth-booking .tmth-booking-form select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23b8822f' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.4rem;
}
.tmth-booking .tmth-booking-form input::placeholder,
.tmth-booking .tmth-booking-form textarea::placeholder { color: #9a9284; opacity: 1; }
.tmth-booking .tmth-booking-form input:focus,
.tmth-booking .tmth-booking-form select:focus,
.tmth-booking .tmth-booking-form textarea:focus {
	outline: none; border-color: var(--tmth-gold); box-shadow: 0 0 0 3px rgba(184,130,47,.18);
}
.tmth-form-head { grid-column: 1 / -1; margin: -.4rem 0 .2rem; }
.tmth-form-head h2 { margin: 0 0 .2rem; color: var(--tmth-ink); font-size: 1.35rem; }
.tmth-form-head p { margin: 0; color: var(--tmth-body); font-size: .95rem; }
.tmth-booking-form .tmth-invalid { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,.12); }
.tmth-booking-actions { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: .3rem; }
.tmth-booking-actions .tmth-btn { padding-inline: 2.2em; }
.tmth-booking-actions .tmth-btn:disabled { cursor: wait; opacity: .7; transform: none; box-shadow: none; }
.tmth-booking-fineprint { margin: 0; font-size: .85rem; color: var(--tmth-body); }
.tmth-booking-fineprint a { color: var(--tmth-gold-d); font-weight: 700; }
.tmth-error { grid-column: 1 / -1; margin: 0; color: #c0392b; font-weight: 600; }
.tmth-form-email-fallback { grid-column: 1 / -1; width: fit-content; color: var(--tmth-gold-d); font-weight: 800; }
.tmth-honeypot { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- Separate booking confirmation page ---- */
.tmth-thank-you-page {
	position: relative;
	min-height: calc(100vh - 86px);
	min-height: calc(100svh - 86px);
	display: grid;
	align-items: center;
	padding-block: clamp(2.5rem, 7vw, 5.5rem);
	overflow: hidden;
	isolation: isolate;
}
.tmth-thank-you-page::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	background:
		linear-gradient(90deg, rgba(247,242,231,.97) 0%, rgba(247,242,231,.94) 47%, rgba(247,242,231,.38) 100%),
		url("../images/terang-photo-4.jpg") center 60% / cover no-repeat;
}
.tmth-thank-you-page::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(circle at 22% 20%, rgba(255,253,248,.72), transparent 42%);
	pointer-events: none;
}
.tmth-thank-you-shell {
	width: min(100%, 720px);
}
.tmth-thank-you-card {
	position: relative;
	padding: clamp(2rem, 5vw, 3.75rem);
	background: rgba(255,253,248,.96);
	border: 1px solid rgba(184,130,47,.3);
	border-radius: 22px;
	box-shadow: 0 28px 70px -30px rgba(35,33,28,.5);
}
.tmth-thank-you-card::before {
	content: "";
	position: absolute;
	inset: 10px;
	border: 1px solid rgba(184,130,47,.18);
	border-radius: 15px;
	pointer-events: none;
}
.tmth-thank-you-icon {
	width: 68px;
	height: 68px;
	display: grid;
	place-items: center;
	margin-bottom: 1.4rem;
	border-radius: 50%;
	background: var(--tmth-green);
	color: #fff;
	box-shadow: 0 12px 26px -15px rgba(47,74,53,.8);
}
.tmth-thank-you-icon svg { width: 34px; height: 34px; }
.tmth-thank-you-card h1 {
	max-width: 12ch;
	margin-bottom: .9rem;
	font-size: clamp(2.25rem, 6vw, 4rem);
}
.tmth-thank-you-intro {
	max-width: 54ch;
	font-size: clamp(1.05rem, 2vw, 1.18rem);
	color: var(--tmth-body);
}
.tmth-thank-you-summary {
	display: flex;
	align-items: flex-start;
	gap: .7rem;
	max-width: 54ch;
	margin: 1.4rem 0;
	padding: 1rem 1.1rem;
	border-left: 4px solid var(--tmth-gold);
	border-radius: 0 10px 10px 0;
	background: var(--tmth-cream);
	color: var(--tmth-green);
	font-weight: 700;
}
.tmth-thank-you-summary[hidden] { display: none; }
.tmth-thank-you-note {
	max-width: 54ch;
	margin: 1.4rem 0 0;
	padding-top: 1.3rem;
	border-top: 1px solid var(--tmth-line);
}
.tmth-thank-you-note strong {
	display: block;
	margin-bottom: .2rem;
	color: var(--tmth-ink);
	font-family: var(--tmth-font-head);
	font-size: 1.1rem;
}
.tmth-thank-you-actions {
	display: flex;
	align-items: center;
	gap: .8rem;
	flex-wrap: wrap;
	margin-top: 1.8rem;
}
.tmth-thank-you-contact {
	margin: 1.2rem 0 0;
	font-size: .9rem;
	color: var(--tmth-body);
}
.tmth-thank-you-contact a { font-weight: 700; }

/* ---- Google reviews ---- */
.tmth-reviews-widget {
	min-height: 320px;
	padding: clamp(.5rem, 2vw, 1.25rem);
	background: var(--tmth-cream);
	border: 1px solid var(--tmth-line);
	border-radius: var(--tmth-radius-lg);
	overflow: hidden;
}
.tmth-reviews-note,
.tmth-reviews-fallback {
	margin: 1rem 0 0;
	text-align: center;
	color: var(--tmth-body);
	font-size: .92rem;
}
.tmth-reviews-note a,
.tmth-reviews-fallback a { color: var(--tmth-gold-d); font-weight: 700; }

/* ---- Rooms ---- */
.tmth-rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.tmth-room {
	background: var(--tmth-card); border: 1px solid var(--tmth-line);
	border-radius: var(--tmth-radius); overflow: hidden; box-shadow: var(--tmth-shadow);
	display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease;
}
.tmth-room:hover { transform: translateY(-3px); box-shadow: 0 34px 70px -38px rgba(16,30,24,.62); }
.tmth-room-img { position: relative; padding-top: 66%; background-size: cover; background-position: center; }
.tmth-room-img--queen { background-image: url('../images/terang-photo-1.jpg'); }
.tmth-room-img--twin { background-image: url('../images/terang-photo-2.jpg'); }
.tmth-room-img--single { background-image: url('../images/terang-photo-3.jpg'); }
.tmth-room-rate-note {
	position: absolute; bottom: 12px; right: 12px; background: rgba(13,42,36,.9);
	color: #fff; font-weight: 800; padding: .58em .78em; border-radius: 5px; font-size: .75rem;
	letter-spacing: .07em; text-transform: uppercase; box-shadow: 0 8px 20px -14px rgba(0,0,0,.8); backdrop-filter: blur(8px);
}
.tmth-room-body { padding: 1.4rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.tmth-room-body h2, .tmth-room-body h3 { margin: 0; color: var(--tmth-ink); font-size: 1.3rem; }
.tmth-room-body p { margin: 0; color: var(--tmth-body); }
.tmth-room-feat { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.tmth-room-feat li { position: relative; padding-left: 1.4rem; color: var(--tmth-body); font-size: .92rem; }
.tmth-room-feat li::before { content: "✓"; position: absolute; left: 0; color: var(--tmth-gold); font-weight: 800; }
.tmth-room-body .tmth-btn { margin-top: auto; align-self: flex-start; }

/* ---- Bistro menu page ---- */
.tmth-menu-layout { max-width: 1100px; margin-inline: auto; }
.tmth-menu-preview-grid {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1rem, 3vw, 2rem); align-items: start;
}
.tmth-menu-page {
	margin: 0; overflow: hidden; border: 1px solid var(--tmth-line);
	border-radius: var(--tmth-radius); background: var(--tmth-card);
	box-shadow: var(--tmth-shadow);
}
.tmth-menu-page a { display: block; position: relative; background: var(--tmth-cream-2); }
.tmth-menu-page a::after {
	content: "Open PDF"; position: absolute; right: 1rem; bottom: 1rem;
	padding: .55rem .85rem; border-radius: 999px; background: rgba(35,33,28,.9);
	color: #fff; font-size: .82rem; font-weight: 800; letter-spacing: .02em;
	transition: background .2s ease;
}
.tmth-menu-page a:hover::after { background: var(--tmth-gold-d); }
.tmth-menu-page img {
	width: 100%; aspect-ratio: 1819 / 1287; object-fit: cover;
	transition: transform .25s ease;
}
.tmth-menu-page a:hover img { transform: scale(1.012); }
.tmth-menu-page figcaption {
	padding: 1rem 1.2rem; color: var(--tmth-ink); font-weight: 700;
	border-top: 1px solid var(--tmth-line);
}
.tmth-menu-actions-panel {
	display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
	margin-top: 2rem; padding: clamp(1.3rem, 3vw, 2rem);
	border: 1px solid var(--tmth-line); border-radius: var(--tmth-radius);
	background: var(--tmth-card); box-shadow: 0 12px 30px -24px rgba(35,33,28,.55);
}
.tmth-menu-actions-panel h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: .35rem; }
.tmth-menu-actions-panel p { margin: 0; max-width: 58ch; }
.tmth-menu-actions { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: flex-end; }
.tmth-menu-file-meta { color: var(--tmth-body); font-size: .88rem; margin-top: .5rem !important; }
.tmth-menu-notice {
	margin: 1.3rem auto 0; max-width: 720px; text-align: center;
	color: var(--tmth-body); font-size: .92rem;
}

/* ---- Opening hours ---- */
.tmth-hours {
	max-width: 460px; background: var(--tmth-card); border: 1px solid var(--tmth-line);
	border-radius: var(--tmth-radius-lg); padding: clamp(1.6rem, 3vw, 2.2rem); box-shadow: var(--tmth-shadow);
}
.tmth-hours-status { display: flex; align-items: center; gap: .55rem; font-weight: 800; margin-bottom: 1rem; color: var(--tmth-ink); }
.tmth-hours table { width: 100%; border-collapse: collapse; }
.tmth-hours th, .tmth-hours td { text-align: left; padding: .55rem 0; border-bottom: 1px dashed var(--tmth-line); }
.tmth-hours th { color: var(--tmth-ink); font-weight: 700; }
.tmth-hours td { color: var(--tmth-body); text-align: right; }
.tmth-hours-contact { margin: 1rem 0 0; line-height: 1.7; }
.tmth-hours-contact a { color: var(--tmth-gold-d); font-weight: 700; text-decoration: none; }

/* Open / closed dot */
.tmth-open-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; background: #9a9a9a; box-shadow: 0 0 0 0 rgba(46,160,67,.5); }
.tmth-open-dot.is-open { background: #2ea043; animation: tmth-pulse 2s infinite; }
.tmth-open-dot.is-closed { background: #c0392b; }
@keyframes tmth-pulse { 0% { box-shadow: 0 0 0 0 rgba(46,160,67,.5);} 70% { box-shadow: 0 0 0 8px rgba(46,160,67,0);} 100% { box-shadow: 0 0 0 0 rgba(46,160,67,0);} }

/* ---- Book / Stay content wrappers ---- */
.tmth-split { display: grid; grid-template-columns: 1.35fr .85fr; gap: 2.4rem; align-items: start; max-width: 1140px; margin-inline: auto; }
.tmth-aside { display: grid; gap: 1.4rem; }
.tmth-aside-photo { width: 100%; height: 240px; border-radius: var(--tmth-radius-lg); background-size: cover; background-position: center; box-shadow: var(--tmth-shadow); }
.tmth-aside .tmth-hours { max-width: none; }
.tmth-note { background: var(--tmth-green); color: #f3efe4; border-radius: var(--tmth-radius); padding: 1.6rem 1.75rem; box-shadow: var(--tmth-shadow); }
.tmth-note h3 { margin: 0 0 .4rem; color: #fff; font-size: 1.05rem; font-family: var(--tmth-font-head); }
.tmth-note p { margin: 0; color: rgba(243,239,228,.9); font-size: .93rem; line-height: 1.55; }
.tmth-note a { color: #f0c778; font-weight: 700; }

/* =========================================================================
   8. Floating "Book a Table" button (site-wide) — from the WP theme
   ========================================================================= */
.tmth-fab {
	position: fixed; right: 20px; bottom: 20px; z-index: 9990;
	display: inline-flex; align-items: center; gap: .55rem;
	background: var(--tmth-green); color: #fff; text-decoration: none;
	min-height: 52px; padding: .8rem 1.3rem; border-radius: 8px; font-weight: 800; letter-spacing: .04em;
	box-shadow: 0 18px 40px -16px rgba(13,42,36,.8); border: 1px solid rgba(255,255,255,.16);
	transform: translateY(120%); opacity: 0; transition: transform .35s ease, opacity .35s ease, background .15s ease;
}
.tmth-fab.is-visible { transform: translateY(0); opacity: 1; }
.tmth-fab.is-context-hidden { transform: translateY(120%); opacity: 0; pointer-events: none; }
.tmth-fab:hover { background: var(--tmth-green-d); color: #fff; }
.tmth-fab-dot { display: inline-flex; }
.tmth-fab .tmth-open-dot { width: 9px; height: 9px; }

/* =========================================================================
   9. Footer
   ========================================================================= */
.site-footer { background: var(--tmth-green-d); color: #d9d2c4; padding-block: 4.5rem 1.8rem; margin-top: 0; border-top: 1px solid rgba(255,255,255,.08); }
.site-footer a { color: #e7dcc4; text-decoration: none; }
.site-footer a:hover { color: #f0c778; }
.site-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer-brand img { height: 76px; width: auto; margin-bottom: .9rem; }
.site-footer-brand p { color: #b7ae9c; font-size: .95rem; max-width: 30ch; }
.site-footer h2 { color: #fff; font-size: 1rem; margin-bottom: .9rem; font-family: var(--tmth-font-head); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.4rem; padding-top: 1.4rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: #9c9482; }

/* =========================================================================
   10. Motion / reveal polish  (UI-UX-pro — subtle, accessible)
   Gated behind `.js`: with JavaScript off (or before it runs) all content is
   fully visible, so nothing depends on the reveal to be readable.
   ========================================================================= */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .55s ease-out, transform .55s cubic-bezier(.22,.61,.36,1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal-delay="1"] { transition-delay: .08s; }
.js [data-reveal-delay="2"] { transition-delay: .16s; }
.js [data-reveal-delay="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js [data-reveal] { opacity: 1; transform: none; transition: none; }
	.tmth-open-dot.is-open { animation: none; }
	.tmth-fab { transition: none; }
	.home-hero-video, .home-hero-video-toggle { display: none; }
}

/* =========================================================================
   11. Responsive
   ========================================================================= */
@media (max-width: 980px) {
	.tmth-welcome { grid-template-columns: 1fr; }
	.tmth-story-layout,
	.tmth-story-layout--reverse { grid-template-columns: 1fr; }
	.tmth-story-layout--reverse .tmth-story-copy { order: -1; }
	.tmth-welcome-media { aspect-ratio: 16 / 10; }
	.site-footer-grid { grid-template-columns: 1fr 1fr; }
	.site-footer-brand { grid-column: 1 / -1; }
	.tmth-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(240px, 36vw, 340px); }
}
@media (min-width: 981px) {
	.tmth-media-card:nth-child(3) { grid-row: span 2; }
}
.tmth-hours--wide { max-width: none; }
@media (max-width: 1100px) {
	.tmth-rooms { grid-template-columns: 1fr 1fr; }
	.tmth-split { grid-template-columns: 1fr; }
	.tmth-features { grid-template-columns: 1fr; }
	.tmth-menu-actions-panel { align-items: flex-start; flex-direction: column; }
	.tmth-menu-actions { justify-content: flex-start; }

	/* Mobile nav */
	.nav-toggle { display: grid; position: relative; z-index: 2; }
	.site-nav { position: absolute; top: 100%; left: 0; right: 0; z-index: 2; max-height: calc(100dvh - 84px); overflow-y: auto; background: var(--tmth-green-d); border-bottom: 1px solid rgba(255,255,255,.12); box-shadow: var(--tmth-shadow); transform: translateY(-10px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
	.site-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
	.site-nav.is-open { visibility: visible; transition-delay: 0s; }
	.main-header-menu { flex-direction: column; align-items: stretch; gap: 0; padding: .6rem 1.1rem 1.1rem; }
	.main-header-menu a { min-height: 48px; padding: .75em .8em; border-radius: 10px; }
	.main-header-menu .current-menu-item > a { background: rgba(255,255,255,.08); }
	.main-header-menu .current-menu-item > a::after { display: none; }
	.main-header-menu .menu-book-btn > a { margin-left: 0; margin-top: .4rem; text-align: center; }
	.nav-scrim { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1; border: 0; background: rgba(24,20,15,.48); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility 0s linear .2s; }
	.nav-scrim.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
	body.nav-open { overflow: hidden; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.tmth-section { padding-block: 4rem; }
	.site-header-inner { min-height: 74px; }
	.site-brand img { height: 48px; }
	.home-hero { min-height: calc(100dvh - 74px); background-position: 56% center; }
	.home-hero-video { object-position: center center; }
	.home-hero::before { background: linear-gradient(180deg, rgba(8,30,25,.54) 0%, rgba(8,30,25,.8) 48%, rgba(8,30,25,.96) 100%); }
	.home-hero-inner { align-self: end; padding-block: 5rem 4rem; }
	.home-hero h1 { font-size: clamp(3rem, 14vw, 4.2rem); max-width: 11ch; }
	.home-hero p { line-height: 1.55; }
	.home-hero-actions { align-items: stretch; flex-direction: column; }
	.home-hero-actions .tmth-btn { width: 100%; }
	.home-hero-video-toggle { top: 1rem; right: 1rem; bottom: auto; }
	.tmth-booking-form { grid-template-columns: 1fr; padding: 1.4rem; }
	.tmth-thank-you-page {
		align-items: end;
		padding-block: 2rem;
	}
	.tmth-thank-you-page::before {
		background:
			linear-gradient(180deg, rgba(247,242,231,.15) 0%, rgba(247,242,231,.93) 34%, rgba(247,242,231,1) 62%),
			url("../images/terang-photo-4.jpg") center 42% / cover no-repeat;
	}
	.tmth-thank-you-card { padding: 1.75rem 1.35rem; border-radius: 18px; }
	.tmth-thank-you-icon { width: 58px; height: 58px; margin-bottom: 1rem; }
	.tmth-thank-you-card h1 { font-size: clamp(2.15rem, 11vw, 3rem); }
	.tmth-thank-you-actions { align-items: stretch; flex-direction: column; }
	.tmth-thank-you-actions .tmth-btn { width: 100%; min-height: 48px; }
	.tmth-rooms { grid-template-columns: 1fr; }
	.tmth-menu-preview-grid { grid-template-columns: 1fr; }
	.tmth-menu-actions { width: 100%; }
	.tmth-menu-actions .tmth-btn { width: 100%; }
	.tmth-fab { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); min-height: 48px; padding: .72rem .9rem; font-size: .82rem; }
	.tmth-hero { min-height: 310px; border-radius: 14px; }
	.tmth-hero-inner { padding: 2.2rem 1.2rem; }
	.site-brand .site-brand-sub { display: none; }
	.site-footer-grid { grid-template-columns: 1fr; }
	.tmth-media-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
	.tmth-media-card, .tmth-media-card--video, .tmth-media-card--wide { grid-column: auto; grid-row: auto; min-height: 0; aspect-ratio: 4 / 3; }
	.tmth-media-card--video { aspect-ratio: 9 / 14; max-height: 680px; }
	.site-brand .site-brand-name { font-size: 1rem; }
}
