/*
Theme Name:        YN 2026 - BS
Description:       YorkshireNet Theme for Customer Websites
Version:           1.0.0
Author:            NG
Author URI:        https://www.yorks.net/
Text Domain:       yn26
Tested up to:      7.1.3
Reuqires at Least: 7.0
Requires PHP:      8.3.6
*/

:root {
  --brand: #254d54;
  --brand-dark: #8e763b;
  --brand-secondary: #7b474b;
  --brand-secondary-dark: #5c3b45;
  --nav-bg: #5c3b45;
  --nav-active: #8e763b;
  --header-bg: #ded7bd;
  --site-bg: #6f8d86;
  --page-bg: #fff;
  --text: #292929;
  --font-size: 0.95rem;
  --page-width: 1280px;
}

p, ul{
  font-family: var(--body-font-family, sans-serif);
}

h1,h2,h3,h4,h5,h6,.display-1,.display-2,.display-3,.display-4,.display-5 {
  font-family: var(--heading-font-family, sans-serif);
}

body {
  background-color: var(--site-bg);
  background-image: var(--site-background-image, none);
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  color: var(--text);
  font-size: var(--font-size);
  display:block;
}

.wp-block-image.w-100 img{
  width:100%;
}

.site-shell > *,.header-shell > *,.nav-shell > *, .footer-shell > *, .pre-footer-shell > *{
  max-width: var(--page-width);
  margin:auto;
}

.site-shell {
  background: var(transparent);
}

.header-shell{
  background: var(--header-bg);
}
.nav-shell{
  background: var(--nav-bg);
}
.footer-shell{
  background-color: var(--brand);
}
.pre-footer-shell{
  background-color: var(--brand-dark);
}
.site-header {
  background: var(--header-bg);
  color:contrast-color(var(--header-bg));
  padding: 1rem 1.5rem;
}

.site-header img{
  border:none;
}

.site-title {
  color: contrast-color(var(--header-bg));;
  font-size: clamp(1.5rem, 4vw, 3.5rem);
  margin: 0;
  font-family: var(--heading-font-family);
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.site-tagline,
.site-contact, .site-contact a {
  color:contrast-color(var(--header-bg));
  margin: 0;
  font-size: 105%;
}

.site-nav {
  background: var(--nav-bg);
}

.site-nav .navbar-nav .nav-link.show{
    color: contrast-color(var(--nav-bg));
}

.site-nav .dropdown-menu {
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--nav-bg);
}

.site-nav .dropdown-menu .menu-item{
  margin:0;
}

.site-nav .dropdown-item {
  padding: 0.65rem 1rem;
  color: contrast-color(var(--nav-bg));
}

.site-nav .dropdown-item:hover,
.site-nav .dropdown-item:focus {
  background: var(--nav-active);
  color: contrast-color(var(--nav-active));
}

.navbar-nav .nav-link.active, .navbar-nav .nav-link.show

.site-nav .menu-item {
  margin-right: 1rem;
}

.site-nav .menu-item a, .site-nav .menu-item a:link, .site-nav .menu-item a:visited {
  color: contrast-color(var(--nav-bg));
  padding: 0.7rem 1rem;
  text-decoration: none;
  font-weight: 700;
}

.site-nav .menu-item:hover,
.site-nav .current-menu-item > .nav-link {
  background: var(--nav-active);
  color: contrast-color(var(--nav-active))!important;
}


.site-content {
  background: var(--page-bg);
  padding: 1rem .75rem;
  min-height: 420px;
  box-shadow: 0 0 18px rgb(0 0 0 / 18%);
}

.site-content h1,
.site-content h2,
.site-content h3 {
  color: var(--brand);
}

.site-content figure.page-featured-image {
    margin: -1rem -1rem 1rem;
}
.site-content figure.page-featured-image > img {
    width: 100%;
    height: auto;
}

.site-content figcaption.wp-element-caption {
    background: var(--brand-secondary);
    margin: 0;
    padding: 0.2rem;
    text-align: center;
    color: contrast-color(var(--brand-secondary));
}

.site-content .btn-primary{
  background-color: var(--brand);
  border:none;
  color:contrast-color(var(--brand));
}

.site-content .btn-primary:hover{
  background-color: var(--brand-dark);
  color:contrast-color(var(--brand-dark));
  border:none;
}

.site-content .btn-secondary{
  background-color: var(--brand-secondary);
  color:contrast-color(var(--brand-secondary));
  border:0;
}

.site-content .btn-secondary:hover{
  background-color: var(--brand-secondary-dark);
  color:contrast-color(var(--brand-secondary-dark));
  border:0;
}

.site-sidebar img {
  max-width: 100%;
  height: auto;
}

.pre-footer {
    background-color: var(--brand-dark);
    overflow: hidden;
    padding-top: 0.5rem;
    color: #fff;
}

.site-footer {
  background: var(--brand);
  color: #fff;
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
}

.site-footer a {
  color: #fff;
}

.site-content img{
  border:solid 1px #999999;
}

.site-content .wpcf7-form label {
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    border-bottom: dotted 1px #ccc;
    color: var(--brand);
    font-weight: 700;
    align-items: center;
    padding-bottom: 0.5rem;
}

.site-content .brand-box {
    border: solid 1px;
    border-radius: var(--bs-border-radius);
    padding: 0.975rem 1.2rem;
    background: var(--brand);
    border-color: var(--brand);
    color: contrast-color(var(--brand));
}

.site-content .wp-block-table.vh-25 {
  max-height: 25vh;
}

.site-content .wp-block-table.vh-33 {
  max-height: 33vh;
}

.site-content .wp-block-table.vh-40 {
  max-height: 40vh;
}

.site-content .wp-block-table.vh-66 {
  max-height: 66vh;
}

.site-content .wp-block-table.vh-80 {
  max-height: 80vh;
}

.site-content .brand-box .wp-block-table::-webkit-scrollbar {
  width: 8px;
}

.site-content .brand-box .wp-block-table::-webkit-scrollbar-track {
  background: color-mix(in srgb,var(--brand) 75%, white);
  border-radius: 10px;
}

.site-content .brand-box .wp-block-table::-webkit-scrollbar-thumb {
  background: color-mix(in srgb,var(--brand) 55%, white);
  border-radius: 10px;
}

.site-content .brand-box .wp-block-table::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb,var(--brand) 45%, white);
  border-radius: 10px;
}

.site-content .brand-box-light {
    border: solid 1px;
    border-radius: var(--bs-border-radius);
    padding: 0.975rem 1.2rem;
    background: color-mix(in srgb,var(--brand) 20%, white);
    border-color: color-mix(in srgb,var(--brand) 20%, white);
    color: contrast-color(color-mix(in srgb, var(--brand) 20%, white));
}

.site-content .brand-box-light h2,.site-content .brand-box-light h3,.site-content .brand-box-light h4,.site-content .brand-box-light h5{
    color: contrast-color(color-mix(in srgb, var(--brand) 20%, white));
}

.site-content .brand-box-light .wp-block-table::-webkit-scrollbar {
  width: 8px;
}

.site-content .brand-box-light .wp-block-table::-webkit-scrollbar-track {
  background: color-mix(in srgb,var(--brand) 15%, white);
  border-radius: 10px;
}

.site-content .brand-box-light .wp-block-table::-webkit-scrollbar-thumb {
  background: color-mix(in srgb,var(--brand) 35%, white);
  border-radius: 10px;
}

.site-content .brand-box-light .wp-block-table::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb,var(--brand) 45%, white);
  border-radius: 10px;
}


.site-content .brand-box-secondary {
    border: solid 1px;
    border-radius: var(--bs-border-radius);
    padding: 0.975rem 1.2rem;
    background: var(--brand-secondary);
    border-color: var(--brand-secondary);
    color: contrast-color(var(--brand-secondary));
}

.site-content .brand-box-secondary .wp-block-table::-webkit-scrollbar {
  width: 8px;
}

.site-content .brand-box-secondary .wp-block-table::-webkit-scrollbar-track {
  background: color-mix(in srgb,var(--brand-secondary) 75%, white);
  border-radius: 10px;
}

.site-content .brand-box-secondary .wp-block-table::-webkit-scrollbar-thumb {
  background: color-mix(in srgb,var(--brand-secondary) 55%, white);
  border-radius: 10px;
}

.site-content .brand-box-secondary .wp-block-table::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb,var(--brand-secondary) 45%, white);
  border-radius: 10px;
}

.site-content .brand-box-secondary-light {
    border: solid 1px;
    border-radius: var(--bs-border-radius);
    padding: 0.975rem 1.2rem;
    background: color-mix(in srgb,var(--brand-secondary) 20%, white);
    border-color: color-mix(in srgb,var(--brand-secondary) 20%, white);
    color: contrast-color(color-mix(in srgb, var(--brand-secondary) 20%, white));
}

.site-content .brand-box-secondary-light h2,.site-content .brand-box-secondary-light h3,.site-content .brand-box-secondary-light h4,.site-content .brand-box-secondary-light h5{
    color: contrast-color(color-mix(in srgb, var(--brand-secondary) 20%, white));
}

.site-content .brand-box-secondary-light .wp-block-table::-webkit-scrollbar {
  width: 8px;
}

.site-content .brand-box-secondary-light .wp-block-table::-webkit-scrollbar-track {
  background: color-mix(in srgb,var(--brand-secondary) 15%, white);
  border-radius: 10px;
}

.site-content .brand-box-secondary-light .wp-block-table::-webkit-scrollbar-thumb {
  background: color-mix(in srgb,var(--brand-secondary) 35%, white);
  border-radius: 10px;
}

.site-content .brand-box-secondary-light .wp-block-table::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb,var(--brand-secondary) 45%, white);
  border-radius: 10px;
}

.site-content .wp-block-table table, .site-content .wp-block-table table td, .site-content .wp-block-table table tr {
    border: none;
    background: transparent;
}

@media(min-width: 767.98px){
  .site-content figure.page-featured-image {
    margin: -1rem -.75rem 1rem;
  }
}

@media (max-width: 767.98px) {
  body {
    background-attachment: scroll;
  }

  .site-content {
    padding: 1rem;
  }
}
