/* Mobile refinements layered over the original build. Desktop (>1040px) is untouched. */
@media (max-width:1040px){
  .diaz-nav{grid-template-columns:minmax(0,1fr) auto;column-gap:12px}
  .diaz-brand{min-width:0;width:auto;max-width:100%}
  .diaz-brand>span:last-child{min-width:0}
  .diaz-nav .diaz-brand-mark{flex-shrink:0}
  .diaz-nav-actions{flex-shrink:0}
  .diaz-language,.diaz-menu{min-height:44px;min-width:44px;justify-content:center}
}
@media (max-width:760px){
  /* nav: keep logo, wordmark, language and menu apart */
  .diaz-nav{padding:0 max(14px,env(safe-area-inset-left)) 0 max(14px,env(safe-area-inset-right))}
  .diaz-nav .diaz-brand-mark{flex:0 0 46px;width:46px;height:52px;background-size:112px 112px;background-position:-34px -15px}
  .diaz-nav-actions{gap:2px}
  .diaz-brand strong{white-space:nowrap}
  .diaz-brand small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

  /* hero film: full 16:9 strip above the text, nothing cropped */
  .diaz-hero:has(.diaz-hero-video){padding-top:76px;min-height:0}
  .diaz-hero .diaz-hero-video{position:relative;inset:auto;order:-1;flex:none;width:calc(100% + 44px);max-width:none;height:auto;aspect-ratio:16/9;margin:0 -22px 68px;object-fit:contain;object-position:center;background:var(--forest-deep);opacity:1;z-index:2}
  .diaz-hero:has(.diaz-hero-video) .diaz-hero-media-control{top:calc(76px + (100vw * 9 / 16) + 12px);right:22px;z-index:3}

  /* readable form fields (no iOS zoom) */
  .diaz-site input:not([type=checkbox]):not([type=radio]),.diaz-site textarea,.diaz-site select,.diaz-space-analysis input:not([type=checkbox]),.diaz-space-analysis textarea,.diaz-space-analysis select{font-size:16px}

  /* touch targets for text links */
  .diaz-footer a,.diaz-work-more-link,.diaz-services-footer a{display:inline-flex;align-items:center;min-height:44px}
  .diaz-site input[type=checkbox]{width:22px;height:22px}

  /* floating buttons: respect safe areas and leave room at the end of the page */
  .diaz-chat-trigger{right:max(16px,env(safe-area-inset-right));bottom:max(16px,calc(12px + env(safe-area-inset-bottom)));width:56px;height:56px}
  .diaz-chat{right:max(12px,env(safe-area-inset-right));bottom:calc(84px + env(safe-area-inset-bottom));max-height:calc(100dvh - 120px - env(safe-area-inset-bottom));overflow-y:auto}
  .diaz-svc-footer{padding-bottom:calc(88px + env(safe-area-inset-bottom))!important}
}
@media (max-width:360px){
  .diaz-brand strong{font-size:18px;letter-spacing:.06em}
  .diaz-brand small{letter-spacing:.14em}
  .diaz-language{padding-inline:6px}
}
@media (max-width:760px){.diaz-svc-switch a,.diaz-svc-footer a,.diaz-svc-other a{display:inline-flex;align-items:center;min-height:44px}}
