/* =====================================================================
 * Reimbursify, site-wide brand chrome
 * Loaded on every page EXCEPT the front page (see functions.php). Brings the
 * homepage's brand nav + footer and Figtree typography to the rest of the
 * site. The homepage ships its own scoped stylesheet (brand-styles.css).
 *
 * Scope note: nav/footer rules target .brand-nav / .brand-footer (the markup
 * in template-parts/header/base.php + footer/base.php) so they never collide
 * with the homepage's .rb-nav / .rb-footer.
 * ===================================================================== */

:root {
  --rb-blue:        #0074D9;
  --rb-blue-bright: #3B9BFF;
  --rb-blue-light:  #EBF4FC;
  --rb-navy:        #1A2944;
  --rb-navy-mid:    #243453;
  --rb-slate:       #627087;
  --rb-muted:       #8A97A8;
  --rb-bg:          #F1F7FB;
  --rb-white:       #FFFFFF;
  --rb-border:      rgba(26, 41, 68, 0.10);
  --rb-sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --rb-radius: 14px;
  --rb-radius-lg: 22px;
  --rb-radius-xl: 32px;
  --rb-shadow-sm: 0 2px 8px rgba(26,41,68,0.05);
  --rb-shadow-md: 0 10px 30px rgba(26,41,68,0.08);
  --rb-shadow-lg: 0 20px 50px rgba(26,41,68,0.12);
  --rb-gradient: linear-gradient(135deg, #0074D9 0%, #1A2944 100%);
}

/* ---------- Typography (light-touch, brand font site-wide) ---------- */
body {
  font-family: var(--rb-sans);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--rb-sans);
  letter-spacing: -0.01em;
}

/* ---------- HEADER / NAV ---------- */
/* #masthead used to outrank Kadence's own .site-header chrome styles. */
#masthead.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--rb-border);
  padding: 0;
}
.admin-bar #masthead.site-header { top: 32px; }

.brand-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2.5rem;
  height: 70px;
}
.brand-nav .nav-logo { display: flex; align-items: center; text-decoration: none; }
.brand-nav .nav-logo img { height: 40px; width: auto; display: block; }
.brand-nav .nav-links { display: flex; align-items: center; gap: 2rem; }
.brand-nav .nav-links a {
  font-size: 14px; color: var(--rb-slate); text-decoration: none;
  font-weight: 500; transition: color 0.2s;
}
.brand-nav .nav-links a:hover { color: var(--rb-blue); }
.brand-nav .nav-cta {
  background: var(--rb-blue); color: #fff !important;
  padding: 9px 22px; border-radius: 40px;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.brand-nav .nav-cta:hover {
  background: var(--rb-navy); transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 116, 217, 0.25);
}

/* mobile toggle */
.brand-nav .mobile-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 5px; z-index: 110;
}
.brand-nav .mobile-toggle span {
  display: block; width: 26px; height: 2px; background: var(--rb-navy);
  border-radius: 2px; transition: 0.3s;
}
.brand-nav .mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.brand-nav .mobile-toggle.active span:nth-child(2) { opacity: 0; }
.brand-nav .mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#masthead .mobile-menu {
  position: fixed; top: 0; right: 0; width: 82%; max-width: 320px;
  height: 100vh; background: #fff; padding: 90px 2rem 2rem;
  display: none; flex-direction: column; gap: 1.5rem;
  box-shadow: -10px 0 40px rgba(26, 41, 68, 0.12);
  transform: translateX(100%); visibility: hidden;
  transition: transform 0.4s ease-out, visibility 0s linear 0.4s; z-index: 105;
}
#masthead .mobile-menu.active { display: flex; transform: translateX(0); visibility: visible; transition-delay: 0s; }
#masthead .mobile-menu a { font-size: 18px; color: var(--rb-navy); text-decoration: none; font-weight: 500; }
#masthead .mobile-menu .nav-cta {
  text-align: center; background: var(--rb-blue); color: #fff !important; padding: 13px; border-radius: 40px;
}

/* ---------- FOOTER ---------- */
.brand-footer {
  background: var(--rb-navy); color: rgba(255, 255, 255, 0.55);
  padding: 4rem 2.5rem 3rem;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  font-family: var(--rb-sans);
}
.brand-footer .footer-logo img { height: 30px; width: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.brand-footer .footer-desc { font-size: 13px; line-height: 1.7; max-width: 260px; }
.brand-footer .footer-store-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.25rem; }
.brand-footer .footer-store-badges .rb-store-badge-link { height: 40px; overflow: visible; }
.brand-footer .footer-store-badges img.rb-store-badge { display: block; width: auto; max-width: none; height: 40px; object-fit: contain; }
.brand-footer .footer-store-badges img.rb-store-badge--google-play { height: 40px; }
.brand-footer .footer-col-title { font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, 0.75); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; }
.brand-footer .footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; padding: 0; margin: 0; }
.brand-footer .footer-links a { font-size: 13px; color: rgba(255, 255, 255, 0.5); text-decoration: none; transition: color 0.2s; }
.brand-footer .footer-links .rb-store-badge-link { display: inline-flex; width: fit-content; }
.brand-footer .footer-links a:hover { color: #fff; }

.brand-footer.footer-bottom {
  display: block;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.5rem 2.5rem;
  text-align: center; font-size: 12px; color: rgba(255, 255, 255, 0.4);
}
.brand-footer.footer-bottom a { color: inherit; text-decoration: underline; }
.brand-footer.footer-bottom a:hover { color: #fff; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .brand-nav .nav-links { display: none; }
  .brand-nav .mobile-toggle { display: flex; }
  .brand-footer { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .brand-nav { padding: 0 1.25rem; }
  .brand-footer { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .brand-footer .footer-desc { margin: 0 auto; }
  .brand-footer .footer-store-badges { justify-content: center; }
  .brand-footer .footer-links { align-items: center; }
}
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
