/* ==========================================================================
   SD RENEWABLE - Responsive Stylesheet
   Responsive Breakpoints for Mobile, Tablet, Laptop, and Desktop Devices
   ========================================================================== */

/* Large Screens & Desktops (max-width: 1200px) */
@media (max-width: 1200px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

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

/* Medium Screens & Tablets (max-width: 992px) */
@media (max-width: 992px) {
  .top-bar-wrapper {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 70px);
    background-color: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem 2rem;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    transition: right 0.4s ease;
    gap: 1.5rem;
  }

  .nav-menu.active {
    right: 0;
  }

  .hamburger {
    display: block;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .hero {
    padding: 4rem 0 6rem 0;
  }

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

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .stat-card:nth-child(2) {
    border-right: none;
  }

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

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

/* Small Tablets & Mobile Landscape (max-width: 768px) */
@media (max-width: 768px) {
  .section {
    padding: 3.5rem 0;
  }

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

  .section-header h2 {
    font-size: 2rem;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1.05rem;
  }

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

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

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .floating-whatsapp {
    bottom: 1.5rem;
    left: 1.5rem;
    width: 48px;
    height: 48px;
  }

  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
  }
}

/* Extra Small Mobile Devices (max-width: 576px) */
@media (max-width: 576px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
  }

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

  .calculator-box {
    padding: 1.5rem;
  }

  .hero-card {
    padding: 1.5rem;
  }
}
