/* Shared site header (white nav bar) and footer, used by every page.
   Every class is prefixed so a page's own CSS cannot change them; the .ucb-chrome reset below protects them too. */

.ucb-chrome {
  --navy: #1c3a13; --green: #1c3a13; --lime: #d3fa99; --light: #fcfcf7; --gray: #5f655b; --ink: #1c3a13;
  --sage: #757c5d; --moss: #698e79; --line: rgba(28, 58, 19, 0.14);
  --type-title: 18px; --type-subheading: 24px; --type-description: 18px; --type-detail: 14px; --text-body: 16px;
}
/* Reset whatever the page's own element rules (a, ul, h3, p...) would add, then rebuild. */
/* SVG icons are left out: their drawing attributes (fill, stroke) would be wiped too. */
.ucb-chrome, .ucb-chrome :where(:not(svg, svg *)) { all: revert; }
.ucb-chrome {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.6; font-weight: 400; color: #1c3a13;
  -webkit-font-smoothing: antialiased; box-sizing: border-box; text-decoration: none;
}
.ucb-chrome * { box-sizing: border-box; }
.ucb-chrome a { text-decoration: none; color: inherit; -webkit-tap-highlight-color: transparent; }
.ucb-chrome h3, .ucb-chrome p { margin-top: 0px; }

/* ---------- Header: one white rounded bar — logo, links, Business Login button ---------- */
.ucb-chrome.topnav-wrap { position: relative; z-index: 40; display: block; padding: 16px 0 8px; }
/* On the home page the bar floats over the hero photo. */
.ucb-chrome.topnav-wrap.is-overlay { position: absolute; top: 0; left: 0; right: 0; padding-top: 20px; }
.ucb-chrome .topnav { position: relative; display: flex; align-items: center; gap: 24px; width: min(100% - 48px, 1400px); min-height: 72px; margin: 0 auto; padding: 10px 10px 10px 24px; border-radius: 999px;
  /* Silver glass: white-to-silver tint with the background blurred behind it; no border. */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72) 0%, rgba(226, 230, 232, 0.55) 55%, rgba(205, 210, 214, 0.5) 100%);
  border: 0;
  box-shadow: 0 10px 30px rgba(9, 28, 14, 0.14);
  -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3); }
.ucb-chrome .topnav-brand { display: inline-flex; align-items: center; flex: none; width: 96px; height: 48px; }
.ucb-chrome .topnav-brand img { display: block; width: 100%; height: 100%; object-fit: contain; transform: scale(1.35); }
.ucb-chrome .topnav-links { display: flex; align-items: center; justify-content: center; gap: 32px; flex: 1; }
.ucb-chrome .topnav-links > a, .ucb-chrome .topnav-group > summary { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 15px; font-weight: 500; cursor: pointer; transition: opacity 160ms; }
.ucb-chrome .topnav-links > a:hover, .ucb-chrome .topnav-group > summary:hover { opacity: 0.65; }
.ucb-chrome .topnav-group { position: relative; display: inline-flex; }
.ucb-chrome .topnav-group > summary { list-style: none; gap: 6px; }
.ucb-chrome .topnav-group > summary::-webkit-details-marker { display: none; }
.ucb-chrome .topnav-group > summary svg { width: 14px; height: 14px; transition: transform 160ms; }
.ucb-chrome .topnav-group[open] > summary svg { transform: rotate(180deg); }
.ucb-chrome .topnav-menu { position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%); display: grid; gap: 4px; min-width: 250px; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 14px 34px rgba(9, 28, 14, 0.14); }
.ucb-chrome .topnav-menu a { display: block; padding: 12px 14px; border-radius: 10px; color: var(--ink); font-size: 14px; font-weight: 500; white-space: nowrap; }
.ucb-chrome .topnav-menu a:hover { background: #eeeee9; }
.ucb-chrome .topnav-actions { display: flex; align-items: center; gap: 18px; flex: none; }
.ucb-chrome .topnav-cta { display: inline-flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 6px 0 24px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 500; transition: background 160ms; }
.ucb-chrome .topnav-cta:hover { background: #2f5524; }
.ucb-chrome .arrow-dot { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--ink); }
.ucb-chrome .arrow-dot svg { width: 18px; height: 18px; }
.ucb-chrome .topnav-toggle { display: none; }
.ucb-chrome .topnav a:focus-visible, .ucb-chrome .topnav button:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; border-radius: 10px; }
.ucb-chrome .topnav summary { outline: none; border-radius: 10px; }
.ucb-chrome .topnav summary:focus-visible { box-shadow: 0 0 0 3px rgba(117, 124, 93, 0.45); }
.ucb-chrome .topnav-cta-short { display: none; }

/* Tablet and phone: links fold into a "Menu" panel under the bar; Register stays visible. */
@media (max-width: 1080px) {
  .ucb-chrome .topnav { gap: 12px; padding-left: 18px; }
  .ucb-chrome .topnav-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-left: auto; padding: 0 16px; border: 1px solid rgba(255, 255, 255, 0.75); border-radius: 999px; background: rgba(255, 255, 255, 0.45); color: var(--ink); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
  .ucb-chrome .topnav-toggle svg { width: 18px; height: 18px; }
  .ucb-chrome .topnav-links { display: none; position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 18px 40px rgba(9, 28, 14, 0.16); }
  .ucb-chrome .topnav.is-open .topnav-links { display: flex; }
  .ucb-chrome .topnav-links > a, .ucb-chrome .topnav-group > summary { min-height: 48px; padding: 0 14px; border-radius: 12px; font-size: 16px; }
  .ucb-chrome .topnav-links > a:hover, .ucb-chrome .topnav-group > summary:hover { opacity: 1; background: #f3f3ef; }
  .ucb-chrome .topnav-group { display: block; }
  .ucb-chrome .topnav-group > summary { justify-content: space-between; }
  .ucb-chrome .topnav-menu { position: static; transform: none; min-width: 0; padding: 0 0 6px 12px; border: 0; box-shadow: none; }
}
@media (max-width: 560px) {
  .ucb-chrome .topnav { width: calc(100% - 24px); min-height: 64px; padding: 8px 8px 8px 14px; }
  .ucb-chrome.topnav-wrap.is-overlay { padding-top: 12px; }
  .ucb-chrome .topnav-brand { width: 76px; height: 40px; }
  .ucb-chrome .topnav-toggle { padding: 0 12px; font-size: 14px; }
  .ucb-chrome .topnav-cta { gap: 8px; min-height: 46px; padding: 0 4px 0 14px; font-size: 14px; }
  .ucb-chrome .topnav-cta-long { display: none; }
  .ucb-chrome .topnav-cta-short { display: inline; }
  .ucb-chrome .arrow-dot { width: 36px; height: 36px; }
}
@media (max-width: 359px) {
  .ucb-chrome .topnav-toggle span { display: none; }
}

/* ---------- Footer ---------- */
.ucb-chrome .ucb-nav a:focus-visible, .ucb-footer a:focus-visible { outline: 3px solid var(--sage); outline-offset: 4px; }
.ucb-footer { display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); gap: 58px; padding-top: 22px; border-top: 1px solid var(--line); }
.ucb-footer h3, .ucb-footer-brand { margin-bottom: 24px; color: var(--ink); font-weight: 500; }
.ucb-footer h3 { font-size: var(--type-title); text-wrap: balance; }
.ucb-footer-brand { position: relative; display: inline-flex; width: min(450px, 100%); height: clamp(78px, 8vw, 144px); align-items: center; overflow: hidden; font-size: var(--type-subheading); line-height: 1.18; }
.ucb-footer-brand img { width: 100%; height: 100%; object-fit: contain; transition: opacity 500ms; }
.ucb-footer-brand:has(img.is-loaded) .ucb-brand-fallback { display: none; }
.ucb-chrome .ucb-brand-fallback { position: absolute; font-size: 24px; font-weight: 900; }
.ucb-footer ul { display: grid; gap: 14px; margin: 0px; padding: 0px; list-style: none; }
.ucb-footer p, .ucb-footer a { color: var(--gray); font-size: var(--text-body); line-height: 1.6; font-weight: 400; }
.ucb-footer-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 24px; margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); font-size: var(--type-detail); line-height: 1.35; color: var(--gray); }
.ucb-chrome .ucb-socials { display: flex; gap: 12px; margin-top: 18px; }
.ucb-chrome .ucb-socials a { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 50%; transition: background 180ms, border-color 180ms, transform 180ms; }
.ucb-chrome .ucb-socials a:hover { background: var(--lime); border-color: var(--lime); transform: translateY(-2px); }
.ucb-chrome .ucb-socials svg { width: 20px; height: 20px; }
/* Footer frame: light background, 1200px column. */
.ucb-footer-wrap { padding: 56px 0 40px; background: var(--light); }
.ucb-footer-wrap > .ucb-footer { width: min(100% - 48px, 1200px); margin: 0 auto; }

@media (prefers-reduced-motion: reduce) {
  .ucb-chrome *, .ucb-chrome ::before, .ucb-chrome ::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
@media (max-width: 900px) {
  .ucb-footer { grid-template-columns: 1fr; gap: 34px; }
  .ucb-footer-bottom { flex-direction: column; }
  .ucb-footer-wrap > .ucb-footer { width: min(100% - 32px, 1200px); }
}

/* Closing call to action (same box as index's "Ready to start?"), used on team.html. */
.ucb-chrome .ucb-cta { width: min(100% - 48px, 1200px); margin: 0 auto 72px; padding: clamp(28px, 5vw, 61px); border-radius: 32px; background: var(--navy); color: var(--light); }
.ucb-chrome .ucb-cta-eyebrow { margin: 0 0 28px; font-size: 14px; font-weight: 500; color: rgba(252, 252, 247, 0.82); }
.ucb-chrome .ucb-cta h2 { max-width: 520px; margin: 0 0 16px; font-size: clamp(28px, 4vw, 40px); font-weight: 300; line-height: 1.08; color: var(--light); }
.ucb-chrome .ucb-cta p:not(.ucb-cta-eyebrow) { max-width: 520px; margin: 0 0 28px; font-size: 18px; line-height: 1.6; color: rgba(252, 252, 247, 0.82); }
.ucb-chrome .ucb-cta-button { display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px; border-radius: 999px; background: var(--light); color: var(--navy); font-size: 15px; font-weight: 500; transition: background 160ms; }
.ucb-chrome .ucb-cta-button:hover { background: var(--lime); }
.ucb-chrome .ucb-cta-button:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }
@media (max-width: 900px) {
  .ucb-chrome .ucb-cta { width: min(100% - 32px, 1200px); margin-bottom: 48px; }
}
