/*
Theme Name: Royal SPA & Hotel Resort
Theme URI: https://royalspahotel.example
Author: Custom build
Description: A five-star boutique hotel theme for Royal SPA & Hotel Resort — 18 boutique rooms, SPA, fitness club and event/banquet hall. Multilingual (EN / LV / RU) with an editable rooms catalogue and translated SPA/Fitness/Events pages.
Version: 1.0.0
Requires at least: 6.0
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: royal-spa-hotel
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root{
	--rh-forest:      #3B1626;
	--rh-forest-2:    #4C1E33;
	--rh-forest-soft: #63304F;
	--rh-gold:        #B98D3E;
	--rh-gold-light:  #E4C888;
	--rh-cream:       #F6F1E7;
	--rh-cream-2:     #EFE7D6;
	--rh-ivory:       #FFFFFF;
	--rh-ink:         #21261F;
	--rh-ink-soft:    #52584C;
	--rh-sage:        #8AA08F;
	--rh-line:        rgba(33,38,31,.12);

	--rh-font-display: "Fraunces", Georgia, "Times New Roman", serif;
	--rh-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

	--rh-radius-arch: 160px 160px 10px 10px;
	--rh-radius-card: 6px;
	--rh-container: 1180px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
	margin:0;
	font-family: var(--rh-font-body);
	color: var(--rh-ink);
	background: var(--rh-cream);
	font-size:16px;
	line-height:1.6;
	-webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family: var(--rh-font-display); font-weight:500; margin:0 0 .5em; color:var(--rh-forest); letter-spacing:.005em; }
h1{ font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight:500; line-height:1.05; }
h2{ font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height:1.15; }
h3{ font-size: 1.35rem; }
p{ margin:0 0 1em; }
button{ font-family:inherit; cursor:pointer; }
:focus-visible{ outline:2px solid var(--rh-gold); outline-offset:3px; }
@media (prefers-reduced-motion: reduce){
	*{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

.rh-container{ max-width: var(--rh-container); margin:0 auto; padding:0 28px; }
.rh-eyebrow{
	display:flex; align-items:center; gap:12px;
	font-family: var(--rh-font-body); text-transform:uppercase; letter-spacing:.18em;
	font-size:.72rem; font-weight:600; color: var(--rh-gold); margin-bottom:14px;
}
.rh-eyebrow::before{ content:""; width:26px; height:1px; background:var(--rh-gold); display:inline-block; }
.rh-eyebrow.center{ justify-content:center; }
.rh-section{ padding: 96px 0; }
.rh-section--tight{ padding: 64px 0; }
.rh-section--forest{ background:var(--rh-forest); color:var(--rh-cream); }
.rh-section--forest h2, .rh-section--forest h3{ color:var(--rh-ivory); }
.rh-section-head{ max-width:640px; margin:0 auto 52px; text-align:center; }
.rh-section-head p{ color:var(--rh-ink-soft); font-size:1.05rem; }
.rh-section--forest .rh-section-head p{ color:rgba(246,241,231,.78); }

/* signature arch image frame — echoes the SPA/resort archway motif used across the site */
.rh-arch{
	display:block;
	border-radius: var(--rh-radius-arch);
	overflow:hidden;
	position:relative;
	background:var(--rh-forest-2);
}
.rh-arch img{ width:100%; height:100%; object-fit:cover; }
.rh-arch > a{ display:block; width:100%; height:100%; }

.rh-btn{
	display:inline-flex; align-items:center; justify-content:center; gap:8px;
	padding:14px 26px; border-radius:2px; border:1px solid transparent;
	font-size:.86rem; font-weight:600; letter-spacing:.03em; text-transform:uppercase;
	transition:background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
	white-space:nowrap;
}
.rh-btn:hover{ transform:translateY(-1px); }
.rh-btn--gold{ background:var(--rh-gold); color:var(--rh-forest); }
.rh-btn--gold:hover{ background:var(--rh-gold-light); }
.rh-btn--outline{ border-color: currentColor; color:inherit; background:transparent; }
.rh-btn--outline:hover{ background:rgba(255,255,255,.08); }
.rh-btn--outline-dark{ border-color: var(--rh-forest); color:var(--rh-forest); background:transparent; }
.rh-btn--outline-dark:hover{ background:var(--rh-forest); color:var(--rh-ivory); }
.rh-btn--ghost{ color:var(--rh-forest); padding-left:0; padding-right:0; }
.rh-btn--ghost::after{ content:"→"; margin-left:6px; transition:margin .15s ease; }
.rh-btn--ghost:hover::after{ margin-left:12px; }

/* ==========================================================================
   Header
   ========================================================================== */
.rh-header{
	position:sticky; top:0; z-index:60;
	background:rgba(59,22,38,.92);
	color:var(--rh-ivory);
	border-bottom:1px solid rgba(255,255,255,.08);
}
/* backdrop-filter is on this ::before layer (not on .rh-header itself) so that
   .rh-header does NOT become a containing block for its position:fixed
   descendants (the mobile nav). Otherwise the fixed mobile menu gets
   confined to the header's own (tiny) box instead of the full viewport. */
.rh-header::before{
	content:"";
	position:absolute;
	inset:0;
	z-index:-1;
	pointer-events:none;
	backdrop-filter:saturate(140%) blur(8px);
	-webkit-backdrop-filter:saturate(140%) blur(8px);
}
.rh-header-inner{ display:flex; align-items:center; justify-content:space-between; gap:20px; padding:10px 0; }
.rh-logo{ display:flex; align-items:center; gap:12px; flex-shrink:0; }
.rh-logo img{ height:68px; width:auto; }
.rh-logo-text{ font-family:var(--rh-font-display); font-size:1.15rem; letter-spacing:.02em; line-height:1.15; }
.rh-logo-text span{ display:block; font-family:var(--rh-font-body); font-size:.62rem; letter-spacing:.22em; text-transform:uppercase; color:var(--rh-gold-light); margin-top:2px; }

.rh-nav{ display:flex; align-items:center; gap:30px; }
.rh-nav ul{ display:flex; gap:26px; }
.rh-nav a{ font-size:.86rem; letter-spacing:.03em; text-transform:uppercase; font-weight:500; opacity:.88; position:relative; padding:4px 0; }
.rh-nav a:hover, .rh-nav a.current{ opacity:1; }
.rh-nav a.current::after{ content:""; position:absolute; left:0; right:0; bottom:-4px; height:2px; background:var(--rh-gold); }

.rh-header-actions{ display:flex; align-items:center; gap:18px; flex-shrink:0; }
.rh-header-actions--nav{ display:none; }
.rh-lang-switch{ display:flex; gap:2px; background:rgba(255,255,255,.08); border-radius:20px; padding:3px; }
.rh-lang-switch a{ font-size:.7rem; font-weight:700; letter-spacing:.05em; padding:5px 10px; border-radius:16px; opacity:.7; }
.rh-lang-switch a:hover{ opacity:1; }
.rh-lang-switch a.active{ background:var(--rh-gold); color:var(--rh-forest); opacity:1; }

.rh-burger{ display:none; background:none; border:none; color:var(--rh-ivory); font-size:1.5rem; padding:4px; position:relative; z-index:80; }
.rh-mobile-controls{ display:none; align-items:center; gap:14px; }

@media (max-width: 980px){
	.rh-nav{ position:fixed; top:var(--rh-header-h, 84px); right:0; bottom:0; left:0; background:var(--rh-forest); flex-direction:column; align-items:flex-start; padding:28px 28px; gap:28px; overflow-y:auto; transform:translateX(100%); transition:transform .25s ease; z-index:70; }
	.rh-nav.is-open{ transform:translateX(0); }
	.rh-nav ul{ flex-direction:column; gap:18px; width:100%; }
	.rh-nav ul a{ font-size:1.1rem; }
	.rh-header-actions--desktop{ display:none; }
	.rh-header-actions--nav{ display:flex; flex-direction:column; align-items:flex-start; gap:16px; margin-top:8px; width:100%; }
	.rh-header-actions--nav .rh-btn{ width:100%; }
	.rh-mobile-controls{ display:flex; }
	.rh-burger{ display:block; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.rh-hero{
	position:relative;
	min-height: 86vh;
	display:flex; align-items:flex-end;
	color:var(--rh-ivory);
	background:linear-gradient(180deg, rgba(59,22,38,.35) 0%, rgba(59,22,38,.35) 40%, rgba(40,14,26,.92) 100%), var(--rh-forest);
	background-size:cover; background-position:center;
	overflow:hidden;
}
.rh-hero::before{
	content:""; position:absolute; inset:0;
	background-image:var(--rh-hero-image);
	background-size:cover; background-position:center;
	z-index:0;
}
.rh-hero::after{
	content:""; position:absolute; inset:0;
	background:linear-gradient(180deg, rgba(43,15,28,.25) 0%, rgba(43,15,28,.55) 55%, rgba(26,10,17,.94) 100%);
	z-index:1;
}
.rh-hero-content{ position:relative; z-index:2; padding: 60px 0 76px; width:100%; }
.rh-hero-stars{ display:flex; align-items:center; gap:8px; font-size:.78rem; letter-spacing:.14em; text-transform:uppercase; color:var(--rh-gold-light); margin-bottom:18px; }
.rh-hero h1{ color:var(--rh-ivory); margin-bottom:.35em; max-width:16ch; }
.rh-hero p{ max-width:52ch; font-size:1.12rem; color:rgba(246,241,231,.86); margin-bottom:34px; }
.rh-hero-actions{ display:flex; gap:16px; flex-wrap:wrap; }

/* ==========================================================================
   Intro
   ========================================================================== */
.rh-intro{ display:grid; grid-template-columns: 1.05fr .95fr; gap:64px; align-items:center; }
.rh-intro .rh-arch{ aspect-ratio:4/5; }
@media (max-width: 860px){ .rh-intro{ grid-template-columns:1fr; gap:36px; } .rh-intro .rh-arch{ order:-1; aspect-ratio:16/10; } }

/* ==========================================================================
   Facilities grid
   ========================================================================== */
.rh-facilities{ display:grid; grid-template-columns:repeat(4,1fr); gap:26px; }
.rh-facility-card{ background:var(--rh-ivory); border:1px solid var(--rh-line); border-radius:var(--rh-radius-card); overflow:hidden; display:flex; flex-direction:column; transition:box-shadow .2s ease, transform .2s ease; }
.rh-facility-card:hover{ box-shadow:0 22px 40px -20px rgba(59,22,38,.35); transform:translateY(-3px); }
.rh-facility-card .rh-arch{ border-radius:0 0 60px 0; aspect-ratio:4/3; }
.rh-facility-card-body{ padding:24px 22px 26px; flex:1; display:flex; flex-direction:column; }
.rh-facility-card-body p{ color:var(--rh-ink-soft); font-size:.94rem; flex:1; }
@media (max-width: 980px){ .rh-facilities{ grid-template-columns:repeat(2,1fr); } }
@media (max-width: 560px){ .rh-facilities{ grid-template-columns:1fr; } }

/* ==========================================================================
   Rooms — grid / cards
   ========================================================================== */
.rh-rooms-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:30px 26px; }
.rh-room-card{ background:var(--rh-ivory); border:1px solid var(--rh-line); border-radius:var(--rh-radius-card); overflow:hidden; display:flex; flex-direction:column; }
.rh-room-card-img{ aspect-ratio:4/3; overflow:hidden; }
.rh-room-card-img img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.rh-room-card:hover .rh-room-card-img img{ transform:scale(1.06); }
.rh-room-card-body{ padding:20px 22px 22px; display:flex; flex-direction:column; gap:10px; flex:1; }
.rh-room-meta{ display:flex; gap:14px; font-size:.8rem; color:var(--rh-ink-soft); }
.rh-room-price{ margin-top:auto; display:flex; align-items:baseline; justify-content:space-between; padding-top:12px; border-top:1px solid var(--rh-line); }
.rh-room-price .amount{ font-family:var(--rh-font-display); font-size:1.3rem; color:var(--rh-forest); }
.rh-room-price .amount small{ font-family:var(--rh-font-body); font-size:.7rem; color:var(--rh-ink-soft); font-weight:500; }
@media (max-width:980px){ .rh-rooms-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px){ .rh-rooms-grid{ grid-template-columns:1fr; } }

.rh-center{ text-align:center; margin-top:48px; }

/* Rooms archive header */
.rh-page-hero{
	position:relative; padding: 150px 0 70px; color:var(--rh-ivory);
	background:linear-gradient(180deg, rgba(43,15,28,.55), rgba(43,15,28,.92)), var(--rh-forest) center/cover;
}
.rh-page-hero.has-image{ background-image:linear-gradient(180deg, rgba(43,15,28,.55), rgba(43,15,28,.92)), var(--rh-page-hero-image); background-size:cover; background-position:center; }
.rh-page-hero h1{ color:var(--rh-ivory); margin-bottom:.3em; }
.rh-page-hero p{ max-width:56ch; color:rgba(246,241,231,.85); font-size:1.05rem; margin:0; }

/* ==========================================================================
   Single room
   ========================================================================== */
.rh-breadcrumb{ font-size:.82rem; color:var(--rh-ink-soft); margin-bottom:18px; }
.rh-breadcrumb a{ color:var(--rh-gold); }
.rh-room-header{ display:flex; justify-content:space-between; align-items:flex-end; gap:24px; flex-wrap:wrap; margin-bottom:34px; }
.rh-room-header .rh-room-price{ border:none; padding:0; }
.rh-room-gallery{ display:grid; grid-template-columns: 2fr 1fr; grid-auto-rows:170px; gap:14px; margin-bottom:56px; }
.rh-room-gallery a:first-child{ grid-row:span 2; }
.rh-room-gallery img{ width:100%; height:100%; object-fit:cover; border-radius:var(--rh-radius-card); }
@media (max-width:760px){ .rh-room-gallery{ grid-template-columns:1fr 1fr; grid-auto-rows:130px; } .rh-room-gallery a:first-child{ grid-column:span 2; grid-row:span 2; } }

.rh-room-content{ display:grid; grid-template-columns:1.5fr 1fr; gap:60px; }
.rh-room-features li{ display:flex; align-items:center; gap:10px; padding:9px 0; border-bottom:1px dashed var(--rh-line); font-size:.95rem; }
.rh-room-features li::before{ content:"—"; color:var(--rh-gold); }
.rh-booking-box{ background:var(--rh-forest); color:var(--rh-ivory); border-radius:var(--rh-radius-card); padding:30px 26px; align-self:start; position:sticky; top:96px; }
.rh-booking-box .amount{ font-family:var(--rh-font-display); font-size:2rem; display:block; color:var(--rh-gold-light); }
.rh-booking-box .rh-btn{ width:100%; margin-top:18px; }
@media (max-width:900px){ .rh-room-content{ grid-template-columns:1fr; } .rh-booking-box{ position:static; } }

/* ==========================================================================
   Facility page (SPA / Fitness / Events)
   ========================================================================== */
.rh-facility-layout{ display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:start; }
.rh-facility-layout .rh-arch{ aspect-ratio:3/4; }
.rh-highlights{ display:grid; grid-template-columns:1fr 1fr; gap:6px 24px; margin:26px 0; }
.rh-highlights li{ padding:10px 0; border-bottom:1px solid var(--rh-line); font-size:.94rem; }
.rh-highlights li::before{ content:"✦ "; color:var(--rh-gold); }
.rh-facility-actions{ display:flex; gap:14px; flex-wrap:wrap; margin-top:22px; }
.rh-hours{ margin-top:20px; font-size:.9rem; color:var(--rh-ink-soft); }
@media (max-width:860px){ .rh-facility-layout{ grid-template-columns:1fr; gap:32px; } .rh-facility-layout .rh-arch{ aspect-ratio:16/10; } .rh-highlights{ grid-template-columns:1fr; } }

.rh-mini-gallery{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:20px; }
.rh-mini-gallery a{ display:block; border-radius:var(--rh-radius-card); overflow:hidden; aspect-ratio:1/1; position:relative; cursor:zoom-in; }
.rh-mini-gallery img{ width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.rh-mini-gallery a:hover img{ transform:scale(1.08); }
@media (max-width:640px){ .rh-mini-gallery{ grid-template-columns:repeat(2,1fr); } }

/* Lightbox (room photos, spa & fitness galleries) — swipeable, arrow-key & button navigation */
.rh-lightbox-overlay .rh-lightbox-inner{ position:relative; background:transparent; padding:0; max-width:90vw; max-height:88vh; box-shadow:none; touch-action:pan-y; }
.rh-lightbox-overlay img{ max-width:90vw; max-height:88vh; width:auto; height:auto; border-radius:4px; display:block; margin:0 auto; user-select:none; }
.rh-lightbox-overlay .rh-modal-close{ top:-38px; right:0; color:var(--rh-ivory); font-size:2rem; }

.rh-lightbox-nav{
	position:absolute;
	top:50%;
	transform:translateY(-50%);
	background:rgba(20,20,20,.45);
	color:var(--rh-ivory);
	border:1px solid rgba(255,255,255,.35);
	width:46px;
	height:46px;
	border-radius:50%;
	display:flex;
	align-items:center;
	justify-content:center;
	font-size:1.1rem;
	line-height:1;
	cursor:pointer;
	transition:background .2s ease, transform .2s ease;
	z-index:2;
}
.rh-lightbox-nav:hover{ background:rgba(20,20,20,.75); }
.rh-lightbox-prev{ left:-8px; }
.rh-lightbox-next{ right:-8px; }
@media (max-width:760px){
	.rh-lightbox-prev{ left:4px; }
	.rh-lightbox-next{ right:4px; }
	.rh-lightbox-nav{ width:40px; height:40px; }
}
.rh-lightbox-counter{
	position:absolute;
	left:50%;
	bottom:-34px;
	transform:translateX(-50%);
	color:var(--rh-ivory);
	font-size:.82rem;
	letter-spacing:.06em;
	opacity:.85;
}

/* ==========================================================================
   Contacts page
   ========================================================================== */
.rh-contacts-grid{ display:grid; grid-template-columns:1fr 1fr; gap:60px; }
.rh-contact-list{ margin-top:24px; }
.rh-contact-list li{ padding:14px 0; border-bottom:1px solid var(--rh-line); }
.rh-contact-list .label{ display:block; font-size:.72rem; text-transform:uppercase; letter-spacing:.1em; color:var(--rh-gold); margin-bottom:4px; }
.rh-contact-list .value{ font-size:1.05rem; }
@media (max-width:860px){ .rh-contacts-grid{ grid-template-columns:1fr; gap:36px; } }

/* ==========================================================================
   Form (used both inline on contacts page and inside the modal)
   ========================================================================== */
.rh-form-field{ margin-bottom:16px; }
.rh-form-field label{ display:block; font-size:.78rem; text-transform:uppercase; letter-spacing:.06em; margin-bottom:6px; color:var(--rh-ink-soft); }
.rh-form-field input, .rh-form-field textarea{
	width:100%; padding:12px 14px; border:1px solid var(--rh-line); border-radius:3px;
	font-family:inherit; font-size:.95rem; background:var(--rh-ivory); color:var(--rh-ink);
}
.rh-form-field input:focus, .rh-form-field textarea:focus{ border-color:var(--rh-gold); }
.rh-form-hp{ position:absolute; left:-9999px; }
.rh-form-msg{ font-size:.88rem; padding:12px 14px; border-radius:3px; margin-top:6px; display:none; }
.rh-form-msg.success{ display:block; background:#e7f2ea; color:#1c5b39; }
.rh-form-msg.error{ display:block; background:#faeaea; color:#8a2a2a; }

/* ==========================================================================
   Modal
   ========================================================================== */
.rh-modal-overlay{
	position:fixed; inset:0; background:rgba(16,28,23,.66); z-index:100;
	display:flex; align-items:center; justify-content:center; padding:20px;
	opacity:0; pointer-events:none; transition:opacity .2s ease;
}
.rh-modal-overlay.is-open{ opacity:1; pointer-events:auto; }
.rh-modal{
	background:var(--rh-cream); width:100%; max-width:460px; border-radius:6px;
	padding:34px 30px; position:relative; transform:translateY(14px); transition:transform .2s ease;
	max-height:88vh; overflow-y:auto;
}
.rh-modal-overlay.is-open .rh-modal{ transform:translateY(0); }
.rh-modal-close{ position:absolute; top:16px; right:16px; background:none; border:none; font-size:1.4rem; line-height:1; color:var(--rh-ink-soft); }
.rh-modal h3{ margin-bottom:6px; }
.rh-modal .rh-modal-sub{ color:var(--rh-ink-soft); font-size:.9rem; margin-bottom:22px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.rh-footer{ background:var(--rh-forest); color:rgba(246,241,231,.75); padding:70px 0 30px; }
.rh-footer-top{ display:grid; grid-template-columns:1.3fr 1fr 1fr 1fr; gap:40px; padding-bottom:44px; border-bottom:1px solid rgba(255,255,255,.12); }
.rh-footer-brand .rh-logo-text{ color:var(--rh-ivory); }
.rh-footer-logo{ display:inline-block; }
.rh-footer-logo img{ height:64px; width:auto; }
.rh-footer-brand p{ margin-top:16px; max-width:34ch; font-size:.92rem; }
.rh-footer h4{ color:var(--rh-ivory); font-family:var(--rh-font-body); font-size:.78rem; text-transform:uppercase; letter-spacing:.1em; margin-bottom:16px; }
.rh-footer ul li{ margin-bottom:10px; font-size:.92rem; }
.rh-footer a:hover{ color:var(--rh-gold-light); }
.rh-footer-social{ display:flex; gap:12px; margin-top:16px; }
.rh-footer-social a{ width:34px; height:34px; border:1px solid rgba(255,255,255,.25); border-radius:50%; display:flex; align-items:center; justify-content:center; color:var(--rh-ivory); transition:background .2s ease, border-color .2s ease; }
.rh-footer-social a:hover{ background:var(--rh-gold); border-color:var(--rh-gold); color:var(--rh-forest); }
.rh-footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding-top:26px; font-size:.8rem; flex-wrap:wrap; gap:10px; }
@media (max-width:860px){ .rh-footer-top{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .rh-footer-top{ grid-template-columns:1fr; } }

/* ==========================================================================
   Utility
   ========================================================================== */
.rh-visually-hidden{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
