/* Color Palette */

:root {
    --primary-color: #FCFCFC;
    --off-white: #F9F9F9;
    --hover-color: #C0C0C0;
    --accent-color: #60C6DF;
    --shadow-color: #355F69;
    --text-color: #355F69;
}

.montserrat {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}

/* Overall Styling */

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

html {
    font-family: "Montserrat", sans-serif;
    color: var(--text-color);
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    background-color: var(--primary-color);
}

h1 {
    font-family: "Cormorant", serif;
    font-size: 2em;
}

h2 {
    font-family: "Cormorant", serif;
    font-size: 2.5em;
    font-weight: bold;
}

h3 {
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
}

.title {
    font-family: "Montserrat", sans-serif;
}

a.anchor {
    display: block;
    position: relative;
    top: -3.75em;
    visibility: hidden;
}

/* Navbar */

.skip-link{
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
}
.skip-link:focus{
    opacity: 1;
    pointer-events: auto;
    outline: 3px solid #ffffff;
}

#open-sidebar-button {
    display: none;
    background: none;
    border: none;
    padding: 1em;
    margin-right: auto;
    cursor: pointer;
    position: fixed;
    z-index: 10;
}

#close-sidebar-button {
    display: none;
    background: none;
    border: none;
    padding: 1em;
    cursor: pointer;
}

nav {
    background-color: var(--primary-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50000;
    border-bottom: 1px solid var(--hover-color);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

ul {
    list-style: none;
}

nav li{
    display: flex;
}

nav a {
    display: flex;
    text-decoration: none;
    font-family: "Montserrat", sans-serif;
    font-weight: bold;
    color: var(--text-color);
    padding: 1em 2em;
    transition: background-color 300ms ease;
}

nav a:hover{
    background-color: var(--hover-color);
}

nav a.active-link{
    border-bottom: 2px solid var(--text-color);
}

#overlay{
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    inset: 0;
    z-index: 9;
    display: none;
}

/* Home */

.shadow {
    -webkit-filter: drop-shadow( 3px 3px 2px rgba(0, 0, 0, .7));
    filter: drop-shadow( 3px 3px 2px rgba(0, 0, 0, .4));
}

#homeContainer {
    transition: opacity 0.5s ease;
}

.home-container {
    padding-top: 4em;
    height: 100vh;
    width: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: -100;
}

.home-svg {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    margin: auto;
    width: 60%;
}

@keyframes dash {
    to {
        stroke-dashoffset: 0;
    }
}

.home-header {
    font-family: "Montserrat";
    font-size: 2rem;
    width: 40%;
    word-wrap: break-word;
    margin: auto;
    animation: show_title 1s linear forwards;
    animation-fill-mode: initial;
    z-index: 1000;
}

@keyframes show_title {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Main Content */
.main-content {
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* About */

.mission-container {
    height: 60vh;
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 5em;
    align-content: center;
    text-align: center;
    gap: .5em;
}

.container {
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 5em;
    align-content: center;
    text-align: center;
    gap: .75em;
}

.row {
    width: auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    justify-content: space-evenly;
    gap: 1em;
    padding-top: 1em;
    padding-bottom: 1em;
    font-size: 1.5em;
}


[data-inviewport="fade-in"] {
    animation-name: image;
    animation-duration: 2s;
    animation-play-state: paused;
}
[data-inviewport="fade-in"].is-inViewport{
    animation-play-state: running;
}


@keyframes image {
    0%{
        opacity: 0;
        scale: .75;
    }
    100%{
        opacity: 100;
        scale: 1;
    }
}

/* Services */

.card{
    background: var(--off-white);
    border: 1px solid var(--shadow-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: .25em;
    width: 40%;
    height: 50vh;
}

.card:hover{
    transform: translateY(-.25em);
    transition: 0.3s ease;
}

.card-title{
    font-family: 'Cormorant', serif;
    font-size: 1.5em;
    font-weight: normal;
}

.card-list{
    text-align: left;

}

.services-list {
    font-size: 1.5em;
    display: flex;
    align-items: center;
    gap: .2em;
}

#map {
    height: 50vh;
    width: 90%;
    border: 0;
    margin: auto;
    display: flex;
    justify-content: center;
}

iframe{
    width: 75%;
    height: 500px;
    border: 0;
    margin: auto;
}

/* Contact */

.form-container{
    width: 60%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 5em;
    align-content: center;
    background: var(--off-white);
    border: 1px solid var(--shadow-color);
    border-radius: 10px;
    padding: 30px;
    text-align: left;
}

input{
    width: 100%;
    height: 2.5em;
    margin-bottom: 1em;
    padding: 1em;
}
textarea{
    width: 100%;
    margin-bottom: 1em;
}
.form{
    text-align: left;
    font-size: 1.25em;
}

.form-message{
    height: 200px;
    padding: 1em;
    width: 100%;
    resize: none;
}
.form-button{
    text-align: center;
    font-family: "Montserrat", sans-serif;
    background-color: var(--accent-color);
    width: 150px;
    height: 40px;
    outline: none;
    border: 1px solid var(--shadow-color);
    border-radius: 5px;
}

.form-button:hover{
    cursor: pointer;
    background-color: var(--hover-color);
}

/* Footer */

.footer-ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-li{
    display: flex;
}

.footer-a {
    display: flex;
    text-decoration: none;
    color: var(--text-color);
    padding: .25em .5em;
}


@media screen and (max-width: 1000px){
    #open-sidebar-button{
        display: block;
    }
    #close-sidebar-button{
        display: flex;
    }
    nav{
        position: fixed;
        top: 0;
        left: -100%;
        height: 100%;
        width: min(15em, 100%);
        z-index: 100;
        border-right: 1px solid var(--hover-color);
        transition: left 300ms ease-out;
    }
    nav.show{
        left: 0;

    }
    nav.show ~ #overlay{
        display: flex;
    }
    nav ul{
        flex-direction: column;
    }
    nav a{
        padding-right: 2.5em;
    }
    nav a.active-link{
        border-bottom: none;
    }
    .home-container {
        padding-top: 2em;
        margin-bottom: 10em;
        height: 80vh;
        width: auto;
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        position: sticky;
        top: 0;
        z-index: -100;
    }
    .home-header {
        font-family: "Montserrat";
        font-size: 1.5rem;
        width: auto;
        text-align: center;
        margin: none;
        padding: none;
    }
    .home-svg {
        stroke-dasharray: 2000;
        stroke-dashoffset: 2000;
        margin: none;
        padding: none;
        width: 80%;
    }
    .mission-container{
        height: 80vh;
    }
    .row {
        flex-direction: column;
    }
    .card{
        width: 80%;
        height: 100%;
    }
    .card-title{
        font-size: 1.25em;
    }

    .form-container{
        width: 80%;
    }
    .footer{
        height: 50vh;
        width: auto;
        padding: 50%;
        margin-bottom: 20vh;
    }

}