/*
Theme Name: TECS WP Theme
Theme URI: 
Author: Alastair Mogford
Author URI: 
Description: 
Version: 0.1
License: 
License URI: 
Tags: 
Text Domain: tecs
*/

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

:root{

    --tecs-grey-950: #0d0d0d;
    --tecs-grey-900: #252525;
    --tecs-grey-800: #3d3d3d;

    --tecs-green-950: #01321d;
    --tecs-green-900: #0e5938;
    --tecs-green-800: #0e6d42;
    --tecs-green-700: #0a8b4f;
    --tecs-green-600: #08b162;
    --tecs-green-500: #13e784;
    --tecs-green-400: #3bed99;
    --tecs-green-300: #7bfabe;
    --tecs-green-200: #b5fdda;
    --tecs-green-100: #d9ffec;
    --tecs-green-50: #effef5;

    --tecs-white: #ffffff;

    --wpadminbar-height: 0px;
    --header-height: 153px;

}

html{
    font-size: 16px;
    scroll-behavior: smooth;
}

@media (max-width: 768px) {
    html{
        font-size: 15px;
    }    
}
@media (max-width: 480px) {
    html{
        font-size: 14px;
    }    
}
/* 
body:not(.editor-styles-wrapper, .mce-content-body, .wp-core-ui){
} */

body{
    margin: 0;
    padding: 0;
    background-color: var(--tecs-grey-900);
    color: white;
}




/* ----------------- SITEWIDE LAYOUT ----------------- */


main{
    background-color: var(--tecs-grey-950);
    color: white;
}


.tecs-wrapper {
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: 1rem;
}







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

.tecs-footer{
    background-color: var(--tecs-grey-950); 
    color: white;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.tecs-footer .tecs-wrapper{
    display: flex;
    gap: 2rem;
    justify-content: space-between;
}


.tecs-footer-logo-svg{
    width: 25rem;
    transition: all 200ms ease-in-out;
    /* margin-bottom: 2rem; */
}

@media (max-width: 640px) {
    .tecs-footer-logo-svg{
        max-width: 15rem;
    }
}



/* ----- FOOTER NAV ------- */


ul#etc-footer-navbar {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

ul#etc-footer-navbar > li > a{
    color: white;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

ul#etc-footer-navbar > li > a:hover{
    text-decoration: underline;
}

ul#etc-footer-navbar > li > a:focus{
    color: black;
}






/* ----------------- SKIP LINK ----------------- */



.tecs-skip-link {
    display: block;
    width: 100%;
  
    /* Visually hidden but still focusable */
    position: static;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
  
    /* styling */
    color: var(--tecs-green-950);
    font-weight: 700;
    text-decoration: none;
}

.tecs-skip-link:focus,
.tecs-skip-link:focus-visible {
    height: auto;
    padding: 0.75rem 1rem;
    overflow: visible;
    outline: 2px solid var(--tecs-green-500);
    background: var(--tecs-green-200);
}



/* ----------------- HEADER ----------------- */


body{
    position: relative;
}

.tecs-header{
    color: white;
    width: 100%;
    background-color: var(--tecs-grey-950);
    padding-top: 2rem;
    padding-bottom: 1.5rem;
}

.tecs-header-logo-svg{
    max-width: 30rem;
    transition: all 200ms ease-in-out;
}

@media (max-width: 640px) {
    .tecs-header-logo-svg{
        max-width: 20rem;
    }
}

/* homepage */
body.page-template-front-page .tecs-header{
    background-color: transparent;
    position: absolute;
    z-index: 1;
}




/* ----------------- FRONT PAGE SECTIONS ----------------- */


section.tecs-section-fp-hero{
    background: var(--tecs-grey-950);
    /* min-height: calc(100dvh - var(--header-height) - var(--wpadminbar-height)); */
    height: calc(100dvh - var(--wpadminbar-height));
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.tecs-section-fp-hero-image{
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    inset: 0;
    background-image: url(assets/images/homepage_hero.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform-origin: center;
}


.tecs-section-fp-hero-chevrons{
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    inset: 0;
    background-image: url('assets/graphics/bg-chevrons.svg');
    background-size: cover;
    background-position: -30vw center;
    background-repeat: no-repeat;
    opacity: 0.15;
}

@media (max-width: 480px) {
    .tecs-section-fp-hero-chevrons{
        width: 200%;
        background-position: -60vw center;
    }
}

section.tecs-section-fp-hero .tecs-wrapper{
    height: 100%;
    position: relative;
    z-index: 1;
}

.tecs-section-fp-hero-content{
    height: 100%;
    padding-top: 2rem;
    padding-bottom: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    max-width: 640px;
}

.tecs-section-fp-hero-content h1{
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 2rem;
}

.tecs-seperator{
    display: block;
    width: 105px;
    height: 4px;
    background-color: var(--tecs-green-400);
    margin-block: 2rem;
}





/* ----------- HERO ------------- */


.etc-hero{
    background-color: var(--etc-colour-navy-8);
    color: white;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding-bottom: 40px;
}




/* ----------- BREADCRUMBS ------------- */
/* 
.breadcrumb{
    margin-top: 20px;
    margin-bottom: 40px;
    position: relative;
}

.container-breadcrumb{
    display: flex;
    gap: 10px;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
}

.etc-breadcrumb-separator{
    display: block;
    width: 1em; height: 1em;
    --_breadcrumb-icon: url('assets/icons/breadcrumb-sep.svg');
    background-image: var(--_breadcrumb-icon);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.breadcrumb a{
    color: white;
}

.breadcrumb a:focus{
    color: var(--etc-colour-navy-8);
} */






/* ------------ NEWS CARD  ------------ */









/* ----------- SEARCH PAGE ------------- */


/* 
.etc-search-form > form{
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
}

@media (max-width: 360px) {
    .etc-search-form > form{
        grid-template-columns: 1fr;
    }
}

input.etc-search-field{
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 1px solid var(--etc-colour-navy-8);
    font-family: inherit;
    width: 100%;
    
    font-size: 19px;
    padding: 10px 30px;
    line-height: 30px;
    border-radius: 26px;
}

@media (max-width: 480px) {
    input.etc-search-field{
        font-size: 16px;
        padding: 8px 22px;
        line-height: 26px;
        border-radius: 21px;
    }
    
}

input.etc-search-field:focus, input.etc-search-field:active{
    outline: 4px solid var(--etc-colour-yellow-5);
    outline-offset: 1px;
    box-shadow: none;
}

.etc-search-form .etc-button{
    margin-block: 0;
}


.etc-search-results-container{
    grid-column: 2/4;
}

.etc-search-results-container a{
    text-decoration: none;
    color: inherit;
}

.etc-search-results-container a h3{
    text-decoration: underline;
    text-decoration-thickness: max(1px, .0625rem);
    text-underline-offset: 0.1578em;
}

.etc-search-results-container a:hover h3{
    text-decoration-thickness: 2px;
    -webkit-text-decoration-skip-ink: none;
    text-decoration-skip-ink: none;
    -webkit-text-decoration-skip: none;
    text-decoration-skip: none;  
}

.etc-search-results-container a:hover .etc-search-result{
    background-color: var(--etc-colour-grey-3);
}

.etc-search-results-container a:focus h3{
    outline: 3px solid transparent;
    color: #0b0c0c;
    background-color: var(--etc-colour-yellow-5);
    box-shadow: 0 -2px var(--etc-colour-yellow-5), 0 4px #0b0c0c;
    text-decoration: none;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.etc-search-results-container a:focus{
    box-shadow: none;
    background-color: transparent;
    outline-color: var(--etc-colour-yellow-5);
}

.etc-search-result {
    padding: 20px;
    background-color: var(--etc-colour-grey-5);
} */






/* ----------------- FAQs ----------------- */








/* ----------------- PAGINATION ----------------- */


/* 
.pagination .nav-links{
    display: flex;
    gap: 0.25rem;
}

.nav-links > *{
    padding: 0.25rem 0.5rem;
    background-color: rgb(var(--clr-lightgreen-rgb), 0.6);
}

.nav-links > .current{
    background-color: rgb(var(--clr-lightgreen-rgb), 1);
}

.nav-links a{
    text-decoration: none;
    color: var(--etc-colour-navy-8);
    font-weight: 500;
}

.nav-links a:hover, .nav-links a:focus{
    background-color: rgb(var(--clr-lightgreen-rgb), 1);
    text-decoration: underline;
} */




/* -------------------- YOUTUBE -------------------- */



.embed-container {
    position: relative;
    padding-bottom: 56.25%;  /*this ensures aspect ratio is 16:9*/
}
     
.embed-container iframe, .embed-container object, .embed-container embed {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}    





