/* ============================================================
   AFSS — Navbar / Header Styles (Refined & Spacious)
   ============================================================ */

:root {
  --navbar-inner-h: 5.25rem;
  --navbar-spacer-h: var(--navbar-inner-h);
}

.navbar-spacer {
  height: var(--navbar-spacer-h);
}
@media (max-width: 1024px) {
  :root { --navbar-inner-h: 4.5rem; }
  .navbar-spacer { height: 4.5rem; }
}

.navbar-shell {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1001;
  background: #ffffff;
  border-bottom: 1px solid rgba(11, 29, 54, 0.08);
  transition: box-shadow 0.2s ease;
}
.navbar-shell.is-scrolled {
  box-shadow: 0 4px 14px rgba(11, 29, 54, 0.08);
}

/* Inner bar with balanced spacing */
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 3.5vw, 3.5rem);
  height: var(--navbar-inner-h);
}
@media (min-width: 1025px) and (max-width: 1300px) {
  .navbar-inner { padding: 0 1.5rem; gap: 1rem; }
}
@media (max-width: 1024px) {
  .navbar-inner {
    padding: 0 1.25rem;
    height: 4.5rem;
  }
}

/* Brand Logo with generous breathing room */
.navbar-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: clamp(1.5rem, 2.5vw, 2.75rem);
  padding-right: 0.25rem;
}
.brand-logo-img {
  height: 64px;
  width: auto;
  display: block;
}
@media (max-width: 1024px) {
  .navbar-brand { margin-right: 0; padding-right: 0; }
  .brand-logo-img { height: 46px; }
}

/* Nav links (Refined typography & balanced gap) */
.navbar-nav {
  display: flex;
  flex-direction: row !important;
  align-items: center;
  gap: clamp(1.1rem, 1.7vw, 1.85rem);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}
@media (min-width: 1025px) and (max-width: 1250px) {
  .navbar-nav { gap: 1rem; }
}
@media (max-width: 1024px) {
  .navbar-nav { display: none !important; }
}
.navbar-link {
  position: relative;
  color: #0b1d36;
  font-weight: 550;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
  padding: 0.4rem 0.15rem;
  text-decoration: none;
  transition: color 150ms ease;
  white-space: nowrap;
}
.navbar-link:hover,
.navbar-link.is-active {
  color: #1c4d9c;
}

/* Right-side actions (Desktop) */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: clamp(1.25rem, 2vw, 2.5rem);
  flex-shrink: 0;
}
@media (max-width: 1024px) {
  .navbar-actions { display: none !important; }
}
.navbar-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid #d8dde6;
  color: #0b1d36;
  background: #ffffff;
  transition: all 150ms ease;
  text-decoration: none;
}
.navbar-phone:hover {
  border-color: #1c4d9c;
  color: #1c4d9c;
}
.navbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.62rem 1.15rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid #0b1d36;
  background: #0b1d36;
  color: #ffffff;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 150ms ease, transform 150ms ease;
  box-shadow: 0 4px 12px rgba(11, 29, 54, 0.08);
}
.navbar-cta:hover {
  background: #b0141f;
  border-color: #b0141f;
  transform: translateY(-1px);
}

/* Mobile Hamburger Button */
.navbar-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  color: #0b1d36;
  padding: 0;
  flex-shrink: 0;
}
@media (max-width: 1024px) {
  .navbar-mobile-toggle { display: flex !important; }
}
.navbar-mobile-toggle svg {
  width: 24px;
  height: 24px;
  stroke: #0b1d36;
}

/* Mobile Slide-down Panel */
.navbar-mobile-panel {
  position: fixed;
  top: 4.5rem; left: 0; right: 0;
  background: #ffffff;
  z-index: 1000;
  padding: 1.5rem 1.5rem 2.5rem;
  transform: translateY(-120%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
  max-height: calc(100vh - 4.5rem);
  overflow-y: auto;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 20px 30px rgba(11, 29, 54, 0.12);
}
.navbar-mobile-panel.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.navbar-mobile-panel nav { display: flex; flex-direction: column; }
.navbar-mobile-link {
  display: block;
  padding: 0.9rem 0;
  border-bottom: 1px solid #f1f5f9;
  color: #0b1d36;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: color 150ms ease;
}
.navbar-mobile-link:hover { color: #b0141f; }
.navbar-mobile-cta-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.navbar-mobile-cta-wrap a, .navbar-mobile-cta-wrap button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1rem;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: 9999px;
  cursor: pointer;
  text-decoration: none;
}

body.mobile-menu-open { overflow: hidden; }
