/* 
  Mobile Navigation & Responsive Styles 
*/

@media (max-width: 768px) {

  /* Header & Nav */
  .hamburger {
    display: flex; /* Show hamburger on mobile */
    position: relative;
    z-index: 1002;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--color-white);
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease-in-out;
    padding-top: 80px;
    z-index: 9999;
  }

  .nav.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .nav-item {
    width: 100%;
    text-align: center;
  }

  .nav-item a {
    display: block;
    padding: 15px 20px;
  }

  /* Add overlay when menu is open */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
  }

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

  /* Hamburger Animation */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  .hamburger span {
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  /* Hero Section */
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }

  /* Company Section (Index) */
  .company-row {
    flex-direction: column;
    gap: 5px;
  }
  
  .company-row dt {
    width: 100%;
    margin-bottom: 2px;
  }
  
  .company-row dd {
    width: 100%;
    padding-left: 0;
  }
  
  /* General */
  .section-title {
    font-size: 2rem;
  }

  /* ===========================
     Service Page Responsive
     =========================== */
  .service-flex, .service-flex.reverse {
      flex-direction: column;
      gap: var(--spacing-md);
  }
  
  .service-image img {
      height: 250px;
  }
  
  .flow-steps {
      flex-direction: column;
  }
  
  .intro-heading {
      font-size: 1.5rem;
  }
  
  .desktop-only {
      display: none;
  }

  /* ===========================
     Sub-pages General
     =========================== */
  .page-header {
      padding: 100px 0 40px;
  }

  .page-title {
      font-size: 2rem;
  }

  .contact-form {
      padding: var(--spacing-md);
  }
  
  .btn-contact-large {
      width: 100%;
      padding: 15px 20px;
  }
}
