/* ==========================================================================
   FPC Shared Base Styles & Cross-Device Responsive Ergonomics
   Covers: Desktop, Tablet (P/L), Foldable (Unfolded & 344px Cover),
           Large Phone (P/L), Small Phone (P/L).
   ========================================================================== */

:root {
  --fpc-g-dark: #07381e;
  --fpc-g-main: #0a4a2a;
  --fpc-g-light: #1a7a4a;
  --fpc-g-soft: #eef6f0;
  --fpc-gold: #f5d76e;
  --fpc-gold-deep: #d4a017;
  --fpc-bg: #f8faf6;
  --fpc-text: #1a1a2e;
  --fpc-muted: #5a6b61;
  --fpc-nav-h: 68px;
}

/* Global safe box-sizing & overflow guard */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
}

/* Prevent iOS Safari auto-zoom on form controls < 16px on touch devices */
@media (pointer: coarse) and (max-width: 860px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Foldable narrow outer cover screen (e.g. Galaxy Z Fold 344px) & small phones */
@media (max-width: 380px) {
  .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

/* Short Landscape Phone Ergonomics (344px - 450px viewport height) */
@media (orientation: landscape) and (max-height: 500px) {
  .page-header,
  .hero,
  .mission-header {
    padding-top: 22px !important;
    padding-bottom: 20px !important;
  }

  .page-header h1,
  .hero h1,
  .mission-header h1 {
    font-size: 1.65em !important;
    margin-bottom: 6px !important;
  }

  .page-header p,
  .hero p,
  .mission-header .mission-text {
    font-size: 0.92em !important;
    margin-bottom: 12px !important;
  }

  .section,
  .media-section,
  .events-preview,
  .media-preview,
  .pillars,
  .edu,
  .youth,
  .impact {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
  }
}

/* Canonical Unified Site Footer (mounted by fpc-footer.js) */
.fpc-site-footer {
  background: #0d1f17;
  color: #e2ece6;
  padding: 48px 0 22px;
  border-top: 3px solid var(--fpc-gold);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  margin-top: auto;
}

.fpc-site-footer .fpc-footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.fpc-site-footer .fpc-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 32px;
  margin-bottom: 32px;
}

.fpc-site-footer h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  color: var(--fpc-gold);
  margin: 0 0 12px 0;
  font-weight: 700;
}

.fpc-site-footer p {
  color: #b7c9bf;
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 0 0 8px 0;
}

.fpc-site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fpc-site-footer li {
  margin-bottom: 6px;
}

.fpc-site-footer a {
  color: #cfe0d6;
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.6;
  transition: color 0.18s;
}

.fpc-site-footer a:hover {
  color: var(--fpc-gold);
  text-decoration: underline;
}

.fpc-footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.fpc-footer-social-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  text-decoration: none !important;
  transition: transform 0.2s, box-shadow 0.2s;
}

.fpc-footer-social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.fpc-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #8fa699;
}

.fpc-footer-legal {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.fpc-footer-legal a {
  color: #b7c9bf;
  text-decoration: underline;
  font-size: 0.82rem;
}

@media (max-width: 960px) {
  .fpc-site-footer .fpc-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
  }
}

@media (max-width: 560px) {
  .fpc-site-footer {
    padding: 36px 0 20px;
  }
  .fpc-site-footer .fpc-footer-inner {
    padding: 0 16px;
  }
  .fpc-site-footer .fpc-footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .fpc-footer-bottom {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
}
