/* ── CuraLex Design System ─────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

:root {
  --ink:     #111827;
  --ink-2:   #374151;
  --ink-3:   #6b7280;
  --ink-4:   #9ca3af;
  --surface: #ffffff;
  --wash:    #f9fafb;
  --line:    #e5e7eb;
  --line-l:  #f3f4f6;
  --brand-navy: #1a3a5f;
  --brand-green: #3a9e4b;
  --brand-green-l: #e8f5e9;
  --brand-teal:  #26c6da;
  --accent:  #1a3a5f;
  --accent-l:#eef3f9;
  --radius:  8px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--surface);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--brand-navy); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }

/* ── Navigation ───────────────────────────────────────── */
.site-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 200;
}
.site-nav .nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-brand img {
  height: 36px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: .45rem .9rem;
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink-3);
  text-decoration: none;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.nav-links a:hover {
  color: var(--ink);
  background: var(--wash);
  text-decoration: none;
}
.nav-links a.active {
  color: var(--brand-navy);
  font-weight: 600;
  background: var(--accent-l);
}

/* Nav dropdown */
.nav-dropdown {
  position: relative;
  list-style: none;
}
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .45rem .9rem;
  font-family: inherit;
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink-3);
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: color .15s, background .15s;
}
.nav-dropdown-toggle:hover {
  color: var(--ink);
  background: var(--wash);
}
.nav-dropdown-toggle.active {
  color: var(--brand-navy);
  font-weight: 600;
  background: var(--accent-l);
}
.nav-dropdown-toggle svg {
  transition: transform .15s;
}
.nav-dropdown.open .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .35rem 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  list-style: none;
  z-index: 300;
}
.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-menu a {
  display: block;
  padding: .5rem 1rem;
  font-size: .8rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: background .1s;
}
.nav-dropdown-menu a:hover {
  background: var(--wash);
  text-decoration: none;
}
.dropdown-disabled {
  padding: .5rem 1rem;
  font-size: .8rem;
  color: var(--ink-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.coming {
  font-size: .65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-4);
  background: var(--line-l);
  padding: .15rem .4rem;
  border-radius: 4px;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: .45rem 1rem !important;
  background: var(--brand-navy) !important;
  color: #fff !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  transition: background .15s !important;
}
.nav-cta:hover {
  background: #244d7a !important;
  color: #fff !important;
}
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  color: var(--ink-2);
}
.nav-hamburger svg { display: block; }

/* ── Footer ───────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  padding: 3.5rem 0 2rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand img {
  height: 32px;
  width: auto;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.footer-brand p {
  font-size: .8rem;
  line-height: 1.6;
  max-width: 320px;
  color: rgba(255,255,255,.5);
}
.footer-col h4 {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.4);
  margin-bottom: .75rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .4rem; }
.footer-col a {
  font-size: .82rem;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: color .15s;
}
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  max-width: 1400px;
  margin: 2.5rem auto 0;
  padding: 1.5rem 2rem 0;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .72rem;
  color: rgba(255,255,255,.35);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ── Responsive nav ───────────────────────────────────── */
@media (max-width: 768px) {
  .nav-hamburger { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: .75rem 1.5rem;
    gap: .15rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
  }
  .nav-links.open { display: flex; }
  .nav-dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 1rem; }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-links a { width: 100%; }
  .site-nav .nav-inner { position: relative; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
  .container { padding: 0 1.25rem; }
}
