/* REVO marketing site: the shared layer.
 *
 * Owns the header, the mobile menu, the footer, the sticky phone bar, the
 * cookie banner and a few responsive helpers. Page bodies keep their inline
 * styles; inline styles cannot carry media queries, so the phone fixes live
 * here as classes.
 *
 * Breakpoints: phone < 768px, menu < 900px, laptop < 1120px.
 *
 * Responsive helpers for page bodies. Inline styles beat classes, so these
 * use !important inside their media query; add the class next to the
 * inline style instead of rewriting it.
 *   rv-container    centred 1240px column, 32px sides, 20px on phones
 *   rv-grid-1-sm    grid collapses to one column on phones
 *   rv-grid-2-sm    grid becomes two equal columns on phones
 *   rv-stack-sm     flex row becomes a full-width column on phones
 *   rv-px-sm        20px side padding on phones
 *   rv-py-sm        56px top/bottom padding on phones
 *   rv-card-sm      big card padding shrinks to 28px 20px on phones
 *   rv-minw0        drops an inline min-width (a 420px grid child, say)
 *   rv-full-sm      full width on phones
 *   rv-center-sm    centred text on phones
 *   rv-hide-sm      hidden on phones      rv-show-sm   only on phones
 *   rv-hide-md      hidden under 900px
 *   rv-scroll-x     horizontal scroll inside (wide tables), never the page
 *   rv-break        long words wrap instead of running off the edge
 *   rv-prose        on a text column: its inline links get a finger-sized hit area
 */

/* Fonts are served from this site (SIL Open Font License, see assets/fonts/OFL-*.txt),
   so a visit never contacts Google's servers. Variable fonts: one file per subset. */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/dm-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/dm-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/space-grotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/space-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --rv-indigo: #4F46E5;
  --rv-purple: #9333EA;
  --rv-violet: #7C3AED;
  --rv-sky: #0EA5E9;
  --rv-grad: linear-gradient(120deg, #9333EA, #4F46E5, #0EA5E9);
  --rv-ink: #14163A;
  --rv-ink-2: #4A4E75;
  --rv-muted: #5B5F84;
  --rv-faint: #737191;
  --rv-border: #ECE9F6;
  --rv-border-2: #E4E2F2;
  --rv-bg: #FBFAFE;
  --rv-card: #FFFFFF;
  --rv-ok: #16A34A;
  --rv-err: #E11D48;
  --rv-head: 'Space Grotesk', system-ui, sans-serif;
  --rv-body: 'DM Sans', system-ui, sans-serif;
  --rv-bar-h: 72px;
}

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { background: var(--rv-bg); }
img, svg, video { max-width: 100%; }

@keyframes rvGrad { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.rv-header a:focus-visible, .rv-header button:focus-visible,
.rv-footer a:focus-visible, .rv-footer button:focus-visible, .rv-footer input:focus-visible,
.rv-sticky a:focus-visible, .rv-consent a:focus-visible, .rv-consent button:focus-visible, .rv-wa:focus-visible {
  outline: 2px solid var(--rv-indigo);
  outline-offset: 3px;
  border-radius: 10px;
}

/* ---------- Header ---------- */
.rv-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 254, .9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rv-border);
  font-family: var(--rv-body);
}
.rv-nav {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 18px 40px;
  font-size: 16.5px;
  font-weight: 500;
  box-sizing: border-box;
}
.rv-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  color: var(--rv-ink);
  text-decoration: none;
  min-height: 44px;
  flex: none;
}
.rv-brand:hover { color: var(--rv-ink); }
.rv-brand img { width: 44px; height: 44px; object-fit: contain; display: block; }
.rv-brand span { font-family: var(--rv-head); font-weight: 700; font-size: 28px; letter-spacing: -.7px; }
.rv-links { display: flex; align-items: center; gap: 30px; }
.rv-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--rv-ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s ease;
}
.rv-link:hover { color: var(--rv-indigo); }
.rv-link[aria-current="page"] { color: var(--rv-ink); font-weight: 700; }
.rv-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 99px;
  background: var(--rv-grad);
  background-size: 200% 200%;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  animation: rvGrad 6s ease infinite;
  box-shadow: 0 10px 26px rgba(79, 70, 229, .35);
  flex: none;
}
.rv-cta:hover, .rv-cta:focus { color: #fff; box-shadow: 0 14px 32px rgba(79, 70, 229, .45); }

.rv-burger {
  display: none;
  flex: none;
  width: 44px;
  height: 44px;
  margin-right: -6px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--rv-ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.rv-burger:hover { background: #F1EFFA; }
.rv-burger svg { width: 26px; height: 26px; display: block; }
.rv-burger .rv-x { display: none; }
.rv-burger[aria-expanded="true"] .rv-bars { display: none; }
.rv-burger[aria-expanded="true"] .rv-x { display: block; }

/* mobile menu panel: hangs under the sticky header, fills the screen */
.rv-mnav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: calc(100vh - 64px);
  height: calc(100dvh - 64px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--rv-bg);
  border-top: 1px solid var(--rv-border);
  padding: 8px 20px calc(28px + env(safe-area-inset-bottom));
  box-sizing: border-box;
}
.rv-mnav[hidden] { display: none; }
.rv-mnav-links { display: flex; flex-direction: column; }
.rv-mlink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  border-bottom: 1px solid var(--rv-border);
  color: var(--rv-ink);
  font-family: var(--rv-head);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.3px;
  text-decoration: none;
}
.rv-mlink::after { content: ""; flex: none; width: 8px; height: 8px; margin-right: 6px; border-top: 2px solid #B7B4D2; border-right: 2px solid #B7B4D2; transform: rotate(45deg); }
.rv-mlink:hover { color: var(--rv-indigo); }
.rv-mlink[aria-current="page"] { color: var(--rv-indigo); }
.rv-mcta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin-top: 22px;
  border-radius: 16px;
  background: var(--rv-grad);
  background-size: 200% 200%;
  animation: rvGrad 6s ease infinite;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(79, 70, 229, .3);
}
.rv-mcta:hover, .rv-mcta:focus { color: #fff; }
.rv-mnav-note { margin: 22px 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .8px; color: var(--rv-faint); }
.rv-mphones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rv-mphone, .rv-mmail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  border-radius: 14px;
  border: 1.5px solid var(--rv-border-2);
  background: #fff;
  color: var(--rv-ink);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}
.rv-mmail { margin-top: 10px; color: var(--rv-muted); font-weight: 600; }
.rv-mphone:hover, .rv-mmail:hover { border-color: var(--rv-indigo); color: var(--rv-indigo); }
html.rv-menu-open, html.rv-menu-open body { overflow: hidden; }

/* ---------- Footer ---------- */
.rv-footer {
  border-top: 1px solid var(--rv-border);
  background: #fff;
  margin-top: 64px;
  scroll-margin-top: 80px;
  font-family: var(--rv-body);
  color: var(--rv-ink);
}
.rv-fwrap { max-width: 1240px; margin: 0 auto; padding: 52px 40px 0; box-sizing: border-box; }

.rv-news { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 32px; align-items: center; }
.rv-news-title { font-family: var(--rv-head); font-size: 24px; font-weight: 700; letter-spacing: -.6px; }
.rv-news-text { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--rv-muted); }
.rv-news-form { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; }
.rv-news-form input {
  flex: 1;
  min-width: min(220px, 100%);
  min-height: 50px;
  padding: 14px 20px;
  border-radius: 14px;
  border: 1.5px solid var(--rv-border-2);
  font-size: 16px;
  font-family: var(--rv-body);
  background: var(--rv-bg);
  color: var(--rv-ink);
  outline: none;
  box-sizing: border-box;
}
.rv-news-form input:focus { border-color: var(--rv-indigo); }
.rv-news-form button {
  min-height: 50px;
  padding: 14px 26px;
  border-radius: 14px;
  background: var(--rv-ink);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  font-family: var(--rv-body);
  cursor: pointer;
  border: none;
}
.rv-news-form button:disabled { opacity: .7; cursor: default; }
.rv-news-msg { flex-basis: 100%; font-size: 13px; font-weight: 600; margin-top: 6px; }
.rv-news-msg:empty { display: none; }
.rv-fdiv { height: 1px; background: var(--rv-border); margin: 46px 0; }

.rv-fmain { display: flex; gap: 48px; flex-wrap: wrap; justify-content: space-between; padding: 0 0 40px; }
.rv-fbrand { max-width: 290px; }
.rv-flogo { display: flex; align-items: center; gap: 10px; }
.rv-flogo img { width: 34px; height: 34px; object-fit: contain; display: block; }
.rv-flogo span { font-family: var(--rv-head); font-weight: 700; font-size: 22px; letter-spacing: -.5px; }
.rv-fabout { margin: 12px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--rv-muted); }
.rv-fcontact { display: flex; flex-direction: column; align-items: flex-start; margin-top: 10px; font-size: 14px; }
.rv-fcontact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  color: var(--rv-ink);
  font-weight: 700;
  text-decoration: none;
}
.rv-fcontact a.rv-fmail { color: var(--rv-muted); font-weight: 600; }
.rv-fcontact a:hover { color: var(--rv-indigo); }
.rv-fcols { display: flex; gap: 48px; flex-wrap: wrap; }
.rv-fcol { display: flex; flex-direction: column; font-size: 14px; min-width: 0; }
.rv-fhead { margin: 0 0 4px; font-weight: 700; font-size: 13px; letter-spacing: .8px; color: var(--rv-faint); }
.rv-flink {
  display: flex;
  align-items: center;
  min-height: 36px;
  color: var(--rv-muted);
  text-decoration: none;
  font: inherit;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.rv-flink[hidden] { display: none; }
.rv-flink:hover { color: var(--rv-indigo); }
.rv-fbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 14px 0 22px;
  border-top: 1px solid var(--rv-border);
  font-size: 13px;
  color: var(--rv-faint);
}
.rv-fbar a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  min-width: 40px;
  color: var(--rv-violet);
  font-weight: 600;
  text-decoration: none;
}
.rv-fbar a:hover { color: var(--rv-indigo); }

/* ---------- Forms: the spam honeypot stays out of sight, focus and autofill ---------- */
form[data-revo-form] input[name="website"] {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ---------- Sticky phone bar (added by site.js, never on /start) ---------- */
.rv-sticky { display: none; }

/* ---------- WhatsApp button (only when REVO_SITE.whatsapp is set) ---------- */
.rv-wa {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 95;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(20, 22, 58, .25);
}
.rv-wa:hover { color: #fff; transform: translateY(-2px); }
.rv-wa svg { width: 28px; height: 28px; }

/* ---------- Consent banner (only when a pixel ID is configured) ---------- */
.rv-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 130;
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  color: var(--rv-ink);
  border: 1px solid var(--rv-border);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(20, 22, 58, .22);
  padding: 20px 22px;
  font-family: var(--rv-body);
  box-sizing: border-box;
}
.rv-consent-title { font-family: var(--rv-head); font-size: 17px; font-weight: 700; }
.rv-consent p { margin: 6px 0 0; font-size: 14px; line-height: 1.55; color: var(--rv-muted); }
.rv-consent p a { color: var(--rv-indigo); font-weight: 600; text-decoration: underline; }
.rv-consent-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.rv-consent-btns button {
  min-height: 48px;
  border-radius: 12px;
  border: 1.5px solid var(--rv-ink);
  background: var(--rv-ink);
  color: #fff;
  font: 700 15px var(--rv-body);
  cursor: pointer;
}
.rv-consent-btns button:hover { background: #262a5c; }

/* staff opt-out confirmation */
.rv-toast {
  position: fixed;
  left: 50%;
  top: 84px;
  transform: translateX(-50%);
  z-index: 140;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--rv-ink);
  color: #fff;
  font: 600 14px var(--rv-body);
  box-shadow: 0 16px 40px rgba(20, 22, 58, .3);
  box-sizing: border-box;
}

/* ---------- Laptop: tighten the desktop nav so it stays on one row ---------- */
@media (max-width: 1119px) {
  .rv-nav { gap: 22px; padding: 16px 28px; font-size: 15.5px; }
  .rv-links { gap: 20px; }
  .rv-cta { padding: 12px 20px; }
}

/* ---------- Under 900px: hamburger menu ---------- */
@media (max-width: 899px) {
  .rv-nav { gap: 12px; padding: 10px 20px; min-height: 64px; }
  .rv-links { display: none; }
  .rv-burger { display: inline-flex; }
  .rv-brand { gap: 10px; }
  .rv-brand img { width: 36px; height: 36px; }
  .rv-brand span { font-size: 24px; }
  .rv-cta { padding: 11px 18px; font-size: 15px; box-shadow: 0 8px 20px rgba(79, 70, 229, .3); }
}
@media (min-width: 900px) {
  .rv-mnav { display: none !important; }
}

/* ---------- Phones ---------- */
@media (max-width: 767px) {
  .rv-fwrap { padding: 40px 20px 0; }
  .rv-fdiv { margin: 36px 0; }
  .rv-news-title { font-size: 21px; }
  .rv-news-form input { flex-basis: 100%; }
  .rv-news-form button { flex: 1 1 100%; }
  .rv-fmain { flex-direction: column; gap: 30px; padding-bottom: 28px; }
  .rv-fbrand { max-width: none; }
  .rv-fcols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; }
  .rv-flink { min-height: 40px; }
  .rv-fbar { flex-direction: column; align-items: flex-start; }

  html.rv-has-bar body { padding-bottom: calc(var(--rv-bar-h) + env(safe-area-inset-bottom)); }
  html.rv-has-bar .rv-sticky {
    display: flex;
    align-items: center;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    height: calc(var(--rv-bar-h) + env(safe-area-inset-bottom));
    padding: 0 16px env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--rv-border);
    box-shadow: 0 -8px 24px rgba(20, 22, 58, .06);
    box-sizing: border-box;
    font-family: var(--rv-body);
  }
  html.rv-menu-open .rv-sticky, html.rv-typing .rv-sticky { display: none; }
  .rv-sticky a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    white-space: nowrap;
  }
  .rv-sticky-cta {
    flex: 1 1 auto;
    background: var(--rv-grad);
    background-size: 200% 200%;
    animation: rvGrad 6s ease infinite;
    color: #fff;
    box-shadow: 0 8px 20px rgba(79, 70, 229, .3);
  }
  .rv-sticky-cta:hover, .rv-sticky-cta:focus { color: #fff; }
  .rv-sticky-call {
    flex: 0 0 auto;
    padding: 0 20px;
    border: 1.5px solid var(--rv-border-2);
    background: #fff;
    color: var(--rv-ink);
  }
  .rv-sticky-call:hover { color: var(--rv-indigo); border-color: var(--rv-indigo); }
  html.rv-has-bar .rv-wa { bottom: calc(var(--rv-bar-h) + 14px + env(safe-area-inset-bottom)); }
  html.rv-has-bar .rv-consent { bottom: calc(10px + env(safe-area-inset-bottom)); }
}
@media (max-width: 559px) {
  .rv-nav .rv-cta { display: none; }
}
/* set by site.js when a page body is wider than the phone screen */
html.rv-overflow .rv-nav, html.rv-overflow .rv-fwrap { max-width: var(--rv-vw); margin-left: 0; }
html.rv-overflow .rv-mnav { right: auto; width: var(--rv-vw); }
html.rv-overflow .rv-sticky { right: auto; width: var(--rv-vw); }

/* ---------- Responsive helpers for page bodies ---------- */
.rv-container { max-width: 1240px; margin-left: auto; margin-right: auto; padding-left: 32px; padding-right: 32px; box-sizing: border-box; }
.rv-scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.rv-break { overflow-wrap: anywhere; word-break: normal; -webkit-hyphens: auto; hyphens: auto; }
.rv-minw0 { min-width: 0 !important; }
/* rv-prose: links inside running text get a 36px+ tap height without moving the text */
.rv-prose a:not([style*="display"]):not([style*="padding"]):not([class]) { padding-top: 9px; padding-bottom: 9px; }
.rv-show-sm { display: none !important; }
@media (max-width: 899px) {
  .rv-hide-md { display: none !important; }
}
@media (max-width: 767px) {
  .rv-container { padding-left: 20px !important; padding-right: 20px !important; }
  .rv-grid-1-sm { grid-template-columns: minmax(0, 1fr) !important; }
  .rv-grid-2-sm { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .rv-stack-sm { flex-direction: column !important; align-items: stretch !important; }
  .rv-px-sm { padding-left: 20px !important; padding-right: 20px !important; }
  .rv-py-sm { padding-top: 56px !important; padding-bottom: 56px !important; }
  .rv-card-sm { padding: 28px 20px !important; border-radius: 22px !important; }
  .rv-full-sm { width: 100% !important; max-width: 100% !important; box-sizing: border-box; }
  .rv-center-sm { text-align: center !important; }
  .rv-hide-sm { display: none !important; }
  .rv-show-sm { display: revert !important; }
}

@media (prefers-reduced-motion: reduce) {
  .rv-cta, .rv-mcta, .rv-sticky-cta { animation: none !important; }
  .rv-link, .rv-wa { transition: none !important; }
}

@media print {
  .rv-header, .rv-sticky, .rv-consent, .rv-wa, .rv-toast { display: none !important; }
  html.rv-has-bar body { padding-bottom: 0; }
}
