/* Global Styles */

:root {
    --primary-colour: #81B03A;
    --light-primary-colour: #f2ffdf;
    --highlight-colour: #784C72;
    --neutral-colour: #fffff7de;
    --neutral-dark: #d0d0d0;
    --bg-light-gray: #f5f5f5;
    --heading-colour: #333;
    --text-colour: #555;
    --dark-bg: #3E3E45;
    --offwhite: #fbfbfb;
    --panel-colour: #fbf9f4;

    --font-body: lato, Arial, open-sans;

    --border-radius: 8px;
    --transition: 0.3s ease-in-out;

    --space-xs: clamp(4px, 0.5vw, 8px);
    --space-sm: clamp(8px, 1vw, 16px);
    --space-md: clamp(12px, 2vw, 24px);
    --space-lg: clamp(20px, 3vw, 40px);
    --space-xl: clamp(32px, 5vw, 64px);
    --space-2xl: clamp(44px, 7vw, 88px);
    --space-3xl: clamp(56px, 5vw, 112px);
}

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

body {
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    font-size: clamp(16px, 1.2vw, 18px);
    line-height: 1.6;
    color: var(--text-colour);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading-colour);
    margin: 0;
    margin-bottom: 20px;
    line-height: 1.3;
}

h1 {
    font-size: clamp(26px, 5vw, 42px);
}

h2 {
    font-size: clamp(22px, 4vw, 36px);
}

h3 {
    font-size: clamp(20px, 3vw, 28px);
}

h4 {
    font-size: clamp(18px, 2.5vw, 24px);
}

h5 {
    font-size: clamp(16px, 2vw, 20px);
}

h6 {
    font-size: clamp(14px, 1.8vw, 18px);
}

p {
    margin: 0 0 1em;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

ul li,
ol li {
    list-style-type: none;
}

.container {
    max-width: 1350px;
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-lg) var(--space-lg);
}

.section-flex {
    display: flex;
    gap: 1rem;
}

.flex-center {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.flex-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.grid {
    display: grid;
    gap: 1rem;
}

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

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

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

@media (max-width: 800px) {
    .grid-2 {
        grid-template-columns: repeat(1, 1fr);
    }

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

@media (max-width: 500px) {

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

.btn {
    padding: 10px 20px;
    cursor: pointer;
    display: inline-block;
}

.btn:hover {
    opacity: 0.85;
}

.btn-primary {
    background-color: var(--primary-colour);
    color: var(--offwhite);
}

.btn-white {
    background-color: var(--offwhite);
    color: var(--heading-colour);
    font-weight: 700;
}

.section-heading {
    font-size: clamp(30px, 5vw, 42px);
}

.shadow {
    box-shadow: 1px 1px 10px #eaeaea;
    border-radius: 3%;
    padding: 8%;
}

/* HEADER */

header {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 20;
}

header .logo img {
    width: 100%;
    max-width: 400px;
}

.nav {
    padding: 40px 0;
}

.nav-links ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.nav-links ul li a {
    color: var(--offwhite);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 1px;
    padding: 10px;
}

.nav-links ul li a:hover {
    border-bottom: 2px solid var(--offwhite);
}

header .menu-icon {
    position: relative;
    display: none;
}

.fixed {
    overflow: hidden;
}

header .icon-container {
    top: 50%;
    right: 0px;
    margin-top: -13px;
    display: inline-block;
    width: 30px;
    height: 27px;
    cursor: pointer;
    position: absolute;
    color: var(--offwhite);
}

header .menu-icon .icon {
    position: relative;
    top: 12px;
    transition-duration: 0s;
    transition-delay: 0.2s;
    margin: 0px auto;
}

header .menu-icon.active .icon {
    background-color: rgba(0, 0, 0, 0);
    transition-delay: 0.2s;
}

header .menu-icon .icon,
header .menu-icon .icon::before,
header .menu-icon .icon::after {
    width: 100%;
    height: 2px;
    background-color: currentcolor;
    display: block;
}

header .menu-icon .icon::before,
header .menu-icon .icon::after {
    content: "";
    position: absolute;
    transition-property: margin, transform, -webkit-transform;
    transition-duration: 0.2s;
    transition-delay: 0.2s, 0s;
}

header .menu-icon.active .icon::before,
header .menu-icon.active .icon::after {
    margin-top: 0px;
    transition-delay: 0s, 0.2s;
}

header .menu-icon .icon::before {
    margin-top: -9px;
}

header .menu-icon .icon::after {
    margin-top: 9px;
}

header .menu-icon.active .icon::before {
    transform: rotate(45deg);
}

header .menu-icon.active .icon::after {
    transform: rotate(-45deg);
}

#nav-overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: #00000085;
    opacity: 0;
    display: none;
    transition: opacity 0.3s ease-in-out;
}

#nav-overlay.active {
    display: block;
    opacity: 1;
}

.sidenav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 100%;
    background: var(--dark-bg);
    color: var(--offwhite);
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 10;
}

.sidenav.open {
    -webkit-transform: translate(0, 0);
    transform: translate(0, 0);
}

.nav-container {
    padding: var(--space-2xl) var(--space-xl);
    overflow-y: auto;
    max-height: 100vh;
    font-size: clamp(15px, 5vw, 19px);
    margin-top: 30px;
}

.sidenav .site-links {
    margin: var(--space-xl) 0;
}

.sidenav .site-links li {
    margin: var(--space-md) 0;
    font-size: 1.3rem;
}


@media (max-width: 1400px) {
    .nav {
        padding: 40px 20px;
    }
}

@media (max-width: 1020px) {

    header .logo,
    header .logo a {
        width: 100%;
        max-width: 75%;
    }

    .nav-links {
        display: none;
    }

    header .menu-icon {
        display: block;
    }

}

/* FOOTER */

footer {
    background: var(--dark-bg);
    width: 100%;
    padding: 20px 0;
    color: var(--neutral-dark);
}

.footer-content,
.footer-links {
    align-items: flex-start;
}

footer h5,
footer .contact-title {
    color: var(--offwhite);
    font-weight: 600;
}

footer p {
    margin-bottom: var(--space-xs);
}

footer a:hover {
    color: var(--offwhite);
}

footer .company-info {
    max-width: 33%;
}

footer .company-info img {
    max-width: 180px;
    margin-bottom: var(--space-md);
}

footer .company-info p {
    padding-bottom: var(--space-sm);
}

.follow-icons a {
    color: var(--offwhite);
    padding: 8px 9px;
    background: gray;
    border-radius: 100%;
    font-size: .85rem;
    margin-right: 5px;
}

footer .contact {
    max-width: 23%;
}

footer .top-gap {
    margin-top: var(--space-md);
}

footer .coppyright {
    text-align: center;
}

footer .coppyright p {
    font-size: .95rem;
}

@media (max-width: 700px) {
    .footer-content {
        flex-direction: column;
    }

    footer .company-info {
        max-width: 100%;
        margin-bottom: var(--space-md);
    }

    .follow-icons a {
        font-size: 1.1rem;
    }
}

@media (max-width: 500px) {
    .footer-links {
        flex-direction: column;
    }

    footer .contact {
        max-width: 100%;
    }
}

/* HERO */

.hero {
    width: 100%;
    overflow: hidden;
    background: var(--neutral-colour);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-container {
    display: flex;
    padding-top: 40px;
    max-width: 1300px;
    margin: 0 auto;
    width: 95%;
}

.hero.home .hero-container {
    height: 80vh;
    min-height: 600px;
    max-height: 700px;    
    align-items: center;    
}

.hero.subpage .hero-container {
    min-height: 420px;
    align-items: end;
}

.hero-text {
    max-width: 700px;
}

.hero.subpage .hero-text{
    margin-bottom: 50px;
}

.hero .strapline {
    color: var(--offwhite);
    text-shadow: 1px 1px 10px black;
    text-transform: uppercase;
    font-weight: 400;
    margin-bottom: 10px;
}

.hero-title {
    font-size: clamp(40px, 6vw, 60px);
    color: var(--offwhite);
    text-shadow: 1px 1px 10px black;
}

.hero-breadcrumb {
    color: var(--neutral-colour);
    font-size: 1.1rem;
    text-transform: uppercase;
}

.hero-breadcrumb a:hover {
    border-bottom: 2px solid var(--neutral-colour);
}

.hero-breadcrumb span {
    margin: 0 10px
}

.hero.subpage .hero-title {
    text-transform: uppercase;
    margin: 0;
}

.hero-sub {
    font-size: clamp(18px, 4vw, 24px);
    color: var(--offwhite);
}

@media (max-width: 700px) {
    .hero.home .hero-text {
        text-align: center;        
    }
    .hero.subpage .hero-container {
        min-height: 300px;
        padding: 0 10px;
    }
}

/* Font Awesome Icons */
.fa-xmark::before {
    content: "\f00d";
}

/* Highlight Blocks */

.highlight-blocks .grid {
    gap: 3rem;
}

.highlight-blocks .highlight {
    background: var(--panel-colour);
    padding: 20px;
    padding-top: 0;
    border-radius: 10px;
    position: relative;
    text-align: center;
    box-shadow: 1px 2px 6px 0px #999;
}

.highlight-blocks .highlight .icon {
    font-size: 2rem;
    background-color: var(--panel-colour);
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    translate: 0 -50%;
    width: 55px;
    height: 55px;    
    outline-offset: 1px;
    border: 3px solid #fff;
    outline: 3px solid var(--panel-colour);
    margin: 0 auto;
}

.highlight-blocks .highlight p {
    font-size: 1.05rem;
}

.highlight-blocks .fa-circle-check:before {
    content: "\f058";
}

.highlight-blocks .fa-calendar-days:before {
    content: "\f073";
}

@media (max-width: 800px) {
    .highlight-blocks {
        margin-top: 40px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .highlight-blocks .highlight {
        padding: 0 5px;
    }    
}