/*!
Theme Name: Sterpunt
Author: Studio Rude Box
Author URI: http://studiorudebox.nl
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: sterpunt
*/

/*########################################################################
#	VARIABLES
########################################################################*/

:root {
    /* font family */
    font-size: 100%;
    --font-family: "Rubik", 'Gill Sans', 'Gill Sans MT', 'Trebuchet MS', sans-serif;

    /* font weight */
    --font-weight-body: 300;
    --font-weight-body-bold: 600;
    --font-weight-heading: 600;

    /* @link https://utopia.fyi/type/calculator?c=320,16,1.25,1536,20,1.5,5,2,&s=0.75|0.5|0.25,1.5|2|3|4|6,s-l&g=s,l,xl,12 */
    --font-size-xs: clamp(0.5556rem, 0.6622rem + -0.1111vw, 0.64rem);
    --font-size-sm: clamp(0.8rem, 0.7912rem + 0.0439vw, 0.8333rem);
    --font-size-md: clamp(1rem, 0.9342rem + 0.3289vw, 1.25rem);
    --font-size-lg: clamp(1.25rem, 1.0855rem + 0.8224vw, 1.875rem);
    --font-size-xl: clamp(1.5625rem, 1.2336rem + 1.6447vw, 2.8125rem);
    --font-size-2xl: clamp(1.9531rem, 1.3569rem + 2.9811vw, 4.2188rem);
    --font-size-3xl: clamp(2.4414rem, 1.4186rem + 5.1141vw, 6.3281rem);
    --font-size-4xl: clamp(3.0518rem, 1.3569rem + 8.4742vw, 9.4922rem);

    /* tracking */
    --letter-spacing-heading: -0.05em;
    --letter-spacing-body: 0;

    /* global color design tokens */
    --color-prim-brand:  rgb(0, 60, 76);
    --color-prim-accent: rgb(131, 196, 65);
    --color-neutral-50:  rgb(229, 235, 237);
    --color-neutral-100: rgb(196, 210, 214);
    --color-neutral-200: rgb(164, 185, 191);
    --color-neutral-300: rgb(131, 160, 168);
    --color-neutral-400: rgb(98, 135, 145);
    --color-neutral-500: rgb(65, 110, 122);
    --color-neutral-600: rgb(33, 85, 99);
    --color-neutral-700: var(--color-prim-brand);
    --color-neutral-800: rgb(0, 45, 57);
    --color-neutral-900: rgb(0, 30, 38);
    --color-warning:     rgb(255, 102, 102);

    /* alias color design tokens */
    --color-bg: var(--color-prim-brand);
    --color-text-heading: rgba(247, 247, 247, 1);
    --color-text-body: rgba(247, 247, 247, .87);
    --color-text-inverse: var(--color-prim-brand);

    /* shadows */
    --shadow-base: 0px 0.25em 1em rgba(0, 31, 39, 0.25);

    /* break points */
    --breakpoint-sm: 40rem; /* 640 px */
    --breakpoint-md: 48rem; /* 768 px */
    --breakpoint-lg: 64rem; /* 1024 px */
    --breakpoint-xl: 80rem; /* 1280 px */
    --breakpoint-2xl: 96rem; /* 1536 px */
    --breakpoint-3xl: 112rem; /* 1792 px */

    /* general */
    --header-height: 4em;
    --border-radius-sm: 0.5em;
    --border-radius-md: 0.75em;
    --border-radius-lg: 1em;
}

/*########################################################################
#	SPACING
########################################################################*/

:root {
    --spacing-ver-sm: 1.5em;
    --spacing-ver-md: 2em;
    --spacing-ver-lg: 4em;
}

@media (min-width: 1024px) { /* lg: 64em */
    :root {
        --spacing-ver-sm: 2em;
        --spacing-ver-md: 2.5em;
        --spacing-ver-lg: 5em;
    }
}

@media (min-width: 1280px) { /* xl: 80em */
    :root {
        --spacing-ver-sm: 4em;
        --spacing-ver-md: 3em;
        --spacing-ver-lg: 6em;
    }
}

@media (min-width: 1536px) { /* 2xl: 96em */
    :root {
        --spacing-ver-sm: 6em;
        --spacing-ver-md: 4em;
        --spacing-ver-lg: 8em;
    }
}

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

*,
*::after,
*::before {
    transition: color 100ms ease-out,
        background-color 100ms ease-out,
        border-color 100ms ease-out,
        padding 100ms ease-out,
        margin 100ms ease-out,
        height 100ms ease-out,
        width 100ms ease-out,
        min-height 100ms ease-out,
        min-width 100ms ease-out;
}

/*########################################################################
#	GLOBAL STYLING
########################################################################*/

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    position: relative;
    font-family: var(--font-family);
    font-weight: var(--font-weight-body);
    font-size: var(--font-size-md);
    line-height: 1.5;
    letter-spacing: var(--letter-spacing-body);
    min-height: 100vh;
    width: 100%;
    background: var(--color-bg);
    color: var(--color-text-body);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    position: relative;
    font-family: var(--font-family);
    font-weight: var(--font-weight-heading);
    color: var(--color-text-heading);
    letter-spacing: var(--letter-spacing-heading);
    z-index: 5;
}

h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child {
    margin-top: 0;
}

h1 {
    font-size: var(--font-size-3xl);
    text-wrap: balance;
    line-height: 0.85;
}

h2 {
    font-size: var(--font-size-2xl);
    text-wrap: balance;
    line-height: 0.85;
}

h3 {
    font-size: var(--font-size-xl);
    text-wrap: balance;
    line-height: 1.25;
}

h4 {
    font-size: var(--font-size-lg);
    line-height: 1.5;
}

@media (min-width: 768px) {

    /* md: 48em */
    h1 {
        max-width: 10ch;
    }

    h2 {
        max-width: 12ch;
    }
}

p {
    margin-bottom: 0.75em;
}

p:last-child {
    margin-bottom: 0;
}

p:empty {
    margin: 0;
    padding: 0;
}

svg,
img[src$=".svg"] {
    display: block;
    width: 100%;
    height: auto;
    fill: currentColor;
}

img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
}

figcaption {
    font-size: var(--font-size-sm);
    color: var(--color-text-small);
}

a,
a:visited {
    color: currentColor;
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--color-prim-accent);
}

ol,
ul {
    margin: 0.75rem 0 0.75rem 2rem;
}

ul {
    list-style-type: circle;
}

strong,
b {
    font-weight: var(--font-weight-body-bold);
}

hr {
    border: 0;
    border-top: 1px solid var(--color-text-body);
    margin: 0.5em 0;
    opacity: 0.25;
}

blockquote {
    margin: 0.75em 0 1.25em 0;
    font-style: italic;
}

small {
    font-size: var(--font-size-xs);
    color: var(--color-text-small);
}

/* box for 1920 x 1080 */
.hd-box {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.hd-box iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* WCAG focus visible */
:focus-visible {
    outline: 2px solid var(--color-prim-accent) !important;
}

/*########################################################################
#	UI ELEMENTS
########################################################################*/

a.button,
button,
section#section-contact button.ff-btn-submit {
    display: inline-block;
    padding: 0.75em 1.25em;
    margin-top: 0.5em;
    width: fit-content;
    border: 0;
    font-family: var(--font-family);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-body);
    line-height: 1;
    height: auto;
    background: none;
    background-color: transparent;
    border-radius: var(--border-radius-sm);
    outline: none;
    white-space: nowrap;
    cursor: pointer;
}

.button.filled {
    background: var(--color-text-body);
    color: var(--color-text-inverse);
}

.button.ghost,
section#section-contact button.ff-btn-submit {
    border: 1px solid var(--color-text-body);
    color: var(--color-text-body);
}

.button.ghost:hover,
.button.ghost:focus,
section#section-contact button.ff-btn-submit:hover,
section#section-contact button.ff-btn-submit:focus {
    color: var(--color-prim-accent);
    border-color: var(--color-prim-accent);
}

/*########################################################################
#	CAROUSELS
########################################################################*/

.carousel-container {
    position: relative;
    min-width: 0;
}

.carousel-container .carousel-btn {
    position: absolute;
    margin: 0;
    padding: 0.25em;
    top: 30%;
    width: 2em;
    height: 2em;
    outline: 10px solid var(--color-bg);
    border-radius: 100%;
    background: var(--color-prim-accent);
}

.carousel-container .carousel-btn:disabled {
    cursor: auto;
    background: var(--color-neutral-500);
}
.carousel-container .carousel-btn.prev-btn {
    left:-1em;
    transform: rotate(180deg);
}
.carousel-container .carousel-btn.next-btn {right:-1em;}

.carousel-wrapper {
    position: relative;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1.5em;
}
.carousel-wrapper.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-bottom: 0;
}
.carousel-wrapper.no-scrollbar::-webkit-scrollbar {display: none;}
.carousel-wrapper .carousel-item {scroll-snap-align: start;}

.carousel-wrapper:not(.no-scrollbar)::-webkit-scrollbar {height: 0.5rem;}
.carousel-wrapper:not(.no-scrollbar)::-webkit-scrollbar-track {background-color: var(--color-neutral-600); border-radius: var(--border-radius-lg);}
.carousel-wrapper:not(.no-scrollbar)::-webkit-scrollbar-thumb {background-color: var(--color-neutral-400); border-radius: var(--border-radius-lg);}
.carousel-wrapper:not(.no-scrollbar)::-webkit-scrollbar-thumb:hover { background-color: var(--color-neutral-200);}

/*########################################################################
#	CONTENT WRAPPER
########################################################################*/

.content-wrapper {
    width: 100%;
    max-width: var(--breakpoint-3xl);
    padding: 0 1em;
}

@media (min-width: 768px) { .content-wrapper {padding: 0 2em;} } /* md: 48em */
@media (min-width: 1536px) { .content-wrapper {max-width: var(--breakpoint-2xl);} } /* 2xl: 96em */
@media (min-width: 1792px) { .content-wrapper {max-width: var(--breakpoint-3xl);} }/* 3xl: 112em */

/*########################################################################
#	HEADER
########################################################################*/

header#masthead {
    position: fixed;
    width: 100%;
    top: 0;
    height: var(--header-height);
    color: var(--color-text-heading);
    z-index: 100;
}

header#masthead.elevated {background: var(--color-bg);}

#header-logo {
    width: 10em;
    z-index: 25;
}
#header-logo .logomark,
#header-logo .lettermark-dot {color: var(--color-prim-accent);}
#header-logo a:hover,
#header-logo a:focus {color: var(--color-text-body);}

/**
 * mobile menu
 */
#mobile-burger-btn {
    position: relative;
    z-index: 25;
}

#mobile-burger-btn .hamburger {
    width: 3.5rem;
    -webkit-tap-highlight-color: transparent;
    transition: transform 400ms;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: pointer;
}

#mobile-burger-btn input {
    position: absolute;
    width: 3.5rem;
    height: 3.5rem;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 1;
}
#mobile-burger-btn input:checked ~ .hamburger .top {stroke-dashoffset: -68px;}
#mobile-burger-btn input:checked ~ .hamburger .bottom {stroke-dashoffset: -68px;}
#mobile-burger-btn input:checked ~ .hamburger {transform: rotate(45deg);}

#mobile-burger-btn .hamburger .top {stroke-dasharray: 40 121;}
#mobile-burger-btn .hamburger .bottom {stroke-dasharray: 40 121;}
#mobile-burger-btn .line {
    fill: none;
    transition: stroke-dasharray 400ms, stroke-dashoffset 400ms;
    stroke: var(--color-text-heading);
    stroke-width: 5.5;
    stroke-linecap :round;
}

#site-navigation .menu-wrapper {
    position: fixed;
    width: 100vw;
    height: 100dvh;
    top: 0;
    left: 0;
    padding: 2em;
    background: var(--color-neutral-800);
    transform: translateX(-120%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.3s ease;
    opacity: 0;
    z-index: 10;
}

#menu-header-menu {
    gap: 0.5em;
    font-size: var(--font-size-xl);
    text-transform: uppercase;
    font-weight: 400;
}

body.mob-menu-open #site-navigation .menu-wrapper {
    transform: translateX(0);
    opacity: 1;
}

#menu-header-menu .menu-item {width: 100%;}
#menu-header-menu .menu-item a {
    position: relative;
    width: 100%;
}

#site-navigation .footer-mob-menu .social-link {color: var(--color-prim-accent);}

/**
 * bigger screen menu
 */

@media (min-width: 1024px) { /* lg: 64em */

    #site-navigation .menu-wrapper {
        position: relative;
        width: auto;
        height: auto;
        top: auto;
        left: auto;
        padding: 0;
        background: transparent;
        transform: none;
        opacity: 1;
    }
    
    #menu-header-menu {
        height: auto;
        gap: 1.5em;
        font-size: var(--font-size-md);
    }

    #menu-header-menu .menu-item {width: auto;}
    #menu-header-menu .menu-item .menu-icon {display: none;}    
    
    #menu-header-menu .menu-item a::before,
    #menu-header-menu .menu-item a::after {
        content: "";
        position: absolute;
        top: 0;
        height: 2px;
        width: 51%;
        background-color: var(--color-prim-accent);
        transition: transform 0.3s ease;
        transform: scaleX(0);
        transform-origin: center;
    }

    #menu-header-menu .menu-item a::before {
        left: 0;
        transform-origin: left;
    }

    #menu-header-menu .menu-item a:after {
        right: 0;
        transform-origin: right;
    }

    #menu-header-menu .menu-item a:hover::before,
    #menu-header-menu .menu-item a:hover::after {
        transform: scaleX(1);
    }
}

/*########################################################################
#	SECTIONS
########################################################################*/

/**
 * create bigger headings for the homepage
 */

body.home h1 {font-size: var(--font-size-4xl);}
body.home h2 {font-size: var(--font-size-3xl);}
body.home h3 {font-size: var(--font-size-2xl);}
body.home h4 {font-size: var(--font-size-xl);}
/**
 * general
 */
main > section {padding: calc(var(--spacing-ver-lg) / 2) 0;}

section .section-divider {
    position: relative;
    padding-top: var(--spacing-ver-md);
    gap: var(--spacing-ver-md);
    z-index: 5;
}

section.top-section {
    padding-top: var(--spacing-ver-sm);
    margin-top: var(--header-height);
}

@media (min-width: 1024px) { /* lg: 64em */

    section .section-content {
        text-wrap: balance;
    }
}

/**
 * final dot for headers
 */

section .final-dot {color: var(--color-prim-accent);}
section .section-heading {position: relative;}

/**
 * hero
 */
section#section-hero {position: relative;}
section#section-hero .video-wrapper {z-index: 5;}
section#section-hero .video-poster-img {
    filter: blur(8px);
    transition: opacity 0.5s ease;
}

section#section-hero::before {
    content: '';
    position: absolute;
    width: 70%;
    height: auto;
    aspect-ratio: 1 / 1;
    top: -10%;
    right: 2.5%;
    background: radial-gradient(circle, var(--color-prim-accent) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
    opacity: 0.25;
}

/**
 * services
 */
section#section-services {
    position: relative;
    overflow: hidden;
}

section#section-services::before {
    content: '';
    position: absolute;
    background: url(img/bg-pattern.svg) repeat;
    background-size: 16em;
    top: -4%;
    width: 100%;
    height: 105%;
    opacity: 0.1;
}

section#section-services .service-img img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    width: 14em;
}

section#section-services h3 {font-size: var(--font-size-md);}
section#section-services .service-carousel-items,
section#section-services .carousel-item {gap: 1.5em;}

/**
 * about
 */
section#section-about img {
    height: 100%;
    object-fit: cover;
}

/**
 * partners
 */
section#section-partners {
    background: linear-gradient(to top, var(--color-neutral-600) 0%, var(--color-bg) 100%);
    padding: var(--spacing-ver-lg) 0;
}

section#section-partners .partner-items {
    gap: 1em;
    width: 100%;
}

section#section-partners .partner-item {
    flex: 0 1 15%;
    background: var(--color-text-body);
    box-shadow: var(--shadow-base);
    border-radius: var(--border-radius-md);
    min-width: 45%;
    aspect-ratio: 1 / 1;
}

section#section-partners .partner-item a {
    display: block;
    padding: 1em;
}

section#section-partners .partner-item img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

@media (min-width: 768px) {/* md: 48em */
    
    section#section-partners .partner-item {min-width: unset;}
    section#section-partners h2 {text-align: center;}
}

/**
 * contact
 */
section#section-contact legend,
section#section-contact label {
    font-size: var(--font-size-md);
    color: var(--color-text-body);
}

section#section-contact input,
section#section-contact textarea {
    font-family: var(--font-family);
    font-size: var(--font-size-md);
    height: auto;
    max-width: none;
    padding: 0.75em;
    border: 1px solid var(--color-text-body);
    color: var(--color-text-body);
    box-shadow: none;
    border-radius: var(--border-radius-sm);
    background: transparent;
}

section#section-contact input:focus,
section#section-contact textarea:focus {border-color: var(--color-prim-accent);}
section#section-contact textarea {height: 8em;}
section#section-contact .fluentform .ff-el-input--label.ff-el-is-required.asterisk-right label:after,
section#section-contact .fluentform .ff-el-is-error .text-danger {color: var(--color-warning);}
section#section-contact .contact-info {gap: 1em;}
section#section-contact .contact-map {
    width: 100%;
    border-radius: var(--border-radius-md);
}

section#section-contact .ff-message-success {
    border-radius: var(--border-radius-sm);
}

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

footer#page-footer {
    padding: calc(var(--spacing-ver-lg) / 2) 0;
    background: var(--color-neutral-800);
}

footer#page-footer .content-wrapper {padding: 0 calc(var(--spacing-ver-lg) / 2);}

footer#page-footer .content-wrapper,
footer#page-footer .copyright,
footer#page-footer .general,
footer#page-footer .footer-menu-general {
    gap: 1em;
}

footer#page-footer .general {width: 100%;}

footer#page-footer .footer-top {gap: 6em;}
footer#page-footer .logomark {display: none;}
footer#page-footer .logomark svg {width: 5rem;}
footer#page-footer .address hr {width: 50%;}
footer#page-footer h3 {font-size: var(--font-size-md);}

footer#page-footer .social-link {color: var(--color-prim-accent);}
footer#page-footer .social-link svg {
    width: 1.5rem;
    height: auto;
}

@media (min-width: 768px) {/* md: 48em */
    
    footer#page-footer .content-wrapper {padding: 0 2em;}
    
    footer#page-footer .logomark {
        display: block;
        flex: auto;
        color: var(--color-prim-accent);
    }

    footer#page-footer .general {width: auto;}
}

/*########################################################################
#	404
########################################################################*/

main.error-404 { flex: auto; }
section#section-404 {gap: 1.5em}
section#section-404 p {
    width: 18ch;
    margin-top: 0.5em;
    text-wrap: balance;
    text-align: center;
}
