*, *::before, *::after {box-sizing: border-box;}

html {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Segoe, Helvetica, Arial, sans-serif;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.5;
}

main {
    min-height: 90dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

a {
    color: rgb(72, 61, 139);
    font-weight: 600;
    word-break: break-word;
    text-decoration: underline;
}
a:hover {text-decoration: none;}
a:focus-visible {outline: 2px dashed rgb(228, 69, 125);}
header a {
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    color: rgb(56, 84, 111);
    text-align: center;
    word-break: normal;
}

h1, h2, h3, h4, h5, h6 {margin: 0;text-wrap: balance;}
h1 {
    color: rgb(0, 139, 182);
    font-size: 2rem;
	line-height: 1em;
    padding: 0 0 0 .5rem;
}
h2 {color: rgb(255, 255, 255);font-size: 1.6rem;}
h3 {color: hsl(175.32deg 62.6% 24.12%);font-size: 1.4rem;}
h4 {color: rgb(67, 83, 99);font-size: 1.25rem;}
p {color: rgb(51, 51, 51);word-wrap: break-word;margin-block-end: .5rem;}
li {list-style: none;word-wrap: break-word;}
li a {word-wrap: break-word;word-break: break-all;}
img {max-inline-size: 100%;display: block;}
/* ------ Header ------ */
.logoimg {max-height: 50px;float: left;border: 0;}
.logo-link2 span {font-size: 1.2rem;font-weight: 500;color: rgb(72, 61, 139);}
.logo {display: inline-flex;width: 100vw;}
header {display: flex;flex-direction: column;width: 100vw;}

.top-head {
    display: flex;
    flex-direction: row;
    justify-content: space-between; 
    flex-wrap: wrap;
    width: 100%;
    padding: .3rem 1rem .3rem;
}
.global_nav {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-block-end: .5rem;
}
.global_nav ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-around;
    margin: 0;
    padding: 0;
}
.global_nav li {
    list-style: none;
    display: flex;
    flex: 1 1 50%;
}
.global_nav a {
    display: flex;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.3;
    transition: all 0.4s ease-in-out;
    padding: .2rem 0;
    justify-content: center;
    align-items: center;
}
.global_nav a:link {
    color: rgb(56, 84, 111);
}
.global_nav a:hover {
    background-color: rgb(56, 84, 111);
    color: rgb(255, 255, 255);
}
.global_nav a:focus {
    color: #663399;
}
.global_nav a[aria-current="page"],
.global_nav a:active {
    color: rgb(255, 255, 255);
    background-color: rgb(56, 84, 111);
}
.main_nav {
    width: 100%;
    background-color: rgb(65, 112, 129);
    min-height: 10px;
}
.main_nav ul {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-around;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}
.main_nav li {
    color: rgb(255, 255, 255);
    font-size: 1.1rem;
    font-weight: 600;
    list-style: none;
    flex: 1 1 50%;
    text-align: center;
    padding-block: .5rem;
    height: auto;
    margin: 0;
}
.main_nav li:first-child {
    background-color: rgb(132, 176, 181);
    color: hsl(196.62deg 70.59% 5.54%);
    font-size: 1.2rem;font-weight: 500;
}
.main_nav a {
    font-size: 1.2rem;
    color: rgb(255, 255, 255);
    background-color: rgb(65, 112, 129);
    padding: .5rem 1rem .6rem;
    transition: all 0.4s ease-in-out;
}
.main_nav a:link {
    color: rgb(255, 255, 255);
    background-color: rgb(65, 112, 129);
}
.main_nav a:hover {
    background-color: rgb(255, 255, 255);
    color: rgb(65, 112, 129);
}
.main_nav a:focus {
    color: rgb(255, 255, 255);
}
.main_nav a[aria-current="page"],
.main_nav a:active {
    background-color: rgb(56, 84, 111);
}

/* ------ Main ------ */
.pgecontent,
.pgecontent2 {
    display: flex;
    flex-direction: row;
    text-align: left;
    width: 100%;
    padding: .8rem;
    justify-content: space-around;
    flex-flow: wrap;
}

.form_pgecontent {
    display: flex;
    flex-direction: row;
    flex-flow: wrap;
    text-align: left;
    width: 100%;
}

.page_title {
    width: 100%;
    text-align: left;
    justify-content: space-around;
}
.page_title h2 {
    width: 100%;
    color: rgb(255, 255, 255);
    background-color: rgb(56, 84, 111);
    padding: .8rem 2rem;
    margin: 0;
}
.panel,
.info_panel {
    width: 100%;
    margin: .2rem;
    background-color: rgba(124, 152, 171, .1);
}
.panimg {
    width: 100%;
    text-align: center;
}

.panel img {
    width: 150px;
    height: 125px;
    margin-left: auto;
    margin-right: auto;
}

.panel h2 {
    font-size: 1.3rem;
    color: rgb(245, 245, 245);
}
.panel_title {
    width: 100%;
    background-color: rgb(67, 83, 99);
    text-align: center;
    padding: .5rem 2rem;
}
.info_panel_title {
    width: 100%;
    text-align: center;
    padding: .5rem 2rem;
    color: rgb(67, 83, 99);
    img{margin-inline: auto;}
}
.panel_text,
.info_panel_text {
    width: 100%;
    padding: 0 1rem;
    margin: .5rem 0;
}
.panel_text img{margin-inline: auto;}

.card_panel,
.title_panel {
    display: flex;
    flex-direction: column;
    flex: 1 1 100%;
}
.title_panel {
    text-align: center;
    h4 {font-size: 1.75rem}
}
.card {
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    box-shadow: 2px 2px 6px rgb(104, 142, 163);
    padding: 1rem;
}
.card_title {
    margin: .5rem 0;
}
.cp_img {
    display: flex;
    width: 100%;
    max-height: 6.4rem;
}
@container(min-width: 700px) {
    .card { 
        width: 30%;
        min-width: 300px;
    }
}

.card_panel:has(.card){
    container-type: inline-size;
    gap: 1rem;
    flex-flow: wrap;
    justify-content: space-evenly;
    padding: 0 1rem 1rem;
}
.products,
.brands {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    flex-flow: wrap;
    width: 100%;
    margin-top: 3px;
    margin-bottom: 1rem;
    padding: 0;
}

.products {justify-content: space-around;}

.brands_title {
    width: 100%;
    text-align: center;
    justify-content: space-around;
}
.brands_title h3 {
    width: 100%;
    color: rgb(255, 255, 255);
    background-color: rgb(67, 83, 99);
    padding: .5rem 2rem;
    margin: 0;
}

.about_brands {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    flex-flow: wrap;
    width: 100%;
    margin-bottom: 1rem;
    padding: 0;
    background-color: inherit;
}

.brands div,
.about_brands div {
    min-width: 100%;
    min-height: 80px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    border: solid 1px rgb(255, 255, 255);
}
.products div {
    flex: 0 1 80%;
    min-height: 90px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    color: rgb(67, 83, 99);
    background-color: rgb(240, 248, 255);
    margin: .5rem 0;
}
.products div:hover { box-shadow: 0 5px 20px -5px rgb(54, 100, 139);}

.products a,
.brands a,
.about_brands a {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    color: rgb(255, 255, 255);
    padding: 0;
    margin: 0;
    text-decoration: underline;
    position: relative;
}

.products a {color: rgb(67, 83, 99);}
.products a:hover { color: rgb(0, 120, 215);}

.text_link:before {
  content: "";
  position: absolute;
  width: 70%;
  height: 2px;
  bottom: 37%;
  left: 15%;
  background-color: inherit;
  visibility: hidden;
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
  -webkit-transition: all 0.4s ease-in-out 0s;
  transition: all 0.4s ease-in-out 0s;
}

.text_link:hover:before {
  visibility: visible;
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
  background-color: rgb(255, 255, 255);
}

.products img,
.brands img,
.about_brands img {
    max-width: 100%;
    max-height: 57px;
    text-decoration: none;
    border-style: none;
}

.devops_col {background-color: rgb(43, 87, 152);}
.jorvikcloud_col {background-color: rgb(54, 100, 139);}
.minster_col {background-color: rgb(80, 116, 138);}
.jorvikpage_col {background-color: rgba(74, 82, 131);}
.guestweb_col {background-color: rgb(0, 118, 176);}
.simpleroom_col {background-color: rgb(69, 121, 146);}
.jorvikhost_col {background-color: rgb(0, 128, 128);}
.jorvikweb_col {background-color: rgb(57, 85, 98);}
.yorkit_col {background-color: rgb(52, 60, 68);}
.available2_col {background-color: rgb(40, 46, 104);}
.multi_col {background-color: rgb(86, 110, 127);}

.about_content {
    width: 90%;
    height: auto;
    padding: 1.5rem;
}

.contact_panel {
    width: 100%;
    margin: 2rem 0 0 0;
}
.center_content {
	width: 80%;
}
.site_content {
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: space-around;
}
.site_lnks {
    display: flex;
    flex-direction: row;
    flex-flow: wrap;
    width: 100%;
    justify-content: center;
}

.site_lnks div {
    display: flex;
    width: 90%;
    min-height: 50px;
    color: rgb(255, 255, 255);
    background: rgba(67, 83, 99, .8);
    margin: .5rem .2rem;
    justify-content: center;
}

.site_lnks a {
    display: flex;
    width: 100%;
    color: rgb(255, 255, 255); 
    font-size: 1.3rem;
    justify-content: center;
    align-items: center;
}

.site_lnks a:hover {
    color: rebeccapurple;
    background-color: rgb(189, 212, 235);
}

.hi_light {
    font-size: 1.2rem;
    color: rgb(67, 83, 99);
    padding: 1rem;
    border: solid 2px;
    text-align: center;
    margin: 2rem 0;
}
.hi_light a {
    font-size: 1.2rem;
}
.center {text-align: center;}
/* ----- Form Fields ----- */

form {
    display: flex;
    flex-direction: column;
    max-width: 600px; 
    min-width: 100%;
    padding: 10px 20px;
    background: rgb(248, 248, 255);
    text-align: left;
    margin: 2rem 0;
}

input,
textarea,
select {
    cursor: pointer;
    background: rgb(245,245,245);
    border: none;
    font-family: inherit;
    font-size: 16px;
    height: auto;
    outline: 0;
    padding: 15px;
    color: rgb(105, 108, 113);
    box-shadow: 3px 2px 0 rgba(0,0,0,0.06) inset;
    margin: 0 0 20px;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
}

input[type="checkbox"] {
  margin: 0 4px 8px 0;
}

select {
  padding: 6px;
  height: 32px;
  border-radius: 2px;
}

button {
  cursor: pointer;
  padding: 19px 39px 18px 39px;
  color: rgb(255, 255, 255);
  background-color: rgb(65, 112, 129);
  font-size: .875em;
  font-weight: 600;
  text-align: center;
  font-style: normal;
  border-radius: 5px;
  width: 50%;
  border: 1px solid rgb(124, 152, 171);
  box-shadow: 0 -2px 0 rgb(124, 152, 171) inset;
  margin-bottom: 10px;
}

label {
    font-size: 1.1em;
    font-weight: 600;
    color: rgb(67, 83, 99);
    display: block;
    margin-bottom: 8px;
}

.thanks {
    color: rgb(0, 97, 4);
    font-size: 1.2em;
    padding: .5rem;
    outline: dashed 3px;
}

.required {
    color: rgb(72, 61, 139);
    font-size: 1.2em;
}

.error {
    color: rgb(220, 20, 60);
    font-size: 1.2em;
    padding: .5rem;
    outline: dashed 3px;
}

button:hover {
    color: rgb(102, 51, 153);
    background-color: rgb(124, 152, 171);
}
/* ------ Footer ------ */

footer {
    display: flex;
    flex-direction: column;
    text-align: left;
}
.foot {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
	background-color: rgb(56, 84, 111);
    color: rgb(255, 255, 255);
	padding: .5rem 0;
}
.foot div,
.help_link {
    display: flex;
    flex-direction: column;
}
.help_link {
    justify-content: space-between;
    text-align: center;
    order: -1;
}
.social_link {
    order: 2;
    align-self: center;
    padding-left: 12px;
}
.foot_nav {
    order: 1;
    align-self: center;
}
footer a {
color: aliceblue;
text-decoration: underline;
position: relative;
}
footer a:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: rgb(255, 255, 255);
  visibility: hidden;
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
  -webkit-transition: all 0.4s ease-in-out 0s;
  transition: all 0.4s ease-in-out 0s;
}

footer a:hover:before {
  visibility: visible;
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
  background-color: rgb(255, 255, 255);
}
footer p {
color: rgb(255, 255, 255);
margin: 0;
padding: .3rem;
}
.copybar {
text-align: center;
background-color: rgb(65, 112, 129);
color: rgb(255, 255, 255); 
padding: .5rem 0;
}

/* ------------- MEDIA QUERIES ------------- */
@media only screen and (min-width: 26.62em) {

    h1 {
    font-size: 2.5rem;
}
    .logoimg {
    max-height: 70px;
}
	.main_nav li {
        flex: 1 1 33%;
    }
    .products,
    .brands {
        flex-direction: row;
    }
    .brands div {
        min-width: 50%;
    }
    .foot {
    flex-direction: row;
        flex-flow: wrap;
    }
    .help_link {
        order: -1;
        width: 100%;
    }
    .social_link {
        order: 1;
        width: 55%;
        align-self: center;
        padding-left: 1rem;
    }
    .foot_nav {
        order: 2;
        width: 45%;
        align-self: center;
        text-align: right;
        padding-right: 1rem;
    }
}
@media only screen and (min-width: 36em) {
    .products div {
        flex: 0 1 45%;
    }
}
@media only screen and (min-width: 48em) {
    
    .logo {width: auto;}
    .global_nav {
        width: 50%;
        margin-block: 0;
    }
	.global_nav li,
    .main_nav li {
        flex: 1 1 20%;
    }
	.panel,
    .info_panel {
        width: 49%;
    }
	.products img,
    .brands img,
    .about_brands img {
        max-width: 100%;
        max-height: 60px;
    }
    .foot {
        flex-direction: row;
        align-items: stretch;
        justify-content: space-around;
    }
    .help_link {
        order: 1;
        width: 40%;
    }
    .social_link {
        order: -1;
        width: 30%;
        padding-left: 1rem;
    }
    .foot_nav {
        order: 2;
        width: 30%;
        text-align: right;
        padding-right: 1rem;
    }
    .form_pgecontent {
        width: 60%;
        align-self: center;
    }
    .contact_panel {
        width: 30%;
        margin: 2rem 0 0 0;
    }
    .about_content {
        width: 60%;
        padding: 1.5rem;
        margin-left: 2rem;
    }
    .about_brands{
        width: 30%;
    }
    
    .site_content {
        width: 60%;
    }
}

@media only screen and (min-width: 54em) {
    h1 {
        padding: 0 0 0 1rem;
    }
    .brands div {
        min-width: 33.333%;
    }
    .site_lnks {
        justify-content: space-around;
    }
    .site_lnks div {
        width: 45%;
    }
}

@media only screen and (min-width: 60em) {
 
    .brands div {
        min-width: 25%;
    }

}
@media only screen and (min-width: 66.5em) {
 
    .brands div {
        min-width: 20%;
    }

}
@media only screen and (min-width: 69em) {

    .products div {
        flex: 0 1 24%;
    }

}
@media only screen and (min-width: 90em) {
 
    .products,
    .brands,
    .brands_title {
        padding: 0 .5rem;
    }
}

/* ------------- GRID ------------- */

@supports (display: grid ) {
    
    header {
        grid-area: header;
    }
    main {
        grid-area: main;
    }
    footer {
        grid-area: footer;
    }
    
    body {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, auto);
        grid-template-areas: 
            "header"
            "main"
            "footer";
    }
    
    /* ---- HEADER ---- */
    header {
        display: grid;
        width: 100%;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, auto);
        padding: 0;
    }
    
    .top-head {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        padding: 0;
        display: grid;
        grid-template-columns: 1rem repeat(4, 1fr) 1rem;
        grid-template-rows: .3rem repeat(3, auto) .3rem auto;
    }
    .logo {
        grid-column: 1 / 6;
        grid-row: 2 / 5;
        display: grid;
        grid-template-columns: auto 1fr;
    }
    .logo-link2 {
        justify-self: start;
    }
    .global_nav {
        grid-column: 2 / 6;
        grid-row: 5 / 7;
        justify-self:center;
        align-self: center;
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }
    .global_nav ul {
        grid-column: 1 / 2;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, auto);
        margin: 0;
        padding: 0;
    }
    .global_nav li {
        grid-column: span 1;
        display: grid;
        grid-template-columns: 1fr;
    }
    .global_nav a {
        grid-column: span 1;
    }
    .main_nav {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
    }
    .main_nav ul {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
        display: grid;
        grid-template-columns: repeat(2, 1fr) ;
        grid-template-rows: repeat(2, auto);
    }
    .main_nav li {
        grid-column: span 1;
    }
    /* ---- MAIN ---- */
    
    main {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .pgecontent,
    .pgecontent2 {
        grid-column: 1 / 2;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-gap: 1rem;
    }
    .info_panel,
    .info_panel_2,
    .info_panel_3,
    .info_panel_4 {
        grid-column: span 1;
        grid-row: auto;
    }
    
    .brands_title {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .brands {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-gap: 3px;
    }
    .brands div {
        grid-column: span 1;
        grid-row: span 1;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        border: none;
    }
    .brands a {
        grid-column: span 1;
        width: 100%;
        display: grid;
    }

    .site_content {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
        justify-items: center;
        display: grid;
        width: auto;
        align-content: start;
    }
    
    .contact_panel {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        width: auto;
    }
    .form_pgecontent {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
        width: auto;
    }
    
    .center_content {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        width: auto;
    }
    
    .about_brands {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
        width: auto;
    }
    
    /* ---- FOOTER ---- */
    
    footer {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .foot {
        display: grid;
        grid-template-columns: 1fr 4fr 1fr;
        grid-template-rows: auto;
    }
    .help_link {
        grid-column: 1 / 4;
        grid-row: 1 / 2;
        display: grid;
        grid-template-columns: 1fr 2fr 1fr;
        grid-template-rows: auto;
        width: auto;
    }
    .social_link {
        grid-column: 2 / 3;
        grid-row: 3 / 4;
        width: auto;
        padding: 0;
    }
    .foot_nav {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
        width: auto;
        padding: 0;
        text-align: left;
    }
    .top {
        grid-column: 2 / 3;
    }

    @media only screen and (min-width: 24.375em) {
        
        .foot {
            grid-template-columns: 1fr 1fr;
            grid-template-rows: auto;
        }
        .help_link {
            grid-column: 1 / 3;
            grid-row: 1 / 2;
            justify-self: center;
        }
        .social_link {
            grid-column: 1 / 2;
            grid-row: 2 / 3;
            justify-self: center;
        }
        .foot_nav {
            grid-column: 2 / 3;
            grid-row: 2 / 3;
            justify-self: center;
        }
    }
    
    @media only screen and (min-width: 26.62em) {

    .brands {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        grid-template-rows: auto;
    }
    }

    @media only screen and (min-width: 48em) {
       
        .logo {
            grid-column: 2 / 4;
            grid-row: 2 / 5;
        } 
        .global_nav ul,
        .main_nav ul {
            display: grid;
            grid-template-columns: repeat(16, 1fr);
            grid-template-rows: 1fr; 
        } 
        .global_nav li {
            grid-column: span 5;
        }
        .main_nav li {
            grid-column: span 3;
        }
        .pgecontent {
            grid-template-columns: 1fr 1fr;
            grid-template-rows: auto;
        }
        .pgecontent2 {
            grid-template-columns: 1fr 3fr 1fr;
            grid-template-rows: auto;
            grid-gap: 1rem;
        }
        .panel,
        .info_panel {
            width: auto;
        }
        .info_panel_2 {
        grid-row: span 2;
        }
        .info_panel_3 {
        grid-row: span 3;
        }
        .info_panel_4 {
        grid-row: span 4;
        }
        .contact_panel {
            grid-column: 1 / 2;
            grid-row: 1 / 2;
            width: auto;
        }
        .form_pgecontent {
            grid-column: 2 / 3;
            grid-row: 1 / 2;
            width: auto;
        }

        .about_brands {
            grid-column: 2 / 3;
            grid-row: 1 / 2;
            width: auto;
        }
        .center_content {
            grid-column: 2 / 3;
            grid-row: 1 / 2;
            width: auto;
        }
    }
    
     @media only screen and (min-width: 48.68em) {
        
        .global_nav {
            grid-column: 4 / 6;
            grid-row: 2 / 5;
            align-content: center;
        }
        .foot {
            grid-template-columns: 1fr 2fr 1fr;
            grid-template-rows: auto;
        }
        .help_link {
            grid-column: 2 / 3;
            grid-row: 1 / 2;
        }
        .social_link {
            grid-column: 1 / 2;
            grid-row: 1 / 2;
        }
        .foot_nav {
            grid-column: 3 / 4;
            grid-row: 1 / 2;
        }
    }
}