/* ============================================
   NINDA — National Institute for Nonprofit Digital Advancement
   Core Stylesheet
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Primary Palette */
  --navy: #212529;
  --navy-light: #343A40;
  --teal: #2D6A4F;
  --teal-light: #38805F;
  --teal-dark: #1E4D38;

  /* Accent */
  --gold: #E07A5F;
  --gold-light: #E8927D;
  --gold-dark: #C4644A;

  /* Neutrals */
  --white: #FFFFFF;
  --off-white: #F8F9FA;
  --light-gray: #DEE2E6;
  --mid-gray: #868E96;
  --dark-gray: #495057;
  --charcoal: #343A40;

  /* Feedback */
  --success: #2D6A4F;
  --info: #2D6A4F;

  /* Typography */
  --font-heading: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;
  --container-padding: 0 24px;

  /* Transitions */
  --transition: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

/* --- Reset & Base --- */
*, *::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(--charcoal);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.2rem; }

p {
  margin-bottom: 1rem;
  color: var(--dark-gray);
  font-size: 1.05rem;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--dark-gray);
}

/* --- Layout --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

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

.section {
  padding: var(--section-padding);
}

.section-light {
  background: var(--off-white);
}

.section-navy {
  background: var(--navy);
}

.section-navy h2,
.section-navy h3,
.section-navy p,
.section-navy .lead {
  color: var(--white);
}

.section-navy p {
  color: rgba(255,255,255,0.8);
}

.section-teal {
  background: var(--teal);
}

.section-teal h2,
.section-teal h3,
.section-teal p {
  color: var(--white);
}

.section-teal p {
  color: rgba(255,255,255,0.85);
}

/* --- Section Headers --- */
.section-label {
  text-transform: uppercase;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--teal);
  margin-bottom: 12px;
  display: block;
}

.section-navy .section-label {
  color: var(--gold);
}

.section-teal .section-label {
  color: var(--gold-light);
}

.section-title {
  margin-bottom: 20px;
}

.section-subtitle {
  max-width: 680px;
  margin-bottom: 50px;
}

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

.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(26, 122, 122, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}

.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(200, 149, 46, 0.3);
}

.btn-arrow::after {
  content: '→';
  transition: var(--transition);
}

.btn-arrow:hover::after {
  transform: translateX(4px);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(33, 37, 41, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}

.nav-scrolled {
  background: rgba(33, 37, 41, 0.98);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--teal);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--white);
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
}

.nav-logo-text span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.3px;
  padding: 8px 16px;
  border-radius: 6px;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}

.nav-cta {
  padding: 10px 24px !important;
  background: var(--teal);
  color: var(--white) !important;
  border-radius: 4px;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--teal-light) !important;
  transform: translateY(-1px);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--teal-dark) 100%);
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    radial-gradient(circle at 20% 80%, var(--teal) 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, var(--gold) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, var(--teal) 0.5px, transparent 0.5px);
  background-size: 60px 60px, 80px 80px, 40px 40px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-text h1 {
  color: var(--white);
  margin-bottom: 24px;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.15;
}

.hero-text h1 .highlight {
  color: var(--gold);
  display: block;
}

.hero-text .hero-description {
  color: rgba(255,255,255,0.8);
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 48px 40px;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.hero-stat {
  text-align: center;
  padding: 20px;
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  line-height: 1.4;
}

.hero-stat-divider {
  grid-column: 1 / -1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

/* --- Stats Bar --- */
.stats-bar {
  background: var(--teal);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-item {
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -20px;
  top: 10%;
  height: 80%;
  width: 1px;
  background: rgba(255,255,255,0.2);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  margin-top: 4px;
}

/* --- Card Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.card-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

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

.card {
  background: var(--white);
  border-radius: 12px;
  padding: 40px 32px;
  transition: var(--transition);
  border: 1px solid var(--light-gray);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(33, 37, 41, 0.1);
  border-color: transparent;
}

.card-icon {
  width: 56px;
  height: 56px;
  background: rgba(26, 122, 122, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.card-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--dark-gray);
  margin-bottom: 0;
}

.card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--teal);
  opacity: 0;
  transition: var(--transition);
}

.card:hover .card-accent {
  opacity: 1;
}

/* Navy cards */
.card-navy {
  background: var(--navy-light);
  border-color: rgba(255,255,255,0.08);
}

.card-navy h3 { color: var(--white); }
.card-navy p { color: rgba(255,255,255,0.7); }

.card-navy .card-icon {
  background: rgba(200, 149, 46, 0.15);
}

.card-navy .card-icon svg {
  stroke: var(--gold);
}

.card-navy .card-accent {
  background: var(--gold);
}

/* --- Two-Column Layout --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.split-image {
  border-radius: 12px;
  overflow: hidden;
  background: var(--light-gray);
  aspect-ratio: 4/3;
  position: relative;
}

.split-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.split-image-placeholder span {
  color: rgba(255,255,255,0.3);
  font-size: 0.9rem;
  font-weight: 500;
}

/* --- Quote / Callout --- */
.callout {
  background: var(--off-white);
  border-left: 4px solid var(--teal);
  padding: 32px 40px;
  border-radius: 0 8px 8px 0;
  margin: 40px 0;
}

.callout p {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--navy);
  margin-bottom: 0;
  line-height: 1.7;
}

.callout-navy {
  background: rgba(255,255,255,0.05);
  border-left-color: var(--gold);
}

.callout-navy p {
  color: rgba(255,255,255,0.9);
}

/* --- Feature List --- */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 32px 0;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: rgba(26, 122, 122, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.feature-check svg {
  width: 14px;
  height: 14px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 2.5;
}

.feature-item p {
  margin-bottom: 0;
  font-size: 1rem;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--light-gray);
}

.timeline-item {
  position: relative;
  padding-bottom: 40px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -33px;
  top: 4px;
  width: 12px;
  height: 12px;
  background: var(--teal);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px rgba(26, 122, 122, 0.2);
}

.timeline-item h4 {
  color: var(--navy);
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-weight: 700;
}

.timeline-item p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image:
    radial-gradient(circle at 30% 50%, var(--gold) 1px, transparent 1px);
  background-size: 50px 50px;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-banner p {
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin: 0 auto 36px;
  font-size: 1.1rem;
}

.cta-banner .btn {
  position: relative;
  z-index: 2;
}

/* --- Insights Cards --- */
.insight-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--light-gray);
  transition: var(--transition);
}

.insight-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(33, 37, 41, 0.1);
}

.insight-card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal-dark) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.insight-card-image span {
  color: rgba(255,255,255,0.25);
  font-size: 0.85rem;
}

.insight-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--gold);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.insight-card-body {
  padding: 28px 24px;
}

.insight-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.insight-card-body p {
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.insight-card-meta {
  font-size: 0.8rem;
  color: var(--mid-gray);
  font-weight: 500;
}

/* --- Number Highlights --- */
.number-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: 50px 0;
}

.number-item {
  text-align: center;
  padding: 32px 20px;
}

.number-big {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 8px;
}

.section-navy .number-big {
  color: var(--gold);
}

.number-label {
  font-size: 0.95rem;
  color: var(--dark-gray);
  font-weight: 500;
}

.section-navy .number-label {
  color: rgba(255,255,255,0.7);
}

/* --- Footer --- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  margin-top: 16px;
  max-width: 320px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.footer-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--teal);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  padding: 6px 0;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-newsletter p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.footer-newsletter-form {
  display: flex;
  gap: 8px;
}

.footer-newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  color: var(--white);
  font-size: 0.9rem;
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition);
}

.footer-newsletter-form input::placeholder {
  color: rgba(255,255,255,0.4);
}

.footer-newsletter-form input:focus {
  border-color: var(--teal);
  background: rgba(255,255,255,0.12);
}

.footer-newsletter-form button {
  padding: 12px 20px;
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.footer-newsletter-form button:hover {
  background: var(--teal-light);
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* --- Page Hero (Inner Pages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    radial-gradient(circle at 70% 30%, var(--teal) 1px, transparent 1px);
  background-size: 50px 50px;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
}

.page-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.15rem;
  max-width: 640px;
  position: relative;
}

.page-hero .section-label {
  color: var(--gold);
  position: relative;
}

/* --- Accordion --- */
.accordion-item {
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.accordion-item:hover {
  border-color: var(--teal);
}

.accordion-header {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: var(--white);
  transition: var(--transition);
}

.accordion-header h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
}

.accordion-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 1.4rem;
  transition: var(--transition);
}

.accordion-body {
  padding: 0 24px 20px;
  display: none;
}

.accordion-body p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.accordion-item.active .accordion-body {
  display: block;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

/* --- Contact Form --- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 0;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--light-gray);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--charcoal);
  transition: var(--transition);
  background: var(--white);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26, 122, 122, 0.1);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .stat-item:not(:last-child)::after {
    display: none;
  }

  .number-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 70px 0;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 24px;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 12px 16px;
    width: 100%;
    border-radius: 6px;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 60px;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .card-grid,
  .card-grid-2 {
    grid-template-columns: 1fr;
  }

  .card-grid-4 {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .number-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .split-reverse-mobile {
    direction: ltr;
  }
  .split-reverse-mobile > *:first-child {
    order: 2;
  }
  .split-reverse-mobile > *:last-child {
    order: 1;
  }
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Form Validation --- */
.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(224, 122, 95, 0.15);
}

.form-error {
  font-size: 0.8rem;
  color: var(--gold-dark);
  margin-top: 4px;
  display: none;
}

.form-group input.invalid + .form-error,
.form-group select.invalid + .form-error,
.form-group textarea.invalid + .form-error {
  display: block;
}

.form-message {
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
}

.form-message-success {
  background: rgba(45, 106, 79, 0.08);
  color: var(--teal);
  border: 1px solid rgba(45, 106, 79, 0.2);
}

.form-message-error {
  background: rgba(224, 122, 95, 0.08);
  color: var(--gold-dark);
  border: 1px solid rgba(224, 122, 95, 0.2);
}

/* --- Utility --- */
.mb-0 { margin-bottom: 0; }
.mt-40 { margin-top: 40px; }
.mb-60 { margin-bottom: 60px; }
