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

:root {
  --navy: #0F2744;
  --navy-mid: #1A3A5C;
  --blue: #38BDF8;
  --blue-dim: #7DD3F8;
  --blue-pale: #E0F2FE;
  --slate: #64748B;
  --slate-light: #94A3B8;
  --border: #E2E8F0;
  --white: #FFFFFF;
  --off-white: #F8FAFC;
  --text: #0F2744;
  --navy-gradient: linear-gradient(150deg, #1B3A5C 0%, #0F2744 45%, #081523 100%);
  --metallic-blue: linear-gradient(180deg, #3B82F6 0%, #2563EB 100%);
  --metallic-blue-hover: linear-gradient(180deg, #2E74EE 0%, #1D4ED8 100%);
  --metallic-dark: linear-gradient(180deg, #21456C 0%, #0F2744 100%);
  --metallic-dark-hover: linear-gradient(180deg, #2A557F 0%, #16324F 100%);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 64px;
  background: rgba(15, 39, 68, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.12);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo svg { width: 28px; height: 28px; }

.nav-wordmark {
  font-family: 'DM Serif Display', serif;
  font-size: 19px;
  color: var(--white);
}

.nav-wordmark span { color: var(--blue); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  color: var(--slate-light);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active { color: var(--white); }

.nav-cta { display: flex; align-items: center; gap: 10px; }

/* SEARCH BUTTON */
.nav-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--slate-light);
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.nav-search-btn:hover { background: rgba(255,255,255,0.06); color: var(--white); }

/* SEARCH OVERLAY */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15,39,68,0.97);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 140px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.search-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.search-overlay-inner {
  width: 100%;
  max-width: 680px;
  padding: 0 24px;
}

.search-overlay-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
  text-align: center;
}

.search-overlay-input-row {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(56,189,248,0.35);
  border-radius: 12px;
  padding: 4px 4px 4px 20px;
  gap: 8px;
}

.search-overlay-input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 20px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  padding: 12px 0;
}

.search-overlay-input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
  border-radius: 4px;
}

.search-overlay-input::placeholder { color: rgba(255,255,255,0.3); }

.search-overlay-go {
  background: var(--metallic-blue);
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 11px 20px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 1px 2px rgba(15,39,68,0.12), 0 4px 14px rgba(37,99,235,0.22);
  transition: background 0.2s, transform 0.12s, box-shadow 0.12s;
}

.search-overlay-go:hover { background: var(--metallic-blue-hover); box-shadow: 0 2px 4px rgba(15,39,68,0.14), 0 8px 22px rgba(37,99,235,0.30); }
.search-overlay-go:active {
  transform: scale(0.98);
  box-shadow: 0 1px 2px rgba(15,39,68,0.18);
}

.search-suggestions {
  margin-top: 32px;
}

.search-suggestions-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-bottom: 14px;
}

.search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.search-chip {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--slate-light);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.search-chip:hover { border-color: var(--blue); color: var(--blue); background: rgba(56,189,248,0.06); }

.search-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  color: var(--slate-light);
  font-size: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.search-close:hover { color: var(--white); background: rgba(255,255,255,0.06); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: 'Inter', sans-serif;
}

.btn-ghost {
  background: transparent;
  color: var(--slate-light);
  border: 1px solid rgba(255,255,255,0.15);
}

.btn-ghost:hover { background: rgba(255,255,255,0.06); color: var(--white); }
.btn-ghost:active { transform: scale(0.96); background: rgba(255,255,255,0.1); }

.btn-primary {
  background: var(--metallic-blue);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(15,39,68,0.12), 0 4px 14px rgba(37,99,235,0.22);
}

.btn-primary:hover {
  background: var(--metallic-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(15,39,68,0.14), 0 8px 22px rgba(37,99,235,0.30);
}

.btn:active, .btn-primary:active {
  transform: translateY(0) scale(0.985);
  box-shadow: 0 1px 2px rgba(15,39,68,0.18);
}

/* BREADCRUMB */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--slate-light);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--slate-light);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--blue); }

.breadcrumb-sep { color: var(--border); }

.breadcrumb-current { color: var(--slate); }

/* FOOTER */
footer {
  background: var(--navy-gradient);
  padding: 48px 5% 28px;
  margin-top: 96px;
}

.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-links-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links-row a {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links-row a:hover { color: var(--white); }

.footer-copy { font-size: 13px; color: rgba(255,255,255,0.25); }

@media (max-width: 768px) {
  nav .nav-links { display: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
