:root {
  --bg: #f7f4ec;
  --bg-soft: #fffdf8;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --text: #17324d;
  --muted: #52667b;
  --primary: #0f766e;
  --primary-dark: #115e59;
  --secondary: #ef7d32;
  --secondary-soft: #fde7d6;
  --accent: #f2c14e;
  --border: rgba(23, 50, 77, 0.1);
  --shadow: 0 20px 45px rgba(15, 41, 68, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(239, 125, 50, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.14), transparent 30%),
    linear-gradient(180deg, #fffdf8 0%, #f7f4ec 100%);
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--primary);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(247, 244, 236, 0.84);
  border-bottom: 1px solid var(--border);
}

.nav-shell,
.section-shell,
.footer-shell {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  width: 52px;
  height: 52px;
}

.brand-text strong {
  display: block;
  font-size: 1rem;
  line-height: 1.1;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.92rem;
}

.desktop-nav ul,
.mobile-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.desktop-nav ul {
  display: flex;
  gap: 1.15rem;
  align-items: center;
}

.desktop-nav a,
.mobile-panel a {
  color: var(--muted);
  font-weight: 600;
}

.desktop-nav a[aria-current="page"],
.mobile-panel a[aria-current="page"] {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.lang-toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  padding: 0.2rem;
  border-radius: 999px;
}

.lang-toggle button,
.menu-button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.lang-toggle button {
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
}

.lang-toggle button[aria-pressed="true"] {
  background: var(--primary);
  color: white;
}

.menu-button {
  display: none;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--border);
}

.mobile-panel[data-open="true"] {
  display: block;
}

.mobile-panel .section-shell {
  padding: 1rem 0 1.5rem;
}

.mobile-panel ul {
  display: grid;
  gap: 1rem;
}

.button,
.text-link {
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  border: 0;
  font-weight: 700;
  cursor: pointer;
}

.button-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 14px 24px rgba(15, 118, 110, 0.22);
}

.button-secondary {
  background: var(--secondary-soft);
  color: var(--text);
}

.button:hover,
.text-link:hover {
  transform: translateY(-1px);
}

.hero {
  padding: 4.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--primary-dark);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

h1,
h2,
h3 {
  margin: 0 0 0.8rem;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  max-width: 11ch;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
}

h3 {
  font-size: 1.28rem;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy p {
  max-width: 60ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.hero-visual {
  position: relative;
  min-height: 430px;
}

.visual-card {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.95), rgba(12, 80, 102, 0.95)),
    linear-gradient(45deg, rgba(242, 193, 78, 0.22), rgba(239, 125, 50, 0.12));
  overflow: hidden;
  box-shadow: var(--shadow);
}

.visual-card::before,
.visual-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.visual-card::before {
  width: 280px;
  height: 280px;
  background: rgba(242, 193, 78, 0.18);
  top: -70px;
  right: -40px;
}

.visual-card::after {
  width: 240px;
  height: 240px;
  background: rgba(255, 255, 255, 0.08);
  bottom: -90px;
  left: -70px;
}

.path-lines {
  position: absolute;
  inset: 0;
}

.path-lines span {
  position: absolute;
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
}

.path-lines span:nth-child(1) {
  width: 120%;
  height: 80%;
  left: -8%;
  top: 16%;
}

.path-lines span:nth-child(2) {
  width: 94%;
  height: 60%;
  left: 2%;
  top: 28%;
}

.path-lines span:nth-child(3) {
  width: 70%;
  height: 40%;
  left: 12%;
  top: 40%;
}

.visual-content {
  position: absolute;
  inset: auto 1.5rem 1.5rem 1.5rem;
  display: grid;
  gap: 1rem;
}

.floating-note,
.floating-badge {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  padding: 1rem 1.1rem;
  max-width: 280px;
}

.floating-badge {
  margin-left: auto;
}

.floating-note strong,
.floating-badge strong {
  display: block;
  margin-bottom: 0.35rem;
}

.floating-note p,
.floating-badge p {
  margin: 0;
  color: var(--text);
}

.section-shell {
  padding: 1.25rem 0 4.5rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.section-header p {
  max-width: 52ch;
}

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

.panel,
.program-card,
.event-card,
.resource-card,
.detail-card,
.form-card,
.stat-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
  border-radius: var(--radius-md);
  backdrop-filter: blur(14px);
}

.panel,
.detail-card,
.form-card {
  padding: 1.7rem;
}

.stat-grid,
.program-grid,
.event-grid,
.resource-grid,
.detail-grid {
  display: grid;
  gap: 1.25rem;
}

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

.program-grid,
.resource-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

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

.stat-card,
.program-card,
.event-card,
.resource-card {
  padding: 1.5rem;
}

.program-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.16), rgba(239, 125, 50, 0.14));
  position: relative;
}

.program-icon::before,
.program-icon::after {
  content: "";
  position: absolute;
}

.program-icon.path::before {
  inset: 15px 13px;
  border-left: 4px solid var(--primary);
  border-bottom: 4px solid var(--secondary);
  border-radius: 0 0 0 14px;
  transform: rotate(-35deg);
}

.program-icon.spark::before {
  width: 22px;
  height: 22px;
  background: var(--accent);
  inset: 15px;
  clip-path: polygon(50% 0%, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0% 50%, 38% 38%);
}

.program-icon.bridge::before {
  inset: auto 9px 12px;
  height: 18px;
  border: 4px solid var(--primary);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  border-bottom: 0;
}

.program-icon.bridge::after {
  inset: 14px 23px auto;
  width: 6px;
  height: 24px;
  background: var(--secondary);
}

.program-icon.circle::before {
  inset: 13px;
  border-radius: 50%;
  border: 4px dashed var(--primary);
}

ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  line-height: 1.7;
}

li + li {
  margin-top: 0.45rem;
}

.impact-strip {
  background: linear-gradient(135deg, #17324d, #0f766e);
  color: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.impact-strip p,
.impact-strip li {
  color: rgba(255, 255, 255, 0.86);
}

.impact-strip .button-secondary {
  background: white;
}

dl {
  margin: 1rem 0;
  display: grid;
  gap: 0.9rem;
}

dt {
  font-weight: 800;
  color: var(--text);
}

dd {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.event-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--primary-dark);
  font-weight: 700;
}

.text-link {
  color: var(--primary);
  font-weight: 800;
}

.split-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(239, 125, 50, 0.16), rgba(15, 118, 110, 0.12));
  border: 1px solid var(--border);
}

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

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

label {
  display: grid;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--text);
}

input,
select,
textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(23, 50, 77, 0.16);
  background: rgba(255, 255, 255, 0.95);
  padding: 0.95rem 1rem;
  color: var(--text);
}

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

input:focus,
select:focus,
textarea:focus,
.button:focus,
.text-link:focus,
.desktop-nav a:focus,
.mobile-panel a:focus,
.menu-button:focus,
.lang-toggle button:focus {
  outline: 3px solid rgba(15, 118, 110, 0.22);
  outline-offset: 3px;
}

.feedback {
  min-height: 1.5rem;
  color: var(--primary-dark);
  font-weight: 700;
}

.footer-shell {
  padding: 2rem 0 3rem;
}

.footer-card {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.6rem;
  border-radius: 24px;
  background: rgba(23, 50, 77, 0.96);
  color: white;
}

.footer-card p {
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

.footer-card small {
  color: rgba(255, 255, 255, 0.58);
}

@media (max-width: 980px) {
  .desktop-nav,
  .nav-actions .button {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .hero-grid,
  .two-column,
  .program-grid,
  .resource-grid,
  .detail-grid,
  .event-grid,
  .stat-grid,
  .split-banner,
  .field-row,
  .footer-card {
    grid-template-columns: 1fr;
  }

  .section-header,
  .footer-card {
    align-items: start;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-visual {
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .nav-shell,
  .section-shell,
  .footer-shell {
    width: min(calc(100% - 1.15rem), var(--max));
  }

  h1 {
    font-size: clamp(2.4rem, 13vw, 3.3rem);
  }

  .panel,
  .detail-card,
  .form-card,
  .program-card,
  .resource-card,
  .event-card,
  .stat-card,
  .impact-strip,
  .split-banner {
    padding: 1.3rem;
  }

  .lang-toggle button {
    padding-inline: 0.7rem;
  }
}
