/* ============================================================
   shared.css — billtrochim.net
   Loads on every page. Handles nav, footer, base typography.
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;1,400&family=Source+Sans+3:wght@400;500;600&display=swap');

/* --- Reset & base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: #1a1a2e;
  background: #f8f8fc;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 500;
  line-height: 1.3;
  color: #1a1a2e;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: #6350B8;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  color: #432D8F;
}

/* --- Page wrapper --- */
.bt-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.bt-main {
  flex: 1;
}

/* ============================================================
   SHARED NAVIGATION BAR
   ============================================================ */
.bt-nav {
  background: #2D1B69;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  min-height: 58px;
}

.bt-nav-brand {
  padding: 12px 0;
  text-decoration: none;
}

.bt-nav-brand:hover {
  text-decoration: none;
}

.bt-nav-brand-name {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.2;
  display: block;
}

.bt-nav-brand-sub {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  display: block;
  margin-top: 1px;
  letter-spacing: 0.03em;
}

.bt-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  padding: 8px 0;
}

.bt-nav-link {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 20px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.bt-nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  text-decoration: none;
}

.bt-nav-link.active {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Mobile nav */
@media (max-width: 768px) {
  .bt-nav {
    padding: 0 16px;
  }
  .bt-nav-links {
    width: 100%;
    padding: 0 0 10px 0;
    gap: 4px;
  }
  .bt-nav-link {
    font-size: 0.75rem;
    padding: 4px 10px;
  }
}

/* ============================================================
   SHARED FOOTER
   ============================================================ */
.bt-footer {
  background: #2D1B69;
  padding: 14px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.bt-footer-text {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}

.bt-footer-link {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.75rem;
  color: #B0A6E0;
  text-decoration: none;
}

.bt-footer-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .bt-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
  }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.bt-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 28px;
}

@media (max-width: 600px) {
  .bt-container {
    padding: 0 16px;
  }
}
