/*
Theme Name: Romine RV Park
Theme URI: https://rominervpark.com/
Author: MCDLink
Author URI: https://mcdlink.net/
Description: A custom, license-free block theme for Romine RV Park, extended stay RV sites in Little Rock, Arkansas.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
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: romine-rv
*/

/* ---------- Tweaks (loaded after assets/css/site.css) ---------- */
.rv-kicker { display: flex; }
.rv-fact-row > * { margin-block-start: 0 !important; }
.rv-facts .rv-fact-row { align-items: start; }
.has-blue-background-color .rv-lede { color: rgba(255, 255, 255, .92); }
.rv-callband .rv-kicker { color: var(--wp--preset--color--navy); }
.rv-callband .rv-kicker::before { background: var(--wp--preset--color--navy); }
.rv-page-band h1 { max-width: 1280px; }
.rv-host .rv-host-quote::before { font-size: 3em; line-height: .5; margin-bottom: .15em; height: .45em; }
.rv-loc .rv-loc-body { padding: clamp(1.75rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 782px) {
  .rv-loc-grid > .rv-loc:first-child .rv-loc-body { padding-left: max(clamp(1.25rem, 4vw, 3rem), calc((100vw - 1280px) / 2)); }
}
.rv-fact .rv-fact-num { min-height: 1em; }

/* ---------- Back to top ---------- */
.rv-totop {
  position: fixed; right: clamp(14px, 2.5vw, 28px); bottom: clamp(14px, 2.5vw, 28px); z-index: 60;
  width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--wp--preset--color--navy); color: var(--wp--preset--color--gold);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 12px 28px -10px rgba(14, 36, 51, .6);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.9);
  transition: opacity .3s ease, transform .3s ease, visibility .3s, background .2s;
}
.rv-totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.rv-totop:hover { background: var(--wp--preset--color--blue); }
.rv-totop:hover .rv-totop-arrow { transform: translateY(-3px); }
.rv-totop.is-launching .rv-totop-arrow { animation: rv-launch .6s ease; }
.rv-totop-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.rv-totop-ring circle { fill: none; stroke-width: 3; stroke: rgba(255, 255, 255, .15); }
.rv-totop-ring .rv-totop-progress { stroke: var(--wp--preset--color--gold); stroke-linecap: round; transition: stroke-dashoffset .1s linear; }
.rv-totop-arrow { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; position: relative; }
@keyframes rv-launch { 0% { transform: translateY(0); } 40% { transform: translateY(-14px); opacity: 0; } 41% { transform: translateY(12px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
@media print { .rv-totop { display: none; } }

/* ---------- Wider layout + hero jump menu ---------- */
.rv-page-band h1 { max-width: 1520px; }
[id] { scroll-margin-top: 110px; }
.rv-hero .rv-hero-cols { gap: clamp(2rem, 5vw, 5rem) !important; }
.rv-hero h1 { max-width: 14ch; }
.rv-jump {
  background: rgba(14, 36, 51, .58); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 22px;
  padding: clamp(1.25rem, 2.4vw, 2rem); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.rv-jump .rv-jump-title { font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: clamp(1.5rem, 2.2vw, 2rem); color: #fff; margin: .35rem 0 .75rem; letter-spacing: -.02em; line-height: 1.1; }
.rv-jump-list { list-style: none; margin: 0; padding: 0; }
.rv-jump-list li { margin: 0; border-top: 1px solid rgba(255, 255, 255, .13); }
.rv-jump-list a { display: flex; align-items: center; gap: .9rem; padding: .78rem .2rem; color: #fff; text-decoration: none; font-weight: 600; font-size: 1.05rem; transition: color .2s, padding .25s; }
.rv-jump-list a span { font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: .78rem; letter-spacing: .1em; color: var(--wp--preset--color--gold); min-width: 1.7rem; }
.rv-jump-list a::after { content: "→"; margin-left: auto; color: var(--wp--preset--color--gold); transition: transform .25s ease; }
.rv-jump-list a:hover, .rv-jump-list a:focus-visible { color: var(--wp--preset--color--gold); padding-left: .55rem; }
.rv-jump-list a:hover::after { transform: translateX(5px); }
@media (max-width: 781px) {
  .rv-jump { background: transparent; border: 0; box-shadow: none; padding: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .rv-jump .rv-jump-title { display: none; }
  .rv-jump-list { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; scrollbar-width: none; }
  .rv-jump-list li { border: 0; flex: 0 0 auto; }
  .rv-jump-list a { padding: .55rem .95rem; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); font-size: .92rem; white-space: nowrap; }
  .rv-jump-list a::after { display: none; }
  .rv-jump-list a:hover { padding-left: .95rem; }
}
/* Policies two-column */
.rv-docs-col .rv-doc:first-of-type { border-top: 1px solid rgba(14, 36, 51, .14); }

.rv-hero-cols > .wp-block-column, .rv-hero-cols .wp-block-group, .rv-jump, .rv-jump-list { min-width: 0; max-width: 100%; }
.rv-hero { overflow-x: clip; }

/* hero is a flex column; auto side margins stop stretch, so force full width (max-width still caps it) */
.rv-hero > .wp-block-columns, .rv-hero > .alignwide { width: 100%; }

@media (max-width: 781px) {
  .rv-hero { padding-bottom: 150px !important; }
  .rv-jump-list a { background: rgba(14, 36, 51, .78); }
}

/* Christy, beside the locations intro */
.rv-host-mini { position: relative; border-left: 3px solid var(--wp--preset--color--gold); padding-left: clamp(1.25rem, 3vw, 2.5rem); }
.rv-host-mini .rv-host-quote { font-family: var(--wp--preset--font-family--display); font-weight: 600; color: #fff; font-size: clamp(1.3rem, 2.1vw, 1.8rem); line-height: 1.3; letter-spacing: -.01em; margin: .75rem 0 1rem; }
.rv-host-sig { color: rgba(255, 255, 255, .78); font-size: 1rem; margin: 0; }
.rv-host-sig strong { color: var(--wp--preset--color--gold); }
.rv-stamp.rv-stamp-sm { float: right; shape-outside: circle(50%); width: 118px; height: 118px; margin: 0 0 1rem 1.5rem; padding: .6rem; font-size: .7rem; border-color: var(--wp--preset--color--gold); color: #fff; }
.rv-stamp.rv-stamp-sm b { font-size: 1.5rem; }
@media (max-width: 600px) { .rv-stamp.rv-stamp-sm { width: 92px; height: 92px; font-size: .58rem; margin-left: 1rem; } .rv-stamp.rv-stamp-sm b { font-size: 1.1rem; } }

/* Mobile jump menu: wrap onto rows instead of side-scrolling */
@media (max-width: 781px) {
  .rv-jump-list { flex-wrap: wrap; overflow: visible; gap: .5rem; padding-bottom: 0; }
  .rv-jump-list a { padding: .5rem .85rem; font-size: .9rem; gap: .5rem; }
  .rv-jump-list a span { min-width: 0; font-size: .7rem; }
}

/* ---------- Video pop-up ---------- */
.rv-vbox { position: fixed; inset: 0; z-index: 100000; background: rgba(8, 20, 29, .88); display: grid; place-items: center; padding: clamp(12px, 4vw, 48px); animation: rv-fade .25s ease; }
.rv-vbox-inner { position: relative; width: min(1100px, 100%); }
.rv-vbox video { width: 100%; height: auto; display: block; border-radius: 16px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8); background: #000; }
.rv-vbox-close { position: absolute; top: -18px; right: -18px; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; background: var(--wp--preset--color--gold); color: var(--wp--preset--color--navy); font-size: 30px; line-height: 1; font-weight: 700; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .6); }
@media (max-width: 600px) { .rv-vbox-close { top: -54px; right: 0; } }
@keyframes rv-fade { from { opacity: 0; } to { opacity: 1; } }
.rv-video-link .wp-block-button__link::before, a.rv-video-link::before { content: "\25B6"; display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; margin-right: .6rem; border-radius: 50%; background: var(--wp--preset--color--gold); color: var(--wp--preset--color--navy); font-size: .75em; vertical-align: middle; }

.rv-vbox.is-tall .rv-vbox-inner { width: auto; }
.rv-vbox.is-tall video { width: auto; max-width: 100%; max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); }

/* Hero: SEO H1 as small gold label, big headline as H2 (same look as before) */
.rv-hero h1.rv-hero-h1 { font-family: var(--wp--preset--font-family--body); font-size: .9rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--wp--preset--color--gold); max-width: none; line-height: 1.4; display: flex; align-items: center; gap: .65rem; margin-top: 1.25rem; }
.rv-hero h1.rv-hero-h1::before { content: ""; width: 2.25rem; height: 3px; border-radius: 3px; background: var(--wp--preset--color--gold); flex: 0 0 auto; }
.rv-hero h2.rv-hero-title { font-size: var(--wp--preset--font-size--huge); color: #fff; max-width: 14ch; text-wrap: balance; margin-top: .5rem; }
.rv-hero h2.rv-hero-title em { font-style: normal; color: var(--wp--preset--color--gold); }
@media (max-width: 600px) { .rv-hero h1.rv-hero-h1 { font-size: .78rem; letter-spacing: .12em; } }

/* Mobile menu fix: backdrop-filter on the header trapped the full-screen menu inside the header.
   Move the frosted background to a pseudo-element so the overlay can cover the whole screen. */
.rv-header { background: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; position: relative; }
.rv-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
.rv-header .wp-block-navigation__responsive-container.is-menu-open { position: fixed; inset: 0; height: 100vh; height: 100dvh; z-index: 100000; }
.rv-header .wp-block-navigation__responsive-container.is-menu-open a,
.rv-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close { color: #fff !important; }
.rv-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { padding: .35rem 0; }
.admin-bar .rv-header .wp-block-navigation__responsive-container.is-menu-open { top: 46px; height: calc(100dvh - 46px); }
