/* ==========================================================================
   Raze Media v2 header on inner pages: same look and behavior as the homepage
   header. Everything is scoped under #rz-nav, so theme styles and this file
   stay out of each other's way. Impreza's own header is hidden on these pages.
   ========================================================================== */

.has-rz-nav .l-header { display: none !important; }

#rz-nav {
  --u: min(1vw, 17.28px);
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --blue: #019dd8;
  --grad-header: linear-gradient(180deg, #019dd8 0%, #0086a3 100%);
  --f-cond: "Roboto Condensed", "Arial Narrow", Helvetica, Arial, sans-serif;
}
#rz-nav *,
#rz-nav *::before,
#rz-nav *::after { box-sizing: border-box; }
#rz-nav ul,
#rz-nav li { margin: 0; padding: 0; list-style: none; }
#rz-nav li::before { content: none; }
#rz-nav img { display: block; max-width: 100%; height: auto; border: 0; }
#rz-nav a { text-decoration: none; box-shadow: none; }
#rz-nav :focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 6px; }

/* Skip link */
#rz-nav .skip-link {
  position: fixed;
  left: max(16px, env(safe-area-inset-left, 0px));
  top: -100px;
  z-index: 1002;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font: 700 16px/1 var(--f-cond);
}
#rz-nav .skip-link:focus { top: calc(12px + env(safe-area-inset-top, 0px)); outline-color: #2e9cd7; }

/* Header bar */
#rz-nav .site-header {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  z-index: 1000;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--grad-header);
  color: #fff;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.04);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease;
}
#rz-nav .site-header.is-compact { box-shadow: 0 10px 30px rgba(0, 46, 70, 0.25); }
#rz-nav .site-header.is-hidden { transform: translateY(-110%); }

#rz-nav .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  transition: height 0.3s ease;
}
#rz-nav .site-header.is-compact .header-inner { height: 62px; }

#rz-nav .logo { display: block; flex: none; border-radius: 4px; }
#rz-nav .logo img { width: clamp(150px, calc(11 * var(--u)), 200px); transition: width 0.3s ease; }
#rz-nav .site-header.is-compact .logo img { width: clamp(140px, calc(9.5 * var(--u)), 172px); }

#rz-nav .nav { display: none; }
#rz-nav .nav-list { display: flex; align-items: center; gap: clamp(18px, calc(2.3 * var(--u)), 40px); }
#rz-nav .nav-list a {
  position: relative;
  display: block;
  padding: 8px 0;
  color: #fff;
  font: 400 clamp(16px, calc(1.1 * var(--u)), 19px)/1 var(--f-cond);
  letter-spacing: 0.01em;
  text-transform: none;
  white-space: nowrap;
}
#rz-nav .nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
#rz-nav .nav-list a:hover::after,
#rz-nav .nav-list a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
#rz-nav .nav-list a:hover { color: #fff; }
#rz-nav .nav-list a[aria-current="page"] { color: rgba(255, 255, 255, 0.72); }
#rz-nav .nav-list .nav-cta {
  padding: 10px 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  font-weight: 700;
  transition: background-color 0.25s ease, color 0.25s ease;
}
#rz-nav .nav-list .nav-cta::after { display: none; }
#rz-nav .nav-list .nav-cta:hover { background: #fff; color: var(--blue); }

#rz-nav .menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  height: auto;
  min-height: 44px;
  margin: 0;
  padding: 0 16px 0 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: #fff;
  font: 700 16px/1 var(--f-cond);
  letter-spacing: 0.08em;
  text-shadow: none;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
#rz-nav .menu-btn:hover { background: rgba(255, 255, 255, 0.12); }
#rz-nav .menu-btn-icon { position: relative; display: block; width: 18px; height: 12px; }
#rz-nav .menu-btn-icon::before,
#rz-nav .menu-btn-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s ease, top 0.3s ease;
}
#rz-nav .menu-btn-icon::before { top: 1px; }
#rz-nav .menu-btn-icon::after { top: 9px; }
#rz-nav .menu-btn[aria-expanded="true"] .menu-btn-icon::before { top: 5px; transform: rotate(45deg); }
#rz-nav .menu-btn[aria-expanded="true"] .menu-btn-icon::after { top: 5px; transform: rotate(-45deg); }

@media (min-width: 1100px) {
  #rz-nav .nav { display: block; }
  #rz-nav .menu-btn { display: none; }
}

/* Full-screen menu: opens as a circle from the menu button */
#rz-nav .menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  margin: 0;
  padding: calc(var(--header-h) + 24px + env(safe-area-inset-top, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
  background: var(--grad-header);
  color: #fff;
  overflow-y: auto;
  overscroll-behavior: contain;
  clip-path: circle(0% at 92% 3%);
  transition: clip-path 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}
#rz-nav .menu.is-open { clip-path: circle(150% at 92% 3%); }
#rz-nav .menu[hidden] { display: none; }
#rz-nav .menu-list li,
#rz-nav .menu-call {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
#rz-nav .menu.is-open .menu-list li,
#rz-nav .menu.is-open .menu-call {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.2s + var(--k, 0) * 50ms);
}
#rz-nav .menu-list a {
  display: block;
  padding: 8px 0;
  color: #fff;
  font: 700 clamp(30px, 8vw, 48px)/1.05 var(--f-cond);
  text-transform: uppercase;
}
#rz-nav .menu-list a:hover { color: #fff; opacity: 0.85; }
#rz-nav .menu-list a[aria-current="page"] { color: rgba(255, 255, 255, 0.7); }
#rz-nav .menu-call {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  color: #fff;
  font: 700 22px/1 var(--f-cond);
}
#rz-nav .menu-call svg { display: block; width: 28px; height: 28px; fill: currentColor; }

/* Logged-in WordPress users: keep the header and menu below the admin bar */
.admin-bar #rz-nav .site-header,
.admin-bar #rz-nav .menu { top: 32px; }
.admin-bar #rz-nav .skip-link:focus { top: 44px; }
@media screen and (max-width: 782px) {
  .admin-bar #rz-nav .site-header,
  .admin-bar #rz-nav .menu { top: 46px; }
  .admin-bar #rz-nav .skip-link:focus { top: 58px; }
}
@media screen and (max-width: 600px) {
  .has-rz-nav.admin-bar #wpadminbar { position: fixed; }
}

@media (prefers-reduced-motion: reduce) {
  #rz-nav *,
  #rz-nav *::before,
  #rz-nav *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}

/* ==========================================================================
   Footer: same look as the homepage footer. The old footer block (.group-43)
   is hidden on these pages.
   ========================================================================== */

.has-rz-nav .group-43 { display: none !important; }

#rz-footer {
  --u: min(1vw, 17.28px);
  --gutter: clamp(16px, 4vw, 40px);
  --blue: #019dd8;
  --grad-footer: linear-gradient(180deg, #00bdd7 0%, #019dd8 100%);
  --f-cond: "Roboto Condensed", "Arial Narrow", Helvetica, Arial, sans-serif;
  position: relative;
  z-index: 5;
  margin: 0;
  padding: 70px 0 0;
  /* The strip the badge sits in matches white page content (the theme's page background is grey) */
  background: var(--color-content-bg, #fff);
  color: #fff;
  font: 400 16px/1.55 "Roboto", Helvetica, Arial, sans-serif;
  text-align: left;
}
/* Pages that end in a color or a picture run straight into the footer, and the badge sits over
   their last stretch instead (raze-nav.js adds rz-flush) */
#rz-footer.rz-flush { margin-top: -70px; background: none; }
#rz-footer *,
#rz-footer *::before,
#rz-footer *::after { box-sizing: border-box; }
#rz-footer h2,
#rz-footer p,
#rz-footer ul,
#rz-footer li { margin: 0; padding: 0; list-style: none; }
#rz-footer li::before { content: none; }
#rz-footer img,
#rz-footer svg { display: block; max-width: 100%; }
#rz-footer img { height: auto; border: 0; }
#rz-footer a { text-decoration: none; box-shadow: none; }
#rz-footer :focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 6px; }
#rz-footer .rz-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

#rz-footer .footer-band {
  position: relative;
  padding: 72px max(var(--gutter), env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
  background: var(--grad-footer);
}

/* Badge that doubles as "back to top" */
#rz-footer .footer-dock {
  position: absolute;
  right: max(var(--gutter), env(safe-area-inset-right, 0px));
  top: -70px;
  z-index: 2;
  width: 140px;
}
#rz-footer .footer-badge {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  box-shadow: none;
  line-height: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
#rz-footer .footer-badge:focus-visible { outline-offset: 6px; }
#rz-footer .footer-badge-tip {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 48, 72, 0.4);
  font: 700 12px/1 var(--f-cond);
  letter-spacing: 0.1em;
  white-space: nowrap;
  text-transform: uppercase;
  opacity: 0;
  transform: translate(-50%, -4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
#rz-footer .footer-badge:hover + .footer-badge-tip,
#rz-footer .footer-badge:focus-visible + .footer-badge-tip { opacity: 1; transform: translate(-50%, 0); }

#rz-footer .badge {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 calc(1.4 * var(--u)) calc(3 * var(--u)) calc(-0.8 * var(--u)) rgba(0, 62, 92, 0.32);
}
#rz-footer .badge-base { position: absolute; inset: 0; width: 100%; height: 100%; }
#rz-footer .mark-spin { position: absolute; inset: 0; transform-origin: 50% 50%; }
#rz-footer .badge-mark { position: absolute; left: 28.8%; top: 14.9%; width: 46%; height: 72%; fill: url(#rz-grad-mark); }

#rz-footer .footer-top { display: grid; gap: 24px; justify-items: start; }
#rz-footer .footer-title {
  color: #fff;
  font: 700 clamp(44px, 12vw, 64px)/0.93 var(--f-cond);
  letter-spacing: 0;
  text-transform: uppercase;
}
#rz-footer .footer-title .line { display: block; }
/* One column on phones, two even columns above; links never wrap, so every row has the same spacing */
#rz-footer .footer-links { display: grid; grid-template-columns: max-content; gap: 8px 48px; justify-items: start; }
@media (min-width: 600px) { #rz-footer .footer-links { grid-template-columns: repeat(2, max-content); } }
#rz-footer .footer-links a {
  display: inline-block;
  justify-self: start;
  padding: 4px 0;
  color: #fff;
  white-space: nowrap;
  background: linear-gradient(#fff, #fff) left bottom / 0 1.5px no-repeat;
  transition: background-size 0.3s ease;
}
#rz-footer .footer-links a:hover,
#rz-footer .footer-links a:focus-visible { color: #fff; background-size: 100% 1.5px; }
#rz-footer .footer-call {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 14px;
  color: #fff;
  font: 700 clamp(22px, calc(1.8 * var(--u)), 30px)/1 var(--f-cond);
  letter-spacing: 0.02em;
}
/* The phone glyph starts 9.4% into its box; pull it back so it lines up with the title */
#rz-footer .footer-call svg { width: clamp(44px, calc(3.7 * var(--u)), 64px); height: clamp(44px, calc(3.7 * var(--u)), 64px); margin-left: calc(clamp(44px, calc(3.7 * var(--u)), 64px) * -0.094); fill: currentColor; }
#rz-footer .footer-call:hover { color: #fff; }
#rz-footer .footer-call:hover span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
#rz-footer .footer-rule {
  height: 3px;
  margin: 28px 0 22px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: #fff;
  opacity: 1;
}
#rz-footer .footer-bottom { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; }
#rz-footer .footer-copy { display: grid; gap: 12px; font-size: 16px; }
#rz-footer .footer-copy img { width: 160px; }
#rz-footer .footer-follow { display: grid; gap: 10px; justify-items: start; font-size: 16px; }
#rz-footer .socials { display: flex; gap: 10px; }
#rz-footer .socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  transition: background-color 0.25s ease, color 0.25s ease, translate 0.25s ease;
}
#rz-footer .socials a:hover { background: #fff; color: var(--blue); translate: 0 -3px; }
#rz-footer .socials svg { width: 18px; height: 18px; fill: currentColor; }

@media (min-width: 1000px) {
  #rz-footer { padding-top: calc(9 * var(--u)); }
  #rz-footer.rz-flush { margin-top: calc(-9 * var(--u)); }
  #rz-footer .footer-band { padding: calc(4.9 * var(--u)) calc(3.7 * var(--u)) calc(2.4 * var(--u)); }
  #rz-footer .footer-dock { right: auto; left: calc(72.74 * var(--u)); top: calc(-9 * var(--u)); width: calc(23.55 * var(--u)); }
  /* Title with the phone right under it; links beside them; everything starts on one left edge */
  #rz-footer .footer-top { grid-template-columns: max-content minmax(0, 1fr); grid-template-rows: auto 1fr; gap: calc(1.6 * var(--u)) clamp(32px, calc(5 * var(--u)), 88px); align-items: start; }
  #rz-footer .footer-title { grid-column: 1; grid-row: 1; font-size: clamp(52px, calc(4.94 * var(--u)), 88px); }
  #rz-footer .footer-links { grid-column: 2; grid-row: 1 / span 2; grid-template-columns: max-content; column-gap: calc(3 * var(--u)); row-gap: 10px; padding-top: 0.4em; }
  #rz-footer .footer-call { grid-column: 1; grid-row: 2; }
  #rz-footer .footer-rule { margin: calc(2.2 * var(--u)) 0 calc(1.6 * var(--u)); }
}

/* Wide screens: two link columns fit beside the title without reaching the badge */
@media (min-width: 1100px) { #rz-footer .footer-links { grid-template-columns: repeat(2, max-content); } }

/* Badge drops in when the footer arrives (only when motion is allowed; see raze-nav.js) */
#rz-footer.rz-pre .footer-dock { opacity: 0; }
#rz-footer.is-in .footer-dock { animation: rz-drop 1.3s linear both; }
#rz-footer.is-in .mark-spin { animation: rz-spin 1.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes rz-drop {
  0% { opacity: 0; transform: translateY(-60vh); animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45); }
  12% { opacity: 1; }
  45% { transform: translateY(0); animation-timing-function: cubic-bezier(0, 0.55, 0.45, 1); }
  62% { transform: translateY(-46px); animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45); }
  78% { transform: translateY(0); animation-timing-function: cubic-bezier(0, 0.55, 0.45, 1); }
  88% { transform: translateY(-12px); animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes rz-spin {
  from { transform: rotate(-540deg); }
  to { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  #rz-footer *,
  #rz-footer *::before,
  #rz-footer *::after { transition-duration: 0.01ms !important; animation: none !important; }
}
