/* === Responsive Design === */

/* Large Desktop */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Desktop */
@media (max-width: 1200px) {
  /* Service Offerings */
  .offering-grid {
    gap: 20px;
  }

  .offering-pic {
    height: 200px;
  }

  .offering-item-head h3 {
    font-size: 1.2em;
  }
  .container {
    max-width: 1140px;
  }

  /* Tenets Grid */
  .tenets-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet */
@media (max-width: 992px) {
  /* Service Offerings */
  .offering-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Layout */
  .container {
    max-width: 960px;
  }

  /* Tenets Grid */
  .tenets-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .row {
    flex-direction: column;
  }

  .row > * {
    width: 100%;
  }

  /* Portfolio */
  .portfolio-col {
    flex: 0 0 calc(50% - 2rem);
  }
}

/* Tablet and below */
@media (max-width: 1024px) {
  .toolkit-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 20px;
  }
}

/* Mobile and below */
@media (max-width: 768px) {
    /* Work Portfolio */
    .work-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .work-pic {
        height: 250px;
    }

    .work-item-info {
        padding: 20px;
    }

    .work-item-head h3 {
        font-size: 20px;
    }
  /* Service Offerings */
  .offering-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .offering-pic {
    height: 180px;
  }

  .offering-item-head {
    padding: 15px 20px;
  }

  .offering-item-content {
    padding: 20px;
  }
  /* Tenets Grid */
  .tenets-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Standard Button */
  .btn-mg, .cta-button {
    padding: 12px 30px;
    font-size: 1rem;
  }

  /* CTA Block */
  .cta-block {
    padding: 60px 20px;
  }

  .cta-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .cta-button {
    padding: 12px 30px;
    font-size: 1rem;
  }

  /* Projects Grid */
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px;
  }

  .project-item:nth-child(3n-1),
  .project-item:nth-child(3n) {
    aspect-ratio: 1;
  }

  .project-item:nth-child(2n) {
    aspect-ratio: 2/3;
  }

  /* Client Logo Section */
  .client-logos-wrapper {
    max-width: 100%;
    height: 120px;
  }

  .client-logos-group img {
    max-width: 160px;
    margin: 0 10px;
  }

  .segment-content-wrapper::before,
  .segment-content-wrapper::after {
    width: 40px;
  }

  .segment-content {
    animation-duration: 30s;
  }
  /* Hero Section */
  .hero-section {
    padding: 40px 0;
  }

  .brand-intro {
    margin-bottom: 40px;
  }

  .brand-name {
    font-size: 28px;
  }

  .brand-tagline {
    font-size: 11px;
  }

  .hero-title {
    font-size: 48px;
  }

  .hero-subtitle {
    font-size: 28px;
  }

  .hero-text {
    font-size: 16px;
    padding: 0 20px;
  }

  /* Header & Navigation */
  .header {
    padding: 15px 0;
  }

  .nav-list {
    position: fixed;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--mg-white);
    padding: 40px 2rem;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.3s ease;
    transform: translateY(0);
  }

  .nav-list.active {
    transform: translateY(100%);
  }

  .nav-toggle {
    display: block;
    position: relative;
    z-index: 101;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  /* Layout */
  .container {
    max-width: 720px;
    padding: 0 1rem;
  }

  .container-fluid {
    padding: 0 1rem;
  }

  .row {
    margin: -0.5rem;
  }

  .row > * {
    padding: 0.5rem;
  }

  /* Footer */
  .footer {
    padding: 40px 0 20px;
  }

  .footer-main {
    margin: 0 -10px;
  }

  .footer-col {
    flex: 0 0 100%;
    padding: 0;
    margin-bottom: 30px;
  }

  .footer-col.connect,
  .footer-col.links {
    flex: 0 0 50%;
  }

  .footer-heading {
    margin-bottom: 20px;
  }

  .footer-social {
    margin: 30px 0;
  }

  .brand-desc {
    max-width: 100%;
  }

  .col-2, .col-3, .col-4 {
    flex: 0 0 100%;
  }

  /* Hero */
  .hero-section {
    min-height: calc(100vh - 70px);
  }

  .hero-content {
    padding: 3rem 0 6rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }


}

/* Small mobile */
@media (max-width: 576px) {
  /* Header */
  .header {
    padding: 12px 0;
  }

  .brand-logo {
    height: 28px;
  }

  .brand-tagline {
    font-size: 9px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .hero-text {
    font-size: 14px;
  }

  /* Footer */
  .footer {
    padding: 30px 0 15px;
  }

  .footer-col {
    margin-bottom: 25px;
  }

  .brand-desc,
  .footer-contact p,
  .footer-links a {
    font-size: 13px;
  }

  .footer-social {
    gap: 15px;
  }

  .social-link {
    width: 20px;
    height: 20px;
  }

  /* Layout */
  .container {
    max-width: 100%;
    padding: 0 0.75rem;
  }

  .container-fluid {
    padding: 0 0.75rem;
  }

  .row {
    margin: -0.25rem;
  }

  .row > * {
    padding: 0.25rem;
  }

  /* Hero */
  .hero-content {
    padding: 2rem 0 4rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  /* Navigation */
  .nav-menu {
    width: 100%;
  }

  /* Footer */
  .footer-legal {
    flex-direction: column;
    gap: 1rem;
  }

  /* Portfolio */
  .portfolio-col {
    flex: 0 0 calc(100% - 2rem);
  }

  /* Typography */
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  /* Spacing */
  .section {
    padding: 1.5rem 1rem;
  }

  .container {
    padding: 0 0.75rem;
  }
}
