:root {
  --foundation-saffron: #8c4b16;
  --foundation-gold: #d4a64f;
  --foundation-cream: #f7f1e4;
  --foundation-ink: #1f1b17;
  --foundation-muted: #65594e;
  --foundation-green: #556b2f;
  --foundation-border: #dfd2bb;
}

body.foundation-page {
  margin: 0;
  color: var(--foundation-ink);
  background: linear-gradient(180deg, #fbf7ef 0%, #fffdf8 100%);
  font-family: Georgia, "Times New Roman", "Noto Serif Devanagari", serif;
  overflow-x: hidden;
}

.foundation-page a {
  color: var(--foundation-saffron);
}

.foundation-page img,
.foundation-page iframe {
  max-width: 100%;
  height: auto;
}

.foundation-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(140, 75, 22, 0.12);
  background: rgba(255, 252, 246, 0.96);
  backdrop-filter: blur(12px);
}

.foundation-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

.foundation-brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
}

.foundation-brand strong {
  color: var(--foundation-saffron);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.foundation-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
}

.foundation-nav a {
  color: var(--foundation-ink);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.foundation-nav a:hover,
.foundation-nav a.is-active {
  color: var(--foundation-saffron);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 74px;
  background:
    linear-gradient(135deg, rgba(84, 49, 20, 0.92), rgba(117, 61, 18, 0.84)),
    url("../img/subheader.jpg") center/cover no-repeat;
  color: #fff8ef;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 90px;
  background: linear-gradient(180deg, rgba(247, 241, 228, 0), rgba(247, 241, 228, 1));
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 248, 239, 0.3);
  border-radius: 999px;
  color: #ffe6bf;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-hero h1 {
  max-width: 880px;
  margin-bottom: 16px;
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.08;
}

.page-hero p {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 248, 239, 0.92);
  font-size: 1.08rem;
  line-height: 1.8;
}

.foundation-main {
  padding: 52px 0 70px;
}

.section-card {
  margin-bottom: 28px;
  padding: 34px;
  border: 1px solid var(--foundation-border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 42px rgba(79, 51, 23, 0.06);
}

.section-card h2,
.section-card h3 {
  color: var(--foundation-saffron);
}

.section-card p:last-child,
.section-card ul:last-child {
  margin-bottom: 0;
}

.lead-note {
  color: var(--foundation-muted);
  font-size: 1.04rem;
  line-height: 1.8;
}

.language-grid,
.card-grid,
.metric-grid {
  display: grid;
  gap: 20px;
}

.language-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.language-block,
.info-card,
.metric-card {
  height: 100%;
  padding: 24px;
  border-radius: 20px;
  background: var(--foundation-cream);
  border: 1px solid rgba(140, 75, 22, 0.12);
}

.language-block h3,
.info-card h3,
.metric-card h3 {
  margin-bottom: 14px;
  color: var(--foundation-saffron);
  font-size: 1.25rem;
}

.info-card p,
.metric-card p,
.language-block p,
.language-block li,
.info-card li {
  color: var(--foundation-muted);
}

.foundation-list {
  margin: 0;
  padding-left: 18px;
}

.foundation-list li + li {
  margin-top: 10px;
}

.metric-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--foundation-green);
  font-size: 2rem;
  line-height: 1;
}

.cta-panel {
  padding: 30px 32px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--foundation-saffron), #a66621);
  color: #fff8ef;
}

.cta-panel h3 {
  color: #fff;
}

.cta-panel p {
  color: rgba(255, 248, 239, 0.9);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.foundation-btn,
.foundation-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.foundation-btn {
  background: #fff7ea;
  color: var(--foundation-saffron);
}

.foundation-btn-outline {
  border: 1px solid rgba(255, 248, 239, 0.45);
  color: #fff;
}

.foundation-page a.foundation-btn {
  color: var(--foundation-saffron);
}

.foundation-page a.foundation-btn-outline {
  color: #fff;
}

.foundation-page a.foundation-btn:hover,
.foundation-page a.foundation-btn:focus,
.foundation-page a.foundation-btn-outline:hover,
.foundation-page a.foundation-btn-outline:focus {
  color: inherit;
  text-decoration: none;
}

.foundation-footer {
  padding: 28px 0 40px;
  border-top: 1px solid rgba(140, 75, 22, 0.12);
  background: #fffaf1;
}

.foundation-footer p {
  margin: 0;
  color: var(--foundation-muted);
  text-align: center;
}

@media (max-width: 767px) {
  .page-hero {
    padding: 78px 0 60px;
  }

  .section-card {
    padding: 24px;
    border-radius: 18px;
  }

  .foundation-header-inner {
    align-items: flex-start;
  }
}

@media (max-width: 991px) {
  .foundation-header {
    position: static;
  }

  .foundation-header-inner {
    display: block;
    padding: 14px 0;
  }

  .foundation-brand {
    margin-bottom: 14px;
  }

  .foundation-brand strong {
    font-size: 1rem;
    line-height: 1.35;
  }

  .foundation-brand span {
    font-size: 0.88rem;
  }

  .foundation-nav {
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .foundation-nav a {
    flex: 0 0 auto;
    padding: 10px 14px;
    border: 1px solid rgba(140, 75, 22, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    white-space: nowrap;
    line-height: 1.2;
  }

  .foundation-main {
    padding: 36px 0 52px;
  }

  .page-hero::after {
    height: 64px;
  }

  .page-hero h1 {
    font-size: clamp(2rem, 7vw, 3rem);
    line-height: 1.15;
  }

  .page-hero p,
  .lead-note {
    font-size: 1rem;
    line-height: 1.7;
  }

  .section-card,
  .language-block,
  .info-card,
  .metric-card,
  .cta-panel {
    overflow-wrap: break-word;
  }

  .cta-panel {
    padding: 26px 24px;
  }

  .cta-actions {
    flex-direction: column;
  }

  .foundation-btn,
  .foundation-btn-outline {
    width: 100%;
    min-height: 48px;
  }
}

@media (max-width: 575px) {
  .page-hero {
    padding: 62px 0 48px;
  }

  .eyebrow {
    padding: 7px 12px;
    font-size: 0.74rem;
    letter-spacing: 0.06em;
  }

  .page-hero h1 {
    margin-bottom: 14px;
  }

  .page-hero p {
    font-size: 0.98rem;
  }

  .foundation-main {
    padding: 28px 0 46px;
  }

  .section-card {
    margin-bottom: 20px;
    padding: 20px;
  }

  .section-card h2 {
    font-size: 1.55rem;
    line-height: 1.25;
  }

  .section-card h3,
  .language-block h3,
  .info-card h3,
  .metric-card h3 {
    font-size: 1.1rem;
    line-height: 1.35;
  }

  .language-grid,
  .card-grid,
  .metric-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .language-block,
  .info-card,
  .metric-card {
    padding: 18px;
    border-radius: 16px;
  }

  .metric-card strong {
    font-size: 1.65rem;
  }

  .cta-panel {
    padding: 22px 20px;
    border-radius: 18px;
  }
}
