/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

@import url('https://fonts.googleapis.com/css2?family=Inria+Serif:wght@400;700&family=Volkhov:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

:root {
--primary-green: #44752E;
--primary-green-hover: #4caf50;
--white: #ffffff;
--black: #000000;
--bsg-grey: #EFEFEF;
--bsg-mid-grey: #ccc;
--font-heading-primary: 'Inria Serif', serif; 
--font-heading-secondary: 'Volkhov', serif;  
--font-heading-small: clamp(20px, 3vw, 28px);
--font-heading-medium: clamp(28px, 4vw, 48px);
--font-heading-large: clamp(32px, 5vw, 64px);
}

/* Global */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-heading-primary); 
  font-weight: 700;
  text-wrap: balance;
  margin-bottom: .5rem;
  line-height: 1.2;
}

.rahr picture {
	display: block;
	overflow: visible;
}


.rahr hr {
    height: 1px;
    background: #ffffff26;
    margin: 2rem 0;
    max-width: 250px;
}

.rahr .wp-block-seperator {
    border-top: 1px solid;
}

.rahr .gb-text:last-child {
    margin-bottom: 0;
}

p {
  font-size: 16px;
  line-height: 1.6;
}

.rahr ul, .rahr ol {
  line-height: 1.4;
}

.rahr p:has(+ ul) {
  margin-bottom: 5px;
}

.rahr a:hover,
.rahr a:focus,
.rahr a:active {
    color: var(--primary-green-hover);
}

.rahr .arrow-link a::after,
.rahr a.gbp-button--primary::after,
.rahr a.gbp-button--secondary::after,
.rahr a.read-more::after
{
    content: '›';
    font-size: 14px;
    vertical-align: baseline;
    margin-left: 4px;
}

.img-fluid,
.img-fluid img {
    max-width: 100%;
    height: auto;
}

picture {
  overflow: hidden;
  display: inline-block;

  img {
    width: 100%;
    height: auto;
  }
}

.tagline-font {
  font-family: "Open Sans", sans-serif;
  font-weight: 300;
  letter-spacing: 3px;
  font-size: clamp(12px, 3vw, 15px);
  text-transform: uppercase;
}

/* Header */
.rahr header {
  top: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  z-index: 999;
  color: #000;
  transition: all 0.2s ease;
  display: flex;
  justify-content: center;
  flex-direction: column;
  min-height: 75px;
}

.rahr header nav {
    width: 100%;
}

.rahr header :where(.gb-submenu-toggle) {
    width: auto;
}

.rahr header .gb-menu-link {
    @media screen and (min-width: 769px) {
        padding: 45px 15px;
    }
}

.rahr header .gb-menu-link:active {
    color: var(--primary-green-hover);
}

.rahr header .sub-menu {
    background: #fff;
    border-top: 2px solid #487629;
    padding: 1rem;
}

.rahr header .sub-menu .menu-item {
    padding: 0.55rem 0;
    background: #fff;
    color: #000;
}

.rahr header .sub-menu .gb-menu-link {
    padding: 0 10px;
}

.rahr header a.gbp-button--primary::after {
    content: none;
}

.home header {
    background: transparent;
    color: #fff;
    position: absolute;
}

.home header nav {
    background: transparent;
}

.home header.gb-is-sticky {
    background: #fff;
    color: #000;
}

.home nav.gb-navigation a img {
    width: 72px;
}

.rahr header a::after {
    content: none;
}

.rahr .gb-menu-toggle {
    color: #000;
    background-color: transparent;
}

.home header .gb-menu-toggle {
    background: transparent;
    color: #fff;
}

.home header.gb-is-sticky .gb-menu-toggle {
    background: transparent;
    color: #000;
}

.home header.gb-is-sticky .gb-menu-toggle--toggled {
    background: transparent;
    color: #fff;
}

.rahr :where(.gb-navigation[data-gb-mobile-menu-type=full-overlay]) .gb-menu-container--mobile .gb-menu-toggle--clone {
    right: 20px;
}

.rahr .gb-menu-toggle[aria-expanded="true"] {
    color: #fff;
}

/* Primary Button */
.rahr a.gbp-button--primary {
  background-color: var(--primary-green);
  text-decoration: none;
  color: #fff;
  font-size: clamp(12px, 4vw, 15px);
  padding: 12px 24px;
  border-radius: 5px;
  font-weight: 500;
  border: none;
  display: inline-block;
  box-shadow: none;
  transition: all 0.25s ease 0s;
  outline: 1px solid var(--primary-green);
}

.rahr a.gbp-button--primary::after{
    content: '›';
    font-size: 14px;
    vertical-align: baseline;
    margin-left: 4px;
}

.rahr a.gbp-button--primary:hover,
.rahr a.gbp-button--primary:focus {
    background-color: var(--white);
    color: var(--primary-green);
    box-shadow: none;
}

.rahr a.gbp-button--secondary {
    text-decoration: none;
    color: #fff;
    font-size: clamp(12px, 4vw, 15px);
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 500;
    border: none;
    display: inline-block;
    box-shadow: none;
    transition: all 0.25s ease 0s;
    border: solid 1px #ffffff;
}

.rahr a.gbp-button--secondary:hover,
.rahr a.gbp-button--secondary:focus {
    background-color: var(--white);
    color: var(--primary-green);
    outline: 1px solid var(--primary-green);
}

/* Portfolio */
.portfolio {}

.portfolio__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
    align-items: stretch;
    gap: 0 2rem;

    @media (min-width: 768px) {
        flex-wrap: nowrap;
        gap: 0 2rem;
    }
}

.portfolio__row:last-child {
    margin-bottom: 0;
}

.portfolio__col {
    margin-bottom: 2rem;
    width: 100%;

    @media (min-width: 768px) {
      margin-bottom: 0;
        width: 50%;
    }
}

.portfolio__col:last-child {
      margin-bottom: 0;
}

.portfolio__card {
    border: 1px solid #abc0a3;
    border-radius: 20px;
    padding: 1rem 0;
    text-align: center;
    
    @media (min-width: 768px) {
        height: 100%;
        display: flex;
        flex-direction: column;
    }
}

.portfolio__card :last-child {
  margin-bottom: 0;
}

.portfolio .portfolio__row:last-child .portfolio__card a {
    width: 100%;
    border-top: 1px solid #E0E1DF;
}


.portfolio .portfolio__card img {
    margin: 0 auto;
}

.portfolio .portfolio__card img:first-child {
    padding-bottom: 1rem;
    width: 100%;
    height: 100px;
    object-fit: contain;
}

.portfolio .portfolio__card p {
    padding: 0 1rem;
}

.portfolio .portfolio__card a {
    padding-top: 1rem;
    display: block;
    margin: 0 auto;
}

/* Accordion */
.rahr .rahr__tabs-menu {

    @media screen and (max-width: 768px) {
        display: flex;
        overflow-x: scroll;
        gap: 1rem;
    }

    @media screen and (min-width: 769px) {
        width: 35%;
        padding-right: 2rem;
        border-right: solid 1px #828d7b;
    }
}

.rahr .rahr__tabs-menu::-webkit-scrollbar-track
{
	-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
	border-radius: 10px;
	background-color: transparent;
}

.rahr .rahr__tabs-menu::-webkit-scrollbar
{
	width: 12px;
    height: 8px;
	background-color: transparent;
}

.rahr .rahr__tabs-menu::-webkit-scrollbar-thumb
{
	border-radius: 10px;
	-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
	background-color: #fff;
}

.rahr .rahr__tabs-menu-item {
    padding: 0 0 1.5rem 0;
    margin: 0 auto;
    background-color: transparent;

    @media screen and (max-width: 768px) {
        padding: 0;
        margin-bottom: 0.5rem;
    }
}

.rahr .rahr__tabs-menu-item:hover span {
    color: white;
    background:rgba(255,255,255, 0.1);
}

.rahr .rahr__tabs-menu-item:hover span::after {
    content: "";
    background-image: url('assets/images/arrow-right.svg');
    position: absolute;
    right: 5px;
    top: 50%;
    width: clamp(1rem, 1.5vw, 1.25rem);
    height: clamp(1rem, 1.5vw, 1.25rem);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    transform: translate(-50%, -50%);
}

.rahr .rahr__tabs-menu-item .gb-block-is-current {
    background-color: transparent;
}


.rahr .rahr__tabs-menu-item span {
    background-color: transparent;
    border: solid 1px rgba(255, 255, 255, .25);
    position: relative;
    display: block;
    font-family: "Inria Serif";
    color: inherit;
    outline: 0;
    margin: 0;
    padding: .75rem 2.5rem .75rem 1rem;
    text-align: left;
    width: 100%;
    font-weight: 500;
    font-size: clamp(18px, 2vw, 28px);
    border-radius: 10px;
    line-height: 1.2;
    position: relative;

    @media screen and (max-width: 768px) {
        width: max-content;
    }
}

.rahr .rahr__tabs-menu-item[aria-selected=true] span {
    background-color: #fff;
    color: #44752e;
}

.rahr .rahr__tabs-menu-item[aria-selected=true] span::after {
    content: "";
    background-image: url('assets/images/green-right-arrow.svg');
    position: absolute;
    right: 5px;
    top: 50%;
    width: clamp(1rem, 1.5vw, 1.25rem);
    height: clamp(1rem, 1.5vw, 1.25rem);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    transform: translate(-50%, -50%);
}

.rahr .rahr__tabs-items {
    @media screen and (min-width: 769px) {
        width: 65%;
        padding-left: 2rem;
    }
}

figcaption {
    position: relative;
    left: 50px;
    top: -15px;
    padding: 0 4rem 0 0;
    margin: 0;
    font-size: 14px;
    z-index: 0;
    color: #737373;
    font-weight: 500;
    font-style: italic;
    width: 100%;
    text-wrap: auto;
	margin-bottom: 10px !important;
}

figcaption::before {
    content: "";
    position: absolute;
    display: inline-block;
    transform: rotate(-180deg);
    left: -20px;
    width: 1px;
    height: calc(100% + 20px);
    padding: 0;
    margin: 0;
    background-color: #49763775;
    top: -10px;
    z-index: 0;
}

/* Volkhov Font */
:root {
  --gp-font--volkhov: 'Volkhov';
}


/* Admin */
.rahr #wpadminbar a::after{
    content: none;
}