/* ==========================================================================
   NOVA YAPI — Responsive layer
   Breakpoints: 1600 (wide) · 1200 (laptop) · 1024 (tablet L) · 768 (tablet P) · 560 (mobile)
   ========================================================================== */


/* Wide desktop ------------------------------------------------------------ */
@media (min-width: 1600px) {
  :root { --container: 1480px; }
}


/* Laptop ------------------------------------------------------------------ */
@media (max-width: 1200px) {
  .section-head__label,
  .about__label,
  .callout__label,
  .intro-split__label { grid-column: 1 / span 2; }

  .section-head__title,
  .section-head__lead,
  .callout__body { grid-column: 3 / span 7; }

  .about__body { grid-column: 3 / span 5; }
  .about__media { grid-column: 8 / -1; }

  .intro-split__statement,
  .intro-split__cols { grid-column: 3 / -1; }

  .callout__contacts { grid-column: 3 / -1; }

  .service-row__num { grid-column: 1 / span 2; }
  .service-row__title { grid-column: 3 / span 5; }
}


/* Tablet landscape -------------------------------------------------------- */
@media (max-width: 1024px) {
  :root { --header-h: 76px; }
  .site-header.is-scrolled { --header-h: 68px; }

  .nav { display: none; }
  .nav-toggle { display: block; }

  .hero__text { grid-column: 1 / span 10; }
  .hero__meta { display: none; }

  .section-head { row-gap: var(--s-3); }
  .section-head__label { grid-column: 1 / -1; padding-top: 0; }
  .section-head__title,
  .section-head__lead { grid-column: 1 / span 9; }
  .section-head__aside { grid-column: 10 / -1; }
  .section-head__lead { margin-top: 0; }

  .about__label { grid-column: 1 / -1; padding-top: 0; margin-bottom: var(--s-4); }
  .about__body { grid-column: 1 / span 6; }
  .about__media { grid-column: 8 / -1; margin-top: 0; }

  .work-feature > :nth-child(3n + 1) { grid-column: 1 / span 7; }
  .work-feature > :nth-child(3n + 2) { grid-column: 8 / -1; }
  .work-feature > :nth-child(3n + 3) { grid-column: 1 / -1; }

  .service-row__num { grid-column: 1 / span 2; }
  .service-row__title { grid-column: 3 / span 4; }
  .service-row__text { grid-column: 7 / -1; }

  .callout__label { grid-column: 1 / -1; padding-top: 0; }
  .callout__body { grid-column: 1 / span 8; }
  .callout__action { grid-column: 9 / -1; }
  .callout__contacts { grid-column: 1 / -1; }

  .footer__brand { grid-column: 1 / -1; }
  .footer__col--nav { grid-column: 1 / span 3; }
  .footer__col--contact { grid-column: 4 / span 5; }
  .footer__col--social { grid-column: 9 / -1; }

  .page-head__title { grid-column: 1 / -1; }
  .page-head__lead { grid-column: 1 / span 9; }

  .intro-split__label { grid-column: 1 / -1; padding-top: 0; }
  .intro-split__statement,
  .intro-split__cols { grid-column: 1 / -1; }

  .milestone__year { grid-column: 1 / span 2; }
  .milestone__text { grid-column: 3 / -1; }

  .project-hero__title { grid-column: 1 / span 9; }
  .project-hero__type { grid-column: 10 / -1; }
  .project-facts { grid-column: 1 / span 5; }
  .project-text { grid-column: 7 / -1; }

  .service-block__num { grid-column: 1 / span 1; }
  .service-block__title { grid-column: 2 / span 5; }
  .service-block__body { grid-column: 7 / -1; }

  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-5); }

  .kvkk__body { grid-column: 1 / -1; }
  .contact-info { grid-column: 1 / span 5; }
  .contact-form-wrap { grid-column: 7 / -1; }
  .form { grid-template-columns: 1fr; }
}


/* Tablet portrait --------------------------------------------------------- */
@media (max-width: 768px) {
  :root { --fs-md: 1.0625rem; }

  .grid-12,
  .section-head,
  .work-feature,
  .service-row,
  .service-block,
  .milestone,
  .gallery { grid-template-columns: repeat(6, minmax(0, 1fr)); }

  .hero__text { grid-column: 1 / -1; }

  .section-head__title,
  .section-head__lead { grid-column: 1 / -1; }
  .section-head__aside { grid-column: 1 / -1; justify-self: start; margin-top: var(--s-2); }

  .about__body,
  .about__media { grid-column: 1 / -1; }
  .about__media { margin-top: var(--s-6); }
  .about__media figure { aspect-ratio: 4 / 3.4; }

  .work-feature > :nth-child(3n + 1),
  .work-feature > :nth-child(3n + 2),
  .work-feature > :nth-child(3n + 3) { grid-column: 1 / -1; }
  .work-feature > :nth-child(3n + 2) { grid-column: 2 / -1; }
  .work-feature > :nth-child(3n + 1) .work__media,
  .work-feature > :nth-child(3n + 3) .work__media { aspect-ratio: 4 / 3; }
  .work-feature > :nth-child(3n + 2) .work__media { aspect-ratio: 4 / 4.4; }

  .service-row { row-gap: .75rem; }
  .service-row__num { grid-column: 1 / span 1; font-size: var(--fs-sm); font-weight: 600; color: var(--c-accent); letter-spacing: .06em; padding-top: .5rem; }
  .service-row__title { grid-column: 2 / -1; }
  .service-row__text { grid-column: 2 / -1; }

  .callout__body,
  .callout__action { grid-column: 1 / -1; justify-self: start; }

  .footer__col--nav { grid-column: 1 / span 2; }
  .footer__col--contact { grid-column: 3 / span 4; }
  .footer__col--social { grid-column: 1 / -1; }

  .page-head__lead { grid-column: 1 / -1; }
  .page-visual figure { aspect-ratio: 4 / 3; }

  .vm__grid { grid-template-columns: 1fr; }
  .vm__item:first-child { padding-right: 0; border-right: 0; border-bottom: 1px solid var(--c-line); }
  .vm__item:last-child { padding-left: 0; }

  .values { grid-template-columns: 1fr; }
  .value { padding-block: var(--s-4); }

  .photo-pair__a,
  .photo-pair__side { grid-column: 1 / -1; }
  .photo-pair__side { flex-direction: column-reverse; }
  .photo-pair__b { margin-left: 25%; }

  .intro-split__cols { grid-template-columns: 1fr; gap: 1.1em; }

  .milestone { row-gap: .25rem; }
  .milestone__year,
  .milestone__text { grid-column: 1 / -1; }

  .work-list { grid-template-columns: 1fr; }
  .work-list .work:nth-child(5n + 1) .work__media { aspect-ratio: 4 / 3; }

  .filters { flex-direction: column; align-items: flex-start; gap: .5rem; }

  .project-hero__title,
  .project-hero__type { grid-column: 1 / -1; justify-self: start; text-align: left; }
  .project-hero__cover { aspect-ratio: 4 / 3; }
  .project-facts,
  .project-text { grid-column: 1 / -1; }

  .gallery__item:nth-child(3n + 1),
  .gallery__item:nth-child(3n + 3) { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .gallery__item:nth-child(3n + 2) { grid-column: 2 / -1; aspect-ratio: 4 / 4.6; }

  .project-nav__name { font-size: var(--fs-lg); }

  .service-block__num { grid-column: 1 / -1; padding-top: 0; }
  .service-block__title,
  .service-block__body { grid-column: 1 / -1; }

  .contact-info,
  .contact-form-wrap { grid-column: 1 / -1; }
  .form { grid-template-columns: 1fr 1fr; }

  .map { aspect-ratio: 4 / 3; }
  .offices { grid-template-columns: 1fr; row-gap: var(--s-4); }
}


/* Mobile ------------------------------------------------------------------ */
@media (max-width: 560px) {
  :root {
    --header-h: 68px;
    --section-y: 4.5rem;
  }
  .site-header.is-scrolled { --header-h: 64px; }

  .logo__type { font-size: calc(var(--logo-size, .95rem) * .92); letter-spacing: calc(var(--logo-tracking, .28em) * .86); }
  .logo__img { max-height: min(var(--logo-h, 40px), 34px); }

  .hero__content { padding-bottom: 2.5rem; }
  .hero__eyebrow { margin-bottom: var(--s-3); }
  .hero__title { font-size: clamp(2.125rem, 9.4vw, 3rem); max-width: none; }
  .hero__desc { font-size: var(--fs-base); margin-top: var(--s-3); }
  .hero__actions { margin-top: var(--s-4); }
  .hero__actions .btn { width: 100%; justify-content: space-between; }
  .hero__bar-inner { min-height: 56px; letter-spacing: .1em; }
  .hero__bar-caption { display: none; }

  .about__facts { gap: var(--s-3); }

  .work-feature > :nth-child(3n + 2) { grid-column: 1 / -1; }
  .work-feature > :nth-child(3n + 2) .work__media { aspect-ratio: 4 / 3; }
  .work__info { column-gap: .9rem; }
  .work-feature__more,
  .services__foot { justify-content: flex-start; }

  .service-row__num { grid-column: 1 / -1; padding-top: 0; }
  .service-row__title,
  .service-row__text { grid-column: 1 / -1; }

  .callout__action { width: 100%; }
  .callout__action .btn { width: 100%; justify-content: space-between; }
  .callout__contacts { flex-direction: column; gap: var(--s-3); }

  .footer__col--nav,
  .footer__col--contact { grid-column: 1 / -1; }
  .footer__bottom-inner { flex-direction: column; align-items: flex-start; justify-content: center; }

  .breadcrumb { margin-bottom: var(--s-4); }
  .page-visual { padding-top: 0; }
  .page-visual .container { padding-inline: 0; }

  .photo-pair__b { margin-left: 0; }

  .value { grid-template-columns: 2.5rem 1fr; }

  .project-features { grid-template-columns: 1fr; }
  .project-hero__cover { margin-inline: calc(var(--gutter) * -1); }

  .gallery { row-gap: var(--s-2); column-gap: var(--s-2); }
  .gallery__item:nth-child(n) { grid-column: 1 / -1; aspect-ratio: 4 / 3; }

  .project-nav__inner { grid-template-columns: 1fr; }
  .project-nav__link + .project-nav__link {
    align-items: flex-start;
    text-align: left;
    border-left: 0;
    border-top: 1px solid var(--c-line);
    padding-left: 0;
  }
  .project-nav__link:first-child { padding-right: 0; }

  .service-block__list { grid-template-columns: 1fr; }

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

  .form { grid-template-columns: 1fr; }
  .form__foot .btn { width: 100%; justify-content: space-between; }

  .map__label { left: 1rem; right: 1rem; bottom: 1rem; max-width: none; }

  .lightbox__top,
  .lightbox__bottom { padding-inline: 1rem; }
  [data-lightbox-caption] { display: none; }
}


/* Small mobile ------------------------------------------------------------ */
@media (max-width: 380px) {
  .logo__type { letter-spacing: calc(var(--logo-tracking, .28em) * .72); }
  .mobile-nav__link { padding: .85rem 0; }
}


/* Short landscape screens ------------------------------------------------- */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 560px; }
  .mobile-nav { overflow-y: auto; }
  .mobile-nav__foot { display: none; }
}
