@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;700&display=swap");

/* Date: Octoberm 22, 2022 */

*,
::before,
::after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-size: 18px;
}

:root {
    --dark-clr: hsl(208, 69%, 23%);
    --icon-clr: hsl(207, 100%, 48%);
    --bkgrd-clr: hsl(0, 0%, 100%);
}
body {
    background: var(--bkgrd-clr);
    color: var(--dark-clr);
    min-height: 100vh;
    margin-inline: auto;
    font-family: "Quicksand", sans-serif;
    max-width: 1080px;
}

.flex {
    display: flex;
    gap: var(--gap, 1rem);
}

/* header stuff */
.primary-header {
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 5px 25px hsl(0 0% 0% / 0.05);
}
.dropdown {
    cursor: pointer;
}
.dropdown .dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bkgrd-clr);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}
.dropdown:hover .dropdown-content {
    display: flex;
    flex-direction: column;
}
.dropdown-content a {
    padding: 0.75rem 0.25rem 0 0.25rem;
}
.dropdown-content a:last-child {
    margin-bottom: 1rem;
}
.dropdown-content a:hover {
    text-decoration: underline;
}

.logo img {
    display: inline;
    width: clamp(250px, 30%, 400px);
    cursor: pointer;
}

.mobile-nav-toggle {
    display: none;
}
.primary-navigation {
    list-style: none;
    text-transform: uppercase;
    background: hsl(0 0% 100% / 0.2);
}
.primary-navigation li:hover {
    border-bottom: 1px solid var(--dark-clr);
}

.primary-navigation a,
.primary-navigation .dropdown,
.primary-navigation .dropdown .dropdown-content {
    text-decoration: none;
    color: var(--dark-clr);
    font-weight: 700;
}

@supports (backdrop-filter: blur(1em)) {
    .primary-navigation {
        backdrop-filter: blur(1em);
    }
}

.primary-navigation a {
    text-decoration: none;
    color: var(--dark-clr);
    font-weight: 600;
}
/* @media (min-width: 35rem) {
  .primary-navigation {
  padding-block: 1rem;
  padding-inline: clamp(3rem,5vw,10rem);
  }
} */
@media (max-width: 35em) {
    .primary-navigation {
        --gap: 3em;
        position: fixed;
        z-index: 1000;
        inset: 0 0 0 30%;
        flex-direction: column;
        padding: min(30vh, 10rem) 5em;
        transform: translateX(100%);
        transition: transform 500ms ease-in;
    }
    .primary-navigation .dropdown .dropdown-content {
        background: hsl(0 0% 100% / 0.3);
    }
    .primary-navigation[data-visible="true"] {
        transform: translateX(0%);
    }

    .logo a {
        width: clamp(100px, 20%, 3000px);
    }
    .mobile-nav-toggle {
        position: absolute;
        z-index: 9999;
        display: block;
        top: 0.25rem;
        right: 2rem;
        background: transparent;
        width: 40px;
        aspect-ratio: 1;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        overflow: hidden;
        outline: none;
        border: 0;
    }

    .mobile-nav-toggle span {
        position: absolute;
        width: 35px;
        height: 4px;
        background: var(--dark-clr);
        border-radius: 4px;
        left: 0;
        transition: 0.5s;
    }
    .mobile-nav-toggle span:nth-child(1) {
        transform: translateY(-10px);
        width: 20px;
    }
    .mobile-nav-toggle span:nth-child(2) {
        transform: translateY(10px);
        width: 10px;
    }
    .mobile-nav-toggle.active span:nth-child(1) {
        width: 40px;
        transform: translateY(0) rotate(45deg);
        transition-delay: 0.125s;
    }
    .mobile-nav-toggle.active span:nth-child(3) {
        width: 35px;
        transform: translateX(60px);
    }
    .mobile-nav-toggle.active span:nth-child(2) {
        width: 40px;
        transform: translateY(0) rotate(315deg);
        transition-delay: 0.25s;
    }
}
.main {
    --gap: 1em;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 1rem;
}
.main img {
    width: 400px;
    height: 600px;
    transition: 1s ease-in-out;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}
.main img:hover {
    transform: translateY(1rem) scale(1.5);
}

/* Contact Page  */

#main .phones {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(41ch, 1fr));
    grid-gap: 1rem;
    font-size: 1rem;
    font-weight: 700;
    padding-top: 2rem;
}

#main .phonenumber {
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
    border: 1px solid black;
    border-radius: 1rem;
    padding: 1rem;
    min-width: 40ch;
    margin-bottom: 0.625rem;
}

#main .phonenumber h4 {
    font-weight: 600;
    font-size: 1.3rem;
    padding-bottom: 0.5rem;
}
#main .phonenumber p {
    font-size: 0.9rem;
    text-align: justify;
}
#main .btn {
    /* background-color: #aad5e9; */
    /* border: 1px solid var(--dark-clr); */
    color: var(--dark-clr);
    margin-top: 10px;
    padding: 10px 30px;
    border-radius: 10px;
    display: inline-block;
    text-decoration: none;
    font-size: 1.5rem;
    transition: 0.5s ease-in-out;
}

#main .btn:hover {
    color: var(--bkgrd-clr);
    background: var(--dark-clr);
}
/* footers styles */

#footer {
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 0.5rem;
    box-shadow: 0px -5px 5px rgba(0, 0, 0, 0.1);
    margin-top: auto;
    /* background: var(--dark-clr); */
}

#footer .social {
    padding-top: 2.3rem;
}

#footer .social ul {
    justify-content: center;
    flex-direction: row;
}

#footer .social ul li {
    list-style: none;
    position: relative;

    justify-content: center;
    align-items: center;
}

#footer .social li a {
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex-wrap: wrap;
    text-align: center;
}

#footer .social ul li a .title {
    position: absolute;
    display: block;
    padding: 5px 10px;
    border: 1px solid var(--dark-clr);
    color: var(--dark-clr);
    height: auto;
    width: auto;
    transition: 0.5s;
    visibility: none;
    opacity: 0;
    font-size: 0.75rem;
    font-weight: 400;
    transform: translateY(-2.3rem);
    border-radius: 10px;
}

#footer .social ul li a .title::before {
    content: "";
    position: absolute;
    bottom: -8px;
    width: 10px;
    height: 10px;
    left: 42%;
    background: #fff;
    border-bottom: 1px solid var(--dark-clr);
    border-right: 1px solid var(--dark-clr);
    z-index: 10;
    transform: rotate(45deg);
    transition: transform 250ms ease-in-out;
}

#footer .social li a:hover .title {
    visibility: visible;
    opacity: 1;
}

#footer .social ul li a .icon {
    color: var(--icon-clr);
    font-size: 1.2rem;
    padding: 0 1rem;
}

#footer .social p {
    padding: 1rem;
    text-align: center;
    /* font-size: 0.75rem; */
    color: var(--dark-clr);
    font-weight: 800;
}
