/* ==========================================================================
   TRIYO — Responsive Layout & Media Queries
   ========================================================================== */

@media screen and (max-width: 1024px) {
  .hero-left-col {
    grid-column: 1 / 13;
  }
  
  .hero-right-col {
    grid-column: 1 / 13;
    margin-top: 16px;
  }

  .about-narrative {
    grid-column: 1 / 13;
  }

  .about-team-col {
    grid-column: 1 / 13;
  }

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

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

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

  .detail-two-col {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .mobile-menu-overlay {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(8, 8, 8, 0.98);
    z-index: 999;
    padding: 28px 20px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

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

  .mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 18px;
    list-style: none;
    margin-bottom: 28px;
  }

  .mobile-nav-link {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 8px 0;
    border-bottom: 1px solid var(--border-subtle);
  }

  .mobile-nav-link.active,
  .mobile-nav-link:hover {
    color: var(--gold-main);
  }

  .section-editorial-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .section-editorial-desc {
    text-align: left;
  }

  /* Projects Grid */
  .project-card-featured {
    grid-column: 1 / 13;
    grid-template-columns: 1fr;
  }

  .project-featured-visual {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }

  .project-card-secondary {
    grid-column: 1 / 13;
  }

  .about-team-col {
    grid-template-columns: 1fr;
  }

  .tech-grid-editorial {
    grid-template-columns: 1fr;
  }

  .lab-grid-editorial {
    grid-template-columns: 1fr;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

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