/* ============================================================
   KELLY DATA — Shared Styles
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@900&family=Crimson+Pro:wght@700;900&family=Inter:wght@400;500;600;900&family=IBM+Plex+Mono:wght@400;600&display=swap');

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Design Tokens */
:root {
  --imperial-blue: #01295F;
  --parchment:     #F2EFEA;
  --coffee-bean:   #644536;
  --slate-grey:    #6E7B85;
  --deep-walnut:   #4F3824;
  --gold:          #C5A059;
  --platinum:      #F3F3F4;
  --d9:            #D9D9D9;
}

/* Base */
body {
  background-color: var(--parchment);
  color: var(--coffee-bean);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  margin: 0;
}

/* Font Utilities */
.font-barlow  { font-family: 'Barlow', sans-serif; font-weight: 900; }
.font-crimson { font-family: 'Crimson Pro', serif; font-weight: 700; }
.font-mono    { font-family: 'IBM Plex Mono', monospace; }

/* Scrollbar Hider */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Glass Card */
.glass-card {
  background-color: rgba(235, 229, 220, 0.65);
  backdrop-filter: blur(12px);
  border-radius: 60px 60px 0 0;
  position: relative;
  z-index: 30;
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.15);
}

/* ---- Navigation ---- */
.menu-group {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-btn {
  height: 100%;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  transition: all 0.2s;
  position: relative;
  z-index: 10;
}

.nav-underline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: var(--imperial-blue);
  display: none;
  z-index: 20;
}

/* Dropdown — fixed positioning so it escapes overflow:hidden on nav */
.dropdown-container {
  position: fixed;
  width: max-content;
  min-width: 160px;
  background-color: #EBEBEB;
  display: none;
  z-index: 9999;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
  padding: 1.25rem 2rem;
  color: var(--imperial-blue);
  font-family: 'Barlow', sans-serif;
  font-size: 1.1rem;
  transition: all 0.2s;
  white-space: nowrap;
  display: block;
}

.dropdown-item:hover {
  background-color: var(--d9);
  color: #f97316;
}

/* Nav Open/Close States */
.menu-group.is-open .dropdown-container { display: block; }
.menu-group.is-open .nav-btn { background-color: #EBEBEB; }
.menu-group.is-open .nav-underline { display: block; }
.menu-group.is-open .arrow-down { display: none; }
.menu-group.is-open .arrow-up { display: inline-block; }
.arrow-up { display: none; }

/* FOUC prevention — reserve space before JS injects nav/footer */
#nav-root:empty {
  min-height: 6rem;
  background: var(--d9);
}
@media (min-width: 768px) {
  #nav-root:empty { min-height: 8rem; }
}
