@font-face {
    font-family: 'Roboto';
    font-weight: 400;
    src: url('font/roboto-regular-webfont.woff2') format(woff2), url('font/roboto-regular-webfont.woff') format(woff);
}

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

img {
    display: block;
    max-width: 100%;
    height: auto;
}

input, button, textarea {
    font: inherit;
}

/* || VARIABLES */
:root {
    /* FONTS */
    --FF: 'Roboto', sans-serif;
    --FS: clamp(1rem, 2.2vh, 1.5rem);
    --HERO-H1: clamp(2rem, 10vw, 4rem);
    --HERO-H2: clamp(1rem, 7.5vw, 2rem);

    /* COLORS */
    --BG-COLOR: #2c1406;
    --BG-IMAGE: linear-gradient(var(--BG-COLOR), #1a1a1a);
    --SECTION-BG-IMAGE: linear-gradient(var(--BG-COLOR), #200f05);
    --FONT-COLOR: whitesmoke;
    --HEADER-BG-COLOR: #111;
    --HEADER-COLOR: rgba(240, 240, 240);
    --NAV-BORDER-COLOR: #838383b6;
    --ARTICLE-BG-COLOR: rgba(0, 0, 0, 0.4);
    --TEAM-BG-COLOR: rgba(0, 0, 0, 0.85);
    --LINK-HOVER: rgb(195, 185, 185);
    --LINK-ACTIVE: rgb(255, 187, 156);
    --BTN-SEND: #962300;
    --BTN-RESET: gray;
    --FORM-LABEL: #222;
    --FORM-INPUT: rgba(255, 255, 255, 0.219);
    --FORM-INPUT-BG: rgba(255, 255, 255, 0.541);
    --FORM-IMAGE: linear-gradient(#FFEFBD, #f5af83);
    --SHADOW: 2px 2px 4px 0.5px #1d1d1da9;
    --PLACEHOLDER: rgb(56, 56, 56);
    --FOOTER-IMAGE: linear-gradient(
        115deg,
        hsl(0deg 0% 7%) 0%,
        hsl(18deg 10% 7%) 10%,
        hsl(19deg 19% 8%) 20%,
        hsl(19deg 26% 8%) 30%,
        hsl(20deg 33% 8%) 40%,
        hsl(21deg 40% 8%) 50%,
        hsl(20deg 33% 8%) 60%,
        hsl(19deg 26% 8%) 70%,
        hsl(19deg 18% 8%) 80%,
        hsl(18deg 10% 7%) 90%,
        hsl(0deg 0% 7%) 100%
      );

}

/* || UTILITY CLASSES */
.offscreen {
    position: absolute;
    left: -10000px;
}

.nowrap {
    white-space: nowrap;
}

.center {
    text-align: center;
}

.bold {
    font-weight: bold;
}


/* || GENERAL STYLE */
html {
    scroll-behavior: smooth;
    font-family: var(--FF);
    font-size: var(--FS);
    background-color: var(--BG-COLOR);
    background-image: var(--BG-IMAGE);
}

body {
    color: var(--FONT-COLOR);
    line-height: 1.5;
    min-height: 100vh;
}



h1, h2, h3, p, address {
    padding: 0.5em;
    font-style: normal;
}

iframe {
    display: block;
    width: 100%;
    height: max(35vh, 35vw);
    border: none;
}

a:any-link {
    color: var(--HEADER-COLOR);
    text-decoration: none;
} 

a:hover, a:focus {
    color: var(--LINK-HOVER);
}

a:active {
    color: var(--LINK-ACTIVE);
}

/* || HEADER */
.header {
    width: 100%;
    position: static;
}

.header__logo {
    height: 25px;
    width: auto;
}

.header__title-line {
    background-color: var(--HEADER-BG-COLOR);
    padding: 1.5em 1.5em;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
}

.menu-button {
    background-color: transparent;
    border: none;
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.close-menu-button {
    display: none;
    background-color: transparent;
    outline: none;
    border: none;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 25px;
    height: 25px;
    z-index: 1;
}

.menu-button:hover, .close-menu-button:hover {
    cursor: pointer;
}

.menu-icon, .menu-icon::before, .menu-icon::after,
.menu-icon-x::before, .menu-icon-x::after {
    background-color: var(--HEADER-COLOR);
    width: 24px;
    height: 2.5px;
    border-radius: 2px;
    position: absolute;
    transition: all 0.5s;
}


.menu-icon::before, .menu-icon::after,
.menu-icon-x::before, .menu-icon-x::after {
    content: "";
}

.menu-icon::before {
    transform: translate(-12px, -8px);
}

.menu-icon::after {
    transform: translate(-12px, +8px);
}

.menu-icon-x::before {
    transform: translateX(-12px) rotate(45deg);
}

.menu-icon-x::after {
    transform: translateX(-12px) rotate(-45deg);
}


.header:focus-within .menu-icon {
    background-color: transparent;
    transform: rotate(360deg);
}

.header:focus-within .menu-icon::before {
    transform: translateX(-12px) rotate(45deg);
}

.header:focus-within .menu-icon::after {
    transform: translateX(-12px) rotate(-45deg);
}

.header__nav {
    display: none;
    position: relative;
    
}

/* .header:focus-within .header__nav {
    display: block;
    transform-origin: top center;
    animation: showMenu 0.5s ease-in-out forwards;
} */

/* .header:focus-within .close-menu-button {
    display: block;
} */

/* .header:focus-within .close-menu-button:focus {
    transform: translateX(-50px);
} */

/* .close-menu-button:focus+.header__nav {
    transform-origin: top center;
    animation: hideMenu 0.5s ease forwards;
} */

@keyframes showMenu {
    0% {
        transform: scaleY(0);
    }

    80% {
        transform: scaleY(1.2);
    }

    100% {
        transform: scaleY(1);
    }
}

@keyframes hideMenu {
    0% {
        transform: scaleY(1);
    }

    20% {
        transform: scaleY(1.2);
    }

    100% {
        transform: scaleY(0);
    }
}

.header__ul {
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 1;
    list-style-type: none;
    display: flex;
    flex-flow: column nowrap;
    background-color: var(--HEADER-BG-COLOR);
}

.header__nav li {
    padding: 1.5rem;
    border-top: 1px solid var(--NAV-BORDER-COLOR);
}

.header__nav a {
    display: block;
    text-align: center;
    width: 80%;
    margin: auto;
    order: -1;
}

.header__nav a:hover, .header__nav a:focus {
    transform: scale(1.2);
    transition: all 0.3s;
}

li .call-to-action {
    background: linear-gradient(to right, #bb8d37, #c89b50, #ebb875);
    padding: 0.5rem;
    border-radius: 5px;
    color: #222111;
    font-weight: 600;
    width: 60%;
}

/* || SECTION */
.main__section {
    padding: 1em;
    background-color: var(--BG-COLOR);
    background-image: url('images/bg4.png'), var(--SECTION-BG-IMAGE);
}

.article-style {
    background-color: var(--ARTICLE-BG-COLOR);
    padding: 0.5em;
    border-radius: 10px;
    margin: 1em 0;
}

.main__section-form img {
    display: none;
}

/* || FOOTER */
.footer {
    text-align: center;
    padding: 0.5em;
    background-color: var(--HEADER-BG-COLOR);
    background-image: var(--FOOTER-IMAGE);
    font-weight: 100; 
}

.footer__nav ul li {
    list-style-type: none;
    display: inline-block;
    margin: 1em;
}

.footer p {
    margin: 1em;
}

/* || HERO */
.hero {
    min-height: 91vh;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    background-image: url('images/bg3-mobile.webp');
    background-size: cover;
    background-repeat: no-repeat;
}

.hero__h1 {
    text-align: center;
    font-size: var(--HERO-H1);
    padding: 0.5em;
    margin: 1em 0.5em;
}

.hero__h2 {
    margin: 1em 0.5em;
    font-size: var(--HERO-H2);
    text-align: center;
}


/* || FORM */

.main__section-form {
    background-color: transparent;
    background-image: var(--FORM-IMAGE);
    padding: 0.5em;
}

.main__section-form h2 {
    text-align: center;
    color: var(--FORM-LABEL);
}

form button {
    display: inline-block;
    width: 150px;
    height: 50px;
    border-radius: 10px;
    background-color: transparent;
}

.form-button {
    display: flex;
    justify-content: center;
    gap: 1em;
}

.button-send {
    color: var(--BTN-SEND);
    border: 2px solid var(--BTN-SEND);
    box-shadow:  var(--SHADOW);
}

.button-reset {
    color: var(--BTN-RESET);
    border: 2px solid var(--BTN-RESET);
    box-shadow: var(--SHADOW);
}

.button-send:hover, .button-reset:hover {
    filter: brightness(125%);
    cursor: pointer;
}

.button-send:active, .button-reset:active {
    filter: brightness(85%);
}

fieldset {
    border: none;
    margin: 0 auto;
}


label {
    display: block;
    width: 80%;
    margin: 0.5em auto;
    color: var(--FORM-LABEL);
}

input, textarea {
    display: block;
    width: 100%;
    border-radius: 5px;
    padding: 0.5em;
    margin: 0 auto;
    width: 80%;
    background-color: var(--FORM-INPUT-BG);
    border: none;
    color: var(--FORM-LABEL);
}


input::placeholder, textarea::placeholder {
    color: var(--PLACEHOLDER);
}

.back-to-top {
    display: block;
    text-align: center;
    grid-column: 1 / 3;
}

.back-to-top a {
    color: var(--BG-COLOR);
}

.back-to-top a:hover, .back-to-top a:focus {
    filter: brightness(150%);
}

/* || CONTACT */
.contact-main {
    min-height: 91vh;
    width: 100%;
}

.contact__h1 {
    margin-top: 0.5em;
    font-size: 2.5rem;
    padding-left: 0.5rem;
}

.contact-main img {
    display: none;
}

.contact__h2 {
    margin: 1em auto 0;
}

/* || AFFILIATES */
.affiliates-main {
    background-image: url('images/bg5.png'), var(--FORM-IMAGE);
    color: var(--FORM-LABEL);
    text-align: center;
}

.affiliates-main figure {
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    gap: 1em;
    align-items: center;
    padding: 1.5em;
}

/* || TEAM */
.team-main {
    background-image: url('images/bg5.png'), var(--FORM-IMAGE);
}

.team-main__h1 {
    color: var(--FORM-LABEL);
    font-size: 3rem;
    font-weight: bolder;
}

.team__div {
    width: 35vh;
    padding: 1em 1em 0.5em;
    margin: 3em auto;
    border-radius: 15px;
    text-align: center;
    background-color: var(--TEAM-BG-COLOR);
    word-wrap: break-word;
}

.team__img {
    border-radius: 15px;
}

.team__h3 {
    padding: 0.5em;
    margin: 0;
}

.team__p {
    font-style: italic;
    padding: 0.05em;
}

.team__div:first-child {
    margin: 0.5em auto 3em;
}

.team__p-footer {
    text-align: center;
    padding: 1em;
}



@media screen and (min-width: 992px) {
    .hero {
        background-image: url('images/bg3.webp');
        min-height: 75vh;
    }

    .header {
        background-color: var(--HEADER-BG-COLOR);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .header__title-line {
        padding: 1.5em;
        display: inline-block;
    }
    
    .menu-button {
        display: none;
    }
    
    .close-menu-button {
        display: none;
    }
    
    .header__nav {
        display: inline-block;
        position: static;
    }
    
    .header:focus-within .header__nav {
        animation: none;
    } 
    
    
    .close-menu-button:focus+.header__nav {
        animation: none;
    }
     
    .header__ul {
        position: static;
        display: block;
        text-align: right;
    }
    
    .header__nav li {
        background-color: var(--HEADER-BG-COLOR);
        padding: 1.5rem;
        border-top: none;
        display: inline-block;
    }
    
    .header__nav a {
        display: block;
        text-align: center;
        width: 100%;
    }
    
    .header__nav a:hover, .header__nav a:focus {
        transform: none;
    } 

    li .call-to-action {
        background: linear-gradient(to right, #bb8d37, #c89b50, #ebb875);
        padding: 0.6rem 0.85rem;
    }

    /* || CONTACT FORM */
    .contact-main {
        min-height: 85vh;
    }

    .main__div {
        padding: 0.5em;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5em;
    }

    .main__section-form img {
        display: block;
        width: 30vw;
        height: auto;
        margin: 0 auto;
    }

    .main__section-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2em;
        align-items: center;
        justify-content: center;
    }

    .contact-main {
        display: grid;
        grid-template-columns: 1fr 1fr;
        justify-self: center;
        align-items: center;
        min-height: 90vh;
    }
    
    .contact__h1 {
        margin-top: 0;
        padding: 0;
        grid-column: 1 / 3;
        text-align: center;
        font-size: 2.5rem;
    }
    
    .contact__h1-p {
        grid-column: 1 / 3;
        text-align: center;
    }
    
    .contact-main article {
        margin: 0 auto 3em;
    }
    
    .contact-main img {
        display: block;
        width: min(40vh, 40vw);
        margin: auto;
    }

    /* || TEAM */

    .team__div {
        width: 25vw;
        padding: 2em 2em 1em;
        grid-column: span 2;
    }

    .team {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
        justify-content: center;
        align-items: center;
    
    }
    
    .team__div:first-child {
        grid-column: 1 / 7;
        margin: 1em auto 3em;
    }
    
    .team__div:nth-last-child(3) {
        grid-column: 1 / 4;
        margin: 3em auto;
    }

    .team__div:nth-last-child(2) {
        grid-column: 4 / 7;
        margin: 3em auto;
    }
    
    .team__p-footer {
        grid-column: 1 / 7;
        text-align: center;
        margin: 1em;
    }
}

.credits {
    min-height: 100vh;
    text-align: center;
}

.credits a {
    color: var(--BG-COLOR);
    text-decoration: underline;
}

@media screen and (max-height: 430px) and (min-width: 768px)  and (min-aspect-ratio: 7/4) {
    .hero {
        background-image: url('images/bg3.webp');
    }

    .header {
        background-color: var(--HEADER-BG-COLOR);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .header__title-line {
        padding: 1.5em;
        display: inline-block;
    }
    
    .menu-button {
        display: none;
    }
    
    .close-menu-button {
        display: none;
    }
    
    .header__nav {
        display: inline-block;
        position: static;
    }
    
    .header:focus-within .header__nav {
                animation: none;
    } 
    
    
    .close-menu-button:focus+.header__nav {
                animation: none;
    }
     
    .header__ul {
        position: static;
        display: block;
        text-align: right;
    }
    
    .header__nav li {
        background-color: var(--HEADER-BG-COLOR);
        padding: 1.5rem;
        border-top: none;
        display: inline-block;
    }
    
    .header__nav a {
        display: block;
        text-align: center;
        width: 100%;
    }
    
    .header__nav a:hover, .header__nav a:focus {
        transform: none;
    }

    li .call-to-action {
        background: linear-gradient(to right, #bb8d37, #c89b50, #ebb875);
        padding: 0.6rem 0.85rem;
    }

    /* || CONTACT FORM */
    .contact-main {
        min-height: 85vh;
    }

    .main__div {
        padding: 0.5em;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5em;
    }

    .main__section-form img {
        display: block;
        width: 30vw;
        height: auto;
        margin: 0 auto;
    }

    .main__section-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2em;
        align-items: center;
        justify-content: center;
    }

    .contact-main {
        display: grid;
        grid-template-columns: 1fr 1fr;
        justify-self: center;
        align-items: center;
        min-height: 90vh;
    }
    
    .contact__h1 {
        margin-top: 0;
        padding: 0;
        grid-column: 1 / 3;
        text-align: center;
        font-size: 2.5rem;
    }
    
    .contact__h1-p {
        grid-column: 1 / 3;
        text-align: center;
    }
    
    .contact-main article {
        margin: 0 auto 3em;
    }
    
    .contact-main img {
        display: block;
        width: min(40vh, 40vw);
        margin: auto;
    }

    /* || TEAM */

    .team__div {
        width: 25vw;
        padding: 2em 2em 1em;
    }

    .team {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        justify-content: center;
        align-items: center;
    
    }
    
    .team__div:first-child {
        grid-column: 1 / 4;
        margin: 1em auto 3em;
    }
    
    .team__div:nth-child(8) {
        grid-column: 1 / 4;
        margin: 3em auto;
    }
    
    .team__p-footer {
        grid-column: 1 / 4;
        text-align: center;
        margin: 1em;
    }
}