/*
Theme Name: BELAROSA
Theme URI: https://belarosahotel.com
Author: Hotel BELAROSA
Description: Custom block theme for Hotel BELAROSA Boutique, Antigua Guatemala. Built to turn visitors into direct reservations: persistent "Book" calls to action linked to the Cloudbeds booking engine, a room collection, and the story of the house.
Requires at least: 6.6
Tested up to: 7.2
Requires PHP: 7.4
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: belarosa
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { height: auto; }
::selection { background: #A8434F; color: #fff; }

/* Eyebrow / small caps label */
.is-style-eyebrow,
.br-eyebrow {
	font-family: Jost, sans-serif;
	font-size: 0.75rem !important;
	font-weight: 500;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--wp--preset--color--rose);
}
.has-jade-background-color .br-eyebrow,
.wp-block-cover .br-eyebrow { color: var(--wp--preset--color--gold); }

/* Outline button style */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	border: 1px solid currentColor;
	color: inherit;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: #fff;
	color: var(--wp--preset--color--ink);
	border-color: #fff;
}
.wp-block-button__link { transition: background-color .25s ease, color .25s ease, border-color .25s ease; }

/* ---------- Header ---------- */
.br-header {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: saturate(140%) blur(8px);
	-webkit-backdrop-filter: saturate(140%) blur(8px);
	background: rgba(247, 241, 232, 0.94) !important;
	border-bottom: 1px solid rgba(43, 36, 32, 0.08);
}
.admin-bar .br-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .br-header { top: 0; } }
.br-header .wp-block-site-title a { text-decoration: none; }
.br-tagline { font-size: 0.6875rem !important; letter-spacing: 0.26em; text-transform: uppercase; color: var(--wp--preset--color--muted); margin: 0.3rem 0 0 !important; line-height: 1 !important; }
.br-header .wp-block-navigation a { text-decoration: none; }
.br-header .wp-block-navigation a:hover { color: var(--wp--preset--color--rose); }
.br-header .wp-block-button__link { padding: 0.85rem 1.4rem; }
@media (max-width: 600px) {
	.br-tagline { display: none; }
	.br-header .wp-block-site-title { font-size: 1.55rem !important; }
	.br-header .wp-block-button__link { padding: 0.75rem 1rem; letter-spacing: 0.1em; }
}

/* ---------- Hero ---------- */
.br-hero .wp-block-cover__inner-container { max-width: 1240px; }
.br-hero h1 { color: #fff; text-wrap: balance; }
.br-hero p { color: rgba(255,255,255,.92); }
.br-hero .wp-block-cover__image-background { animation: br-slowzoom 18s ease-out both; }
@keyframes br-slowzoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .br-hero .wp-block-cover__image-background { animation: none; } }

/* Booking strip under the hero */
.br-strip {
	margin-top: -3.25rem !important;
	position: relative;
	z-index: 2;
	box-shadow: 0 18px 50px -20px rgba(43, 36, 32, 0.35);
}
.br-strip .br-strip-item p { margin: 0; }
.br-strip .br-strip-label { font-size: 0.6875rem !important; letter-spacing: 0.22em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.br-strip .br-strip-value { font-family: "Cormorant Garamond", serif; font-size: 1.6rem; line-height: 1.2; }
@media (max-width: 781px) {
	.br-strip { margin-top: 0 !important; box-shadow: none; }
}

/* ---------- Room cards ---------- */
.br-room-card { background: #fff; height: 100%; display: flex; flex-direction: column; }
.br-room-card .br-room-media { overflow: hidden; margin: 0 !important; aspect-ratio: 4 / 3; background: var(--wp--preset--color--sand); }
.br-room-card .br-room-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); display: block; }
.br-room-card:hover .br-room-media img { transform: scale(1.05); }
.br-room-card .br-room-body { padding: 1.5rem 1.6rem 1.75rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.br-room-card h3 { margin: 0; font-size: 1.75rem; }
.br-room-card h3 a { color: inherit; text-decoration: none; }
.br-room-meta { font-size: 0.75rem !important; letter-spacing: 0.16em; text-transform: uppercase; color: var(--wp--preset--color--muted); margin: 0 !important; }
.br-room-note { color: var(--wp--preset--color--muted); margin: 0 !important; font-size: 0.975rem; flex: 1; }
.br-room-link { margin-top: 0.4rem !important; font-size: 0.75rem !important; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; }
.br-room-link a { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.br-room-placeholder {
	aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, var(--wp--preset--color--rose) 0%, var(--wp--preset--color--jade) 100%);
	color: #fff; font-family: "Cormorant Garamond", serif; font-size: 2rem; font-style: italic;
}

/* ---------- Amenities ---------- */
.br-amenity { border-top: 1px solid rgba(196, 154, 90, 0.55); padding-top: 1.25rem; }
.br-amenity h4 { margin: 0 0 .35rem; }
.br-amenity p { margin: 0; color: var(--wp--preset--color--muted); font-size: 0.95rem; }
.has-jade-background-color .br-amenity p { color: rgba(255,255,255,.72); }

/* ---------- Media frame ---------- */
.br-frame img { box-shadow: 0 30px 60px -30px rgba(43,36,32,.45); }
.br-offset { position: relative; }
@media (min-width: 782px) {
	.br-offset-img { margin-top: 5rem !important; }
}

/* Map embed */
.br-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; filter: saturate(0.85) contrast(1.02); }

/* Footer */
.br-footer a { color: inherit; text-decoration: none; }
.br-footer a:hover { color: var(--wp--preset--color--gold); }
.br-footer .br-footer-small { color: rgba(255,255,255,.6); }

/* Floating mobile booking bar */
.br-mobile-book { display: none; }
@media (max-width: 781px) {
	.br-mobile-book {
		display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
		padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
		background: rgba(247,241,232,.97); border-top: 1px solid rgba(43,36,32,.1);
	}
	.br-mobile-book a {
		display: block; text-align: center; background: var(--wp--preset--color--rose); color: #fff;
		font-size: .8125rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
		padding: 1rem; text-decoration: none;
	}
	.br-footer { padding-bottom: calc(var(--wp--preset--spacing--40) + 5rem) !important; }
}

/* Generic page header band */
.br-page-hero h1 { text-wrap: balance; }
.br-text-balance { text-wrap: balance; }

/* ---------- Layout fixes ---------- */
.wp-site-blocks > * + * { margin-block-start: 0; }
.br-room-card > * { margin-block-start: 0 !important; }
.br-map iframe { background: var(--wp--preset--color--sand); }
.wp-block-button.is-style-outline > .wp-block-button__link { padding: calc(1.05rem - 1px) calc(2rem - 1px); }
.br-room-card .br-room-media a { display: block; height: 100%; }

@media (max-width: 781px) {
	.br-strip { display: grid !important; grid-template-columns: 1fr 1fr; gap: 1.25rem 1rem !important; }
	.br-strip > .wp-block-column:last-child { grid-column: 1 / -1; }
	.br-strip .br-strip-value { font-size: 1.3rem; }
}
@media (min-width: 782px) {
	.br-hero-home { padding-bottom: calc(var(--wp--preset--spacing--70) + 3rem) !important; }
}

/* Wordmark — BELAROSA is always written in capitals */
.br-wordmark { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.85rem !important; font-weight: 500; letter-spacing: 0.14em; line-height: 1 !important; margin: 0 !important; }
.br-wordmark a { color: var(--wp--preset--color--ink); text-decoration: none; }
@media (max-width: 600px) { .br-wordmark { font-size: 1.5rem !important; } }

/* ---------- Language menu ---------- */
.br-lang { position: relative; font-family: Jost, sans-serif; }
.br-lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .45rem; font-size: .75rem; font-weight: 500; letter-spacing: .12em; padding: .45rem .55rem; border: 1px solid rgba(43,36,32,.18); }
.br-lang summary::-webkit-details-marker { display: none; }
.br-lang summary:hover { border-color: var(--wp--preset--color--rose); }
.br-flag { display: block; flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.br-lang-caret { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.br-lang-list { position: absolute; right: 0; top: calc(100% + .5rem); margin: 0; padding: .4rem 0; list-style: none; background: #fff; min-width: 13rem; box-shadow: 0 18px 40px -12px rgba(43,36,32,.35); z-index: 80; }
.br-lang-list a { display: flex; align-items: center; gap: .7rem; padding: .55rem 1rem; color: var(--wp--preset--color--ink); text-decoration: none; font-size: .95rem; }
.br-lang-list a:hover, .br-lang-list a[aria-current] { background: var(--wp--preset--color--cream); color: var(--wp--preset--color--rose); }
.br-lang-note { padding: .5rem 1rem .3rem; margin-top: .3rem; border-top: 1px solid rgba(43,36,32,.08); font-size: .72rem; color: var(--wp--preset--color--muted); line-height: 1.4; }


@media (max-width: 600px) { .br-lang summary { padding: .4rem; } .br-lang-code, .br-lang-caret { display: none; } }

/* ---------- Book direct / events ---------- */
.br-perk { height: 100%; }
.br-perk > * { margin-block-start: 0; }
.br-perk h3 { font-size: 1.6rem; margin: .4rem 0 .5rem; }
.br-perk p:last-child { color: var(--wp--preset--color--muted); margin: 0; }
.br-perk-num { font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 1.1rem !important; color: var(--wp--preset--color--gold); margin: 0 !important; }
.br-stat { border-top: 1px solid rgba(196,154,90,.55); padding-top: 1rem; }
.br-stat p { margin: 0; color: rgba(255,255,255,.75); }
.br-stat .br-stat-num { font-family: "Cormorant Garamond", serif; font-size: clamp(3rem, 6vw, 4.5rem) !important; line-height: 1; color: #fff; margin-bottom: .5rem !important; }
.br-checklist { padding-left: 0; list-style: none; }
.br-checklist li { padding: .55rem 0 .55rem 1.6rem; border-bottom: 1px solid rgba(43,36,32,.08); position: relative; }
.br-checklist li::before { content: ""; position: absolute; left: .2rem; top: 1.05rem; width: .5rem; height: .5rem; background: var(--wp--preset--color--rose); transform: rotate(45deg); }

/* Header fit */
.br-header .wp-block-button__link, .br-header .wp-block-navigation-item__label, .br-tagline { white-space: nowrap; }
.br-header .wp-block-navigation__container { flex-wrap: nowrap; }
.br-header .wp-block-navigation { letter-spacing: 0.1em; }
@media (max-width: 1360px) { .br-tagline { display: none; } }
@media (max-width: 1240px) { .br-header .br-nav-optional { display: none; } }
@media (max-width: 600px) { .br-header .wp-block-button__link { padding: 0.7rem 0.85rem; font-size: 0.72rem; } .br-wordmark { font-size: 1.35rem !important; letter-spacing: .1em; } }
@media (max-width: 1520px) { html[lang="es"] .br-tagline { display: none; } }
