/* ===================================================
   RBN – Referrals Business Network | styles.css
   =================================================== */

/* ===== CSS VARIABLES ===== */
:root {
  --blue: #1e4d8c;
  --green: #4db848;
  --light-blue: #2d7dd2;
  --white: #ffffff;
  --light-gray: #f5f7fa;
  --dark: #1a2332;
  --dark-blue: #162040;
  --text: #2c3e50;
  --text-light: #6b7280;
  --border: #e5e9f0;
  --shadow: 0 4px 24px rgba(30, 77, 140, 0.10);
  --shadow-hover: 0 12px 40px rgba(30, 77, 140, 0.18);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

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

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

ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  text-align: center;
}

.btn-green {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-green:hover {
  background: #3da038;
  border-color: #3da038;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(77, 184, 72, 0.4);
}

.btn-blue-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--light-blue);
}
.btn-blue-outline:hover {
  background: var(--light-blue);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-white-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-white-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
}
.btn-white:hover {
  background: transparent;
  color: var(--white);
  transform: translateY(-2px);
}

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

.full-width { width: 100%; justify-content: center; }
.mt-2 { margin-top: 24px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
}

.navbar.scrolled {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(30, 77, 140, 0.12);
  padding: 10px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}

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

.nav-link {
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--white);
  transition: all var(--transition);
}

.navbar.scrolled .nav-link { color: var(--text); }

.nav-link:hover {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.navbar.scrolled .nav-link:hover {
  background: var(--light-gray);
  color: var(--blue);
}

.nav-cta {
  background: var(--green);
  color: var(--white) !important;
  font-weight: 600;
}
.nav-cta:hover {
  background: #3da038 !important;
  color: var(--white) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.navbar.scrolled .hamburger span { background: var(--dark); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-badge {
  display: inline-block;
  background: rgba(77, 184, 72, 0.12);
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.section-badge.light {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.section-heading {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-heading.light { color: var(--white); }

.section-sub {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
}
.section-sub.light { color: rgba(255,255,255,0.75); }

/* ===== ANIMATIONS ===== */
.fade-up, .fade-left, .fade-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up { transform: translateY(40px); }
.fade-left { transform: translateX(-40px); }
.fade-right { transform: translateX(40px); }

.fade-up.visible,
.fade-left.visible,
.fade-right.visible {
  opacity: 1;
  transform: none;
}

/* Delay utility */
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }
.fade-up:nth-child(6) { transition-delay: 0.5s; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d?w=1920&q=80') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(22, 32, 64, 0.88) 0%, rgba(30, 77, 140, 0.75) 50%, rgba(22, 32, 64, 0.88) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 100px;
  padding-bottom: 60px;
  max-width: 840px;
}

.hero-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.hero-tags span {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}
.tag-dot { color: var(--green); font-size: 1.2rem; }

.hero-heading {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.highlight-green { color: var(--green); }

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  max-width: 680px;
  margin-bottom: 40px;
  line-height: 1.8;
}

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

.hero-phones {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
}
.hero-phones svg { stroke: var(--green); flex-shrink: 0; }

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-dot {
  width: 28px;
  height: 48px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 20px;
  position: relative;
  cursor: pointer;
}
.scroll-dot::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 10px;
  background: var(--green);
  border-radius: 3px;
  animation: scrollDot 2s infinite;
}
@keyframes scrollDot {
  0% { top: 6px; opacity: 1; }
  100% { top: 28px; opacity: 0; }
}

/* ===== INTRO ===== */
.intro { background: var(--white); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.col-text p {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.8;
}

.col-text .section-heading {
  margin-bottom: 24px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
}
.image-frame img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
}
.image-frame.small img { height: 380px; }

.image-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-hover);
}
.badge-icon { font-size: 2rem; }
.badge-title { font-weight: 700; font-size: 0.95rem; color: var(--dark); }
.badge-sub { font-size: 0.8rem; color: var(--text-light); }

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

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

.stat-number {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--blue);
  display: inline-block;
}

.stat-plus {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--green);
  vertical-align: top;
  margin-top: 6px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 600;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== BENEFITS ===== */
.benefits { background: var(--light-gray); }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.benefit-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: all var(--transition);
  cursor: default;
}
.benefit-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
}

.benefit-icon {
  font-size: 2.4rem;
  margin-bottom: 20px;
  display: block;
}

.benefit-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.benefit-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== HOW IT WORKS ===== */
.how-it-works { background: var(--white); }

.steps-timeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
  overflow-x: auto;
}

.step {
  flex: 1;
  min-width: 180px;
  text-align: center;
  padding: 0 16px;
}

.step-badge {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--green), #3da038);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--white);
  margin: 0 auto 20px;
  box-shadow: 0 6px 20px rgba(77, 184, 72, 0.35);
  position: relative;
  z-index: 2;
}

.step-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.step-content p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}

.step-connector {
  flex: 0 0 40px;
  height: 2px;
  background: linear-gradient(to right, var(--green), var(--light-blue));
  margin-top: 32px;
  border-radius: 2px;
}

/* ===== WHY RBN ===== */
.why-rbn { background: var(--dark-blue); overflow: hidden; }

.why-rbn-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

.why-rbn-text {
  padding: 100px 80px 100px 0;
  max-width: 580px;
  margin-left: auto;
  padding-left: 24px;
}

.why-rbn-text .section-heading {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 16px;
}

.why-tagline {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 36px;
  font-style: italic;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}

.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  line-height: 1.5;
}

.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.why-quote {
  border-left: 3px solid var(--green);
  padding-left: 20px;
  color: rgba(255,255,255,0.7);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
}

.why-rbn-image {
  overflow: hidden;
}
.why-rbn-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.why-rbn-image:hover img { transform: scale(1.04); }

/* ===== TESTIMONIALS ===== */
.testimonials { background: var(--light-gray); }

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

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--blue);
  transition: all var(--transition);
  position: relative;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.quote-mark {
  font-size: 5rem;
  color: var(--blue);
  opacity: 0.12;
  line-height: 1;
  font-family: Georgia, serif;
  position: absolute;
  top: 16px;
  left: 24px;
}

.quote-text {
  font-style: italic;
  color: var(--text);
  font-size: 0.97rem;
  line-height: 1.8;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--blue), var(--light-blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.author-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
}

.author-biz {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--green) 0%, var(--light-blue) 50%, var(--blue) 100%);
  padding: 90px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::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.04'%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");
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
}

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

/* ===== ABOUT ===== */
.about { background: var(--white); }

.about-tabs { margin-top: 0; }

.tab-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 48px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 12px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-light);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
  border-radius: 8px 8px 0 0;
}
.tab-btn:hover { color: var(--blue); }
.tab-btn.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
  background: rgba(30, 77, 140, 0.05);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* Mission/Vision */
.mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.mv-card {
  padding: 48px 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.mv-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.mv-card.mission { background: linear-gradient(135deg, var(--blue), var(--dark-blue)); color: var(--white); }
.mv-card.vision { background: linear-gradient(135deg, var(--green), #3da038); color: var(--white); }

.mv-icon { font-size: 2.8rem; margin-bottom: 20px; }

.mv-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.mv-card p {
  opacity: 0.88;
  line-height: 1.8;
  font-size: 0.97rem;
  margin-bottom: 12px;
}

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--light-gray);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  border: 2px solid transparent;
  transition: all var(--transition);
}
.value-card:hover {
  border-color: var(--green);
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.value-icon { font-size: 2.4rem; margin-bottom: 16px; }

.value-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.value-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Story timeline */
.story-content { max-width: 720px; margin: 0 auto; }

.story-timeline {
  position: relative;
  padding-left: 40px;
}
.story-timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--green), var(--blue));
}

.story-milestone {
  position: relative;
  margin-bottom: 48px;
}
.story-milestone:last-child { margin-bottom: 0; }

.milestone-dot {
  position: absolute;
  left: -34px;
  top: 6px;
  width: 20px;
  height: 20px;
  background: var(--white);
  border: 3px solid var(--green);
  border-radius: 50%;
}

.milestone-date {
  display: inline-block;
  background: rgba(77, 184, 72, 0.12);
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.milestone-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.milestone-content p {
  color: var(--text-light);
  line-height: 1.8;
}

/* ===== SERVICES ===== */
.services { background: var(--light-gray); }

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

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border-bottom: 4px solid transparent;
}
.service-card:hover {
  border-bottom-color: var(--green);
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
}

.service-icon { font-size: 2.8rem; margin-bottom: 20px; }

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.7;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text);
}
.service-list li::before {
  content: '→';
  color: var(--blue);
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== MEMBERSHIP ===== */
.membership {
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--blue) 100%);
}
.membership .section-heading { color: var(--white); }
.membership .section-badge { background: rgba(255,255,255,0.12); color: var(--white); }

.membership-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.membership-benefits h3,
.join-process h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 28px;
}

.membership-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.membership-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  line-height: 1.5;
}

.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Join steps */
.join-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.join-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  padding-bottom: 36px;
}
.join-step:last-child { padding-bottom: 0; }
.join-step::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  width: 2px;
  height: calc(100% - 40px);
  background: rgba(255,255,255,0.2);
}
.join-step:last-child::after { display: none; }

.join-step-num {
  width: 40px;
  height: 40px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--white);
  font-size: 0.95rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.join-step-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.join-step-info p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

/* ===== FAQ ===== */
.faq { background: var(--light-gray); }

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark);
  text-align: left;
  transition: all var(--transition);
  gap: 16px;
}
.faq-question:hover { color: var(--blue); }
.faq-item.active .faq-question { color: var(--blue); }

.faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--light-gray);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--blue);
  transition: all var(--transition);
  flex-shrink: 0;
}
.faq-item.active .faq-icon {
  background: var(--blue);
  color: var(--white);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 28px 24px;
  color: var(--text-light);
  font-size: 0.97rem;
  line-height: 1.8;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* ===== CONTACT ===== */
.contact { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
}

.contact-info h3,
.contact-form h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(30, 77, 140, 0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 4px;
}

.contact-value {
  font-size: 0.97rem;
  color: var(--text);
  margin-bottom: 2px;
}
.contact-value a { color: var(--blue); }
.contact-value a:hover { color: var(--green); }

.contact-tagline {
  background: linear-gradient(135deg, rgba(30,77,140,0.06), rgba(77,184,72,0.06));
  border-radius: var(--radius);
  border-left: 3px solid var(--green);
  padding: 20px 24px;
  margin-top: 32px;
}
.contact-tagline p {
  font-style: italic;
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.6;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
}
.form-group:not(:last-child) { margin-bottom: 0; }

label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

input, textarea {
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  transition: all var(--transition);
  outline: none;
  width: 100%;
  resize: none;
}
input:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 77, 140, 0.1);
}

.contact-form .form-group { margin-bottom: 20px; }
.contact-form .form-row .form-group { margin-bottom: 0; }

.form-success {
  display: none;
  margin-top: 16px;
  padding: 16px 20px;
  background: rgba(77, 184, 72, 0.1);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  color: #2d7a29;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
}
.form-success.visible { display: block; }

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding-top: 80px;
  padding-bottom: 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 80px;
  margin-bottom: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  margin-bottom: 16px;
}

.footer-logo-img {
  height: 64px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

.footer-tagline {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.6);
}

.footer-phones {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-phones a {
  color: rgba(255,255,255,0.65);
  font-size: 0.92rem;
  transition: color var(--transition);
}
.footer-phones a:hover { color: var(--green); }

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

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

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--green); }

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

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(30, 77, 140, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 999;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: var(--green);
  transform: translateY(-4px);
}

/* ===== RESPONSIVE ===== */

/* Large tablets */
@media (max-width: 1024px) {
  .two-col { gap: 48px; }
  .why-rbn-text { padding: 80px 48px 80px 24px; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-timeline { gap: 0; }
}

/* Tablets */
@media (max-width: 768px) {
  .section { padding: 72px 0; }

  /* Nav */
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 280px;
    background: var(--dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 40px;
    gap: 8px;
    transition: right var(--transition);
    box-shadow: -8px 0 40px rgba(0,0,0,0.3);
    z-index: 999;
  }
  .nav-links.open { right: 0; }
  .nav-link { color: var(--white) !important; font-size: 1.1rem; padding: 12px 16px; width: 100%; }
  .nav-cta { background: var(--green); }

  /* Hero */
  .hero-heading { font-size: 2rem; }
  .hero-buttons { flex-direction: column; align-items: flex-start; }
  .hero-buttons .btn { width: 100%; max-width: 280px; justify-content: center; }

  /* Two col */
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .col-image { order: -1; }
  .image-frame img { height: 300px; }
  .image-badge { left: 0; bottom: -16px; }

  /* Stats */
  .stats-row { grid-template-columns: repeat(2, 1fr); }

  /* Benefits */
  .benefits-grid { grid-template-columns: 1fr; }

  /* Steps */
  .steps-timeline {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 24px;
    position: relative;
  }
  .steps-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 32px;
    bottom: 32px;
    width: 2px;
    background: linear-gradient(to bottom, var(--green), var(--light-blue));
  }
  .step { text-align: left; display: flex; align-items: flex-start; gap: 20px; min-width: unset; width: 100%; padding: 0 0 40px; }
  .step-badge { flex-shrink: 0; margin: 0; }
  .step-connector { display: none; }

  /* Why RBN */
  .why-rbn-inner { grid-template-columns: 1fr; }
  .why-rbn-text { padding: 60px 24px; max-width: 100%; margin: 0; }
  .why-rbn-image { height: 300px; }
  .why-rbn-image img { height: 300px; }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr; }

  /* About tabs */
  .tab-buttons { overflow-x: auto; }
  .mission-vision-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }

  /* Membership */
  .membership-content { grid-template-columns: 1fr; gap: 48px; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: 48px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* Mobile */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 60px 0; }

  .hero-heading { font-size: 1.7rem; letter-spacing: -0.5px; }
  .hero-sub { font-size: 1rem; }
  .hero-tags { gap: 4px; }
  .hero-tags span { font-size: 0.85rem; }

  .logo-sub { display: none; }

  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-number { font-size: 2rem; }

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

  .benefit-card, .service-card { padding: 28px 20px; }
  .testimonial-card { padding: 28px 20px; }

  .tab-btn { padding: 10px 16px; font-size: 0.88rem; }

  .footer-links { grid-template-columns: 1fr; }
  .footer-logo-img { height: 48px; }

  .back-to-top { bottom: 20px; right: 20px; width: 42px; height: 42px; }

  .cta-banner { padding: 64px 0; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons .btn { width: 100%; max-width: 240px; justify-content: center; }
}
