/* =========================================================
   Sarvodaya Group — Shared Stylesheet
   ========================================================= */

:root {
  --navy: #1c2d4f;
  --navy-light: #2d4270;
  --orange: #f4892c;
  --orange-light: #ffb27a;
  --cream: #f7efe2;
  --cream-dark: #efe2cd;
  --white: #ffffff;
  --text: #3a3f4b;
  --text-light: #6b7280;
  --shadow: 0 10px 30px rgba(28, 45, 79, 0.08);
  --radius: 14px;
  --max-width: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', 'Segoe UI', sans-serif; color: var(--text); background: var(--white); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; color: var(--navy); font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: 2px; font-size: 0.78rem; font-weight: 700; color: var(--orange); margin-bottom: 12px; }
.section { padding: 80px 0; }
.section--cream { background: var(--cream); }
.section-head { max-width: 720px; margin: 0 auto 50px; text-align: center; }
.section-head p { color: var(--text-light); margin-top: 14px; font-size: 1.05rem; }
.divider { width: 64px; height: 4px; background: var(--orange); border-radius: 2px; margin: 16px auto 0; }

/* ===== HEADER ===== */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--cream-dark); }
.navbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; max-width: var(--max-width); margin: 0 auto; }
.brand img { height: 44px; }
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a { font-weight: 600; font-size: 0.93rem; color: var(--navy); position: relative; padding: 6px 0; transition: color 0.2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--orange); transition: width 0.25s; }
.nav-links a:hover, .nav-links a.active { color: var(--orange); }
.nav-links a.active::after, .nav-links a:hover::after { width: 100%; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; }
.nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 2px; }

/* ===== HERO ===== */
.hero { position: relative; background: linear-gradient(140deg, var(--cream) 0%, var(--cream-dark) 100%); overflow: hidden; padding: 70px 0 60px; }
.hero .container { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.hero-content h1 { margin-bottom: 18px; }
.hero-content p { font-size: 1.05rem; color: var(--text-light); max-width: 500px; margin-bottom: 28px; }
.btn-group { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: 50px; font-weight: 600; font-size: 0.93rem; transition: all 0.25s; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--orange); color: var(--white); box-shadow: 0 10px 24px rgba(244,137,44,0.35); }
.btn-primary:hover { background: #e0731a; transform: translateY(-2px); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* ===== STATS STRIP ===== */
.stats-strip { background: var(--navy); padding: 40px 0; }
.stats-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { text-align: center; padding: 0 20px; position: relative; }
.stat-item:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 15%; height: 70%; width: 1px; background: rgba(255,255,255,0.15); }
.stat-item .stat-num { font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 800; color: var(--orange); line-height: 1; display: block; }
.stat-item .stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-top: 8px; letter-spacing: 0.5px; display: block; }
.stat-item .stat-suffix { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 800; color: var(--orange); }

/* ===== CARDS ===== */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); transition: transform 0.25s, box-shadow 0.25s; border: 1px solid var(--cream-dark); }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(28,45,79,0.12); }
.card-icon { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 12px; background: var(--orange); color: var(--white); font-weight: 800; font-size: 1.1rem; margin-bottom: 16px; }
.card h3 { margin-bottom: 12px; }
.card ul li { position: relative; padding-left: 18px; margin-bottom: 8px; color: var(--text-light); font-size: 0.93rem; }
.card ul li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 7px; height: 7px; background: var(--orange); border-radius: 50%; }
.card p { color: var(--text-light); font-size: 0.95rem; }

/* ===== INTERACTIVE REVENUE CHART ===== */
.revenue-section { padding: 80px 0; background: var(--cream); }
.revenue-wrap { background: var(--white); border-radius: 20px; box-shadow: 0 20px 60px rgba(28,45,79,0.10); padding: 48px; }
.revenue-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 40px; flex-wrap: wrap; gap: 16px; }
.revenue-header h2 { margin: 0; }
.revenue-kpis { display: flex; gap: 28px; flex-wrap: wrap; }
.kpi-chip { background: var(--cream); border-radius: 50px; padding: 8px 18px; font-size: 0.85rem; }
.kpi-chip strong { color: var(--orange); font-weight: 700; }
.chart-area { position: relative; height: 320px; display: flex; align-items: flex-end; gap: 48px; padding: 0 20px; border-bottom: 2px solid var(--cream-dark); border-left: 2px solid var(--cream-dark); }
.chart-y-labels { position: absolute; top: 0; bottom: 28px; display: flex; flex-direction: column-reverse; justify-content: space-between; }
.chart-y-labels span { font-size: 0.72rem; color: var(--text-light); text-align: right; }
.chart-gridlines { position: absolute; left: 0; right: 0; top: 0; bottom: 0; pointer-events: none; }
.chart-gridlines line { stroke: var(--cream-dark); stroke-width: 1; stroke-dasharray: 4 4; }
.bar-group { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0; position: relative; }
.bar-outer { width: 100%; max-width: 110px; height: 260px; display: flex; align-items: flex-end; position: relative; }
.bar-inner { width: 100%; border-radius: 10px 10px 0 0; background: linear-gradient(180deg, #2aa865 0%, #1a6e44 100%); transform-origin: bottom; transform: scaleY(0); transition: transform 0.9s cubic-bezier(0.34,1.56,0.64,1); position: relative; cursor: pointer; }
.bar-inner.animated { transform: scaleY(1); }
.bar-value { position: absolute; top: -34px; left: 50%; transform: translateX(-50%); font-weight: 700; font-size: 0.9rem; color: var(--navy); white-space: nowrap; opacity: 0; transition: opacity 0.3s 0.6s; }
.bar-inner.animated .bar-value { opacity: 1; }
/* tooltip */
.bar-tooltip { position: absolute; bottom: calc(100% + 16px); left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 10px; font-size: 0.82rem; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.2s; z-index: 10; }
.bar-tooltip::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--navy); }
.bar-inner:hover .bar-tooltip { opacity: 1; }
.bar-label { margin-top: 12px; font-size: 0.82rem; color: var(--text-light); font-weight: 600; text-align: center; }
.growth-badge { display: inline-block; margin-top: 4px; font-size: 0.75rem; font-weight: 700; color: #2aa865; background: rgba(42,168,101,0.12); padding: 2px 8px; border-radius: 20px; }

/* ===== GLOBAL MAP (hero visual) ===== */
.global-visual { width: 100%; position: relative; }
.global-visual svg { width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgba(28,45,79,0.15)); }

/* Pulse animation for market dots */
@keyframes pulse-ring {
  0% { r: 5; opacity: 0.8; }
  100% { r: 14; opacity: 0; }
}
@keyframes pulse-ring2 {
  0% { r: 5; opacity: 0.5; }
  100% { r: 20; opacity: 0; }
}
@keyframes draw-line {
  from { stroke-dashoffset: 400; opacity: 0; }
  10% { opacity: 1; }
  to { stroke-dashoffset: 0; opacity: 0.85; }
}
@keyframes dot-pop {
  0% { r: 0; }
  70% { r: 6; }
  85% { r: 4; }
  100% { r: 5; }
}
@keyframes label-fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.market-line { stroke-dasharray: 400; stroke-dashoffset: 400; opacity: 0; }
.market-line.a1 { animation: draw-line 1.4s ease forwards 0.4s; }
.market-line.a2 { animation: draw-line 1.4s ease forwards 0.7s; }
.market-line.a3 { animation: draw-line 1.4s ease forwards 1.0s; }
.market-line.a4 { animation: draw-line 1.4s ease forwards 1.3s; }
.market-line.a5 { animation: draw-line 1.4s ease forwards 1.6s; }
.market-line.a6 { animation: draw-line 1.4s ease forwards 1.9s; }
.market-line.a7 { animation: draw-line 1.4s ease forwards 2.2s; }
.market-line.a8 { animation: draw-line 1.4s ease forwards 2.5s; }
.market-line.a9 { animation: draw-line 1.4s ease forwards 2.8s; }

.market-dot { r: 0; }
.market-dot.d1 { animation: dot-pop 0.4s ease forwards 1.6s; }
.market-dot.d2 { animation: dot-pop 0.4s ease forwards 1.9s; }
.market-dot.d3 { animation: dot-pop 0.4s ease forwards 2.2s; }
.market-dot.d4 { animation: dot-pop 0.4s ease forwards 0.8s; }
.market-dot.d5 { animation: dot-pop 0.4s ease forwards 1.2s; }
.market-dot.d6 { animation: dot-pop 0.4s ease forwards 2.5s; }
.market-dot.d7 { animation: dot-pop 0.4s ease forwards 2.8s; }
.market-dot.d8 { animation: dot-pop 0.4s ease forwards 3.1s; }
.market-dot.d9 { animation: dot-pop 0.4s ease forwards 3.4s; }

.pulse-r1 { animation: pulse-ring 2s ease-out infinite; }
.pulse-r2 { animation: pulse-ring2 2s ease-out infinite 0.4s; }

.map-label { opacity: 0; }
.map-label.l1 { animation: label-fade 0.4s ease forwards 2.0s; }
.map-label.l2 { animation: label-fade 0.4s ease forwards 2.3s; }
.map-label.l3 { animation: label-fade 0.4s ease forwards 2.6s; }
.map-label.l4 { animation: label-fade 0.4s ease forwards 1.0s; }
.map-label.l5 { animation: label-fade 0.4s ease forwards 1.4s; }
.map-label.l6 { animation: label-fade 0.4s ease forwards 2.9s; }
.map-label.l7 { animation: label-fade 0.4s ease forwards 3.2s; }
.map-label.l8 { animation: label-fade 0.4s ease forwards 3.5s; }
.map-label.l9 { animation: label-fade 0.4s ease forwards 3.8s; }

/* ===== FOOTER ===== */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.8); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.site-footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,0.7); transition: color 0.2s; font-size: 0.93rem; }
.site-footer a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* ===== PAGE HEADER (subpages) ===== */
.page-header { background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%); padding: 70px 0; text-align: center; }
.page-header p { color: var(--text-light); max-width: 640px; margin: 16px auto 0; }

/* ===== CTA BANNER ===== */
.cta-banner { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-light) 100%); color: var(--white); border-radius: var(--radius); padding: 60px; text-align: center; position: relative; overflow: hidden; }
.cta-banner::before { content: ""; position: absolute; top: -60px; right: -60px; width: 220px; height: 220px; background: var(--orange); opacity: 0.2; border-radius: 50%; }
.cta-banner h2 { color: var(--white); margin-bottom: 14px; }
.cta-banner p { color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto 28px; }

/* ===== TIMELINE ===== */
.timeline { position: relative; margin-left: 20px; padding-left: 40px; border-left: 3px solid var(--orange); }
.timeline-item { position: relative; margin-bottom: 36px; }
.timeline-item::before { content: ""; position: absolute; left: -51px; top: 4px; width: 18px; height: 18px; background: var(--orange); border: 4px solid var(--white); border-radius: 50%; box-shadow: 0 0 0 3px var(--orange); }
.timeline-item h3 { color: var(--navy); margin-bottom: 6px; }
.timeline-item p { color: var(--text-light); }

/* ===== FOUNDER BLOCK ===== */
.founder { display: grid; grid-template-columns: 260px 1fr; gap: 50px; align-items: center; background: var(--white); border-radius: var(--radius); padding: 48px; box-shadow: var(--shadow); }
.founder img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.founder blockquote { font-size: 1.05rem; color: var(--text); font-style: italic; margin-bottom: 22px; border-left: 4px solid var(--orange); padding-left: 20px; }
.founder .name { color: var(--orange); font-weight: 700; font-size: 1.05rem; }
.founder .role { color: var(--navy); font-weight: 600; font-size: 0.9rem; }

/* ===== TEAM ===== */
.team-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--cream-dark); transition: transform 0.25s; }
.team-card:hover { transform: translateY(-6px); }
.team-card img { width: 100%; height: 280px; object-fit: cover; }
.team-card .team-body { padding: 24px; }
.team-card h3 { margin-bottom: 4px; }
.team-card .team-role { color: var(--orange); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; display: block; }
.team-card p { color: var(--text-light); font-size: 0.93rem; }

/* ===== FOOTPRINT ===== */
.footprint-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.footprint-card { background: var(--white); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.footprint-card h3 { color: var(--orange); margin-bottom: 18px; }
.footprint-card ul li { position: relative; padding-left: 24px; margin-bottom: 10px; font-weight: 500; }
.footprint-card ul li::before { content: "📍"; position: absolute; left: 0; top: 0; font-size: 0.85rem; }

/* ===== LOGO GRID ===== */
.logo-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.logo-tile { background: var(--white); border: 1px solid var(--cream-dark); border-radius: 12px; padding: 22px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; color: var(--navy); text-align: center; min-height: 80px; box-shadow: var(--shadow); }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-content p { margin: 0 auto 28px; }
  .btn-group { justify-content: center; }
  .stats-strip .container { grid-template-columns: repeat(2,1fr); gap: 24px; padding: 40px 24px; }
  .stat-item:nth-child(2)::after { display: none; }
  .stat-item:not(:last-child)::after { display: none; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; padding: 32px; }
  .founder img { max-width: 220px; margin: 0 auto; }
  .footprint-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .logo-grid { grid-template-columns: repeat(2,1fr); }
  .revenue-header { flex-direction: column; }
  .chart-area { gap: 24px; }
}
@media (max-width: 680px) {
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 20px 24px; gap: 18px; box-shadow: var(--shadow); display: none; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .stats-strip .container { grid-template-columns: repeat(2,1fr); }
  .cta-banner { padding: 36px 24px; }
  .revenue-wrap { padding: 28px 20px; }
}
