/**
 * chrome-v2.css — Studio-inspired chrome (C0 skin + C1 .il-chrome header)
 * Load LAST. Does not rewrite Site.css / DropMnu.
 * Palette from infolibrarian-studio/tailwind.config.js
 * Revert C1: restore layouts/partials/header-legacy.html as header.html
 * Revert C0: remove this <link>
 */

:root {
  --il-navy: #000033;
  --il-navy-deep: #05051a;
  --il-navy-panel: #0c0c2e;
  --il-navy-card: #12123a;
  --il-navy-hover: #1a1a4a;
  --il-navy-border: #252560;
  --il-blue: #1e3a8a;
  --il-blue-bright: #3b82f6;
  --il-blue-soft: #60a5fa;
  --il-orange: #b45309;
  --il-orange-bright: #f97316;
  --il-orange-soft: #fb923c;
  --il-muted: #94a3b8;
  --il-link-footer: #86d2ff;
  --il-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ----- Home hero centering (beats legacy p / layout rules) ----- */
.hero-section {
  text-align: center !important;
}

.hero-section .hero-content {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.hero-section .hero-content > p,
.hero-section .hero-content > h1 {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  float: none !important;
  width: 100% !important;
  max-width: 36rem !important;
}

.hero-section .hero-content > p:first-child {
  max-width: none !important; /* founder line spans full content width so it truly centers */
}

.hero-section .hero-cta {
  justify-content: center !important;
}

/* ========== C1: new header structure (.il-chrome) ========== */
.il-chrome {
  width: 100%;
  font-family: var(--il-font);
  position: relative;
  z-index: 100;
}

.il-chrome-topbar {
  background: var(--il-navy-deep);
  border-bottom: 1px solid var(--il-navy-border);
  text-align: center;
  padding: 0.45rem 1rem;
}

.il-chrome-topbar p {
  margin: 0;
  color: var(--il-orange-soft);
  font-size: 11px;
  letter-spacing: 0.04em;
  font-weight: 500;
  line-height: 1.4;
}

.il-chrome-header {
  background: var(--il-navy-panel);
  border-bottom: 1px solid var(--il-navy-border);
}

.il-chrome-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1rem;
  box-sizing: border-box;
  position: relative;
}

.il-chrome-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.il-chrome-logo img {
  display: block;
  height: 52px;
  width: auto;
  max-width: 260px;
}

.il-chrome-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.il-chrome-nav-list,
#nav.il-chrome-nav-list {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  float: none !important;
}

.il-chrome-nav-list li,
#nav.il-chrome-nav-list li {
  display: block !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
}

.il-chrome-nav-list li a,
#nav.il-chrome-nav-list li a {
  display: block !important;
  padding: 0.55rem 0.85rem 0.65rem !important;
  color: #e2e8f0 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
  text-decoration: none !important;
  border-radius: 6px;
  background: transparent !important;
  white-space: nowrap;
  line-height: 1.25 !important;
  /* Space under glyphs so indicator never kisses descenders (e.g. Portfolio) */
  border-bottom: 2px solid transparent !important;
  box-shadow: none !important;
}

.il-chrome-nav-list li a:hover,
#nav.il-chrome-nav-list li a:hover {
  color: #fff !important;
  background: var(--il-navy-hover) !important;
}

.il-chrome-nav-list li.active a,
#nav.il-chrome-nav-list li.active a {
  color: #fff !important;
  background: var(--il-navy-hover) !important;
  /* True border under padding box — clears descenders better than inset shadow */
  border-bottom: 2px solid var(--il-orange-bright) !important;
  border-radius: 6px 6px 0 0 !important;
  padding-bottom: 0.55rem !important;
}

/* Kill sidecar/legacy orange bar that sits at top of the item and hits the label */
.il-chrome-nav-list li.active::before,
#nav.il-chrome-nav-list li.active::before,
.il-chrome #nav li.active::before,
body .il-chrome #nav li.active::before {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.il-chrome-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  color: #fff !important;
  background: var(--il-orange-bright);
  border: 1px solid transparent;
  transition: background 0.15s ease, transform 0.15s ease;
}

.il-chrome-cta:hover {
  background: var(--il-orange);
  color: #fff !important;
  transform: translateY(-1px);
}

.il-chrome-accent {
  height: 2px;
  background: linear-gradient(90deg, var(--il-orange) 0%, var(--il-orange-bright) 50%, var(--il-orange-soft) 100%);
}

/* Hamburger in flex header */
.il-chrome-header .hamburger.il-chrome-hamburger {
  display: none;
  position: static !important;
  top: auto !important;
  right: auto !important;
  float: none !important;
  flex-shrink: 0;
  margin-left: auto;
  background: var(--il-navy-card) !important;
  border: 1px solid var(--il-navy-border) !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  width: 40px !important;
  height: 40px !important;
}

.il-chrome-header .hamburger.il-chrome-hamburger span {
  background: var(--il-orange-soft) !important;
  background-color: var(--il-orange-soft) !important;
}

/* Mobile drawer panel */
.il-chrome #mobileMenu {
  background: transparent !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1002 !important;
  padding: 0 1rem !important;
  box-sizing: border-box;
}

.il-chrome #mobileMenu .il-chrome-mobile-nav,
.il-chrome-mobile-nav {
  background: var(--il-navy-panel) !important;
  border: 1px solid var(--il-navy-border);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 40, 0.5);
  max-width: 320px;
  margin: 5rem auto 2rem;
  padding: 0.75rem;
}

.il-chrome-mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.il-chrome-mobile-nav li {
  margin: 0;
  border-bottom: 1px solid var(--il-navy-border);
}

.il-chrome-mobile-nav li:last-child {
  border-bottom: none;
}

.il-chrome-mobile-nav a {
  display: block;
  padding: 0.85rem 1rem;
  color: #e2e8f0 !important;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none !important;
  border-radius: 6px;
}

.il-chrome-mobile-nav a:hover,
.il-chrome-mobile-nav li.active a {
  color: #fff !important;
  background: var(--il-navy-hover);
}

@media (max-width: 768px) {
  .il-chrome-nav {
    display: none !important;
  }
  .il-chrome-cta.hide-mobile {
    display: none !important;
  }
  .il-chrome-header .hamburger.il-chrome-hamburger {
    display: block !important;
  }
  .il-chrome-header-inner {
    padding: 0.55rem 1rem;
  }
  .il-chrome-logo img {
    height: 46px;
    max-width: 220px;
  }
}

@media (min-width: 769px) {
  .il-chrome-header .hamburger.il-chrome-hamburger {
    display: none !important;
  }
}

/* ----- Legacy top bar (if header-legacy restored) ----- */
#topbar {
  height: auto !important;
  min-height: 28px;
  background-color: var(--il-navy-deep) !important;
  color: var(--il-orange-soft) !important;
  font-family: var(--il-font) !important;
  font-size: 11px !important;
  text-align: center !important;
  margin: 0 !important;
  padding: 0.45rem 1rem !important;
  border-bottom: 1px solid var(--il-navy-border);
}

#topbar ul,
#topbar ol {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.4 !important;
}

#topbar p,
#topbar font {
  margin: 0 !important;
  color: var(--il-orange-soft) !important;
  font-size: 11px !important;
  letter-spacing: 0.04em;
  font-family: var(--il-font) !important;
}

#topbar a:link,
#topbar a:visited {
  color: var(--il-blue-soft) !important;
}

/* ----- Header bar ----- */
.header {
  background: var(--il-navy-panel) !important;
  background-color: var(--il-navy-panel) !important;
  border-bottom: 1px solid var(--il-navy-border);
  min-height: 56px;
  height: auto !important;
}

div.headerfloatL,
.headerfloatL {
  height: auto !important;
  min-height: 56px;
  line-height: normal !important;
}

#headerstrip {
  height: 2px !important;
  background-color: var(--il-orange-bright) !important;
  background: linear-gradient(90deg, var(--il-orange) 0%, var(--il-orange-bright) 50%, var(--il-orange-soft) 100%) !important;
}

/* ----- Main nav ----- */
#nav {
  background-color: transparent !important;
  background: transparent !important;
  font-family: var(--il-font) !important;
}

#nav li,
#nav ul li {
  font-family: var(--il-font) !important;
}

#nav li a,
#nav ul li a {
  color: #e2e8f0 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-decoration: none !important;
  font-family: var(--il-font) !important;
  transition: color 0.15s ease, background-color 0.15s ease;
}

#nav li a:hover,
#nav ul li a:hover {
  color: #fff !important;
  background-color: var(--il-navy-hover) !important;
}

#nav li.active a,
#nav li.active a:hover {
  color: #fff !important;
}

#nav li.active::before {
  background-color: var(--il-orange-bright) !important;
}

/* ----- Mobile hamburger / drawer ----- */
.hamburger span {
  background-color: var(--il-orange-soft) !important;
}

#mobileMenu {
  background: var(--il-navy-panel) !important;
  border-left: 1px solid var(--il-navy-border);
  font-family: var(--il-font) !important;
}

#mobileMenu a {
  color: #e2e8f0 !important;
  font-weight: 600 !important;
}

#mobileMenu a:hover {
  color: var(--il-blue-soft) !important;
}

/* ----- Buttons (modern.css + content CTAs) ----- */
.btn {
  font-family: var(--il-font) !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease !important;
}

.btn-primary {
  background-color: var(--il-orange-bright) !important;
  color: #fff !important;
  border: 1px solid transparent !important;
}

.btn-primary:hover {
  background-color: var(--il-orange) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(180, 83, 9, 0.35);
}

a.btn-primary:focus:not(:hover),
a.btn-primary:active:not(:hover) {
  background-color: var(--il-orange) !important;
  color: #fff !important;
}

.btn-secondary {
  background-color: var(--il-navy-hover) !important;
  color: #e2e8f0 !important;
  border: 1px solid var(--il-navy-border) !important;
}

.btn-secondary:hover {
  background-color: var(--il-navy-card) !important;
  color: #fff !important;
  border-color: var(--il-blue-bright) !important;
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent !important;
  color: var(--il-navy) !important;
  border: 2px solid var(--il-orange-bright) !important;
}

.btn-outline:hover {
  background-color: var(--il-navy) !important;
  color: #fff !important;
}

/* ----- Footer chrome (full-width bar; columns centered) ----- */
.footer_outer {
  background: var(--il-navy-deep) !important;
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
}

.footer-column {
  width: 100% !important;
  max-width: none !important;
}

/* Full-bleed link band (kills legacy ~1073px cap) */
#footerlinkswrapper {
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 1.75rem 1.25rem 1.5rem !important;
  box-sizing: border-box !important;
  background: var(--il-navy-panel) !important;
  background-color: var(--il-navy-panel) !important;
  border-top: 1px solid var(--il-navy-border);
  border-bottom: 1px solid var(--il-navy-border);
  font-family: var(--il-font) !important;
  clear: both !important;
}

#footerlinkscontainer {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 2rem 2.5rem !important;
  justify-content: center !important;
  align-items: flex-start !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  background: transparent !important;
  background-color: transparent !important;
  font-family: var(--il-font) !important;
  text-align: left !important;
}

#footerlinkscol_one,
#footerlinkscol_two,
#footerlinkscol_three,
#footerlinkscol_four,
#footerlinkscol_five,
#footerlinkscol_six {
  background: transparent !important;
  background-color: transparent !important;
  float: none !important;
  max-width: none !important;
  min-width: 9.5rem !important;
  margin: 0 !important;
  flex: 0 1 auto !important;
}

#footerlinkswrapper ul,
#footerlinkswrapper ol {
  line-height: 1.55 !important;
  margin: 0 !important;
  padding: 0 !important;
}

#footerlinkswrapper li {
  margin-bottom: 0.45em !important;
  padding: 0 !important;
  line-height: 1.5 !important;
}

#footerlinkswrapper .footerLinksTitle,
.footerLinksTitle {
  color: var(--il-orange-soft) !important;
  font-family: var(--il-font) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.35rem;
}

#footerlinkswrapper a:link,
#footerlinkswrapper a:visited {
  color: var(--il-link-footer) !important;
  font-family: var(--il-font) !important;
  font-size: 13px !important;
}

#footerlinkswrapper a:hover {
  color: #fff !important;
}

.subfooter,
.subfooterinner {
  background: var(--il-navy-deep) !important;
  background-color: var(--il-navy-deep) !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

@media (max-width: 768px) {
  #footerlinkswrapper {
    padding: 1.25rem 1rem 1.1rem !important;
  }
  #footerlinkscontainer {
    max-width: 100% !important;
    gap: 1.25rem 1.5rem !important;
    justify-content: flex-start !important;
  }
}

.footer_brand_cred {
  background: var(--il-navy-deep) !important;
  color: var(--il-blue-soft) !important;
  font-family: var(--il-font) !important;
  padding: 1rem 1.25rem 0.5rem !important;
  text-align: center;
}

.subfooter {
  padding: 0.5rem 0 1.25rem !important;
  border-top: 1px solid var(--il-navy-border);
}

.subfooterinner {
  max-width: 1200px;
  margin: 0 auto !important;
  padding: 0 1.25rem !important;
  box-sizing: border-box;
}

.subfooterinner > center {
  display: block;
  padding-top: 0.75rem;
}

.disclaim {
  color: var(--il-muted) !important;
  font-family: var(--il-font) !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
  max-width: 52rem;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.open-work-footer {
  max-width: 52rem;
  margin-left: auto !important;
  margin-right: auto !important;
}

.open-work-footer {
  color: var(--il-link-footer) !important;
  font-family: var(--il-font) !important;
}

.open-work-footer .footerLinksTitle {
  color: var(--il-orange-soft) !important;
}

.open-work-footer a {
  color: var(--il-link-footer) !important;
}

.open-work-footer a:hover {
  color: #fff !important;
}

/* ----- Submenu strip (if present) ----- */
.headersubmenu,
.headersubmenuinner {
  background: var(--il-navy-card) !important;
  color: var(--il-muted) !important;
  font-family: var(--il-font) !important;
}

.headersubmenulinknorm,
.headersubmenulinkselected {
  color: #e2e8f0 !important;
  font-family: var(--il-font) !important;
}

.headersubmenulinkselected {
  border-bottom-color: var(--il-orange-bright) !important;
}
