/* ==========================================================================
   Hotel Rio Lindo — base theme styles
   Theme by ITS DIGITAL INDIA
   ========================================================================== */

:root {
	--rl-green: #0f3d33;
	--rl-green-2: #17503f;
	--rl-green-3: #235e4c;
	--rl-cream: #f7f1e6;
	--rl-sand: #efe5d3;
	--rl-orange: #e2703a;
	--rl-orange-dark: #c65a27;
	--rl-brown: #2a1d15;
	--rl-brown-2: #3a2a1f;
	--rl-ink: #1c2925;
	--rl-muted: #5d6a64;
	--rl-line: rgba(15, 61, 51, 0.12);
	--rl-white: #ffffff;

	--rl-font-head: "Fraunces", Georgia, "Times New Roman", serif;
	--rl-font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--rl-radius: 18px;
	--rl-radius-sm: 12px;
	--rl-shadow: 0 18px 40px -18px rgba(15, 40, 32, 0.35);
	--rl-shadow-sm: 0 6px 18px -8px rgba(15, 40, 32, 0.25);
	--rl-container: 1240px;
	--rl-gutter: 24px;
	--rl-header-h: 84px;
}

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

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

body {
	margin: 0;
	background: var(--rl-cream);
	color: var(--rl-ink);
	font-family: var(--rl-font-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

a { color: var(--rl-green-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rl-orange); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--rl-font-head);
	font-weight: 600;
	line-height: 1.15;
	color: var(--rl-green);
	margin: 0 0 0.5em;
	letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--rl-orange); outline-offset: 2px; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; z-index: 100000;
	top: 8px; left: 8px; padding: 12px 18px; background: var(--rl-white); color: var(--rl-green);
}

.rl-container { width: 100%; max-width: var(--rl-container); margin: 0 auto; padding: 0 var(--rl-gutter); }
.rl-container--narrow { max-width: 820px; }
.rl-section { padding: 80px 0; }

.rl-icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.rl-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
	font: 600 15px/1 var(--rl-font-body); letter-spacing: 0.02em;
	text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.rl-btn:hover { transform: translateY(-1px); }
.rl-btn--primary { background: var(--rl-orange); color: var(--rl-white); }
.rl-btn--primary:hover { background: var(--rl-orange-dark); color: var(--rl-white); }
.rl-btn--outline { border-color: currentColor; color: var(--rl-green); background: transparent; }
.rl-btn--outline:hover { background: var(--rl-green); border-color: var(--rl-green); color: var(--rl-white); }
.rl-btn--block { width: 100%; }

.rl-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--rl-orange); }

.rl-eyebrow {
	display: block; margin: 0 0 12px;
	font: 600 12px/1.4 var(--rl-font-body); letter-spacing: 0.28em; text-transform: uppercase;
	color: var(--rl-orange);
}

/* ---------- Header ---------- */
.rl-site-header { position: relative; z-index: 900; background: var(--rl-cream); }
/* Sticky header: the top bar scrolls away naturally (negative top offset = its height),
   the main bar stays pinned. Nothing changes height, so the page never jumps. */
.rl-sticky-header .rl-site-header { position: sticky; top: calc(-1 * var(--rl-topbar-h, 0px)); }
.admin-bar.rl-sticky-header .rl-site-header { top: calc(32px - var(--rl-topbar-h, 0px)); }
@media (max-width: 782px) { .admin-bar.rl-sticky-header .rl-site-header { top: calc(-1 * var(--rl-topbar-h, 0px)); } }
.rl-site-header { transition: box-shadow .25s ease; }
.rl-site-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(0, 0, 0, 0.35); }

/* Top bar collapses when the page is scrolled */
.rl-topbar {
	background: var(--rl-green); color: rgba(255, 255, 255, 0.85);
	font-size: 13px;
}
.rl-topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.rl-topbar__items { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
.rl-topbar__items > * { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.rl-topbar__items a:hover { color: var(--rl-white); }

.rl-mainbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--rl-header-h); gap: 24px; }
.rl-logo img, .rl-mainbar__brand img, .custom-logo { width: auto; max-height: 46px; height: auto; }

/* ---------- Navigation ([rl_nav]) ---------- */
.rl-nav { display: flex; align-items: center; }
.rl-nav__panel { display: flex; align-items: center; gap: 28px; }
.rl-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.rl-menu li { position: relative; }
.rl-menu a {
	display: block; padding: 10px 14px; border-radius: 999px;
	font: 500 15px/1.2 var(--rl-font-body); color: var(--rl-ink); text-decoration: none; transition: color .2s, background .2s;
}
.rl-menu a:hover,
.rl-menu .current-menu-item > a,
.rl-menu .current_page_item > a { color: var(--rl-orange); }
.rl-menu .sub-menu {
	list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 210px;
	background: var(--rl-white); border-radius: var(--rl-radius-sm); box-shadow: var(--rl-shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s;
}
.rl-menu li:hover > .sub-menu,
.rl-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.rl-menu .sub-menu a { border-radius: 8px; }

.rl-nav__toggle, .rl-nav__close {
	display: none; background: none; border: 0; padding: 8px; color: var(--rl-green); cursor: pointer; line-height: 0;
}

@media (max-width: 1024px) {
	.rl-nav__toggle { display: inline-flex; }
	.rl-nav__panel {
		position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 86vw); z-index: 1001;
		flex-direction: column; align-items: stretch; gap: 18px; padding: 72px 24px 32px;
		background: var(--rl-cream); box-shadow: -20px 0 40px -20px rgba(0, 0, 0, 0.35);
		transform: translateX(100%); transition: transform .3s ease; overflow-y: auto;
	}
	.rl-nav.is-open .rl-nav__panel { transform: none; }
	.rl-nav__close { display: inline-flex; position: absolute; top: 16px; right: 16px; }
	.rl-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.rl-menu a { padding: 14px 6px; border-radius: 0; border-bottom: 1px solid var(--rl-line); font-size: 17px; }
	.rl-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: none; padding: 0 0 0 14px; }
	.rl-nav__backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(10, 30, 25, 0.5); }
	.rl-nav__backdrop[hidden] { display: none; }
	.rl-nav__cta { width: 100%; }
	body.rl-menu-open { overflow: hidden; }
}

/* ---------- Social ---------- */
.rl-social { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.rl-social a {
	display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
	color: inherit; border: 1px solid currentColor; opacity: .85; transition: .2s;
}
.rl-social a:hover { opacity: 1; background: var(--rl-orange); border-color: var(--rl-orange); color: var(--rl-white); }
.rl-topbar .rl-social a { width: 26px; height: 26px; border: 0; }

/* ---------- Footer (fallback) ---------- */
.rl-site-footer { background: var(--rl-green); color: rgba(255, 255, 255, 0.78); }
.rl-footer { padding: 72px 0 0; }
.rl-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.4fr; gap: 40px; }
.rl-footer h4 { color: var(--rl-white); font-family: var(--rl-font-body); font-size: 13px; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 18px; }
.rl-footer .rl-logo img { max-height: 54px; margin-bottom: 16px; }
.rl-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.rl-footer a:hover { color: var(--rl-orange); }
.rl-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rl-footer__bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
	margin-top: 56px; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 14px;
}
.rl-credit strong { color: var(--rl-white); font-weight: 600; }
@media (max-width: 960px) { .rl-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .rl-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Contact info list ---------- */
.rl-contact-info { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.rl-contact-info li { display: flex; gap: 14px; align-items: flex-start; }
.rl-contact-info__icon {
	display: inline-grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%;
	background: rgba(226, 112, 58, 0.14); color: var(--rl-orange);
}
.rl-contact-info small { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; opacity: .7; }
.rl-contact-info a { text-decoration: none; color: inherit; }

/* ---------- Forms ---------- */
.rl-form { display: grid; gap: 16px; }
.rl-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .rl-form__row { grid-template-columns: 1fr; } }
.rl-form label > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--rl-green); }
.rl-form input, .rl-form select, .rl-form textarea,
.rl-newsletter input, .rl-booking input, .rl-booking select,
.search-form input[type="search"], .comment-form input, .comment-form textarea {
	width: 100%; padding: 13px 16px; border: 1px solid var(--rl-line); border-radius: var(--rl-radius-sm);
	background: var(--rl-white); color: var(--rl-ink); font: 400 15px/1.4 var(--rl-font-body);
	transition: border-color .2s, box-shadow .2s;
}
.rl-form input:focus, .rl-form select:focus, .rl-form textarea:focus,
.rl-newsletter input:focus, .rl-booking input:focus, .rl-booking select:focus {
	outline: none; border-color: var(--rl-orange); box-shadow: 0 0 0 3px rgba(226, 112, 58, 0.18);
}
.rl-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rl-notice { padding: 12px 16px; border-radius: var(--rl-radius-sm); font-weight: 500; }
.rl-notice--ok { background: #e3f3ea; color: #145a3b; }
.rl-notice--err { background: #fbe7de; color: #8a3413; }

.rl-newsletter { display: flex; gap: 8px; }
.rl-newsletter input { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); color: var(--rl-white); }
.rl-newsletter input::placeholder { color: rgba(255, 255, 255, 0.55); }
.rl-newsletter .rl-btn { padding: 12px 18px; flex-shrink: 0; }
@media (max-width: 380px) { .rl-newsletter { flex-direction: column; } }

/* ---------- Booking bar ([rl_booking_bar]) ---------- */
.rl-booking {
	display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 14px; align-items: end;
	padding: 20px; background: var(--rl-white); border-radius: var(--rl-radius); box-shadow: var(--rl-shadow);
}
.rl-booking__field span {
	display: block; margin-bottom: 6px; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--rl-muted);
}
.rl-booking input, .rl-booking select { background: var(--rl-cream); border-color: transparent; font-weight: 500; }
.rl-booking .rl-btn { height: 48px; white-space: nowrap; }
@media (max-width: 960px) { .rl-booking { grid-template-columns: 1fr 1fr; } .rl-booking .rl-btn { grid-column: 1 / -1; } }
@media (max-width: 480px) { .rl-booking { grid-template-columns: 1fr; } }

/* ---------- WhatsApp button ---------- */
.rl-whatsapp {
	position: fixed; right: 20px; bottom: 20px; z-index: 950;
	display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px;
	background: #25d366; color: #06381b; font-weight: 700; font-size: 14px; text-decoration: none;
	box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.4); transition: transform .2s;
}
.rl-whatsapp:hover { transform: translateY(-2px); color: #06381b; }
@media (max-width: 600px) { .rl-whatsapp span { display: none; } .rl-whatsapp { padding: 14px; } }

/* ---------- Generic pages / blog ---------- */
.rl-page-hero { background: var(--rl-green); color: var(--rl-white); padding: 90px 0 70px; text-align: center; }
.rl-page-hero__title { color: var(--rl-white); margin: 0; }
.rl-page-hero .rl-meta { color: rgba(255, 255, 255, 0.7); }
.rl-entry { padding-top: 60px; padding-bottom: 80px; }
.rl-entry__thumb { border-radius: var(--rl-radius); margin-bottom: 32px; }
.rl-entry img { border-radius: var(--rl-radius-sm); }
.rl-meta { font-size: 14px; color: var(--rl-muted); }

.rl-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.rl-post-card { background: var(--rl-white); border-radius: var(--rl-radius); overflow: hidden; box-shadow: var(--rl-shadow-sm); display: flex; flex-direction: column; }
.rl-post-card__media { display: block; aspect-ratio: 4 / 3; background: var(--rl-sand); }
.rl-post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.rl-post-card__body { padding: 22px 24px 26px; }
.rl-post-card__title { font-size: 1.35rem; margin: 6px 0 10px; }
.rl-post-card__title a { color: inherit; text-decoration: none; }
.nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.nav-links .page-numbers { padding: 8px 14px; border-radius: 999px; background: var(--rl-white); text-decoration: none; }
.nav-links .current { background: var(--rl-green); color: var(--rl-white); }

.search-form { display: flex; gap: 8px; max-width: 480px; margin: 20px auto; }
.search-form label { flex: 1; }
.search-form .search-submit { padding: 12px 20px; border: 0; border-radius: 999px; background: var(--rl-green); color: var(--rl-white); cursor: pointer; }

.rl-404 { padding: 120px 0; text-align: center; }
.rl-empty { text-align: center; padding: 40px 0; }

.rl-comments { margin-top: 60px; }
.rl-comments__list { list-style: none; padding: 0; }
.comment-form .submit { padding: 14px 26px; border: 0; border-radius: 999px; background: var(--rl-orange); color: var(--rl-white); font-weight: 600; cursor: pointer; }

.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
