/* ---------- PM Surya Ghar topbar (transparent, floats over hero) ---------- */
.pmsg-topbar {
  position: relative;
  z-index: 2;
  background: transparent;
  padding: 20px 40px;
  border-bottom: none;
}

.pmsg-topbar .brand-mark { border-color: rgba(255,255,255,0.5); }
.pmsg-topbar .brand-info { color: #fff; }
.pmsg-topbar .brand-info .dot { color: rgba(255,255,255,0.5); }

.pmsg-topbar .pill-item {
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
}

.pmsg-topbar .pill-item:hover { color: #fff; border-color: rgba(255,255,255,0.5); }

.pmsg-topbar .pill-item.active {
  background: #ffffff;
  color: #111;
  border-color: #ffffff;
}

.pmsg-topbar .help-link { color: #fff; }
.pmsg-topbar .help-link svg path { stroke: #fff; }

.pmsg-topbar .menu-toggle {
  border-color: rgba(255,255,255,0.5);
  margin-left: auto;
}
.pmsg-topbar .menu-toggle span { background: #fff; }

@media (max-width: 900px) {
  .pmsg-topbar { grid-template-columns: 1fr auto; }
  .pmsg-topbar .topbar-right { justify-self: end; }
  .pmsg-topbar .help-link { display: none; }

  /* The dropdown menu always opens on a solid white background,
     so pill links need normal dark-on-light colors here — the
     light-on-transparent styling is only for the desktop nav
     sitting over the hero photo. */
  .pmsg-topbar .pill-item {
    color: rgba(0,0,0,0.55);
    background: rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.08);
  }

  .pmsg-topbar .pill-item:hover {
    color: #111;
    border-color: rgba(0,0,0,0.2);
  }

  .pmsg-topbar .pill-item.active {
    background: #111;
    color: #fff;
    border-color: #111;
  }
}

/* When the sticky topbar is directly above this section (embedded
   in about.html), make it transparent here so the photo shows
   through instead of a hard white strip. */
.pmsg-section-adjacent-topbar {
  background: rgba(15, 25, 70, 0.25) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: none !important;
}

.pmsg-section-adjacent-topbar .brand-mark { border-color: rgba(255,255,255,0.5); }
.pmsg-section-adjacent-topbar .brand-info { color: #fff; }
.pmsg-section-adjacent-topbar .brand-info .dot { color: rgba(255,255,255,0.5); }
.pmsg-section-adjacent-topbar .help-link { color: #fff; }
.pmsg-section-adjacent-topbar .help-link svg path { stroke: #fff; }
.pmsg-section-adjacent-topbar .menu-toggle { border-color: rgba(255,255,255,0.5); }
.pmsg-section-adjacent-topbar .menu-toggle span { background: #fff; }

.pmsg-section-adjacent-topbar .pill-item-light {
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
}

.pmsg-section-adjacent-topbar .pill-item-light:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

.pmsg-section-adjacent-topbar .pill-item-light.active {
  background: #ffffff;
  color: #111;
  border-color: #ffffff;
}

/* ---------- PM Surya Ghar section (embedded into about.html's scroll) ---------- */
.pmsg-section {
  position: relative;
  z-index: 0;
  min-height: 100vh;
  background: #0f1946 url('pm-surya-ghar-bg.jpg') center/cover no-repeat;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 50px;
  padding-bottom: 90px;
  overflow: hidden;
}

.pmsg-section-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,25,70,0.25) 0%, rgba(15,25,70,0.45) 55%, rgba(10,18,55,0.6) 100%);
  z-index: 0;
}

.pmsg-section-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 0 24px;
  text-align: center;
  color: #fff;
}

.pmsg-section .pmsg-badge,
.pmsg-section .pmsg-eyebrow,
.pmsg-section .pmsg-title,
.pmsg-section .pmsg-subtext {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  animation: none;
}

.pmsg-section .pmsg-badge.in-view,
.pmsg-section .pmsg-eyebrow.in-view,
.pmsg-section .pmsg-title.in-view,
.pmsg-section .pmsg-subtext.in-view {
  opacity: 1;
  transform: translateY(0);
}

.pmsg-section .pmsg-badge { transition-delay: 0s; }
.pmsg-section .pmsg-eyebrow { transition-delay: 0.15s; }
.pmsg-section .pmsg-title { transition-delay: 0.3s; }
.pmsg-section .pmsg-subtext { transition-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  .pmsg-section .pmsg-badge,
  .pmsg-section .pmsg-eyebrow,
  .pmsg-section .pmsg-title,
  .pmsg-section .pmsg-subtext {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 640px) {
  .pmsg-section { min-height: 80vh; padding-top: 90px; padding-bottom: 64px; }
}

/* ---------- PM Surya Ghar hero ---------- */
.pmsg-hero {
  position: sticky;
  top: -74px;
  z-index: 0;
  min-height: 100vh;
  margin-top: -74px;
  background: #0f1946 url('pm-surya-ghar-bg.jpg') center/cover no-repeat;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 150px;
  padding-bottom: 60px;
  overflow: hidden;
}

.pmsg-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,25,70,0.25) 0%, rgba(15,25,70,0.45) 55%, rgba(10,18,55,0.6) 100%);
  z-index: 0;
}

.pmsg-hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 0 24px;
  text-align: center;
  color: #fff;
}

.pmsg-badge {
  display: block;
  height: 300px;
  width: auto;
  margin: 0 auto 24px;
  opacity: 0;
  transform: translateY(30px);
}

body.pmsg-animate .pmsg-badge {
  animation: pmsgRiseIn 0.7s ease forwards;
  animation-delay: 0s;
}

.pmsg-eyebrow {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.65);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
}

body.pmsg-animate .pmsg-eyebrow {
  animation: pmsgRiseIn 0.7s ease forwards;
  animation-delay: 0.2s;
}

.pmsg-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5.5vw, 58px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(30px);
}

body.pmsg-animate .pmsg-title {
  animation: pmsgRiseIn 0.7s ease forwards;
  animation-delay: 0.45s;
}

.pmsg-subtext {
  margin-top: 22px;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(30px);
}

body.pmsg-animate .pmsg-subtext {
  animation: pmsgRiseIn 0.7s ease forwards;
  animation-delay: 0.7s;
}

.pmsg-attribution {
  margin-top: 16px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255,255,255,0.7);
  opacity: 0;
  transform: translateY(30px);
}

body.pmsg-animate .pmsg-attribution {
  animation: pmsgRiseIn 0.7s ease forwards;
  animation-delay: 0.85s;
}

.pmsg-section .pmsg-attribution {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: 0.6s;
}

.pmsg-section .pmsg-attribution.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pmsgRiseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pmsg-badge, .pmsg-eyebrow, .pmsg-title, .pmsg-subtext {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

@media (max-width: 900px) {
  .pmsg-topbar { padding: 16px 20px; }
}

@media (max-width: 640px) {
  .pmsg-hero { min-height: 80vh; margin-top: -66px; padding-top: 100px; }
  .pmsg-badge { height: 150px; margin-bottom: 18px; }
  .pmsg-eyebrow { font-size: 11.5px; }
  .pmsg-title { line-height: 1.2; }
  .pmsg-subtext { font-size: 13.5px; padding: 0 8px; }
}

@media (max-width: 380px) {
  .pmsg-hero-content { padding: 0 18px; }
  .pmsg-title { font-size: 28px; }
  .pmsg-subtext { font-size: 12.5px; }
}

/* ---------- Key Benefits (glass cards) ---------- */
.pmsg-benefits {
  position: relative;
  z-index: 1;
  background: #0f1946 url('pm-surya-ghar-bg.jpg') center/cover no-repeat;
  background-attachment: fixed;
  padding: 90px 40px 110px;
  overflow: hidden;
}

.pmsg-benefits::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,18,55,0.35) 0%, rgba(10,18,55,0.5) 100%);
  z-index: 0;
}

.pmsg-benefits-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.pmsg-benefits-eyebrow {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.6);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.pmsg-benefits-eyebrow.in-view {
  opacity: 1;
  transform: translateY(0);
}

.pmsg-benefits-title {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: 0.1s;
}

.pmsg-benefits-title.in-view {
  opacity: 1;
  transform: translateY(0);
}

.pmsg-benefits-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

.pmsg-glass-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 20px;
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.pmsg-glass-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.pmsg-benefits-grid .pmsg-glass-card:nth-child(1) { transition-delay: 0.15s; }
.pmsg-benefits-grid .pmsg-glass-card:nth-child(2) { transition-delay: 0.3s; }
.pmsg-benefits-grid .pmsg-glass-card:nth-child(3) { transition-delay: 0.45s; }

.pmsg-glass-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pmsg-glass-title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: #fff;
}

.pmsg-glass-text {
  margin-top: 12px;
  font-family: var(--font-ui);
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
}

.pmsg-glass-list {
  margin-top: 12px;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pmsg-glass-list li {
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.78);
}

.pmsg-glass-list li strong {
  color: #fff;
  font-weight: 600;
}

@media (max-width: 900px) {
  .pmsg-benefits { padding: 70px 24px 80px; background-attachment: scroll; }
  .pmsg-benefits-grid { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 520px) {
  .pmsg-benefits { padding: 56px 18px 64px; }
  .pmsg-glass-card { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .pmsg-benefits-eyebrow,
  .pmsg-benefits-title,
  .pmsg-glass-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Services ----------
   Moved to /services/services.css — Services is now its own
   subfolder. .pmsg-glass-card / .pmsg-glass-icon / .pmsg-glass-title /
   .pmsg-glass-text below stay here because Key Benefits above still
   uses them; home.html loads this file and services.css together. */

/* ---------- Scheme stats strip (countdown + achievement) ---------- */
.pmsg-stats {
  position: relative;
  background: linear-gradient(135deg, #10193f 0%, #1b2a5c 100%);
  padding: 56px 40px;
  overflow: hidden;
}

.pmsg-stats-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

.pmsg-countdown {
  flex: 0 0 300px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.pmsg-countdown.in-view {
  opacity: 1;
  transform: translateY(0);
}

.pmsg-countdown-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.pmsg-countdown-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pmsg-countdown-label {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #f5a623;
}

.pmsg-countdown-date {
  margin-top: 6px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

.pmsg-countdown-date strong {
  color: #fff;
}

.pmsg-countdown-timer {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.pmsg-timer-unit {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 10px 8px;
  min-width: 56px;
  text-align: center;
}

.pmsg-timer-unit span {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}

.pmsg-timer-unit small {
  display: block;
  margin-top: 2px;
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.55);
}

.pmsg-achievement {
  flex: 1;
  min-width: 280px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: 0.15s;
}

.pmsg-achievement.in-view {
  opacity: 1;
  transform: translateY(0);
}

.pmsg-achievement-label {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.55);
}

.pmsg-achievement-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pmsg-achievement-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 14px;
  padding: 18px;
}

.pmsg-achievement-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pmsg-achievement-value {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: #fff;
}

.pmsg-achievement-caption {
  margin-top: 6px;
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255,255,255,0.7);
}

.pmsg-achievement-caption span {
  color: rgba(255,255,255,0.45);
  font-size: 11px;
}

@media (max-width: 900px) {
  .pmsg-stats { padding: 40px 24px; }
  .pmsg-stats-inner { flex-direction: column; gap: 28px; }
  .pmsg-countdown { flex: 1 1 auto; }
}

@media (max-width: 700px) {
  .pmsg-achievement-value { font-size: 22px; }
  .pmsg-achievement-card { padding: 14px; }
}

@media (max-width: 520px) {
  .pmsg-achievement-grid { grid-template-columns: 1fr; gap: 12px; }
  .pmsg-achievement-value { font-size: 26px; }
  .pmsg-achievement-card { padding: 18px; }
  .pmsg-countdown-timer { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .pmsg-timer-unit { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pmsg-countdown,
  .pmsg-achievement {
    opacity: 1;
    transform: none;
    transition: none;
  }
}