/* Rank Hotelier — landing page styles.
   Layout lives inline in index.html (as designed); this file holds
   global rules, keyframes, responsive overrides and state classes. */

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: #FFFFFF; font-family: 'Raleway', system-ui, sans-serif; color: #183459; text-wrap: pretty; -webkit-font-smoothing: antialiased; }
a { color: #E35F3E; text-decoration: none; }
a:hover { color: #C94A2B; }
input[type="range"] { accent-color: #E35F3E; }
.rh-revfield:focus-within { border-color: #E35F3E !important; box-shadow: 0 0 0 3px rgba(227,95,62,0.28); }
input.rh-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 18px; background: transparent; outline: none; cursor: pointer; }
input.rh-slider::-webkit-slider-runnable-track { height: 3px; border-radius: 999px; background: rgba(197,214,236,0.22); }
input.rh-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 15px; height: 15px; margin-top: -6px; border-radius: 50%; background: #E35F3E; border: 2px solid #24466F; }
input.rh-slider::-moz-range-track { height: 3px; border-radius: 999px; background: rgba(197,214,236,0.22); }
input.rh-slider::-moz-range-thumb { width: 15px; height: 15px; border-radius: 50%; background: #E35F3E; border: 2px solid #24466F; }
input.rh-slider:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(227,95,62,0.32); }
input.rh-slider:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(227,95,62,0.32); }
input.rh-slider-l { -webkit-appearance: none; appearance: none; width: 100%; height: 18px; background: transparent; outline: none; cursor: pointer; }
input.rh-slider-l::-webkit-slider-runnable-track { height: 3px; border-radius: 999px; background: #DCD1BE; }
input.rh-slider-l::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 15px; height: 15px; margin-top: -6px; border-radius: 50%; background: #E35F3E; border: 2px solid #FFFFFF; }
input.rh-slider-l::-moz-range-track { height: 3px; border-radius: 999px; background: #DCD1BE; }
input.rh-slider-l::-moz-range-thumb { width: 15px; height: 15px; border-radius: 50%; background: #E35F3E; border: 2px solid #FFFFFF; }
input.rh-slider-l:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(227,95,62,0.32); }
input.rh-slider-l:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(227,95,62,0.32); }
@media (prefers-reduced-motion: reduce) { #ota-calculator [data-bar-seg] { transition: none !important; } }
@keyframes rh-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes rh-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
@property --rh-ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes rh-orbit { to { --rh-ang: 360deg; } }
@media (max-width: 1000px) { #direct-booking h2 + p, #direct-booking [data-hero-row] + p { white-space: normal !important; } }
@media (max-width: 899px) { #channel-options h2 { white-space: normal !important; font-size: clamp(26px, 5vw, 34px) !important; } #channel-options h2 + p { white-space: normal !important; font-size: clamp(15px, 2vw, 17px) !important; } }
@media (min-width: 640px) { .rh-diag-divider { display: block !important; } }
@media (max-width: 639px) { .rh-diag-outcomes { flex-direction: column !important; align-items: center !important; } }
@media (max-width: 899px) { #direct-booking [data-oneline] { white-space: normal !important; max-width: 40ch; } }
@media (max-width: 899px) {
  #direct-booking [data-track] { transform: none !important; gap: 14px; }
  #direct-booking [data-track] { width: auto !important; }
  #direct-booking [data-scard] { flex: 0 0 calc(100vw - 2 * clamp(16px, 4vw, 28px)) !important; max-width: calc(100vw - 2 * clamp(16px, 4vw, 28px)); grid-template-columns: minmax(0, 1fr) !important; scroll-snap-align: start; }
  #direct-booking [data-scard] > div:last-child { border-left: none !important; border-top: 1px solid #F0EBE5; }
}
@media (max-width: 899px) {
  #direct-booking div:has(> [data-dot]) { justify-content: center !important; }
  #direct-booking div:has(> button[data-on-click="slideNext"]) { justify-content: center !important; }
}
@media (max-width: 680px) { #direct-booking h2 { white-space: normal !important; font-size: 27px !important; } }
#direct-booking [ref-slider]::-webkit-scrollbar, #direct-booking div[style*="scroll-snap-type"]::-webkit-scrollbar { display: none; }
@keyframes rh-line-fill { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes rh-icon-on { 0% { opacity: 0.18; transform: scale(0.86); } 60% { opacity: 1; transform: scale(1.06); } 100% { opacity: 1; transform: scale(1); } }
@media (max-width: 680px) { #platform [data-step-icon] { width: 42px !important; height: 42px !important; } #platform [data-step-row] { grid-template-columns: 42px minmax(0, 1fr) !important; } #platform [data-step-line] { left: 20.5px !important; top: 52px !important; } #channel-options [data-prod-icon] { width: 46px !important; height: 46px !important; } #channel-options [data-cap-row-icon] { width: 41px !important; height: 41px !important; } #direct-booking [data-hero-icon] { width: 38px !important; height: 38px !important; margin-left: 0 !important; margin-top: -2px !important; } #direct-booking [data-hero-row] { gap: 12px; } #direct-booking [data-cap-icon] { width: 46px !important; height: 46px !important; } }
@keyframes rh-dot-on { 0% { background: #FFFFFF; border-color: #DCD1BE; transform: scale(0.6); } 60% { background: #E35F3E; border-color: #E35F3E; transform: scale(1.18); box-shadow: 0 0 0 7px rgba(227,95,62,0.10); } 100% { background: #E35F3E; border-color: #E35F3E; transform: scale(1); box-shadow: 0 0 0 5px rgba(227,95,62,0.13); } }
@keyframes rh-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rh-grid-drift { from { background-position: 0 0, 0 0; } to { background-position: 64px 64px, 64px 64px; } }
@media (prefers-reduced-motion: reduce) { #solutions { animation: none !important; } }
@keyframes rh-line-up { from { transform: translateY(105%); } to { transform: translateY(0); } }
@keyframes rh-drift-a { 0%,100% { transform: translate3d(-4%, 0, 0) scale(1); } 50% { transform: translate3d(4%, 2%, 0) scale(1.08); } }
@keyframes rh-drift-b { 0%,100% { transform: translate3d(3%, 1%, 0) scale(1.05); } 50% { transform: translate3d(-3%, -2%, 0) scale(1); } }
@keyframes rh-menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes rh-scan { from { transform: translateY(-40%); } to { transform: translateY(140%); } }
@keyframes rh-grid-pan { from { background-position: 0 0, 0 0; } to { background-position: 64px 64px, 64px 64px; } }
@keyframes rh-grid-breathe { 0%,100% { opacity: 0.82; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { [data-rh-anim], [data-seq] { animation: none !important; } }
/* Scroll reveals (js/main.js sets data-rv per element). Hidden states exist only under html.rh-rv,
   which the script adds when IntersectionObserver is available and reduced motion is not requested. */
.rh-rv [data-rv] { --rv-dur: 820ms; --rv-ease: cubic-bezier(.16,1,.3,1); transition: opacity var(--rv-dur) var(--rv-ease), transform var(--rv-dur) var(--rv-ease), filter var(--rv-dur) var(--rv-ease), clip-path var(--rv-dur) var(--rv-ease); transition-delay: var(--rv-d, 0ms); }
.rh-rv [data-rv="hero"] { --rv-dur: 620ms; --rv-ease: cubic-bezier(.2,.7,.2,1); }
.rh-rv [data-rv="focus"] { --rv-dur: 1020ms; }
.rh-rv-arming [data-rv] { transition: none !important; }
.rh-rv [data-rv="hero"]:not(.rv-in) { transform: translateY(18px); }
.rh-rv [data-rv="fade"]:not(.rv-in) { opacity: 0; transform: translateY(10px); }
.rh-rv [data-rv="rise"]:not(.rv-in) { opacity: 0; transform: translateY(28px); }
.rh-rv [data-rv="slide"]:not(.rv-in) { opacity: 0; transform: translateX(40px); }
.rh-rv [data-rv="mask"]:not(.rv-in) { transform: translateY(100%); clip-path: inset(0 0 100% 0); }
.rh-rv [data-rv="mask"].rv-in:not(.rv-done) { clip-path: inset(0); }
.rh-rv [data-rv="wipe"]:not(.rv-in) { clip-path: inset(-40px 100% -80px -40px); }
.rh-rv [data-rv="wipe"].rv-in:not(.rv-done) { clip-path: inset(-40px -40px -80px -40px); }
.rh-rv [data-rv="focus"]:not(.rv-in) { opacity: 0; transform: translateY(32px) scale(.955); filter: blur(12px); }
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px #FFFFFF inset; box-shadow: 0 0 0 1000px #FFFFFF inset; -webkit-text-fill-color: #183459; caret-color: #183459; }

/* FAQ toggle icon — drawn in CSS so the question headings contain only the question */
.rh-faq-plus::before { content: "+"; }

/* Conditional blocks */
[data-if] { display: contents; }
[data-if][hidden] { display: none; }

/* Interaction states (generated from the design's hover/focus/active styles) */
@media (hover: hover) { .h1:hover { color: #183459 !important; background: #F4F1EB !important; } }
@media (hover: hover) { .h2:hover { background: var(--rh-accent-fill-hover) !important; color: #FFFFFF !important; } }
.a1:active { transform: translateY(1px) !important; }
@media (hover: hover) { .h3:hover { background: #F4F1EB !important; color: #183459 !important; } }
.f1:focus { border-color: #183459 !important; box-shadow: 0 0 0 3px rgba(24,52,89,0.10) !important; }
@media (hover: hover) { .h4:hover { background: var(--rh-accent-fill-hover) !important; } }
@media (hover: hover) { .h5:hover { color: #C94A2B !important; } }
.f2:focus { border-color: #E35F3E !important; box-shadow: 0 0 0 3px rgba(227,95,62,0.24) !important; }
@media (hover: hover) { .h6:hover { color: #183459 !important; } }
@media (hover: hover) { .h7:hover { background: #24466F !important; } }
@media (hover: hover) { .h8:hover { background: #F4F1EB !important; border-color: #183459 !important; } }
@media (hover: hover) { .h9:hover { background: var(--rh-accent-fill-hover) !important; transform: translateY(-1px) !important; } }
@media (hover: hover) { .h10:hover { color: #FFFFFF !important; } }

/* Header navigation breakpoints */
.nav-desktop, .nav-wide, .nav-mobile { display: contents; }
.nav-mobile[hidden] { display: none; }
@media (max-width: 1079px) { .nav-wide { display: none; } }
@media (max-width: 879px) { .nav-desktop { display: none; } }
@media (min-width: 880px) { .nav-mobile { display: none !important; } }
/* Invisible bridge over the 8px gap between the header pill and the Solutions panel,
   so the pointer never leaves the header (and closes the menu) on its way down. */
.rh-menu-panel::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 10px; }

/* Words that only fit on wider phones (used by the Spanish header button) */
@media (max-width: 389px) { .rh-wide-only { display: none; } }
/* Placeholders: lighter weight + warm muted ink so example text never reads as a filled value */
input::placeholder, textarea::placeholder { color: #8A8177; font-weight: 400; opacity: 1; }
/* Carousel controls sit above the scroller's shadow padding (see negative margin on the scroller) */
#direct-booking div:has(> [data-dot]), #direct-booking div:has(> button[data-on-click="slideNext"]) { position: relative; z-index: 1; }

/* Cookie notice (js/consent.js): bottom-left card, both choices with equal weight */
.rh-consent { position: fixed; z-index: 80; left: 16px; right: 16px; bottom: 16px; max-width: 420px; box-sizing: border-box; display: flex; flex-direction: column; gap: 14px; padding: 18px 20px 20px; background: var(--rh-surface); border: 1px solid var(--rh-border); border-radius: var(--rh-radius-lg); box-shadow: var(--rh-shadow-md); font-family: 'Raleway', system-ui, sans-serif; font-size: 14px; line-height: 1.55; color: var(--rh-gris); }
.rh-consent[hidden] { display: none; }
.rh-consent p { margin: 0; }
.rh-consent a { color: var(--rh-navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.rh-consent-status { font-weight: 600; color: var(--rh-navy); }
.rh-consent-actions { display: flex; gap: 10px; }
.rh-consent-btn { flex: 1; min-height: 44px; padding: 0 16px; background: var(--rh-surface); border: 1px solid var(--rh-navy); border-radius: var(--rh-radius-base); font-family: 'Raleway', system-ui, sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--rh-navy); cursor: pointer; transition: background 120ms ease; }
@media (hover: hover) { .rh-consent-btn:hover { background: var(--rh-canvas); } }
.rh-consent-btn:focus-visible, .rh-consent a:focus-visible, .rh-consent-link:focus-visible { outline: 2px solid var(--rh-navy); outline-offset: 2px; }
.rh-consent-link:focus-visible { outline-color: #FFFFFF; }
@media print { .rh-consent { display: none; } }

/* Footer legal links (landing, diagnostic, privacy, 404) */
.rh-footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.rh-footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.rh-footer-links a, .rh-consent-link { color: #D3E0EF; padding: 4px 0; transition: color 120ms ease; }
.rh-consent-link { background: none; border: 0; margin: 0; font: inherit; cursor: pointer; }
.rh-consent-link[hidden] { display: none; }
@media (hover: hover) { .rh-footer-links a:hover, .rh-consent-link:hover { color: #FFFFFF; } }

/* Homepage "Resources" section (scripts/build.mjs adds it once scripts/resources.mjs lists enough pieces) */
.rh-rs { scroll-margin-top: 96px; background: var(--rh-navy); padding: clamp(56px, 8vw, 96px) clamp(16px, 4vw, 28px); }
.rh-rs-inner { max-width: 1120px; margin: 0 auto; }
.rh-rs-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: clamp(24px, 3vw, 36px); }
.rh-rs-head > div { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.rh-rs-eyebrow { font-family: 'Inter', system-ui, sans-serif; font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--rh-accent); }
.rh-rs h2 { margin: 0; font-size: clamp(27px, 4.2vw, 40px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; color: #FFFFFF; text-wrap: balance; }
.rh-rs-all { font-weight: 700; font-size: 15px; color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }
.rh-rs-all:hover { color: var(--rh-on-navy-muted); }
.rh-rs-all:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; border-radius: 2px; }
.rh-rs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: clamp(16px, 2vw, 22px); margin: 0; padding: 0; list-style: none; }
.rh-rs-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--rh-surface); border-radius: var(--rh-radius-card); transition: box-shadow 140ms ease; }
.rh-rv .rh-rs-card[data-rv] { transition: opacity var(--rv-dur) var(--rv-ease) var(--rv-d, 0ms), transform var(--rv-dur) var(--rv-ease) var(--rv-d, 0ms), box-shadow 140ms ease; } /* keep the hover ring's transition */
@media (hover: hover) { .rh-rs-card:hover { box-shadow: 0 0 0 2px var(--rh-on-navy-muted); } }
.rh-rs-card:focus-within { outline: 2px solid #FFFFFF; outline-offset: 3px; }
.rh-rs-card img { display: block; width: 72px; height: 72px; object-fit: contain; margin: -6px 0 2px -8px; }
.rh-rs-kicker { font-family: 'Inter', system-ui, sans-serif; font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: #C1482A; }
.rh-rs-card h3 { margin: 0; font-size: 20px; line-height: 1.25; letter-spacing: -0.3px; font-weight: 700; color: var(--rh-navy); }
.rh-rs-card h3 a { color: inherit; text-decoration: none; }
.rh-rs-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.rh-rs-card h3 a:focus-visible { outline: none; }
.rh-rs-card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--rh-gris); }
