/* ============================================================
   ATS — Responsive Styles
   Mobile-first breakpoints for all pages & components
   ============================================================ */

/* -----------------------------------------------
   BREAKPOINTS
   Tablet:  max-width: 1024px
   Mobile:  max-width: 768px
   Small:   max-width: 480px
   ----------------------------------------------- */


/* ===========================================
   TABLET — max 1024px
   =========================================== */
@media (max-width: 1024px) {

  /* Typography scale down */
  .t-display { font-size: 3rem; }
  .t-h1 { font-size: 2.5rem; }
  .t-h2 { font-size: 2rem; }
  .t-h3 { font-size: 1.5rem; }


  /* Header */
  .header__nav { display: none; }

  /* Hero slider */
  .hero-slider__heading { font-size: 3rem; }

  /* Homepage about */
  .home-about { grid-template-columns: 1fr; gap: var(--space-lg); }
  .home-about--index .home-about__left { grid-template-columns: 1fr; gap: var(--space-sm); }
  .home-about--index .home-about__content { padding-left: 0; }
  .home-about__image { width: 100%; height: 300px; }

  /* Services slider */
  .services-slider__nav-label { display: none; }
  .services-slider { aspect-ratio: 16 / 9; }

  /* Key facts */
  .key-facts__grid { grid-template-columns: repeat(3, 1fr); }

  /* Homepage projects */
  .home-projects__grid { grid-template-columns: 1fr 1fr; }

  /* Content block */
  .content-block { grid-template-columns: 1fr; gap: var(--space-lg); }

  /* Capabilities grid */
  .capabilities-grid { grid-template-columns: repeat(2, 1fr); }

  /* Stats bar */
  .stats-bar { flex-wrap: wrap; gap: var(--space-md); }
  .stats-bar__item { flex: 0 0 calc(50% - var(--space-md)); }

  /* Projects grid */
  .projects-grid { grid-template-columns: 1fr 1fr; }

  /* Project detail */
  .project-detail-bar__meta { gap: var(--space-md); }

  /* Related projects */
  .related-projects__grid { grid-template-columns: 1fr 1fr; }

  /* Team grid */
  .team-grid { grid-template-columns: 1fr 1fr; }
  .team-card--featured { grid-template-columns: 1fr 1fr; }

  /* Award entry */
  .award-entry { grid-template-columns: 1fr; gap: var(--space-md); }
  .award-entry--reverse { direction: ltr; }
  .award-entry--reverse .award-entry__body { direction: ltr; }

  /* Clients grid */
  .clients-grid { grid-template-columns: repeat(4, 1fr); }

  /* Contact content */
  .contact-section__grid { grid-template-columns: 1fr; gap: var(--space-xl); }

  /* Contact hero */
  .page-hero--contact .page-hero__bg { min-height: 300px; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cta__image { min-height: 320px; }
  .footer-nav { grid-template-columns: repeat(2, auto); }

  /* About page */
  .about-services { grid-template-columns: 1fr 1fr; }
  .about-who { grid-template-columns: 1fr; gap: var(--space-lg); }
  .about-how { grid-template-columns: 1fr; gap: var(--space-lg); }

  /* Gallery grid */
  .gallery-grid { gap: 16px; }
  .gallery-grid__item:nth-child(1),
  .gallery-grid__item:nth-child(9) { width: calc(60% - 8px); height: 360px; }
  .gallery-grid__item:nth-child(2),
  .gallery-grid__item:nth-child(8) { width: calc(40% - 8px); height: 360px; }
  .gallery-grid__item:nth-child(3),
  .gallery-grid__item:nth-child(4) { width: calc(50% - 8px); height: 280px; }
  .gallery-grid__item:nth-child(5),
  .gallery-grid__item:nth-child(6),
  .gallery-grid__item:nth-child(7) { width: calc(33.333% - 11px); height: 200px; }

  /* Filter tabs */
  .filter-tabs { flex-wrap: wrap; gap: var(--space-xs); }

  /* Menu overlay */
  .menu-overlay__panel { width: 70%; }

  /* Page hero */
  .page-hero__title { font-size: 3rem; }
  .page-hero__subtitle { font-size: 1.125rem; }
}


/* ===========================================
   MOBILE — max 768px
   =========================================== */
@media (max-width: 768px) {

  /* Typography */
  .t-display { font-size: 2.25rem; }
  .t-h1 { font-size: 2rem; }
  .t-h2 { font-size: 1.75rem; }
  .t-h3 { font-size: 1.25rem; }

  /* Sections */
  .section { padding: var(--space-xl) 0; }
  .site-header {padding: 35px 0 0;}
  .header__logo svg { width: 77px; }
  /* Hero slider */
  .hero-slider { height: 80vh; }
  .hero-slider__heading { font-size: 2.25rem; }
  .hero-slider__sub { font-size: 1rem; }

  /* Key facts */
  .key-facts__grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .key-facts__value { font-size: 2.5rem; }

  /* Homepage projects */
  .home-projects__grid { grid-template-columns: 1fr; }
  .home-projects__header { flex-direction: column; gap: var(--space-sm); align-items: flex-start; }
  .home-projects__header-right { max-width: 100%;}
  /* Clients marquee */
  .clients-marquee__logo { max-height: 32px; margin: 0 var(--space-md); }

  /* Content block */
  .content-block__heading { font-size: 1.75rem; }

  /* Capabilities */
  .capabilities-grid { grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
  .capability-item { padding: var(--space-md); }
  .capability-item__title { font-size: 1.125rem; }
  .capabilities-section--building::before {
    clip-path: polygon(24% 0, 70% 0, 50% 100%, 4% 100%);
    opacity: 0.24;
  }
  .capabilities-section--building::after { display: none; }

  /* Projects page */
  .projects-grid { grid-template-columns: 1fr; }
  .projects-hero { min-height: 350px; padding-top: calc(var(--header-h) + 2rem); }
  .projects-hero .page-hero__title { font-size: 2.5rem; }
  .projects-hero__shape--large { right: 6%; width: min(72vw, 620px); }
  .projects-hero__shape--small { right: -18%; width: min(44vw, 360px); }

  /* Filter bar */
  .filter-bar { align-items: flex-start; gap: var(--space-sm); }
  .filter-tabs { justify-content: flex-start; }
  .filter-tab { font-size: 0.8125rem; padding: var(--space-xs) var(--space-sm); }
  .filter-tab.is-active { padding-left: 1rem; padding-right: 1.25rem; }

  /* Project detail */
  .project-detail-hero { height: 50vh; }
  .project-detail-bar { padding: var(--space-md) 0; }
  .project-detail-bar__title { font-size: 1.75rem; }
  .project-detail-bar__meta { flex-direction: column; gap: var(--space-sm); }
  .project-info__grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .project-info__label,
  .project-info__description,
  .project-info__scope { grid-column: auto; }
  .project-info__description,
  .project-info__scope { max-width: 100%; }
  .project-info__scope-list { padding-left: 1rem; }
  .project-video__play svg { width: 48px; height: 48px; }

  /* Related projects */
  .related-projects__grid { grid-template-columns: 1fr; }

  /* Gallery */
  .gallery-grid { gap: 12px; }
  .gallery-grid__item:nth-child(n) { width: 100% !important; height: 250px !important; }

  /* Team */
  .team-grid { grid-template-columns: 1fr; }
  .team-card--featured { grid-template-columns: 1fr; }
  .team-featured .team-card__body,
  .team-featured .team-card__image {
    grid-column: auto;
    grid-row: auto;
  }
  .team-card__body,
  .team-featured .team-card__body {
    padding-left: 0;
    padding-right: 0;
  }
  .team-card__image { height: 300px; }
  .team-featured .team-card__image,
  .team-grid .team-card__image {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  /* Awards */
  .award-entry__image { height: 250px; }

  /* Clients testimonials */
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonial-slide__quote { font-size: 0.875rem; }
  .testimonial-slide__card { flex-direction: column; text-align: center; padding: var(--space-lg) var(--space-md); }
  .testimonial-slide__logo { width: 120px; }

  /* Contact */
  .page-hero--contact .page-hero__subtitle { font-size: 2.5rem; }
  .contact-reach__row { flex-direction: column; gap: var(--space-sm); }
  .contact-reach__label { min-width: 0; padding-top: 0; }
  .contact-reach { padding-right: 0; }
  .contact-reach__info,
  .contact-reach__social { max-width: 100%; }
  .contact-form__footer--contact {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .contact-form__footer--contact .contact-form__privacy {
    justify-self: start;
    font-size: 0.875rem;
  }

  /* Map */
  .map-section__tabs {
    left: var(--space-md);
    top: var(--space-md);
  }
  .map-section__tab {
    height: 32px;
    padding: 0 0.9rem;
    font-size: 0.75rem;
  }
  .map-section__placeholder { min-height: 420px !important; }
  .map-section__caption {
    width: calc(100% - 2rem);
    text-align: center;
    font-size: 0.75rem;
  }

  /* Page hero */
  .page-hero { height: 50vh; min-height: 350px; }
  .page-hero__title { font-size: 2.5rem; }
  .page-hero__subtitle { font-size: 1rem; max-width: 100%; }
  .page-hero__breadcrumb { font-size: 0.8125rem; }

  /* Menu overlay */
  .menu-overlay__panel { width: 85%; }
  .menu-overlay__link { font-size: 22px; line-height: 29px; }
  .menu-overlay__subnav_group{ flex-direction: column;}
  .menu-overlay__sublink { font-size: 12px; line-height: 18px; }

  /* Footer */
  .footer-info__row { flex-direction: column; gap: var(--space-sm); }
  .footer-offices { flex-direction: column; gap: var(--space-sm); }
  .footer-nav { grid-template-columns: repeat(2, auto); gap: var(--space-xs) var(--space-xl); }
  .footer-bottom { flex-direction: column; gap: var(--space-xs); text-align: center; }

  /* About page */
  .about-gallery__controls { gap: 0.75rem; }
  .about-services { grid-template-columns: 1fr; }
  .about-service-card__title { font-size: 1.25rem; }
  .industry-banner h2 { font-size: 2rem; }

  /* Lightbox */
  .lightbox__arrow--prev,
  .lightbox__arrow--next { font-size: 2rem; width: 40px; height: 40px; }
  .lightbox__close { font-size: 2rem; }

  /* Testimonials slider */
  .slider-arrow { width: 40px; height: 40px; }
}


/* ===========================================
   SMALL — max 480px
   =========================================== */
@media (max-width: 480px) {

  /* Typography */
  .t-display { font-size: 1.875rem; }
  .t-h1 { font-size: 1.75rem; }
  .t-h2 { font-size: 1.5rem; }

  /* Hero */
  .hero-slider { height: 70vh; }
  .hero-slider__heading { font-size: 1.875rem; }
  .hero-slider__content { padding: 0 var(--space-sm); }

  /* Key facts */
  .key-facts__value { font-size: 2rem; }

  /* Capabilities */
  .capabilities-grid { grid-template-columns: 1fr; }
  .capabilities-section--building::before {
    clip-path: polygon(14% 0, 74% 0, 60% 100%, 0% 100%);
  }

  /* Project card */
  .project-card__title { font-size: 1rem; }

  /* Page hero */
  .page-hero { height: 45vh; min-height: 300px; }
  .page-hero__title { font-size: 2rem; }

  /* Contact */
  .page-hero--contact .page-hero__subtitle { font-size: 2rem; }
  .contact-form__submit { min-width: 130px; font-size: 0.875rem; }

  /* Map */
  .map-section__tabs {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .map-section__placeholder { min-height: 340px !important; }

  /* Clients */
  .clients-grid { grid-template-columns: repeat(2, 1fr); }

  /* Awards */
  .award-entry__title { font-size: clamp(1.125rem, 1.5vw, 1.375rem); }

  /* Footer */
  .footer-cta__heading { font-size: 1.5rem; }
  .footer-nav { grid-template-columns: auto; }

  /* Menu */
  .menu-overlay__panel { width: 100%; clip-path: none; }

  /* Section label */
  .section-label { font-size: 0.6875rem; }

  /* Buttons */
  .btn-diamond, .btn-outline, .btn-solid {
    font-size: 0.8125rem;
    padding: 0.75rem 1.5rem;
  }
}






@media only screen and (max-width: 1100px){
  .hero-slide__content{
    left: var(--space-xl);
  }
  .hero-slider__controls{
   right: var(--space-xl);
  }
}

@media only screen and (max-width: 900px){
  .hero-slider::after{
    transform: rotate(32deg);
  }
  .hero-slide__content{
    left: var(--space-lg);
  }
  .hero-slider__controls{
   right: var(--space-lg);
  }
}