/* ============================================
 * The Crooked House — shared site chrome
 *
 * Loaded by every HTML page. Provides:
 *   - Mobile hamburger navigation
 *   - Footer compact site nav row
 *   - Footer donation CTA band
 *
 * The mobile-nav rules duplicate the inline styles
 * already in index.html. The duplication is harmless
 * (identical rules) and lets us bring every other page
 * into parity without rewriting the homepage.
 * ============================================ */


/* ----- Mobile hamburger nav (max-width:800px) ----- */

.Mobile-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.Mobile-bar-menu {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
}
.Mobile-bar-menu-icon {
  width: 25px;
  height: 3px;
  background: #333;
  transition: all 0.3s ease;
  display: block;
}
.Mobile-bar-branding a {
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  color: #333;
}

.Index-nav.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  z-index: 999;
  padding-top: 80px;
  display: none !important;
}
.Index-nav.overlay.active {
  display: block !important;
}
.Index-nav-inner {
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 8px;
}
.Index-nav-item {
  padding: 16px 20px;
  font-size: 18px;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #eee;
  display: block;
}
.Index-nav-item:hover {
  background: #f5f5f5;
}

@media (max-width: 800px) {
  /* Leave room for the fixed mobile bar */
  body { padding-top: 60px; }

  /* Override the inline sf-hidden on the .Mobile container so the bar shows */
  .Mobile.loaded.sf-hidden { display: block !important; }

  /* Hide the desktop header + nav on mobile */
  .Header.Header--bottom,
  .Header-nav--primary,
  .Header-nav--secondary {
    display: none !important;
  }
}

@media (min-width: 801px) {
  /* Hide the mobile bar + overlay on desktop */
  .Mobile { display: none !important; }
  .Index-nav { display: none !important; }
}


/* ----- Footer donation CTA band ----- */

.footer-cta-band {
  background: #f8f6f2;
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid #eee;
}
.footer-cta-heading {
  font-family: 'adobe-garamond-pro', Garamond, 'Times New Roman', serif;
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 16px;
  color: #222;
}
.footer-cta-button {
  display: inline-block;
  background: #000;
  color: #fff !important;
  padding: 18px 44px;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 14px;
  transition: background 0.2s;
}
.footer-cta-button:hover { background: #333; }
.footer-cta-subtext {
  font-size: 13px;
  color: #666;
  margin: 16px 0 0;
}
@media (max-width: 480px) {
  .footer-cta-heading { font-size: 22px; }
  .footer-cta-button { padding: 14px 32px; }
}


/* ----- Footer compact nav row ----- */

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding: 20px;
  text-align: center;
}
.footer-nav-item {
  color: inherit;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 0;
}
.footer-nav-item:hover { text-decoration: underline; }
@media (max-width: 480px) {
  .footer-nav { gap: 8px 16px; padding: 16px; }
  .footer-nav-item { font-size: 12px; }
}
