/* ==========================================================================
   SUNTRIX POWERNEST ENERGY PRIVATE LIMITED - MAIN STYLESHEET
   Clean Energy | Green Future | Better Tomorrow
   ========================================================================== */

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

:root {
  /* Brand Colors */
  --clr-amber: #F59E0B;
  --clr-amber-dark: #D97706;
  --clr-amber-light: #FEF3C7;
  
  --clr-green: #10B981;
  --clr-green-dark: #047857;
  --clr-green-light: #ECFDF5;
  
  --clr-navy: #0F2D59;
  --clr-navy-dark: #081730;
  --clr-navy-light: #1E3A8A;
  
  --clr-jugnoo: #FF6600;
  --clr-jugnoo-dark: #E65100;
  --clr-jugnoo-light: #FFF7ED;

  /* Neutral Tones */
  --clr-text-main: #1E293B;
  --clr-text-muted: #64748B;
  --clr-text-light: #94A3B8;
  --clr-bg-page: #F8FAFC;
  --clr-bg-card: #FFFFFF;
  --clr-border: #E2E8F0;
  
  /* Typography */
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shadow & Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 20px -4px rgba(15, 45, 89, 0.08);
  --shadow-lg: 0 16px 32px -8px rgba(15, 45, 89, 0.12);

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   STRICT OVERFLOW & RESETS
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  font-family: var(--font-body);
  color: var(--clr-text-main);
  background-color: var(--clr-bg-page);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

body.nav-lock {
  overflow: hidden;
  touch-action: none;
}

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

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

button, input, select, textarea {
  font: inherit;
}

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

/* --------------------------------------------------------------------------
   TOP NOTIFICATION BAR (COMPACT & RESPONSIVE)
   -------------------------------------------------------------------------- */
.top-notification-bar {
  background: #0A192F;
  color: #FFFFFF;
  font-size: 0.8rem;
  padding: 6px 0;
  border-bottom: 2px solid var(--clr-amber);
  width: 100%;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.top-badge {
  background: var(--clr-green);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.top-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #F8FAFC;
  font-weight: 600;
  font-size: 0.8rem;
}

.top-contact-link:hover {
  color: var(--clr-amber);
}

.gst-badge {
  background: rgba(255, 255, 255, 0.12);
  padding: 2px 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   SITE HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 2000; /* Stacking context root */
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  gap: 12px;
  position: relative;
}

.site-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo {
  height: 44px;
  width: auto;
  max-width: 240px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 18px;
}

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--clr-navy);
  position: relative;
  padding: 6px 2px;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background: var(--clr-amber);
  transition: width var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--clr-amber-dark);
  font-weight: 700;
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Mobile Drawer Backdrop (INSIDE HEADER STACKING CONTEXT) */
.nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 2010;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Drawer Close Button */
.drawer-close-btn {
  display: none;
  align-self: flex-end;
  background: #F1F5F9;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--clr-navy);
  cursor: pointer;
  margin-bottom: 18px;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.drawer-close-btn:hover {
  background: #E2E8F0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition-normal);
  text-align: center;
  line-height: 1.35;
}

.btn-primary {
  background: linear-gradient(135deg, var(--clr-amber) 0%, var(--clr-amber-dark) 100%);
  color: #0F2D59;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(245, 158, 11, 0.45);
}

.btn-green {
  background: linear-gradient(135deg, var(--clr-green) 0%, var(--clr-green-dark) 100%);
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
}

.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(16, 185, 129, 0.45);
}

.btn-jugnoo {
  background: linear-gradient(135deg, var(--clr-jugnoo) 0%, var(--clr-jugnoo-dark) 100%);
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(255, 102, 0, 0.3);
}

.btn-jugnoo:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(255, 102, 0, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--clr-navy);
  border: 1.5px solid var(--clr-navy);
}

.btn-outline:hover {
  background: var(--clr-navy);
  color: #FFFFFF;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 12px 22px;
  font-size: 0.95rem;
}

/* Mobile Hamburger Button */
.mobile-nav-toggle {
  display: none;
  background: #F8FAFC;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.hamburger-line {
  width: 22px;
  height: 2.5px;
  background-color: var(--clr-navy);
  border-radius: 2px;
  transition: var(--transition-normal);
}

/* --------------------------------------------------------------------------
   PAGE INNER HERO BANNER
   -------------------------------------------------------------------------- */
.page-hero {
  background: linear-gradient(135deg, #0F2D59 0%, #173767 100%);
  color: #FFFFFF;
  padding: 40px 0 45px;
  position: relative;
  border-bottom: 3px solid var(--clr-amber);
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 900;
  color: #FFFFFF;
  margin-bottom: 8px;
  line-height: 1.25;
}

.page-hero-subtitle {
  font-size: 0.95rem;
  color: #CBD5E1;
  max-width: 650px;
  line-height: 1.6;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #94A3B8;
  margin-bottom: 10px;
}

.breadcrumb-list a {
  color: var(--clr-amber);
}

/* --------------------------------------------------------------------------
   HERO SECTION - HOMEPAGE
   -------------------------------------------------------------------------- */
.hero-solar {
  position: relative;
  padding: 45px 0 60px;
  background: radial-gradient(circle at 10% 20%, rgba(254, 243, 199, 0.4) 0%, rgba(240, 253, 244, 0.45) 50%, #FFFFFF 100%);
  overflow: hidden;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 35px;
  align-items: center;
}

.hero-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--clr-green-light);
  border: 1px solid #A7F3D0;
  padding: 5px 12px;
  border-radius: 30px;
  margin-bottom: 14px;
  max-width: 100%;
}

.hero-badge-wrap img {
  height: 18px;
  width: auto;
  flex-shrink: 0;
}

.hero-badge-text {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--clr-green-dark);
  letter-spacing: 0.5px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 4.8vw, 2.7rem);
  line-height: 1.2;
  font-weight: 900;
  color: var(--clr-navy);
  margin-bottom: 14px;
  word-break: break-word;
}

.hero-title .highlight-gold {
  color: var(--clr-amber-dark);
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--clr-text-muted);
  margin-bottom: 22px;
  max-width: 580px;
  line-height: 1.6;
}

.hero-benefits-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 26px;
}

.hero-benefit-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
}

.benefit-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.benefit-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--clr-text-muted);
  text-transform: uppercase;
}

.benefit-val {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--clr-navy);
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-visual-card {
  position: relative;
  width: 100%;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid #FFFFFF;
  background: #E2E8F0;
}

.hero-poster-preview {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.subsidy-highlight-badge {
  position: absolute;
  bottom: -16px;
  left: 10px;
  right: 10px;
  background: #FFFFFF;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 5px solid var(--clr-green);
  display: flex;
  align-items: center;
  gap: 12px;
}

.subsidy-highlight-badge .amount {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--clr-green-dark);
  line-height: 1;
}

.subsidy-highlight-badge .sub-tag {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--clr-text-muted);
}

/* --------------------------------------------------------------------------
   TRUST METRICS SECTION
   -------------------------------------------------------------------------- */
.trust-metrics-section {
  background: var(--clr-navy);
  color: #FFFFFF;
  padding: 24px 0;
  width: 100%;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}

.metric-item {
  padding: 6px;
  position: relative;
}

.metric-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.metric-number {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 900;
  color: var(--clr-amber);
  margin-bottom: 2px;
}

.metric-label {
  font-size: 0.78rem;
  color: #CBD5E1;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   SECTION HEADINGS & UTILITIES
   -------------------------------------------------------------------------- */
.section {
  padding: 55px 0;
  width: 100%;
}

.section-light {
  background-color: #FFFFFF;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 35px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--clr-green-dark);
  background: var(--clr-green-light);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.section-tag.tag-orange {
  color: var(--clr-jugnoo-dark);
  background: var(--clr-jugnoo-light);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 3.8vw, 2.1rem);
  font-weight: 800;
  color: var(--clr-navy);
  line-height: 1.25;
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   BRAND PARTNERS STRIP
   -------------------------------------------------------------------------- */
.brand-strip-section {
  background: #FFFFFF;
  padding: 30px 0 40px;
  border-bottom: 1px solid var(--clr-border);
  width: 100%;
}

.brand-strip-header {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--clr-navy);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.brand-logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.brand-logo-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-sm);
  padding: 4px;
  height: 50px;
  width: 135px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.brand-logo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 45, 89, 0.1);
  border-color: var(--clr-amber);
}

.brand-logo-card img {
  width: 128px;
  height: 40px;
  display: block;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   RESPONSIVE MEDIA QUERIES (TABLET & MOBILE)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* OFF-CANVAS MOBILE DRAWER WITH GUARANTEED Z-INDEX */
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 82vw;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background: #FFFFFF;
    flex-direction: column;
    align-items: stretch;
    padding: 20px 20px;
    box-shadow: -8px 0 25px rgba(0, 0, 0, 0.25);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s ease;
    z-index: 2020; /* STRICTLY HIGHER than .nav-backdrop (2010) */
    overflow-y: auto;
  }

  .nav-menu.open {
    transform: translateX(0);
    visibility: visible;
  }

  .drawer-close-btn {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 14px;
    border-bottom: 1px solid var(--clr-border);
    padding-bottom: 20px;
    margin-bottom: 20px;
  }

  .nav-links a {
    font-size: 1.05rem;
    padding: 6px 0;
    width: 100%;
  }

  .nav-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .nav-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .metric-item:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  /* TOP NOTIFICATION BAR - SLIM SINGLE ROW ON MOBILE */
  .top-notification-bar {
    padding: 5px 0;
    font-size: 0.75rem;
  }

  .top-bar-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }

  .top-bar-left {
    gap: 6px;
    font-size: 0.74rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .top-badge,
  .gst-badge,
  .top-bar-right .top-contact-link:nth-child(2),
  .top-bar-right .top-contact-link:nth-child(3) {
    display: none; /* Hide excessive clutter on mobile */
  }

  .top-bar-right {
    gap: 0;
    flex-shrink: 0;
  }

  .top-contact-link {
    font-size: 0.74rem;
    font-weight: 700;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .nav-container {
    padding: 8px 14px;
  }

  .site-logo {
    height: 38px;
    max-width: 190px;
  }

  .hero-solar {
    padding: 25px 0 40px;
  }

  .hero-benefits-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .subsidy-highlight-badge {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    margin-top: 14px;
    width: 100%;
  }

  .metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .brand-logos-row {
    gap: 8px;
  }

  .brand-logo-card {
    width: 110px;
    height: 44px;
  }

  .brand-logo-card img {
    width: 102px;
    height: 34px;
  }

  .floating-actions-bar {
    bottom: 12px;
    right: 12px;
    gap: 8px;
  }

  .float-btn {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
}
