/* ─────────────────────────────────────────────
   CONNECTIONS KC - Main Stylesheet
───────────────────────────────────────────── */

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

:root {
  --green:       #22b14c;
  --green-dark:  #1a9040;
  --green-deep:  #166a30;
  --green-light: #e6f7ed;
  --white:       #ffffff;
  --off-white:   #f7faf8;
  --text-dark:   #1a2e1e;
  --text-mid:    #3d5445;
  --text-muted:  #6b8a73;
  --shadow:      0 4px 24px rgba(34,177,76,0.10);
  --shadow-card: 0 2px 16px rgba(0,0,0,0.08);
  --radius:      16px;
  --radius-sm:   10px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
}

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

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

/* ── UTILITY ── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-light);
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 14px;
}
.section-label.light {
  color: var(--white);
  background: rgba(255,255,255,0.18);
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 99px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  border: none;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.btn-white {
  background: var(--white);
  color: var(--green-dark);
}
.btn-white:hover {
  background: #f0faf4;
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2.5px solid rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
}

/* ─────────────────────────────────────────────
   NAVBAR
───────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s;
  background: transparent;
}
.navbar.scrolled,
.navbar.page-nav {
  background: var(--green);
  box-shadow: 0 2px 20px rgba(0,0,0,0.12);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo-text {
  display: flex;
  align-items: baseline;
  gap: 0;
  text-decoration: none;
}
.nav-brand-main {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.01em;
}
.nav-brand-kc {
  font-size: 1.35rem;
  font-weight: 900;
  color: rgba(255,255,255,0.75);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: var(--white);
  font-weight: 700;
  font-size: 0.97rem;
  opacity: 0.92;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; }

.nav-cta {
  background: var(--white);
  color: var(--green-dark) !important;
  padding: 9px 24px;
  border-radius: 99px;
  opacity: 1 !important;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-cta:hover {
  background: #f0faf4;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: transform 0.3s;
}

/* ─────────────────────────────────────────────
   HERO
───────────────────────────────────────────── */
.hero {
  background: var(--green);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-logo {
  height: 280px;
  width: auto;
  margin: 0 auto 28px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 18px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.92);
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  line-height: 0;
}
.hero-wave svg {
  width: 100%;
  height: 80px;
}

/* ─────────────────────────────────────────────
   ABOUT
───────────────────────────────────────────── */
.about {
  padding: 100px 0 80px;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: center;
}

.about-photo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.photo-frame {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 3/4;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 6px var(--green-light);
  background: var(--green-light);
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.about-badge {
  margin-top: 20px;
  text-align: center;
  background: var(--green);
  color: var(--white);
  border-radius: 14px;
  padding: 12px 28px;
  box-shadow: var(--shadow);
}
.badge-title {
  display: block;
  font-weight: 800;
  font-size: 1.05rem;
}
.badge-role {
  display: block;
  font-size: 0.85rem;
  opacity: 0.88;
  font-weight: 600;
}

.about-text .section-label { margin-bottom: 10px; }

.about-text h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 1.05rem;
  color: var(--text-mid);
  margin-bottom: 16px;
}

/* ─────────────────────────────────────────────
   MISSION
───────────────────────────────────────────── */
.mission {
  padding: 0;
}
.mission-bg {
  background: var(--green);
  padding: 90px 24px 100px;
  position: relative;
}
.mission-bg::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.mission-bg .container {
  text-align: center;
}

.mission-bg h2 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.mission-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.mission-card {
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  padding: 32px 24px;
  color: var(--white);
  transition: transform 0.2s, background 0.2s;
}
.mission-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.22);
}
.mission-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  background: rgba(255,255,255,0.18);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.mission-icon svg {
  width: 100%;
  height: 100%;
  color: var(--white);
}

.mission-statement-box {
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  padding: 28px 36px;
  max-width: 820px;
  margin: 0 auto 56px;
  position: relative;
  z-index: 1;
}
.mission-statement-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
}
.mission-lead {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.97);
  line-height: 1.8;
  margin: 0;
}
.mission-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.mission-card p {
  font-size: 0.95rem;
  opacity: 0.88;
  line-height: 1.6;
}

/* ─────────────────────────────────────────────
   GALLERY
───────────────────────────────────────────── */
.gallery {
  padding: 80px 0 100px;
  background: var(--white);
}

.gallery .container {
  text-align: center;
}

.gallery h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 48px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 16/10;
  background: var(--green-light);
  transition: transform 0.25s, box-shadow 0.25s;
}
.gallery-item:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 10px 40px rgba(34,177,76,0.18);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.gallery-item:hover img {
  transform: scale(1.04);
}

/* ─────────────────────────────────────────────
   SUPPORT / CONTACT
───────────────────────────────────────────── */
.support {
  background: var(--green);
  padding: 0 0 80px;
  position: relative;
}

.support-wave {
  line-height: 0;
}
.support-wave svg {
  width: 100%;
  height: 80px;
}

.support .container {
  text-align: center;
  padding-top: 20px;
}

.support h2 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 20px;
}

.support-lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.93);
  max-width: 780px;
  margin: 0 auto 16px;
  line-height: 1.8;
}

.support-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  max-width: 580px;
  margin: 0 auto 44px;
}

/* ── FORM ── */
.contact-form {
  background: var(--white);
  border-radius: 24px;
  padding: 44px 48px;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: 0 8px 48px rgba(0,0,0,0.14);
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group.full {
  margin-bottom: 24px;
}

label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-dark);
}

input, select, textarea {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--off-white);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
}
input::placeholder, textarea::placeholder {
  color: var(--text-muted);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--green);
  background: var(--white);
}

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

.submit-btn {
  width: 100%;
  font-size: 1.05rem;
  padding: 16px;
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(34,177,76,0.3);
}
.submit-btn:hover {
  background: var(--green-dark);
  box-shadow: 0 6px 20px rgba(34,177,76,0.4);
}

.form-success {
  display: none;
  margin-top: 18px;
  padding: 14px 20px;
  background: var(--green-light);
  color: var(--green-dark);
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-align: center;
}
.form-success.visible {
  display: block;
}

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
.footer {
  background: var(--green-deep);
  padding: 36px 24px;
  text-align: center;
  color: rgba(255,255,255,0.8);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer-logo {
  height: 56px;
  width: auto;
  border-radius: 10px;
  opacity: 0.92;
}
.footer p {
  font-size: 0.9rem;
}
.footer-credit {
  font-size: 0.78rem;
  opacity: 0.45;
}
.footer-nonprofit {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.08);
  padding: 4px 14px;
  border-radius: 99px;
}

/* ─────────────────────────────────────────────
   APPLY CTA (index.html)
───────────────────────────────────────────── */
.apply-cta {
  padding: 80px 0;
  background: var(--green-light);
  text-align: center;
}
.apply-cta h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 16px;
}
.apply-cta-text {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.8;
}
.btn-green {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(34,177,76,0.3);
}
.btn-green:hover {
  background: var(--green-dark);
  box-shadow: 0 6px 20px rgba(34,177,76,0.4);
}

/* ─────────────────────────────────────────────
   APPLY PAGE
───────────────────────────────────────────── */
.page-hero {
  background: var(--green);
  padding: 140px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 14px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.page-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.7;
}

.what-you-get {
  padding: 80px 0 70px;
  background: var(--white);
  text-align: center;
}
.what-you-get h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 16px;
}
.wyg-text {
  font-size: 1.02rem;
  color: var(--text-mid);
  max-width: 760px;
  margin: 0 auto 48px;
  line-height: 1.85;
}
.wyg-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.wyg-card {
  background: var(--green-light);
  border-radius: var(--radius);
  padding: 32px 24px;
}
.wyg-icon {
  width: 52px;
  height: 52px;
  background: var(--green);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  margin: 0 auto 16px;
}
.wyg-icon svg {
  width: 100%;
  height: 100%;
  color: var(--white);
}
.wyg-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.wyg-card p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.apply-form-section {
  background: var(--green);
  padding: 0 0 80px;
}
.apply-form-section .container {
  text-align: center;
  padding-top: 20px;
}
.apply-form-section h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 32px;
}
.apply-form {
  max-width: 860px;
}
.form-section-title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin: 28px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--green-light);
  text-align: left;
}
.form-section-sub {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  text-align: left;
}
.checkbox-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
  text-align: left;
}
.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  accent-color: var(--green);
  cursor: pointer;
  margin-top: 2px;
}
.confirm-label {
  background: var(--off-white);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .wyg-cards {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }
}

/* ─────────────────────────────────────────────
   PULSE ANIMATION
───────────────────────────────────────────── */
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0    rgba(255,255,255,0.65); }
  70%  { box-shadow: 0 0 0 14px rgba(255,255,255,0);    }
  100% { box-shadow: 0 0 0 0    rgba(255,255,255,0);    }
}
.btn-pulse {
  animation: pulse-ring 2.2s ease-out infinite;
}

/* ─────────────────────────────────────────────
   FADE-IN ANIMATIONS
───────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.mission-card:nth-child(2) { transition-delay: 0.1s; }
.mission-card:nth-child(3) { transition-delay: 0.2s; }
.gallery-item:nth-child(2) { transition-delay: 0.1s; }

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 900px) {
  .mission-cards {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .photo-frame {
    margin: 0 auto;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 18px;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--green-dark);
    padding: 24px 32px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
  .contact-form {
    padding: 28px 20px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .hero-logo {
    height: 200px;
  }
}
