/*
Theme Name: MHOR
Theme URI: https://andrewhopkins.eu
Description: MHOR base WP theme 2026
Version: 1.0
Author: Hoppy
Updated: 31 Sept 2026
*/

/*-- Typography */
:root{
  background-color: #fff;
  color: #666;
  line-height: 1.3;
}


h1, h2, h3, h4, h5, h6{
  color: #111;
  line-height: 1.4;
  text-transform: uppercase;
  text-align: center;
}

h1{
  font-weight: 400;
  --mhor-font-size: 2rem;
}

h2{
  font-weight: 400;
  --mhor-font-size: 1.25rem;
}

/*
h1{
  font-size: 48px;
  font-weight: 400;
  margin-top: 20px;
  margin-bottom: 30px;
}

h2{
  font-size: 24px;
  font-weight: 400;
  margin-top: 20px;
  margin-bottom: 10px;
}
*/

main p{
  line-height: 1.3;
  margin-bottom: 20px;
  text-align: center;
}

:where(a:not([role=button])), [role=link] {
    --mhor-color: #cd1719;
    text-decoration: none;
    font-weight: 500;
}

hr {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 0;
    border-top: 1px solid #eee;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Make it visible when focused via keyboard */
.sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: inherit;
    margin: inherit;
    overflow: visible;
    clip: auto;
    white-space: normal;
}



/* --- cols layout --- */
.hidden-xs{
  display: block;
}

.marg0{
  margin: 0 0 0 0!important;
}

.content{
  font-size: 80%;
  padding: 0 0.5rem;
}
.content img{
  max-width: 100%;
  height:auto;
}

.cols-1{
  display:flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.cols-1 .content{
  width: 50%;
}

.cols-2, 
.cols-3,
.cols-4{
  display:grid;
  gap: 0.7rem;
}

.cols-2.vert-center,
.cols-3.vert-center,
.cols-4.vert-center{
  align-items: center; 
}

.cols-2{
  grid-template-columns: repeat(2, 1fr); 
}

.cols-3{
  grid-template-columns: repeat(3, 1fr);
}

.cols-4{
  grid-template-columns: repeat(4, 1fr);
}


/* ---- Mobile (<768px) ---- */
@media (max-width: 767px) {
  .hidden-xs { display: none !important; }

  .cols-1 .content,
  .cols-2 .content,
  .cols-3 .content{
    width: 80%;
    margin: 0 auto;
  }

  .cols-2, 
  .cols-3 {
    grid-template-columns: 1fr;
    justify-content: center;
  }

  .cols-4{
    grid-template-columns: repeat(2, 1fr);
    justify-content: flex-start;
  }
 
}

@media (max-width: 400px) {
  .cols-4{
    grid-template-columns: 1fr;
  }
}



/* --- FAQ Accordion --- */
details.mhor-faq {
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    
}

details.mhor-faq p{
  text-align: left;
}

details.mhor-faq summary {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

details.mhor-faq summary::after {
  position:absolute;
  right:0;
  float: none;
}

details.mhor-faq summary h2{
  text-align: left;
  font-size: 0.85rem;
  font-weight: bold;
  margin-bottom: 0;
  padding-right: 1.5rem;
}


/* wew legacy */

    .pdf-menu{
      width: 100%;
      /* height: 350px; */
      background-repeat: no-repeat;
      background-size: cover;
      background-color: #F5F5F5;
      background-position: center center;
      /* margin-bottom: 40px; */
      position: relative;
      aspect-ratio: 1;
      border-radius: 1000px;
    }


    
    a.pdf-link {
        position: absolute;
      width: 100%;
      height: 100%;
      /* display: table; */
      z-index: 2;
      /* text-align: center; */
      display: flex;
      flex-direction: column;
      flex-wrap: nowrap;
      justify-content: center;
      align-items: center;
    }


    a.pdf-link .pdf-title{
      display: flex;
      flex-direction: column;
      flex-wrap: nowrap;
      justify-content: center;
      align-items: center;
      border-radius: 1000px;
      height: auto;
      width: 65%;
      background-color: rgba(235, 235, 235, 0.8);
      aspect-ratio: 1;

    }

    a.pdf-link .pdf-title > div{
        color: #000;
        --mhor-font-size: 1.2rem;
        font-size: var(--mhor-font-size);
        text-transform: uppercase;
        letter-spacing: 0;
        line-height: 1;
        text-align: center;
    }

    @media (min-width:768px) and (max-width: 1024px)  {
      a.pdf-link .pdf-title > div{
        font-size: 1rem;
      }
    }


    .room-prev, .room-next{
        display: inline-block;
        width: 100%;
        background:#F8F8F8;
        padding: 10px;
        margin-bottom: 15px;
    }

    .room-next{
        text-align: right;
    }



blockquote {
    padding: 10px 20px;
    margin: 0 0 20px;
    font-size: 17.5px;
    border-left: 5px solid #eee;
}

#subForm{
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  padding-bottom: 2rem;
}
#subForm input,
#subForm button{
  max-width: 18rem;
padding: 0.25em 0.5em;
}

#subForm button{
  font-family: var(--mhor-font-family);
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: 400;
  cursor:pointer;
  border:0 none;
  background-color: #ccc;
  color:#111;
  transition: color 0.3s;
  max-width: 10rem;
  padding: 0.5em;
}

#subForm button:hover{
  color:#cd1719;
}

label.sc-bxivhb{
  cursor: pointer;
}
