/* ================================================================
   04 — HEART OF HOPE OVERRIDES LAYER
   Version: Phase 4.2 (Overrides Only — Clean & Focused)
   Purpose: Header overrides, navigation motion layer, BuddyPress
            overrides, and high-specificity TT1/plugin fixes
================================================================ */

/* ===============================================================
   1. MOBILE HEADER — Logo Reduction + Alignment
================================================================ */

@media (max-width: 768px) {
  .site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
  }

  .site-header .custom-logo,
  .site-header .site-logo img {
    max-height: 65px !important;
    height: auto;
    width: auto;
  }

  .site-header .menu-toggle {
    margin-left: auto;
    align-self: center;
  }
}

/* ===============================================================
   2. NAVIGATION MENU CARD — Mobile Scroll Motion
   Purpose: Slide nav card upward on scroll down, return on scroll up
================================================================ */

@media (max-width: 768px) {
  .hoh-nav-card {
    position: fixed;
    left: 0;
    right: 0;
    top: 30vh;
    z-index: 9999;
    transition: transform 0.3s ease;
    will-change: transform;
  }

  /* JS adds this class when scrolling down */
  .hoh-nav-card--hidden {
    transform: translateY(-60%);
  }
}

/* ===============================================================
   3. BUDDYPRESS OVERRIDES — Alignment & Full-Width Fixes
================================================================ */

body.buddypress .alignwide {
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-3);
  padding-right: var(--space-3);
}

@media (max-width: 767px) {
  body.buddypress #buddypress.alignwide {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

body.buddypress #buddypress .activity-item {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

/* ===============================================================
   4. GROUPS PAGE OVERRIDES — Spacing & Alignment
================================================================ */

@media (max-width: 1024px) {
  body.page-id-53 .site-main,
  body.page-id-53 #buddypress.buddypress-wrap,
  body.page-id-53 .bp-nouveau .groups-list,
  body.page-id-53 .bp-nouveau .item-list {
    padding-left: var(--space-3) !important;
    padding-right: var(--space-3) !important;
    box-sizing: border-box;
  }
}

/* ===============================================================
   5. HIGH-SPECIFICITY OVERRIDES — TT1 & Plugin Fixes
================================================================ */

/* Entry title override */
.singular .entry-header .entry-title,
.page .entry-title,
.post .entry-title {
  font-size: 2.4rem !important;
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 600px) {
  .singular .entry-header .entry-title,
  .page .entry-title,
  .post .entry-title {
    font-size: 1.8rem !important;
  }
}

/* Latest posts mobile font fix */
@media (max-width: 600px) {
  .wp-block-latest-posts__list .wp-block-latest-posts__post-title {
    font-size: 1.4rem !important;
    line-height: 1.3;
  }

  .wp-block-latest-posts__list li {
    margin-bottom: var(--space-2);
  }
}

/* ===============================================================
   6. MEMBERCHAT OVERRIDES — Full-Width Chat Layout
================================================================ */

body.page-id-107 .site-main,
body.page-id-107 .entry-content {
  margin: 0 !important;
  padding: 0 !important;
}

/* ===============================================================
   7. ABOUT PAGE OVERRIDES — Typography & Spacing
================================================================ */

body.page-id-130 .entry-content {
  padding: var(--space-4) var(--space-3) !important;
  line-height: 1.6 !important;
  color: var(--color-body) !important;
  font-size: 1rem !important;
}

body.page-id-130 .entry-content h2,
body.page-id-130 .entry-content h3 {
  font-size: clamp(1.2rem, 2vw, 1.6rem) !important;
  margin: var(--space-4) 0 var(--space-2) !important;
  font-weight: 600;
  text-align: center;
  color: var(--color-heading);
}

/* ===============================================================
   8. SAFETY OVERRIDE — Prevent TT1 Background Reset
================================================================ */

body {
  background-color: var(--color-background) !important;
}


/*===============================================================
Footer Styling for nav-unified.js file
==================================================================*/
.hoh-footer-card {
  background: #fff;
  border-top: 1px solid var(--color-accent-light, #e9ddff);
  padding: 2rem 1rem;
  text-align: center;
  font-family: var(--font-body);
  font-size: var(--scale-0);
  color: var(--color-heading);
}

.hoh-footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hoh-footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.hoh-footer-links a {
  color: var(--color-heading);
  text-decoration: none;
  transition: color 0.2s ease;
}

.hoh-footer-links a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.footer-tagline strong {
  color: var(--color-accent);
  font-weight: 600;
}

footer .hoh-footer-card,
footer .hoh-footer-card * {
  font-size: var(--scale--1) !important;
}


/* ABOUT PAGE TYPOGRAPHY — Heart of Hope */
body.page-id-130 .entry-content {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-3) !important;
  font-family: var(--font-body);
  font-size: var(--scale-0);
  line-height: 1.7;
  color: var(--color-body);
}

/* Headings */
body.page-id-130 .entry-content h2,
body.page-id-130 .entry-content h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-heading);
  text-align: center;
  margin: var(--space-5) 0 var(--space-3);
  line-height: 1.3;
}

/* Scripture intro */
body.page-id-130 .entry-content blockquote {
  font-style: italic;
  font-size: var(--scale-1);
  color: var(--color-accent);
  text-align: center;
  margin: var(--space-4) auto;
  border-left: none;
}

/* Paragraph spacing */
body.page-id-130 .entry-content p {
  margin-bottom: var(--space-3);
}

/* Soft dividers (optional) */
body.page-id-130 .entry-content hr {
  border: none;
  border-top: 1px solid var(--color-accent-light);
  margin: var(--space-5) auto;
  width: 60%;
}

/* ABOUT PAGE — HERO BANNER */
body.page-id-130 .hoh-about-hero {
  background: linear-gradient(
    135deg,
    var(--color-bg-soft, #f7f5f2) 0%,
    var(--color-accent-light, #e9ddff) 40%,
    var(--color-accent, #7a4de8) 100%
  );
  padding: 6rem 2rem;
  text-align: center;
  color: #fff;
  border-radius: 0 0 1.5rem 1.5rem;
}

body.page-id-130 .hoh-about-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

body.page-id-130 .hoh-about-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

body.page-id-130 .hoh-about-hero-scripture {
  font-size: var(--scale-1);
  font-style: italic;
  opacity: 0.9;
}

/* ============================================================
   HOME PAGE — RESPONSIVE WATERMARK (Viewport‑anchored)
   Page ID: 130
   Purpose: Whisper-soft verse that scales and stays centered
=============================================================== */

body.page-id-130::before {
  content: "We love because He first loved us — 1 John 4:19";

  /* Positioning */
  position: fixed;          /* anchor to viewport, not content */
  top: 30vh;                /* 30% down the screen */
  left: 50%;
  transform: translateX(-50%);

  /* Typography */
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 10vw, 6rem);  /* fluid scaling */
  line-height: 1.1;
  white-space: nowrap;

  /* Aesthetic */
  color: var(--color-accent-dark);
  opacity: 0.06;            /* whisper-soft */
  pointer-events: none;     /* never blocks clicks */

  /* Layering */
  z-index: 0;               /* behind content */
}






/* ============================================================
   ABOUT PAGE — HERO VIDEO (FINAL, BULLETPROOF VERSION)
   Prevents MP4 from resizing or jumping on play
============================================================ */

/* Make the video full-width edge to edge */
body.page-id-130 .hoh-about-hero-video .hoh-video-wrapper {
  position: relative;
  width: 100vw;              /* full viewport width */
  max-width: 100vw;
  margin-left: calc(50% - 50vw);  /* break out of centered container */
  margin-right: calc(50% - 50vw);
  margin-top: 2rem;
  overflow: hidden;
  border-radius: 0;          /* optional: remove rounding for true full-width */
  background: #000;
}

/* Maintain perfect 16:9 ratio */
body.page-id-130 .hoh-about-hero-video .hoh-video-wrapper::before {
  content: "";
  display: block;
  padding-top: 56.25%; /* 16:9 ratio */
}

/* Lock video inside wrapper */
body.page-id-130 .hoh-about-hero-video .hoh-video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* cinematic full-bleed */
}
