:root {
  --rr-navy-dark: #0b1e36;
  --rr-navy: #122b4d;
  --rr-navy-light: #1b3d6c;
  --rr-blue: #1d4ed8;
  --rr-blue-light: #3b82f6;
  --rr-gold: #f59e0b;
  --rr-gold-light: #fbbf24;
  --rr-gold-dark: #d97706;
  --rr-red: #dc2626;
  --rr-red-dark: #b91c1c;
  
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-alt: #f1f5f9;
  
  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  
  --border-subtle: #e2e8f0;
  --border-navy: rgba(18, 43, 77, 0.15);
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(18, 43, 77, 0.08);
  --shadow-lg: 0 10px 25px -5px rgba(18, 43, 77, 0.12);
  --shadow-gold: 0 4px 20px rgba(245, 158, 11, 0.25);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
  background-color: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header & Banner */
.top-announcement {
  background: var(--rr-navy-dark);
  color: var(--rr-gold-light);
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-bottom: 2px solid var(--rr-gold);
}

.top-announcement a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.top-announcement a:hover {
  color: var(--rr-gold-light);
}

.navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 50;
}

.navbar-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: inherit;
}

.nav-logo-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.nav-brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--rr-navy-dark);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.nav-brand-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Navigation Links & Mobile Toggle */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--rr-navy);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--rr-navy);
  transition: color 0.2s ease;
  padding: 0.35rem 0.2rem;
}

.nav-link:hover {
  color: var(--rr-gold-dark);
}

.nav-link-portal {
  color: var(--rr-gold-dark);
  font-weight: 700;
  background: rgba(245, 158, 11, 0.12);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.nav-link-portal:hover {
  background: rgba(245, 158, 11, 0.2);
}

.nav-btn {
  background: var(--rr-navy);
  color: #ffffff;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-btn:hover {
  background: var(--rr-navy-light);
  box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--rr-navy-dark) 0%, var(--rr-navy) 60%, var(--rr-navy-light) 100%);
  color: #ffffff;
  padding: 4rem 1.5rem 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--rr-gold) 0%, var(--rr-red) 50%, var(--rr-blue-light) 100%);
}

.hero-container {
  max-width: 850px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-emblem {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35));
  animation: emblem-subtle-glow 3s ease-in-out infinite alternate;
}

@keyframes emblem-subtle-glow {
  0% { transform: scale(1); }
  100% { transform: scale(1.03); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--rr-gold-light);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.hero-title span {
  color: var(--rr-gold-light);
}

.hero-tagline {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: #e2e8f0;
  max-width: 650px;
  margin: 0 auto 2rem;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-gold {
  background: linear-gradient(135deg, var(--rr-gold-light), var(--rr-gold));
  color: var(--rr-navy-dark);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #fcd34d, var(--rr-gold-light));
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.4);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* Main Content Wrapper */
.content-wrapper {
  max-width: 1100px;
  margin: -1.75rem auto 3rem;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
  width: 100%;
}

/* Quick Info Strip Card */
.info-strip {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(18, 43, 77, 0.06);
  color: var(--rr-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.info-title {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.info-text {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.4;
}

/* Cards Section */
.section-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--rr-navy-dark);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Two Column Layout */
.grid-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-box-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.feature-box-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--rr-gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.feature-box-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--rr-navy);
}

.feature-box p {
  color: var(--text-body);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

/* The 4 Growth Areas (Gold Points) */
.growth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.growth-card {
  background: #ffffff;
  border-top: 4px solid var(--rr-gold);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.growth-card.red-border {
  border-top-color: var(--rr-red);
}

.growth-card.blue-border {
  border-top-color: var(--rr-blue);
}

.growth-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--rr-navy-dark);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.growth-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Ranger Code List */
.code-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
  list-style: none;
  margin-top: 1rem;
}

.code-item {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--rr-navy);
  letter-spacing: 0.02em;
}

/* Outpost Location & Church Contact Card */
.location-card {
  background: linear-gradient(135deg, #ffffff 0%, var(--bg-card-alt) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

.location-details {
  max-width: 580px;
}

.location-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--rr-navy);
  margin-bottom: 0.5rem;
}

.location-address {
  font-size: 0.95rem;
  color: var(--text-body);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.location-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--rr-blue);
  text-decoration: none;
  font-size: 0.95rem;
}

.location-phone:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background: var(--rr-navy-dark);
  color: #94a3b8;
  padding: 2.5rem 1.5rem 1.5rem;
  margin-top: auto;
  font-size: 0.85rem;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  font-weight: 700;
  color: #ffffff;
  font-size: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  text-align: center;
  font-size: 0.78rem;
  color: #64748b;
}

/* Toast */
#toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--rr-navy-dark);
  color: #ffffff;
  border-left: 4px solid var(--rr-gold);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
  pointer-events: none;
}

#toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive Mobile Styles */
@media (max-width: 840px) {
  .top-announcement {
    font-size: 0.76rem;
    padding: 0.4rem 0.75rem;
    line-height: 1.35;
  }

  .navbar {
    padding: 0.75rem 1rem;
    padding-top: max(0.75rem, env(safe-area-inset-top));
    position: sticky;
    top: 0;
  }

  .navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
  }

  .nav-brand-title {
    font-size: 1.02rem;
  }

  .nav-brand-subtitle {
    font-size: 0.7rem;
  }

  .nav-logo-icon {
    width: 36px;
    height: 36px;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: -1rem;
    right: -1rem;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 2px solid var(--rr-gold);
    box-shadow: 0 14px 28px rgba(18, 43, 77, 0.16);
    padding: 0.5rem 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 99;
  }

  .nav-links.open {
    max-height: 380px;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
  }

  .nav-link-portal {
    background: rgba(245, 158, 11, 0.08);
    border: none;
    border-radius: 0;
    color: var(--rr-gold-dark);
  }

  .nav-btn {
    margin: 0.75rem 1.25rem 0.5rem;
    text-align: center;
    display: block;
    padding: 0.75rem;
  }

  .hero {
    padding: 2.5rem 1rem 3rem;
  }

  .hero-emblem {
    width: 85px;
    height: 85px;
    margin-bottom: 1.1rem;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
    margin-bottom: 1rem;
  }

  .hero-title {
    font-size: clamp(1.75rem, 6.8vw, 2.3rem);
    margin-bottom: 0.6rem;
  }

  .hero-tagline {
    font-size: 0.95rem;
    margin-bottom: 1.6rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 320px;
    min-height: 48px;
    font-size: 0.92rem;
  }

  .content-wrapper {
    margin-top: -1.25rem;
    padding: 0 1rem;
  }

  .info-strip {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    padding: 1.2rem;
  }

  .info-item {
    gap: 0.85rem;
  }

  .grid-two-col {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .feature-box {
    padding: 1.35rem;
  }

  .growth-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .code-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .location-card {
    flex-direction: column;
    align-items: stretch;
    padding: 1.35rem;
    gap: 1.25rem;
  }

  .location-card .btn {
    width: 100%;
    min-height: 46px;
  }

  .footer {
    padding: 2rem 1rem;
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-links {
    justify-content: center;
    gap: 0.85rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.7rem;
  }
  .section-title {
    font-size: 1.45rem;
  }
}
