/* ==========================================================================
   METRA ENERGY - RESPONSIVE STYLESHEET
   Mobile, Tablet, Laptop and Desktop Breakpoints
   ========================================================================== */

/* Breakpoint: Desktop & Laptop (max-width: 1200px) */
@media (max-width: 1200px) {
  .hero-metrics-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .hero-metric-item:nth-child(2) {
    border-right: none;
  }

  .footer-top {
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 2.5rem;
  }

  .footer-top > div:last-child {
    grid-column: span 3;
  }

  .history-block {
    gap: 2.5rem;
  }
}

/* Breakpoint: Tablet Landscape & Small Laptop (max-width: 992px) */
@media (max-width: 992px) {
  :root {
    --header-height: 74px;
  }

  .section {
    padding: 4.5rem 0;
  }

  /* Nav Menu Drawer */
  .mobile-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: rgba(8, 12, 20, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 3.5rem 2rem;
    gap: 2rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    font-size: 1.25rem;
    font-weight: 600;
  }

  .nav-actions .btn {
    display: none;
  }

  .nav-menu .mobile-action-btn {
    display: inline-flex !important;
    margin-top: 1rem;
    width: 100%;
    max-width: 280px;
  }

  /* Grids */
  .history-block {
    grid-template-columns: 1fr;
  }

  .history-image-card img {
    height: 320px;
  }

  .mv-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .cta-content {
    flex-direction: column;
    text-align: center;
  }

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

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-top > div:last-child {
    grid-column: span 2;
  }
}

/* Breakpoint: Tablet Portrait & Large Phone (max-width: 768px) */
@media (max-width: 768px) {
  .section-header {
    margin-bottom: 2.5rem;
  }

  .hero-video-section {
    min-height: auto;
    padding-top: calc(var(--header-height) + 3rem);
    padding-bottom: 4rem;
  }

  .hero-metrics-bar {
    grid-template-columns: 1fr 1fr;
    padding: 1.25rem;
    gap: 1rem;
  }

  .hero-metric-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.75rem;
  }

  .hero-metric-item:nth-last-child(-n+2) {
    border-bottom: none;
    padding-bottom: 0;
  }

  .video-poster-container {
    height: 340px;
  }

  .play-btn-circle {
    width: 68px;
    height: 68px;
  }

  .play-btn-circle svg {
    width: 24px;
    height: 24px;
  }

  .video-card-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1.25rem;
  }

  .division-switcher {
    flex-direction: column;
    border-radius: var(--border-radius-md);
  }

  .division-tab {
    border-radius: var(--border-radius-sm);
  }

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

  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-form-container {
    padding: 1.75rem 1.25rem;
  }

  .cta-banner {
    padding: 2.5rem 1.5rem;
  }

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

  .footer-top > div:last-child {
    grid-column: span 1;
  }

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

  .footer-bottom-links {
    justify-content: center;
  }
}

/* Breakpoint: Small Phone (max-width: 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.1rem;
  }

  .hero-metrics-bar {
    grid-template-columns: 1fr;
  }

  .hero-metric-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hero-metric-item:last-child {
    border-bottom: none;
  }

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

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

  .btn {
    padding: 0.75rem 1.25rem;
  }

  .preloader-logo-wrapper {
    padding: 14px 20px;
  }

  .preloader-logo {
    height: 48px;
  }

  .preloader-progress-track {
    width: 180px;
  }
}
