/*
Theme Name: CCTC Nonprofit Website
Theme URI: https://www.thecctc.org
Author: Cornerstone Technology Center
Description: A warm, professional nonprofit website theme for Cornerstone Technology Center.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: cctc-nonprofit
*/

:root {
  --ink: #16212a;
  --muted: #5f6f7a;
  --teal: #0f766e;
  --teal-dark: #0b5954;
  --blue: #1e4f7a;
  --gold: #d78a2d;
  --cream: #fbf7ef;
  --paper: #ffffff;
  --line: #dce7e6;
  --shadow: 0 22px 60px rgba(22, 33, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(15, 118, 110, 0.16);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 240px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: white;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.96rem;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 24px);
  color: #31434f;
  font-size: 0.92rem;
  font-weight: 600;
}

.main-nav a {
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--teal);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.header-cta {
  background: var(--gold);
  color: #201407;
  white-space: nowrap;
}

.button:hover,
.header-cta:hover,
.quick-actions a:hover {
  transform: translateY(-2px);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 78px));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: white;
}

.hero-media,
.hero-media img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

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

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 34, 39, 0.9), rgba(7, 34, 39, 0.62) 45%, rgba(7, 34, 39, 0.22)),
    linear-gradient(0deg, rgba(7, 34, 39, 0.52), rgba(7, 34, 39, 0));
}

.hero-content {
  position: relative;
  width: min(820px, 100%);
  padding: clamp(72px, 12vw, 132px) clamp(20px, 6vw, 72px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button-primary {
  background: var(--gold);
  color: #201407;
  box-shadow: 0 16px 30px rgba(215, 138, 45, 0.28);
}

.button-light {
  background: white;
  color: var(--teal-dark);
}

.button-ghost {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: white;
}

.button-secondary {
  background: var(--teal);
  color: white;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(1120px, calc(100% - 40px));
  margin: -48px auto 0;
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.quick-actions a {
  min-height: 132px;
  padding: 28px;
  background: var(--paper);
  text-decoration: none;
  transition: transform 160ms ease;
}

.quick-actions span,
.program-detail-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quick-actions strong {
  display: block;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.25;
}

.intro-section,
.programs-section,
.split-section,
.impact-band,
.final-cta,
.page-hero,
.content-split,
.values-grid,
.program-detail-grid,
.impact-story-grid,
.contact-panel {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.intro-section,
.content-split,
.impact-band,
.contact-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 6vw, 80px);
}

.intro-section {
  padding: 104px 0 70px;
}

.programs-section {
  padding: 70px 0 88px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.program-grid,
.values-grid,
.impact-story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.program-grid article,
.values-grid article,
.impact-story-grid article,
.program-detail-grid article,
.cert-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.program-grid h3,
.values-grid h3,
.impact-story-grid h2,
.program-detail-grid h2 {
  margin-bottom: 10px;
  line-height: 1.25;
}

.program-grid p,
.values-grid p,
.impact-story-grid p,
.program-detail-grid p,
.cert-card p,
.copy-stack p,
.process-list p,
.contact-panel p,
.intro-section p:last-child,
.split-section p,
.final-cta p {
  margin-bottom: 0;
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: stretch;
  padding: 56px;
  border-radius: 8px;
  background: #e8f4f2;
}

.cert-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: white;
  box-shadow: 0 20px 45px rgba(15, 118, 110, 0.12);
}

.stat {
  color: var(--teal);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
}

.impact-band {
  padding: 92px 0;
}

.impact-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.impact-points p {
  min-height: 104px;
  margin: 0;
  padding: 22px;
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  background: white;
  color: #30424f;
  font-weight: 700;
}

.final-cta {
  margin-bottom: 72px;
  padding: clamp(36px, 8vw, 70px);
  border-radius: 8px;
  background: var(--ink);
  color: white;
}

.final-cta p,
.contact-panel p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.76);
}

.final-cta a:not(.button),
.contact-panel a:not(.button) {
  color: white;
  font-weight: 800;
}

.page-hero {
  padding: clamp(72px, 10vw, 118px) 0 clamp(44px, 7vw, 76px);
}

.page-hero h1 {
  max-width: 930px;
  color: var(--ink);
  font-size: clamp(2.6rem, 6vw, 5.2rem);
}

.page-hero p:not(.section-kicker) {
  max-width: 780px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.page-hero .button {
  margin-top: 16px;
}

.content-split {
  padding: 34px 0 78px;
}

.copy-stack,
.process-list,
.contact-actions {
  display: grid;
  gap: 14px;
}

.values-grid,
.impact-story-grid,
.program-detail-grid {
  padding-bottom: 84px;
}

.program-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.program-detail-grid.compact {
  grid-template-columns: repeat(4, 1fr);
}

.process-list article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.process-list span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #e8f4f2;
  color: var(--teal-dark);
  font-weight: 800;
}

.contact-panel {
  align-items: center;
  margin-bottom: 82px;
  padding: clamp(30px, 6vw, 56px);
  border-radius: 8px;
  background: var(--ink);
  color: white;
}

.contact-actions .button {
  width: 100%;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(20px, 4vw, 56px);
  border-top: 1px solid rgba(15, 118, 110, 0.16);
  background: white;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .program-grid,
  .program-detail-grid,
  .program-detail-grid.compact,
  .values-grid,
  .impact-story-grid,
  .quick-actions,
  .intro-section,
  .content-split,
  .contact-panel,
  .split-section,
  .impact-band {
    grid-template-columns: 1fr;
  }

  .quick-actions {
    margin-top: -24px;
  }

  .split-section {
    padding: 34px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: 0.9rem;
  }

  .brand small,
  .header-cta {
    display: none;
  }

  .main-nav {
    gap: 16px;
    font-size: 0.86rem;
  }

  .hero {
    min-height: 720px;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(7, 34, 39, 0.92), rgba(7, 34, 39, 0.54));
  }

  .hero-content {
    padding: 68px 20px;
  }

  h1,
  .page-hero h1 {
    font-size: 3rem;
  }

  .button {
    width: 100%;
  }

  .quick-actions,
  .intro-section,
  .programs-section,
  .page-hero,
  .content-split,
  .values-grid,
  .program-detail-grid,
  .impact-story-grid,
  .contact-panel,
  .split-section,
  .impact-band,
  .final-cta {
    width: calc(100% - 28px);
  }

  .quick-actions a {
    min-height: auto;
    padding: 22px;
  }

  .impact-points {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
