/*############## FONTS ##############*/
@font-face {
    font-family: 'Rubik';
    src: url('../fonts/Rubik-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rubik';
    src: url('../fonts/Rubik-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rubik';
    src: url('../fonts/Rubik-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rubik';
    src: url('../fonts/Rubik-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rubik';
    src: url('../fonts/Rubik-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --color-light: #FFFFFF;

    --color-dark: #323232;

    --color-gray: #c5c5c5;

    --color-accent: #f3b03d;

    --container-width: 1440px;
    --container-padding-x: 20px;

    --section-padding-y: clamp(25px, 5vw, 75px);

    --border: 1px solid var(--color-light);

    --border-radius-s: 10px;
    --border-radius-m: 10px;
    --border-radius-l: 15px;

    --shadow: 0 0 1rem 0 var(--color-gray);

    --font-family: 'Rubik', sans-serif;

    --transition-duration: 0.2s;
    --transition-duration-longer: 0.4s;
}

/*############## UTILS ##############*/

.container {
    max-width: calc(var(--container-width) + var(--container-padding-x) * 2);
    margin-inline: auto;
    padding-inline: var(--container-padding-x);
}

.container-wide {
    max-width: var(--container-width);
    margin-inline: auto;
}

.hidden-mobile {
    @media(max-width: 767px) {
        display: none !important;
    }
}

.visible-mobile {
    @media(min-width: 768px) {
        display: none !important;
    }
}

/*############## GLOBALS ##############*/

html {
    &.is-lock {
        overflow: hidden;
    }
}

body {
    display: flex;
    flex-direction: column;
    font-family: var(--font-family);
    font-size: clamp(14px, 2vw, 18px);
    line-height: 1.4;
    color: var(--color-dark);
    background-color: var(--color-light);
}

main {
    flex-grow: 1;
}

h1, .h1 {
    font-size: clamp(26px, 4vw, 48px);
    line-height: 1.25;
    color: var(--color-light);
}

h1, .h1,
h2, .h2 {
    font-weight: 600;
    text-transform: uppercase;
}

h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5,
h6, .h6 {
    margin-bottom: 0;
}

h2, .h2 {
    font-size: clamp(28px, 4vw, 36px);
    color: var(--color-dark);
}

h3, .h3,
h4, .h4,
h5, .h5 {
    font-weight: 500;
}

h3, .h3 {
    font-size: clamp(22px, 2vw, 28px);
}

h4, .h4 {
    font-size: clamp(18px, 2vw, 22px);
}

h5, .h5 {
    font-size: clamp(16px, 2vw, 18px);
}

h6, .h6 {
    font-size: clamp(16px, 2vw, 14px);
    font-weight: 400;
}

a,
button,
label,
input,
textarea,
select,
svg * {
    transition-duration: var(--transition-duration);
}

a {
    color: inherit;
}



@media (hover: hover) {
    a:hover {
        color: var(--color-accent);
    }
}

@media (hover: none) {
    a:active {
        color: var(--color-accent);
    }
}

a[class] {
    text-decoration: none;
}

:focus-visible {
    outline: 2px dashed var(--color-accent);
    outline-offset: 4px;
    transition-duration: 0s !important;
}

.text-accent {
    color: var(--color-accent);
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    border: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
    clip-path: inset(100%) !important;
    clip: rect(0 0 0 0) !important;
    overflow: hidden !important;
}
