/*
Theme Name:  Resource Visa (Blocksy Child)
Theme URI:   https://resourcevisa.com.au
Description: Coded child theme for Resource Visa — Coverly-derived layout, logo palette (navy #1F3564 / blue #4071BE), Lora + Inter.
Author:      Adalytics
Template:    blocksy
Version:     0.1.0
Text Domain: resourcevisa
*/

/* =========================================================
   Tokens — Coverly scale, Resource Visa palette
   ========================================================= */
:root {
  --rv-navy: #1f3564;
  --rv-navy-700: #16264a;
  --rv-navy-800: #101c38;
  --rv-blue: #4071be;
  --rv-blue-600: #3562a8;
  --rv-blue-soft: #eaf0f9;
  --rv-blue-line: #c9d7ee;
  --rv-black: #0a0a0a;
  --rv-white: #fff;
  --rv-beige: #fbfbf9;
  --rv-beige-100: #ecece7;
  --rv-beige-200: #d9d8cf;
  --rv-grey: #474747;
  --rv-grey-100: #e0e0dc;
  --rv-grey-200: #bfbfbf;
  --rv-grey-250: #949494;
  --rv-white-50: rgba(255, 255, 255, 0.6);
  --rv-white-25: rgba(255, 255, 255, 0.18);

  --rv-font-primary: "Lora", Georgia, serif;
  --rv-font-secondary: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --rv-h1: 3.5rem;
  --rv-h2: 3.5rem;
  --rv-h3: 2.25rem;
  --rv-container: 73.5rem;
  --rv-gutter: 2.5rem;
  --rv-section: 6rem;
  --rv-radius: 0.25rem;
  --rv-ease: cubic-bezier(0.165, 0.84, 0.44, 1);
  --rv-nav-h: 4.5rem;
}
@media (max-width: 991px) {
  :root { --rv-h1: 3rem; --rv-h2: 3rem; --rv-section: 4rem; }
}
@media (max-width: 767px) {
  :root { --rv-h1: 2.75rem; --rv-h2: 2.5rem; --rv-h3: 2rem; --rv-section: 3rem; --rv-gutter: 1rem; }
}

/* =========================================================
   Base (scoped to .rv-page so Blocksy defaults stay out)
   ========================================================= */
.rv-page,
.rv-page * { box-sizing: border-box; }
.rv-page {
  background: var(--rv-beige);
  color: var(--rv-black);
  font-family: var(--rv-font-secondary);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.rv-page h1, .rv-page h2, .rv-page h3, .rv-page h4 {
  font-family: var(--rv-font-primary);
  font-weight: 400;
  margin: 0;
  color: inherit;
}
.rv-page h1 { font-size: var(--rv-h1); line-height: 1.14; letter-spacing: -0.05em; }
.rv-page h2 { font-size: var(--rv-h2); line-height: 1.15; letter-spacing: -0.05em; }
.rv-page h3, .rv-page .rv-h3 { font-size: var(--rv-h3); line-height: 1.11; letter-spacing: -0.03em; }
.rv-page p { margin: 0; }
:where(.rv-page) a { color: inherit; text-decoration: none; }
.rv-page img { max-width: 100%; display: block; }
.rv-page ul { list-style: none; margin: 0; padding: 0; }

.rv-container { width: 100%; max-width: var(--rv-container); margin-inline: auto; }
.rv-gutter { padding-inline: var(--rv-gutter); }
.rv-section { padding-block: var(--rv-section); }

.rv-tag {
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rv-blue);
  font-weight: 500;
}
.rv-muted { color: var(--rv-grey); }
.rv-xl { font-family: var(--rv-font-primary); font-size: 1.25rem; letter-spacing: -0.03em; line-height: 1.4; }
.rv-sm { font-size: 0.875rem; line-height: 1.42; }
.rv-max-32 { max-width: 32rem; }
.rv-max-26 { max-width: 26rem; }
.rv-max-41 { max-width: 41rem; }
.rv-max-48 { max-width: 48.4375rem; }

.rv-sp-xs { padding-top: 0.25rem; }
.rv-sp-s { padding-top: 0.75rem; }
.rv-sp-m { padding-top: 1rem; }
.rv-sp-l { padding-top: 1.5rem; }
.rv-sp-xl { padding-top: 1.75rem; }
.rv-sp-h { padding-top: 2rem; }
.rv-sp-xh { padding-top: 3.25rem; }
.rv-sp-section { padding-top: 4rem; }
@media (max-width: 991px) { .rv-sp-section { padding-top: 3rem; } .rv-sp-xh { padding-top: 3rem; } }
@media (max-width: 767px) { .rv-sp-section { padding-top: 2rem; } .rv-sp-xh { padding-top: 2rem; } }

/* Buttons — kept black per brief */
.rv-btn,
.rv-page .rv-el-btn .elementor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--rv-radius);
  background: var(--rv-navy);
  color: var(--rv-white);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  border: 1px solid var(--rv-navy);
  cursor: pointer;
  transition: transform 0.35s var(--rv-ease), background-color 0.2s, color 0.2s;
}
.rv-btn:hover,
.rv-page .rv-el-btn .elementor-button:hover { transform: scale(0.97); }
.rv-btn.is-secondary,
.rv-page .rv-el-btn.is-secondary .elementor-button { background: transparent; color: var(--rv-navy); border-color: var(--rv-blue-line); }
.rv-btn.is-secondary:hover,
.rv-page .rv-el-btn.is-secondary .elementor-button:hover { border-color: var(--rv-navy); background: var(--rv-blue-soft); }
.rv-btn.is-small,
.rv-page .rv-el-btn.is-small .elementor-button { min-height: 2.5rem; padding-block: 0.375rem; }
.rv-btn.is-white,
.rv-page .rv-el-btn.is-white .elementor-button { background: var(--rv-white); color: var(--rv-navy); border-color: var(--rv-white); }
.rv-btn-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; }
@media (max-width: 479px) { .rv-btn-row { flex-direction: column; } .rv-btn-row .rv-btn { width: 100%; } }

/* "Learn more" link with underline bar */
.rv-more {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.2;
  gap: 0.35rem;
}
.rv-more::after {
  content: "";
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform-origin: left;
  transition: transform 0.4s var(--rv-ease);
}
.rv-card:hover .rv-more::after, .rv-more:hover::after { transform: scaleX(0.6); }

/* Image frames */
.rv-frame { position: relative; overflow: clip; width: 100%; border-radius: var(--rv-radius); }
.rv-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Grids */
.rv-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: stretch; }
.rv-header-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 0; }
@media (max-width: 991px) { .rv-grid-2 { gap: 2rem; } }
@media (max-width: 767px) { .rv-grid-2 { grid-template-columns: 1fr; } .rv-header-grid { grid-template-columns: 1fr; gap: 1rem; } }

/* =========================================================
   Header / navigation
   ========================================================= */
/* Header shares the page container so the logo lines up with body content. */
/* The header puts .rv-gutter ON the container, so its max-width must carry the
   gutter to land on the same 1176px content band the body and footer use. */
.rv-header .rv-container { max-width: calc(var(--rv-container) + (2 * var(--rv-gutter))); }
.rv-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--rv-beige);
  border-bottom: 1px solid var(--rv-grey-100);
}
body.admin-bar .rv-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .rv-header { top: 46px; } }
.rv-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--rv-nav-h);
}
.rv-logo { display: inline-flex; align-items: center; flex: none; }
.rv-logo img { height: 2rem; width: auto; }

.rv-nav { display: flex; align-items: center; gap: 0.125rem; flex: 1 1 auto; min-width: 0; justify-content: center; }
.rv-nav__item { position: static; }
.rv-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.45rem;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--rv-black);
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  border-radius: var(--rv-radius);
  transition: color 0.2s, background-color 0.2s;
}
.rv-nav__link svg { width: 0.85rem; height: 0.85rem; transition: transform 0.25s var(--rv-ease); }
.rv-nav__item.is-open > .rv-nav__link,
.rv-nav__link:hover { color: var(--rv-blue); }
.rv-nav__item.is-open > .rv-nav__link svg { transform: rotate(180deg); }

.rv-header__utility { display: flex; align-items: center; gap: 1rem; flex: none; }
.rv-phone { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.rv-phone__number { font-weight: 600; font-size: 1rem; color: var(--rv-navy); white-space: nowrap; }
.rv-phone__number:hover { color: var(--rv-blue); }
.rv-phone__hours { font-size: 0.75rem; color: var(--rv-grey); white-space: nowrap; }

.rv-burger {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--rv-grey-100);
  border-radius: var(--rv-radius);
  background: var(--rv-white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex: none;
}
.rv-burger span { display: block; width: 1.1rem; height: 2px; background: var(--rv-black); position: relative; }
.rv-burger span::before, .rv-burger span::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: var(--rv-black); transition: transform 0.25s; }
.rv-burger span::before { top: -6px; }
.rv-burger span::after { top: 6px; }
.rv-header.is-menu-open .rv-burger span { background: transparent; }
.rv-header.is-menu-open .rv-burger span::before { transform: translateY(6px) rotate(45deg); }
.rv-header.is-menu-open .rv-burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* Hover state: whole bar turns Resource Visa blue (Interstaff pattern, brand colour) */
.rv-header { transition: background-color 0.3s var(--rv-ease), border-color 0.3s var(--rv-ease); }
.rv-logo img { transition: opacity 0.25s var(--rv-ease); }
.rv-logo .is-white { display: none; }
.rv-header.is-hover,
.rv-header.is-open-mega {
  background: var(--rv-blue);
  border-bottom-color: var(--rv-blue-600);
}
.rv-header.is-hover .rv-logo .is-colour, .rv-header.is-open-mega .rv-logo .is-colour { display: none; }
.rv-header.is-hover .rv-logo .is-white, .rv-header.is-open-mega .rv-logo .is-white { display: block; }
.rv-header.is-hover .rv-nav__link, .rv-header.is-open-mega .rv-nav__link,
.rv-header.is-hover .rv-phone__number, .rv-header.is-open-mega .rv-phone__number { color: var(--rv-white); }
.rv-header.is-hover .rv-phone__hours, .rv-header.is-open-mega .rv-phone__hours { color: rgba(255, 255, 255, 0.75); }
.rv-header.is-hover .rv-nav__item.is-open > .rv-nav__link, .rv-header.is-open-mega .rv-nav__item.is-open > .rv-nav__link,
.rv-header.is-hover .rv-nav__link:hover, .rv-header.is-open-mega .rv-nav__link:hover { color: var(--rv-white); background: rgba(255, 255, 255, 0.14); }
.rv-header.is-hover .rv-burger, .rv-header.is-open-mega .rv-burger { background: transparent; border-color: rgba(255, 255, 255, 0.5); }
.rv-header.is-hover .rv-burger span, .rv-header.is-hover .rv-burger span::before, .rv-header.is-hover .rv-burger span::after { background: var(--rv-white); }
@media (hover: hover) and (min-width: 992px) {
  .rv-header:hover { background: var(--rv-blue); border-bottom-color: var(--rv-blue-600); }
  .rv-header:hover .rv-logo .is-colour { display: none; }
  .rv-header:hover .rv-logo .is-white { display: block; }
  .rv-header:hover .rv-nav__link, .rv-header:hover .rv-phone__number { color: var(--rv-white); }
  .rv-header:hover .rv-phone__hours { color: rgba(255, 255, 255, 0.75); }
  .rv-header:hover .rv-nav__item.is-open > .rv-nav__link, .rv-header:hover .rv-nav__link:hover { color: var(--rv-white); background: rgba(255, 255, 255, 0.14); }
}

/* Mega panel */
.rv-mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--rv-white);
  border-bottom: 1px solid var(--rv-grey-100);
  border-top: 1px solid var(--rv-blue-line);
  box-shadow: 0 24px 48px -24px rgba(16, 28, 56, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.25s var(--rv-ease), transform 0.25s var(--rv-ease), visibility 0s linear 0.25s;
}
.rv-nav__item.is-open > .rv-mega { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
.rv-mega .rv-container { max-width: var(--rv-container); }
.rv-mega__inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  padding-block: 2.25rem;
}
.rv-mega__inner.is-single { grid-template-columns: 1fr; }
.rv-mega__intro { font-size: 0.8125rem; color: var(--rv-grey); max-width: 30rem; }
.rv-mega__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem 2.5rem; }
.rv-mega__cols.is-narrow { max-width: 42rem; }
.rv-mega__colhead { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--rv-blue); font-weight: 600; padding: 0.5rem 0 0.35rem; grid-column: span 1; }
.rv-mega__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rv-grey-100);
  font-size: 0.9375rem;
  color: var(--rv-black);
  transition: color 0.2s, padding-left 0.25s var(--rv-ease);
}
.rv-mega__link:hover { color: var(--rv-blue); padding-left: 0.25rem; }
.rv-mega__link.is-all { color: var(--rv-blue); font-weight: 500; border-bottom: 0; }
.rv-mega__link.is-all::after { content: "→"; }
.rv-feature {
  background: var(--rv-blue-soft);
  border: 1px solid var(--rv-blue-line);
  border-radius: var(--rv-radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-self: start;
}
.rv-feature__label { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--rv-blue); font-weight: 600; }
.rv-feature__title { font-family: var(--rv-font-primary); font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.02em; color: var(--rv-navy); }
.rv-feature__link { font-size: 0.9375rem; color: var(--rv-navy); font-weight: 500; display: inline-flex; gap: 0.4rem; align-items: center; }
.rv-feature__link::after { content: "→"; transition: transform 0.25s var(--rv-ease); }
.rv-feature__link:hover::after { transform: translateX(3px); }

/* Mobile nav ≤1179 (measured: full nav needs ~1212px of bar width) */
@media (max-width: 1179px) {
  .rv-nav { display: none; }
  .rv-header__utility .rv-phone__hours { display: none; }
  .rv-burger { display: inline-flex; }
  .rv-header.is-menu-open .rv-nav {
    display: block;
    position: fixed;
    inset: var(--rv-nav-h) 0 0 0;
    background: var(--rv-beige);
    overflow-y: auto;
    padding: 1rem var(--rv-gutter) 3rem;
  }
  body.admin-bar .rv-header.is-menu-open .rv-nav { top: calc(var(--rv-nav-h) + 32px); }
  .rv-nav__item { position: relative; border-bottom: 1px solid var(--rv-grey-100); }
  .rv-nav__link { width: 100%; justify-content: space-between; padding: 1rem 0; font-size: 1.125rem; }
  .rv-mega {
    position: static;
    box-shadow: none;
    border: 0;
    background: transparent;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .rv-nav__item.is-open > .rv-mega { display: block; }
  .rv-mega__inner { grid-template-columns: 1fr; gap: 1.25rem; padding: 0 0 1.25rem; }
  .rv-mega__cols { grid-template-columns: 1fr; }
  .rv-mega__intro { display: none; }
  .rv-nav__mobile-cta { padding-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
  .rv-nav__mobile-cta .rv-phone { align-items: flex-start; }
  .rv-nav__mobile-cta .rv-phone__number { font-size: 1.25rem; }
}
@media (min-width: 1180px) { .rv-nav__mobile-cta { display: none; } }

/* =========================================================
   Hero
   ========================================================= */
.rv-hero { padding-top: 6.25rem; padding-bottom: 4rem; }
.rv-hero__layout { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.rv-hero__note { font-weight: 500; color: var(--rv-navy); }
.rv-hero__img { width: 100%; height: 44.13rem; position: relative; overflow: clip; }
.rv-hero__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 991px) {
  .rv-hero { padding-top: 6rem; padding-bottom: 3rem; }
  .rv-hero__layout { flex-direction: column; align-items: flex-start; }
  .rv-hero__img { height: auto; padding-top: 55%; }
}
@media (max-width: 767px) { .rv-hero { padding-top: 3rem; padding-bottom: 2rem; } }

/* =========================================================
   Authority / stats
   ========================================================= */
.rv-content { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 3rem; }
.rv-portrait { padding-top: 115%; }
.rv-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 0.75rem; width: 100%; }
.rv-stat { display: flex; flex-direction: column; gap: 1rem; }
.rv-stat__num { font-family: var(--rv-font-primary); font-size: 4rem; letter-spacing: -0.05em; line-height: 1; display: flex; align-items: baseline; gap: 0.5rem; }
.rv-stat__num small { font-family: var(--rv-font-primary); font-size: 1.5rem; letter-spacing: -0.03em; color: rgba(10, 10, 10, 0.5); }
.rv-stat__num.is-text { font-size: 2.25rem; line-height: 1.1; }
.rv-stat__label { color: var(--rv-grey); }
.rv-foot { font-size: 0.8125rem; color: var(--rv-grey-250); line-height: 1.5; }
@media (max-width: 767px) {
  .rv-content { gap: 2rem; }
  .rv-stat__num { font-size: 3rem; }
  .rv-stat__num.is-text { font-size: 1.75rem; }
}

/* =========================================================
   Services cards
   ========================================================= */
.rv-services { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.rv-services__img { position: relative; overflow: clip; width: 100%; min-height: 24rem; border-radius: var(--rv-radius); }
.rv-services__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rv-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  border-radius: var(--rv-radius);
  background: var(--rv-beige-100);
  transition: background-color 0.2s;
}
.rv-card:hover { background: var(--rv-beige-200); }
.rv-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--rv-radius);
  background: var(--rv-blue);
  color: var(--rv-white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.rv-card__icon svg { width: 1.5rem; height: 1.5rem; }
.rv-card__gap { padding-top: 6rem; }
.rv-card__body { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; }
@media (max-width: 991px) { .rv-services { grid-template-columns: 1fr 1fr; } .rv-card__gap { padding-top: 3rem; } }
@media (max-width: 767px) { .rv-services { grid-template-columns: 1fr; } .rv-card__gap { padding-top: 2rem; } .rv-services__img { min-height: 18rem; } }

/* =========================================================
   Testimonial
   ========================================================= */
.rv-testimonial { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.rv-testimonial__card {
  background: var(--rv-blue);
  color: var(--rv-white);
  padding: 2.5rem;
  border-radius: var(--rv-radius);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  min-height: 30rem;
}
.rv-testimonial__card img { width: 1.5rem; height: 1.5rem; }
.rv-testimonial__quote { font-family: var(--rv-font-primary); font-size: 1.5rem; line-height: 1.4; letter-spacing: -0.02em; }
.rv-testimonial__quote.is-placeholder {
  font-family: var(--rv-font-secondary);
  font-size: 1rem;
  line-height: 1.6;
  padding: 1.25rem;
  border: 1px dashed rgba(255, 255, 255, 0.6);
  border-radius: var(--rv-radius);
  background: rgba(255, 255, 255, 0.08);
}
.rv-testimonial__quote.is-placeholder strong { display: block; font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.5rem; }
.rv-testimonial__photo { position: relative; overflow: clip; border-radius: var(--rv-radius); min-height: 30rem; }
.rv-testimonial__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) { .rv-testimonial { grid-template-columns: 1fr; } .rv-testimonial__card, .rv-testimonial__photo { min-height: 22rem; } .rv-testimonial__card { padding: 1.5rem; } }

/* =========================================================
   Why Resource Visa
   ========================================================= */
.rv-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; width: 100%; }
.rv-list__item { display: flex; gap: 1rem; align-items: flex-start; }
.rv-list__item svg { width: 1.75rem; height: 1.75rem; flex: none; color: var(--rv-blue); }
@media (max-width: 991px) { .rv-list { grid-template-columns: 1fr; } }
@media (max-width: 767px) { .rv-why .rv-content { order: -1; } }

/* =========================================================
   Scenario selector (pill tabs + image panel)
   ========================================================= */
.rv-selector__head { text-align: center; max-width: 44rem; margin-inline: auto; }
.rv-accent { color: var(--rv-blue); }
.rv-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.rv-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--rv-grey-200);
  border-radius: var(--rv-radius);
  background: var(--rv-white);
  color: var(--rv-grey);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.rv-pill svg { width: 1.1rem; height: 1.1rem; }
.rv-pill:hover { border-color: var(--rv-blue); color: var(--rv-navy); }
.rv-pill.is-active { background: var(--rv-blue); border-color: var(--rv-blue); color: var(--rv-white); }
.rv-scenarios { position: relative; }
.rv-scenario { display: none; grid-template-columns: 1.6fr 1fr; gap: 3rem; align-items: end; }
.rv-scenario.is-active { display: grid; }
.rv-scenario__img { position: relative; width: 100%; padding-top: 58.8%; border-radius: var(--rv-radius); overflow: clip; }
.rv-scenario__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rv-scenario__body { padding-bottom: 0.5rem; }
.rv-scenario__body h3 { font-size: 1.75rem; line-height: 1.2; letter-spacing: -0.03em; }
@media (max-width: 991px) { .rv-scenario { grid-template-columns: 1fr; gap: 1.5rem; align-items: start; } }
@media (max-width: 479px) { .rv-pill { flex: 1 1 calc(50% - 0.375rem); justify-content: center; } }

/* =========================================================
   Insights
   ========================================================= */
.rv-posts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; }
.rv-post { padding-right: 0.75rem; display: flex; flex-direction: column; }
.rv-post__thumb { position: relative; width: 100%; padding-top: 91%; overflow: clip; border-radius: var(--rv-radius); }
.rv-post__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--rv-ease); }
.rv-post:hover .rv-post__thumb img { transform: scale(1.08); }
.rv-post__body { padding: 0.5rem; }
.rv-badges { display: flex; gap: 0.5rem; align-items: center; }
.rv-badge { padding: 0.25rem 0.5rem; border-radius: var(--rv-radius); background: var(--rv-beige-100); font-size: 0.875rem; }
@media (max-width: 991px) { .rv-posts { grid-template-columns: 1fr 1fr; gap: 0.75rem; } .rv-post { padding-right: 0; } }
@media (max-width: 767px) { .rv-posts { grid-template-columns: 1fr; gap: 2rem; } }

/* =========================================================
   Final CTA
   ========================================================= */
.rv-cta {
  color: var(--rv-white);
  background-image: linear-gradient(rgba(16, 28, 56, 0.35), rgba(16, 28, 56, 0.35)), var(--rv-cta-bg);
  background-position: 50% 100%;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  padding-block: 6.69rem;
}
.rv-cta__card {
  max-width: 25rem;
  background: var(--rv-blue);
  padding: 1.5rem;
  border-radius: var(--rv-radius);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.rv-cta__card img { height: 1.75rem; width: auto; }
.rv-cta__gap { padding-top: 8rem; }
.rv-cta__detail { font-size: 0.8125rem; color: var(--rv-white-50); line-height: 1.5; }
@media (max-width: 991px) { .rv-cta { background-attachment: scroll; } .rv-cta__gap { padding-top: 3rem; } }
@media (max-width: 767px) { .rv-cta { padding: 16rem 0 2rem; } .rv-cta__card { max-width: none; } .rv-cta__gap { padding-top: 2rem; } }

/* =========================================================
   Footer
   ========================================================= */
.rv-footer { background: var(--rv-navy); color: var(--rv-white-50); padding-block: 3.25rem; }
.rv-footer__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; }
.rv-footer__brand { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; max-width: 23.5rem; }
.rv-footer__brand img { height: 2rem; width: auto; }
.rv-footer__contact { display: flex; flex-direction: column; gap: 0.35rem; }
.rv-footer__contact a { color: var(--rv-white); font-weight: 600; }
.rv-footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem 1.5rem; }
.rv-footer__colhead { color: var(--rv-white); font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 600; margin-bottom: 0.75rem; }
.rv-footer__cols a { display: block; padding: 0.35rem 0; font-size: 0.9375rem; color: var(--rv-white-50); transition: color 0.2s; }
.rv-footer__cols a:hover { color: var(--rv-white); }
.rv-footer__rule { height: 1px; background: var(--rv-white-25); width: 100%; }
.rv-footer__meta { display: flex; justify-content: space-between; align-items: center; gap: 2rem; font-size: 0.875rem; }
.rv-footer__meta-links { display: flex; gap: 2rem; }
.rv-footer__meta a:hover { color: var(--rv-white); }
.rv-footer__wordmark {
  font-family: var(--rv-font-primary);
  font-size: clamp(3rem, 12.5vw, 11.5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--rv-white);
  white-space: nowrap;
  opacity: 0.95;
}
@media (max-width: 991px) { .rv-footer__grid { grid-template-columns: 1fr; } .rv-footer__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) { .rv-footer { padding-block: 2rem; } .rv-footer__brand { max-width: none; } }
@media (max-width: 479px) { .rv-footer__meta { flex-direction: column; } }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .rv-page *, .rv-page *::before, .rv-page *::after { transition: none !important; animation: none !important; }
  .rv-cta { background-attachment: scroll; }
}

/* =========================================================
   Elementor bridge
   Elementor puts a widget's custom classes on the WRAPPER, not on the element
   that actually renders, so rv- components need one hop to reach it. Button
   appearance is inherited from the .rv-btn rules above (selectors extended,
   declarations never duplicated); everything below resets Elementor chrome.
   ========================================================= */
.rv-page .rv-el-btn .elementor-button-content-wrapper { display: contents; }
.rv-page .rv-el-btn .elementor-button-text { font: inherit; color: inherit; }
.rv-page .rv-el-btn .elementor-widget-container { display: inline-flex; }

.rv-page .elementor-widget-text-editor p:last-child { margin-bottom: 0; }

/* Tick lists rendered by Elementor's icon-list widget. */
.rv-page .rv-list .elementor-icon-list-items { display: grid; gap: 0.875rem; }
.rv-page .rv-list .elementor-icon-list-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.rv-page .rv-list .elementor-icon-list-icon { margin-top: 0.3rem; }
.rv-page .rv-list .elementor-icon-list-text { font-family: var(--rv-font-secondary); color: var(--rv-black); line-height: 1.5; }

/* FAQ accordion. */
.rv-page .rv-accordion .elementor-accordion-item { border: 0; border-top: 1px solid var(--rv-grey-100); }
.rv-page .rv-accordion .elementor-accordion-item:last-child { border-bottom: 1px solid var(--rv-grey-100); }
.rv-page .rv-accordion .elementor-tab-title { padding: 1.5rem 0; font-family: var(--rv-font-primary); font-size: 1.25rem; letter-spacing: -0.02em; color: var(--rv-navy); background: none; }
.rv-page .rv-accordion .elementor-tab-content { padding: 0 0 1.5rem; border: 0; color: var(--rv-grey); }

/* =========================================================
   Header fit (measured 2026-09-22)
   At 1512px the bar is 1232px wide and its children needed 1290px, so the
   phone + Contact button overflowed the container by 57px. Fixed above by
   letting .rv-nav shrink and tightening the spacing; these tiers stop the
   same overflow recurring at narrower widths.
   ========================================================= */

/* The phone leaves the header bar at every width: with the header aligned to the
   1176px page container the bar is 1096px, and logo + nav + phone + CTA needs
   1183px. It stays in the footer and in the open mobile menu.
   Scope this to __utility, NOT .rv-header, or it also hides the phone inside
   .rv-nav__mobile-cta, which lives inside the header. */
.rv-header__utility .rv-phone { display: none; }

/* Below the burger breakpoint the Contact CTA stays, so the primary action
   survives on tablet. It only drops on true phone widths, where it is in
   the menu instead. */
@media (max-width: 767px) {
  .rv-header__utility .rv-btn { display: none; }
  .rv-logo img { height: 1.75rem; }
}

/* Elementor two-column rows.
   Flex items default to min-width:auto, so a column whose content is wider than
   its percentage share pushes the row over 100% and the second column wraps
   underneath. min-width:0 lets them shrink instead, which is what keeps images
   beside their text rather than below it. */
.rv-page .rv-el-row > .e-con { min-width: 0; }
.rv-page .rv-el-row > .e-con > .e-con-inner { min-width: 0; }

/* Large imagery inside Elementor cards: fill the column, keep a stable ratio so
   nothing shifts while the image loads. */
.rv-page .rv-el-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--rv-radius);
}
.rv-page .rv-el-media-4x3 img { aspect-ratio: 4 / 3; object-fit: cover; }
.rv-page .rv-el-media-3x2 img { aspect-ratio: 3 / 2; object-fit: cover; }
.rv-page .rv-el-media-4x5 img { aspect-ratio: 4 / 5; object-fit: cover; }

/* Scenario cards. */
.rv-page .rv-el-card {
  background: var(--rv-white);
  border: 1px solid var(--rv-grey-100);
  border-radius: var(--rv-radius);
  overflow: clip;
  transition: border-color 0.2s, transform 0.35s var(--rv-ease);
}
.rv-page .rv-el-card:hover { border-color: var(--rv-blue-line); }
.rv-page .rv-el-card .elementor-widget-image { margin-bottom: 0; }

/* =========================================================
   Page-level fixes (2026-09-22 review)
   ========================================================= */

/* Headline scale for Elementor-built pages. The 56px h2 forced "Decision-ready
   in 48 hours." onto two lines and orphaned "400." onto a third. One size for
   every h2 on the page, stepped down per breakpoint. h1 stays larger so the
   hero keeps its hierarchy. */
.rv-page.elementor-page { --rv-h2: 2.75rem; }
@media (max-width: 991px) { .rv-page.elementor-page { --rv-h2: 2.375rem; } }
@media (max-width: 767px) { .rv-page.elementor-page { --rv-h2: 2rem; } }

/* Tick lists. The theme's .rv-list is a two-column grid meant for the homepage,
   which squeezed these into a 295px column so every item wrapped early. These
   run the full width of their column and start on the same left edge as the
   paragraph above them. */
.rv-page .rv-el-ticks { width: 100%; }
.rv-page .rv-el-ticks .elementor-icon-list-items { display: grid; grid-template-columns: 1fr; gap: 0.875rem; width: 100%; }
.rv-page .rv-el-ticks .elementor-icon-list-item { display: grid; grid-template-columns: 1.75rem 1fr; align-items: start; gap: 0.75rem; width: 100%; }
.rv-page .rv-el-ticks .elementor-icon-list-icon { margin: 0; padding-top: 0.2rem; }
.rv-page .rv-el-ticks .elementor-icon-list-text { padding: 0; font-family: var(--rv-font-secondary); color: var(--rv-black); line-height: 1.5; }

/* Sections that sit on a dark image or navy fill. Headings inherit .rv-page's
   ink colour otherwise, which put black type over a photograph. */
.rv-page .rv-el-ondark h1,
.rv-page .rv-el-ondark h2,
.rv-page .rv-el-ondark h3 { color: var(--rv-white); }
.rv-page .rv-el-ondark p { color: rgba(255, 255, 255, 0.88); }
.rv-page .rv-el-ondark .rv-tag { color: var(--rv-white); }
.rv-page .rv-el-ondark .rv-el-btn.is-secondary .elementor-button {
  color: var(--rv-white);
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
}
.rv-page .rv-el-ondark .rv-el-btn.is-secondary .elementor-button:hover {
  border-color: var(--rv-white);
  background: rgba(255, 255, 255, 0.14);
}

/* Footer contrast. Body and links were rgba(255,255,255,0.6) on navy, which
   composites to about 4.4:1 and fails AA for small text. */
.rv-footer { color: rgba(255, 255, 255, 0.92); }
.rv-footer__cols a,
.rv-footer__meta,
.rv-footer__meta a { color: rgba(255, 255, 255, 0.92); }
.rv-footer__cols a:hover,
.rv-footer__meta a:hover { color: var(--rv-white); }

/* =========================================================
   Build components (brief §0.9)
   One implementation each, used by every page, so the set reads as one system.
   ========================================================= */

/* Measured reading column. Long-form prose at full container width is unreadable. */
.rv-page .rv-el-prose { max-width: 46rem; }
.rv-page .rv-el-prose p { max-width: 42rem; }

/* C-PROCESS-4 */
.rv-page .rv-el-step { position: relative; padding-top: 1.5rem; border-top: 2px solid var(--rv-navy); }
.rv-page .rv-el-steps { align-items: stretch; }

/* C-DISQUALIFY. The trust device. Deliberately not buried: left rule in brand
   blue, tinted ground, so it reads as a deliberate aside rather than body copy. */
.rv-page .rv-el-disqualify {
  background: var(--rv-blue-soft);
  border-left: 3px solid var(--rv-blue);
  border-radius: var(--rv-radius);
}
.rv-page .rv-el-disqualify p { color: var(--rv-navy-700); max-width: 46rem; }

/* C-RELATED */
.rv-page .rv-el-related { background: var(--rv-white); }

/* Tables must be real tables so the text is crawlable (brief build note). */
.rv-page .rv-el-table { width: 100%; border-collapse: collapse; font-family: var(--rv-font-secondary); font-size: 0.9375rem; }
.rv-page .rv-el-table th {
  text-align: left; padding: 0.875rem 1rem; background: var(--rv-navy); color: var(--rv-white);
  font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.rv-page .rv-el-table td { padding: 0.875rem 1rem; border-bottom: 1px solid var(--rv-grey-100); color: var(--rv-grey); vertical-align: top; }
.rv-page .rv-el-table tr:last-child td { border-bottom: 0; }
.rv-page .rv-el-table tbody tr:nth-child(odd) { background: var(--rv-beige); }

/* Ordered lists */
.rv-page .rv-el-ol { counter-reset: rvol; display: grid; gap: 0.875rem; max-width: 42rem; }
.rv-page .rv-el-ol li { counter-increment: rvol; display: grid; grid-template-columns: 1.75rem 1fr; gap: 0.75rem; color: var(--rv-grey); line-height: 1.5; }
.rv-page .rv-el-ol li::before { content: counter(rvol); font-family: var(--rv-font-primary); color: var(--rv-blue); font-size: 1.125rem; line-height: 1.35; }

/* AWST hours line under a CTA */
.rv-page .rv-el-hours p { font-size: 0.875rem; color: rgba(255,255,255,0.72); }

/* Staging-only marker for facts only the client can supply (brief §0.6).
   Never filled with an invented figure; removed before publish. */
.rv-page .rv-el-clientinput {
  display: inline-block; padding: 0.5rem 0.875rem; border: 1px dashed var(--rv-grey-250);
  border-radius: var(--rv-radius); background: var(--rv-beige-100);
  font-size: 0.8125rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--rv-grey);
}

/* Breadcrumbs */
.rv-page .rv-crumbs { font-size: 0.875rem; color: var(--rv-grey); display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.rv-page .rv-crumbs a { color: var(--rv-grey); }
.rv-page .rv-crumbs a:hover { color: var(--rv-blue); }
.rv-page .rv-crumbs span[aria-current] { color: var(--rv-black); }

@media (max-width: 767px) {
  .rv-page .rv-el-table { font-size: 0.875rem; }
  .rv-page .rv-el-table th, .rv-page .rv-el-table td { padding: 0.625rem 0.75rem; }
  .rv-page .rv-el-disqualify { padding: 1.5rem !important; }
}

/* Footer, brief §0.8. Four columns; "Who We Move" carries all ten roles and all
   six sectors, so it needs a second heading and tighter leading than the rest. */
.rv-page .rv-footer__colhead.is-second { margin-top: 1.5rem; }
.rv-footer__cols { grid-template-columns: repeat(4, 1fr); gap: 0.25rem 1.5rem; align-items: start; }
.rv-footer__cols a { font-size: 0.875rem; line-height: 1.35; padding: 0.3rem 0; }
.rv-footer__legal p {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  max-width: 62rem;
}
.rv-footer__legal a { color: var(--rv-white); text-decoration: underline; }
@media (max-width: 991px) {
  .rv-footer__cols { grid-template-columns: 1fr 1fr; gap: 0.25rem 1.5rem; }
}
@media (max-width: 560px) {
  .rv-footer__cols { grid-template-columns: 1fr; }
  .rv-footer__colhead.is-second { margin-top: 1.25rem; }
}

/* Inline CTAs written into the brief copy as "[Button: Label] -> /url". */
.rv-page .rv-el-inline-cta {
  display: inline-flex; align-items: center; min-height: 2.5rem;
  padding: 0.4rem 1.125rem; border-radius: var(--rv-radius);
  background: var(--rv-navy); color: var(--rv-white);
  border: 1px solid var(--rv-navy);
  font-family: var(--rv-font-secondary); font-size: 0.9375rem; font-weight: 500;
  transition: transform 0.35s var(--rv-ease), background-color 0.2s;
}
.rv-page .rv-el-inline-cta:hover { background: var(--rv-blue-600); border-color: var(--rv-blue-600); transform: scale(0.98); }
.rv-page .rv-el-prose a:not(.rv-el-inline-cta) { color: var(--rv-blue); text-decoration: underline; text-underline-offset: 0.2em; }
.rv-page .rv-el-prose a:not(.rv-el-inline-cta):hover { color: var(--rv-navy); }
