/* =============================================================================
   PM Fee Audit — Main Stylesheet
   Shared across all pages on pmfeeaudit.com
   ============================================================================= */

:root {
  --pri: #0057A8;
  --pri-d: #00408a;
  --accent: #F5A623;
  --green: #16a34a;
  --red: #dc2626;
  --gray: #6b7280;
  --gray-d: #374151;
  --light: #f9fafb;
  --border: #e5e7eb;
  --dark: #0a0a1a;
  --font: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: #fff;
  color: #111;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--pri); }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ── Topbar ──────────────────────────────────────────────────────────────── */
.topbar {
  background: #111;
  color: #fff;
  padding: 8px 0;
  font-size: .82rem;
  text-align: center;
}
.topbar a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

/* ── Header / Nav ────────────────────────────────────────────────────────── */
.site-header {
  background: var(--pri);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  gap: 16px;
  position: relative;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -.3px;
  flex-shrink: 0;
}
.nav-brand:hover { text-decoration: none; }
.nav-logo-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: block;
}
.nav-primary {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}
.nav-primary a {
  color: rgba(255, 255, 255, .85);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav-primary a:hover,
.nav-primary a.active,
.nav-primary a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--accent);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-btn {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  white-space: nowrap;
  transition: background .15s;
}
.nav-btn:hover { background: #e09615; }

/* ── Hamburger ──────────────────────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: .3s;
}

/* ── Mobile Drawer ──────────────────────────────────────────────────────── */
.nav-drawer {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--pri);
  padding: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .3);
  z-index: 99;
  flex-direction: column;
  gap: 8px;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  color: rgba(255, 255, 255, .9);
  text-decoration: none;
  padding: 10px 0;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.nav-drawer a:last-child { border-bottom: none; }
.drawer-divider {
  height: 1px;
  background: rgba(255, 255, 255, .15);
  margin: 8px 0;
}
.drawer-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 12px !important;
  border-radius: 6px;
  text-align: center;
  font-weight: 700;
  border-bottom: none !important;
  margin-top: 8px;
}

/* ── Responsive: hide desktop nav below 900px, show hamburger ─────────── */
@media (max-width: 900px) {
  .nav-primary,
  .nav-right .nav-btn {
    display: none;
  }
  .nav-hamburger { display: block; }
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  background: #0a0a1a;
  color: #9ca3af;
  padding: 48px 0 0;
  margin-top: 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 32px;
}
.footer-brand .fb-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.footer-brand .fb-desc {
  font-size: .85rem;
  line-height: 1.55;
  margin-bottom: 14px;
  color: #9ca3af;
}
.fb-contact { display: flex; flex-direction: column; gap: 4px; }
.fb-contact a {
  color: var(--accent);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
}
.footer-col .fc-title {
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 12px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: #9ca3af;
  text-decoration: none;
  font-size: .88rem;
}
.footer-col a:hover { color: #fff; }

.footer-family {
  border-top: 1px solid #1f2937;
  padding: 24px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-family-label {
  color: #6b7280;
  font-size: .76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 10px;
}
.footer-family-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-family-links a {
  color: #9ca3af;
  text-decoration: none;
  font-size: .8rem;
  padding: 4px 10px;
  border: 1px solid #374151;
  border-radius: 4px;
}
.footer-family-links a:hover {
  color: #fff;
  border-color: #4b5563;
}

.footer-bottom {
  background: #050510;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom .footer-copy {
  font-size: .78rem;
  color: #6b7280;
}
.footer-legal {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-legal a {
  color: #9ca3af;
  text-decoration: none;
  font-size: .78rem;
}
.footer-legal a:hover { color: #fff; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}
