/* ==================================================================
   PEMCO – Peoples Multi-purpose Cooperative Society
   Premium Single-Page Website Styles
   ================================================================== */

/* ── Google Fonts ─────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ── CSS Custom Properties ────────────────────────────────────────── */
:root {
  /* Primary Palette – Cooperative Green */
  --primary: #0d7c3d;
  --primary-dark: #065a2b;
  --primary-light: #12a14f;
  --primary-gradient: linear-gradient(135deg, #0d7c3d 0%, #12a14f 50%, #1ec465 100%);

  /* Accent Palette – Trust Blue */
  --accent: #1a5276;
  --accent-light: #2980b9;

  /* Gold – Warmth / Achievement */
  --gold: #d4a017;
  --gold-light: #f0c040;

  /* Neutrals */
  --bg: #ffffff;
  --bg-alt: #f4f7f5;
  --bg-dark: #0a1f12;
  --text: #1a2e22;
  --text-muted: #5a6e63;
  --text-light: #8fa398;
  --border: #d5ddd8;

  /* Glass */
  --glass-bg: rgba(255,255,255,0.72);
  --glass-border: rgba(255,255,255,0.25);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(13,124,61,0.06);
  --shadow-md: 0 8px 30px rgba(13,124,61,0.10);
  --shadow-lg: 0 20px 60px rgba(13,124,61,0.12);
  --shadow-xl: 0 30px 80px rgba(10,31,18,0.18);

  /* Layout */
  --max-w: 1280px;
  --nav-h: 72px;
  --radius: 16px;
  --radius-sm: 8px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ────────────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; }

/* ── Utility ──────────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 100px 0; }

.section-header { text-align: center; margin-bottom: 64px; }
.section-header .overline {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
  display: block;
}
.section-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
}
.section-header p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 17px;
}

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(13,124,61,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(13,124,61,0.4);
}
.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.btn-white {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ==================================================================
   NAVBAR
   ================================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: all 0.35s var(--ease);
  background: transparent;
}
.navbar.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo .nav-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.nav-logo .nav-logo-img.small-screen {
  display: none;
}
.nav-logo .logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--text);
}
.navbar:not(.scrolled) .nav-logo .logo-text {
  color: #fff;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-weight: 500;
  font-size: 15px;
  position: relative;
  transition: color 0.3s var(--ease);
  color: var(--text-muted);
}
.navbar:not(.scrolled) .nav-links a {
  color: rgba(255,255,255,0.85);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}
.navbar:not(.scrolled) .nav-links a:hover,
.navbar:not(.scrolled) .nav-links a.active {
  color: var(--gold-light);
}
.navbar:not(.scrolled) .nav-links a:hover::after,
.navbar:not(.scrolled) .nav-links a.active::after {
  background: var(--gold-light);
}

/* Nav Social */
.nav-social {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: rgba(13,124,61,0.08);
  color: var(--primary);
  transition: all 0.3s var(--ease);
}
.navbar:not(.scrolled) .nav-social a {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.nav-social a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 8px;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 4px;
  transition: all 0.3s var(--ease);
}
.navbar:not(.scrolled) .nav-toggle span {
  background: #fff;
}
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--bg);
  z-index: 999;
  padding: 100px 32px 40px;
  transition: right 0.4s var(--ease);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
}
.mobile-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: all 0.3s var(--ease);
}
.mobile-close:hover {
  background: rgba(0,0,0,0.06);
  color: var(--primary);
}
.mobile-menu.open { right: 0; }
.mobile-menu a {
  font-size: 18px;
  font-weight: 500;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  display: block;
  color: var(--text);
  transition: color 0.3s var(--ease);
}
.mobile-menu a:hover { color: var(--primary); }
.mobile-social {
  display: flex;
  gap: 16px;
  margin-top: auto;
  padding-top: 24px;
}
.mobile-social a {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13,124,61,0.08);
  color: var(--primary);
  font-size: 18px;
  border: none;
  padding: 0;
  transition: all 0.3s var(--ease);
}
.mobile-social a:hover {
  background: var(--primary);
  color: #fff;
}
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
}
.mobile-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* ==================================================================
   HERO
   ================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,31,18,0.88) 0%, rgba(13,124,61,0.65) 100%);
}
.hero .container {
  position: relative;
  z-index: 1;
  padding-top: 120px;
  padding-bottom: 80px;
}
.hero-content { max-width: 680px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-content h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 24px;
}
.hero-content h1 span {
  background: linear-gradient(135deg, var(--gold-light), #ffd966);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-content p {
  font-size: 18px;
  color: rgba(255,255,255,0.78);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 560px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--gold-light);
}
.hero-stat p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: bounce-down 2s infinite;
}
.scroll-indicator .chevron {
  width: 28px; height: 28px;
  border-right: 2px solid rgba(255,255,255,0.5);
  border-bottom: 2px solid rgba(255,255,255,0.5);
  transform: rotate(45deg);
}
@keyframes bounce-down {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ==================================================================
   ABOUT
   ================================================================== */
.about { background: var(--bg); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.about-image img {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.about-image .experience-badge {
  position: absolute;
  bottom: 24px; right: 24px;
  background: var(--primary-gradient);
  color: #fff;
  padding: 20px 28px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.experience-badge h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
}
.experience-badge p { font-size: 13px; opacity: 0.85; }

.about-text h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}
.about-text p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 16px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
.about-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
}
.about-feature .icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(13,124,61,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 18px;
  flex-shrink: 0;
}
.about-feature span {
  font-weight: 600;
  font-size: 14px;
}

/* ==================================================================
   SERVICES
   ================================================================== */
.services { background: var(--bg-alt); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.service-card .card-image {
  height: 220px;
  overflow: hidden;
}
.service-card .card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.service-card:hover .card-image img {
  transform: scale(1.08);
}
.service-card .card-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-card .card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(13,124,61,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 24px;
  margin-bottom: 18px;
  margin-top: -46px;
  position: relative;
  z-index: 1;
  background: var(--bg);
  border: 3px solid var(--bg);
  box-shadow: var(--shadow-sm);
}
.service-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}
.service-card p {
  color: var(--text-muted);
  font-size: 15px;
  flex: 1;
  margin-bottom: 20px;
}
.service-card .learn-more {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s var(--ease);
}
.service-card:hover .learn-more { gap: 12px; }

/* Center the last row */
/* Center the last row of 2 items */
.services-bottom-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 28px auto 0;
}

/* ==================================================================
   JOURNEY INFOGRAPHIC
   ================================================================== */
.journey {
  background: linear-gradient(160deg, #061a0e 0%, #0a2d16 30%, #0d3d1f 60%, #082c14 100%);
  padding: 100px 0 120px;
  position: relative;
  overflow: hidden;
}

/* Floating Particles */
.journey-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: particle-float linear infinite;
}
.p1 { width: 6px; height: 6px; background: rgba(240,192,64,0.5); left: 8%; animation-duration: 14s; animation-delay: 0s; }
.p2 { width: 4px; height: 4px; background: rgba(30,196,101,0.4); left: 22%; animation-duration: 18s; animation-delay: 2s; }
.p3 { width: 8px; height: 8px; background: rgba(240,192,64,0.3); left: 38%; animation-duration: 16s; animation-delay: 4s; }
.p4 { width: 5px; height: 5px; background: rgba(30,196,101,0.5); left: 55%; animation-duration: 20s; animation-delay: 1s; }
.p5 { width: 3px; height: 3px; background: rgba(255,255,255,0.3); left: 68%; animation-duration: 15s; animation-delay: 3s; }
.p6 { width: 7px; height: 7px; background: rgba(240,192,64,0.25); left: 80%; animation-duration: 17s; animation-delay: 5s; }
.p7 { width: 4px; height: 4px; background: rgba(30,196,101,0.4); left: 92%; animation-duration: 19s; animation-delay: 2.5s; }
.p8 { width: 5px; height: 5px; background: rgba(255,255,255,0.2); left: 45%; animation-duration: 22s; animation-delay: 6s; }

@keyframes particle-float {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-100px) scale(1.5); opacity: 0; }
}

/* Timeline Wrapper */
.timeline-wrapper {
  position: relative;
  padding: 20px 0;
}
.timeline-line {
  position: absolute;
  top: 38px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  z-index: 0;
}
.timeline-line-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-light), var(--primary-light), var(--gold-light));
  border-radius: 4px;
  transition: width 2s cubic-bezier(0.22, 1, 0.36, 1);
}
.timeline-wrapper.visible .timeline-line-fill {
  width: 100%;
}

/* Timeline Nodes */
.timeline-nodes {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.timeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s var(--ease);
}
.timeline-wrapper.visible .timeline-node {
  opacity: 1;
  transform: translateY(0);
}
.timeline-wrapper.visible .timeline-node:nth-child(1) { transition-delay: 0.2s; }
.timeline-wrapper.visible .timeline-node:nth-child(2) { transition-delay: 0.5s; }
.timeline-wrapper.visible .timeline-node:nth-child(3) { transition-delay: 0.8s; }
.timeline-wrapper.visible .timeline-node:nth-child(4) { transition-delay: 1.1s; }
.timeline-wrapper.visible .timeline-node:nth-child(5) { transition-delay: 1.4s; }

/* Node Dot */
.node-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(13,124,61,0.4);
}
.node-dot.active-node {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  box-shadow: 0 0 30px rgba(240,192,64,0.5);
}
.node-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(13,124,61,0.4);
  animation: node-pulse-anim 2.5s ease-out infinite;
}
.node-dot.active-node .node-pulse {
  border-color: rgba(240,192,64,0.4);
}
@keyframes node-pulse-anim {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Node Card */
.node-card {
  text-align: center;
  padding: 18px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  max-width: 180px;
  transition: all 0.3s var(--ease);
}
.timeline-node:hover .node-card {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-4px);
}
.node-year {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}
.node-card h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.node-card p {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

/* ── Orbiting Sector Icons ────────────────────────────────────────── */
.sector-orbit {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 320px;
}
.orbit-center {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.orbit-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 0 40px rgba(13,124,61,0.5);
  overflow: hidden;
}
.orbit-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}
.orbit-center span {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.65);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.orbit-ring {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.1);
  animation: orbit-spin 40s linear infinite;
}
.orbit-item {
  position: absolute;
  top: 50%;
  left: 50%;
  --angle: calc(360deg / var(--total) * var(--i));
  transform: rotate(var(--angle)) translateX(150px) rotate(calc(-1 * var(--angle)));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: orbit-counter-spin 40s linear infinite;
}
.orbit-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  transition: all 0.3s var(--ease);
}
.orbit-item:hover .orbit-icon {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 0 20px rgba(13,124,61,0.4);
  transform: scale(1.15);
}
.orbit-item span {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
}

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes orbit-counter-spin {
  from { transform: rotate(var(--angle)) translateX(150px) rotate(calc(-1 * var(--angle) + 0deg)); }
  to   { transform: rotate(var(--angle)) translateX(150px) rotate(calc(-1 * var(--angle) - 360deg)); }
}

/* ── Journey Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .orbit-ring { width: 260px; height: 260px; }
  .orbit-item { transform: rotate(var(--angle)) translateX(130px) rotate(calc(-1 * var(--angle))); }
  @keyframes orbit-counter-spin {
    from { transform: rotate(var(--angle)) translateX(130px) rotate(calc(-1 * var(--angle) + 0deg)); }
    to   { transform: rotate(var(--angle)) translateX(130px) rotate(calc(-1 * var(--angle) - 360deg)); }
  }
}

@media (max-width: 768px) {
  .journey { padding: 72px 0 80px; }

  /* Stack timeline vertically */
  .timeline-nodes {
    flex-direction: column;
    gap: 8px;
  }
  .timeline-line {
    top: 0; bottom: 0;
    left: 22px; right: auto;
    width: 3px;
    height: 100%;
  }
  .timeline-line-fill { width: 100% !important; height: 0; }
  .timeline-wrapper.visible .timeline-line-fill { height: 100%; width: 100% !important; }
  .timeline-node {
    flex-direction: row;
    align-items: flex-start;
    gap: 18px;
  }
  .node-dot { margin-bottom: 0; flex-shrink: 0; }
  .node-card { text-align: left; max-width: 100%; }

  /* Smaller orbit */
  .sector-orbit { height: 260px; }
  .orbit-ring { width: 220px; height: 220px; }
  .orbit-item { transform: rotate(var(--angle)) translateX(110px) rotate(calc(-1 * var(--angle))); }
  .orbit-icon { width: 40px; height: 40px; }
  .orbit-logo { width: 56px; height: 56px; font-size: 22px; }
  @keyframes orbit-counter-spin {
    from { transform: rotate(var(--angle)) translateX(110px) rotate(calc(-1 * var(--angle) + 0deg)); }
    to   { transform: rotate(var(--angle)) translateX(110px) rotate(calc(-1 * var(--angle) - 360deg)); }
  }
}

@media (max-width: 480px) {
  .sector-orbit { height: 220px; }
  .orbit-ring { width: 180px; height: 180px; }
  .orbit-item { transform: rotate(var(--angle)) translateX(90px) rotate(calc(-1 * var(--angle))); }
  .orbit-icon { width: 36px; height: 36px; border-radius: 10px; }
  .orbit-item span { font-size: 9px; }
  .orbit-logo { width: 48px; height: 48px; font-size: 18px; }
  @keyframes orbit-counter-spin {
    from { transform: rotate(var(--angle)) translateX(90px) rotate(calc(-1 * var(--angle) + 0deg)); }
    to   { transform: rotate(var(--angle)) translateX(90px) rotate(calc(-1 * var(--angle) - 360deg)); }
  }
}

/* ==================================================================
   WHY CHOOSE US
   ================================================================== */
.why-us { background: var(--bg); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.why-card {
  padding: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.4s var(--ease);
  text-align: center;
}
.why-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.why-card .why-icon {
  width: 68px; height: 68px;
  border-radius: 20px;
  background: rgba(13,124,61,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 28px;
  margin: 0 auto 22px;
  transition: all 0.3s var(--ease);
}
.why-card:hover .why-icon {
  background: var(--primary-gradient);
  color: #fff;
}
.why-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}
.why-card p {
  color: var(--text-muted);
  font-size: 15px;
}

/* ==================================================================
   CTA BANNER
   ================================================================== */
.cta-banner {
  background: var(--bg-dark);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(13,124,61,0.15);
  top: -250px; right: -100px;
  filter: blur(80px);
}
.cta-banner h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  position: relative;
}
.cta-banner p {
  color: rgba(255,255,255,0.7);
  font-size: 17px;
  max-width: 520px;
  margin: 0 auto 36px;
  position: relative;
}
.cta-banner .btn { position: relative; }

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

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
}

/* Form */
.contact-form {
  background: var(--bg);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.contact-form h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
}
.contact-form .form-subtitle {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 15px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  transition: all 0.3s var(--ease);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(13,124,61,0.08);
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* Custom validation errors */
.field-error {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 4px rgba(220,53,69,0.08) !important;
}
.error-msg {
  display: block;
  color: #dc3545;
  font-size: 12.5px;
  font-weight: 500;
  margin-top: 6px;
  animation: error-fade-in 0.3s var(--ease);
}
.form-error {
  background: rgba(220,53,69,0.08);
  color: #dc3545;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-top: 16px;
  border: 1px solid rgba(220,53,69,0.2);
  animation: error-fade-in 0.3s var(--ease);
}
@keyframes error-fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.form-submit { width: 100%; padding: 16px; font-size: 16px; }

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.form-success.show { display: block; }
.form-success .success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(13,124,61,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 32px;
  margin: 0 auto 20px;
}
.form-success h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.form-success p { color: var(--text-muted); }

/* Contact Info */
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-info .info-card { flex: 1; }

.info-card {
  background: var(--bg);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.info-card h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.info-card h4 .icon {
  color: var(--primary);
  font-size: 20px;
}
.info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
}
.info-item:not(:last-child) {
  border-bottom: 1px solid var(--border);
}
.contact-social-inline ~ .info-item,
.info-item:has(+ .contact-social-inline) {
  border-bottom: none;
}
.info-item .info-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(13,124,61,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 18px;
  flex-shrink: 0;
}
.info-item .info-text h5 {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}
.info-item .info-text p {
  color: var(--text-muted);
  font-size: 14px;
}
.info-item .info-text a {
  color: var(--primary);
  transition: color 0.3s var(--ease);
}
.info-item .info-text a:hover { color: var(--primary-dark); }

/* Social in contact */
.contact-social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.contact-social a {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: rgba(13,124,61,0.08);
  color: var(--primary);
  transition: all 0.3s var(--ease);
}
.contact-social a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

/* Inline social inside info card */
.contact-social-inline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.contact-social-inline span {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
}
.contact-social-inline .contact-social {
  margin-top: 0;
}

/* Map */
.map-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.map-card iframe {
  width: 100%;
  height: 300px;
  border: none;
}

/* ==================================================================
   FOOTER
   ================================================================== */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 20px;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  transition: all 0.3s var(--ease);
}
.footer-social a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.footer-col h4 {
  font-family: 'Outfit', sans-serif;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}
.footer-col a:hover { color: var(--primary-light); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 14px;
}

/* ==================================================================
   SCROLL ANIMATIONS
   ================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================================================================
   RESPONSIVE
   ================================================================== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-bottom-row { grid-template-columns: 1fr; max-width: 440px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .section-padding { padding: 72px 0; }

  /* Navbar mobile */
  .nav-links, .nav-social { display: none; }
  .nav-toggle { display: flex; }
  .nav-logo .nav-logo-img:not(.small-screen) { display: none; }
  .nav-logo .nav-logo-img.small-screen { display: block; }

  /* Hero */
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .hero-stat h3 { font-size: 28px; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-features { grid-template-columns: 1fr; }

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

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

  /* Why */
  .why-grid { grid-template-columns: 1fr; }

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

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-content h1 { font-size: 32px; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 16px; }
  .hero-stat { flex: 1; min-width: 100px; }
  .stat-item .stat-number { font-size: 38px; }
  .contact-form { padding: 24px; }
}
