/* ============================================
   MSDS - Madras Social Development Society
   Stitch-2 Hero + Kindness & Growth Design
   ============================================ */

:root {
  --primary: #b2000e;
  --primary-container: #d92121;
  --secondary: #35618f;
  --tertiary: #2f6140;
  --tertiary-container: #487a57;
  --surface: #fbf9f8;
  --surface-container-low: #f5f3f3;
  --surface-container-lowest: #ffffff;
  --surface-container-high: #e9e8e7;
  --on-surface: #1b1c1c;
  --on-surface-variant: #5d3f3c;
  --on-primary: #ffffff;
  --primary-fixed: #ffdad6;
  --on-primary-fixed-variant: #93000a;
  --outline-variant: #e6bdb8;
  --inverse-surface: #303031;
  --inverse-on-surface: #f2f0f0;
  --font-headline: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --shadow-ambient: 0 20px 40px rgba(27, 28, 28, 0.06);
  --shadow-soft: 0 2px 8px rgba(0,0,0,0.04);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--on-surface);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-container); }
img { max-width: 100%; height: auto; display: block; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
  z-index: 200;
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1536px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 56px;
  width: auto;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--on-surface);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-list a {
  font-family: var(--font-headline);
  font-size: 0.95rem;
  font-weight: 500;
  color: #666;
  padding-bottom: 4px;
}

.nav-list a:hover, .nav-active { color: var(--primary) !important; }
.nav-active { font-weight: 700; border-bottom: 2px solid var(--primary); }

.header-actions { display: flex; align-items: center; gap: 1rem; }

.btn-ghost {
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  color: #666;
  background: transparent;
  border-radius: var(--radius);
}
.btn-ghost:hover { color: var(--primary); background: rgba(0,0,0,0.03); }

.btn-primary-nav {
  padding: 0.625rem 1.5rem;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(178, 0, 14, 0.2);
}
.btn-primary-nav:hover { background: var(--primary-container); }

/* Container */
.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: 1536px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 5rem 0; }
.section-vision,
.section-focus-areas,
.section-activities,
.section-reports,
.section-cta { padding: 6rem 0; }

main { padding-top: 80px; }

/* Hero */
.hero-stitch {
  position: relative;
  min-height: 921px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--surface) 0%, rgba(251, 249, 248, 0.8) 40%, transparent 100%);
}

.hero-content-stitch {
  position: relative;
  z-index: 10;
  max-width: 1536px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.hero-pill {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: var(--primary-fixed);
  color: var(--on-primary-fixed-variant);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.hero-title-stitch {
  font-family: var(--font-headline);
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--on-surface);
  margin-bottom: 2rem;
}

.hero-title-stitch em { font-style: italic; color: var(--primary); }

.hero-desc {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.65;
  color: var(--on-surface-variant);
  max-width: 36rem;
  margin-bottom: 1rem;
}

.hero-about {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--on-surface-variant);
  max-width: 40rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; }

.btn-primary-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  font-size: 1.125rem;
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(178, 0, 14, 0.2);
  transition: all 0.2s;
}
.btn-primary-hero:hover { background: var(--primary-container); transform: translateY(-2px); }

.btn-secondary-hero {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--surface-container-low);
  color: var(--on-surface);
  font-weight: 700;
  font-size: 1.125rem;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.btn-secondary-hero:hover { background: var(--surface-container-high); }

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(0,0,0,0.4);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  z-index: 10;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

/* Impact Stats */
.section-impact { padding: 5rem 0; }

.impact-section-title {
  font-family: var(--font-headline);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.75rem;
  color: var(--on-surface);
}

.impact-band {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  background: linear-gradient(135deg, rgba(178, 0, 14, 0.04) 0%, rgba(47, 97, 64, 0.04) 100%);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
}

.impact-stat {
  flex: 1 1 auto;
  min-width: 140px;
  text-align: center;
  padding: 0.75rem 1.5rem;
}

.impact-stat-divider {
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.impact-stat:first-child.impact-stat-divider,
.impact-stat-divider:first-child { border-left: none; }

.impact-num {
  display: block;
  font-family: var(--font-headline);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.impact-text {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--on-surface-variant);
  text-transform: none;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.impact-intro {
  margin: 1.75rem auto 0;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--on-surface-variant);
  max-width: 48rem;
  text-align: center;
}

@media (max-width: 900px) {
  .impact-stat-divider { border-left: none; }
  .impact-stat { min-width: calc(33.33% - 1px); padding: 1rem 0.5rem; }
  .impact-stat:nth-child(n+4) { border-top: 1px solid rgba(0, 0, 0, 0.08); }
}

@media (max-width: 600px) {
  .impact-stat { min-width: 100%; padding: 1.25rem 0.5rem; }
  .impact-stat-divider { border-left: none !important; }
  .impact-stat:not(:first-child) { border-top: 1px solid rgba(0, 0, 0, 0.08); }
}

/* Vision & Mission */
.section-vision { background: var(--surface); }

.core-values {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--outline-variant);
}

.core-values-heading {
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--on-surface-variant);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.core-values-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.cv-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.125rem;
  background: rgba(178, 0, 14, 0.07);
  border: 1px solid rgba(178, 0, 14, 0.18);
  color: var(--primary);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}

.cv-tag:hover {
  background: rgba(178, 0, 14, 0.13);
  transform: translateY(-1px);
}

.cv-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}

.vision-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.vision-block { margin-bottom: 4rem; }
.vision-block:last-child { margin-bottom: 0; }

.vision-icon {
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.vision-icon span { font-size: 2rem; }
.vision-icon-primary { background: var(--primary-fixed); color: var(--primary); }
.vision-icon-tertiary { background: #d3ffdb; color: var(--tertiary); }

.vision-heading {
  font-family: var(--font-headline);
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.vision-text {
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--on-surface-variant);
  border-left: 2px solid var(--outline-variant);
  padding-left: 2rem;
}

.vision-images {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  height: 600px;
}

.vision-img-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-ambient);
}

.vision-img-1 { margin-top: 3rem; }
.vision-img-2 { margin-bottom: 3rem; }

.vision-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vision-heart {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8rem;
  height: 8rem;
  background: rgba(255,255,255,0.3);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.vision-heart .material-symbols-outlined { font-size: 3rem; font-variation-settings: 'FILL' 1; }

/* Activities Bento */
.section-activities { background: var(--surface-container-low); }

.section-title-left {
  font-family: var(--font-headline);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.section-desc-left { font-size: 1.125rem; color: var(--on-surface-variant); }
.activities-header { margin-bottom: 2rem; }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.bento-card {
  background: var(--surface-container-lowest);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.3s;
}

.bento-card:hover { box-shadow: var(--shadow-ambient); }

.bento-featured { grid-column: span 8; }
.bento-featured .bento-image { aspect-ratio: 16/9; }
.bento-featured .bento-content { padding: 2rem; }

.bento-square { grid-column: span 4; }
.bento-square .bento-image { aspect-ratio: 1; }
.bento-square .bento-content { padding: 2rem; }

.bento-wide {
  grid-column: span 12;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.bento-wide .bento-image { min-height: 300px; }
.bento-wide-reverse .bento-content-first { order: 2; }
.bento-wide-reverse .bento-image { order: 1; }
.bento-content-first { padding: 2rem; display: flex; flex-direction: column; justify-content: center; }

.bento-image { overflow: hidden; }

.bento-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.bento-card:hover .bento-image img { transform: scale(1.05); }

.bento-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}

.bento-title {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.bento-desc {
  color: var(--on-surface-variant);
  line-height: 1.6;
}

/* Stats Band */
.section-stats-band { padding: 6rem 0; }

.stats-band {
  background: rgba(217, 33, 33, 0.05);
  border-radius: 3rem;
  padding: 4rem 5rem;
  position: relative;
  overflow: hidden;
}

.stats-band-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.stat-divider {
  border-left: 1px solid rgba(230, 189, 184, 0.3);
  border-right: 1px solid rgba(230, 189, 184, 0.3);
}

.stat-big {
  font-family: var(--font-headline);
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--on-surface-variant);
}

.stats-watermark {
  position: absolute;
  bottom: -6rem;
  right: -6rem;
  font-family: var(--font-headline);
  font-size: 20rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.05;
  transform: rotate(12deg);
}

/* Gallery */
.section-gallery-stitch { background: var(--surface-container-low); }

.gallery-header { margin-bottom: 2rem; }

.gallery-editorial {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1.5rem;
  height: 800px;
}

.gallery-main {
  grid-column: span 2;
  grid-row: span 2;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-main:hover img { transform: scale(1.05); }

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
}

.gallery-caption-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 0.5rem;
}

.gallery-caption { font-size: 1.5rem; font-weight: 700; }

.gallery-tile {
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-tile:hover img { transform: scale(1.05); }

.gallery-wide {
  grid-column: span 2;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery-wide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-wide:hover img { transform: scale(1.05); }

/* Focus Areas */
.section-focus-areas { background: var(--surface); }

.focus-header { margin-bottom: 2.5rem; }

.focus-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.focus-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2rem 0;
  border-bottom: 1px solid var(--outline-variant);
}

.focus-item:first-child { padding-top: 0; }

.focus-item:last-child { border-bottom: none; }

.focus-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  border-radius: var(--radius);
}

.focus-item:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
  background: var(--surface-container-lowest);
}

.focus-num {
  font-family: var(--font-headline);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.4;
  line-height: 1;
}

.focus-content h3 {
  font-family: var(--font-headline);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--on-surface);
}

.focus-content p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--on-surface-variant);
}

@media (max-width: 600px) {
  .focus-item { grid-template-columns: 1fr; gap: 0.5rem; padding: 1.5rem 0; }
  .focus-num { font-size: 1.75rem; }
}

/* Projects (for other sections using project-card) */
.section-projects { background: var(--surface); }

.section-header { text-align: center; max-width: 600px; margin: 0 auto 3rem; }

.section-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-title { font-family: var(--font-headline); font-size: 2rem; font-weight: 700; }
.section-desc { margin-top: 1rem; color: var(--on-surface-variant); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.projects-grid-4 {
  grid-template-columns: repeat(2, 1fr);
}


.project-card {
  padding: 2.5rem;
  background: var(--surface-container-lowest);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.project-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-fixed);
  color: var(--primary);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}

.project-icon .material-symbols-outlined {
  font-size: 1.75rem;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.project-card h3 {
  font-family: var(--font-headline);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.project-card p { color: var(--on-surface-variant); line-height: 1.6; }

/* Completed Projects */
.section-completed-projects { background: var(--surface); }

.completed-header { margin-bottom: 2rem; }

.completed-legacy {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  padding: 2rem 0;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--outline-variant);
}

.completed-legacy-item {
  font-size: 1rem;
  color: var(--on-surface-variant);
  text-align: center;
}

.legacy-num {
  display: block;
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.15rem;
}

.completed-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.completed-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface-container-lowest);
  font-size: 0.95rem;
}

.completed-table th,
.completed-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--outline-variant);
}

.completed-table th {
  font-family: var(--font-headline);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  background: var(--surface-container-low);
}

.completed-table tbody tr:hover {
  background: rgba(178, 0, 14, 0.03);
}

.completed-table td:first-child {
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

.completed-table td:nth-child(2) {
  color: var(--tertiary);
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .completed-legacy { flex-direction: column; gap: 1rem; }
  .completed-table th,
  .completed-table td {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }
  .completed-table td:nth-child(4) { max-width: 120px; }
}

/* Governance */
.section-governance { background: var(--surface-container-low); }

.governance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.governance-card {
  padding: 1.75rem;
  background: var(--surface-container-lowest);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.governance-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-ambient);
}

.governance-role {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.governance-name {
  font-family: var(--font-headline);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--on-surface);
}

.governance-bio {
  font-size: 0.9rem;
  color: var(--on-surface-variant);
  line-height: 1.6;
}

.legal-status {
  padding: 2rem;
  background: var(--surface-container-lowest);
  border-radius: var(--radius);
  border-left: 4px solid var(--tertiary);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.legal-status:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-ambient);
}

.legal-heading {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--on-surface);
}

.legal-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.legal-list li {
  font-size: 0.95rem;
  color: var(--on-surface-variant);
  padding: 0.35rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.legal-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--tertiary);
  font-weight: 700;
}

/* Featured Project */
.section-featured-project { background: var(--surface); }

.featured-project-header { margin-bottom: 2.5rem; }

.featured-project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.featured-stat {
  padding: 1.5rem;
  background: var(--surface-container-low);
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.featured-stat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.featured-number {
  display: block;
  font-family: var(--font-headline);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.featured-stat p {
  font-size: 0.9rem;
  color: var(--on-surface-variant);
  line-height: 1.5;
  margin: 0;
}

.featured-outcomes {
  padding: 1.5rem 0;
  border-top: 1px solid var(--outline-variant);
}

.featured-outcomes h4 {
  font-family: var(--font-headline);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--on-surface);
}

.featured-outcomes ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.featured-outcomes li {
  font-size: 0.95rem;
  color: var(--on-surface-variant);
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.6;
}

.featured-outcomes li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* Testimonials */
.section-testimonials { background: var(--surface-container-low); }

.test-intro { margin-bottom: 3rem; }

.test-featured-wrap {
  position: relative;
  background: var(--surface-container-lowest);
  border-radius: var(--radius-xl);
  padding: 3rem 3.5rem 2.5rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-ambient);
  overflow: hidden;
}

.test-big-quote {
  position: absolute;
  top: -0.5rem;
  left: 1.75rem;
  font-family: Georgia, serif;
  font-size: 8rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.12;
  pointer-events: none;
  user-select: none;
}

.test-featured-text {
  font-size: clamp(1.125rem, 2.2vw, 1.4rem);
  line-height: 1.75;
  color: var(--on-surface);
  font-style: italic;
  position: relative;
  z-index: 1;
  margin-bottom: 1.25rem;
}

.test-featured-author {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
}

.test-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.test-card {
  padding: 1.75rem;
  background: var(--surface-container-lowest);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  margin: 0;
  border-top: 3px solid var(--primary);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.test-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-ambient);
}

.test-quote {
  font-size: 0.975rem;
  line-height: 1.75;
  color: var(--on-surface-variant);
  font-style: italic;
  margin-bottom: 1rem;
}

.test-author {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--primary);
  font-style: normal;
  display: block;
}

@media (max-width: 700px) {
  .test-featured-wrap { padding: 2rem 1.75rem 1.75rem; }
  .test-big-quote { font-size: 6rem; }
  .test-grid { grid-template-columns: 1fr; }
}

/* Organizational Strengths */
.section-strengths { background: var(--surface); }

.strengths-header { margin-bottom: 3rem; }

.strengths-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.strength-pillar {
  padding: 2rem 1.5rem;
  background: var(--surface-container-lowest);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border-top: 3px solid var(--primary);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.strength-pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-ambient);
}

.strength-pillar-num {
  font-family: var(--font-headline);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.strength-pillar h4 {
  font-family: var(--font-headline);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--on-surface);
}

.strength-pillar p {
  font-size: 0.9rem;
  color: var(--on-surface-variant);
  line-height: 1.65;
  margin: 0;
}

.partnerships-bar {
  text-align: center;
  font-size: 0.975rem;
  color: var(--on-surface-variant);
  line-height: 1.7;
  max-width: 48rem;
  margin: 0 auto;
  padding: 1.5rem;
  background: var(--surface-container-low);
  border-radius: var(--radius);
}

@media (max-width: 900px) {
  .strengths-pillars { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .strengths-pillars { grid-template-columns: 1fr; }
}

/* Reports */
.section-reports { background: var(--surface-container-low); }

.reports-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.report-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: var(--surface-container-lowest);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}

.report-card:hover {
  box-shadow: var(--shadow-ambient);
  transform: translateY(-2px);
}

.report-year {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.report-title { font-weight: 500; margin-bottom: 1rem; }
.report-download { font-size: 0.9rem; color: var(--primary); margin-top: auto; }

/* Contact / Forms */
.section-contact-forms { background: var(--surface-container-low); }

.forms-intro { margin-bottom: 3rem; }

.forms-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.form-panel {
  background: var(--surface-container-lowest);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-ambient);
}

.form-panel-top {
  padding: 2rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.volunteer-top { background: linear-gradient(135deg, rgba(178,0,14,0.08) 0%, rgba(178,0,14,0.03) 100%); border-bottom: 1px solid rgba(178,0,14,0.12); }
.partner-top   { background: linear-gradient(135deg, rgba(47,97,64,0.08) 0%, rgba(47,97,64,0.03) 100%); border-bottom: 1px solid rgba(47,97,64,0.15); }

.form-panel-icon {
  font-size: 2rem !important;
  font-variation-settings: 'FILL' 1 !important;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.partner-top .form-panel-icon { color: var(--tertiary); }

.form-panel-top h3 {
  font-family: var(--font-headline);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--on-surface);
  margin: 0;
}

.form-panel-top p {
  font-size: 0.9rem;
  color: var(--on-surface-variant);
  margin: 0;
  line-height: 1.5;
}

.msds-form {
  padding: 1.75rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--on-surface);
}

.req { color: var(--primary); }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.625rem 0.875rem;
  border: 1.5px solid var(--outline-variant);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--on-surface);
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #aaa; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(178,0,14,0.1);
}

.form-panel-alt .form-group input:focus,
.form-panel-alt .form-group select:focus,
.form-panel-alt .form-group textarea:focus {
  border-color: var(--tertiary);
  box-shadow: 0 0 0 3px rgba(47,97,64,0.1);
}

.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.875rem center; padding-right: 2.25rem; }

.btn-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: 0.5rem;
  width: 100%;
}

.btn-form-submit .material-symbols-outlined { font-size: 1.1rem; }
.btn-form-submit:hover { background: var(--primary-container); transform: translateY(-1px); }
.btn-form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-form-partner { background: var(--tertiary); }
.btn-form-partner:hover { background: var(--tertiary-container); }

.form-note {
  font-size: 0.78rem;
  color: var(--on-surface-variant);
  text-align: center;
  margin: 0;
  opacity: 0.75;
}

.field-error {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(178,0,14,0.15) !important;
}

@media (max-width: 960px) {
  .forms-two-col { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .msds-form { padding: 1.25rem; }
  .form-panel-top { padding: 1.5rem; }
}

/* Footer */
.footer-stitch {
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1536px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.footer-logo {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 1rem;
}

.footer-about {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-heading {
  font-weight: 700;
  color: #111;
  margin-bottom: 1rem;
}

.footer-col p,
.footer-col a {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
  display: block;
}

.footer-phone {
  white-space: nowrap;
}

.footer-phone a {
  display: inline;
  margin-bottom: 0;
}

.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid #e5e7eb;
  padding: 2rem;
  text-align: center;
}

.footer-bottom p { font-size: 0.875rem; color: #6b7280; }

/* Responsive */
@media (max-width: 1024px) {
  .vision-layout { grid-template-columns: 1fr; }
  .vision-images { height: 400px; }
  .bento-featured { grid-column: span 12; }
  .bento-square { grid-column: span 6; }
  .gallery-editorial { height: auto; }
  .gallery-main { grid-row: span 1; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav, .header-actions { display: none; }
  .header-actions.open { display: flex; }
  .nav.open {
    display: block;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list li { border-bottom: 1px solid #eee; }
  .nav-list a { display: block; padding: 1rem; }

  .impact-grid, .impact-grid-6 { grid-template-columns: 1fr; }
  .projects-grid, .projects-grid-4 { grid-template-columns: 1fr; }
  .bento-square { grid-column: span 12; }
  .bento-wide { grid-template-columns: 1fr; }
  .bento-wide .bento-content-first { order: 1 !important; }
  .bento-wide .bento-image { order: 0 !important; }
  .stats-band-content { grid-template-columns: 1fr; }
  .stat-divider {
    border: none;
    border-top: 1px solid rgba(230, 189, 184, 0.3);
    border-bottom: 1px solid rgba(230, 189, 184, 0.3);
    padding: 2rem 0;
  }
  .gallery-editorial { grid-template-columns: 1fr; grid-template-rows: auto; }
  .gallery-main { grid-column: span 1; }
  .gallery-wide { grid-column: span 1; }
  .governance-grid { grid-template-columns: 1fr; }
  .test-grid { grid-template-columns: 1fr; }
  .featured-project-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .hero-stitch { min-height: 80vh; }
  .hero-title-stitch { font-size: 2rem; }
  .hero-about { font-size: 0.95rem; margin-bottom: 1.5rem; }
  .featured-project-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .reports-grid { grid-template-columns: 1fr; }
}

/* =============================================
   COMPREHENSIVE MOBILE OPTIMISATION
   ============================================= */

@media (max-width: 768px) {
  /* Reduce section vertical padding globally */
  .section { padding: 3.5rem 0; }
  .section-vision,
  .section-focus-areas,
  .section-activities,
  .section-reports,
  .section-contact-forms { padding: 3.5rem 0; }
  .section-stats-band { padding: 3rem 0; }

  /* Container padding */
  .container, .container-wide { padding: 0 1.25rem; }

  /* Header */
  .header-inner { padding: 0 1.25rem; height: 68px; }
  main { padding-top: 68px; }

  /* Hero */
  .hero-content-stitch { padding: 0 1.25rem; }
  .hero-title-stitch { font-size: clamp(1.75rem, 7vw, 2.75rem); margin-bottom: 1.25rem; }
  .hero-desc { font-size: 1rem; margin-bottom: 0.75rem; }
  .hero-about { font-size: 0.9rem; margin-bottom: 1.5rem; }
  .hero-buttons { flex-direction: column; gap: 0.75rem; }
  .btn-primary-hero, .btn-secondary-hero { font-size: 1rem; padding: 0.875rem 1.5rem; width: 100%; justify-content: center; }

  /* Impact stats band */
  .impact-band { padding: 1.5rem 1rem; }
  .impact-stat { min-width: 100%; padding: 0.75rem 0.5rem; }
  .impact-stat-divider { border-left: none; border-top: 1px solid rgba(0,0,0,0.08); }

  /* Stats Band */
  .stats-band { padding: 2.5rem 1.5rem; border-radius: 1.5rem; }
  .stats-band-content { gap: 2rem; }
  .stat-big { font-size: 2.5rem; }

  /* Vision layout */
  .vision-layout { grid-template-columns: 1fr; gap: 2rem; }
  .vision-images { height: 280px; }
  .vision-block { margin-bottom: 2rem; }
  .vision-text { font-size: 1.2rem; padding-left: 1.25rem; }

  /* Focus list */
  .focus-item { padding: 1.5rem 0; gap: 1rem; }
  .focus-num { font-size: 2rem; }

  /* Activities bento */
  .bento-featured, .bento-square { grid-column: span 12; }
  .bento-featured .bento-content, .bento-square .bento-content { padding: 1.25rem; }

  /* Gallery */
  .gallery-editorial { gap: 0.75rem; }

  /* Completed table */
  .completed-legacy { gap: 0.75rem 1.5rem; padding: 1.5rem 0; margin-bottom: 1.5rem; }
  .legacy-num { font-size: 1.25rem; }

  /* Governance */
  .governance-grid { gap: 1rem; }

  /* Featured project */
  .featured-project-grid { gap: 1rem; }
  .featured-stat { padding: 1.25rem; }
  .featured-number { font-size: 1.6rem; }

  /* Testimonials */
  .test-featured-wrap { padding: 1.75rem 1.5rem 1.5rem; }
  .test-big-quote { font-size: 5rem; }
  .test-grid { grid-template-columns: 1fr; gap: 1rem; }
  .test-card { padding: 1.25rem; }

  /* Strengths */
  .strengths-pillars { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .strength-pillar { padding: 1.5rem 1.25rem; }

  /* Annual reports */
  .reports-grid { grid-template-columns: 1fr; gap: 1rem; }
  .report-card { padding: 1.5rem; }

  /* Forms */
  .forms-two-col { gap: 1.5rem; }
  .form-panel-top { padding: 1.5rem; }
  .msds-form { padding: 1.25rem; gap: 0.875rem; }
  .form-row { grid-template-columns: 1fr; }
  .btn-form-submit { padding: 0.875rem 1.25rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 1.25rem; }
  .footer-bottom { padding: 1.25rem; }
}

@media (max-width: 480px) {
  .section { padding: 2.75rem 0; }
  .section-vision, .section-focus-areas, .section-activities, .section-reports, .section-contact-forms { padding: 2.75rem 0; }
  .hero-pill { font-size: 0.75rem; margin-bottom: 1rem; }
  .strengths-pillars { grid-template-columns: 1fr; }
  .completed-table th, .completed-table td { padding: 0.625rem 0.75rem; font-size: 0.8rem; }
  .section-title-left { font-size: 1.6rem; }
  .cta-title { font-size: 1.75rem; }
}
