@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/*VARIABLES*/
:root {
    --black: #201F26;
    --blue-dark: #27418D;
    --blue-med: #4466A6;
    --blue-lite: #5F88C0;
    --off-blue: #D9E1EC;
    --off-white: #F8F8F8;
    --slate: #555269;
    --grey: #D7D6DB;

    --heading-font: 'Inter Tight', sans-serif;
    --heading-weight: 700;
    --heading-line-height: 100%;
    --heading-style: italic;

    --body-font: 'Roboto', sans-serif;
    --body-weight: normal;
    --body-line-height: 150%;
}

/*RESET*/
* {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
	text-decoration: none;
	outline: inherit;
    -webkit-transition: all .2s ease;
            transition: all .2s ease;
}
*:hover {
    -webkit-transition: all .2s ease;
            transition: all .2s ease;
}

::-webkit-scrollbar {
    width:10px;
} 
::-webkit-scrollbar-track {
    background: var(--grey);
} 
::-webkit-scrollbar-thumb {
	background: var(--blue-lite);
}

html {
    scrollbar-gutter: stable;
    color-scheme: light;
}

body {
    width: 100%;
    height: 100vh;
    position: relative;
    background: var(--off-white);
    color: var(--slate);
    overflow-x: hidden;
}


/*FONTS*/
p,
li {
    font-family: var(--body-font);
    font-weight: var(--body-weight);
    line-height: var(--body-line-height);
    font-size: 18px;
    margin: 20px 0 0;
}

ul li {
    display: inline-block;
}

h1,
h2,
h3,
h4 {
    font-family: var(--heading-font);
    font-weight: var(--heading-weight);
    line-height: var(--heading-line-height);
    font-style: var(--heading-style);
    color: var(--black);
}
h1 {
    font-size: 64px;
}
h2 {
    font-size: 48px;
}
h3 {
    font-size: 36px;
}
h4 {
    font-size: 24px;
}


/*CONTAINERS*/
section,
.section {
    width: 96%;
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
}

header {
    width: 100%;
    padding: 0;
    background: var(--off-white);
    border-bottom: 1px solid var(--off-blue);
    position: fixed;
    top: 0;
    z-index: 1000;
}
header .section {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}
nav {
    text-align: right;
    width: 75%;
}
nav ul {
    padding: .5% 0;
}
nav ul li {
    margin: 0 0 0 2%;
}
nav ul li a {
    font-weight: 600;
    color: var(--slate);
}
nav ul li a:hover,
nav ul li a:focus {
    color: var(--black);
}


main {
}

.container {
    background: var(--off-white);
    width: 100%;
    padding: 5% 0;
    position: relative;
    border-bottom: 1px solid var(--off-blue);
    box-shadow: 0 -100px 100px 0 rgba(32, 31, 38, 0.10);
    overflow: hidden;
}

.col-3 {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    margin: 20px auto;
}
.col-3 .card {
    width: calc(33.33% - 15px);
    border: 1px solid var(--off-blue);
    border-radius: 10px;
    overflow: hidden;
}
.col-3 .card .content {
    padding: 20px;
    position: relative;
}
.col-3 .card .content .button {
    margin-top: 20px;
}
.col-3 .card .content .button-small {
    position: absolute;
    top: 20px;
    right: 20px;
}
.col-3 .card:hover .button-small {
    background: var(--blue-dark);
    border: 1px solid var(--blue-dark);
}

#suppliers {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
}
#suppliers img {
    border-radius: 10px;
    border: 1px solid var(--off-blue);
}

#gallery {
    padding: 20px 0 0;
}
#gallery .item {
    overflow: hidden;
    width: calc(100% - 10px);
}
#gallery .item img {
    border-radius: 10px;
}

#reviews {
    padding-top: 100px;
}

#about {
    padding: 0;
}
#about .section {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
}
#about .section .content {
    width: 66.66%;
    padding: 5% 0;
}
#about .section .img {
    width: 33.33%;
    height: 100%;
    padding-top: 5%;
    position: relative;
}
#about .section .img img {
    margin-bottom: -5px;
}
#about .lines {
    width: 25%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;

    .line-db,
    .line-mb,
    .line-lb {
        width: 100%;
        height: 33.33%;
    }
    .line-db {
        background: var(--blue-dark);
    }
    .line-mb {
        background: var(--blue-med);
    }
    .line-lb {
        background: var(--blue-lite);
    }
}

#contact .section {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}
#contact .section .form {
    width: calc(66.66% - 10px);
}
#contact .section .info {
    width: calc(33.33% - 10px);
    border: 1px solid var(--off-blue);
    border-radius: 10px;
    padding: 20px;
    margin-top: 24px;

    .button {
        margin-top: 20px;
    }
}
#contact .section img {
    position: absolute;
    bottom: -40%;
    right: 0;
}

footer {
    width: 100%;
    background: var(--off-blue);
    padding: 20px 0;
    position: relative;
}
footer ul {
    position: relative;
    z-index: 500;
}
footer ul li {
    margin-right: 20px;
}
footer img {
    position: absolute;
    bottom: -100px;
    right: 0;
}

/*OBJECTS*/
img {
    max-width: 100%;
}

.hero-img,
.hero-img-mobile {
    position: sticky;
    top: 0;
    margin-top: 5%;
    z-index: -1;
}
.hero-img-mobile {
    display: none;
}

.logo {
    background: var(--grey);
    padding: 1%;
    display: inline-block;
}
.logo img {
    width: 220px;
}


/*LINKS*/
a:link,
a:hover,
a:visited,
a:active {
	text-decoration: none;
    cursor: pointer;
}

.button {
    font-family: var(--body-font);
    display: inline-block;
    font-size: 20px;
    font-weight: 600;
    color: var(--blue-med);
    padding: 12px 20px;
    border: 1px solid var(--blue-lite);
    border-radius: 10px;
}
.button:hover,
.button:focus {
    background: var(--blue-dark);
    border: 1px solid var(--blue-dark);
    color: var(--off-white);
}

.button-small {
    padding: 5px 15px;
    border: 1px solid var(--blue-lite);
    border-radius: 20px;
}
.button-small:hover,
.button-small:focus {
    padding: 5px 20px;
}

#phone {
    background: url(../images/icons/phone.svg) no-repeat 10px 12px;
    background-size: 25px 25px;
    padding-left: 40px;
}
#email {
    background: url(../images/icons/email.svg) no-repeat 10px 12px;
    background-size: 25px 25px;
    padding-left: 40px;
}
#phone:hover,
#email:hover {
    background-color: var(--blue-dark);
}


/*MODIFIERS*/
.left {
    text-align: left;
}
.right {
	text-align: right;
}
.center {
	text-align: center;
}
.justify {
	text-align: justify;
}

.mw-960 {
    max-width: 960px;
}


/*MODAL*/
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    transition: background 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    z-index: 1000;
    overflow-y: auto;
}

.modal.active {
    pointer-events: auto;
    opacity: 1;
    background: rgba(0, 0, 0, 0.5);
}

.modal.closing {
    opacity: 0;
    background: rgba(0, 0, 0, 0);
}

.modal-content {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--off-white);
    box-shadow: -2px 0 20px rgba(0,0,0,.1);
    border-left: 1px solid var(--off-blue);
    border-bottom: 1px solid var(--off-blue);
    border-bottom-left-radius: 10px;
    padding: 50px;
    max-width: 450px;
    width: 100vw;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s ease;
}

.modal.active .modal-content {
    opacity: 1;
    transform: translateX(0);
}

.modal.closing .modal-content {
    opacity: 0;
    transform: translateX(100px);
}
.modal-content h4,
.modal-content .button {
    margin-top: 20px;
}
.close-modal-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 36px;
    color: var(--slate);
    cursor: pointer;
    background: transparent;
    border: none;
    outline: none;
    -webkit-appearance: none;
}
.link-modal-btn {
    color: var(--slate);
    cursor: pointer;
    background: transparent;
    border: none;
    outline: none;
    -webkit-appearance: none;
}
.open-modal-btn {
    cursor: pointer;
}


/*ANIMATIONS*/
@keyframes animatetop {
    from {
        bottom: -200px;
        opacity: 0;
    }
    to {
        bottom: 0;
        opacity: 1;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .container {
        filter: brightness(.8);
        animation: fade-in linear forwards;
        animation-timeline: view();
        animation-range: entry;
    }
    @keyframes fade-in {
        to { filter: brightness(1); }
    }
}


/*MEDIA QUERIES*/
@media (max-width: 1200px) {
    .col-3 .card {
        width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 20px;
    }
    .col-3 .card > img {
        width: 50%;
        height: 100%;
        object-fit: cover;
    }
    .col-3 .card .content {
        width: 50%;
    }

    #contact .section .form,
    #contact .section .info {
        width: calc(50% - 10px);
    }
}

@media (max-width: 1024px) {
    nav {
        width: 60%;
    }
    nav ul.top-row li:first-child {
        display: none;
    }
}

@media (max-width: 960px) {
    #suppliers {
        gap: 10px;
    }
    #suppliers h3 {
        width: 100%;
    }

    #about {
        padding: 0;
    }
    #about .section {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-end;
    }
    #about .section .content {
        width: 100%;
        padding: 5% 0 0;
    }
    #about .section .img {
        width: 50%;
        padding-top: 0;
        margin-left: 50%;
    }
    #about .lines {
        width: 100%;
        height: 30%;
        position: absolute;
        top: auto;
        bottom: 0;
    }
}

@media (max-width: 768px) {
    img {
        scale: 1;
        opacity: 1;
    }

    p,
    li {
        font-size: 16px;
    }

    h1 {
        font-size: 48px;
    }
    h2 {
        font-size: 36px;
    }
    h3 {
        font-size: 24px;
    }
    h4 {
        font-size: 20px;
    }

    .button {
        font-size: 18px;
    }

    .hero-img {
        display: none;
    }
    .hero-img-mobile {
        display: block;
    }

    .logo {
        background: none;
        padding: 1%;
    }
    .logo img {
        width: 200px;
    }

    nav {
        width: 40%;
    }
    nav ul.top-row,
    nav ul.bottom-row li {
        display: none;
    }
    nav ul.bottom-row li:last-child {
        display: inline-block;
        font-size: 18px;
        font-weight: 600;
        color: var(--blue-med);
        padding: 12px 20px;
        border: 1px solid var(--blue-lite);
        border-radius: 10px;
    }
    nav ul.bottom-row li:last-child:hover,
    nav ul.bottom-row li:last-child:focus {
        background: var(--blue-dark);
        border: 1px solid var(--blue-dark);
        color: var(--off-white);
    }

    .col-3 .card {
        width: 100%;
        display: block;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        margin-bottom: 20px;
    }
    .col-3 .card > img {
        width: 100%;
        height: auto;
    }
    .col-3 .card .content {
        width: 100%;
    }

    #contact .section .form,
    #contact .section .info {
        width: 100%;
    }
    #contact {
        padding-bottom: 30%;
    }

    footer img {
        width: 400px;
        bottom: 0;
        right: calc(50% - 200px);
    }
    footer ul {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 532px) {
    .logo img {
        width: 180px;
    }

    #about .section .img {
        width: 75%;
        margin-left: 25%;
    }
    #about .lines {
        height: 25%;
    }

    footer img {
        width: 300px;
        bottom: 5%;
    }
}

@media (max-width: 414px) {
    nav span {
        display: none;
    }

    #suppliers img {
        width: calc(50% - 10px);
    }
}