/* ==========================================================================
   Hotel Emerald Blocks — Shared Utilities & Elements
   All CSS vars reference theme.json design tokens.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Shared: Typography & Elements
   -------------------------------------------------------------------------- */

/* Gold uppercase label (Epilogue) */
.he-label {
	font-family: var(--wp--preset--font-family--epilogue);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--wp--preset--color--gold);
}
.he-label--xs {
	font-size: var(--wp--preset--font-size--x-small);
}
.he-label--label-sm {
	font-size: var(--wp--preset--font-size--label-sm);
}
.he-label--white {
	color: rgba(255, 255, 255, 0.9);
}
.he-label--muted {
	color: rgba(61, 61, 56, 0.5);
}
.he-label--emerald {
	color: var(--wp--preset--color--emerald);
	opacity: 0.6;
}
.he-label--wide {
	letter-spacing: 3px;
}
.he-label--no-spacing {
	letter-spacing: 0px;
}

/* Section heading (Playfair Display) */
.he-heading {
	font-family: var(--wp--preset--font-family--playfair);
	font-size: clamp(1.8rem, 3.5vw, 2.8rem);
	font-weight: 400;
	line-height: 1.2;
	color: var(--wp--preset--color--emerald);
}
.he-heading--white {
	color: #fff;
}
.he-heading--italic {
	font-style: italic;
	font-weight: 300;
}
.he-heading--lg {
	font-size: clamp(1.8rem, 4vw, 3rem);
}
.he-heading--card {
	font-size: var(--wp--preset--font-size--body-lg);
	font-style: italic;
}
.he-heading--room {
	font-size: clamp(1.5rem, 2.5vw, 2.2rem);
	font-style: italic;
}

/* Body paragraph */
.he-body {
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.8;
	color: var(--wp--preset--color--body);
	margin: 0;
}
.he-body--white {
	color: rgba(255, 255, 255, 0.8);
}
.he-body + .he-body {
	margin-top: 1rem;
}

/* Prose: auto-wrapped paragraphs via wpautop() */
.he-prose p {
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.8;
	color: var(--wp--preset--color--body);
	margin: 0;
}
.he-prose p + p {
	margin-top: 1rem;
}
.he-prose--white p {
	color: rgba(255, 255, 255, 0.8);
}

/* Emerald button — base (solid emerald, hover gold) */
.he-btn {
	display: inline-block;
	padding: 0.875rem 1.75rem;
	background: var(--wp--preset--color--emerald);
	color: #fff;
	font-family: var(--wp--preset--font-family--epilogue);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 1px;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	transition: all 0.3s ease;
}
.he-btn:hover {
	background: var(--wp--preset--color--gold);
	color: #fff;
}
.he-btn:active {
	transform: scale(0.97);
}
.he-btn--wide {
	padding-left: 2.5rem;
	padding-right: 2.5rem;
}

/* Outline variant (transparent, emerald border, hover fill) */
.he-btn--outline {
	background: transparent;
	border-color: var(--wp--preset--color--emerald);
	color: var(--wp--preset--color--emerald);
}
.he-btn--outline:hover {
	background: var(--wp--preset--color--emerald);
	color: #fff;
}

/* Ghost variant (transparent, white border, hover gold) */
.he-btn--ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.3);
	color: #fff;
}
.he-btn--ghost:hover {
	background: transparent;
	border-color: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--gold);
}

/* Gold variant (solid gold, hover white) */
.he-btn--gold {
	background: var(--wp--preset--color--gold);
	color: #fff;
}
.he-btn--gold:hover {
	background: #fff;
	color: var(--wp--preset--color--emerald);
}

/* Gold diamond divider */
.he-divider {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
}
.he-divider__line {
	height: 1px;
	width: 32px;
	background: var(--wp--preset--color--gold);
}
.he-divider__diamond {
	width: 6px;
	height: 6px;
	transform: rotate(45deg);
	border: 1px solid var(--wp--preset--color--gold);
}

/* Gold accent bar */
.he-accent-bar {
	width: 48px;
	height: 1px;
	background: var(--wp--preset--color--gold);
}

/* Shared section wrapper */
.he-section {
	padding: 6rem 1.5rem;
}

/* Constrained inner container — uses wideSize for hotel block layouts */
.he-container {
	max-width: var(--wp--style--global--wide-size, 87.5rem);
	margin: 0 auto;
}

/* Two-column grid */
.he-grid-2 {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	align-items: center;
}
@media (min-width: 768px) {
	.he-grid-2 {
		grid-template-columns: 1fr 1fr;
		gap: 5rem;
	}
}

/* Image with overflow hidden */
.he-img-wrap {
	overflow: hidden;
}
.he-img-wrap img {
	width: 100%;
	height: 100%;
	display: block;
}

/* Spacing helpers */
.he-mt-1  { margin-top: 1rem; }
.he-mt-15 { margin-top: 1.5rem; }
.he-mt-2  { margin-top: 2rem; }
.he-mt-25 { margin-top: 2.5rem; }
.he-mt-4  { margin-top: 4rem; }
.he-mt-5  { margin-top: 5rem; }
.he-mb-15 { margin-bottom: 1.5rem; }
.he-text-center { text-align: center; }

/* Main content area — offset for fixed header (topbar + main bar) */
.site-main {
	padding-top: 120px;  /* topbar ~40px + mobile header 80px */
	margin: 0;
	min-height: 70vh;
}
@media (min-width: 1024px) {
	.site-main {
		padding-top: 156px;  /* topbar ~40px + desktop header 116px */
	}
}

/* --------------------------------------------------------------------------
   Editor: full-width blocks in post editor
   -------------------------------------------------------------------------- */
.editor-styles-wrapper .alignfull {
	max-width: none !important;
	width: 100vw;
	margin-left: calc(-50vw + 50%) !important;
	margin-right: calc(-50vw + 50%) !important;
}

/* --------------------------------------------------------------------------
   Layout resets
   -------------------------------------------------------------------------- */
:root :where(.is-layout-flow) > *,
:root :where(.is-layout-constrained) > * {
	margin-block-start: 0 !important;
}
.he-content-page.is-layout-constrained > * {
	margin-block-start: 1.5rem !important;
}
.he-content-page.is-layout-constrained > :first-child {
	margin-block-start: 0 !important;
}

:where(.wp-site-blocks) > * {
	margin-block-start: 0 !important;
}

/* --------------------------------------------------------------------------
   Text Page (Privacy, Terms, etc.)
   -------------------------------------------------------------------------- */
.text-page__title {
	font-family: var(--wp--preset--font-family--playfair);
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: 400;
	color: var(--wp--preset--color--ink);
	margin-bottom: 2.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid rgba(0, 87, 61, 0.1);
}

.text-page__content p,
.text-page__content li {
	font-family: var(--wp--preset--font-family--quicksand);
	font-size: 1rem;
	line-height: 1.9;
	color: var(--wp--preset--color--body);
}
.text-page__content p {
	margin-bottom: 1.25rem;
}
.text-page__content h2 {
	font-size: clamp(1.5rem, 3vw, 1.75rem);
	margin-top: 2.5rem;
	margin-bottom: 1rem;
}
.text-page__content h3 {
	font-size: clamp(1.2rem, 2.5vw, 1.4rem);
	margin-top: 2rem;
	margin-bottom: 0.75rem;
}
.text-page__content ul,
.text-page__content ol {
	padding-left: 1.5rem;
	margin-bottom: 1.25rem;
}
.text-page__content li {
	margin-bottom: 0.4rem;
}
.text-page__content a {
	color: var(--wp--preset--color--emerald);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.text-page__content a:hover {
	color: var(--wp--preset--color--gold);
}
@media (min-width: 768px) {
	.text-page__content p,
	.text-page__content li {
		font-size: 1.0625rem;
	}
}

/* --------------------------------------------------------------------------
   Booking Form (shared between hero-carousel and book-cta)
   -------------------------------------------------------------------------- */
.booking-form {
	display: flex;
	flex-direction: column;
	border: 1px solid;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
.booking-form--dark {
	border-color: rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.1);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
}
.booking-form--light {
	border-color: rgba(0, 87, 61, 0.1);
	background: #fff;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}
.booking-form--light .booking-form__label {
	color: var(--wp--preset--color--body);
}
.booking-form--light .booking-form__input {
	color: var(--wp--preset--color--ink);
	color-scheme: light;
}
.booking-form--light .booking-form__field {
	border-right-color: rgba(0, 87, 61, 0.1);
}
@media (min-width: 640px) {
	.booking-form {
		flex-direction: row;
		align-items: center;
	}
}
.booking-form__field {
	display: flex;
	flex-direction: column;
	padding: 1rem 1.5rem;
}
@media (min-width: 640px) {
	.booking-form__field {
		border-right: 1px solid rgba(255, 255, 255, 0.15);
	}
}
.booking-form__label {
	font-family: var(--wp--preset--font-family--epilogue);
	font-size: var(--wp--preset--font-size--label-sm);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: rgba(255, 255, 255, 0.5);
}
.booking-form__input {
	margin-top: 4px;
	width: 150px;
	border: none;
	background: transparent;
	font-family: var(--wp--preset--font-family--quicksand);
	font-size: var(--wp--preset--font-size--small);
	color: #fff;
	color-scheme: dark;
	outline: none;
}

.booking-form__input option {
	color: var(--wp--preset--color--body);
}

.booking-form__submit {
	padding: 1rem 2.5rem;
	background: var(--wp--preset--color--emerald);
	color: #fff;
	font-family: var(--wp--preset--font-family--epilogue);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 2px;
	border: none;
	cursor: pointer;
	transition: background 0.3s ease;
}
@media (min-width: 640px) {
	.booking-form__submit {
		align-self: stretch;
	}
}
.booking-form__submit:hover {
	background: var(--wp--preset--color--gold);
}
