/*!
Theme Name: growcreative
Theme URI: https://designhousestudio.co.uk
Author: William Jeffree @ Design House
Description: This is a custom theme, based on the open source Underscores framework
Version: 1.2.2

DESIGN NOTES:
- The aesthetic of this site is to have all content aligned to the left edge
- All content should be uniformly aligned, with no additional padding on the left
- A clear edge is maintained around the entire site (15px on desktop, 10px on mobile)
- All headings use Helvetica Black font with normal weight and tight letter spacing
*/

@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..900;1,200..900&display=swap');

@font-face {
    font-family: 'Helvetica Black';
    src: url('fonts/Helvetica Black.woff2') format('woff2'),
         url('fonts/Helvetica Black.woff') format('woff'),
         url('fonts/Helvetica Black.ttf') format('truetype'),
         url('fonts/Helvetica Black.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/*--------------------------------------------------------------
# VARIABLES & KEYFRAMES
--------------------------------------------------------------*/

:root {
    --color-primary: #0b1b25;
    --color-accent: #ffcc33;
    --font-heading: 'Helvetica Black', sans-serif;
    --font-body: "Nunito", sans-serif;
    --spacing-base: 15px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInFromLeft {
    from { width: 0; opacity: 0; }
    to { width: 100%; opacity: 1; }
}

/*--------------------------------------------------------------
# NORMALIZE & BASE
--------------------------------------------------------------*/

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

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

body {
    margin: 0;
    background-color: white !important;
    color: var(--color-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.75;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

main {
    display: block;
}

/*--------------------------------------------------------------
# TYPOGRAPHY
--------------------------------------------------------------*/

h1, h2, h3, h4, h5, h6 {
    clear: both;
    font-weight: normal;
    line-height: 1.4;
    font-family: var(--font-heading);
    letter-spacing: -0.07em;
    border-bottom: none;
    padding-bottom: var(--spacing-base);
    margin-bottom: var(--spacing-base);
    position: relative;
    overflow: hidden;
    margin-left: -0.05em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    text-size-adjust: 100%;
    font-kerning: normal;
    font-variant-ligatures: common-ligatures contextual;
    font-variant-numeric: lining-nums proportional-nums;
}

h1 { font-size: 20px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }

h1::before, h2::before, h3::before, h4::before, h5::before, h6::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: black;
}

p {
    margin-bottom: 1.5em;
    font-size: 13px;
    font-family: var(--font-body);
    padding-bottom: var(--spacing-base);
    margin-bottom: var(--spacing-base);
    position: relative;
    text-align: justify;
    text-rendering: optimizeSpeed;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 { font-size: 28px; }
    h2 { font-size: 22px; }
    h3 { font-size: 18px; }
    h4 { font-size: 16px; }
}

@media (max-width: 480px) {
    h1 { font-size: 24px; }
    h2 { font-size: 20px; }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    h1, h2, h3, h4, h5, h6 {
        -webkit-font-smoothing: subpixel-antialiased;
    }
}

/*--------------------------------------------------------------
# ELEMENTS
--------------------------------------------------------------*/

hr {
    box-sizing: content-box;
    height: 2px;
    background-color: black;
    border: none;
    margin: var(--spacing-base) 0;
    width: 100%;
}

ul, ol {
    margin: 0 0 1.5em 0;
    padding-left: 0;
}

ul {
    list-style: none;
}

ul li {
    position: relative;
    padding-left: 12px;
    margin-bottom: 10px;
    font-size: 13px;
    font-family: var(--font-body);
    line-height: 1.75;
}

ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 4px;
    height: 4px;
    background-color: #000;
    border-radius: 50%;
}

ol {
    list-style-position: inside;
}

ol li {
    margin-bottom: 10px;
    font-size: 13px;
    font-family: var(--font-body);
    line-height: 1.75;
}

li > ul,
li > ol {
    margin-bottom: 0;
    margin-left: 0;
    padding-left: 12px;
}

embed, iframe, object {
    max-width: 100%;
}

img {
    height: auto;
    max-width: 100%;
    border-style: none;
}

figure {
    margin: 1em 0;
}

table {
    margin: 0 0 1.5em;
    width: 100%;
}

/*--------------------------------------------------------------
# LINKS & BUTTONS
--------------------------------------------------------------*/

a {
    color: var(--color-primary);
    background-color: transparent;
    transition: all 0.3s linear;
    text-decoration: none;
}

a:visited {
    color: var(--color-primary);
}

a:hover,
a:focus,
a:active {
    color: #333;
    outline: 0;
}

.button,
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    font-family: var(--font-body);
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #e6e6e6;
    color: rgba(0, 0, 0, 0.8);
    line-height: 1;
    padding: 0.6em 1em 0.4em;
    cursor: pointer;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
    border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
    border-color: #aaa #bbb #bbb;
}

/*--------------------------------------------------------------
# FORMS
--------------------------------------------------------------*/

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
    color: #666;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 3px;
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
    color: #111;
}

select {
    border: 1px solid #ccc;
}

textarea {
    width: 100%;
    overflow: auto;
}

/*--------------------------------------------------------------
# LAYOUT
--------------------------------------------------------------*/

.wrap {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

#page {
    width: calc(100% - 30px);
    margin: var(--spacing-base);
    box-sizing: border-box;
    background: white;
    overflow: visible;
    position: relative;
}

#primary {
    flex: 1;
    min-width: calc(50% - 40px);
    max-width: calc(50% - 40px);
    float: none;
    padding: 0;
    background: white;
    position: relative;
    box-sizing: border-box;
}

.site-main {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    clear: both;
    width: 100%;
    overflow: visible;
}

#secondary.widget-area {
    flex: 1;
    min-width: calc(45% - 30px);
    max-width: calc(45% - 30px);
    background: var(--color-accent);
    min-height: 200px;
}

@media (max-width: 768px) {
    #page {
        width: calc(100% - 30px);
        margin: var(--spacing-base);
    }
    
    .wrap {
        width: 100%;
        padding: 0;
    }

    #primary {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }
}

@media screen and (max-width: 999px) {
    #primary, #secondary.widget-area {
        min-width: 100%;
        max-width: 100%;
    }
    
    .site-main {
        flex-direction: column;
        gap: 20px;
    }
}

/*--------------------------------------------------------------
# HEADER & NAVIGATION
--------------------------------------------------------------*/

.site-header {
    position: relative;
    padding: 5px 0 50px;
    margin-bottom: 30px;
    background-color: white !important;
    background-image: none !important;
    border-bottom: none;
    width: 100%;
    overflow: visible;
    z-index: 100;
    min-height: 80px;
}

.site-header > * {
    position: relative;
    z-index: 2;
}

.site-branding {
    float: left;
    max-width: 325px;
    padding: 10px 0;
    margin-left: 0px;
    z-index: 5;
}

.site-header .custom-logo {
    width: 85%;
    max-width: 200px;
    height: auto;
    display: block;
}

.custom-logo-link img {
    max-height: 60px;
    width: auto;
}

#site-navigation {
    right: 40px;
    margin-top: 45px;
    position: absolute;
    z-index: 1000;
}

.menu-container {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 9999;
}

.menu-toggle {
    position: relative;
    width: 100px;
    height: 60px;
    background: var(--color-accent);
    border: 1px solid black;
    border-radius: 0;
    cursor: pointer;
    z-index: 10000;
    margin: var(--spacing-base);
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: none;
    opacity: 1 !important;
    visibility: visible !important;
}

.menu-toggle.is-active {
    position: fixed;
    top: 0;
    right: 0;
    margin: var(--spacing-base);
    width: 50%;
    height: calc(100vh - 30px);
    background: var(--color-accent);
    border: 1px solid black;
    border-radius: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 20px;
}

.menu-toggle:hover,
.menu-toggle:focus,
.menu-toggle.is-active:hover,
.menu-toggle.is-active:focus {
    background: var(--color-accent);
    border: 1px solid black;
}

.menu-text {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    color: black;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.menu-toggle.is-active .menu-text {
    position: absolute;
    top: 20px;
    right: 20px;
    left: auto;
    transform: none;
}

#primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: right;
    opacity: 0;
    visibility: hidden;
}

.menu-toggle.is-active #primary-menu {
    opacity: 1;
    visibility: visible;
}

#primary-menu li {
    margin: 0;
    padding: 0;
}

#primary-menu a {
    display: inline-block;
    padding: 10px 0;
    color: black;
    text-decoration: none;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

#primary-menu a:hover {
    color: #666;
}

@media screen and (max-width: 768px) {
    .menu-toggle.is-active {
        width: calc(100% - 30px);
        margin: var(--spacing-base);
    }
}

/*--------------------------------------------------------------
# SPECIAL PAGES & COMPONENTS
--------------------------------------------------------------*/

.home .entry-title {
    display: none;
}

.mastheadInner {
    display: none;
}

.fade-in {
    opacity: 0;
    transition: opacity 0.4s ease-in;
}

.fade-in.visible {
    opacity: 1;
}

.home .fade-in {
    opacity: 1;
}

/*--------------------------------------------------------------
# VIDEO BANNER
--------------------------------------------------------------*/

.video-banner {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.video-banner iframe {
    width: 100vw;
    height: 56.25vw;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    z-index: 3;
}

img.videoLogo {
    max-width: 420px;
    margin-bottom: 20px;
    animation-delay: 2s;
    animation: fadeIn 8s ease-in-out;
}

.banner-logo {
    max-width: 200px;
    margin-bottom: 20px;
    animation-delay: 2s;
    animation: fadeIn 20s ease-in-out;
}

.banner-text {
    font-size: 22px;
    color: #fff;
    animation: fadeIn 14s ease-in-out;
    animation-delay: 2s;
    max-width: 650px;
    opacity: 0;
    animation-fill-mode: forwards;
    font-family: 'Montserrat', sans-serif;
}

@media (max-width: 1080px) {
    .video-banner {
        height: 75vh;
    }

    .video-banner iframe {
        position: absolute;
        left: 50%;
        width: 340%;
        height: 200%;
        max-width: none;
        transform: translate(-50%, -50%);
        z-index: 1;
    }
    
    img.videoLogo {
        width: 50%;
    }
    
    .banner-text {
        font-size: 20px;
        max-width: 80%;
    }
}

/*--------------------------------------------------------------
# MODAL CONTACT FORM
--------------------------------------------------------------*/

.contact--form__bg {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(9, 36, 87, 0.8);
}

.contact--form {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 0 20px;
    border: 1px solid #888;
    width: 65%;
    position: relative;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}

.popup--close {
    right: 23px;
    top: 7px;
    position: absolute;
    font-size: 55px;
    font-weight: 300;
    line-height: 1em;
}

.popup--close:hover,
.popup--close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.form-active {
    display: block;
}

.overflowFixedForm {
    overflow: hidden;
}

@media (min-width: 650px) {
    .mobileOnly {
        display: none;
    }
}

/*--------------------------------------------------------------
# NINJA FORMS
--------------------------------------------------------------*/

.nf-form-content {
    padding: 0px !important;
}

.nf-form-content .list-select-wrap .nf-field-element > div, 
.nf-form-content input:not([type="button"]), 
.nf-form-content textarea {
    border: 1px solid #ccc !important;
    font-family: var(--font-body) !important;
}

.nf-form-content input:not([type="button"]):focus, 
.nf-form-content textarea:focus,
.nf-form-content select:focus,
.nf-form-content .list-select-wrap .nf-field-element > div:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: #000 !important;
}

.nf-form-fields-required, 
.nf-error-field-errors, 
.nf-error.field-wrap .nf-field-element::after {
    display: none;
}

.nf-after-field .nf-error-msg {
    margin-right: 10px;
    margin-bottom: 0 !important;
    text-transform: uppercase;
    font-size: 0.75em;
    font-family: var(--font-body);
}

.nf-form-content textarea, 
.nf-form-content input:not([type="button"]) {
    color: var(--color-primary) !important;
    font-weight: 400;
    font-family: var(--font-body) !important;
}

.nf-form-content input[type="submit"] {
    text-transform: uppercase;
    width: 100% !important;
    color: white !important;
    background: var(--color-primary) !important;
    cursor: pointer;
}

.nf-form-content input[type="submit"]:hover {
    color: var(--color-primary) !important;
    background: white !important;
}

/*--------------------------------------------------------------
# ANIMATIONS
--------------------------------------------------------------*/

.page-loading p, 
.page-loading img, 
.page-loading .entry-content, 
.page-loading .post-thumbnail, 
.page-loading .site-branding, 
.page-loading .footer-widget-area p, 
.page-loading .footer-widget-area .site-branding {
    opacity: 0;
    animation: fadeIn 0.2s ease-in forwards;
}

.page-loading h1, 
.page-loading h2, 
.page-loading h3, 
.page-loading h4, 
.page-loading h5, 
.page-loading h6 {
    opacity: 0;
    animation: fadeIn 0.2s ease-in forwards;
}

.page-loading h1::before, 
.page-loading h2::before, 
.page-loading h3::before, 
.page-loading h4::before, 
.page-loading h5::before, 
.page-loading h6::before {
    width: 0;
    animation: slideInFromLeft 0.4s ease-out forwards;
    animation-delay: 0.2s;
}

.page-loading hr {
    width: 0;
    animation: slideInFromLeft 0.4s ease-out forwards;
}

/*--------------------------------------------------------------
# FOOTER
--------------------------------------------------------------*/

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-widget-area {
    flex: 1;
    min-width: calc(45% - 30px);
    padding-right: 20px;
}

.footer-widget-area p {
    overflow: visible;
    font-size: 13px;
    line-height: 1.75;
    margin-bottom: var(--spacing-base);
    padding-bottom: var(--spacing-base);
    position: relative;
    text-align: justify;
    clear: both;
}

.footer-widget-area h1,
.footer-widget-area h2 {
    margin-top: 0;
    position: relative;
}

.footer-widget-area:after {
    content: "";
    display: table;
    clear: both;
}

.footer-widget-area .nf-form-content {
    padding: 0 !important;
    margin: 23px 0 0 0;
    max-width: 100%;
    clear: both;
}

.footer-widget-area .nf-form-content .nf-field-container {
    margin-bottom: var(--spacing-base);
}

.footer-widget-area .nf-form-content input:not([type="button"]), 
.footer-widget-area .nf-form-content textarea {
    background-color: #f9f9f9;
    border: 1px solid #ccc !important;
    font-size: 13px;
    padding: 8px !important;
    height: auto !important;
}

.footer-widget-area .nf-form-content input[type="submit"] {
    width: 100% !important;
    background-color: #000 !important;
    color: white !important;
    text-transform: uppercase;
    padding: 10px;
    cursor: pointer;
    font-size: 13px;
    height: auto !important;
    border: 1px solid #000 !important;
}

.footer-widget-area .nf-form-content input[type="submit"]:hover {
    background-color: white !important;
    color: #000 !important;
    border: 1px solid #000 !important;
}

.footer-widget-area ul,
#menu-footer-menu,
.menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget-area li,
#menu-footer-menu li,
.menu li {
    padding-left: 0;
    margin-bottom: 5px;
}

.footer-widget-area li::before,
#menu-footer-menu li::before,
.menu li::before {
    display: none;
}

#menu-footer-menu li {
    float: left;
    margin: 0;
}

.footer-widget-area hr {
    display: none;
}

.site-footer {
    clear: both;
    border-top: none;
    padding: 30px 0;
    margin-top: 30px;
}

.site-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-top: 20px;
}

.footer-left, .footer-right {
    flex: 1;
}

.footer-right {
    text-align: right;
}

@media screen and (max-width: 768px) {
    .footer-widgets {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-widget-area,
    .footer-widget-area:first-child,
    .footer-widget-area:nth-child(2) {
        margin-bottom: 30px;
        padding: 0;
        flex-basis: 100%;
        max-width: 100%;
    }
    
    .site-info {
        flex-direction: column;
    }
    
    .footer-right {
        text-align: left;
        margin-top: 10px;
    }
}

/*--------------------------------------------------------------
# UTILITIES
--------------------------------------------------------------*/

.singular .entry-meta {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 13px;
    color: #666;
}

.parallax-text p,
.featured-post-content p {
    font-size: 13px;
    line-height: 1.75;
    margin-bottom: var(--spacing-base);
    padding-bottom: var(--spacing-base);
    position: relative;
    text-align: justify;
}

.admin-menu-notice {
    margin: var(--spacing-base);
    padding: 10px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}
