/* ============================================================
   Northbridge Website 2026 — shared site styles
   ------------------------------------------------------------
   Loaded on every page, after /design-system/styles.css
   (brand colours, fonts and spacing tokens live there).

   Contents
     1. Page basics
     2. Site header + main navigation (desktop and mobile)
     3. Site footer
     4. Hover effects (the "hover-*" classes used in page markup)

   Page-specific layout rules live in a <style> block in the
   <head> of each page.
   ============================================================ */


/* ---------- 1. Page basics ---------- */

html, body { margin: 0; background: #fff; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  padding: 10px 16px; background: #002768; color: #fff; font-weight: 500;
}
.skip-link:focus { top: 12px; color: #fff; }


/* ---------- 2. Site header + navigation ---------- */

.site-header {
  position: sticky; top: 0; z-index: 999; width: 100%;
  background: rgba(255,255,255,0.96);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid #E8EAEB;
  font-family: var(--font-sans);
}
.site-header__bar {
  max-width: 1240px; margin: 0 auto; padding: 14px 32px; min-height: 84px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

/* The logo PNG has empty space around the artwork, so it is cropped
   inside a fixed-ratio box. Adjust top/left if the logo file changes. */
.site-logo { flex: 0 0 auto; display: flex; align-items: center; }
.site-logo span { position: relative; display: block; width: clamp(150px,16vw,200px); aspect-ratio: 200/40; overflow: hidden; }
.site-logo img { position: absolute; display: block; width: 102%; height: auto; max-width: none; left: 0; top: -232%; }

.site-nav { display: flex; align-items: center; gap: clamp(8px,1.6vw,28px); font-size: 15px; font-weight: 500; }
.nav-item { position: relative; }
.nav-top, .nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 8px 0; margin: 0;
  font: inherit; color: #002768; cursor: pointer; white-space: nowrap;
}
.nav-top { cursor: default; }
.nav-top:hover, .nav-link:hover, .nav-item:hover > .nav-top { color: #FF6100; }
.nav-chevron { transition: transform 180ms var(--ease-standard); }

.nav-dropdown {
  display: none; position: absolute; top: 100%; left: -24px; padding: 10px 0;
  flex-direction: column; min-width: 260px;
  background: #fff; border: 1px solid #E3E8F0; box-shadow: 0 18px 44px rgba(0,39,104,0.16);
}
.nav-dropdown a { display: block; padding: 12px 24px; color: #002768; font-size: 15px; white-space: nowrap; }
.nav-dropdown a:hover { color: #FF6100; background: #F5F5F5; }

/* Current page: the build marks the page's link with aria-current="page"
   and its menu group with .is-current */
.nav-item.is-current > .nav-top,
.site-nav a[aria-current="page"]:not(.nav-cta) { color: #FF6100; }

.nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 22px; background: #FF7F00; color: #fff !important;
  font-weight: 500; font-size: 15px; white-space: nowrap;
  transition: filter 180ms var(--ease-standard), box-shadow 180ms var(--ease-standard);
}
.nav-cta:hover { filter: brightness(1.12); box-shadow: 0 6px 20px rgba(255,127,0,0.35); color: #fff !important; }

.nav-burger {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: none; border: 0; padding: 0; cursor: pointer; color: #002768;
}
.nav-burger .icon-close { display: none; }
.site-header.is-open .nav-burger .icon-open { display: none; }
.site-header.is-open .nav-burger .icon-close { display: inline; }

/* Desktop: dropdowns open on hover / keyboard focus */
@media (min-width: 1025px) {
  .nav-item:hover > .nav-dropdown, .nav-item:focus-within > .nav-dropdown { display: flex; }
  .nav-item:hover .nav-chevron { transform: rotate(180deg); }
}

/* Tablet + mobile: burger menu, dropdowns open on tap (see js/site.js) */
@media (max-width: 1024px) {
  .site-header__bar { padding: 12px 24px; min-height: 72px; }
  .nav-burger { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-top: 1px solid #E8EAEB; box-shadow: 0 18px 44px rgba(0,39,104,0.16);
    padding: 8px 24px 24px; max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .site-header.is-open .site-nav { display: flex; }
  .nav-item { border-bottom: 1px solid #E8EAEB; }
  .nav-top, .nav-link { width: 100%; justify-content: space-between; padding: 16px 0; font-size: 17px; min-height: 52px; }
  .site-nav > .nav-link { border-bottom: 1px solid #E8EAEB; }
  .nav-dropdown { position: static; box-shadow: none; border: 0; min-width: 0; padding: 0 0 10px; }
  .nav-item.is-open > .nav-dropdown { display: flex; }
  .nav-item.is-open .nav-chevron { transform: rotate(180deg); }
  .nav-dropdown a { padding: 12px 0 12px 14px; font-size: 16px; white-space: normal; }
  .nav-dropdown a:hover { background: none; }
  .nav-cta { margin-top: 20px; width: 100%; height: 52px; }
}
@media (max-width: 520px) {
  .site-header__bar { padding: 12px 20px; }
  .site-nav { padding: 8px 20px 24px; }
}


/* ---------- 3. Site footer ---------- */

.site-footer { width: 100%; background: #002768; font-family: var(--font-sans); padding: 72px 0 44px; }
.footer-wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; display: flex; flex-direction: column; gap: 56px; }
.footer-grid { display: grid; grid-template-columns: minmax(250px,1.35fr) repeat(5, minmax(0,1fr)); gap: 32px 28px; align-items: start; }
.footer-brand { display: flex; flex-direction: column; gap: 28px; padding-right: 48px; align-self: stretch; }
/* Footer logo file has empty space above/below the artwork; cropped by % of width so it scales */
.footer-logo { display: block; width: 210px; aspect-ratio: 210/50; overflow: hidden; margin-top: -8px; }
.footer-logo img { display: block; width: 100%; height: auto; max-width: none; margin-top: -37.5%; }
.footer-copy { color: rgba(255,255,255,0.62); font-size: 13px; line-height: 1.5; margin: 0; }
.footer-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.footer-col h4, .footer-social h4 { margin: 0 0 6px; color: #fff; font-size: 17px; font-weight: 700; line-height: 1.3; }
.footer-col a { color: rgba(255,255,255,0.78); font-size: 15px; line-height: 1.35; }
.footer-col a:hover { color: #FF7F00; }
.footer-social { display: flex; flex-direction: column; gap: 14px; margin-top: auto; }
.footer-icons { display: flex; align-items: center; gap: 12px; }
.footer-icons a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; transition: filter 180ms var(--ease-standard); }
.footer-icons .linkedin { background: #fff; color: #002768; }
.footer-icons .linkedin:hover { filter: brightness(0.94); color: #002768; }
.footer-icons .youtube { background: #FF0000; color: #fff; }
.footer-icons .youtube:hover { filter: brightness(1.1); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); padding-top: 26px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-legal a, .footer-bottom span { color: rgba(255,255,255,0.62); font-size: 14px; }
.footer-legal a:hover { color: #FF7F00; }

@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .footer-brand { grid-column: 1 / -1; padding-right: 0; }
  .footer-social { margin-top: 0; }
}
@media (max-width: 860px) {
  .site-footer { padding: 56px 0 36px; }
  .footer-wrap { padding: 0 24px; gap: 44px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 36px 24px; }
}
@media (max-width: 520px) {
  .footer-wrap { padding: 0 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
}


/* ---------- 4. Hover effects ----------
   Page markup is mostly inline styles (as designed), so hover rules
   need !important to override them. Add a class to any element to
   give it that hover; the element's own inline "transition" controls
   how smoothly it animates. */

/* Text colour */
.hover-tangerine:hover        { color: #FF7F00 !important; }
.hover-persimmon:hover        { color: #FF6100 !important; }
.hover-persimmon-dark:hover   { color: #E15400 !important; }
.hover-white:hover            { color: #fff !important; }
.hover-underline:hover        { color: #FF6100 !important; border-bottom-color: #FF7F00 !important; }
.hover-linkedin:hover         { opacity: 0.72 !important; color: #0A66C2 !important; }

/* Buttons */
.hover-btn-primary:hover      { filter: brightness(1.12) !important; box-shadow: 0 6px 20px rgba(255,127,0,0.35) !important; color: #fff !important; }
.hover-btn-glow:hover         { filter: brightness(1.12) !important; box-shadow: 0 6px 20px rgba(255,127,0,0.35) !important; }
.hover-btn-ghost-dark:hover   { border-color: #fff !important; background: rgba(255,255,255,0.08) !important; color: #fff !important; }
.hover-fill-navy:hover        { background: #002768 !important; color: #fff !important; }
.hover-brighten:hover         { filter: brightness(1.1) !important; color: #fff !important; }
.hover-dim:hover              { filter: brightness(0.94) !important; color: #002768 !important; }

/* Cards — lift with a navy bar along the bottom edge */
.hover-card:hover,
.hover-card-ink:hover,
.hover-card-navy:hover        { background: #FAFAFA !important; transform: translateY(-2px) !important; box-shadow: 0 12px 30px rgba(0,39,104,0.10), inset 0 -4px 0 #002768 !important; }
.hover-card-ink:hover         { color: #353839 !important; }
.hover-card-navy:hover        { color: #002768 !important; }

/* Cards — lift with a tangerine bar along the bottom edge (on dark sections) */
.hover-card-accent:hover      { transform: translateY(-2px) !important; box-shadow: 0 14px 34px rgba(0,17,46,0.22), inset 0 -4px 0 #FF7F00 !important; }
.hover-card-accent-ink:hover  { transform: translateY(-2px) !important; box-shadow: 0 14px 34px rgba(0,17,46,0.2), inset 0 -4px 0 #FF7F00 !important; color: #353839 !important; }
.hover-card-accent-navy:hover { background: #FAFAFA !important; transform: translateY(-2px) !important; box-shadow: 0 14px 34px rgba(0,17,46,0.2), inset 0 -4px 0 #FF7F00 !important; color: #002768 !important; }
.hover-card-white:hover       { background: #FFFFFF !important; transform: translateY(-2px) !important; box-shadow: 0 14px 34px rgba(0,17,46,0.22) !important; color: #002768 !important; }

/* Plain lifts */
.hover-lift:hover             { transform: translateY(-2px) !important; box-shadow: 0 18px 44px rgba(0,39,104,0.16) !important; }
.hover-glass:hover            { background: rgba(255,255,255,0.11) !important; transform: translateY(-2px) !important; }
.hover-glass-lift:hover       { background: rgba(255,255,255,0.12) !important; transform: translateY(-4px) !important; }
.hover-glass-dark:hover       { background: rgba(0,17,46,0.58) !important; transform: translateY(-2px) !important; box-shadow: 0 20px 48px rgba(0,17,46,0.32) !important; color: #fff !important; }
