/* ============================================================
   PRIED — Shared site chrome (global navbar + footer)
   Self-contained: hardcoded palette + fonts, no page-token deps.
   Loaded LAST in <head> so it wins on equal specificity.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&family=Courier+Prime&display=swap');

/* Give fixed nav clearance on pages that don't manage their own top spacing */
body.has-site-chrome { padding-top: 92px; }

/* ── FLOATING NAV ── */
#nav {
  position: fixed; top: 16px; left: 50%; right: auto; transform: translateX(-50%);
  z-index: 1000; width: calc(100% - 48px); max-width: 1100px; height: auto;
  background: rgba(255,255,255,0.4);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.3); border-radius: 14px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 10px 10px 22px; box-shadow: 0 4px 24px rgba(0,0,0,0.05);
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
#nav:hover { background: rgba(255,255,255,1); box-shadow: 0 8px 32px rgba(0,0,0,0.08); border-color: rgba(28,28,28,0.05); }
#nav.scrolled { background: rgba(255,255,255,0.85); box-shadow: 0 4px 32px rgba(0,0,0,0.1); }
#nav.scrolled:hover { background: rgba(255,255,255,1); }

.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo { height: 38px; width: auto; opacity: 0.7; cursor: pointer; transition: opacity .3s ease, transform .3s cubic-bezier(0.34,1.56,0.64,1); }
.nav-logo:hover { opacity: 1; transform: scale(1.08) translateY(-2px); }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: inline-flex; align-items: center; padding: 7px 13px; font-size: .78rem; font-weight: 500; color: #555; border-radius: 8px; text-decoration: none; text-transform: none; letter-spacing: normal; border: none; transition: all .2s; }
.nav-links a::after { content: none; display: none; }
.nav-links a:hover { color: #1D6EB5; background: #deeef9; }
.nav-links a.active { color: #1D6EB5; background: #deeef9; }

.nav-item-dropdown { position: relative; }
.dropdown-trigger { display: flex; align-items: center; gap: 5px; }
.chevron { font-size: 0.5rem; transition: transform .3s cubic-bezier(0.4,0,0.2,1); opacity: 0.7; }
.nav-item-dropdown:hover .chevron { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px);
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(28,28,28,0.08); border-radius: 10px; min-width: 140px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08); padding: 6px 0; opacity: 0; visibility: hidden;
  transition: all .3s cubic-bezier(0.4,0,0.2,1); z-index: 1100; list-style: none;
  display: flex; flex-direction: column; gap: 2px; margin: 0;
}
.nav-item-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(4px); }
.dropdown-menu li { width: 100%; padding: 0 6px; }
.dropdown-menu a { display: block; width: 100%; padding: 8px 14px; font-size: .78rem; font-weight: 500; color: #555; border-radius: 6px; text-align: left; white-space: nowrap; text-decoration: none; transition: all .2s ease; }
.dropdown-menu a:hover { color: #1D6EB5; background: #deeef9; }

.nav-end { display: flex; align-items: center; gap: 8px; }
.nav-cta { background: #1D6EB5; color: #fff; padding: 9px 20px; border-radius: 9px; font-size: .78rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: all .2s; }
.nav-cta:hover { background: #0d3d68; box-shadow: 0 3px 12px rgba(29,110,181,.35); }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; padding: 0; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #243b53; border-radius: 2px; transition: transform .3s, opacity .3s; }
#nav.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
#nav.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  #nav { width: calc(100% - 24px); }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(255,255,255,0.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.4); border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    padding: 8px; max-height: 0; overflow: hidden; opacity: 0; pointer-events: none;
    transform: translateY(-8px); transition: max-height .3s ease, opacity .25s ease, transform .25s ease;
  }
  #nav.nav-open .nav-links { max-height: 80vh; overflow-y: auto; opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links > li { width: 100%; }
  .nav-links > li > a { display: block; padding: 12px 14px; border-radius: 8px; }
  .nav-item-dropdown .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; border: none; padding: 0 0 6px 14px; min-width: 0; pointer-events: auto; }
  .dropdown-trigger .chevron { display: none; }
}

/* ── FOOTER ── */
.site-footer { background: #0b3460; padding: 52px 48px 28px; margin-top: 80px; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
.site-footer .footer-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.06); }
.site-footer .f-brand-name { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 600; color: #fff; margin-bottom: 10px; }
.site-footer .f-desc { font-size: .8rem; line-height: 1.75; color: rgba(255,255,255,.3); margin-bottom: 16px; }
.site-footer .f-contact { display: flex; flex-direction: column; gap: 7px; }
.site-footer .fci { display: flex; gap: 8px; font-size: .75rem; color: rgba(255,255,255,.35); line-height: 1.5; align-items: flex-start; }
.site-footer .fci-icon { color: #5aaad8; flex-shrink: 0; margin-top: 1px; }
.site-footer .f-col-h { font-family: 'Courier Prime', monospace; font-size: .82rem; letter-spacing: 2px; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.site-footer .f-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; }
.site-footer .f-col ul a { font-size: .82rem; color: rgba(255,255,255,.35); text-decoration: none; transition: color .2s; }
.site-footer .f-col ul a:hover { color: #fff; }
.site-footer .f-bottom { max-width: 1100px; margin: 24px auto 0; display: flex; justify-content: space-between; align-items: center; }
.site-footer .f-bottom p { font-family: 'Courier Prime', monospace; font-size: .58rem; color: rgba(255,255,255,.15); letter-spacing: .3px; }
.site-footer .f-soc { display: flex; gap: 6px; }
.site-footer .fsb { width: 30px; height: 30px; border-radius: 7px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); display: flex; align-items: center; justify-content: center; font-size: .7rem; color: rgba(255,255,255,.25); text-decoration: none; transition: all .2s; }
.site-footer .fsb:hover { background: #1D6EB5; border-color: #1D6EB5; color: #fff; }

@media (max-width: 760px) {
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 520px) {
  .site-footer { padding: 40px 22px 24px; }
  .site-footer .footer-grid { grid-template-columns: 1fr; }
  .site-footer .f-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}
