/*
Theme Name: CGS Cornwall
Author: Scott Williams
Author URI: https://www.theideacrowd.co.uk
Description: Custom theme for CGS Cornwall
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 8.0
Version: 1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

html,
body {
  margin: 0;
  height: 100%;
  font-family: "Lexend", sans-serif;
}

.content-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: auto;
  z-index: 4;
}

/**  HEADER STYLES  **/
nav,
nav a,
nav .menu-primary-container,
.menu-primary-container ul li {
  display: inline-block;
}

nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

nav .custom-logo-link {
  padding: 15px 0;
}

nav .menu-primary-container ul {
  float: right;
  list-style: none;
}

nav .menu-primary-container ul li {
  margin: 10px;
}

nav .menu-primary-container ul li a {
  color: slateblue;
  text-decoration: none;
  font-size: 24px;
  transition: color 1s ease;
}

nav .menu-primary-container ul li a:hover {
  color: crimson;
}

header {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 80%;
  width: 100%;
  overflow: hidden;
  /*
  background-color: rgba(255, 255, 255, 0.5);
  background-blend-mode: lighten;
*/
}

header .overlay {
  position: absolute;
  width: 101%;
  height: 40%;
  top: -14%;
  left: -1%;
  background-color: #fff;
  opacity: 0.7;
  transform: rotate(-3deg);
}

header .header-content {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60%;
  margin-left: 20%;
  display: inline-block;
  text-align: center;
  color: #fff;
  font-size: 1rem;
  text-shadow: 2px 3px 5px rgba(0, 0, 0, 0.5);
}

header .header-content a {
  color: #fff;
}

.mobile-menu {
  display: none;
  padding: 15px;
  font-size: 30px;
  color: #777;
}

.mobile-menu i {
  float: right;
}

@media (max-width: 950px) {
  nav .menu-primary-container ul li a {
    font-size: 16px;
  }
}

@media (max-width: 700px) {
  .custom-logo-link img {
    max-width: 150px;
    height: auto;
    padding-left: 15px;
  }

  .mobile-menu {
    display: inline-block;
  }

  nav .menu-primary-container {
    display: none;
  }

  #primary-nav {
    width: 100%;
    grid-column-start: 1;
    grid-column-end: span col2-start;
    grid-row-start: 2;
    grid-row-end: span 2;
  }

  #menu-primary {
    padding-left: 0;
  }

  #menu-primary,
  #menu-primary li {
    width: 100%;
    float: left;
  }

  #menu-primary li {
    padding: 15px;
    margin: 0;
    background-color: #efefef;
    border-bottom: #ccc;
  }

  #menu-primary li a {
    color: #333;
  }

  header .overlay {
    transform: rotate(0deg);
    top: 0;
    height: 20%;
  }
}

/* FOOTER STYLES */

footer {
  padding: 15px;
  color: #fff;
  background-color: #285c97;
}
