/* ===========================================================================
   Anchor of Hope Homes - shared site chrome
   ---------------------------------------------------------------------------
   Owns the navigation and the footer for EVERY page. Edit here once and the
   change reaches the whole site on the next page load, with no re-paste into
   Chronos and no page-by-page editing.

   Page-specific styling stays in each page's own <style> block. Only chrome
   lives here.
   =========================================================================== */

:root {
  --ivory: #f7f3ee;
  --warm-white: #faf8f5;
  --navy: #1e2a4a;
  --navy-light: #2d3d5e;
  --gold: #c5a55a;
  --gold-light: #d4bb7a;
  --gold-dark: #a88b3d;
  --charcoal: #4a4540;
  --border-color: #e8e2d8;
}

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px)  { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* --------------------------------------------------------------- navigation */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: all 0.5s ease;
  background: rgba(0,0,0,0.2);
  backdrop-filter: blur(2px);
}
.site-nav.scrolled {
  background: rgba(247,243,238,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
@media (min-width: 768px) { .nav-inner { height: 5rem; } }

.nav-logo { display: flex; align-items: center; gap: 0.75rem; background: none; border: none; cursor: pointer; padding: 0; }
.nav-logo img {
  height: 3rem; width: 3rem; border-radius: 50%; object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
@media (min-width: 768px) { .nav-logo img { height: 3.5rem; width: 3.5rem; } }

.nav-logo-text { display: none; }
@media (min-width: 640px) { .nav-logo-text { display: block; } }
.nav-logo-title {
  font-family: 'Playfair Display', serif; font-weight: 700;
  font-size: 1.05rem; line-height: 1.2; display: block; transition: color 0.3s;
}
.nav-logo-sub {
  font-family: 'DM Sans', sans-serif; font-size: 0.6rem;
  letter-spacing: 0.2em; text-transform: uppercase; transition: color 0.3s;
}

.site-nav:not(.scrolled) .nav-logo-title { color: #fff; }
.site-nav:not(.scrolled) .nav-logo-sub   { color: rgba(255,255,255,0.6); }
.site-nav:not(.scrolled) .nav-link       { color: rgba(255,255,255,0.9); }
.site-nav:not(.scrolled) .nav-link:hover { color: #fff; }
.site-nav:not(.scrolled) .mobile-toggle  { color: #fff; }
.site-nav.scrolled .nav-logo-title { color: var(--navy); }
.site-nav.scrolled .nav-logo-sub   { color: rgba(74,69,64,0.6); }
.site-nav.scrolled .nav-link       { color: rgba(74,69,64,0.7); }
.site-nav.scrolled .nav-link:hover { color: var(--navy); }
.site-nav.scrolled .mobile-toggle  { color: var(--navy); }

.nav-links { display: none; align-items: center; gap: 1.15rem; }
@media (min-width: 1024px) { .nav-links { display: flex; } }

.nav-link {
  font-family: 'DM Sans', sans-serif; font-size: 0.875rem; font-weight: 500;
  transition: color 0.3s; position: relative;
  background: none; border: none; cursor: pointer; padding: 0;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--gold); transition: width 0.3s;
}
.nav-link:hover::after { width: 100%; }

.nav-cta {
  font-family: 'DM Sans', sans-serif; font-size: 0.875rem; font-weight: 600;
  padding: 0.625rem 1.25rem; border-radius: 2px;
  background: var(--gold); color: var(--navy);
  border: none; cursor: pointer; transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 8px rgba(197,165,90,0.2);
}
.nav-cta:hover { background: var(--gold-light); transform: translateY(-3px) scale(1.02); box-shadow: 0 10px 28px rgba(197,165,90,0.5); }

.mobile-toggle { display: block; padding: 0.5rem; background: none; border: none; cursor: pointer; }
@media (min-width: 1024px) { .mobile-toggle { display: none; } }

.mobile-menu {
  display: none; background: rgba(247,243,238,0.98); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color); padding: 1.5rem;
}
.mobile-menu.open { display: block; }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }
.mobile-menu a, .mobile-menu button.mobile-nav-link {
  display: block; font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 500;
  color: rgba(74,69,64,0.8); padding: 0.75rem 0;
  border-bottom: 1px solid rgba(232,226,216,0.5);
  width: 100%; text-align: left; background: none; border-left: none;
  border-right: none; border-top: none; cursor: pointer;
}
.mobile-menu .mobile-cta {
  display: block; text-align: center; margin-top: 1rem;
  background: var(--gold); color: var(--navy); padding: 0.75rem;
  border-radius: 2px; font-weight: 600; border: none; cursor: pointer;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.mobile-menu .mobile-cta:hover { background: var(--gold-light); transform: translateY(-3px) scale(1.02); box-shadow: 0 10px 28px rgba(197,165,90,0.5); }

/* --------------------------------------------------------------- hero badge */
.hero-badge {
  font-family: 'DM Sans', sans-serif; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-light);
  display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 2.25rem;
}
.hero-badge::before { content: "↓"; font-size: 0.95rem; line-height: 1; }

/* ------------------------------------------------------- clickable chat card */
.chat-cta-click {
  display: block; width: 100%; text-align: left; font: inherit; cursor: pointer;
  background: #fff; border: 1px solid rgba(232,226,216,0.7); border-radius: 8px;
  padding: 2.25rem 2rem 2rem; box-shadow: 0 6px 22px rgba(0,0,0,0.07);
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}
.chat-cta-click:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,0.18); }
.chat-cta-click h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem); font-weight: 700;
  color: var(--navy); line-height: 1.2; margin-bottom: 0.85rem;
}
.chat-cta-person { display: flex; align-items: center; gap: 0.8rem; margin-top: 1.5rem; }
.chat-cta-person img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.chat-cta-person span {
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem; font-weight: 600; color: var(--navy);
}

/* ------------------------------------------------------------------- footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.7); }

.footer-grid { display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

.footer-link {
  font-family: 'DM Sans', sans-serif; font-size: 0.875rem;
  color: rgba(255,255,255,0.55); transition: color 0.3s;
  display: block; padding: 0.25rem 0;
  background: none; border: none; text-align: left; cursor: pointer;
}
.footer-link:hover { color: var(--gold-light); }

.footer-heading {
  font-family: 'DM Sans', sans-serif; font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 1.5rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.footer-brand img { height: 3rem; width: 3rem; border-radius: 50%; object-fit: cover; }
.footer-brand-name { font-family: 'Playfair Display', serif; color: #fff; font-weight: 700; font-size: 1rem; display: block; }
.footer-brand-sub  { font-family: 'DM Sans', sans-serif; font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.4); }
.footer-blurb {
  font-family: 'Source Serif 4', Georgia, serif; font-size: 0.875rem;
  color: rgba(255,255,255,0.55); line-height: 1.7; margin-bottom: 1.5rem; max-width: 26rem;
}
.footer-pillars { font-family: 'DM Sans', sans-serif; font-size: 0.75rem; color: rgba(255,255,255,0.3); }
.footer-pillars span { color: rgba(197,165,90,0.5); }
.footer-contact-row {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-family: 'DM Sans', sans-serif; font-size: 0.875rem;
  color: rgba(255,255,255,0.55); margin-bottom: 1rem; transition: color 0.3s;
}
a.footer-contact-row:hover { color: var(--gold-light); }
.footer-contact-row svg { flex-shrink: 0; margin-top: 3px; }
.footer-partner-link { display: inline-block; margin-top: 1rem; color: rgba(197,165,90,0.75); }
.footer-partner-link:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); margin-top: 3rem; padding-top: 2rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
}
.footer-bottom p { font-family: 'DM Sans', sans-serif; font-size: 0.75rem; color: rgba(255,255,255,0.3); }

/* These read as a disclaimer unless they are clearly links. Contrast, not markup,
   is what made them look broken before - keep the underline and the 0.55 alpha. */
.footer-legal { font-family: 'DM Sans', sans-serif; font-size: 0.75rem; margin-top: 1rem; color: rgba(255,255,255,0.3); }
.footer-legal a {
  color: rgba(255,255,255,0.55); text-decoration: underline;
  text-underline-offset: 3px; transition: color 0.3s;
}
.footer-legal a:hover { color: var(--gold-light); }
