/* ============================================================
   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); padding:50px 0;}
  .about-who .home-about{gap: 20px;}
  .about-who .home-about .home-about__text{width: 100%;}
  .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: nowrap; gap: var(--space-xs); }

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


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

  /* Typography */
  .t-display { font-size: 2.25rem; }
  .t-h1 { font-size: 2rem; }
  .t-h2 { font-size: 18px; }
  .t-h3 { font-size: 16px; }


  /* Sections */
  .section, .m-section { padding: 50px 0; }
  .m-section--pt-0{padding-top: 0;}
  .m-section--pb-0{padding-top: 0;}
  .site-header {padding: 35px 0 0;}
  .site-header .container.wide{
    width: 320px;
  }
  .header__logo svg { width: 77px; }
  .anchor{
    font-size: 11px;
  }
  .anchor::after{
    width: 25px;
  }

  .hero-slide__title{
    margin-top: 0;
    font-size: 30px;
    line-height: 30px;
  }
  .hero-slide__content{
    bottom: 15vh;
    height: 57%;
  }
  .hero-slide__subtitle{
    font-size: 14px;
    line-height: 17px;
  }
  .hero-slide__content .container{
    height: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: flex-end;
    position: relative;
  }
  .hero-slide__label{
    position: absolute;
    left: 0;
    top: 0;
  }
  .hero-slider__shape{
    bottom: 0;
    right: 0;
    width: 45%;
  }
  .hero-slider__controls{
    width: 320px;
    bottom: 5vh;
    left: 50%;
    right: 0;
    transform: translateX(-50%);
    margin-left: -16px;
    gap: 5px;
  }
  .slider-dots{
    gap: 20px;
  }
  .hero-slider__controls svg{
    width: 7px;
    height: auto;
  }
  .slider-dot{
    width: 9px;
    height: 9px;
  }

  .menu-overlay__close{
    top: 50px;
    right: 45px;
  }
  .menu-overlay__shape{
    right: -50px;
  }
  /* Hero slider */
  .hero-slider { height: 85vh; }
  .hero-slider__heading { font-size: 2.25rem; }
  .hero-slider__sub { font-size: 1rem; }

  .home-about__content h2{
    font-size: 18px;
    line-height: 23px;
  }
  .section-label{
    gap: 17px;
    margin-bottom: 20px;
  }
  .section-label__text{
    font-size: 12px;
  }
  .section-label__slash{
    height: 30px;
    margin-top: -12px;
  }
  .home-about__text p{font-size: 13px; line-height: 17px; max-width: 100%;}
  .home-about__image{margin-bottom: 0;}
  .services-slider{aspect-ratio: auto; height: 60vh;max-height: 550px;}
  .service-slide__content{padding:0 52px;}
  .services-slider__nav{ padding: 0 20px}
  .services-slider__nav svg{ width: 9px; height: auto;}
  .service-slide__name{font-size: 22px; line-height: 28px;}
  .service-slide__desc{font-size: 13px; line-height: 17px;}
  .services-slider__nav--prev:hover  .services-slider__arrow,
  .services-slider__nav--next:hover  .services-slider__arrow{margin-right: auto;margin-left: auto;}

  .m-clip-diagonal-sm {
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 15px) 100%, 0 100%, 0 18px);
  }
  .m-clip-diagonal {
    clip-path: polygon(30px 0, 100% 0, 100% calc(100% - 33px), calc(100% - 30px) 100%, 0 100%, 0 33px);
  }
  /* Key facts */
  .key-facts{margin-top: -150px; padding-top: 160px;}
  .key-facts__grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .key-facts__value { font-size: 2.5rem; }
  .stats-bar{gap: 35px 0; padding-top: 10px;}
  .stat-item{min-width: 47%;}
  .stat-item__icon{margin-bottom: 0;}
  .stat-item__icon svg{transform: scale(0.7);}
  .stat-item__number{font-size: 18px; line-height: 25px;}
  .stat-item__number svg{width: 17px;}
  .stat-item__label{font-size: 13px;}
  .key-facts__shape{left: 0;}

  /* Homepage projects */
  .home-projects__grid { grid-template-columns: 1fr; gap:35px; }
  .home-projects__header { flex-direction: column; gap: var(--space-sm); align-items: flex-start; margin-bottom: 30px; }
  .project-card__tag{font-size: 10px;}
  .project-card__tag::before{height: 15px;}
  .project-card__title{font-size: 15px; line-height: 22px; margin-top: 10px;}
  .home-projects__header-right { max-width: 100%;}
  .home-projects__header-right .anchor {display: none;}
  .home-projects__desc{font-size: 13px; line-height: 17px;}
  .view-all-projects-anchor{
    --anchor-color: var(--c-blue-light);
    --anchor-line-color: var(--c-blue-light);
    --anchor-hover-color: var(--c-blue);
  }
  /* Clients marquee */
  /* .clients-marquee__logo { max-height: 32px; margin: 0 var(--space-md); } */
  .clients-marquee__logo{margin-bottom: 0;}

  /* Content block */
  .content-block{display: flex; flex-direction: column-reverse;}
  .content-block__heading { font-size: 18px; line-height: 23px; margin-bottom: 25px; }
  .content-block__body p{font-size: 13px; line-height: 17px; margin-top: 20px;}
  .capabilities-section--building .capabilities-grid{display: flex; flex-direction: column; gap: 0;}

  /* 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(80% 0, 240% 0, 00 120%, -120% 100%);
    opacity: 0.15;
  }
  .capabilities-section--building::after { display: none; }

  /* Projects page */
  .projects-grid { grid-template-columns: 1fr; gap:35px; }
  .projects-hero { min-height: 350px; padding-top: calc(var(--header-h) + 2rem); }
  .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: center; gap: var(--space-sm); padding:0 }
  .filter-bar::after{right: 30px;}
  .filter-tabs { justify-content: flex-start; flex-wrap: nowrap; }
  .filter-tab { font-size: 0.8125rem; padding: var(--space-xs) var(--space-sm); }
  .filter-tab.is-active { padding-left: 1rem; padding-right: 1.25rem; }
  .search-overlay__inner{max-width: 85%;}

  /* Project detail */
  .project-detail-hero { height: 50vh; }
  .project-detail-bar { padding: 35px 0 50px; }
  .project-detail-bar__title { font-size: 1.75rem; }
  .project-detail-bar__meta { gap: var(--space-sm); flex-wrap: wrap; }
  .project-detail-bar__item{width: 50%;}
  .project-detail-bar__icon{margin-bottom: 0;}
  .project-detail-bar__label{font-size: 16px; line-height: 28px; margin-bottom: 3px;}
  .project-detail-bar__value{font-size: 13px; line-height: 17px;}
  .project-info{padding:10px 0 50px}
  .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{padding: 30px 0;}
  .project-video .container{width: 360px;}
  .project-video__play svg { width: 48px; height: 48px; }
  .parallax-banner{height: 300px;}
  .project-info__heading{font-size: 18px; line-height: 23px; margin-bottom: 20px;}
  .project-info__text{font-size: 13px; line-height: 17px;}
  .project-award{gap:30px;padding: 30px 0; margin: 30px 0 15px; align-items: flex-start;border-bottom: 1px solid var(--c-light-gray);}
  .project-award__icon{width: 30%;}
  .project-award__text{font-size: 13px; line-height: 17px;}
  .project-info__scope-title{font-size: 13px; line-height: 17px; margin-bottom: 20px;}
  .project-info__scope-list li{font-size: 13px; line-height: 17px;}

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

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

  /* Team */
  .team-grid { grid-template-columns: 1fr; gap:50px 0}
  .team-featured .team-card--featured { grid-template-columns: 1fr; gap: 20px; }
  .team-card__name{font-size: 15px;line-height: 25px;}
  .team-card__role{font-size: 12px; line-height: 17px; margin-bottom: 25px;}
  .team-card__label{font-size: 10px;}
  .team-card__label::before{height: 13px;}
  .team-card__bio, .team-card__interests{font-size: 13px; line-height: 17px;}
  .team-featured .team-card__body{padding-top: 0;}
  .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{padding: 30px 0; display: flex; flex-direction: column-reverse; gap: 0px; align-items: flex-start; }
  .award-entry:nth-child(2n){direction: ltr;}
  .award-entry:nth-child(2n){padding-left: 0;}
  .award-entry__image{height: auto;}
  .award-entry__title{font-size: 15px;}
  .award-entry__org{font-size: 12px;}
  .award-entry__logo{transform: scale(0.5); transform-origin: left top;}

  /* Clients testimonials */
  .clients-grid { grid-template-columns: repeat(2, 1fr); padding-left: 0; gap: 50px 0;}

  .testimonial-slide__card-content{padding: 30px 5px; align-items: flex-start; flex-direction: column-reverse;}
  .testimonial-slide__quote { font-size: 15px; line-height: 21px; text-align: left;}
  .testimonial-slide__author{font-size: 15px; line-height: 25px;text-align: left;}
  .testimonial-slide__role{font-size: 12px; line-height: 25px;text-align: left;}
  .testimonial-slide__card { flex-direction: column; text-align: center; padding: var(--space-lg) var(--space-md); }
  .testimonial-slide__logo { width: 120px; }
  .clients-grid__item{min-height: 30px;}
  .clients-grid__item img{max-width: min(100%, 100px);max-height: 60px;}



  /* Contact */
  .contact-reach__row { gap: 0 20px; }
  .contact-reach__label { min-width: 120px; padding-top: 0; }
  .contact-reach__info{font-size: 16px; line-height: 22px;}
  .contact-reach { padding-right: 0; gap: 30px}
  .contact-form-wrap{gap:30px}
  .contact-reach__info,
  .contact-reach__social { max-width: 100%; gap: 10px; }
  .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-section__tabs{justify-content: center;gap:0;}

  /* Map */
  .map-section__map { height: 420px !important; }
  .map-section__caption {
    width: calc(100% - 2rem);
    text-align: center;
    font-size: 0.75rem;
  }

  /* Page hero */
  .page-hero { height: 85vh; min-height: 600px; }
  .page-hero-sm{height: 230px; min-height: auto;}
  .page-hero__content{margin-top: 110px;}
  .page-hero__title { font-size: 18px; }
  .page-hero__copy { padding-left: 0; margin-top: 60px;}
  .page-hero__subtitle { font-size: 22px; line-height: 28px; }
  .page-hero__text {font-size: 13px; line-height: 18px;}
  .page-hero__breadcrumb { font-size: 0.8125rem; }

  /* Menu overlay */
  .menu-overlay__panel { width: 85%; padding-left: 0; padding-right: 45px; padding-bottom: 8vh; justify-content: flex-end; }
  .menu-overlay__link { font-size: 22px; line-height: 29px; padding-top: 50px; }
  .menu-overlay__subnav{margin-top:30px; gap: 25px;}
  .menu-overlay__subnav_group{ flex-direction: column; gap:30px}
  .menu-overlay__sublink { font-size: 12px; line-height: 18px; }

  /* About page */
  .page-hero--about .page-hero__bg{width: 85%;}
  .page-hero--about .page-hero-shape-1, .page-hero--about .page-hero-shape-2{display: none;}
  .page-hero--about .page-hero-shape-mobile{position: absolute;left: 0;top: 0;width: 100%;height: 100%; z-index: 1; overflow: hidden;}
  .page-hero--about .page-hero-shape-mobile svg{width: auto; height: 100%;margin-left: -28%;}
  .about-gallery{aspect-ratio: auto; min-height: 360px; height: 43vh;}
  .about-gallery__controls { gap: 0.75rem; }
  .about-gallery__controls svg{width: 8px;}
  .about-what-we-do{margin-top: -150px; padding-top: 160px;}
  .about-what-we-do__header {flex-direction: column;}
  .about-what-we-do .about-what-we-do__header{padding: 0 20px; margin-bottom: 40px;}
  .about-service-card__label{font-size: 22px; line-height: 40px;bottom: 25px;left: 35px;}
  .about-service-card__text{font-size: 13px; line-height: 17px; margin-top: 20px; padding: 0 20px;}
  .about-how .home-about{gap:20px;}
  .about-how .home-about__content{padding-left: 0;}
  .about-how .home-about__content .home-about__text{width: 100%;}
  .home-about__image.home-about__image--logos{height: auto;}
  .home-about__badges{width: 100%; padding: 0 25%;gap:35px}
  .home-about__badges img:last-child{max-width: 85%;}
  .clients-header{justify-content: center;}
  .clients-header .anchor{display: none;}
  .about-what-we-do__heading{font-size: 18px; line-height: 23px;}
  .about-services { grid-template-columns: 1fr; }
  .about-service-card__title { font-size: 1.25rem; }
  .industry-banner{aspect-ratio: auto; height: 60vh;max-height: 550px;}
  .industry-banner h2 { font-size: 22px; line-height: 25px; }
  .industry-banner p { font-size: 13px; line-height: 17px; padding: 0 15%; }

  /* 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; }

  /* Footer */
  .footer-info__label{min-width: 110px; font-size: 11px;}
  .footer-info__content{font-size: 16px; line-height: 22px;}
  .footer-offices, .footer-contacts { flex-direction: column; gap: var(--space-sm); }
  .footer-social{gap: 25px;}
  .footer-social__icon svg{width: 18px; height: auto;}
  .footer-nav { grid-template-columns: repeat(3, auto); gap: 15px 45px; }
  .footer-nav__link{font-size: 10px; min-width: auto;}
  .footer-bottom { margin-top: 20px; flex-direction: column; gap: var(--space-xs); text-align: center; }
  .footer-contacts .whatsapp-icon{width: 18px;margin-top: -3px;}
  .footer-inner{display: block;}
  .footer-cta__overlay{padding: 35px 30px;}
  .footer-cta__heading{font-size: 30px; line-height: 32px;}
  .btn-skew{font-size: 10px;padding: 0 40px;}
  .btn-skew--clear::before{left: 17%; width: 66%;}
  .footer-right{margin-top: 30px;}
  .site-footer .container{width: 320px;}
  .footer-bottom__credit{margin-top: 10px;}

  .page-hero--building .page-hero-shape-1, .page-hero--building .page-hero-shape-2{display: none;}
  .page-hero--building .page-hero__bg{width: 100%;}
  .page-hero--building .page-hero__bg svg{width: auto; height: 250px; margin-left: -35%;}
  .page-hero--building .page-hero-shape-mobile{position: absolute;left: 0;top: 0;width: 100%;height: 100%; z-index: 1; overflow: hidden;}
  .page-hero--building .page-hero-shape-mobile svg{width: 1600px; height: auto;margin-right: -88%; margin-left: auto; float: right;}
  .page-hero--awards .page-hero-shape-1 svg{margin-left: -23%;width: 1300px; height: auto;margin-right: auto;}
  .page-hero--awards .page-hero__bg svg{width: auto;height: 270px;float: left;margin-left: 5%; margin-right: auto;}
  .page-hero--contact .page-hero-shape-1{bottom: 241px;}
  .page-hero--contact .page-hero-shape-1 svg{float: left; margin-right: auto;margin-left:8%;height: 300px;width: auto;}
  .page-hero--contact .page-hero__bg svg{float: left; margin-right: auto; margin-left: 10%;width: auto; height: 250px;}
  .page-hero--contact .page-hero__bg{min-height: auto;}
  .page-hero--clients .page-hero-shape-1 svg{margin-left: -86%;width: 1600px;}
  .page-hero--clients .page-hero__bg{bottom: 6%; transform: translateY(0);}
  .page-hero--clients .page-hero__bg svg{width: 125%;margin-right: -45%;}
  .contact-form__group{grid-column: 1 / -1;}
  .contact-form--contact{gap: 25px 0;}
  .contact-form__label{font-size: 13px; line-height: 17px; margin-bottom: 0;}
  /* Prevent iOS Safari from zooming in on input focus (requires font-size >= 16px) */
  .contact-form__input,
  .contact-form__select,
  .contact-form__textarea { font-size: 16px; }
  .contact-reach__social-link svg{
    max-width: 23px;
    height: auto;
  }
}


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

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