/* ==========================================================================
   MAMA CHRISTA FOUNDATION — PROGRAMMES PAGE STYLESHEET (programme.css)
   Theme: Vibrant Warm Orange & Clean White
   ========================================================================== */

/* 1. BRAND COLOR SYSTEM & DESIGN VARIABLES */
:root {
  --orange: #C74B17;          /* Primary Mama Christa Orange */
  --orange-hover: #A33A0D;    /* Darker Orange for hover */
  --orange-light: #FF8F5E;    /* Soft accent orange */
  --tint: #FFF4EE;            /* Light warm orange-white background tint */
  --tint-accent: #FFEFE5;     /* Soft section background gradient */
  --white: #FFFFFF;           /* Clean white card backgrounds */
  --strong: #231815;          /* Deep warm charcoal for headings */
  --ink: #2B2320;             /* Body text color */
  --muted: #665953;           /* Subtitles and supporting text */
  --line: #E8D9CF;            /* Soft warm borders */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 4px 14px rgba(199, 75, 23, 0.08);
  --shadow-md: 0 16px 36px rgba(199, 75, 23, 0.12);
  --shadow-lg: 0 24px 50px rgba(199, 75, 23, 0.16);
}

/* 2. BASE RESET & TYPOGRAPHY */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Figtree', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  padding-top: 80px;
}

h1, h2, h3, h4 {
  font-family: 'Bricolage Grotesque', sans-serif;
  color: var(--strong);
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

.section {
  padding: 4.5rem 5%;
}

.text-center {
  text-align: center;
}

.section-intro {
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.section-intro h2 {
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  margin-bottom: 0.6rem;
}

.section-intro p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* 3. BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
  background-color: var(--orange);
  border: 2px solid var(--orange);
  border-radius: 9999px;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 14px rgba(199, 75, 23, 0.25);
}

.btn:hover {
  background-color: var(--orange-hover);
  border-color: var(--orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(199, 75, 23, 0.35);
}

.btn-ghost {
  background-color: transparent;
  color: var(--strong);
  border-color: var(--line);
  box-shadow: none;
}

.btn-ghost:hover {
  background-color: var(--tint);
  border-color: var(--orange);
  color: var(--orange);
  box-shadow: none;
}

.btn-sm {
  padding: 0.55rem 1.2rem;
  font-size: 0.9rem;
}

/* 4. HEADER & NAVIGATION */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem clamp(1rem, 4vw, 3rem);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow 0.3s, padding 0.3s, background 0.3s;
  border-bottom: 1px solid rgba(232, 217, 207, 0.5);
}

.site-header.scrolled {
  box-shadow: 0 6px 24px rgba(199, 75, 23, 0.12);
  padding-block: 0.3rem;
  background: rgba(255, 255, 255, 0.96);
}

.brand img {
  height: 54px;
  width: auto;
  mix-blend-mode: multiply;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  font-weight: 500;
}

.nav a:not(.btn) {
  text-decoration: none;
  position: relative;
  padding: 0.2rem 0;
  color: var(--ink);
  transition: color 0.3s;
}

.nav a.active {
  color: var(--orange);
  font-weight: 700;
}

.nav a:not(.btn):hover {
  color: var(--orange);
}

.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 100%;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav a.active::after,
.nav a:not(.btn):hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}

.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 26px; }

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-5px) rotate(-45deg);
}

/* 5. HERO SECTION */
.page-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  padding: 3.5rem 5% 4.5rem;
  background: linear-gradient(135deg, var(--white) 0%, var(--tint) 100%);
  border-bottom: 1px solid var(--line);
}

.crumbs {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.crumbs a {
  color: var(--orange);
}

.crumbs a:hover {
  text-decoration: underline;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  margin-bottom: 1rem;
}

.page-hero .lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 54ch;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.stat-pill {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 0.7rem 1.2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.stat-pill strong {
  color: var(--orange);
  font-size: 1.05rem;
  font-family: 'Bricolage Grotesque', sans-serif;
}

.stat-pill span {
  font-size: 0.82rem;
  color: var(--muted);
}

.pillar-card-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stack-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.4rem;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease);
}

.stack-card.highlight {
  background: var(--tint);
  border-color: var(--orange);
  box-shadow: var(--shadow-md);
  transform: scale(1.02);
}

.stack-card:hover {
  transform: translateY(-4px);
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  background: rgba(199, 75, 23, 0.1);
  color: var(--orange);
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.badge-alt {
  background: var(--orange);
  color: var(--white);
}

.stack-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.stack-card p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* 6. FILTER & SEARCH */
.filter-section {
  background: var(--white);
  padding-bottom: 2rem;
}

.filter-controls {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.search-box svg {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.search-box input {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 3.2rem;
  font-size: 1rem;
  border: 1.5px solid var(--line);
  border-radius: 9999px;
  background: #FFFCFA;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.search-box input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(199, 75, 23, 0.15);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.tab-btn {
  background: var(--tint);
  border: 1px solid var(--line);
  color: var(--strong);
  padding: 0.6rem 1.2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.tab-btn:hover {
  background: var(--line);
}

.tab-btn.active {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
  box-shadow: 0 4px 12px rgba(199, 75, 23, 0.25);
}

/* 7. PROGRAMMES GRID & IMAGE PLACEHOLDERS */
.programmes-grid-section {
  background: linear-gradient(180deg, var(--white) 0%, var(--tint-accent) 100%);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.prog-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
  position: relative;
  overflow: hidden;
}

.card-img-wrapper {
  width: 100%;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.2rem;
  background-color: var(--tint-accent);
  position: relative;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.prog-card:hover .card-img {
  transform: scale(1.05);
}

.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--tint) 0%, var(--tint-accent) 100%);
  color: var(--orange);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
}

.img-placeholder::after {
  content: 'Image Placeholder (Click to update)';
}

.prog-card.hidden {
  display: none !important;
}

.prog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--orange);
}

.card-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.card-badge.badge-accent {
  color: #D9531E;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--tint);
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
}

.card-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--orange);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.prog-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.prog-card .summary {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.key-points {
  list-style: none;
  margin-bottom: 1.6rem;
}

.key-points li {
  font-size: 0.88rem;
  color: var(--ink);
  padding-left: 1.3rem;
  position: relative;
  margin-bottom: 0.4rem;
}

.key-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 800;
}

.prog-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.featured-card {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #FFF9F5 0%, #FFEFE5 100%);
  border: 2px solid var(--orange);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: center;
}

.featured-img-wrapper {
  width: 100%;
  height: 280px;
  border-radius: 20px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .featured-card {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
}

/* 8. APPROACH & METHODOLOGY */
.approach-section {
  background: var(--white);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.approach-card {
  background: var(--tint);
  border: 1px solid var(--line);
  padding: 1.8rem 1.4rem;
  border-radius: 20px;
  position: relative;
  transition: transform 0.3s var(--ease);
}

.approach-card:hover {
  transform: translateY(-4px);
  background: var(--white);
  border-color: var(--orange);
  box-shadow: var(--shadow-sm);
}

.app-num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--orange);
  opacity: 0.8;
  margin-bottom: 0.6rem;
}

.approach-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.approach-card p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* 9. CTA SECTION */
.cta-section {
  background: var(--strong);
  color: var(--white);
  text-align: center;
  padding: 4.5rem 5%;
}

.cta-inner {
  max-width: 700px;
  margin: 0 auto;
}

.cta-section h2 {
  color: var(--white);
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-section .btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.cta-section .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

/* 10. MODAL DIALOG */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(35, 24, 21, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--white);
  border-radius: 28px;
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.5rem 2rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.35s var(--ease);
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: var(--tint);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--strong);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}

.modal-close:hover {
  background: var(--line);
}

.modal-img-wrapper {
  width: 100%;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.2rem;
}

.modal-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-body h2 {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
  color: var(--strong);
}

.modal-body .mod-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.modal-body p {
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 1.2rem;
  line-height: 1.65;
}

.modal-body h4 {
  font-size: 1.1rem;
  margin: 1.2rem 0 0.6rem;
  color: var(--strong);
}

.modal-body ul {
  padding-left: 1.2rem;
  margin-bottom: 1.5rem;
}

.modal-body li {
  margin-bottom: 0.4rem;
  color: var(--muted);
}

/* 11. FOOTER */
.site-footer {
  background: var(--strong);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 5%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer img {
  height: 48px;
  width: auto;
  border-radius: 8px;
}

.site-footer p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
}

/* 12. RESPONSIVE BREAKPOINTS */
@media (max-width: 960px) {
  .page-hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.4rem;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(199, 75, 23, 0.12);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease), opacity 0.3s;
  }

  .nav-toggle[aria-expanded="true"] + .nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 600px) {
  main {
    padding-top: 72px;
  }

  .section {
    padding: 3rem 1.2rem;
  }

  .page-hero {
    padding: 2rem 1.2rem 3rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .modal-box {
    padding: 1.8rem 1.2rem;
    border-radius: 22px;
  }
}