/* Shared action styling across the homepage and interior pages. */
:root{
  --button-brand:#a61d21;
  --button-brand-hover:#85171e;
  --button-ease:cubic-bezier(.23,1,.32,1);
}

body :is(.button.button,.hb-button.hb-button,.header-contact.header-contact,.copy-message.copy-message){
  box-sizing:border-box;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  min-height:52px;
  max-width:100%;
  padding:15px 28px;
  border:1px solid var(--button-brand);
  border-radius:0;
  background:var(--button-brand);
  color:#fff;
  font-family:REM,system-ui,sans-serif;
  font-size:16px;
  font-weight:600;
  line-height:1.3;
  letter-spacing:0;
  text-align:center;
  text-decoration:none;
  text-transform:none;
  white-space:normal;
  cursor:pointer;
  opacity:1;
  transition:background-color .2s var(--button-ease),border-color .2s var(--button-ease),color .2s var(--button-ease),transform .14s var(--button-ease);
}

body :is(.button.button,.hb-button.hb-button,.header-contact.header-contact)>span:first-child{
  padding:0;
}
body :is(.button.button,.hb-button.hb-button) .button-arrow,
body .header-contact.header-contact>span{
  display:grid;
  place-items:center;
  flex:0 0 20px;
  width:20px;
  height:20px;
  min-height:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:inherit;
}
body :is(.button.button,.hb-button.hb-button,.header-contact.header-contact) svg{
  flex:none;
  width:20px;
  height:20px;
  color:inherit;
}

body :is(.button.light,.hb-button.hb-button--light){
  background:#ededed;
  border-color:#ededed;
  color:#232323;
}
body :is(.button.outline,.hb-button.hb-button--outline){
  background:transparent;
  border-color:#232323;
  color:#232323;
}
body .header-contact.header-contact{
  flex-shrink:0;
  white-space:nowrap;
}

body button,
body :is(.button,.hb-button,.header-contact,.project-circle,.round-cta,.work-discover,.gallery-controls,.gallery-thumb img){
  border-radius:0!important;
}

body :is(.photo-carousel-navigation,.gallery-controls,.case-controls) button,
body .dialog-close{
  display:grid;
  place-items:center;
  flex:0 0 44px;
  width:44px;
  min-width:44px;
  height:44px;
  min-height:44px;
  padding:0;
  border:1px solid var(--button-brand);
  background:var(--button-brand);
  color:#fff;
  line-height:1;
  transition:background-color .2s var(--button-ease),border-color .2s var(--button-ease),transform .14s var(--button-ease);
}
body .dialog-close{font-size:28px}
body .menu-toggle{
  flex-shrink:0;
  min-width:44px;
  min-height:44px;
  width:44px;
  height:44px;
  align-items:center;
}
body .project-circle{
  min-width:44px;
  min-height:44px;
}
body .filters button{
  min-height:44px;
  padding:11px 18px;
  border:1px solid #23232345;
  background:transparent;
  color:#232323;
  font-family:REM,system-ui,sans-serif;
  font-size:15px;
  font-weight:600;
  line-height:1.3;
}
body .filters button[aria-pressed="true"]{
  background:var(--button-brand);
  border-color:var(--button-brand);
  color:#fff;
}
body .gallery-thumbs .gallery-thumb{
  min-height:44px;
}
body .copy-message[hidden]{display:none}

body :is(.button,.hb-button,.header-contact,button,.round-cta):focus-visible{
  outline:2px solid #232323;
  outline-offset:4px;
  box-shadow:0 0 0 2px #ededed;
}
body :is(.button,.hb-button,.header-contact,button,.round-cta):active:not(:disabled){
  transform:translateY(1px);
}
body button:disabled{
  cursor:default;
}

@media(hover:hover) and (pointer:fine){
  body :is(.button.button,.hb-button.hb-button,.header-contact.header-contact,.copy-message.copy-message):hover,
  body :is(.photo-carousel-navigation,.gallery-controls,.case-controls) button:hover:not(:disabled),
  body .dialog-close:hover{
    background:var(--button-brand-hover);
    border-color:var(--button-brand-hover);
    color:#fff;
    opacity:1;
  }
  body :is(.button.light,.hb-button.hb-button--light):hover{
    background:#fff;
    border-color:#fff;
    color:var(--button-brand);
  }
  body :is(.button.outline,.hb-button.hb-button--outline):hover{
    background:var(--button-brand);
    border-color:var(--button-brand);
    color:#fff;
  }
  body .filters button:hover{border-color:var(--button-brand)}
}

@media(max-width:680px){
  body :is(.button.button,.hb-button.hb-button,.copy-message.copy-message){
    padding:15px 22px;
    gap:12px;
  }
  body .header-contact.header-contact{
    padding:12px;
    gap:8px;
    min-height:52px;
  }
  body .filters button{padding:11px 16px}
}
@media(max-width:400px){
  body .header-contact.header-contact>span{display:none}
}
@media(prefers-reduced-motion:reduce){
  body :is(.button,.hb-button,.header-contact,.copy-message,button,.project-circle,.round-cta),
  body :is(.button,.hb-button,.header-contact) svg{
    transition:none!important;
  }
  body :is(.button,.hb-button,.header-contact,button,.round-cta):active:not(:disabled){transform:none}
  body :is(.button,.hb-button,.header-contact):hover svg{transform:none}
}
