/* ===========================
   KINSET Inc. — Global Styles
   =========================== */

:root {
  --green-deep:    #1a4a2e;
  --green-mid:     #2d6a45;
  --green-light:   #4a9063;
  --gold:          #c8922a;
  --gold-light:    #e8b84b;
  --cream:         #f8f4ed;
  --warm-white:    #fdfaf5;
  --earth:         #8b6914;
  --text-dark:     #1c1c1a;
  --text-mid:      #4a4a40;
  --text-light:    #7a7a6e;
  --border:        #e0d8c8;

  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'Inter', system-ui, sans-serif;

  --radius:        12px;
  --radius-sm:     6px;
  --shadow:        0 4px 24px rgba(26,74,46,0.10);
  --shadow-lg:     0 12px 48px rgba(26,74,46,0.16);

  --max-w:         1160px;
  --nav-h:         72px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--warm-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
}
.btn-primary:hover { background: var(--earth); transform: translateY(-1px); }

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255,255,255,0.6);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(26,74,46,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: box-shadow 0.2s;
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.18); }

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.logo-leaf { font-size: 1.5rem; }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}
.logo-inc {
  font-size: 0.85rem;
  font-weight: 400;
  opacity: 0.8;
  font-family: var(--font-body);
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,0.12); }
.nav-donate-btn {
  background: var(--gold) !important;
  color: #fff !important;
  padding: 8px 20px !important;
  font-weight: 600 !important;
}
.nav-donate-btn:hover { background: var(--earth) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-mid) 60%, #3d7a52 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 60px) 24px 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, rgba(26,74,46,0.3));
}

.hero-content {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: 40px;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 36px;
}

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

.hero-stats {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(255,255,255,0.08);
  border-top: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  padding: 28px 40px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 48px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-light);
}
.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.05em;
  margin-top: 2px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
}

/* ===== MISSION BANNER ===== */
.mission-banner {
  background: var(--gold);
  padding: 32px 24px;
  text-align: center;
}
.mission-text {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 600;
  color: #fff;
  font-style: italic;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ===== SECTIONS ===== */
.section {
  padding: 96px 24px;
}

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 64px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-header p {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ===== PROGRAMS ===== */
.programs { background: var(--cream); }

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.program-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.program-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-light);
}
.program-icon { font-size: 2.2rem; margin-bottom: 18px; }
.program-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 10px;
}
.program-card p {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ===== VALUES ===== */
.values-section { background: var(--warm-white); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 48px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.value-item { text-align: center; }
.value-icon { font-size: 2rem; margin-bottom: 14px; }
.value-item h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 10px;
}
.value-item p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.65;
  max-width: 260px;
  margin: 0 auto;
}

/* ===== HOW IT WORKS ===== */
.how-section { background: var(--cream); }

.how-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
}

.how-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 18px;
  line-height: 1.2;
}
.how-text > p {
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 40px;
}

.how-steps { margin-bottom: 40px; display: flex; flex-direction: column; gap: 24px; }

.how-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--green-deep);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 2px;
}
.how-step h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 4px;
}
.how-step p { font-size: 0.9rem; color: var(--text-mid); line-height: 1.6; }

.impact-card {
  background: var(--green-deep);
  border-radius: var(--radius);
  padding: 52px 40px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.impact-icon { font-size: 3rem; margin-bottom: 24px; }
.impact-card h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}
.impact-card p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
  margin-bottom: 28px;
}
.impact-badge {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 100px;
  letter-spacing: 0.03em;
}

/* ===== NEWSLETTER ===== */
.newsletter-section {
  background: var(--green-deep);
  padding: 80px 24px;
}
.newsletter-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.newsletter-text h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.newsletter-text p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
  max-width: 420px;
}
.newsletter-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.newsletter-form input {
  flex: 1;
  min-width: 240px;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.45); }
.newsletter-form input:focus { border-color: var(--gold-light); }

/* ===== FOOTER ===== */
.footer {
  background: #111a14;
  padding: 72px 24px 0;
}
.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  max-width: 280px;
  margin-bottom: 20px;
}
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  font-size: 1.2rem;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.footer-socials a:hover { opacity: 1; }

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 18px;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
  line-height: 1.6;
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 0;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--green-deep), var(--green-mid));
  padding: calc(var(--nav-h) + 64px) 24px 64px;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}
.page-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== ABOUT PAGE ===== */
.about-section { padding: 96px 24px; }
.about-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-text h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 20px;
}
.about-text p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 20px;
}
.about-info-box {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.about-info-box h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--green-deep);
  margin-bottom: 16px;
}
.info-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: var(--text-mid);
}
.info-row strong { color: var(--text-dark); min-width: 110px; }

.directors-section {
  background: var(--cream);
  padding: 80px 24px;
}
.directors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.director-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
}
.director-avatar {
  width: 72px;
  height: 72px;
  background: var(--green-deep);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 18px;
}
.director-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 6px;
}
.director-card p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ===== CONTACT PAGE ===== */
.contact-section { padding: 96px 24px; }
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 72px;
  max-width: var(--max-w);
  margin: 0 auto;
  align-items: start;
}
.contact-info h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--green-deep);
  margin-bottom: 18px;
}
.contact-info p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 36px;
}
.contact-details { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-item-icon {
  width: 44px;
  height: 44px;
  background: var(--green-deep);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-item-text h5 {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.contact-item-text p, .contact-item-text a {
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.5;
}

.contact-form-box {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}
.contact-form-box h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--green-deep);
  margin-bottom: 28px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mid);
  letter-spacing: 0.03em;
}
.form-group input, .form-group textarea, .form-group select {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--warm-white);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--green-light); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ===== DONATE PAGE ===== */
.donate-section { padding: 96px 24px; background: var(--cream); }
.donate-inner {
  max-width: 680px;
  margin: 0 auto;
}
.donate-intro {
  text-align: center;
  margin-bottom: 48px;
}
.donate-intro h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--green-deep);
  margin-bottom: 14px;
}
.donate-intro p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
}
.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.amount-btn {
  padding: 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--warm-white);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--green-deep);
  text-align: center;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.amount-btn:hover, .amount-btn.selected {
  border-color: var(--green-deep);
  background: var(--green-deep);
  color: #fff;
}
.donate-form-box {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}
.donate-form-box h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--green-deep);
  margin-bottom: 24px;
}
.secure-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #e8f5ee;
  border: 1px solid #b8dfc7;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 28px;
  font-size: 0.85rem;
  color: var(--green-deep);
  font-weight: 500;
}

/* ===== LEGAL PAGES ===== */
.legal-section { padding: 80px 24px; }
.legal-content {
  max-width: 760px;
  margin: 0 auto;
}
.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--green-deep);
  margin: 40px 0 14px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 16px;
}
.legal-content ul {
  margin: 0 0 16px 24px;
}
.legal-content li {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 8px;
}
.legal-date {
  display: inline-block;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 40px;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--green-deep);
  color: #fff;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .programs-grid, .values-grid, .directors-grid { grid-template-columns: 1fr 1fr; }
  .how-layout, .about-layout, .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 0; }
  .stat { padding: 16px 32px; }
}

@media (max-width: 640px) {
  .programs-grid, .values-grid, .directors-grid, .amount-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--green-deep); padding: 16px; gap: 4px; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .newsletter-inner { flex-direction: column; }
  .stat-divider { display: none; }
  .section { padding: 64px 24px; }
  .hero-stats { padding: 20px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
