/* ==========================================================================
   PowerX Energies - Premium Responsive Styling
   Optimized for Mobile, Tablet, Laptop & Desktop Viewports
   Desktop view is preserved exactly. Mobile view is strictly top-to-bottom.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Laptop / Compact Desktop (1024px - 1439px)
   -------------------------------------------------------------------------- */
@media (max-width: 1439px) {
  :root {
    --container-width: 1140px;
  }

  h1 {
    font-size: 3.25rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .hero-img {
    height: 480px;
  }

  .about-img {
    height: 420px;
  }

  .hero-grid,
  .about-grid,
  .why-grid,
  .contact-grid {
    gap: 3rem;
  }
}

/* --------------------------------------------------------------------------
   2. Tablet (768px - 1023px)
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  :root {
    --container-padding: 1.5rem;
  }

  h1 {
    font-size: 2.75rem;
  }
  
  h2 {
    font-size: 2rem;
  }

  section {
    padding: 4.5rem 0;
  }

  /* Header & Dual-Row Layout for Tablet */
  .site-header {
    height: auto;
  }

  .header-top-row {
    height: 80px;
  }

  .header-top-container {
    padding: 0 1.5rem;
  }

  .header-brand-title {
    margin-left: 0;
    margin-right: 15px;
  }

  .brand-title-text {
    font-size: 1.45rem;
    line-height: 1.2;
  }

  .logo img {
    height: 70px;
    max-width: 200px;
  }

  .header-top-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .header-top-actions .btn {
    padding: 0.5rem 1.15rem;
    font-size: 0.85rem;
  }

  .mobile-menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    position: relative;
    touch-action: manipulation;
  }

  .header-bottom-row {
    display: block !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  .header-nav-container {
    display: block !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  .main-nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    display: none !important;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2.5rem 1.5rem;
    z-index: 999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav.active {
    display: flex !important;
    animation: mobileMenuSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .main-nav ul {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
    max-width: 320px;
    align-items: center;
    margin: 0 0 1.5rem 0;
    padding: 0;
    list-style: none;
  }

  .main-nav a {
    font-size: 1.2rem;
    font-weight: 600;
    color: #111827;
    padding: 0.6rem 1rem;
    display: block;
    text-align: center;
    width: 100%;
    border-radius: 6px;
    transition: all 0.2s ease;
    touch-action: manipulation;
  }

  .main-nav a:hover,
  .main-nav a.active {
    color: var(--primary-green);
    background-color: rgba(0, 184, 83, 0.08);
  }

  .mobile-nav-cta {
    display: block;
    margin-top: 1rem;
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  /* Traditional Hero Slider for Tablet */
  .traditional-slider {
    height: 560px;
  }

  .traditional-slider .slide-content-container {
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .slide-partner-pill {
    padding: 6px 18px 24px 18px;
    border-radius: 9999px;
    margin-bottom: 0.75rem;
  }

  .slide-partner-pill-logo {
    height: 58px;
    max-width: 240px;
  }

  .traditional-slider .slide-partner-header-unit .slide-title,
  .slide-partner-header-unit .slide-title {
    font-size: 0.95rem !important;
  }

  .traditional-slider .slide-title {
    font-size: 2.45rem;
    line-height: 1.18;
    margin-bottom: 0.75rem;
  }

  .traditional-slider .slide-desc {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
  }

  .traditional-slider .slide-btn {
    padding: 0.8rem 1.8rem;
    font-size: 0.9rem;
  }

  /* Grid Layouts for Tablet */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-img {
    height: 420px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-img {
    height: 380px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.25rem;
  }

  .brands-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem;
  }

  .brand-card {
    padding: 2.5rem 1.5rem;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .why-img {
    height: 300px;
  }

  .process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .process-step::after {
    display: none;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem;
  }

  .map-img {
    height: 340px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .mission-vision {
    gap: 2rem;
  }

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

  .footer-logo img {
    height: 70px;
    max-width: 200px;
  }

  .bess-top-row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
  }

  .bess-img {
    min-height: 300px;
    max-height: 400px;
  }

  .bess-benefits-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem;
  }
}

/* --------------------------------------------------------------------------
   3. Mobile View (Below 768px) - Strictly Top-to-Bottom Layout
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  :root {
    --container-padding: 1.25rem;
  }

  body {
    font-size: 15px;
    line-height: 1.65;
  }

  h1 {
    font-size: 2.15rem;
    line-height: 1.25;
    margin-bottom: 1.25rem;
  }

  h2 {
    font-size: 1.75rem;
    line-height: 1.28;
    margin-bottom: 1rem;
  }

  h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }

  p {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
  }

  section {
    padding: 3.5rem 0;
  }

  .section-header {
    text-align: center;
    margin-bottom: 2.5rem;
  }

  /* ------------------------------------------------------------------------
     Header: Sticky Header with Logo on LEFT and Menu on RIGHT
     ------------------------------------------------------------------------ */
  .site-header {
    height: auto;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 0;
    z-index: 1000;
    overflow: visible;
  }

  .header-top-row {
    height: 80px;
    overflow: visible;
  }

  .header-top-container {
    height: 80px;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 1rem;
    overflow: visible;
  }

  .logo {
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    position: relative;
    z-index: 1001;
    flex-shrink: 0;
  }

  .logo img {
    height: 60px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    display: block;
  }

  .header-brand-title {
    flex: 1;
    text-align: center;
    padding: 0 0.5rem;
    margin-left: 0;
    margin-right: 10px;
  }

  .brand-title-text {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
    color: #111827;
  }

  .header-top-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
  }

  .header-top-actions .btn {
    display: none;
  }

  .header-bottom-row {
    display: block !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  .header-nav-container {
    display: block !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  .mobile-menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    position: relative;
    touch-action: manipulation;
  }

  .hamburger {
    width: 24px;
    height: 2px;
    background-color: var(--black);
    position: relative;
    transition: background-color var(--transition-fast);
  }

  .mobile-menu-toggle::after {
    display: none !important;
  }

  .main-nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    display: none !important;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2.5rem 1.5rem;
    z-index: 999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav.active {
    display: flex !important;
    animation: mobileMenuSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .main-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
    max-width: 320px;
    margin: 0 0 1.5rem 0;
    padding: 0;
    list-style: none;
  }

  .main-nav a {
    font-size: 1.2rem;
    font-weight: 600;
    color: #111827;
    padding: 0.6rem 1rem;
    display: block;
    text-align: center;
    width: 100%;
    border-radius: 6px;
    transition: all 0.2s ease;
    touch-action: manipulation;
  }

  .main-nav a:hover,
  .main-nav a.active {
    color: var(--primary-green);
    background-color: rgba(0, 184, 83, 0.08);
  }

  .main-nav .mobile-nav-cta {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 1rem auto 0;
    text-align: center;
  }

  /* ------------------------------------------------------------------------
     Traditional Hero Slider: Mobile Responsive Layout
     ------------------------------------------------------------------------ */
  .traditional-slider {
    height: 550px !important;
  }

  .traditional-slider .slide-content-container {
    padding-top: 85px;
    padding-bottom: 50px;
    align-items: center;
  }

  .traditional-slider .slide-content {
    max-width: 100%;
    padding: 0 5px;
  }

  .slide-partner-header-unit {
    margin-left: 0;
  }

  .slide-partner-pill {
    padding: 5px 14px 22px 14px;
    border-radius: 9999px;
    margin-bottom: 0.65rem;
    max-width: 100%;
  }

  .slide-partner-pill-logo {
    height: 48px;
    max-width: 190px;
  }

  .traditional-slider .slide-partner-header-unit .slide-title,
  .slide-partner-header-unit .slide-title {
    font-size: 0.88rem !important;
  }

  .traditional-slider .slide-eyebrow {
    font-size: 0.75rem;
    margin-bottom: 0.45rem;
  }

  .traditional-slider .slide-title {
    font-size: 1.9rem !important;
    line-height: 1.18 !important;
    margin-bottom: 0.65rem !important;
  }

  .traditional-slider .slide-desc {
    font-size: 0.88rem;
    line-height: 1.45;
    margin-bottom: 1rem;
  }

  .traditional-slider .slide-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.55rem;
    margin-bottom: 0;
  }

  .traditional-slider .slide-btn {
    width: 100%;
    text-align: center;
    padding: 0.7rem 1.25rem;
    min-height: 42px;
    font-size: 0.88rem;
  }

  .traditional-slider .slider-arrow {
    display: none !important;
  }

  .traditional-slider .slider-dots {
    bottom: 14px;
    display: inline-flex !important;
    width: fit-content !important;
    max-width: fit-content !important;
    padding: 5px 12px;
    gap: 6px;
    background-color: rgba(0, 0, 0, 0.85);
    border-radius: 25px;
  }

  .traditional-slider .slide-across-india .slide-bg-img {
    object-position: center center;
  }

  /* ------------------------------------------------------------------------
     Stats Section: Strictly 1 Column (Top-to-Bottom)
     ------------------------------------------------------------------------ */
  .stats-section {
    padding: 2.5rem 0;
  }

  .stats-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
  }

  .stat-item {
    border-right: none !important;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.25rem;
    text-align: center;
  }

  .stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .stat-item h3 {
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
  }

  .stat-item p {
    font-size: 0.85rem;
    margin: 0;
  }

  /* ------------------------------------------------------------------------
     Who We Are Section: Image on Top, Content on Bottom
     ------------------------------------------------------------------------ */
  .about-section {
    padding: 3.5rem 0;
  }

  .about-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem;
  }

  .about-content {
    text-align: left;
  }

  .about-heading-wrap {
    display: flex;
    align-items: stretch;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
    text-align: left;
  }

  .about-heading-wrap .x-accent {
    width: 4px;
    min-width: 4px;
    margin: 0;
  }

  .about-img {
    height: 240px;
    width: 100%;
    object-fit: cover;
  }

  /* ------------------------------------------------------------------------
     Services Section: 1 Column (Top-to-Bottom)
     ------------------------------------------------------------------------ */
  .services-section {
    padding: 3.5rem 0;
  }

  .services-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
  }

  .service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    width: 100%;
  }

  .service-icon {
    margin-bottom: 1rem;
  }

  .service-arrow {
    display: none;
  }

  /* ------------------------------------------------------------------------
     Products Ecosystem: 1 Column (Top-to-Bottom)
     ------------------------------------------------------------------------ */
  .products-section {
    padding: 3.5rem 0;
  }

  .products-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
  }

  .product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.75rem 1.25rem;
    width: 100%;
  }

  .product-img {
    height: 160px;
    width: 100%;
    max-width: 320px;
    object-fit: cover;
    margin-bottom: 1rem;
  }

  .product-card h4 {
    font-size: 1.15rem;
    margin: 0.5rem 0 0.25rem;
  }

  .product-card p {
    font-size: 0.85rem;
    margin: 0;
  }

  /* ------------------------------------------------------------------------
     Brands Grid: 1 Column (Top-to-Bottom)
     ------------------------------------------------------------------------ */
  .brands-section {
    padding: 3.5rem 0;
  }

  .partner-featured-wrapper {
    margin: 0 auto 2.5rem;
  }

  .featured-partner-card {
    padding: 2rem 1.25rem !important;
  }

  .featured-partner-logo {
    max-height: 85px !important;
    max-width: 260px !important;
  }

  .deal-in-title {
    font-size: 1.5rem !important;
  }

  .brands-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
    margin: 1.75rem 0;
  }

  .brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem 1.5rem;
    width: 100%;
  }

  .brand-logo-img {
    max-height: 55px;
    max-width: 190px;
    width: auto;
    object-fit: contain;
    margin-top: 0.75rem;
  }

  .brand-logo-img.brand-logo-waaree {
    height: 58px;
    max-height: 65px;
  }

  /* Categories Grid */
  .categories-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.875rem;
  }

  .category-item {
    text-align: center;
    padding: 1.15rem 1.25rem;
  }

  /* ------------------------------------------------------------------------
     Why PowerX: Top-to-Bottom Flow (Header -> Image -> Reasons)
     ------------------------------------------------------------------------ */
  .why-section {
    padding: 3.5rem 0;
  }

  .why-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 2.5rem;
  }

  .why-header {
    text-align: center;
  }

  .why-img-container {
    margin-top: 1.5rem;
  }

  .why-img {
    height: 240px;
    width: 100%;
    object-fit: cover;
  }

  .why-reasons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .reason-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
  }

  .reason-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .reason-num {
    font-size: 1.75rem;
    color: var(--primary-green);
    font-weight: 800;
  }

  .reason-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.35rem;
  }

  .reason-content p {
    font-size: 0.9rem;
    margin: 0;
  }

  /* ------------------------------------------------------------------------
     BESS Section: Mobile Stack
     ------------------------------------------------------------------------ */
  .bess-section {
    padding: 3.5rem 0;
  }

  .bess-top-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
    margin-bottom: 2.5rem !important;
  }

  .bess-img-card {
    min-height: 240px !important;
    max-height: 300px !important;
  }

  .bess-benefits-full {
    padding-top: 1.5rem !important;
  }

  .bess-benefits-header {
    margin-bottom: 1.5rem !important;
    text-align: center !important;
  }

  .bess-benefits-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
  }

  .bess-benefit-item {
    padding: 1.25rem 1rem !important;
  }

  /* ------------------------------------------------------------------------
     EPC Process Timeline: Strictly Top-to-Bottom (Number Top, Title, Text)
     ------------------------------------------------------------------------ */
  .process-section {
    padding: 3.5rem 0;
  }

  .process-steps {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    margin-top: 2rem;
  }

  .process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 1.5rem 1.25rem;
    background: var(--light-bg);
    border-radius: 8px;
    border: 1px solid var(--border);
    width: 100%;
  }

  .process-step::after {
    display: none !important;
  }

  .step-num {
    margin: 0 0 0.5rem;
    width: 46px;
    height: 46px;
    font-size: 1.05rem;
  }

  .process-step-content h4 {
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
  }

  .process-step-content p {
    font-size: 0.875rem;
    margin: 0;
  }

  /* ------------------------------------------------------------------------
     Portfolio Section: 1 Column (Top-to-Bottom)
     ------------------------------------------------------------------------ */
  .portfolio-section {
    padding: 3.5rem 0;
  }

  .portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
  }

  .filter-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .portfolio-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.75rem !important;
    margin-bottom: 2rem;
  }

  .portfolio-item,
  .portfolio-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
  }

  .portfolio-img {
    height: 220px;
    width: 100%;
    overflow: hidden;
  }

  .portfolio-content {
    padding: 1.5rem 1.25rem;
  }

  .portfolio-content h4 {
    font-size: 1.2rem;
  }

  /* ------------------------------------------------------------------------
     Pan India / Map Section: Top-to-Bottom Flow
     ------------------------------------------------------------------------ */
  .map-section {
    padding: 3.5rem 0;
    text-align: center;
  }

  .map-container {
    margin-top: 2rem;
    width: 100%;
  }

  .map-img {
    height: 240px;
    width: 100%;
    object-fit: cover;
  }

  .map-overlay {
    padding: 1.25rem;
  }

  .map-overlay h3 {
    font-size: 1.85rem;
    letter-spacing: 0.1em;
  }

  .map-overlay p {
    font-size: 0.95rem;
  }

  /* ------------------------------------------------------------------------
     Subpage Headers & Inner Layouts: Top-to-Bottom
     ------------------------------------------------------------------------ */
  .subpage-hero {
    min-height: 330px;
    padding: 125px 1.25rem 55px !important;
  }

  .subpage-hero h1 {
    font-size: 2.15rem !important;
    line-height: 1.22 !important;
    margin-bottom: 0.85rem;
  }

  .subpage-hero-desc {
    font-size: 0.98rem !important;
    line-height: 1.55;
    margin-bottom: 1.25rem;
  }

  .subpage-hero-badge {
    font-size: 0.72rem;
    padding: 0.35rem 0.85rem;
    margin-bottom: 1rem;
  }

  .subpage-hero-tags {
    gap: 0.5rem;
    margin-top: 1.25rem;
  }

  .subpage-hero-tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.7rem;
  }

  .page-header {
    padding: 8.5rem 0 2.5rem !important;
    text-align: center;
  }

  .page-header h1 {
    font-size: 2.15rem;
    margin-bottom: 0.75rem;
  }

  .content-section {
    padding: 3.5rem 0;
  }

  .about-image {
    height: auto !important;
    max-height: 260px;
    margin-bottom: 2rem;
  }

  .about-image img {
    height: 260px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
  }

  /* Mission & Vision: 1 Column Stack */
  .mission-vision {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem;
    margin-top: 2.5rem;
  }

  .mv-card {
    padding: 2rem 1.5rem;
    text-align: center;
  }

  /* Legal Pages (Privacy Policy, Terms, Disclaimer) */
  .legal-content {
    padding: 1.75rem 1.25rem !important;
    border-radius: 6px;
  }

  .legal-content h2 {
    font-size: 1.35rem !important;
    margin-top: 1.75rem !important;
  }

  .legal-content h3 {
    font-size: 1.15rem !important;
  }

  .legal-content ul {
    padding-left: 1.25rem !important;
  }

  .legal-highlight-box {
    padding: 1.15rem 1rem !important;
    margin: 1.25rem 0 !important;
  }

  /* ------------------------------------------------------------------------
     Contact Page: Locations on Top, Form on Bottom
     ------------------------------------------------------------------------ */
  .contact-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 2.5rem !important;
    padding: 2.5rem 0;
  }

  .contact-info {
    width: 100%;
    padding: 2.25rem 1.5rem;
  }

  .contact-info h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
  }

  .location {
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
  }

  .contact-form-container {
    width: 100%;
    padding: 0;
  }

  .form-control {
    font-size: 16px; /* Prevents auto-zoom in iOS Safari */
    padding: 0.85rem 1rem;
  }

  /* ------------------------------------------------------------------------
     CTA Sections: Title -> Paragraph -> Button
     ------------------------------------------------------------------------ */
  .cta-section {
    padding: 4.5rem 1.25rem !important;
    text-align: center;
  }

  .cta-section h2 {
    font-size: 1.85rem;
    margin-bottom: 1rem;
  }

  .cta-section p {
    font-size: 1.05rem !important;
    margin-bottom: 2rem !important;
  }

  .cta-section .btn {
    width: 100%;
    padding: 0.9rem 1.5rem;
  }

  /* ------------------------------------------------------------------------
     Footer: Strictly 1 Column (Top-to-Bottom Flow)
     ------------------------------------------------------------------------ */
  .site-footer {
    padding: 3.5rem 0 max(3.5rem, calc(2rem + env(safe-area-inset-bottom, 0px)));
  }

  .footer-bottom {
    padding-bottom: 1.5rem;
  }

  .footer-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    text-align: center;
    gap: 2.25rem;
    margin-bottom: 2.5rem;
  }

  .footer-logo {
    display: flex;
    justify-content: center;
    margin-top: 0;
    margin-bottom: 0.75rem;
  }

  .footer-logo img {
    height: 60px;
    width: auto;
    max-width: 150px;
  }

  .footer-heading {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
  }

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

  .footer-links a {
    display: inline-block;
    padding: 0.35rem 0;
    font-size: 0.95rem;
  }

  .social-links {
    justify-content: center;
  }

  .footer-legal-links {
    gap: 0.5rem 0.85rem;
    font-size: 0.825rem;
    line-height: 1.6;
    margin-top: 1rem;
  }

  /* Founders Section */
  .founders-section {
    padding: 3.5rem 0;
  }

  .founders-list {
    gap: 2rem;
  }

  .founder-row-card {
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    padding: 2rem 1.25rem !important;
  }

  .founder-photo-col {
    flex: 0 0 auto;
  }

  .founder-photo-wrap {
    width: 180px;
    height: 220px;
  }

  .founder-photo-wrap.founder-photo-mali-wrap {
    width: 180px;
    height: 220px;
  }

  .founder-header {
    text-align: center;
  }

  .founder-bio p {
    text-align: left;
  }

  .founder-highlights {
    justify-content: center;
  }

  /* BESS Section */
  .bess-section {
    padding: 3.5rem 0;
  }

  .bess-heading-wrap h2 {
    font-size: 1.75rem;
  }

  .bess-img {
    min-height: 280px;
    max-height: 380px;
  }
}

/* --------------------------------------------------------------------------
   4. Small Mobile (Below 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 479px) {
  :root {
    --container-padding: 1rem;
  }

  h1 {
    font-size: 1.85rem;
    line-height: 1.25;
  }

  h2 {
    font-size: 1.5rem;
  }

  .logo img {
    height: 54px;
    max-width: 130px;
  }

  .brand-title-text {
    font-size: 0.92rem;
    line-height: 1.2;
  }

  .traditional-slider .slide-title {
    font-size: 1.85rem !important;
  }

  .subpage-hero {
    min-height: 290px;
    padding: 110px 1rem 45px !important;
  }

  .subpage-hero h1 {
    font-size: 1.85rem !important;
  }

  .subpage-hero-desc {
    font-size: 0.9rem !important;
  }

  .mobile-menu-toggle {
    max-width: 100%;
  }

  .hero-img {
    height: 230px;
  }

  .about-img {
    height: 210px;
  }

  .why-img {
    height: 210px;
  }

  .map-img {
    height: 210px;
  }

  .map-overlay h3 {
    font-size: 1.6rem;
  }

  .product-img {
    height: 140px;
  }

  .stat-item h3 {
    font-size: 1.2rem;
  }

  .btn {
    padding: 0.8rem 1.25rem;
    font-size: 0.9rem;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .footer-logo img {
    height: 54px;
    max-width: 130px;
  }

  .legal-content {
    padding: 1.25rem 0.85rem !important;
  }

  .featured-partner-card {
    padding: 1.5rem 1rem !important;
  }

  .featured-partner-logo {
    max-height: 70px !important;
    max-width: 220px !important;
  }

  .brand-card {
    padding: 1.75rem 1rem !important;
  }

  .founder-name {
    font-size: 1.35rem;
  }

  .founder-designation {
    font-size: 0.88rem;
  }

  .founder-photo-wrap {
    width: 160px;
    height: 195px;
  }

  .founder-photo-wrap.founder-photo-mali-wrap {
    width: 160px;
    height: 195px;
  }

  .founder-role-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .role-companies-green {
    padding-left: 0.75rem;
  }

  .bess-heading-wrap h2 {
    font-size: 1.5rem;
  }

  .bess-benefit-item {
    flex-direction: column;
    gap: 0.75rem;
  }

  .bess-img {
    min-height: 230px;
  }
}

/* --------------------------------------------------------------------------
   5. Ultra-Compact Mobile (Below 380px)
   -------------------------------------------------------------------------- */
@media (max-width: 380px) {
  :root {
    --container-padding: 0.75rem;
  }

  .header-top-container {
    padding: 0 0.5rem;
  }

  .logo img {
    height: 48px;
    max-width: 110px;
  }

  .brand-title-text {
    font-size: 0.82rem;
    line-height: 1.15;
  }

  .header-brand-title {
    margin-right: 4px;
    padding: 0 0.25rem;
  }

  .mobile-menu-toggle {
    width: 40px;
    height: 40px;
  }

  .slide-partner-pill-logo {
    height: 40px !important;
    max-width: 170px !important;
  }

  .traditional-slider .slide-title {
    font-size: 1.65rem !important;
  }

  .subpage-hero h1 {
    font-size: 1.65rem !important;
  }

  .founder-photo-wrap,
  .founder-photo-wrap.founder-photo-mali-wrap {
    width: 145px;
    height: 175px;
  }

  .founder-roles-grid {
    padding: 0 0.25rem;
  }

  .project-photos-row .project-photo-card {
    height: 180px;
  }
}

