/* ══════════════════════════════════════════
   ResDB — Shared Styles
   Loaded by all pages: <link rel="stylesheet" href="/styles.css">
   Local testing: python3 -m http.server 8000 from execution/website/
   ══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500&family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Outfit:wght@500;600;700&display=swap');

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

:root {
  --white:        #FAFAF8;
  --ink:          #0E0E0E;
  --navy:         #162640;
  --copper:       #D4863C;
  --copper-muted: #A67A52;
  --glow:         #E8A44E;
  --teal:         #3DBAD6;
  --teal-muted:   #2E99B3;
  --mist:         #F0F0EC;
  --stone:        #6B7280;
  --rule:         #E2E2DC;
  --error:        #C0392B;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 60px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(250,250,248,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.nav-logo {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  text-decoration: none;
}
.nav-logo svg { width: 32px; height: 27px; flex-shrink: 0; }
.nav-logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1;
}
.nav-logo-text span { color: var(--copper); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--stone);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  font-weight: 500 !important;
  color: var(--white) !important;
  background: var(--navy);
  padding: 9px 22px;
  border-radius: 100px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--copper) !important; }

/* ── HAMBURGER ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV DROPDOWN ── */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0; right: 0;
  background: rgba(250,250,248,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  padding: 20px 32px 28px;
  z-index: 99;
  flex-direction: column;
  gap: 0;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  color: var(--stone);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  transition: color 0.15s;
}
.nav-mobile-menu a:last-child { border-bottom: none; }
.nav-mobile-menu a:hover { color: var(--ink); }
.nav-mobile-menu .nav-cta {
  margin-top: 16px;
  display: block;
  text-align: center;
  border: none;
  border-radius: 100px;
  padding: 14px 22px;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--rule);
  padding: 44px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  text-decoration: none;
}
.footer-logo svg { width: 24px; height: 20px; flex-shrink: 0; }
.footer-logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.025em;
  color: var(--navy);
  line-height: 1;
}
.footer-logo-text span { color: var(--copper); }
.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
  flex-wrap: wrap;
}
.footer-links a {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  color: var(--stone);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--ink); }
.footer-copy {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  color: var(--stone);
  opacity: 0.55;
}

/* ── PROSE TYPOGRAPHY ── */
/* Lora for all long-form body text. Change once here, applies everywhere. */
.post-excerpt,
.news-excerpt,
.post-article p,
.news-announcement-body p {
  font-family: 'Lora', serif;
}

/* ── MOBILE NAV BREAKPOINT ── */
@media (max-width: 1024px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  footer { padding: 32px 24px; flex-direction: column; align-items: flex-start; }
}
