/* ============================================================
   PERSPECTIVES JUNCTION — MOBILE RESPONSIVE STYLES
   File: mobile-responsive.css
   ⚠️  DESKTOP UNTOUCHED — All rules inside max-width: 768px
   ============================================================ */

/* ──────────────────────────────────────────
   1. HAMBURGER BUTTON (hidden on desktop)
────────────────────────────────────────── */
.pj-hamburger {
  display: none;
}

/* ──────────────────────────────────────────
   2. MOBILE BREAKPOINT — All changes here
────────────────────────────────────────── */
@media (max-width: 768px) {

  /* ── BASE / BODY ── */
  body {
    overflow-x: hidden;
  }

  /* ── HEADER ── */
  .site-header,
  header.site-header {
    padding: 12px 16px !important;
    position: sticky;
    top: 0;
    z-index: 9999;
  }

  .header-container,
  .header-inner,
  .nav-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    padding: 0 !important;
  }

  /* Logo sizing on mobile */
  .header-logo img,
  .logo-area img,
  .site-logo img,
  header img.logo {
    height: 44px !important;
    width: auto !important;
    max-width: 140px !important;
  }

  /* ── HAMBURGER BUTTON (show on mobile) ── */
  .pj-hamburger {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10001;
    min-width: 40px;
    min-height: 40px;
  }

  .pj-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #C9A84C;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
  }

  /* Animated X when open */
  .pj-hamburger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .pj-hamburger.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .pj-hamburger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* ── DESKTOP-ONLY "Get in Touch" CTA in header ── */
  .header-cta,
  .header-button,
  .nav-cta {
    display: none !important;
  }

  /* ── NAVIGATION MENU ── */
  .main-nav,
  .site-navigation,
  nav.main-nav,
  .primary-navigation {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: #0D1B2A !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10000 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-20px) !important;
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .main-nav.nav-open,
  .site-navigation.nav-open,
  .primary-navigation.nav-open {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
  }

  /* Nav list */
  .main-nav ul,
  .site-navigation ul,
  .nav-menu,
  .main-navigation ul,
  .primary-navigation ul {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 8px !important;
    width: 100% !important;
  }

  /* Nav items */
  .main-nav ul li,
  .nav-menu li,
  .site-navigation ul li {
    width: 100% !important;
    text-align: center !important;
  }

  /* Nav links */
  .main-nav ul li a,
  .nav-menu li a,
  .site-navigation ul li a {
    display: block !important;
    padding: 14px 24px !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    letter-spacing: 0.04em !important;
    border-bottom: 1px solid rgba(201, 168, 76, 0.15) !important;
    transition: color 0.2s ease !important;
  }

  .main-nav ul li a:hover,
  .nav-menu li a:hover {
    color: #C9A84C !important;
  }

  /* CTA inside mobile nav */
  .mobile-nav-cta {
    display: block !important;
    margin-top: 24px !important;
    background-color: #C9A84C !important;
    color: #0D1B2A !important;
    padding: 14px 36px !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    text-decoration: none !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
  }

  /* ── HERO SECTION ── */
  .hero-section,
  section.hero,
  #hero {
    padding: 60px 20px 50px !important;
    min-height: auto !important;
    text-align: center !important;
  }

  .hero-content,
  .hero-inner {
    max-width: 100% !important;
    padding: 0 !important;
  }

  .hero-welcome,
  .welcome-label,
  .section-eyebrow {
    font-size: 0.75rem !important;
    letter-spacing: 0.12em !important;
    margin-bottom: 16px !important;
  }

  .hero-section h1,
  section.hero h1,
  #hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.6rem) !important;
    line-height: 1.25 !important;
    margin-bottom: 20px !important;
  }

  .hero-section p,
  .hero-description,
  .hero-content > p {
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
    margin-bottom: 32px !important;
    max-width: 100% !important;
  }

  /* Hero buttons — stack vertically */
  .hero-buttons,
  .hero-cta,
  .hero-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .hero-buttons a,
  .hero-cta a,
  .hero-actions a,
  .btn-primary,
  .btn-secondary {
    display: block !important;
    width: 100% !important;
    max-width: 280px !important;
    text-align: center !important;
    padding: 14px 20px !important;
    font-size: 0.9rem !important;
  }

  /* ── SCRIPTURE / QUOTE SECTION ── */
  .scripture-section,
  .foundation-section,
  .quote-banner {
    padding: 32px 20px !important;
    text-align: center !important;
  }

  .scripture-label,
  .foundation-label {
    font-size: 0.7rem !important;
    letter-spacing: 0.15em !important;
  }

  .scripture-text,
  blockquote {
    font-size: 1rem !important;
    line-height: 1.6 !important;
  }

  /* ── STATS BAR ── */
  .stats-section,
  .stats-bar,
  .counter-section,
  .numbers-section {
    padding: 32px 20px !important;
  }

  .stats-container,
  .stats-grid,
  .stats-row,
  .stats-inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 24px 32px !important;
  }

  .stat-item,
  .counter-item,
  .stat-block {
    flex: 1 1 40% !important;
    min-width: 100px !important;
    text-align: center !important;
  }

  .stat-number,
  .counter-number,
  .stat-value {
    font-size: 2.2rem !important;
    line-height: 1.1 !important;
  }

  .stat-label,
  .counter-label {
    font-size: 0.75rem !important;
    letter-spacing: 0.08em !important;
  }

  /* ── PILLARS SECTION ── */
  .pillars-section,
  .three-pillars,
  section.what-we-do {
    padding: 48px 20px !important;
    text-align: center !important;
  }

  .pillars-section h2,
  .three-pillars h2 {
    font-size: clamp(1.4rem, 6vw, 1.8rem) !important;
    margin-bottom: 32px !important;
  }

  .pillars-grid,
  .pillars-container,
  .pillars-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }

  .pillar-card,
  .pillar-item {
    padding: 28px 24px !important;
    width: 100% !important;
    text-align: center !important;
  }

  .pillar-icon,
  .pillar-emoji {
    font-size: 2rem !important;
    margin-bottom: 12px !important;
  }

  .pillar-card h3,
  .pillar-item h3 {
    font-size: 1.1rem !important;
    margin-bottom: 10px !important;
  }

  .pillar-card p,
  .pillar-item p {
    font-size: 0.9rem !important;
    line-height: 1.65 !important;
  }

  .pillar-card a,
  .pillar-item a {
    font-size: 0.85rem !important;
    margin-top: 16px !important;
  }

  /* ── COLLABORATE / CTA SECTION ── */
  .cta-section,
  .collaborate-section,
  .ready-section,
  .contact-cta {
    padding: 48px 20px !important;
    text-align: center !important;
  }

  .cta-section h3,
  .collaborate-section h3,
  .ready-section h3 {
    font-size: 1.3rem !important;
    margin-bottom: 12px !important;
  }

  .cta-section p,
  .collaborate-section p {
    font-size: 0.9rem !important;
    margin-bottom: 24px !important;
  }

  .cta-section .btn-primary,
  .collaborate-section .btn-primary {
    width: auto !important;
    padding: 14px 36px !important;
  }

  /* ── FOOTER ── */
  .site-footer,
  footer.site-footer {
    padding: 36px 20px 28px !important;
    text-align: center !important;
  }

  .footer-inner,
  .footer-container,
  .footer-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 16px !important;
  }

  .footer-logo img {
    height: 40px !important;
    width: auto !important;
    margin: 0 auto !important;
  }

  .footer-tagline,
  .footer-slogan {
    font-size: 0.8rem !important;
    letter-spacing: 0.06em !important;
    text-align: center !important;
  }

  .footer-nav,
  .footer-links {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px 16px !important;
  }

  .footer-copyright,
  .copyright-text {
    font-size: 0.75rem !important;
    text-align: center !important;
    margin-top: 8px !important;
    opacity: 0.6 !important;
  }

  /* ── GENERAL UTILITY ── */
  .container,
  .site-container,
  .page-container {
    padding-left: 20px !important;
    padding-right: 20px !important;
    max-width: 100% !important;
  }

  /* Hide decorative elements that clutter on mobile */
  .desktop-only {
    display: none !important;
  }

  /* Ensure all sections don't overflow */
  section {
    overflow-x: hidden !important;
  }
}

/* ──────────────────────────────────────────
   3. SMALL PHONE (max 480px) refinements
────────────────────────────────────────── */
@media (max-width: 480px) {
  .hero-section h1,
  section.hero h1 {
    font-size: 1.7rem !important;
  }

  .hero-buttons a,
  .btn-primary,
  .btn-secondary {
    max-width: 100% !important;
  }

  .stat-item,
  .counter-item {
    flex: 1 1 100% !important;
  }

  .pillar-card,
  .pillar-item {
    padding: 24px 16px !important;
  }
}
