/* Mobile Styles */
@media (max-width: 768px) {

  :root {
    --site-header: 72px;
    --site-padding: 16px;
    --section-padding: 40px var(--site-padding);
  }

  h1,
  .hero h1 {
    font-size: 40px;
  }

  h2,
  .hero h2 {
    font-size: 36px;
  }

  .services h2,
  .why-us-left h2,
  .contact-left h2 {
    font-size: 28px;
  }

  .flex.row {
    flex-direction: column !important;
  }

  .flex.row.ais {
    align-items: stretch !important;
  }

  .wrapper {
    padding: var(--section-padding);
  }

  main>section:first-of-type {
    padding: calc(40px + var(--site-header)) var(--site-padding) 40px var(--site-padding);
  }

  #porto-grid-wrapper {
    grid-template-columns: 1fr;
  }

  #porto-tag-filter {
    flex-direction: row !important;
  }

  .mo-width-100 {
    width: 100%;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10001;
    /* Di atas segalanya */
    position: fixed;
    top: 27px;
    /* Sesuaikan dengan tinggi header 72px */
    right: var(--site-padding);
    transition: all 0.3s ease;
  }

  .menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--bg-white);
    border-radius: 10px;
    transition: all 0.3s ease;
  }

  /* Ikon tetap gelap saat menu terbuka atau di header putih */
  .menu-toggle.active .bar,
  .menu-toggle.force-dark .bar,
  .header.floating .menu-toggle .bar,
  .header.no-hero .menu-toggle .bar {
    background-color: var(--primary-text) !important;
  }

  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--bg-white);
    flex-direction: column;
    padding: 80px 30px 30px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.4s ease;
    z-index: 10000;
    justify-content: flex-start;
    align-items: stretch;
    gap: 20px;
  }

  .nav.active {
    right: 0;
  }

  .nav a {
    color: var(--primary-text) !important;
    font-size: 18px;
    padding-bottom: 12px;
    position: relative;
  }

  .nav a.active {
    color: var(--primary-text) !important;
    font-weight: 700;
  }

  .nav a.active::after {
    display: none !important;
  }

  .nav a.btn {
    border-bottom: none;
    margin-top: 20px;
    text-align: center;
  }

  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    touch-action: none;
  }

  body.no-scroll .nav-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.no-scroll {
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  body.no-scroll .header {
    pointer-events: none;
    /* Cegah interaksi di area header kecuali menu-toggle */
  }

  /* Tapi menu dan toggle harus tetap aktif */
  .menu-toggle,
  .nav.active {
    pointer-events: auto !important;
    touch-action: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .sticky {
    position: relative !important;
    top: auto !important;
  }

  .partners-logos {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .partners-logos.is-many .logo-placeholder {
    width: calc(50% - 8px);
  }

  .footer {
    padding-left: var(--site-padding) !important;
    padding-right: var(--site-padding) !important;
  }

  .footer-grid {
    flex-direction: column;
    gap: 40px;
  }

  .footer-brand,
  .footer-contact {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .porto-swiper {
    margin: 0 -20px;
  }

  .contact-container {
    gap: 32px;
  }

  .pagination-nav.flex.row {
    flex-direction: row !important;
    justify-content: center !important;
  }

  .porto-filter-row {
    flex-direction: column;
    align-items: stretch;
  }

  .porto-filter-row .porto-search-wrap,
  .porto-filter-row .porto-search {
    width: 100%;
  }

  .mobile-reverse {
    flex-direction: column-reverse !important;
  }

  .service-img {
    width: 100% !important;
    aspect-ratio: 4/3 !important;
  }

}

@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }
}