/* ========== CORE ========== */

:root {
  --color-bg: #f5f7f8;
  --color-surface: #ffffff;
  --color-surface-alt: #f0f4f2;
  --color-primary: #0f6a34; /* SSSIF forest green */
  --color-primary-dark: #094423;
  --color-gold: #d9a441;
  --color-text-main: #111827;
  --color-text-muted: #6b7280;
  --color-border: #e5e7eb;
  --shadow-soft: 0 14px 40px rgba(15, 40, 32, 0.12);
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-pill: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top left, #e4f2ea 0, #f5f7f8 45%, #f5f7f8 100%);
  color: var(--color-text-main);
  line-height: 1.6;
}

/* ========== LAYOUT ========== */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
}

/* ========== HEADER / NAV ========== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 247, 248, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.7);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  margin-right: 0.75rem;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary);
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Nav links */

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text-main);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--color-primary);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 106, 52, 0.3);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: rgba(15, 106, 52, 0.4);
}

.btn-outline:hover {
  background: rgba(15, 106, 52, 0.05);
}

.btn-full {
  width: 100%;
}

.btn-small {
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
}

.btn-nav {
  padding-inline: 1.4rem;
}

/* Nav toggle (mobile) */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.35rem;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: #111827;
  border-radius: 999px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-toggle-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========== HERO ========== */

.hero {
  padding: 4.5rem 0 3.75rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 2.75rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.1rem, 3.1vw + 1.4rem, 3.1rem);
  margin: 0.4rem 0 0.9rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  margin: 0 0 1.5rem;
  color: var(--color-text-muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-gold));
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.8rem;
}

/* Hero stats */

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.stat {
  min-width: 130px;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 30px rgba(15, 40, 32, 0.08);
}

.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
}

.stat-value {
  font-weight: 600;
}

/* Hero panel – app-style */

.hero-panel {
  display: flex;
  justify-content: center;
}

.app-card {
  width: 100%;
  max-width: 340px;
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: 1.3rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-title {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.dot-green {
  background: var(--color-primary);
}
.dot-gold {
  background: var(--color-gold);
}
.dot-grey {
  background: #d1d5db;
}

.app-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.app-balance {
  background: linear-gradient(135deg, var(--color-primary), #15803d);
  border-radius: 20px;
  padding: 1rem 1.1rem;
  color: #ecfdf5;
}

.app-balance .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  opacity: 0.8;
}

.app-balance .amount {
  margin: 0.25rem 0;
  font-size: 1.6rem;
  font-weight: 700;
}

.app-balance .caption {
  font-size: 0.78rem;
  opacity: 0.9;
}

.app-sections {
  display: grid;
  gap: 0.65rem;
}

.app-section {
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  background: #f3f4f6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-title {
  font-size: 0.85rem;
  font-weight: 600;
}

.section-value {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ========== SECTION HEADERS & CARDS ========== */

.section-header {
  max-width: 640px;
  margin-bottom: 2.1rem;
}

.section-header h2 {
  margin: 0 0 0.4rem;
  font-size: 1.7rem;
}

.section-header p {
  margin: 0;
  color: var(--color-text-muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.card-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  box-shadow: 0 10px 30px rgba(15, 40, 32, 0.06);
  border: 1px solid rgba(209, 213, 219, 0.6);
  transition: transform 0.14s ease, box-shadow 0.14s ease,
    border-color 0.14s ease, background-color 0.14s ease;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15, 40, 32, 0.15);
  border-color: rgba(15, 106, 52, 0.2);
}

/* Portal cards */

.portal-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 230px;
}

.portal-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: #ecfdf3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 0.7rem;
}

.portal-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.text-link {
  font-size: 0.9rem;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.text-link:hover {
  text-decoration: underline;
}

/* Link cards */

.link-card {
  position: relative;
}

.link-card .text-link {
  margin-top: 0.6rem;
  display: inline-flex;
  align-items: center;
}

/* ========== ABOUT ========== */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pillar {
  background: var(--color-surface-alt);
  border-radius: 16px;
  padding: 1rem 1.1rem;
}

.pillar h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.pillar p,
.pillar ul {
  margin: 0;
  font-size: 0.93rem;
  color: var(--color-text-muted);
}

.pillar ul {
  padding-left: 1.1rem;
}

/* ========== CONTACT ========== */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.97rem;
}

.contact-list li + li {
  margin-top: 0.4rem;
}

.contact-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  box-shadow: 0 10px 30px rgba(15, 40, 32, 0.08);
  border: 1px solid rgba(209, 213, 219, 0.7);
}

.contact-card h3 {
  margin-top: 0;
  margin-bottom: 0.9rem;
}

.contact-card form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-card label {
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-card input,
.contact-card textarea {
  border-radius: 10px;
  border: 1px solid var(--color-border);
  padding: 0.6rem 0.7rem;
  font: inherit;
  resize: vertical;
}

.contact-card input:focus,
.contact-card textarea:focus {
  outline: 2px solid rgba(15, 106, 52, 0.25);
  border-color: rgba(15, 106, 52, 0.6);
}

.form-note {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

/* ========== FOOTER ========== */

.site-footer {
  margin-top: 1rem;
  background: #0b1720;
  color: #d1d5db;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.2rem 0 1rem;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #111827;
  font-weight: 700;
  font-size: 0.9rem;
}

.footer-text {
  margin-top: 0.75rem;
  max-width: 380px;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: #d1d5db;
  text-decoration: none;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(55, 65, 81, 0.7);
  padding: 0.7rem 0;
  font-size: 0.8rem;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer-mini {
  color: #9ca3af;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  }

  .card-grid,
  .card-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    inset-inline: 0;
    top: 72px;
    flex-direction: column;
    padding: 0.75rem 1.5rem 1rem;
    background: rgba(245, 247, 248, 0.97);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .nav-links.nav-open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-panel {
    order: -1;
    margin-bottom: 1.4rem;
  }

  .hero-actions {
    gap: 0.7rem;
  }

  .hero-stats {
    gap: 0.9rem;
  }

  .card-grid,
  .card-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    flex-direction: column;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.1rem;
  }

  .hero-text h1 {
    font-size: 1.9rem;
  }

  .app-card {
    max-width: 100%;
  }

  .brand-tagline {
    display: none;
  }
}