/*
Theme Name: HotelOS Starter
Theme URI: https://example.com/hotelos-starter
Author: HotelOS
Author URI: https://example.com
Description: A premium boutique-hotel theme built around the HotelOS booking engine. Display serif + refined UI type, deep evergreen and gold palette, glass availability panel, layered hero with optional cover image, scroll-reveal motion and a polished footer. Pairs with the HotelOS plugin.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hotelos-starter
Tags: one-column, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */

:root {
	--ink: #14241d;
	--ink-soft: #21382e;
	--green: #1a6b4e;
	--green-deep: #0f3b2e;
	--green-deeper: #0a2b21;
	--gold: #c9a36a;
	--gold-soft: #e4cda4;
	--cream: #faf6ef;
	--paper: #fffdf8;
	--snow: #ffffff;
	--line: rgba(20, 36, 29, 0.1);
	--line-strong: rgba(20, 36, 29, 0.16);
	--muted: rgba(20, 36, 29, 0.62);
	--muted-light: rgba(255, 255, 255, 0.72);

	--font-display: "Playfair Display", Georgia, "Times New Roman", serif;
	--font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

	--r-sm: 8px;
	--r-md: 14px;
	--r-lg: 22px;
	--r-xl: 32px;

	--shadow-sm: 0 1px 2px rgba(20, 36, 29, 0.06), 0 4px 12px rgba(20, 36, 29, 0.06);
	--shadow-md: 0 8px 24px rgba(20, 36, 29, 0.12);
	--shadow-lg: 0 24px 60px rgba(10, 43, 33, 0.28);

	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--header-h: 76px;
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	font-family: var(--font-ui);
	font-size: 16px;
	line-height: 1.75;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em;
	line-height: 1.18;
	color: var(--ink);
	font-weight: 600;
	letter-spacing: -0.01em;
}

h1 { font-family: var(--font-display); font-weight: 600; }
h2 { font-family: var(--font-display); font-weight: 600; }
h3 { font-family: var(--font-ui); font-size: 20px; font-weight: 700; }

p { margin: 0 0 1em; }

a {
	color: var(--green);
	text-decoration: none;
	transition: color 0.18s ease;
}

a:hover { color: var(--green-deep); text-decoration: underline; }

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

:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 3px;
	border-radius: 4px;
}

::selection {
	background: var(--gold-soft);
	color: var(--ink);
}

.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ==========================================================================
   3. Typographic helpers
   ========================================================================== */

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 18px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--gold-soft);
}

.eyebrow::before {
	content: "";
	width: 34px;
	height: 1px;
	background: currentColor;
	opacity: 0.7;
}

.eyebrow--dark { color: var(--gold); }

.text-link {
	font-weight: 600;
	color: var(--green);
}

.text-link:hover { text-decoration: none; color: var(--green-deep); }

/* ==========================================================================
   4. Buttons
   ========================================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 15px 30px;
	border-radius: 999px;
	font-family: var(--font-ui);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out), background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
	text-decoration: none;
}

.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn--gold {
	background: var(--gold);
	color: var(--green-deeper);
	box-shadow: 0 10px 26px rgba(201, 163, 106, 0.38);
}

.btn--gold:hover {
	background: var(--gold-soft);
	color: var(--green-deeper);
	box-shadow: 0 14px 30px rgba(201, 163, 106, 0.45);
}

.btn--ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.55);
	color: #ffffff;
}

.btn--ghost:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: #ffffff;
	color: #ffffff;
}

.btn--sm {
	padding: 10px 20px;
	font-size: 13px;
}

/* ==========================================================================
   5. Header
   ========================================================================== */

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
	background: rgba(250, 246, 239, 0.92);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}

.site-header.is-transparent {
	background: linear-gradient(to bottom, rgba(10, 43, 33, 0.5), rgba(10, 43, 33, 0));
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

.site-header.is-scrolled {
	background: rgba(250, 246, 239, 0.9);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	box-shadow: 0 1px 0 var(--line), 0 12px 32px rgba(20, 36, 29, 0.08);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: var(--header-h);
	transition: min-height 0.3s ease;
}

.site-header.is-scrolled .site-header__inner { min-height: 60px; }

.site-branding {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-right: auto;
}

.site-branding .custom-logo {
	max-height: 52px;
	width: auto;
	transition: max-height 0.3s ease;
}

.site-header.is-scrolled .site-branding .custom-logo { max-height: 44px; }

.site-title {
	margin: 0;
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: 0.01em;
}

.site-title a { color: var(--ink); }
.site-title a:hover { color: var(--green); text-decoration: none; }

.site-description {
	margin: 2px 0 0;
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
}

/* Transparent (over hero) uses light text */
.site-header.is-transparent .site-title a { color: #ffffff; }
.site-header.is-transparent .site-title a:hover { color: var(--gold-soft); }
.site-header.is-transparent .site-description { color: var(--muted-light); }
.site-header.is-transparent .nav-toggle span,
.site-header.is-transparent .nav-toggle span::before,
.site-header.is-transparent .nav-toggle span::after { background: #ffffff; }

/* ---- Nav ---- */

.primary-nav ul {
	display: flex;
	align-items: center;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-nav ul li a {
	display: block;
	padding: 10px 16px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 500;
	color: var(--ink);
}

.site-header.is-transparent .primary-nav ul li a { color: #ffffff; }

.primary-nav ul li a:hover {
	background: rgba(20, 36, 29, 0.06);
	text-decoration: none;
	color: var(--green);
}

.site-header.is-transparent .primary-nav ul li a:hover { background: rgba(255, 255, 255, 0.12); color: var(--gold-soft); }

.primary-nav .current-menu-item > a {
	color: var(--green);
	font-weight: 600;
}

.site-header.is-transparent .current-menu-item > a { color: var(--gold-soft); }

.primary-nav {
	display: flex;
	align-items: center;
	gap: 18px;
}

.header-cta { flex-shrink: 0; }

.nav-toggle {
	display: none;
	margin: 0;
	padding: 10px;
	border: 0;
	background: none;
	cursor: pointer;
	z-index: 5;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
	content: "";
	display: block;
	width: 24px;
	height: 2px;
	margin: 5px 0;
	border-radius: 2px;
	background: var(--ink);
	transition: transform 0.25s var(--ease-out), opacity 0.2s ease;
}

.nav-toggle.is-open span { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.is-open span::before { opacity: 0; }
.nav-toggle.is-open span::after { transform: rotate(-90deg) translate(5px, -4px); }

@media (max-width: 960px) {
	.nav-toggle { display: block; }
	.primary-nav {
		position: fixed;
		inset: 0;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		gap: 28px;
		background: rgba(10, 43, 33, 0.98);
		backdrop-filter: blur(16px);
		-webkit-backdrop-filter: blur(16px);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-12px);
		transition: opacity 0.3s ease, transform 0.3s var(--ease-out), visibility 0.3s;
	}
	.primary-nav.is-open {
		opacity: 1;
		visibility: visible;
		transform: none;
	}
	.primary-nav ul {
		flex-direction: column;
		gap: 6px;
	}
	.primary-nav ul li a,
	.site-header.is-transparent .primary-nav ul li a {
		color: #ffffff;
		font-size: 18px;
		padding: 12px 24px;
	}
	.primary-nav ul li a:hover,
	.site-header.is-transparent .primary-nav ul li a:hover { color: var(--gold-soft); background: rgba(255, 255, 255, 0.08); }
	.header-cta { font-size: 15px; }
}

/* ==========================================================================
   6. Hero
   ========================================================================== */

.hero {
	position: relative;
	min-height: 94vh;
	display: flex;
	align-items: center;
	padding: calc(var(--header-h) + 56px) 0 72px;
	overflow: hidden;
	color: #ffffff;
	background: linear-gradient(160deg, #123f31 0%, #0a2b21 55%, #071f18 100%);
	background-size: cover;
	background-position: center;
}

.hero__scrim {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(58% 62% at 78% 32%, rgba(201, 163, 106, 0.16), transparent 60%),
		linear-gradient(90deg, rgba(7, 31, 24, 0.66), rgba(7, 31, 24, 0.2) 55%, rgba(7, 31, 24, 0.34)),
		radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
	background-size: auto, auto, 28px 28px;
}

.hero__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
	gap: 56px;
	align-items: center;
}

.hero__title {
	margin: 0 0 22px;
	font-family: var(--font-display);
	font-size: clamp(44px, 7vw, 84px);
	line-height: 1.04;
	color: #ffffff;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.hero__title em {
	font-style: italic;
	color: var(--gold-soft);
}

.hero__sub {
	max-width: 52ch;
	font-size: 18px;
	color: var(--muted-light);
	margin-bottom: 34px;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.hero__scroll {
	position: absolute;
	bottom: 26px;
	left: 50%;
	transform: translateX(-50%);
	display: block;
	width: 26px;
	height: 44px;
	border: 1.5px solid rgba(255, 255, 255, 0.5);
	border-radius: 999px;
}

.hero__scroll span {
	position: absolute;
	top: 8px;
	left: 50%;
	width: 4px;
	height: 9px;
	margin-left: -2px;
	border-radius: 4px;
	background: var(--gold-soft);
	animation: scroll-hint 1.8s var(--ease-out) infinite;
}

@keyframes scroll-hint {
	0% { transform: translateY(0); opacity: 1; }
	70% { transform: translateY(14px); opacity: 0; }
	100% { transform: translateY(0); opacity: 0; }
}

/* ---- Glass booking panel ---- */

.booking-panel {
	background: rgba(255, 253, 248, 0.94);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border: 1px solid rgba(255, 255, 255, 0.65);
	border-radius: var(--r-xl);
	box-shadow: var(--shadow-lg);
	padding: 34px 30px;
}

.booking-panel__head { margin-bottom: 6px; }

.booking-panel__title {
	margin: 0 0 6px;
	font-family: var(--font-display);
	font-size: 30px;
	color: var(--ink);
}

.booking-panel__fallback {
	margin: 18px 0 0;
	padding: 16px;
	border: 1px dashed var(--line-strong);
	border-radius: var(--r-md);
	color: var(--muted);
	font-size: 14px;
}

/* Keep the plugin widget legible inside the glass card */
.booking-panel .hotelos-public {
	background: transparent;
	box-shadow: none;
	border: 0;
	border-radius: 0;
	padding: 0;
}

/* ==========================================================================
   7. Stats strip
   ========================================================================== */

.strip {
	background: var(--ink);
	color: #ffffff;
}

.strip__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	position: relative;
}

.strip__item {
	padding: 26px 20px;
	text-align: center;
	border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.strip__item:last-child { border-right: 0; }

.strip__item strong {
	display: block;
	font-family: var(--font-display);
	font-size: 34px;
	font-weight: 600;
	color: var(--gold-soft);
	line-height: 1;
	margin-bottom: 8px;
}

.strip__item span {
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted-light);
}

@media (max-width: 782px) {
	.strip__grid { grid-template-columns: 1fr; }
	.strip__item { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
	.strip__item:last-child { border-bottom: 0; }
}

/* ==========================================================================
   8. Sections
   ========================================================================== */

.section { padding: 96px 0; }

.section--light { background: var(--cream); }
.section--alt { background: var(--snow); }

.section__head {
	max-width: 680px;
	margin: 0 auto 56px;
	text-align: center;
}

.section__head .eyebrow { justify-content: center; }
.section__head .eyebrow::after {
	content: "";
	width: 34px;
	height: 1px;
	background: currentColor;
	opacity: 0;
}

.section__title {
	font-size: clamp(32px, 5vw, 48px);
	margin-bottom: 14px;
}

.section__sub {
	color: var(--muted);
	font-size: 17px;
	margin-bottom: 0;
}

/* ==========================================================================
   9. Features
   ========================================================================== */

.features__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
}

.feature {
	position: relative;
	background: var(--snow);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	padding: 34px 30px 36px;
	transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s ease;
	overflow: hidden;
}

.feature::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 3px;
	background: linear-gradient(90deg, var(--gold), var(--gold-soft));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.4s var(--ease-out);
}

.feature:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow-md);
	border-color: var(--line-strong);
}

.feature:hover::after { transform: scaleX(1); }

.feature__num {
	display: inline-block;
	font-family: var(--font-display);
	font-size: 15px;
	font-style: italic;
	color: var(--gold);
	margin-bottom: 26px;
}

.feature h3 { margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 15px; margin-bottom: 0; }

@media (max-width: 782px) {
	.features__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   10. CTA band
   ========================================================================== */

.cta-band {
	position: relative;
	padding: 110px 24px;
	color: #ffffff;
	background: linear-gradient(130deg, var(--green-deeper) 0%, var(--green-deep) 60%, var(--green-deeper) 100%);
	overflow: hidden;
	text-align: center;
}

.cta-band::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
	background-size: 26px 26px;
	opacity: 0.5;
}

.cta-band__inner {
	position: relative;
	max-width: 640px;
}

.cta-band .eyebrow { justify-content: center; }

.cta-band__title {
	font-size: clamp(32px, 5vw, 46px);
	color: #ffffff;
	margin-bottom: 30px;
}

/* ==========================================================================
   11. Content / entries
   ========================================================================== */

.site-content {
	padding-top: calc(var(--header-h) + 56px);
	padding-bottom: 88px;
}

.entry {
	max-width: 780px;
	margin: 0 auto;
}

.entry-header { margin-bottom: 32px; }

.entry-title {
	font-size: clamp(34px, 5vw, 52px);
	margin-bottom: 10px;
}

.entry-meta {
	color: var(--muted);
	font-size: 14px;
	margin-bottom: 20px;
}

.entry-thumbnail {
	margin: 0 0 34px;
	border-radius: var(--r-lg);
	overflow: hidden;
	box-shadow: var(--shadow-md);
}

.entry-content { font-size: 17px; }

.entry-content h2,
.entry-content h3 {
	margin-top: 1.6em;
}

.entry-content img {
	border-radius: var(--r-md);
}

.entry-content > * {
	max-width: 780px;
}

.entry-footer {
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 14px;
}

/* ---- Post list ---- */

.post-list {
	max-width: 860px;
	margin: 0 auto;
}

.post-card {
	display: flex;
	background: var(--snow);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	margin-bottom: 24px;
	transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.post-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
}

.post-card__body { padding: 34px 30px; }

.post-card__meta {
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 12px;
}

.post-card h2 { font-size: 24px; margin-bottom: 10px; }

.post-card h2 a:hover { color: var(--green); }

.post-card .entry-content { font-size: 15px; color: var(--muted); }
.post-card .entry-content p { margin-bottom: 14px; }

.post-list__nav {
	margin: 40px 0;
	text-align: center;
}

.post-list__nav .nav-links {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px;
}

.post-list__nav .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border-radius: 999px;
	border: 1px solid var(--line);
	color: var(--ink);
	font-weight: 500;
}

.post-list__nav .page-numbers.current {
	background: var(--green);
	border-color: var(--green);
	color: #ffffff;
}

.post-list__nav a.page-numbers:hover {
	border-color: var(--gold);
	color: var(--green);
	text-decoration: none;
}

/* ---- 404 ---- */

.error-404 {
	text-align: center;
	max-width: 520px;
	margin: 0 auto;
	padding: 40px 0;
}

.error-404 .entry-title { margin-bottom: 16px; }

/* ==========================================================================
   12. Footer
   ========================================================================== */

.site-footer {
	background: var(--green-deeper);
	color: var(--muted-light);
	padding: 76px 0 0;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1.4fr;
	gap: 48px;
	padding-bottom: 56px;
}

.site-footer__title {
	font-family: var(--font-display);
	font-size: 26px;
	color: #ffffff;
	margin-bottom: 10px;
}

.site-footer__tagline {
	color: var(--gold-soft);
	font-size: 14px;
	letter-spacing: 0.05em;
	margin-bottom: 18px;
}

.site-footer__address {
	font-size: 14px;
	max-width: 40ch;
	margin-bottom: 0;
}

.site-footer__heading {
	font-family: var(--font-ui);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--gold-soft);
	margin-bottom: 20px;
}

.site-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer ul li { margin-bottom: 10px; }

.site-footer a {
	color: var(--muted-light);
	font-size: 14px;
}

.site-footer a:hover { color: #ffffff; text-decoration: underline; }

.site-footer .widget { margin-bottom: 18px; }
.site-footer .widget-title {
	font-family: var(--font-ui);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--gold-soft);
}

.site-footer__legal {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: 22px 0;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.5);
}

.site-footer__legal-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: space-between;
	align-items: center;
}

.site-footer__legal p { margin: 0; }

@media (max-width: 960px) {
	.site-footer__grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ==========================================================================
   13. Motion
   ========================================================================== */

.reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.9s ease, transform 0.9s var(--ease-out);
	transition-delay: calc(var(--delay, 0) * 1ms);
}

.reveal.in {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal { opacity: 1; transform: none; transition: none; }
	.hero__scroll span { animation: none; }
	.feature { transition: none; }
	.feature:hover { transform: none; }
	.btn { transition: none; }
	.btn:hover { transform: none; }
}

/* ==========================================================================
   14. Responsive
   ========================================================================== */

@media (max-width: 1024px) {
	.hero { min-height: auto; padding-bottom: 88px; }
	.hero__inner { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 782px) {
	.section { padding: 72px 0; }
	.cta-band { padding: 80px 20px; }
	.hero__actions .btn { width: 100%; }
}

@media (max-width: 600px) {
	.container { padding: 0 18px; }
	.post-card__body { padding: 26px 22px; }
}