/* BASE STYLES Defaults-----------------------------*/

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

html {
    -webkit-text-size-adjust: 100%;
    /* Stop Safari on iPhone text scaling */
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: "Muli", sans-serif;
    font-weight: 300;
    font-style: normal;
    line-height: 1.6em;
    color: #575756;
    margin: 0;
    padding: 0;
    height: 100%;
}



/* Generic element styling, cascading etc*/

i,
em {
    font-style: italic;
}

b,
strong {
    font-weight: 600;
}

h1,
h2,
h3 {
    font-family: 'Montserrat', serif;
    font-weight: 100;
    line-height: 1em;
    text-transform: uppercase;
}




code {
    font-family: 'Roboto Mono', monospace;
    font-weight: 300;
}


/* END BASE STYES -----------------------------*/


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

.site-header {
    color: #333;
    padding: 0;
}

.header-logo {
    height: 47px;
    box-sizing: content-box;
}

/* Top Nav Menu Styling */


/* Base Styles */

/* Setup the menu class settings and hide them*/

.menu {
    position: absolute;
    top: 60px;
    left: 0;
    display: flex;
    flex-direction: column;
    background-color: #f1d7dc;
    width: 100%;
    padding: 0;
    overflow: hidden;

    /* Hidden by default */
    max-height: 0;

    /* opacity 0 */
    opacity: 0;

    /* set the transition time for the mobile overlay */
    transition: max-height 0.5s ease, opacity 0.5s ease;

    /* make sure when menu is visible it is layered on top of content */
    z-index: 100;
}

/* set opacity to 1 when the menu is in an active state 
    show the hidden menu elements on an overlay*/

.menu.active {
    max-height: 500px;
    /* Large enough to show all items  */
    opacity: 1;
}

/* general nav element stying for mobile */

.menu li {
    margin: 0;
    text-align: left;
    padding: 10px;
    border-top: 1px solid white;
    list-style-type: none;
}

.menu li a {
    color: #575756;
    text-decoration: none;
    padding: 10px;
}

.menu li:hover {
    background-color: #b5d7ea
}

.menu li:nth-child(2) {
    background-color: #e1d3e4;
}




/* Basic layout for mobile first*/

.header-container {
    display: flex;
    flex-direction: row;
    padding: 1rem;
    position: relative;
}

/* display the menu toggle button*/

.menu-toggle {
    display: block;
    font-size: 24px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.menu-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
}


/* style the menu button and hover*/

.menu-wrapper button {
    color: #575756;
}

.menu-wrapper button:hover {
    color: #b5d7ea;
}







/* Mobile Menu Toggle */


/* END HEADER STYLES ---------------------------*/


/* Generic layout classes */


/* LAYOUT STYLES -------------------------------*/


.body-background {
    background-color: #fcfcfc;
}

.l-full-wrap {

    margin: 0 auto;
}

.l-main-content-wrap {
    max-width: 1400px;
    margin: 0 auto;
}

.l-section-wrap {
    margin-top: 2em;
}

/* flexbox layout sections */

.l-flex-row-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: stretch;
    margin: 0px 10px;
}

.l-column-content-container {
    flex: 1 1 450px;
    padding: 1.56rem;
    background-color: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.l-column-content-container h2 {
    margin-bottom: 0.8em;
    font-size: 1.5rem;
}

.l-column-content-container p {
    margin-bottom: 1em;
    font-size: 1rem;
}

.l-column-image-container {
    display: flex;
    flex: 1 1 450px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);

}

.l-column-image-container img {

    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    align-self: stretch;
}

.l-image-column {
    display: block;
    max-width: 300px;
}

.l-image-column img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    align-self: stretch;
}

/* grid layout sections */

.l-2-column-grid {
    display: grid;
    column-gap: 2em;
    grid-template-columns: 1fr;

}

.l-2-column-left {
    grid-column: 1;
    background-color: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.l-2-column-right {
    grid-column: 2;
    background-color: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.l-full-image-column {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.l-full-image-column img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
    /* keeps aspect ratio and fits image in container */
}

.l-small-image-column {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.l-small-image-column img {
    max-width: 60%;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
    /* keeps aspect ratio and fits image in container */
}

.l-text-column {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 1.56rem;

}

.l-nested-3row-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 3;
    justify-content: center;
    align-items: center;
    background-color: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.l-nested-row1 {
    grid-row: 1;
    margin: 2em 1em;
}

.l-nested-row2 {
    grid-row: 2;
    margin: 2em 1em;
}

.l-nested-row3 {
    grid-row: 3;
    margin: 2em 1em;
}



/* END LAYOUT STYLES ---------------------------*/


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

.footer-wrap {
    background-color: #E3E9E9;
    padding: 0;
    margin-top: 4em;
}

.footer-wrap a {
    text-decoration: none;
    color: #575756;
}

.footer-wrap a:hover,
.footer-wrap a:focus {
    color: #000;
}

.footer-word-grid {
    display: grid;
    padding: 0;
    grid-template-columns: 1fr;
}

.footer-word-grid li {
    display: block;
    padding: 0.5em;
    list-style-type: none;
    text-align: center;
    text-transform: uppercase;
    font-family: 'Montserrat', serif;
    font-weight: 100;
    font-size: 1.2rem;
    color: #575756;
}

.pale-pink {
    background-color: #f1d7dc;
}

.pale-lilac {
    background-color: #e1d3e4;
}

.pale-blue {
    background-color: #b5d7ea;
}

.pale-green {
    background-color: #a6cfb7;
}


.pale-yellow {
    background-color: #e6e0b5;
}

.pale-taupe {
    background-color: #d5d1c9;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-column {
    margin-top: 2.5em;
    margin-left: 2.5em;
}



.footer-column ul {
    padding: 0;
    margin-top: 0.75em;
    line-height: 120%;
}

.footer-column li {
    list-style-type: none;
    padding: 0;
    margin: 0;
}


.footer-header {
    color: #000;
    padding: 0;
    margin: 0;
}

.footer-navigation {
    margin-top: 0.5em;
    line-height: 120%;
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}


.footer-icons {
    display: flex;
    flex-flow: row wrap;

}

.footer-icons svg {
    width: 25px;
    fill: #575756;
    transition: color 0.5s ease;
    margin: 10px;
}

.footer-icons svg:hover,
.footer-icons svg:focus {
    fill: #000;
}


.footer-disclaimer {
    padding: 20px 0px;
}


.footer-disclaimer p {
    text-align: center;
    padding: 0;
    margin: 0;
    line-height: 120%;
}

/* END FOOTER STYLES ---------------------------*/






/* Specific styling/ utility classes */

.primary {
    background-color: #f8b133;
}

.secondary {
    background-color: #575756;
    color: white;
}


.main-heading {
    color: #575756;
    font-size: 3rem;
    text-align: right;
    margin-bottom: 20px;
}

.sub-heading {
    font-size: 2rem;
}

.pub-date {
    font-size: 0.8rem;
    text-align: right;
    margin-top: 0px;
}

.btn-container {
    display: flex;
    justify-content: center;
}

.action-btn {
    background-color: #b5d7ea;
    text-decoration: none;
    box-shadow: none;
    border: none;
    padding: 10px 15px;
    border-radius: 1000px;
    transition: transform 0.3s;
}

.action-btn:hover {
    background-color: #f1d7dc;
}

.small-img {
    max-width: 60px;
}


/* Hero Parallax image */

.parallax-container {
    width: 100%;
    height: 450px;
    overflow: hidden;
    position: relative;
}



.parallax-image {
    position: relative;
    height: 90vh;
    min-height: 450px;
    background-position: right bottom;
    /* This controlls the positioning */
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll;
    /* This creates the parallax effect */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* position the parallax-title to align to the top of the image*/
    color: white;
}

.parallax-title {
    text-align: right;
    color: #ffffff;
    /* Title color */
    width: 100%;
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.5);
    /* Semi-transparent background */
    margin-top: 20px;
}

.parallax-title h1 {
    margin: 0 0.5em;
    font-size: 2rem;
}

/* SMALL SCREENS MEDIA QUERIES --------------------------*/

/* testing when small mobile screens need adjustment*/

@media screen and (min-width: 600px) {

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

}


/* MEDIUM SCREEN MEDIA QUERIES --------------------------*/

@media screen and (min-width: 768px) {

    /* Top Nav Menu Responsive Settings for larger screens */


    .menu {
        position: static;
        display: flex;
        flex-direction: row;
        background-color: transparent;
        max-height: none;

        /* overide opacity to 1 to make menu  visible on the desktop */
        opacity: 1;
        transition: none;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    /* override the mobile menu list styling elements for larger screens */

    .menu li {
        background-color: transparent;
        margin-left: 40px;
    }

    .menu li a {
        color: #424653;
        text-decoration: none;
        padding: 10px;
    }

    .menu li a:hover {
        background-color: transparent;
        color: #ecad27;
    }

    .menu li:nth-child(1) {
        background-color: transparent;
    }

    .menu li:nth-child(2) {
        background-color: transparent;
    }

    /* Basic layout overides for larger screens*/

    .header-container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
        padding: 0;
        margin: 5px 15px;
    }

    /* do NOT display the menu toggle button*/

    .menu-toggle {
        display: none;
    }

    .menu-wrapper {
        display: flex;
        align-items: flex-end;
        gap: 15px;
    }

    .main-navigation {
        display: flex;
    }




    /* END - Top Nav Menu Responsive Settings */

    /* Grid Media Queries */

    .l-2-column-grid {
        grid-template-columns: 1fr 1fr;
    }


    /* For mobile devices where parallax doesn't work well */
    .parallax-image {
        background-attachment: fixed;
    }


    /* Mobile view - stack columns */
    .l-column-content-wrap,
    .l-column-image-wrap {
        flex: 1 1 45%;
    }

    .l-flex-row-wrap {
        margin-left: 0;
    }

    .footer-word-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr 1fr;
    }

}

/* LARGE SCREEN MEDIA QUERIES --------------------------*/

@media screen and (min-width: 1024px) {

    .l-flex-row-wrap {
        margin-left: 100px;
    }

    .l-2-column-grid {
        margin-left: 150px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }


}






/* RE-USABLE MODULE STYLES ---------------------------*/

.regular-section {
    height: 100vh;
    padding: 2rem;
    background-color: #f4f4f4;
}