/* =============================================
   GLOBAL REACH — Styles
   Template 15 · Outreach
   Palette: Indigo + Warm Orange
   Fonts: Manrope (display) + Cardo (body)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Cardo:ital,wght@0,400;0,700;1,400&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  --gr-indigo:        #312e81;
  --gr-dark:          #1e1b4b;
  --gr-orange:        #f97316;
  --gr-orange-light:  #fdba74;
  --gr-cream:         #fffbeb;
  --gr-slate:         #64748b;
  --gr-white:         #ffffff;
  --gr-text:          #1e293b;
  --gr-text-light:    #94a3b8;
  --gr-indigo-mid:    #4338ca;
  --gr-indigo-light:  #6366f1;
  --gr-surface:       #f8fafc;

  --gr-font-display:  'Manrope', sans-serif;
  --gr-font-body:     'Cardo', serif;

  --gr-nav-height:    72px;
  --gr-banner-height: 36px;
  --gr-radius:        12px;
  --gr-radius-lg:     20px;
  --gr-shadow:        0 4px 24px rgba(49, 46, 129, .08);
  --gr-shadow-lg:     0 12px 40px rgba(49, 46, 129, .12);
  --gr-transition:    .3s ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--gr-font-body);
  color: var(--gr-text);
  background: var(--gr-white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--gr-font-display);
  line-height: 1.2;
  font-weight: 800;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.gr-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- Demo Banner ---------- */
.gr-demo-banner {
  background: var(--gr-dark);
  color: var(--gr-orange-light);
  text-align: center;
  padding: 8px 16px;
  font-family: var(--gr-font-display);
  font-size: .85rem;
  font-weight: 600;
  height: var(--gr-banner-height);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.gr-demo-banner a {
  color: var(--gr-orange);
  text-decoration: underline;
}

/* ---------- Navigation ---------- */
.gr-nav {
  position: fixed;
  top: var(--gr-banner-height);
  left: 0;
  width: 100%;
  height: var(--gr-nav-height);
  z-index: 960;
  display: flex;
  align-items: center;
  transition: background var(--gr-transition), box-shadow var(--gr-transition);
  background: transparent;
}

.gr-nav.scrolled {
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(49, 46, 129, .08);
}

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

.gr-logo {
  font-family: var(--gr-font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gr-indigo);
  display: flex;
  align-items: center;
  gap: 10px;
}

.gr-logo-icon {
  font-size: 1.6rem;
}

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

.gr-nav-links a {
  font-family: var(--gr-font-display);
  font-size: .9rem;
  font-weight: 600;
  color: var(--gr-slate);
  transition: color var(--gr-transition);
}

.gr-nav-links a:hover {
  color: var(--gr-orange);
}

.gr-nav-cta {
  background: var(--gr-orange) !important;
  color: var(--gr-white) !important;
  padding: 10px 24px;
  border-radius: 50px;
  transition: all var(--gr-transition) !important;
}

.gr-nav-cta:hover {
  background: #ea580c !important;
  transform: translateY(-2px);
}

/* Hamburger */
.gr-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 970;
}

.gr-hamburger span {
  width: 26px;
  height: 3px;
  background: var(--gr-indigo);
  border-radius: 3px;
  transition: var(--gr-transition);
}

.gr-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.gr-hamburger.active span:nth-child(2) { opacity: 0; }
.gr-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* ---------- Hero: Map Overlay ---------- */
.gr-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--gr-banner-height) + var(--gr-nav-height) + 40px) 0 80px;
  background: linear-gradient(135deg, var(--gr-dark) 0%, var(--gr-indigo) 60%, var(--gr-indigo-mid) 100%);
  overflow: hidden;
}

/* Map pattern bg */
.gr-hero-map {
  position: absolute;
  inset: 0;
  opacity: .08;
  background-image:
    radial-gradient(circle at 20% 40%, var(--gr-orange) 2px, transparent 2px),
    radial-gradient(circle at 55% 25%, var(--gr-orange) 3px, transparent 3px),
    radial-gradient(circle at 75% 60%, var(--gr-orange) 2px, transparent 2px),
    radial-gradient(circle at 40% 70%, var(--gr-orange) 2px, transparent 2px),
    radial-gradient(circle at 85% 30%, var(--gr-orange) 2px, transparent 2px),
    radial-gradient(circle at 15% 80%, var(--gr-orange) 2px, transparent 2px),
    radial-gradient(circle at 65% 85%, var(--gr-orange) 2px, transparent 2px),
    radial-gradient(circle at 30% 15%, var(--gr-orange) 2px, transparent 2px),
    radial-gradient(ellipse at center, rgba(99, 102, 241, .15) 0%, transparent 70%);
  z-index: 1;
}

.gr-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 2;
}

.gr-hero-content {}

.gr-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249, 115, 22, .15);
  border: 1px solid rgba(249, 115, 22, .3);
  border-radius: 50px;
  padding: 8px 20px;
  font-family: var(--gr-font-display);
  font-size: .8rem;
  font-weight: 700;
  color: var(--gr-orange);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

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

.gr-hero h1 span {
  color: var(--gr-orange);
}

.gr-hero-text {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, .7);
  margin-bottom: 32px;
  max-width: 480px;
  line-height: 1.8;
}

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

.gr-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gr-orange);
  color: var(--gr-white);
  font-family: var(--gr-font-display);
  font-size: .95rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 50px;
  transition: all var(--gr-transition);
  border: none;
  cursor: pointer;
}

.gr-btn-primary:hover {
  background: #ea580c;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249, 115, 22, .3);
}

.gr-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--gr-white);
  font-family: var(--gr-font-display);
  font-size: .95rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, .25);
  transition: all var(--gr-transition);
  cursor: pointer;
}

.gr-btn-secondary:hover {
  border-color: var(--gr-orange);
  color: var(--gr-orange);
  transform: translateY(-2px);
}

/* Hero stats ribbon */
.gr-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.gr-hero-stat {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--gr-radius);
  padding: 24px;
  text-align: center;
}

.gr-hero-stat-number {
  font-family: var(--gr-font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--gr-orange);
  margin-bottom: 4px;
}

.gr-hero-stat-label {
  font-size: .85rem;
  color: rgba(255, 255, 255, .6);
}

/* ---------- Section Defaults ---------- */
.gr-section {
  padding: 100px 0;
}

.gr-section-header {
  text-align: center;
  margin-bottom: 60px;
}

.gr-section-label {
  display: inline-block;
  font-family: var(--gr-font-display);
  font-size: .8rem;
  font-weight: 700;
  color: var(--gr-orange);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.gr-section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--gr-indigo);
  margin-bottom: 16px;
}

.gr-section-header p {
  font-size: 1.05rem;
  color: var(--gr-slate);
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Country Profiles ---------- */
.gr-countries {
  background: var(--gr-surface);
}

.gr-country-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.gr-country-card {
  background: var(--gr-white);
  border-radius: var(--gr-radius-lg);
  overflow: hidden;
  box-shadow: var(--gr-shadow);
  transition: transform var(--gr-transition), box-shadow var(--gr-transition);
  border: 1px solid rgba(49, 46, 129, .05);
}

.gr-country-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--gr-shadow-lg);
}

.gr-country-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.gr-country-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.gr-country-card:hover .gr-country-image img {
  transform: scale(1.05);
}

.gr-country-flag {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 1.6rem;
  background: var(--gr-white);
  padding: 4px 10px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.gr-country-body {
  padding: 28px;
}

.gr-country-body h3 {
  font-size: 1.2rem;
  color: var(--gr-indigo);
  margin-bottom: 8px;
}

.gr-country-region {
  font-family: var(--gr-font-display);
  font-size: .8rem;
  font-weight: 600;
  color: var(--gr-orange);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 12px;
}

.gr-country-body p {
  font-size: .95rem;
  color: var(--gr-slate);
  margin-bottom: 16px;
}

.gr-country-stats {
  display: flex;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(49, 46, 129, .08);
}

.gr-country-stat-mini {
  text-align: center;
}

.gr-country-stat-mini strong {
  display: block;
  font-family: var(--gr-font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gr-indigo);
}

.gr-country-stat-mini span {
  font-size: .75rem;
  color: var(--gr-slate);
}

/* ---------- Missionaries ---------- */
.gr-missionaries {
  background: var(--gr-white);
}

.gr-missionary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.gr-missionary-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--gr-surface);
  border-radius: var(--gr-radius-lg);
  transition: all var(--gr-transition);
  border: 1px solid transparent;
}

.gr-missionary-card:hover {
  border-color: rgba(249, 115, 22, .15);
  transform: translateY(-4px);
  box-shadow: var(--gr-shadow);
}

.gr-missionary-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid var(--gr-orange-light);
}

.gr-missionary-card h4 {
  font-size: 1rem;
  color: var(--gr-indigo);
  margin-bottom: 4px;
}

.gr-missionary-role {
  font-family: var(--gr-font-display);
  font-size: .8rem;
  font-weight: 600;
  color: var(--gr-orange);
  margin-bottom: 8px;
}

.gr-missionary-card p {
  font-size: .9rem;
  color: var(--gr-slate);
  line-height: 1.6;
}

/* ---------- Funding Tracker ---------- */
.gr-funding {
  background: var(--gr-dark);
  color: var(--gr-white);
}

.gr-funding .gr-section-label {
  color: var(--gr-orange);
}

.gr-funding .gr-section-header h2 {
  color: var(--gr-white);
}

.gr-funding .gr-section-header p {
  color: rgba(255, 255, 255, .6);
}

.gr-funding-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.gr-funding-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(249, 115, 22, .15);
  border-radius: var(--gr-radius);
  padding: 32px;
  transition: all var(--gr-transition);
}

.gr-funding-card:hover {
  background: rgba(255, 255, 255, .08);
  transform: translateY(-4px);
}

.gr-funding-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.gr-funding-card h4 {
  font-size: 1.05rem;
  color: var(--gr-white);
  margin-bottom: 4px;
}

.gr-funding-card .gr-funding-location {
  font-size: .85rem;
  color: var(--gr-orange-light);
}

.gr-funding-percent {
  font-family: var(--gr-font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gr-orange);
}

.gr-funding-bar {
  height: 8px;
  background: rgba(255, 255, 255, .1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.gr-funding-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gr-orange), var(--gr-orange-light));
  transition: width 1.5s ease;
}

.gr-funding-meta {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  color: rgba(255, 255, 255, .5);
}

/* ---------- CTA ---------- */
.gr-cta {
  background: var(--gr-cream);
  padding: 80px 0;
  text-align: center;
}

.gr-cta h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--gr-indigo);
  margin-bottom: 16px;
}

.gr-cta p {
  color: var(--gr-slate);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.gr-cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.gr-footer {
  background: var(--gr-dark);
  color: rgba(255, 255, 255, .6);
  padding: 60px 0 30px;
}

.gr-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.gr-footer-brand h3 {
  font-family: var(--gr-font-display);
  font-size: 1.3rem;
  color: var(--gr-white);
  margin-bottom: 12px;
}

.gr-footer-brand p {
  font-size: .9rem;
  line-height: 1.7;
  max-width: 280px;
}

.gr-footer h4 {
  font-family: var(--gr-font-display);
  font-size: .85rem;
  font-weight: 700;
  color: var(--gr-orange);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.gr-footer ul li {
  margin-bottom: 10px;
}

.gr-footer ul li a {
  font-size: .9rem;
  transition: color var(--gr-transition);
}

.gr-footer ul li a:hover {
  color: var(--gr-orange);
}

.gr-footer-bottom {
  border-top: 1px solid rgba(249, 115, 22, .15);
  padding-top: 24px;
  text-align: center;
  font-size: .85rem;
  font-family: var(--gr-font-display);
}

/* ---------- Scroll Reveal ---------- */
.gr-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

.gr-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .gr-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .gr-hero-text {
    margin: 0 auto 32px;
  }

  .gr-hero-actions {
    justify-content: center;
  }

  .gr-hero-stats {
    max-width: 400px;
    margin: 40px auto 0;
  }

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

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

@media (max-width: 768px) {
  .gr-hamburger {
    display: flex;
  }

  .gr-nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: var(--gr-white);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    transition: right var(--gr-transition);
    box-shadow: -4px 0 20px rgba(49, 46, 129, .15);
    z-index: 950;
  }

  .gr-nav-links.open {
    right: 0;
  }

  .gr-nav-links a {
    font-size: 1.1rem;
    color: var(--gr-indigo);
  }

  .gr-country-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .gr-funding-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .gr-section {
    padding: 70px 0;
  }

  .gr-missionary-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 0 auto;
  }

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

  .gr-footer-grid {
    grid-template-columns: 1fr;
  }
}
