/*
 * Western Reddy — Design System
 * ================================
 * India-America business bridge aesthetic.
 * Colors: Deep navy base + India Green (#17A800, primary) + Saffron (#FF9933, secondary)
 *         + Teal (#0ABFAD, bridge) + White — the four pillars of the India—USA crossing.
 * Teal sits at the midpoint between India green and American corporate blue —
 * it is the color of the bridge itself (Indian Ocean, Ashoka Chakra midpoint).
 * Fonts: Poppins (display/headings) + Inter (body) + Noto Sans Telugu (Telugu script)
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Inter:wght@400;500;600&family=Noto+Sans+Telugu:wght@400;500;600;700&display=swap');

/* -- Design Tokens ----------------------------------------------------------- */
:root {
  /* Backgrounds */
  --bg-deep:    #050912;
  --bg-mid:     #090f1f;
  --bg-surface: #0d1630;
  --bg-card:    rgba(22, 33, 70, 0.92);
  --bg-glass:   rgba(255, 255, 255, 0.08);

  /* India colors */
  --india-green:       #17a800;
  --india-green-light: #22cc00;
  --india-green-dim:   rgba(23, 168, 0, 0.15);
  --india-green-glow:  rgba(23, 168, 0, 0.4);
  --saffron:           #ff9933;          /* Indian flag saffron/orange */
  --saffron-dim:       rgba(255, 153, 51, 0.15);
  --saffron-glow:      rgba(255, 153, 51, 0.45);

  /* Legacy aliases (keep for existing rules that use these names) */
  --saffron-light:  #22cc00;
  --electric:       #ff9933;
  --electric-dim:   rgba(255, 153, 51, 0.12);
  --electric-glow:  rgba(255, 153, 51, 0.3);
  --emerald:        #22e55e;
  --emerald-dim:    rgba(34, 229, 94, 0.12);

  /* USA colors — flag palette */
  --usa-red:        #BF0A30;            /* USA flag red */
  --usa-red-light:  #e8193f;
  --usa-red-dim:    rgba(191, 10, 48, 0.15);
  --usa-red-glow:   rgba(191, 10, 48, 0.35);
  --usa-blue:       #002868;            /* USA flag navy blue */
  --usa-blue-mid:   #0A3D8F;            /* brighter American blue */
  --usa-blue-dim:   rgba(10, 61, 143, 0.25);
  --usa-blue-glow:  rgba(10, 61, 143, 0.4);

  /* Teal — bridge color (India Ocean midpoint) */
  --teal:       #0abfad;
  --teal-light: #1de8d5;
  --teal-dim:   rgba(10, 191, 173, 0.12);
  --teal-glow:  rgba(10, 191, 173, 0.28);

  /* White */
  --white-pure: #ffffff;

  /* Text */
  --text:       #f5f0e8;
  --text-muted: #8a9aaa;
  --text-faint: #3d4a5e;

  /* Borders */
  --border:        rgba(23, 168, 0, 0.35);
  --border-subtle: rgba(23, 168, 0, 0.20);

  /* Sidebar */
  --sidebar-width: 380px;

  /* Transitions */
  --transition: all 0.2s ease;
}

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

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

body {
  font-family: 'Inter', 'Noto Sans Telugu', -apple-system, sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font-family: inherit; }

/* -- Layout ------------------------------------------------------------------- */
/* Chat sidebar removed — full-width layout. Sidebar rules preserved in
   static/js/_chat_archived/README.txt for future reintegration. */
#wr-layout {
  display: block;
  min-height: 100vh;
}

#wr-content {
  width: 100%;
  overflow-x: hidden;
  padding-top: 82px;
  padding-left: 72px;
  padding-right: 0;
  transition: padding-right 0.22s ease;
}
@media (min-width: 901px) {
  #wr-content.wr-hub-pushed { padding-right: 356px; }
}

/* #wr-sidebar { archived — see static/js/_chat_archived/README.txt } */

/* -- Navigation -------------------------------------------------------------- */
.wr-nav {
  position: fixed;
  top: 0;
  left: 72px;
  right: 0;
  z-index: 200;
  background: rgba(5, 9, 18, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  position: relative;
  height: 82px;
  padding: 0 24px;
  display: flex;
  align-items: center;
}

.nav-logo {
  position: fixed;
  left: -72px;
  top: 0;
  height: 82px;
  z-index: 205;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 0 24px 0 7px;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.65rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--india-green);
  text-decoration: none;
  background: transparent;
  border-bottom: 1px solid var(--border-subtle);
}
.logo-globe-canvas {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  flex-shrink: 0;
  display: block;
  box-shadow: 0 2px 16px rgba(21,96,192,0.55), 0 0 0 1.5px rgba(255,255,255,0.10);
}
.logo-accent { color: var(--saffron); }
/* Hide the brand text label — replaced by nav-brand-panel palette card */
.nav-logo span { display: none; }
.nav-logo a span { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex: 1;
}
.nav-links a {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--bg-glass);
}
/* Active nav = bridge position — teal differentiates from green primary CTAs */
.nav-links a.active { color: var(--teal); }

/* Western Reddy brand palette — left side of nav */
.nav-brand-panel {
  position: absolute;
  left: 24px;
  top: 0;
  height: 82px;
  display: flex;
  align-items: center;
}
.nav-brand-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 0;
  transition: transform 0.22s ease, filter 0.22s ease;
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.1875));
}
.nav-brand-link:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 12px rgba(255,255,255,0.4375));
}
[data-theme="light"] .nav-brand-link {
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.1875));
}
[data-theme="light"] .nav-brand-link:hover {
  filter: drop-shadow(0 0 12px rgba(0,0,0,0.3125));
}
/* Brand palette rect — whitish-clear dark / blackish-clear light */
.wr-brand-rect {
  fill: rgba(255,255,255,0.0625);
  stroke: rgba(255,255,255,0.3125);
}
[data-theme="light"] .wr-brand-rect {
  fill: rgba(0,0,0,0.0625);
  stroke: rgba(0,0,0,0.3125);
}
.wr-brand-text-top {
  fill: rgba(255,255,255,0.5625);
}
[data-theme="light"] .wr-brand-text-top {
  fill: rgba(0,0,0,0.5625);
}
.wr-brand-text-main {
  fill: rgba(255,255,255,0.9375);
}
[data-theme="light"] .wr-brand-text-main {
  fill: rgba(0,0,0,0.9375);
}

/* Nav CTA Panel (Replaces old .nav-cta button) */
.nav-consult-panel {
  position: absolute;
  right: 24px;
  top: 0;
  height: 82px;
  display: flex;
  align-items: center;
}

.nav-cta-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 0 4px rgba(255, 153, 51, 0.1875));
}
.nav-cta-panel:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 12px rgba(255, 153, 51, 0.4375));
}

.nav-hamburger { display: none; }
  .nav-hamburger:hover { background: var(--bg-glass); }

@media (max-width: 768px) {
  .nav-links, .nav-consult-panel, .nav-brand-panel, .nav-portals { display: none; }
  .nav-hamburger { display: block; }
}

/* -- Sidebar-mode overrides (=900 px: sidebar hidden, logo back in nav) --- */
@media (max-width: 900px) {
  .wr-nav { left: 0; }
  .nav-container { padding: 0 28px; }
  .nav-logo {
    position: relative;
    left: auto; top: auto;
    height: auto;
    flex-direction: row;
    justify-content: flex-start;
    font-size: 1.2rem;
    gap: 10px;
    padding: 0;
    background: transparent;
    border: none;
    letter-spacing: normal;
    white-space: nowrap;
  }
  .logo-globe-canvas { width: 58px; height: 58px; }
  #wr-content { padding-left: 0; }
  .nav-brand-panel { display: none; }
  .nav-portals { display: none; }
}

/* -- Left Rail -------------------------------------------------------------- */
.wr-rail {
  position: fixed;
  left: 0;
  top: 0;
  width: 72px;
  height: 100vh;
  z-index: 195;
  background: linear-gradient(
    180deg,
    rgba(255, 153, 51, 0.13) 0%,
    rgba(255, 255, 255, 0.09) 38%,
    rgba(23, 168, 0, 0.13) 100%
  );
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-right: 1px solid rgba(23, 168, 0, 0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 94px;
  padding-bottom: 20px;
  pointer-events: none;
}
/* Full-width separator at nav bottom — extends under the sphere to contain color (B2: 0.3125) */
.wr-rail::after {
  content: '';
  position: absolute;
  top: 82px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(23, 168, 0, 0.3125);
  pointer-events: none;
}
[data-theme="light"] .wr-rail::after {
  background: rgba(23, 168, 0, 0.5625);  /* sharp in light mode (B2: 0.5625) */
}

.rail-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  flex: 1;
  width: 100%;
  padding: 0 8px;
}

  /* Scale up rail icons */
  .rail-icon svg, .rail-disclaimer svg {
    width: 36px !important;
    height: 36px !important;
  }
  .rail-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  padding: 13px 6px;
  border-radius: 12px;
  color: var(--saffron);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  pointer-events: auto;
  position: relative;
}
/* Light theme: inactive icons green (brand primary) — matches rail identity */
[data-theme="light"]   /* Scale up rail icons */
  .rail-icon svg, .rail-disclaimer svg {
    width: 36px !important;
    height: 36px !important;
  }
  .rail-icon { color: var(--india-green); }

/* Rail label: hidden, appears as floating tooltip to the right on hover */
.rail-icon > span:not(.rail-flag-icon) {
  display: block;
  position: absolute;
  left: 80px;
  top: 50%;
  transform: translateY(-50%) scale(0.88);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  max-width: 120px;
  z-index: 300;
  background: rgba(13, 22, 48, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(23, 168, 0, 0.35);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.rail-icon:hover > span:not(.rail-flag-icon) {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}
[data-theme="light"] .rail-icon > span:not(.rail-flag-icon) {
  background: #ffffff;
  border-color: rgba(23, 168, 0, 0.45);
  color: #0d1630;
}

/* Hover: subtle green tint — does NOT look "active" (B2: 0.0625 bg opacity) */
.rail-icon:hover {
  color: var(--india-green);
  background: rgba(23, 168, 0, 0.0625);
}
/* Active: only one icon gets this — full green pill + left accent bar */
.rail-icon.active {
  color: var(--india-green);
  background: var(--india-green-dim);
  box-shadow: inset 2px 0 0 var(--india-green);
}
/* Light theme: all icons green by default — active gets a stronger pill */

[data-theme="light"] .rail-icon.active {
    color: var(--india-green);
    background: var(--india-green-dim);
    box-shadow: inset 2px 0 0 var(--india-green);
  }


/* Legal Disclaimer — bottom anchor (always visible) */

.rail-disclaimer {
  width: calc(100% - 16px);
  margin: 0 8px;
  padding: 13px 6px;
  border-radius: 12px;
  color: var(--saffron);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: none;
  background: transparent;
  transition: var(--transition);
}
.rail-disclaimer:hover {
  color: var(--india-green);
  background: rgba(23, 168, 0, 0.0625);
}
[data-theme="light"] .rail-disclaimer {
  color: var(--india-green);
  background: transparent;
  border: none;
}
[data-theme="light"] .rail-disclaimer:hover {
  background: rgba(23, 168, 0, 0.0625);
}
.rail-flag-icon {
  font-size: 1.3rem;
  line-height: 1;
  display: block;
}

@media (max-width: 900px) {
  .wr-rail { display: none; }
}

/* -- Portal Coming Soon Banners ----------------------------------------------- */
.portal-banner {
  position: fixed;
  top: 82px;
  left: 72px;
  right: 0;
  z-index: 190;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0 24px;
}
.portal-banner--india {
  background: linear-gradient(90deg, rgba(255,153,51,0.18) 0%, rgba(255,255,255,0.06) 50%, rgba(23,168,0,0.18) 100%);
  border-bottom: 1px solid rgba(255,153,51,0.30);
  color: var(--text);
}
.portal-banner--usa {
  background: linear-gradient(90deg, rgba(191,10,48,0.16) 0%, rgba(255,255,255,0.05) 50%, rgba(10,61,143,0.18) 100%);
  border-bottom: 1px solid rgba(191,10,48,0.28);
  color: var(--text);
}
.portal-banner__flag { font-size: 1.1rem; line-height: 1; flex-shrink: 0; }
.portal-banner__msg { color: var(--text-muted); }
.portal-banner__cta {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: var(--transition);
  flex-shrink: 0;
}
.portal-banner--india .portal-banner__cta {
  color: var(--saffron);
  border: 1px solid rgba(255,153,51,0.45);
  background: rgba(255,153,51,0.10);
}
.portal-banner--india .portal-banner__cta:hover {
  background: var(--saffron);
  color: #050912;
}
.portal-banner--usa .portal-banner__cta {
  color: #e8334a;
  border: 1px solid rgba(191,10,48,0.45);
  background: rgba(191,10,48,0.10);
}
.portal-banner--usa .portal-banner__cta:hover {
  background: var(--usa-red);
  color: #fff;
}
[data-theme="light"] .portal-banner--india {
  background: linear-gradient(90deg, rgba(255,153,51,0.12) 0%, rgba(0,0,0,0.03) 50%, rgba(23,168,0,0.12) 100%);
}
[data-theme="light"] .portal-banner--usa {
  background: linear-gradient(90deg, rgba(191,10,48,0.10) 0%, rgba(0,0,0,0.03) 50%, rgba(10,61,143,0.12) 100%);
}
[data-theme="light"] .portal-banner__msg { color: #3d4a5e; }
body.has-portal-banner #wr-content { padding-top: 130px; }
@media (max-width: 900px) {
  .portal-banner { left: 0; font-size: 0.72rem; gap: 8px; padding: 0 12px; }
  .portal-banner__msg { display: none; }
}

/* Rail appearance is identical in light and dark modes — Indian flag tint anchors both */

/* -- Nav portal icon buttons (SQUARE TRANSPARENT PALETTES) ──────────────────
   Layout: [INDIA label │ India palette │ portal bridge │ USA palette │ USA label]
   Both palettes 82×82 square, transparent background.
   B2 opacities throughout (band-centers only).
── */
.nav-portals {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 4px;
  height: 82px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 201;
  pointer-events: auto;
}
/* Vertical side labels — slick futuristic monospaced caps */

.portal-side-label-ind { color: rgba(255, 153, 51, 0.9375); margin-right: -8px; margin-left: 12px; }
.portal-side-label-usa { color: rgba(191, 10, 48, 0.9375); margin-left: -8px; margin-right: 12px; }

.portal-side-label {
  writing-mode: vertical-lr;
  text-orientation: upright;              /* each letter upright, stacked top-to-bottom */
  font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  text-shadow: 0 0 6px rgba(255,255,255,0.3125);  /* B2 */
}


[data-theme="light"] 
[data-theme="light"] 

.nav-portal-btn {
  display: block;
  text-decoration: none;
  line-height: 0;
  pointer-events: auto;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.22s ease;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.4375));  /* B2: 0.4375 */
}
.nav-portal-btn-ind:hover {
  transform: translateY(-3px) scale(1.03);
  filter: drop-shadow(0 8px 20px rgba(255, 153, 51, 0.6875));  /* B2: 0.6875 */
}
.nav-portal-btn-usa:hover {
  transform: translateY(-3px) scale(1.03);
  filter: drop-shadow(0 8px 20px rgba(0, 40, 104, 0.6875));  /* B2: 0.6875 */
}

/* Subtle bridge connector in the middle — pulses slowly */
.portal-bridge {
  line-height: 0;
  pointer-events: none;
  opacity: 0.6875;                        /* B2: 0.6875 */
  animation: portalPulse 4s ease-in-out infinite;
}
/* Bridge oval ring — white on dark, black on light */
/* Wormhole tunnel rings — concentric depth rings, outer→faint, inner→bright (B2 opacities) */
.wh-ring { fill: none; }
.wh-r1 { stroke: rgba(255,255,255,0.0625); }
.wh-r2 { stroke: rgba(255,255,255,0.1875); }
.wh-r3 { stroke: rgba(255,255,255,0.3125); }
.wh-r4 { stroke: rgba(255,255,255,0.5625); }
.wh-r5 { stroke: rgba(255,255,255,0.8125); }
.wh-core { fill: rgba(255,255,255,0.9375); }
[data-theme="light"] .wh-r1 { stroke: rgba(0,0,0,0.0625); }
[data-theme="light"] .wh-r2 { stroke: rgba(0,0,0,0.1875); }
[data-theme="light"] .wh-r3 { stroke: rgba(0,0,0,0.3125); }
[data-theme="light"] .wh-r4 { stroke: rgba(0,0,0,0.5625); }
[data-theme="light"] .wh-r5 { stroke: rgba(0,0,0,0.8125); }
[data-theme="light"] .wh-core { fill: rgba(0,0,0,0.9375); }
@keyframes portalPulse {
  0%, 100% { opacity: 0.5625; transform: scale(1); }     /* B2 */
  50%      { opacity: 0.9375; transform: scale(1.06); }  /* B2 */
}

/* Legacy helpers (hidden) */
.portal-flag-glass { display: contents; }
.portal-flag-label { display: none; }

/* -- Mobile nav drawer ------------------------------------------------------- */
.nav-mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
}
.nav-mobile-drawer.open { display: block; }

.nav-mobile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 9, 18, 0.75);
  backdrop-filter: blur(4px);
}

.nav-mobile-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100%;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.nav-mobile-close {
  align-self: flex-end;
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 6px 10px;
  margin-bottom: 8px;
}
.nav-mobile-close:hover { color: var(--text); }

.nav-mobile-panel a {
  display: block;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
.nav-mobile-panel a:hover,
.nav-mobile-panel a.active { background: var(--bg-glass); color: var(--teal); }

.nav-mobile-panel .nav-mobile-cta {
  margin-top: 8px;
  display: block;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--saffron), #e67300);
  text-align: center;
}
.nav-mobile-panel .nav-mobile-cta:hover {
  background: linear-gradient(135deg, var(--saffron), #e67300);
  color: #fff;
  opacity: 0.9;
}

.nav-mobile-social {
  display: flex;
  gap: 10px;
  padding: 16px 0 8px;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}
.nav-mobile-social a {
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}
.nav-mobile-social a:hover { color: var(--india-green); }

/* -- Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--saffron), #e67300);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255,153,51,0.45);
}
.btn-primary:hover {
  box-shadow: 0 6px 32px rgba(255,153,51,0.6);
  background: linear-gradient(135deg, #ff9933, #ff6600);
}

.btn-ghost {
  background: var(--bg-glass);
  color: var(--text);
  border: 1px solid var(--border-subtle);
}
.btn-ghost:hover {
  background: var(--teal-dim);
  border-color: rgba(10,191,173,0.35);
  color: var(--teal-light);
}

.btn-outline-saffron {
  background: transparent;
  color: var(--saffron);
  border: 1px solid var(--saffron);
}
.btn-outline-saffron:hover { background: var(--saffron-dim); }

.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: 12px; }

/* -- Section helpers --------------------------------------------------------- */
.section-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

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

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--saffron-dim);
  color: var(--saffron);
  border: 1px solid rgba(23,168,0,0.3);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--white-pure);
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

/* -- Hero -------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 0 60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  /* Horizontal = India green; vertical = USA blue */
  background-image:
    linear-gradient(rgba(23,168,0,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,61,143,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orb-drift 12s ease-in-out infinite alternate;
}
/* Orb 1 — India green, strong, top-left (east/sunrise) */
.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(23,168,0,0.22) 0%, rgba(23,168,0,0.08) 40%, transparent 70%);
  top: -150px; left: -120px;
  animation-duration: 14s;
}
/* Orb 2 — Saffron/orange, strong, bottom-right (USA warmth) */
.hero-orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,153,51,0.25) 0%, rgba(255,153,51,0.1) 40%, transparent 70%);
  bottom: -80px; right: 0%;
  animation-duration: 18s;
}
/* Orb 3 — USA blue, center-right (American horizon) */
.hero-orb-3 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(10,61,143,0.3) 0%, rgba(10,61,143,0.1) 40%, transparent 70%);
  top: 20%; right: 5%;
  animation-duration: 16s;
}
/* Orb 4 — USA red accent, far right horizon */
.hero-orb-4 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(191,10,48,0.18) 0%, transparent 70%);
  top: 60%; right: 10%;
  animation: orb-drift 22s ease-in-out infinite alternate-reverse;
}

@keyframes orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, -40px) scale(1.08); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,153,51,0.1);
  border: 1px solid rgba(255,153,51,0.4);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--saffron);
  margin-bottom: 28px;
  letter-spacing: 0.03em;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--saffron);
  animation: pulse-dot 2s infinite;
  box-shadow: 0 0 6px rgba(255,153,51,0.8);
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin: 0 auto 24px;
  max-width: 880px;
}

/* East meets West — single flex row, natural sentence spacing */
.hero-ew-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.3em;
  line-height: 1;
}

/* "meets" — same size as East/West, money-green, inline center under wormhole */
.hero-meets {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: linear-gradient(90deg, #0a7a00, #17a800, #5fc400, #17a800);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  flex-shrink: 0;
}

.hero-title-accent {
  display: block;
  /* East?West: India green ? orange saffron ? USA blue */
  background: linear-gradient(
    90deg,
    #17a800 0%,
    #ff9933 45%,
    #0A3D8F 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
/* Equal-width CTA buttons so both pills match */
.hero-actions .btn {
  min-width: 210px;
  justify-content: center;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.hero-stat {
  padding: 0 28px;
}
.hero-stat:first-child { padding-left: 28px; }
.hero-stat:last-child  { padding-right: 28px; }
.stat-value {
  font-family: 'Poppins', sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--saffron);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-subtle);
}

/* Very small screens — prevent East/meets/West row overflow */
@media (max-width: 380px) {
  .hero-title { font-size: 2rem; }
  .hero-ew-row { gap: 0.25em; }
}

/* -- Services Section -------------------------------------------------------- */
.section-services {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 100%);
  position: relative;
}
/* India?USA tricolor divider on top edge */
.section-services::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    #17a800 0%, #ff9933 40%, #ffffff 55%, #0A3D8F 75%, #BF0A30 100%
  );
  opacity: 0.6;
  pointer-events: none;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  background: linear-gradient(145deg, rgba(255,153,51,0.07) 0%, var(--bg-card) 55%);
  border: 1px solid rgba(255,153,51,0.22);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(20px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--saffron-dim) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.service-card:hover {
  border-color: rgba(255,153,51,0.55);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,153,51,0.22), 0 0 40px rgba(255,153,51,0.09);
}
.service-card:hover::before { opacity: 1; }

.service-card-featured {
  border-color: rgba(23,168,0,0.3);
  background: linear-gradient(135deg, rgba(23,168,0,0.07) 0%, var(--bg-card) 60%);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--saffron-dim);
  border: 1px solid rgba(23,168,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  position: relative;
}

.service-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.service-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--saffron);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.service-link:hover { gap: 8px; }

/* -- Culture Section --------------------------------------------------------- */
.section-culture {
  padding: 100px 0;
  background: var(--bg-mid);
  position: relative;
  overflow: hidden;
}
/* India?USA tricolor divider on top edge */
.section-culture::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    #17a800 0%, #ff9933 40%, #ffffff 55%, #0A3D8F 75%, #BF0A30 100%
  );
  opacity: 0.6;
  pointer-events: none;
}
.section-culture::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10,61,143,0.08) 0%, transparent 70%);
  top: -200px; right: -100px;
  pointer-events: none;
}

.culture-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 768px) {
  .culture-split { grid-template-columns: 1fr; }
}

.culture-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 20px 0 28px;
}

.culture-points { display: flex; flex-direction: column; gap: 14px; }
.culture-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.cp-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--saffron);
  flex-shrink: 0;
  margin-top: 6px;
}

.culture-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.culture-card {
  width: 100%;
  max-width: 340px;
  background: var(--bg-card);
  border-radius: 14px;
  padding: 22px;
  backdrop-filter: blur(20px);
}
.culture-card-india {
  border: 2px solid rgba(255,153,51,0.45);
  background: linear-gradient(135deg, rgba(255,153,51,0.10) 0%, rgba(23,168,0,0.08) 100%);
  box-shadow: -6px -6px 40px rgba(255,153,51,0.12), 0 0 0 1px rgba(255,153,51,0.2);
}
.culture-card-usa {
  /* Explicitly USA flag: blue border, red inner glow */
  border: 2px solid rgba(10,61,143,0.6);
  background: linear-gradient(135deg, rgba(10,61,143,0.15) 0%, rgba(191,10,48,0.08) 100%);
  box-shadow: 6px 6px 40px rgba(10,61,143,0.15), 0 0 0 1px rgba(191,10,48,0.12);
}

.cc-flag { font-size: 1.5rem; margin-bottom: 10px; }
.cc-title {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.culture-card-india .cc-title { color: #17a800; }
.culture-card-usa .cc-title   { color: #4a7fff; }
.cc-items { display: flex; flex-direction: column; gap: 8px; }
.cc-item {
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--bg-glass);
  border-radius: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border-subtle);
}

/* Bridge arrow = THE crossing moment — orange saffron, unmissable */
.culture-bridge-arrow {
  font-size: 2rem;
  color: var(--saffron);
  opacity: 1;
  text-shadow: 0 0 24px var(--saffron-glow), 0 0 48px rgba(255,153,51,0.3);
}

/* -- CTA Section ------------------------------------------------------------- */
.section-cta { padding: 100px 0; }

/* CTA card: saffron ? USA blue dramatic gradient */
.cta-card {
  background: linear-gradient(135deg,
    rgba(255,153,51,0.12) 0%,
    rgba(13,22,48,0.95) 40%,
    rgba(10,61,143,0.15) 100%
  );
  border: 1px solid rgba(255,153,51,0.35);
  border-radius: 24px;
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(255,153,51,0.08), 0 0 80px rgba(10,61,143,0.08);
}
.cta-orb {
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23,168,0,0.1) 0%, transparent 70%);
  top: -150px; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.cta-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
}

.cta-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  position: relative;
}

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

/* -- Generic page hero (sub-pages) ------------------------------------------ */
.page-hero {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-deep) 100%);
}
.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  text-align: center;
}
.page-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  margin: 16px 0 20px;
  line-height: 1.15;
}
.page-title span { color: var(--saffron); }
.page-sub {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.7;
  margin-left: auto;
  margin-right: auto;
}

/* -- Service detail cards (services.html) ------------------------------------ */
.service-detail {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 28px;
  backdrop-filter: blur(20px);
  transition: var(--transition);
}
.service-detail:hover {
  border-color: var(--border);
}

.sd-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}
.sd-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--saffron-dim);
  border: 1px solid rgba(23,168,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.sd-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.sd-short { font-size: 0.95rem; color: var(--text-muted); }
.sd-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}
.sd-points {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}
.sd-point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 14px;
}
.sd-point-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--saffron);
  flex-shrink: 0;
  margin-top: 5px;
}
.sd-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}
.sd-meta-item { font-size: 0.85rem; }
.sd-meta-label { color: var(--text-faint); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px; }
.sd-meta-value { color: var(--saffron); font-weight: 600; }

/* -- Culture comparison table ------------------------------------------------ */
.culture-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
@media (max-width: 600px) { .culture-compare-grid { grid-template-columns: 1fr; } }

.cc-block {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 24px;
  backdrop-filter: blur(20px);
}
.cc-block.india { border-color: rgba(23,168,0,0.4); background: linear-gradient(135deg, rgba(23,168,0,0.08) 0%, transparent 60%); }
.cc-block.usa   { border-color: rgba(10,61,143,0.5); background: linear-gradient(135deg, rgba(10,61,143,0.12) 0%, rgba(191,10,48,0.06) 100%); }
.cc-block-flag { font-size: 1.3rem; margin-bottom: 8px; }
.cc-block-title {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.cc-block-text { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; }

/* -- FAQ --------------------------------------------------------------------- */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 12px;
  backdrop-filter: blur(20px);
  cursor: pointer;
  transition: var(--transition);
}
.faq-item:hover { border-color: var(--border); }
.faq-q {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-icon { color: var(--saffron); font-size: 1.1rem; flex-shrink: 0; transition: transform 0.2s; }
.faq-a {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 14px;
  display: none;
}
.faq-item.open .faq-a  { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* -- Contact Form ------------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 36px;
  backdrop-filter: blur(20px);
}

.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 1rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  font-family: 'Inter', sans-serif;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: rgba(23,168,0,0.5);
  background: rgba(255,255,255,0.07);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-faint); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-select { appearance: none; cursor: pointer; }

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 36px;
  backdrop-filter: blur(20px);
}
.ci-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 24px;
}
.ci-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.ci-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--saffron-dim);
  border: 1px solid rgba(23,168,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

/* -- Resources / Cards generic ----------------------------------------------- */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.resource-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(20px);
  transition: var(--transition);
}
.resource-card:hover {
  border-color: var(--border);
  transform: translateY(-3px);
}
.rc-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.rc-tag-guide    { background: var(--saffron-dim);   color: var(--saffron);  border: 1px solid rgba(23,168,0,0.25); }
.rc-tag-tool     { background: var(--electric-dim);  color: var(--electric); border: 1px solid rgba(0,212,255,0.25); }
.rc-tag-report   { background: var(--emerald-dim);   color: var(--emerald);  border: 1px solid rgba(0,230,118,0.25); }
.rc-tag-template { background: rgba(167,139,250,0.1); color: #a78bfa;       border: 1px solid rgba(167,139,250,0.25); }

.rc-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.rc-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }
.rc-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--saffron);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.15s;
}
.rc-link:hover { gap: 10px; }

/* -- Stats bar --------------------------------------------------------------- */
/* Stats bar: India green left, saffron orange center, USA blue right */
.stats-bar {
  background: linear-gradient(90deg,
    rgba(23,168,0,0.1) 0%,
    rgba(255,153,51,0.08) 50%,
    rgba(10,61,143,0.12) 100%
  );
  border-bottom: 1px solid rgba(255,153,51,0.2);
  padding: 32px 28px;
  position: relative;
}
/* Tricolor section divider */
.stats-bar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    #17a800 0%,
    #ff9933 40%,
    #ffffff 55%,
    #0A3D8F 75%,
    #BF0A30 100%
  );
  opacity: 0.7;
}
.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  text-align: center;
}
.stat-item-val {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--saffron);
  margin-bottom: 4px;
}
.stat-item-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* -- Footer ------------------------------------------------------------------ */
.wr-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 0;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
@media (max-width: 600px) { .footer-container { grid-template-columns: 1fr; } }


.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--saffron);
  margin-bottom: 12px;
}
.footer-logo .logo-accent { color: var(--india-green); }
.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 300px;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--saffron); }

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-faint);
  max-width: 1100px;
  margin: 0 auto;
}
.footer-bottom-legal { display: flex; gap: 16px; }
.footer-bottom-legal a {
  color: var(--text-faint);
  font-size: 0.79rem;
  transition: color 0.15s;
  text-decoration: none;
}
.footer-bottom-legal a:hover { color: var(--text-muted); }

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: all 0.15s;
  text-decoration: none;
}
.footer-social a:hover { color: var(--india-green); border-color: rgba(23,168,0,0.3); background: rgba(23,168,0,0.07); }

/* Instagram brand */
.footer-social a[href*="instagram"],
.nav-mobile-social a[href*="instagram"] {
  color: #E1306C;
  border-color: rgba(225,48,108,0.3);
  background: rgba(225,48,108,0.07);
}
.footer-social a[href*="instagram"]:hover,
.nav-mobile-social a[href*="instagram"]:hover {
  color: #fff;
  border-color: #E1306C;
  background: linear-gradient(45deg, rgba(240,148,51,0.9), rgba(220,39,67,0.9), rgba(188,24,136,0.9));
}

/* YouTube brand */
.footer-social a[href*="youtube"],
.nav-mobile-social a[href*="youtube"] {
  color: #FF0000;
  border-color: rgba(255,0,0,0.3);
  background: rgba(255,0,0,0.07);
}
.footer-social a[href*="youtube"]:hover,
.nav-mobile-social a[href*="youtube"]:hover {
  color: #fff;
  border-color: #FF0000;
  background: rgba(255,0,0,0.85);
}


/* Make social links more visible in light mode */
[data-theme="light"] .footer-social a[href*="instagram"] {
  background: rgba(225,48,108,0.15);
  border-color: rgba(225,48,108,0.5);
  font-weight: 600;
}
[data-theme="light"] .footer-social a[href*="youtube"] {
  background: rgba(255,0,0,0.12);
  border-color: rgba(255,0,0,0.5);
  font-weight: 600;
}

/* -- Footer Legal Disclaimer ------------------------------------------------- */
.footer-legal-block {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 28px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-legal-block p {
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--text-faint);
}
.footer-legal-block p strong {
  color: var(--text-muted);
  font-weight: 600;
}
@media (max-width: 600px) {
  .footer-legal-block { padding: 16px 20px 20px; }
  .footer-legal-block p { font-size: 0.69rem; }
}

/* -- Utility ----------------------------------------------------------------- */
.text-saffron  { color: var(--saffron); }
.text-electric { color: var(--electric); }
.text-muted    { color: var(--text-muted); }
.mb-4  { margin-bottom: 1rem; }
.mb-8  { margin-bottom: 2rem; }
.mt-8  { margin-top: 2rem; }
.section-pad { padding: 100px 0; }

/* Scroll animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Toast */
.wr-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
.wr-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* -- Contact page — extra components ---------------------------------------- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }

.ci-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ci-stat {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
}
.ci-stat-val {
  font-family: 'Poppins', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--saffron);
  line-height: 1;
  margin-bottom: 4px;
}
.ci-stat-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }

.ci-points { display: flex; flex-direction: column; gap: 18px; }
.ci-point { display: flex; align-items: flex-start; gap: 14px; font-size: 0.9rem; }
.ci-point p { color: var(--text-muted); font-size: 0.84rem; margin: 4px 0 0; }
.ci-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}
.ci-dot-saffron  { background: var(--saffron); }
.ci-dot-electric { background: var(--electric); }
.ci-dot-emerald  { background: var(--emerald); }

.ci-contact-details { display: flex; flex-direction: column; gap: 16px; }
.ci-detail { display: flex; align-items: flex-start; gap: 14px; font-size: 0.88rem; }
.ci-detail-icon { font-size: 1.1rem; margin-top: 1px; }
.ci-detail-label { font-size: 0.72rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.05em; }
.ci-detail-val   { font-size: 0.9rem; color: var(--text); font-weight: 500; margin-top: 2px; }

/* -- FAQ — arrow variant (contact page) ------------------------------------- */
.faq-q {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  padding: 0;
}
.faq-arrow {
  color: var(--saffron);
  font-size: 0.75rem;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq-item.faq-open .faq-arrow { transform: rotate(180deg); }
.faq-item.faq-open .faq-a { display: block; }

/* -- Resource card extras ---------------------------------------------------- */
.rc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.rc-pages { font-size: 0.75rem; color: var(--text-faint); }
.rc-icon  { font-size: 1.8rem; margin-bottom: 14px; display: block; }
.rc-footer { margin-top: auto; }
.rc-btn { font-size: 0.82rem; }
.resource-card { display: flex; flex-direction: column; }

/* ── Light mode ─────────────────────────────────────────────────────────────
   Toggled via data-theme="light" on <html>.
   Click the globe logo to switch. Persists in localStorage.
   ───────────────────────────────────────────────────────────────────────── */
[data-theme="light"] {
  /* Toned-down off-white: less saturated, warmer — not pure blinding white */
  --bg-deep:       #eceef5;   /* was #f5f8ff — reduced brightness */
  --bg-mid:        #e3e7f1;   /* was #eef2fb */
  --bg-surface:    #d9dfe9;   /* was #e6ecf8 */
  --bg-card:       rgba(242, 244, 250, 0.97);  /* was rgba(255,255,255,0.97) */
  --bg-glass:      rgba(13, 22, 48, 0.05);
  --text:          #0d1630;
  --text-muted:    #3d5070;
  --text-faint:    #8a9aaa;
  --border:        rgba(23, 168, 0, 0.28);
  --border-subtle: rgba(23, 168, 0, 0.16);
  --white-pure:    #0d1630;
}

/* Nav — hardcoded rgba overrides */
[data-theme="light"] .wr-nav {
  background: rgba(18, 28, 58, 0.78);  /* dark navy — visually distinct over light page */
  border-bottom-color: rgba(23, 168, 0, 0.5625);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
/* Nav links must stay readable on the dark light-mode nav bar */
[data-theme="light"] .nav-links a { color: rgba(255, 255, 255, 0.70); }
[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-links a.active { color: #ffffff; }
[data-theme="light"] .nav-mobile-overlay {
  background: rgba(13, 22, 48, 0.45);
}

/* Chat widget */
[data-theme="light"] .wrc-root          { background: #f5f8ff; color: #0d1630; }
[data-theme="light"] .wrc-feed          { background: #eef2fb; }
[data-theme="light"] .wrc-msg-ai        { background: rgba(13,22,48,0.07); color: #0d1630; border-color: rgba(23,168,0,0.18); }
[data-theme="light"] .wrc-input         { background: rgba(255,255,255,0.9); color: #0d1630; border-color: rgba(23,168,0,0.22); }
[data-theme="light"] .wrc-input::placeholder { color: #8a9aaa; }
[data-theme="light"] .wrc-input-row     { background: rgba(225,232,255,0.85); border-top-color: rgba(23,168,0,0.12); }
[data-theme="light"] .wrc-divider       { color: #8a9aaa; }

/* Hub widget */
[data-theme="light"] #wr-hub-panel      { background: linear-gradient(160deg,#f5f8ff 0%,#edf2ff 100%); box-shadow: 0 12px 40px rgba(0,0,0,0.14); }
[data-theme="light"] .wrh-header-title  { color: #0d1630; }
[data-theme="light"] #wrh-email         { background: rgba(255,255,255,0.9); color: #0d1630; border-color: rgba(255,153,51,0.28); }
[data-theme="light"] #wrh-email::placeholder { color: #8a9aaa; }

/* CTA card — light mode: flip to bright base so text stays readable */
[data-theme="light"] .cta-card {
  background: linear-gradient(135deg,
    rgba(255, 153, 51, 0.08) 0%,
    rgba(245, 248, 255, 0.97) 45%,
    rgba(10, 61, 143, 0.06) 100%
  );
  border-color: rgba(255, 153, 51, 0.30);
  box-shadow: 0 4px 40px rgba(13, 22, 48, 0.06), 0 0 60px rgba(255, 153, 51, 0.06);
}
[data-theme="light"] .cta-title { color: #0d1630; }
[data-theme="light"] .cta-sub   { color: #3d5070; }

/* Globe — pointer cursor hint */
.logo-globe-canvas { cursor: pointer; }



/* --- Global page-text centering (user request: uniformity & symmetry) ---- */
main, section, article, header, footer,
.hero, .container, .content, .section,
.wr-section, .page-content, .page-section {
  text-align: center;
}
/* Re-align elements that must stay left-aligned for readability */
main pre, main code, main textarea,
main input[type="text"], main input[type="email"],
main input[type="tel"], main input[type="search"],
main input[type="url"], main input[type="number"],
main input[type="password"], main select,
main ul.left-list, main ol.left-list,
main .form-field, main .text-left {
  text-align: left;
}
/* Center list items by inline-blocking the lists */
main ul, main ol {
  list-style-position: inside;
  padding-left: 0;
}


/* Global page-text centering (user request) */
main, section, article, header, footer,
.hero, .container, .content, .section,
.wr-section, .page-content, .page-section {
  text-align: center;
}
main pre, main code, main textarea,
main input[type="text"], main input[type="email"],
main input[type="tel"], main input[type="search"],
main input[type="url"], main input[type="number"],
main input[type="password"], main select,
main ul.left-list, main ol.left-list,
main .form-field, main .text-left {
  text-align: left;
}
main ul:not(.left-list), main ol:not(.left-list) {
  list-style-position: inside;
  padding-left: 0;
}


/* Global page-text centering (user request: uniformity & symmetry) */
main, section, article, header, footer,
.hero, .container, .content, .section,
.wr-section, .page-content, .page-section {
  text-align: center;
}
main pre, main code, main textarea,
main input[type="text"], main input[type="email"],
main input[type="tel"], main input[type="search"],
main input[type="url"], main input[type="number"],
main input[type="password"], main select,
main ul.left-list, main ol.left-list,
main .form-field, main .text-left {
  text-align: left;
}
main ul:not(.left-list):not(.nav-mobile-social), main ol:not(.left-list) {
  list-style-position: inside;
  padding-left: 0;
}

/* Make wr-nav green in light theme */
[data-theme="light"] .wr-nav {
  background: var(--india-green);
  border-bottom: none;
}
[data-theme="light"] .nav-logo span {
  color: #fff !important;
}
[data-theme="light"] .nav-logo .logo-accent {
  color: var(--saffron) !important;
}


[data-theme="light"] .portal-side-label,
[data-theme="light"] .portal-side-label-ind,
[data-theme="light"] .portal-side-label-usa {
  color: #ffffff !important;
}
[data-theme="light"] .wh-ring {
  stroke: rgba(255,255,255,0.5) !important;
}
[data-theme="light"] .wh-core {
  fill: #fff !important;
}
[data-theme="light"] .wr-brand-rect {
  stroke: rgba(255,255,255,0.4) !important;
}


/* Left rail icon outlines */
.rail-icon svg, .rail-disclaimer svg { stroke: var(--india-green); }
.rail-icon:hover svg, .rail-disclaimer:hover svg, .rail-icon.active svg { stroke: var(--saffron); }

[data-theme="light"] .rail-icon svg,
[data-theme="light"] .rail-disclaimer svg { stroke: var(--saffron) !important; }

[data-theme="light"] .rail-icon:hover svg,
[data-theme="light"] .rail-disclaimer:hover svg,
[data-theme="light"] .rail-icon.active svg { stroke: var(--india-green) !important; }



/* Make Western Reddy text white in light theme */
[data-theme="light"] .nav-brand-link text tspan:first-child {
  fill: #ffffff !important;
}

[data-theme="light"] .logo-globe-canvas { background: transparent !important; }

[data-theme="light"] .nav-brand-link text tspan:last-child { fill: #ff9933 !important; }

/* Make Book Consultation text white in light theme */
[data-theme="light"] .nav-cta-panel text { fill: #ffffff !important; }
[data-theme="light"] .nav-mobile-cta { color: #ffffff !important; }




/* --- NEW MOBILE NAVIGATION LAYOUT --- */
@media (max-width: 900px) {
  .nav-container { display: none !important; } /* Hide the desktop nav totally */
  .portal-side-label { display: none !important; } /* Remove side labels on mobile — flags are self-explanatory and labels offset centering */
  
  .wr-nav {
    height: auto !important;
    background: var(--bg);
    border-bottom: 1px solid var(--border-subtle);
    padding: 10px 10px 15px 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  


  
  #wr-layout { margin-top: 172px !important; }
  body.has-portal-banner #wr-layout { margin-top: 220px !important; }

  .mobile-nav-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 15px;
  }
  
  .mobile-nav-row1 {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;   /* lotus is absolute inside here */
    width: 100%;
    height: 82px;
  }
  
  .mobile-home-btn {
    display: flex;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    color: var(--text);
  }
  
  .mobile-brand-box {
    /* Grid: 1fr|64px|1fr — track sizes ignore cell padding, globe always at 50% */
    display: grid;
    grid-template-columns: 1fr 64px 1fr;
    align-items: center;
    height: 82px;
    width: 100%;
    font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
    font-weight: 800;
    font-size: min(22px, 5.5vw); /* scales down on narrow Android screens */
    letter-spacing: 0.03em;
  }
  
  /* padding-left 52px guards Western text from lotus; grid track size is unaffected */
  .part-western { text-align: right; padding-right: 10px; padding-left: 52px; color: #17a800; overflow: hidden; white-space: nowrap; }
  .part-reddy   { text-align: left;  padding-left: 10px;  color: #ff9933; overflow: hidden; white-space: nowrap; }
  
  #mobile-canvas-hook {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .mobile-hamburger {
    display: none !important;
  }
  
  .mobile-nav-row2 {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 82px;
  }
  
  



  .mobile-portals-wrapper {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
  }
}

@media (min-width: 901px) {
  .mobile-nav-container { display: none !important; }
}

[data-theme="light"] .part-western { color: #ffffff !important; }
