/* VARIABLES
--------------------------------------------- */

@font-face {
    font-family: 'CoconPro';
    src: url('../fonts/coconpro.woff2') format('woff2'),
         url('../fonts/coconpro.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* VARIABLES
--------------------------------------------- */

:root {
    /* Fonts */
    --fnt-family-primary: "Sansation", sans-serif;
    --fnt-family-secondary: "CoconPro", serif;

    /* Font sizes */
    --fnt-size-xxxl: 3arem;
    --fnt-size-xxl: 2rem;
    --fnt-size-xl: 1.75rem;
    --fnt-size-lg: 1.5rem;
    --fnt-size-md: 1.2rem;
    --fnt-size: 1rem;
    --fnt-size-sm: 0.875rem;

    /* Colors */
    --clr-yellow: #F9E01E;
    --clr-pink: #E68AB8;
    --clr-green: #91B508;
    --clr-gray: #3C3C3C;

    --clr-light-muted: rgba(255, 255, 255, 0.5);
    --clr-dark-muted: rgba(0, 0, 0, 0.5);

    --clr-dark: #3C3C3C;
    --clr-light: #FFFFFF;
    --clr-muted: #b7b7b7;

    --clr-success: var(--clr-green);
    --clr-warning: var(--clr-yellow);
    --clr-danger: #972f39;

    --clr-link: var(--clr-dark);
    --clr-link-hover: var(--clr-green);
    --clr-link-active: var(--clr-green);
    --clr-link-focus: var(--clr-green);
    --clr-link-visited: var(--clr-dark);

    --shadow-small: 0 3px 6px rgba(0, 0, 0, .15);
    --shadow-default: 0 8px 16px rgba(0, 0, 0, .15);
    --shadow-large: 0 16px 32px rgba(0, 0, 0, .15);

    --shadow-inverted-small: 0 -3px 6px rgba(0, 0, 0, .15);
    --shadow-inverted-default: 0 -8px 16px rgba(0, 0, 0, .15);
    --shadow-inverted-large: 0 -16px 32px rgba(0, 0, 0, .15);

    --theme-background-color: var(--clr-light);
    --theme-text-color: var(--clr-green);
    --theme-text-muted-color: var(--clr-dark);
}

/* BASE
--------------------------------------------- */

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

html {
    font-size: 18px; /* fallback */
    font-size: clamp(16px, 1.1vw, 18px); /* responsive base font */
}

body {
    font-family: var(--fnt-family-primary);
    line-height: 1.5;
    color: var(--clr-dark);
    background-color: var(--clr-light);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    color: var(--clr-dark);
    line-height: 1.2;
    margin: 0 0 2em 0;
}

h1 { 
    font-weight: normal;
    font-family: var(--fnt-family-secondary);
    font-size: clamp(1.75rem, 4vw, 2rem);  
    margin: 0;
    color: var(--clr-dark);
    text-transform: lowercase;
}

h2 { 
    line-height: 1.5em; 
    font-size: clamp(1.5rem, 4vw, 2rem);
    padding: 0 .5rem !important;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    color: var(--clr-green);
}
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: clamp(1.125rem, 2.5vw, 1.25rem); }
h5 { font-size: clamp(1rem, 2vw, 1.125rem); }

a {
    color: var(--clr-link);
    transition: all .25s ease;
    text-decoration: none;
}

a:hover {
    color: var(--clr-link-hover);
    text-decoration: none;
}

strong {
    font-weight: bold;
}

em {
    font-style: italic;
    color: inherit;
}

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

/* - Header - */

.site-header {
    background-color: var(--theme-background-color);
    color: var(--theme-text-color);
    padding: 1rem 0;
}

.site-header.uk-sticky-fixed {
    box-shadow: var(--shadow-default);
}

.site-header__title {
    margin-top: auto;
    color: var(--theme-text-color);
}

.site-header__subtitle {
    margin-left: 2rem;
    color: var(--theme-text-muted-color);
}

.site-header__logo {
    max-width: 160px;
}

@media only screen and (min-width : 960px) {
    .site-header__logo {
        max-width: 200px;
    }
}

.site-header__logo-svg {
    fill: var(--theme-text-color);
}

.site-header__toggle {
    fill: var(--theme-text-color);
}

/* - Primary navigation - */

.site-nav {
    display: flex;
}

.site-nav__right {
    margin-left: auto;
}

.site-nav > * {
    display: flex;
    gap: 2rem;
    align-items: center;
}


.modal-nav__container {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url(/wp-content/themes/generalstudio/assets/images/wood.webp);
    display: flex;
    flex-direction: column;
}


.modal-nav__header,
.modal-nav__footer {
    padding: .5rem 2rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-nav__logo {
    max-width: 120px;
}

.modal-nav__content {
    background-color: var(--clr-light);
    flex: 1 1 auto;
    overflow-y: auto;
}

.modal-nav__image {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url(/wp-content/themes/generalstudio/assets/images/menu.webp);
    opacity: .2;
}

.menu-main {
    list-style: none;
    display: flex;
    flex-direction: column;
    width: 380px;
    margin-left: auto;
    padding: 2rem;
    gap: .75rem;
    margin-top: auto;
    margin-bottom: auto;
}

.menu-main > .menu-main__item > .menu-main__link {
    display: block;
    border-radius: 8px;
    box-shadow: var(--shadow-small);
    color: var(--clr-green);
    font-size: var(--fnt-size-lg);
    font-family: var(--fnt-family-secondary);
    padding: .5rem 1rem;
    text-align: right;
    text-transform: lowercase;
}

.menu-main__subnav {
    list-style: none;
    display: block;
    background-color: var(--clr-light);
    box-shadow: var(--shadow-default);
    padding: 1rem 2rem;
    margin: 0;
    border-radius: 8px;
}

.menu-main__subnav > .menu-main__item > .menu-main__link {
    padding: .2rem 0;
    display: block;
}

/* - Mobile navigation - */

.menu-main-mobile {
    margin-top: 2rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 420px;
}

.menu-main-mobile > .menu-main-mobile__item {
    display: block;
    border-radius: 8px;
    box-shadow: var(--shadow-small);
}

.menu-main-mobile > .menu-main-mobile__item > .menu-main-mobile__link {
    display: flex;
    justify-content: space-between;
    color: var(--clr-green);
    font-size: var(--fnt-size-lg);
    font-family: var(--fnt-family-secondary);
    padding: .5rem 2rem;
    text-transform: lowercase;
}


.menu-main-mobile__subnav {
    padding: .5rem 2rem !important;
}

.menu-main-mobile__subnav > .menu-main-mobile__item > .menu-main-mobile__link {
    padding: .25rem 0;
    display: block;
}

/* - Quick navigation - */

.menu-quick {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 1rem;
    justify-content: center;
    padding: 2rem 2rem 0 2rem;
}

@media only screen and (min-width : 960px) {
    .menu-quick {
        justify-content: flex-end;
    }
}

.menu-quick a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    font-size: var(--fnt-size-lg);
    box-shadow: var(--shadow-inverted-small);
    color: var(--clr-green);
}

/* - Main - */

.site-main {}

/* - Footer - */

.site-footer {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--clr-light);
    font-size: .9rem;
    font-weight: 600;
}

.site-footer__column,
.site-footer__column h4 {
    color: inherit;
}

.site-footer__column h4 {
    font-size: 1.5rem;
    margin-bottom: .5rem;
}

.site-footer__credits {
    margin-top: 2rem;
}

.site-footer__credits .uk-grid-divider > ::before {
    visibility: hidden !important;
}


/* COMPONENTS
--------------------------------------------- */

.page__content {
    overflow-x: hidden;
    margin-bottom: 6rem;
}

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


/* WORDPRESS
--------------------------------------------- */

:where(.wp-block-columns.is-layout-flex) {
    gap: 6rem;
}

.has-green-section-background-color,
body.theme-green {
    --theme-background-color: var(--clr-green);
    --theme-text-color: var(--clr-light);
    --theme-text-muted-color: var(--clr-light-muted);
}

.has-pink-section-background-color,
body.theme-pink {
    --theme-background-color: var(--clr-pink);
    --theme-text-color: var(--clr-light);
    --theme-text-muted-color: var(--clr-light-muted);

}

.has-yellow-section-background-color,
body.theme-yellow {
    --theme-background-color: var(--clr-yellow);
    --theme-text-color: var(--clr-dark);
    --theme-text-muted-color: var(--clr-dark-muted);
}

.has-gray-section-background-color,
.has-dark-section-background-color,
body.theme-gray,
body.theme-dark {
    --theme-background-color: var(--clr-gray);
    --theme-text-color: var(--clr-light);
    --theme-text-muted-color: var(--clr-light-muted);
}

.has-white-section-background-color,
.has-light-section-background-color,
body.theme-white,
body.theme-light {
    --theme-background-color: var(--clr-light);
    --theme-text-color: var(--clr-dark);
    --theme-text-muted-color: var(--clr-dark-muted);
}

.has-background {
    background-color: var(--theme-background-color);
    color: var(--theme-text-color);
}

.has-background h2,
.has-background h3, 
.has-background h4, 
.has-background h5, 
.has-background h6 {
    color: var(--theme-text-color);
}

h2.has-background {
    background-color: transparent !important;
    background: repeating-linear-gradient(
        to bottom,
        var(--theme-background-color) 0.05em,                  /* highlight color start */
        var(--theme-background-color) 1.45em,            /* highlight color height = line-height */
        transparent 1.45em,       /* gap start */
        transparent 1.55em        /* gap end */
    );
    color: var(--theme-text-color);
}

.wp-block-post-featured-image,
.wp-block-group {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.wp-block-group {
    padding: 4rem 0;
}

.wp-block-post-featured-image {
    margin-top: 0;
    margin-bottom: 0;
    padding: 2rem 0;
    background-image: url(/wp-content/themes/generalstudio/assets/images/wood.webp);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.has-theme .wp-block-post-featured-image {
    background-image: none;
    padding: 0;
}

.is-layout-constrained > * {
    display: flow-root;
    box-sizing: content-box;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right:15px;
}

@media (min-width: 640px) {
    .is-layout-constrained > * {
        padding-left: 30px;
        padding-right:30px
    }
}

@media (min-width: 960px) {
    .is-layout-constrained > * {
        padding-left: 40px;
        padding-right:40px
    }
}

.is-layout-constrained > *:last-child {
    margin-bottom: 0;
}

.is-style-wooden-background {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url(/wp-content/themes/generalstudio/assets/images/wood.webp);
}

.is-style-wooden-background > * {
    color: var(--clr-light);
} 


/* OVERRIDES
--------------------------------------------- */

/* MEDIA QUERIES
--------------------------------------------- */

/* Custom, iPhone Retina */
@media only screen and (min-width : 320px) {}

/* Extra Small Devices, Phones */
@media only screen and (min-width : 640px) {}

/* Small Devices, Tablets */
@media only screen and (min-width : 768px) {}

/* Medium Devices, Desktops */
@media only screen and (min-width : 960px) {}

/* Large Devices, wide Screens */
@media only screen and (min-width : 1200px) {}

/* Extra large Devices */
@media only screen and (min-width : 1400px) {}