/* VGP Green Solar Energy - Core Design System */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #0E8140;
  --primary-hover: #0a6632;
  --secondary-green: #2A9848;
  --accent-green: #6DBE45;
  --accent-light: #e8f5e9;
  --text-main: #20252B;
  --text-muted: #5A6573;
  --bg-main: #FFFFFF;
  --bg-light: #F4F8F5;
  --bg-dark: #0B2917;
  --border-color: #E2E8F0;
  --border-green: #D1E7DD;
  --shadow-sm: 0 2px 8px rgba(14, 129, 64, 0.06);
  --shadow-md: 0 10px 30px rgba(14, 129, 64, 0.1);
  --shadow-lg: 0 20px 40px rgba(14, 129, 64, 0.15);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Base resets & typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* Alert Banner above header */
.top-alert-banner {
  background: linear-gradient(90deg, #0E8140 0%, #2A9848 100%);
  color: #FFFFFF;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  position: relative;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(14, 129, 64, 0.2);
}

.top-alert-banner .banner-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.banner-badge {
  background-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.banner-btn {
  background-color: #FFFFFF;
  color: var(--primary);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.8rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.banner-btn:hover {
  background-color: var(--bg-light);
  transform: translateY(-1px);
}

.banner-close {
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.8;
  transition: var(--transition);
}

/* Top Information Header Bar */
.top-info-bar {
  background-color: var(--text-main);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-info-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-info-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.top-info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-info-item svg {
  color: var(--accent-green);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.gst-badge {
  background-color: rgba(109, 190, 69, 0.2);
  color: var(--accent-green);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(109, 190, 69, 0.4);
}

/* Main Navigation / Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-green) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(14, 129, 64, 0.25);
  flex-shrink: 0;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  padding: 0.5rem 0.2rem;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Primary Button Component */
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary-green) 100%);
  color: #FFFFFF;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(14, 129, 64, 0.3);
  transition: var(--transition);
  min-height: 44px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 129, 64, 0.4);
  color: #FFFFFF;
}

.btn-secondary {
  background-color: var(--bg-light);
  color: var(--primary);
  border: 1px solid var(--border-green);
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
  min-height: 44px;
}

.btn-secondary:hover {
  background-color: #e2f0e6;
  color: var(--primary-hover);
  transform: translateY(-2px);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
}

/* Mobile Drawer Menu */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 41, 23, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100%;
  background: #FFFFFF;
  z-index: 1002;
  box-shadow: -10px 0 30px rgba(0,0,0,0.15);
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.drawer-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.mobile-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu-link {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-sm);
  display: block;

  transition: var(--transition);
}

.mobile-menu-link:hover, .mobile-menu-link.active {
  background-color: var(--bg-light);
  color: var(--primary);
}

/* Hero Section */
.hero-section {
  background: radial-gradient(circle at 80% 20%, rgba(109, 190, 69, 0.12) 0%, rgba(244, 248, 245, 0.8) 50%, #FFFFFF 100%);
  padding: 3.5rem 1.25rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--accent-light);
  border: 1px solid var(--border-green);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.hero-pill .pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(109, 190, 69, 0.7);
  animation: pulse 1.8s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(109, 190, 69, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(109, 190, 69, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(109, 190, 69, 0); }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-trust-badges {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  flex-direction: column;
}

.trust-number {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}

.trust-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Glassmorphism Card Component */
.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.hero-card {
  background: linear-gradient(145deg, #FFFFFF 0%, var(--bg-light) 100%);
  border: 1px solid var(--border-green);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;

  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-color);
}

.hero-card-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
}

/* Mega Offer Section */
.offer-section {
  padding: 4rem 1.25rem;
  background-color: var(--bg-light);
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3rem;
}

.section-tag {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-muted);
}

/* Dual Language Toggle */
.lang-toggle-box {
  display: inline-flex;
  background-color: var(--bg-main);
  padding: 0.3rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

.lang-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  background: none;
  color: var(--text-muted);
  transition: var(--transition);
}

.lang-btn.active {
  background-color: var(--primary);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

/* Offer Card */
.mega-offer-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 2px solid var(--accent-green);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1100px;
  margin: 0 auto;
}

.offer-visual {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #0A4222 100%);
  color: #FFFFFF;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.offer-price-tag {
  font-size: clamp(3rem, 7vw, 4rem);
  font-weight: 800;
  line-height: 1;
  color: var(--accent-green);
  margin: 1.25rem 0 0.5rem;
}

.offer-details-side {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.offer-feature-list {
  list-style: none;
  margin: 1.25rem 0;
}

.offer-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.check-icon {
  width: 22px;
  height: 22px;
  background-color: var(--accent-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 800;
  margin-top: 2px;
}

/* Solar Savings Calculator Section */
.calculator-section {
  padding: 4rem 1.25rem;
  background-color: var(--bg-main);
}

.calculator-card {
  max-width: 1000px;
  margin: 0 auto;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.calc-input-group {
  margin-bottom: 1.5rem;
}

.calc-label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.calc-range {
  width: 100%;
  accent-color: var(--primary);
  height: 8px;
  background: var(--border-color);
  border-radius: var(--radius-full);
  cursor: pointer;
}

.calc-result-box {
  background-color: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid var(--border-green);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.calc-result-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

/* Available Sites Location Grid */
.sites-section {
  padding: 4rem 1.25rem;
  background-color: var(--bg-light);
}

.sites-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.site-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 1.75rem 1.5rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.site-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary-green);
}

.site-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.site-tamil {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.85rem;
}

.site-badge {
  background-color: var(--accent-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 0.85rem;
}

/* Franchise Section */
.franchise-section {
  padding: 4rem 1.25rem;
  background-color: var(--bg-main);
}

.franchise-card {
  max-width: 1100px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #134B29 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.franchise-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.franchise-sub {
  color: var(--accent-green);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.cert-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.25rem;
  text-align: center;
}

/* Contact Page & Lead Form */
.contact-section {
  padding: 4rem 1.25rem;
  background-color: var(--bg-light);
}

.contact-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-family: var(--font-family);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 129, 64, 0.15);
}

.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  height: 100%;
  min-height: 350px;
}

/* Footer Component */
.main-footer {
  background-color: var(--bg-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 1.25rem 2rem;
  font-size: 0.95rem;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.footer-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 1.15rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a:hover {
  color: var(--accent-green);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

/* --- Mobile Responsiveness Breakpoints --- */

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .mega-offer-card {
    grid-template-columns: 1fr;
  }
  .calculator-card {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .franchise-card {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .desktop-nav, .desktop-cta {
    display: none !important;
  }
  .mobile-toggle {
    display: flex !important;
  }

  .top-info-bar {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
  }
  .top-info-text {
    display: none;
  }
  .top-info-container {
    justify-content: center;
  }

  .hero-section {
    padding: 2.5rem 1rem 3rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero-trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    text-align: center;
  }

  .trust-item {
    border-left: none !important;
    padding-left: 0 !important;
  }

  .trust-number {
    font-size: 1.15rem;
  }
  .trust-label {
    font-size: 0.7rem;
  }

  .glass-card {
    padding: 1.5rem 1.25rem;
  }

  .offer-visual, .offer-details-side {
    padding: 2rem 1.25rem;
  }

  .calculator-card {
    padding: 1.75rem 1.25rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-trust-badges {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .top-alert-banner .banner-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-title {
    font-size: 1rem;
  }

  .brand-sub {
    font-size: 0.6rem;
  }
}
