@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=IBM+Plex+Sans:wght@300;400;500;600&display=swap');

:root {
  --color-primary: #5B2C6F;
  --color-secondary: #8E44AD;
  --color-accent: #F39C12;
  --color-background: #FAF5FF;
  --color-surface: #FFFFFF;
  --color-text: #2C1A3D;
  --color-text-light: #7B6B8A;
  --color-border: #E0D0EE;
  --hero-overlay: linear-gradient(140deg, rgba(91,44,111,0.87), rgba(142,68,173,0.5));
  --container: min(1180px, calc(100% - 2rem));
  --header-height: 92px;
  --border-heavy: 3px solid var(--color-text);
  --border-section: 4px solid var(--color-text);
  --outline-double: 3px solid var(--color-accent);
  --font-heading: 'Sora', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Sans', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-radius: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: var(--border-heavy);
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.2em;
}

a:hover,
a:focus-visible {
  background: var(--color-accent);
  color: var(--color-text);
}

p,
li {
  color: var(--color-text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.75rem;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
}

small,
.eyebrow,
.meta,
.caption,
.label,
.stat-label,
.form-note,
.language-label,
.card-kicker,
.badge,
.nav-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-shell {
  min-height: 100vh;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  position: relative;
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
  border-top: var(--border-section);
}

.section:last-of-type {
  border-bottom: var(--border-section);
}

.section-header {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-header p {
  max-width: 65ch;
  color: var(--color-text-light);
  font-size: 1.05rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-primary);
  color: var(--color-surface);
  border-bottom: var(--border-heavy);
}

.site-nav {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: var(--container);
  margin: 0 auto;
  padding: 1rem 0;
}

.brand {
  display: inline-grid;
  gap: 0.25rem;
  color: var(--color-surface);
  text-decoration: none;
}

.brand:hover,
.brand:focus-visible {
  background: transparent;
  color: var(--color-accent);
}

.brand-mark {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-meta {
  color: rgba(255, 255, 255, 0.76);
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.nav-links a,
.nav-actions a,
.nav-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1rem;
  border: 3px solid var(--color-surface);
  background: transparent;
  color: var(--color-surface);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-actions a:hover,
.nav-actions a:focus-visible,
.nav-actions button:hover,
.nav-actions button:focus-visible {
  background: var(--color-surface);
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 3px solid var(--color-surface);
  background: transparent;
  color: var(--color-surface);
  cursor: pointer;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: var(--color-surface);
  color: var(--color-primary);
}

.nav-toggle-line {
  position: relative;
  width: 24px;
  height: 3px;
  background: currentColor;
}

.nav-toggle-line::before,
.nav-toggle-line::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 3px;
  background: currentColor;
}

.nav-toggle-line::before {
  top: -8px;
}

.nav-toggle-line::after {
  top: 8px;
}

.nav-toggle[aria-expanded='true'] .nav-toggle-line {
  background: transparent;
}

.nav-toggle[aria-expanded='true'] .nav-toggle-line::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded='true'] .nav-toggle-line::after {
  top: 0;
  transform: rotate(-45deg);
}

.hero,
.page-hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: grid;
  align-items: end;
  overflow: hidden;
  background-color: var(--color-primary);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-bottom: var(--border-section);
}

.hero::before,
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}

.hero > *,
.page-hero > * {
  position: relative;
  z-index: 1;
}

.hero-home {
  background-image: var(--hero-overlay), url('images/hero-1.jpg');
}

.hero-about {
  background-image: var(--hero-overlay), url('images/hero-2.jpg');
}

.hero-programs {
  background-image: var(--hero-overlay), url('images/hero-3.jpg');
}

.hero-team {
  background-image: var(--hero-overlay), url('images/scene-2.jpg');
}

.hero-contact {
  background-image: var(--hero-overlay), url('images/community-4.jpg');
}

.hero-inner {
  width: var(--container);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 8rem) 0;
  display: grid;
  gap: 1.5rem;
}

.hero-panel {
  max-width: 760px;
  padding: clamp(1.5rem, 2vw, 2rem);
  background: rgba(250, 245, 255, 0.92);
  border: var(--border-heavy);
  outline: var(--outline-double);
  outline-offset: 0.4rem;
}

.hero-panel h1,
.hero-panel h2,
.hero-panel p {
  color: var(--color-text);
}

.hero-copy {
  max-width: 64ch;
  font-size: 1.1rem;
}

.hero-actions,
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn,
button,
input[type='submit'],
input[type='button'],
.button,
.cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 54px;
  padding: 0.9rem 1.2rem;
  border: 3px solid var(--color-text);
  background: var(--color-primary);
  color: var(--color-surface);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
}

.btn:hover,
.btn:focus-visible,
button:hover,
button:focus-visible,
input[type='submit']:hover,
input[type='submit']:focus-visible,
input[type='button']:hover,
input[type='button']:focus-visible,
.button:hover,
.button:focus-visible,
.cta-link:hover,
.cta-link:focus-visible {
  background: var(--color-text);
  color: var(--color-surface);
}

.btn-accent,
.cta-link,
.button-accent {
  background: var(--color-accent);
  color: var(--color-text);
  outline: var(--outline-double);
  outline-offset: 0.28rem;
}

.btn-accent:hover,
.btn-accent:focus-visible,
.button-accent:hover,
.button-accent:focus-visible {
  background: var(--color-text);
  color: var(--color-accent);
}

.btn-secondary,
.button-secondary {
  background: var(--color-surface);
  color: var(--color-primary);
}

.btn-secondary:hover,
.btn-secondary:focus-visible,
.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--color-primary);
  color: var(--color-surface);
}

.grid,
.card-grid,
.stats-grid,
.team-grid,
.gallery-grid,
.program-grid,
.contact-grid,
.footer-grid {
  display: grid;
  gap: 1.25rem;
}

.card-grid,
.program-grid {
  grid-template-columns: repeat(12, 1fr);
}

.card,
.content-card,
.program-card,
.contact-card,
.team-card,
.stat-card,
.quote-card,
.cta-panel,
.detail-panel {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--color-surface);
  border: var(--border-heavy);
}

.card,
.content-card,
.stat-card,
.quote-card,
.detail-panel {
  outline: 3px solid transparent;
  outline-offset: 0.35rem;
}

.card:hover,
.card:focus-within,
.content-card:hover,
.content-card:focus-within,
.stat-card:hover,
.stat-card:focus-within,
.quote-card:hover,
.quote-card:focus-within,
.detail-panel:hover,
.detail-panel:focus-within {
  background: var(--color-text);
  color: var(--color-surface);
  outline-color: var(--color-accent);
}

.card:hover h3,
.card:hover p,
.content-card:hover h3,
.content-card:hover p,
.stat-card:hover h3,
.stat-card:hover p,
.quote-card:hover h3,
.quote-card:hover p,
.detail-panel:hover h3,
.detail-panel:hover p {
  color: var(--color-surface);
}

.card-media,
.program-media,
.team-photo,
.feature-image,
.inline-photo,
.split-media img {
  width: 100%;
  min-height: 240px;
  object-fit: cover;
}

.card-span-4,
.program-card {
  grid-column: span 4;
}

.card-span-6 {
  grid-column: span 6;
}

.card-span-8 {
  grid-column: span 8;
}

.split-layout,
.about-grid,
.contact-grid,
.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.stack {
  display: grid;
  gap: 1rem;
}

.highlight-strip,
.impact-banner,
.cta-band {
  padding: 1.25rem;
  background: var(--color-accent);
  color: var(--color-text);
  border-top: var(--border-section);
  border-bottom: var(--border-section);
}

.highlight-strip h2,
.impact-banner h2,
.cta-band h2,
.highlight-strip p,
.impact-banner p,
.cta-band p {
  color: var(--color-text);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card strong,
.metric-number {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
  color: var(--color-primary);
}

.image-wall,
.program-showcase,
.mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.mosaic > *:nth-child(1),
.mosaic > *:nth-child(4) {
  grid-column: span 7;
}

.mosaic > *:nth-child(2),
.mosaic > *:nth-child(3),
.mosaic > *:nth-child(5),
.mosaic > *:nth-child(6) {
  grid-column: span 5;
}

.mosaic img,
.image-wall img,
.program-showcase img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.home-programs .program-card:nth-child(1) .program-media,
.program-card.program-1 .program-media,
.program-card.program-1 img {
  content: url('images/community-1.jpg');
}

.home-programs .program-card:nth-child(2) .program-media,
.program-card.program-2 .program-media,
.program-card.program-2 img {
  content: url('images/community-2.jpg');
}

.home-programs .program-card:nth-child(3) .program-media,
.program-card.program-3 .program-media,
.program-card.program-3 img {
  content: url('images/scene-1.jpg');
}

.home-programs .program-card:nth-child(4) .program-media,
.program-card.program-4 .program-media,
.program-card.program-4 img {
  content: url('images/scene-3.jpg');
}

.home-gallery,
.about-gallery,
.contact-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-gallery .gallery-item:nth-child(1),
.home-gallery .gallery-item:nth-child(1) img {
  content: url('images/hero-2.jpg');
}

.home-gallery .gallery-item:nth-child(2),
.home-gallery .gallery-item:nth-child(2) img {
  content: url('images/community-3.jpg');
}

.home-gallery .gallery-item:nth-child(3),
.home-gallery .gallery-item:nth-child(3) img {
  content: url('images/scene-2.jpg');
}

.home-gallery .gallery-item:nth-child(4),
.home-gallery .gallery-item:nth-child(4) img {
  content: url('images/community-4.jpg');
}

.home-gallery .gallery-item:nth-child(5),
.home-gallery .gallery-item:nth-child(5) img {
  content: url('images/hero-3.jpg');
}

.home-gallery .gallery-item:nth-child(6),
.home-gallery .gallery-item:nth-child(6) img {
  content: url('images/community-1.jpg');
}

.about-gallery .gallery-item:nth-child(1),
.about-gallery .gallery-item:nth-child(1) img {
  content: url('images/scene-1.jpg');
}

.about-gallery .gallery-item:nth-child(2),
.about-gallery .gallery-item:nth-child(2) img {
  content: url('images/hero-2.jpg');
}

.about-gallery .gallery-item:nth-child(3),
.about-gallery .gallery-item:nth-child(3) img {
  content: url('images/scene-3.jpg');
}

.contact-gallery .gallery-item:nth-child(1),
.contact-gallery .gallery-item:nth-child(1) img {
  content: url('images/community-4.jpg');
}

.gallery-item,
.media-panel,
.scene-block {
  min-height: 260px;
  border: var(--border-heavy);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.scene-block.scene-1 {
  background-image: url('images/scene-1.jpg');
}

.scene-block.scene-2 {
  background-image: url('images/scene-2.jpg');
}

.scene-block.scene-3 {
  background-image: url('images/scene-3.jpg');
}

.community-block.community-1 {
  background-image: url('images/community-1.jpg');
}

.community-block.community-2 {
  background-image: url('images/community-2.jpg');
}

.community-block.community-3 {
  background-image: url('images/community-3.jpg');
}

.community-block.community-4 {
  background-image: url('images/community-4.jpg');
}

.team-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.team-card {
  padding: 0;
  overflow: hidden;
}

.team-photo {
  min-height: 320px;
}

.team-photo-1,
.team-card:nth-child(1) .team-photo {
  background: url('images/portrait-1.jpg') center / cover no-repeat;
}

.team-photo-2,
.team-card:nth-child(2) .team-photo {
  background: url('images/portrait-2.jpg') center / cover no-repeat;
}

.team-photo-3,
.team-card:nth-child(3) .team-photo {
  background: url('images/portrait-3.jpg') center / cover no-repeat;
}

.team-photo-4,
.team-card:nth-child(4) .team-photo {
  background: url('images/portrait-4.jpg') center / cover no-repeat;
}

.team-photo-5,
.team-card:nth-child(5) .team-photo {
  background: url('images/portrait-5.jpg') center / cover no-repeat;
}

.team-photo-6,
.team-card:nth-child(6) .team-photo {
  background: url('images/portrait-6.jpg') center / cover no-repeat;
}

.team-photo-7,
.team-card:nth-child(7) .team-photo {
  background: url('images/portrait-7.jpg') center / cover no-repeat;
}

.team-photo-8,
.team-card:nth-child(8) .team-photo {
  background: url('images/portrait-8.jpg') center / cover no-repeat;
}

.team-body {
  display: grid;
  gap: 0.4rem;
  padding: 1.1rem;
}

.team-role,
.team-card p {
  color: var(--color-text-light);
}

.team-card:hover .team-body,
.team-card:focus-within .team-body {
  background: var(--color-text);
}

.team-card:hover h3,
.team-card:hover p,
.team-card:focus-within h3,
.team-card:focus-within p {
  color: var(--color-surface);
}

.form-shell,
form {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.4rem;
  color: var(--color-primary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 3px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  appearance: none;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: var(--outline-double);
  outline-offset: 0.2rem;
  border-color: var(--color-text);
}

textarea {
  min-height: 180px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.site-footer {
  background: var(--color-text);
  color: var(--color-surface);
  border-top: var(--border-section);
}

.site-footer a {
  color: var(--color-accent);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--color-text);
  background: var(--color-accent);
}

.footer-grid {
  grid-template-columns: 1.5fr 1fr 1fr;
  width: var(--container);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.footer-block {
  display: grid;
  gap: 0.75rem;
}

.footer-block p,
.footer-block li,
.footer-block h3 {
  color: var(--color-surface);
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.footer-bottom {
  border-top: 3px solid rgba(255, 255, 255, 0.24);
  width: var(--container);
  margin: 0 auto;
  padding: 1rem 0 1.8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

.lang-toggle,
[data-language-toggle] {
  min-width: 124px;
}

[data-lang] {
  display: none;
}

html[data-language='native'] [data-lang='native'],
html[data-language='en'] [data-lang='en'] {
  display: initial;
}

html[data-language='native'] [data-lang-block='native'],
html[data-language='en'] [data-lang-block='en'] {
  display: block;
}

.fade-in {
  opacity: 0;
  transform: translateY(32px);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.divider {
  width: 100%;
  height: 4px;
  margin: 0;
  border: 0;
  background: var(--color-text);
}

@media (max-width: 1080px) {
  .team-grid,
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid,
  .split-layout,
  .about-grid,
  .contact-grid,
  .two-column {
    grid-template-columns: 1fr;
  }

  .card-span-4,
  .program-card,
  .card-span-6,
  .card-span-8 {
    grid-column: span 6;
  }
}

@media (max-width: 820px) {
  .site-nav {
    position: relative;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 3px);
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-primary);
    border: var(--border-heavy);
  }

  .nav-panel.is-open {
    display: flex;
  }

  .nav-links,
  .nav-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links a,
  .nav-actions a,
  .nav-actions button {
    width: 100%;
  }

  .card-span-4,
  .program-card,
  .card-span-6,
  .card-span-8 {
    grid-column: span 12;
  }

  .home-gallery,
  .about-gallery,
  .contact-gallery,
  .team-grid,
  .metrics,
  .form-row {
    grid-template-columns: 1fr;
  }

  .mosaic > *,
  .image-wall > * {
    grid-column: span 12;
  }

  .hero,
  .page-hero {
    min-height: auto;
  }

  .hero-panel {
    outline-offset: 0.25rem;
  }
}

@media (max-width: 560px) {
  :root {
    --header-height: 82px;
  }

  .container,
  .site-nav,
  .hero-inner,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 1rem, 100%);
  }

  .hero-inner {
    padding: 3rem 0;
  }

  .hero-panel,
  .card,
  .content-card,
  .program-card,
  .contact-card,
  .team-card,
  .stat-card,
  .quote-card,
  .cta-panel,
  .detail-panel {
    padding: 1rem;
  }
}
