/* MAYAN RC24: section-stop calibration for Brands and Contact ONLY.
   Desktop: match the header-adjusted viewport proportions of About/Why.
   Mobile: natural page height, no clipping or giant forced empty areas.
   Never use overflow:hidden for logos, address, directions or message form. */
@media (min-width:992px) {
  body.site--cinema #brands,
  body.site--cinema #contact.mayan-contact-compact {
    box-sizing:border-box!important;
    display:flex!important;
    align-items:center!important;
    min-height:calc(100vh - var(--mayan-current-header,124px))!important;
    min-height:max(520px,calc(100svh - var(--mayan-current-header,124px)))!important;
    height:auto!important;
    overflow:visible!important;
    padding-block:clamp(26px,4.4svh,46px)!important;
  }
  body.site--cinema #brands>.container,
  body.site--cinema #contact.mayan-contact-compact>.container {
    width:94%;flex:none;
  }
}
/* Tablet: use remaining viewport if content fits, but never compress cards. */
@media (min-width:768px) and (max-width:991.98px) {
  body.site--cinema #brands,
  body.site--cinema #contact.mayan-contact-compact {
    box-sizing:border-box!important;
    display:flex!important;align-items:center!important;
    min-height:calc(100svh - var(--mayan-current-header,124px))!important;
    height:auto!important;overflow:visible!important;
    padding-block:clamp(24px,3.5svh,38px)!important;
  }
  body.site--cinema #brands>.container,
  body.site--cinema #contact.mayan-contact-compact>.container {width:94%;flex:none;}
}
/* Both sections share the same quiet, compact title rhythm. */
body.site--cinema #brands .sec-head,
body.site--cinema #contact.mayan-contact-compact .sec-head {
  margin-bottom:clamp(12px,2svh,20px)!important;
}
body.site--cinema #brands .sec-title {margin:.48rem 0 .28rem!important;}
body.site--cinema #brands .sec-line,
body.site--cinema #contact.mayan-contact-compact .sec-line {margin-top:10px!important;}
body.site--cinema #brands .brands-grid {
  margin-top:clamp(10px,1.8svh,18px)!important;
  padding-block:0!important;
  column-gap:clamp(14px,2.3vw,34px)!important;
  row-gap:clamp(12px,2svh,23px)!important;
}
body.site--cinema #brands .brand-card {
  max-width:100%;min-width:0;
  min-height:135px!important;
  padding:6px 5px!important;
}
body.site--cinema #brands .brand-card__logo {height:82px!important;margin-bottom:6px!important;}
body.site--cinema #brands .brand-card__logo img {max-height:76px!important;}
body.site--cinema #brands .brand-card p {font-size:clamp(.74rem,.95vw,.82rem)!important;line-height:1.45!important;}
body.site--cinema #brands .brands-cta {margin-top:clamp(12px,2svh,20px)!important;}
/* Contact remains a single elegant panel, not a second tall form section. */
body.site--cinema #contact.mayan-contact-compact .mayan-compact-grid {
  align-items:stretch!important;
  gap:clamp(12px,1.7vw,21px)!important;
}
body.site--cinema #contact.mayan-contact-compact .mayan-contact-info-card {
  padding:clamp(15px,1.7vw,21px)!important;
}
body.site--cinema #contact.mayan-contact-compact .mayan-contact-info-card .contact-item {margin-bottom:9px!important;}
body.site--cinema #contact.mayan-contact-compact .mayan-google-map__frame,
body.site--cinema #contact.mayan-contact-compact .mayan-google-map__frame iframe {
  height:235px;min-height:235px;
}
body.site--cinema #contact.mayan-contact-compact .mayan-contact-message {margin-top:11px!important;}
/* Short laptop viewports: reduce non-content padding, never hide links/form. */
@media (min-width:768px) and (max-height:700px) {
  body.site--cinema #brands,
  body.site--cinema #contact.mayan-contact-compact {padding-block:20px!important;}
  body.site--cinema #brands .brand-card {min-height:118px!important;}
  body.site--cinema #brands .brand-card__logo{height:68px!important;}
  body.site--cinema #brands .brand-card__logo img{max-height:63px!important;}
  body.site--cinema #contact.mayan-contact-compact .mayan-google-map__frame,
  body.site--cinema #contact.mayan-contact-compact .mayan-google-map__frame iframe {height:200px;min-height:200px;}
}
@media (max-width:767.98px) {
  body.site--cinema #brands,
  body.site--cinema #contact.mayan-contact-compact {
    display:block!important;min-height:0!important;height:auto!important;
    overflow:visible!important;padding-block:clamp(20px,4.5vw,30px)!important;
  }
  body.site--cinema #brands .brands-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:13px 12px!important;
    margin-top:12px!important;
  }
  body.site--cinema #brands .brand-card {min-height:116px!important;padding:4px!important;}
  body.site--cinema #brands .brand-card__logo{height:66px!important;margin-bottom:5px!important;}
  body.site--cinema #brands .brand-card__logo img{max-height:62px!important;max-width:95%!important;}
  body.site--cinema #brands .brand-card p{font-size:.74rem!important;line-height:1.4!important;}
  body.site--cinema #brands .brands-cta{margin-top:13px!important;}
  body.site--cinema #contact.mayan-contact-compact .mayan-compact-grid {
    grid-template-columns:minmax(0,1fr)!important;gap:11px!important;
  }
  body.site--cinema #contact.mayan-contact-compact .mayan-google-map__frame,
  body.site--cinema #contact.mayan-contact-compact .mayan-google-map__frame iframe {height:190px;min-height:190px;}
  body.site--cinema #contact.mayan-contact-compact .mayan-contact-info-card {padding:14px!important;}
}
body.site--cinema #brands,
body.site--cinema #contact.mayan-contact-compact {
  scroll-margin-top:var(--mayan-current-header,124px)!important;
}
