/* ==========================================================================
   RESPONSIVE STYLESHEET (MEDIA QUERIES)
   ========================================================================== */

/* Tablet & Smaller Screens (< 1024px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-highlights {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-visual {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }

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

  .stat-item:nth-child(3) {
    border-right: none;
  }

  .benefit-grid,
  .service-cards-grid,

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

  .service-slide {
    flex: 0 0 calc((100% - 2rem) / 2);
  }

  .slider-prev {
    left: -8px;
  }

  .slider-next {
    right: -8px;
  }

  .partner-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .partner-logos {
    justify-content: center;
  }

  .history-section,
  .pujon-grid {
    grid-template-columns: 1fr;
  }

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

  .team-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .network-grid,
  .innovation-grid,
  .step-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

/* Mobile Screens (< 768px) */
@media (max-width: 768px) {
  html, body {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: clip !important;
    position: relative;
    touch-action: pan-y;
  }

  .site-header {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: clip;
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1002 !important;
  }

  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
  }

  .top-bar {
    display: none;
  }

  .navbar {
    height: 70px;
    min-width: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
  }

  .brand-logo {
    min-width: 0;
    max-width: calc(100% - 55px);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1 1 auto;
  }

  .brand-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .brand-logo img {
    height: 40px;
    width: auto;
    flex-shrink: 0;
  }

  .brand-title {
    font-size: clamp(0.88rem, 3.8vw, 1.05rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
  }

  .brand-tagline {
    font-size: clamp(0.58rem, 2.4vw, 0.68rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--navy-base);
    z-index: 1003;
  }

  .nav-menu {
    display: flex;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    width: 100% !important;
    max-width: 100vw !important;
    max-height: calc(100dvh - 70px);
    bottom: auto;
    background-color: var(--white);
    flex-direction: column;
    padding: 1.5rem 1.5rem 2rem;
    gap: 1.25rem;
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.15);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.32s;
    z-index: 1001;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    border-bottom: 2px solid var(--blue-soft);
  }

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

  .nav-link {
    font-size: 1.1rem;
    width: 100%;
    text-align: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
  }

  .nav-actions {
    display: none;
  }

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

  .hero {
    padding: 3.5rem 0 5rem;
  }

  .hero-title {
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-cta {
    width: 100%;
  }

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

  .hero-highlights {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.85rem;
  }

  .hero-highlight-item {
    font-size: 0.82rem;
  }

  .stats-bar {
    margin-top: -1.5rem;
    padding: 2rem 1rem;
  }

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

  .stat-item {
    border-right: none;
    padding: 0.75rem 0.5rem;
  }

  .stat-number {
    font-size: 1.65rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .benefit-grid,
  .service-cards-grid,
  .blog-grid,
  .testimonial-grid,
  .gallery-grid,
  .team-grid-4,
  .team-grid-3,
  .network-grid,
  .innovation-grid,
  .step-grid {
    grid-template-columns: 1fr;
  }

  .service-slider-track {
    gap: 1.25rem;
  }

  .service-slide {
    flex: 0 0 100%;
  }

  .slider-nav-btn {
    width: 40px;
    height: 40px;
  }

  .slider-prev {
    left: -4px;
  }

  .slider-next {
    right: -4px;
  }

  .hero-floating-card {
    left: 10px !important;
    right: auto !important;
    bottom: -15px !important;
    padding: 0.75rem 1rem !important;
    max-width: calc(100% - 20px) !important;
    box-sizing: border-box !important;
  }

  .history-badge-floating {
    right: 10px !important;
    bottom: -15px !important;
    max-width: calc(100% - 20px) !important;
    box-sizing: border-box !important;
    padding: 1rem !important;
  }

  .floating-icon {
    width: 38px;
    height: 38px;
  }

  .floating-text h4 {
    font-size: 1.1rem;
  }

  .partner-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
  }

  .calc-section,
  .partner-box,
  .form-box,
  .visi-card,
  .misi-card,
  .network-matrix,
  .stats-bar,
  .history-section,
  .timeline {
    width: 100% !important;
    max-width: 100% !important;
    padding: 2rem 1.25rem;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .calc-info h3 {
    font-size: 1.6rem;
  }

  .calc-box {
    padding: 1.25rem;
    width: 100%;
    box-sizing: border-box;
  }

  .gallery-card {
    height: min(68vw, 280px);
  }

  .blog-thumb {
    height: min(62vw, 240px);
  }

  .form-row,
  .calc-results {
    grid-template-columns: 1fr;
  }

  /* Timeline mobile */
  .timeline::after {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 0;
    text-align: left;
    box-sizing: border-box;
  }

  .timeline-item.right {
    left: 0;
  }

  .timeline-item::after {
    left: 10px;
  }

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

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

/* Small Mobile Screens (< 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(1.75rem, 8vw, 2.2rem);
  }

  .section-title {
    font-size: clamp(1.5rem, 6.5vw, 1.85rem);
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .stat-number {
    font-size: 1.4rem;
  }

  .stat-item {
    padding: 0.5rem 0.25rem;
  }

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

