/**
 * Header, footer and page shell.
 *
 * The design tokens come from the plugin's site.css via .zb-root, which the
 * shell carries, so the theme never redefines a colour.
 */

/*
 * Kill the blue tap box mobile browsers paint behind every link and button.
 * The property inherits, so this one rule covers the whole document: theme
 * chrome, plugin blocks and the lightbox alike. Pressed feedback is handled
 * by the :active rules further down and at the end of the plugin's forms.css.
 */
html { -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.relo-shell { display: flex; flex-direction: column; min-height: 100vh; }
.relo-main { flex: 1; }
.relo-shell a, .relo-shell button, .relo-shell summary { touch-action: manipulation; }
.relo-shell button { -webkit-user-select: none; user-select: none; }

/*
 * Full-width blocks: the shell has no max width, so a plain 100% is all the
 * width this needs. WordPress core's own .alignfull rule also sets
 * `margin-inline: calc(50% - 50vw)`, which this doesn't touch, and that 50vw
 * does not subtract the scrollbar, so every full-width section sits a few
 * pixels left of where it should. Zero out the margin here rather than carry
 * that drift into anything that lines up against a section, like the
 * floating header below.
 */
.relo-main > .alignfull { width: 100%; margin-inline: 0; }

.relo-skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--orange); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
  font-family: var(--disp); font-weight: 700; text-decoration: none;
}
.relo-skip:focus { left: 0; }

/* ---------------- top bar ---------------- */
.relo-topbar { background: var(--navy-900); color: rgba(255,255,255,.62); font-size: 12.5px; }
.relo-topbar-in { display: flex; justify-content: space-between; gap: 14px; padding-block: 10px; flex-wrap: wrap; }
.relo-topbar span { display: flex; align-items: center; gap: 8px; }
.relo-topbar svg { width: 14px; height: 14px; stroke: var(--orange-2); flex: none; }
/* NOTE on the selectors below: the plugin sets `.zb-root .btn { display:inline-flex }`
   and this file sets `.relo-shell .relo-phone { display:flex }`, both two classes.
   A one-class `display:none` inside a media query loses to them, media query or
   not, so every responsive hide here needs to match or beat that. */
@media (max-width: 1080px) { .relo-topbar .relo-topbar-right { display: none; } }
/* on a phone the header is the logo and the menu button, nothing else */
@media (max-width: 900px) { .relo-shell .relo-topbar { display: none; } }

/* ---------------- header ---------------- */
.relo-hdr { background: var(--navy-800); position: relative; z-index: 30; }

/*
 * Sticky header. `position: sticky` rather than fixed, so the thin top bar
 * still scrolls away first and nothing needs a spacer to stop the page
 * jumping. Hiding is a transform, which costs no layout.
 */
@media (min-width: 901px) {
  .relo-shell[data-sticky-d="1"] .relo-hdr { position: sticky; top: 0; }
}
@media (max-width: 900px) {
  .relo-shell[data-sticky-m="1"] .relo-hdr { position: sticky; top: 0; }
}
.relo-hdr { transition: transform .32s cubic-bezier(.3,.9,.3,1), box-shadow .3s ease, margin .3s ease, border-radius .3s ease; }
.relo-shell[data-hidden="1"] .relo-hdr { transform: translateY(-101%); }
.relo-shell[data-scrolled="1"] .relo-hdr { box-shadow: 0 10px 34px rgba(6,14,22,.34); }
@media (prefers-reduced-motion: reduce) { .relo-hdr { transition: none; } }
.relo-hdr-in { display: flex; align-items: center; gap: 22px; height: 86px; }

/*
 * Floating header, two states:
 *
 * At rest, right at the top of the page, it carries no background of its
 * own: it reads as part of the hero underneath it rather than a bar sitting
 * on top of it. Only once `data-scrolled` flips (the same flag the shadow
 * already used, set the moment the page moves more than 8px) does it
 * solidify into the inset, rounded, drop-shadowed card.
 *
 * Height and top margin are the same number in both states on purpose: the
 * header's reserved space in the page flow never changes between them, so
 * there is nothing to reflow or jump when the look switches. Only the
 * horizontal inset, background, radius and shadow transition.
 *
 * `.wrap` centres a 1240px box with 44px of its own inner padding, so its
 * content always spans 1240 - 2*44 = 1152px. Giving the scrolled header that
 * same 1152px and centring it with `margin-inline:auto` lands it on exactly
 * that span, by construction, with no arithmetic to keep in sync. Below that
 * width `.wrap`'s content is 100% minus 2*44px of padding, so the `max()`
 * floor matches it the same way; the 860px step mirrors `.wrap`'s own
 * breakpoint where its padding drops to 20px.
 *
 * The inset is written with percentages (`100%`), not `100vw`: `100%`
 * resolves against the header's own containing block, the same reference
 * `.wrap` centres against, so it is exact regardless of scrollbar width.
 * `100vw` does not subtract the scrollbar, which would otherwise drift this
 * a handful of pixels off true.
 */
.relo-shell[data-floating="1"] .relo-hdr {
  margin-top: 14px;
  margin-inline: 0;
  background: transparent;
  border-radius: 18px;
  box-shadow: none;
  transition:
    transform .32s cubic-bezier(.3,.9,.3,1),
    background .3s ease, box-shadow .3s ease, margin-inline .3s ease;
}
.relo-shell[data-floating="1"] .relo-hdr-in { height: 68px; }

.relo-shell[data-floating="1"][data-scrolled="1"] .relo-hdr {
  background: var(--navy-800);
  max-width: 1152px;
  margin-inline: max(44px, calc((100% - 1152px) / 2));
  box-shadow: 0 16px 42px rgba(var(--navy-rgb), .3);
}
@media (max-width: 860px) {
  .relo-shell[data-floating="1"][data-scrolled="1"] .relo-hdr { margin-inline: 20px; }
}
@media (max-width: 900px) {
  .relo-shell[data-floating="1"] .relo-hdr { margin-top: 10px; border-radius: 14px; }
  .relo-shell[data-floating="1"] .relo-hdr-in { height: 60px; }
}

/* the plain hide-transform only clears the header's own height; floating
   also has to clear its own top margin and shadow or a sliver stays visible */
.relo-shell[data-floating="1"][data-hidden="1"] .relo-hdr { transform: translateY(calc(-100% - 40px)); }

@media (min-width: 901px) {
  .relo-shell[data-floating="1"][data-sticky-d="1"] .relo-hdr { top: 14px; }
}
@media (max-width: 900px) {
  .relo-shell[data-floating="1"][data-sticky-m="1"] .relo-hdr { top: 10px; }
}

/*
 * Pulls the hero up to start behind the header instead of below it, so the
 * transparent state actually overlays the photo rather than just exposing
 * whatever is above it in the flow. The offset is the header's own reserved
 * height plus its top margin, the exact two numbers set above, so the hero's
 * top edge lands precisely where the header's box begins.
 */
.relo-shell[data-floating="1"] .relo-main > .zb-root.hero:first-child {
  margin-top: calc(-14px - 68px);
}
@media (max-width: 900px) {
  .relo-shell[data-floating="1"] .relo-main > .zb-root.hero:first-child {
    margin-top: calc(-10px - 60px);
  }
}

.relo-shell .relo-brand {
  font-family: var(--disp); font-weight: 800; font-size: 1.55rem; letter-spacing: -.04em;
  color: #fff; margin-right: auto; flex: none; white-space: nowrap; text-decoration: none;
}
.relo-shell .relo-brand i { font-style: normal; color: var(--orange); }

.relo-nav { flex: none; }
.relo-shell .relo-menu {
  display: flex; gap: 20px; margin: 0; padding: 0; list-style: none;
  font-family: var(--disp); font-weight: 600; font-size: 14px; white-space: nowrap;
}
.relo-shell .relo-menu a { color: rgba(255,255,255,.8); text-decoration: none; }
.relo-shell .relo-menu a:hover,
.relo-shell .relo-menu a:focus-visible,
.relo-shell .relo-menu .current-menu-item > a { color: var(--orange-2); }

.relo-shell .relo-phone {
  display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none;
  font-family: var(--disp); font-weight: 700; font-size: .98rem; flex: none; white-space: nowrap;
}
.relo-shell .relo-phone { transition: color .18s ease; }
.relo-shell .relo-phone svg {
  width: 18px; height: 18px; stroke: var(--orange-2); flex: none;
  transition: transform .22s cubic-bezier(.3,.9,.3,1);
}
.relo-shell .relo-phone:hover,
.relo-shell .relo-phone:focus-visible { color: var(--orange-2); }
.relo-shell .relo-phone:hover svg { transform: rotate(-14deg) scale(1.1); }
.relo-cta { flex: none; padding-inline: 22px; }

@media (max-width: 1280px) { .relo-shell .relo-hdr .relo-phone { display: none; } }
@media (max-width: 1080px) { .relo-shell .relo-nav { display: none; } }

.relo-burger {
  display: none; width: 44px; height: 44px; flex: none; padding: 0;
  border: 1px solid rgba(255,255,255,.28); border-radius: 9px; background: none; cursor: pointer;
}
.relo-burger i { display: block; width: 18px; height: 2px; background: #fff; margin: 4px auto; }
/* once the burger appears the header is only the logo and the burger:
   the quote button lives inside the slide-in panel instead */
@media (max-width: 1080px) {
  .relo-burger { display: block; }
  .relo-shell .relo-hdr .relo-cta { display: none; }
}
@media (max-width: 900px) {
  .relo-hdr-in { height: 68px; }
  .relo-shell .relo-brand { font-size: 1.34rem; }
}

/*
 * Hello Elementor's reset ships `button:focus, button:hover {
 * background-color:#c36 }` at specificity (0,1,1), which beats a single
 * class. Put our own colours back on every state of the three bare buttons
 * this theme owns.
 */
.relo-shell .relo-burger,
.relo-shell .relo-burger:hover,
.relo-shell .relo-burger:focus,
.relo-shell .relo-burger:active { background: none; color: #fff; }
.relo-shell .relo-burger:hover { background: rgba(255,255,255,.09); }

.relo-shell .relo-x,
.relo-shell .relo-x:hover,
.relo-shell .relo-x:focus,
.relo-shell .relo-x:active { background: none; color: #fff; }
.relo-shell .relo-x:hover { background: rgba(255,255,255,.1); }

.relo-shell .relo-fab-btn,
.relo-shell .relo-fab-btn:hover,
.relo-shell .relo-fab-btn:focus,
.relo-shell .relo-fab-btn:active { background: var(--orange); color: #fff; }

.relo-shell .relo-burger:focus-visible,
.relo-shell .relo-x:focus-visible,
.relo-shell .relo-fab-btn:focus-visible { outline: 3px solid var(--orange-2); outline-offset: 3px; }

/* pressed, focused, or holding the panel open: the outline goes brand orange */
.relo-shell .relo-burger,
.relo-shell .relo-x { transition: border-color .18s ease, background .18s ease; }
/* :focus-visible, never :focus. A click leaves focus on the button, so
   plain :focus kept the orange border on long after the tap was over, and
   the same happened to the close button once the panel focused it. */
.relo-shell .relo-burger:active,
.relo-shell .relo-burger:focus-visible,
.relo-shell .relo-x:active,
.relo-shell .relo-x:focus-visible { border-color: var(--orange); }
.relo-shell .relo-burger:active i { background: var(--orange-2); }
.relo-shell .relo-x:active svg { stroke: var(--orange-2); }

/* ---------------- mobile slide-in menu ---------------- */
/*
 * `visibility` is what made closing look abrupt: it flipped to hidden the
 * instant the attribute changed, so the panel vanished before it had slid
 * anywhere. Delaying it by the length of the slide lets the animation finish;
 * opening flips it immediately (0s delay) so the panel is there to animate in.
 */
.relo-mnav {
  position: fixed; inset: 0; z-index: 200; visibility: hidden;
  transition: visibility 0s linear .36s;
}
.relo-mnav[data-open="true"] { visibility: visible; transition: visibility 0s linear 0s; }
.relo-scrim {
  position: absolute; inset: 0; background: rgba(6,14,22,.6);
  opacity: 0; transition: opacity .32s ease; cursor: pointer;
  /* a tap here must only close the menu: no blue tap flash, no text getting
     selected in the page showing through */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.relo-mnav, .relo-mnav * { -webkit-tap-highlight-color: transparent; }
/* while the panel is open nothing behind it should be selectable either */
html.relo-nav-open, html.relo-nav-open body {
  -webkit-user-select: none; user-select: none;
}
html.relo-nav-open .relo-panel {
  -webkit-user-select: text; user-select: text;
}
.relo-mnav[data-open="true"] .relo-scrim { opacity: 1; }
.relo-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 86%);
  background: var(--navy-800); box-shadow: -20px 0 60px rgba(0,0,0,.45);
  transform: translateX(100%); transition: transform .34s cubic-bezier(.3,.9,.3,1);
  display: flex; flex-direction: column; padding: 22px 24px 28px; overflow-y: auto;
}
.relo-mnav[data-open="true"] .relo-panel { transform: translateX(0); }
@media (prefers-reduced-motion: reduce) {
  .relo-panel, .relo-scrim { transition: none; }
  .relo-mnav { transition: none; }
}
.relo-panel-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.relo-panel .relo-brand { margin-right: 0; font-size: 1.32rem; }
.relo-x {
  width: 42px; height: 42px; flex: none; padding: 0; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.22); background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; line-height: 0;
}
.relo-x svg { display: block; width: 18px; height: 18px; stroke: #fff; }
.relo-x:hover { background: rgba(255,255,255,.1); }

.relo-panel .relo-menu { flex-direction: column; gap: 0; white-space: normal; }
.relo-shell .relo-panel .relo-menu a {
  display: block; color: rgba(255,255,255,.86); font-size: 1.05rem; font-weight: 700;
  padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.1);
}
.relo-shell .relo-panel .relo-menu a:hover { color: var(--orange-2); }

.relo-panel-foot { margin-top: 26px; display: grid; gap: 12px; }
.relo-panel-foot .btn { width: 100%; }
.relo-shell .relo-ln {
  display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.72);
  font-size: 14px; text-decoration: none;
}
.relo-ln svg { width: 16px; height: 16px; stroke: var(--orange-2); flex: none; }
.relo-shell .relo-ln:hover { color: #fff; }

/* ---------------- footer ---------------- */
.relo-ftr { background: var(--navy-900); color: rgba(255,255,255,.62); padding-block: 70px 0; font-size: 14.5px; }
.relo-ftr-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 46px; }
@media (max-width: 900px) { .relo-ftr-grid { grid-template-columns: 1fr 1fr; gap: 34px; } }
@media (max-width: 520px) { .relo-ftr-grid { grid-template-columns: 1fr; } }
.relo-ftr h4 {
  font-family: var(--disp); font-weight: 700; font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255,255,255,.42); margin: 0 0 17px;
}
.relo-ftr .relo-brand { margin-right: 0; }
.relo-blurb { margin: 16px 0 0; max-width: 32ch; color: rgba(255,255,255,.55); }

.relo-shell .relo-fmenu,
.relo-shell .relo-contact { list-style: none; margin: 0; padding: 0; }
.relo-shell .relo-fmenu li,
.relo-shell .relo-contact li { margin-bottom: 10px; }
.relo-shell .relo-contact li { display: flex; align-items: center; gap: 10px; }
.relo-contact svg { width: 16px; height: 16px; stroke: var(--orange-2); flex: none; }
.relo-shell .relo-ftr a { color: inherit; text-decoration: none; }
.relo-shell .relo-ftr a:hover { color: var(--orange-2); }

.relo-ftr-btm {
  margin-top: 54px; border-top: 1px solid rgba(255,255,255,.12); padding-block: 22px 26px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 12.5px; color: rgba(255,255,255,.4);
}
.relo-shell .relo-ftr-btm a { color: var(--orange-2); }
.relo-shell .relo-ftr-btm a:hover { text-decoration: underline; }

/* ---------------- social icons ---------------- */
/* One component, two homes: under the footer logo and under the buttons in
   the mobile menu. Sized from a single list rule so both stay identical. */
.relo-shell .relo-social {
  display: flex; flex-wrap: wrap; gap: 10px;
  list-style: none; margin: 20px 0 0; padding: 0;
}
.relo-shell .relo-social a {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.72);
  text-decoration: none;
  transition: background .18s, border-color .18s, color .18s, transform .18s;
}
.relo-shell .relo-social svg { width: 17px; height: 17px; display: block; }
.relo-shell .relo-social a:hover,
.relo-shell .relo-social a:focus-visible {
  background: var(--orange); border-color: var(--orange); color: #fff;
  transform: translateY(-2px);
}
.relo-shell .relo-social-panel { margin-top: 6px; }

/* ---------------- floating contact button ---------------- */
/* Hidden on desktop, where the header already carries the phone and the CTA. */
.relo-fab {
  display: none; position: fixed; z-index: 120;
  bottom: calc(20px + env(safe-area-inset-bottom));
  flex-direction: column; align-items: flex-end; gap: 12px;
}
@media (max-width: 1080px) { .relo-fab { display: flex; } }
.relo-fab[data-side="right"] { right: 18px; align-items: flex-end; }
.relo-fab[data-side="left"] { left: 18px; align-items: flex-start; }

.relo-fab-acts { display: flex; flex-direction: column; gap: 10px; align-items: inherit; }

.relo-fab-act {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: var(--navy-800); text-decoration: none;
  font-family: var(--disp); font-weight: 700; font-size: 14.5px;
  padding: 11px 18px 11px 12px; border-radius: 999px;
  box-shadow: 0 10px 26px rgba(6,14,22,.24);
  /* collapsed: tucked behind the button and out of the tab order visually */
  opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none;
  transition: opacity .22s ease, transform .22s cubic-bezier(.3,.9,.3,1);
}
.relo-fab[data-open="true"] .relo-fab-act { opacity: 1; transform: none; pointer-events: auto; }
.relo-fab[data-open="true"] .relo-fab-act:nth-child(2) { transition-delay: .05s; }
.relo-fab-act:hover { color: var(--orange); }

.relo-fab-ico {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--orange); color: #fff;
}
.relo-fab-ico svg { width: 16px; height: 16px; display: block; }

.relo-fab-btn {
  width: 58px; height: 58px; flex: none; padding: 0; cursor: pointer;
  border: 0; border-radius: 50%; background: var(--orange); color: #fff;
  /* a one-cell grid stacks both icons in the same place and centres them
     without absolute positioning, which never centred reliably here */
  display: grid; place-items: center; position: relative;
  box-shadow: 0 12px 30px rgba(var(--orange-rgb),.42);
  transition: transform .22s cubic-bezier(.3,.9,.3,1);
}
.relo-fab-btn:hover { transform: scale(1.05); }
/* same grid cell = stacked, and place-items on the button centres both */
.relo-fab-btn svg {
  grid-area: 1 / 1; width: 27px; height: 27px; display: block;
  transition: opacity .2s ease, transform .28s cubic-bezier(.3,.9,.3,1);
}
.relo-fab-close { opacity: 0; transform: rotate(-90deg); }
.relo-fab[data-open="true"] .relo-fab-chat { opacity: 0; transform: rotate(90deg); }
.relo-fab[data-open="true"] .relo-fab-close { opacity: 1; transform: none; }

/* a soft pulse so the button reads as tappable without being loud */
.relo-fab-btn::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--orange); animation: relo-pulse 2.6s ease-out infinite;
}
.relo-fab[data-open="true"] .relo-fab-btn::after { animation: none; opacity: 0; }
@keyframes relo-pulse {
  0%   { transform: scale(1); opacity: .55; }
  70%  { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .relo-fab-btn::after { animation: none; opacity: 0; }
  .relo-fab-act, .relo-fab-btn, .relo-fab-btn svg { transition: none; }
}

/* keep the button clear of the panel while the mobile menu is open */
.relo-mnav[data-open="true"] ~ .relo-fab,
body:has(.relo-mnav[data-open="true"]) .relo-fab { opacity: 0; pointer-events: none; }

/* ---------------- pressed states ----------------
 * Last in the file so they beat the :hover rules above on a touch device,
 * where hover fires alongside the tap.
 */
.relo-shell .relo-burger:active,
.relo-shell .relo-x:active { transform: scale(.94); }
.relo-shell .relo-fab-btn:active { transform: scale(.94); }
.relo-shell .relo-fab-act:active { transform: scale(.97); }
.relo-shell .relo-social a:active { transform: scale(.92); }
.relo-shell .relo-menu a:active,
.relo-shell .relo-phone:active,
.relo-shell .relo-ln:active,
.relo-shell .relo-ftr a:active { opacity: .7; }
@media (prefers-reduced-motion: reduce) {
  .relo-shell .relo-burger:active, .relo-shell .relo-x:active,
  .relo-shell .relo-fab-btn:active, .relo-shell .relo-fab-act:active,
  .relo-shell .relo-social a:active { transform: none; }
}
