/* ===================================================================
   responsive.css — breakpoint refinements layered on top of style.css
   Breakpoints: >=1200 desktop-lg | 992-1199 desktop | 768-991 tablet
   | 576-767 mobile | <576 small mobile
   =================================================================== */

/* ---- Desktop (992px - 1199px) ---- */
@media (min-width: 1200px) {
  .brand__name { font-size: 1.25rem; white-space: nowrap; }
}

@media (max-width: 1199px) {
  :root { --header-h: 100px; }
  .utility-bar .container-custom { padding-left: 250px; }
  .site-header.is-scrolled .container-custom { height: 94px; }
  .main-nav__list { gap: 16px; }
  .hero-slide__inner { gap: 24px; }
  .featured-project__body { padding: 44px; }
  .site-header .brand--logo { padding-left: 126px; }
  .site-header .brand__mark { top: -54px; width: 130px; height: 164px; flex-basis: 130px; }
  .site-header .brand__text--image { width: 225px; height: 68px; }
  .site-header .brand { gap: 10px; }
  .brand__name { font-size: 1.2rem; }
}

@media (max-width: 1140px) {
  .site-header .container-custom { gap: 18px; }
  .site-header .brand { flex: 0 1 auto; min-width: 0; }
  .main-nav { display: none; }
  .header-actions { flex: 0 0 auto; }
  .nav-toggle { display: flex; }
}

/* ---- Tablet (768px - 991px) ---- */
@media (max-width: 991px) {
  .site-header { top: 40px; }
  .site-header .container-custom { min-height: 76px; }
  .reference-hero { height: min(760px, 82svh); min-height: 560px; }
  .reference-hero__caption {
    left: clamp(32px, 7vw, 72px);
    right: auto;
    width: min(560px, calc(100% - 48px));
    padding: 26px 28px;
  }
  .page-hero h1 { font-size: clamp(2.4rem, 6vw, 3.4rem); }
  .page-hero p.lead { max-width: 46rem; }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .connect-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .about-section .row { grid-template-columns: 1fr; }
  .featured-project .row { grid-template-columns: 1fr; }
  .gallery-grid { column-count: 2; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero { padding: calc(var(--header-h) + 70px) 0 60px; }
  .timeline-desktop { overflow-x: auto; padding-bottom: 12px; }
  .timeline-desktop__track { min-width: 760px; }
}

/* ---- Mobile (576px - 767px) ---- */
@media (max-width: 767px) {
  :root { --header-h: 80px; }
  .utility-bar .container-custom { padding-left: 18px; }
  .site-header { top: 0; }
  .site-header .container-custom { height: var(--header-h); min-height: 0; }
  .site-header.is-scrolled .container-custom { height: var(--header-h); }
  .site-header .brand--logo { align-self: center; padding: 0; }
  .site-header .brand__mark { position: relative; left: auto; top: 0; width: 76px; height: 78px; flex: 0 0 76px; }
  .site-header .brand__text--image { width: auto; height: 58px; }
  .reference-hero { height: min(680px, 78svh); min-height: 520px; }
  .reference-hero__caption {
    left: 24px;
    right: 24px;
    width: auto;
    padding: 22px 22px 20px;
  }
  .site-header .brand { gap: 2px; max-width: calc(100% - 54px); }
  .brand__name { font-size: 1rem; line-height: 1.1; }
  .brand__role { font-size: 0.58rem; white-space: normal; }
  .header-actions { flex-shrink: 0; }
  .section-head { margin-bottom: 32px; }
  .section-pad { padding: 56px 0; }
  .page-hero { padding: calc(var(--header-h) + 52px) 0 48px; }
  .page-hero h1 { font-size: 2.15rem; line-height: 1.1; }
  .page-hero p.lead { font-size: 1rem; }
  .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .event-card { padding: 16px; }
  .newsletter { padding: 36px 24px; flex-direction: column; text-align: center; }
  .newsletter form { max-width: 100%; }
  .impact-grid { grid-template-columns: 1fr; }
  .gallery-grid { column-count: 1; }
  .article-meta { font-size: 0.82rem; }
  .filter-bar { gap: 8px; }
  .filter-chip { padding: 7px 15px; font-size: 0.8rem; }
  .btn { white-space: normal; text-align: center; }
  .form-row-2 { gap: 16px; }
  .featured-project__meta { flex-direction: column; align-items: flex-start; gap: 8px; }
  .office-card { padding: 22px 18px; }
  .office-card__row { gap: 10px; }
  .video-feature { aspect-ratio: 4 / 3; }
  .video-feature__title { font-size: 1rem; text-align: center; padding: 0 18px; }
  .quote-block { padding-left: 18px; margin: 26px 0; }
  .quote-block p { font-size: 1.05rem; }
}

/* ---- Small mobile (<576px) ---- */
@media (max-width: 575px) {
  .container-custom { padding: 0 18px; }
  .reference-hero { height: min(620px, 82svh); min-height: 500px; }
  .reference-hero__caption { left: 16px; right: 16px; padding: 18px 18px 16px; }
  .site-header .brand__mark { width: 68px; height: 72px; flex-basis: 68px; }
  .site-header .brand__text--image { height: 52px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.7rem; }
  .brand__role { display: none; }
  .site-header .brand { gap: 0; }
  .brand__name { font-size: 0.92rem; }
  .hero-slide__desc { display: none; }
  .hero-slide__actions .btn { padding: 11px 20px; font-size: 0.85rem; }
  .stats-grid, .footer-grid { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .connect-card { padding: 26px; }
  .featured-project__body { padding: 30px 22px; }
  .work-card__body, .news-card__body { padding: 18px; }
  .event-card { grid-template-columns: 1fr; text-align: center; }
  .event-card__date { justify-self: center; width: 90px; }
  .event-card__meta { justify-content: center; }
  .section-head p { font-size: 0.94rem; }
  .about-media__badge { max-width: 100%; }
  .reference-hero__actions { flex-direction: row; align-items: center; }
  .reference-hero__actions a { justify-content: center; }
  .footer-brand { gap: 14px; }
  .footer-brand .brand__mark { width: 72px; height: 90px; flex-basis: 72px; }
  .footer-brand__text strong { font-size: 0.98rem; }
}

@media (max-width: 359px) {
  .reference-hero__actions { flex-direction: column; align-items: stretch; }
  .reference-hero__actions a { width: 100%; }
}

/* No horizontal scroll safeguard */
html, body { overflow-x: hidden; max-width: 100%; }
