@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

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

:root {
    --primary-color: #fcf5e9;
    --dark-color: #333;
    --container-wide: 1400px;
    --container-normal: 1100px;
    --container-narrow: 900px;
}

body {
    font-family: 'open sans', 'sans-sarif';
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #333;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}


/* ----------------------------------------------Utility Classes---------------------------------- */

.section-heading {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 40px;
}

.bg-primary {
    background-color: var(--primary-color);
    color: var(--dark-color);
}

.bg-dark {
    background-color: var(--dark-color);
    color: #fff;
}

.bg-dark .bg-primary {
    padding: 0 0.3rem;
}

.visually-hidden {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }

  .btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: 1px solid #333;
    background: transparent;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
  }

  .btn:hover {
    background: #333;
    color: #fff;
  }


/* --------------------------------------Container-------------------------------------- */

.container {
    max-width: var(--container-normal);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-lg {
    max-width: var(--container-wide);
}

.container-sm {
    max-width: var(--container-narrow);
}

/* ---------------------------------Header-------------------------------------------- */

.header {
    margin: 1.5rem auto;
}

.header .logo {
    width: 130px;
}

.header .nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .main-menu {
    display: flex;
    gap: 1rem;
}

.header .main-menu a {
    padding: 0.5rem 1rem;
}

.header .main-menu a:hover {
    background-color: var(--primary-color);
}

.current {
    background-color: var(--primary-color);
    font-weight: 600;
}


/* ----------------------------------------Hero Section---------------------------------- */

.hero {
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero h2 {
    font-size: 3rem;
    line-height: 1.4;
    font-weight: normal;
}


/* ------------------------------------Gallery--------------------------------------- */


.gallery-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.gallery-item {
    width: calc(33.333% - 20px);
    border-radius: 10px;
}

.gallery-item img {
    border-radius: 10px;
}

.gallery-item img:hover {
    opacity: 0.9;
}


/* -----------------------------------Footer--------------------------------------------- */

.footer {
    border-top: 1px solid #aaa;
    padding: 2rem 1.5rem;
    margin-top: 2rem;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer img {
    width: 120px;
    height: 35px;
}

.footer h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.footer a {
    margin: 0.2rem;
}


/* ------------------------------------------Services----------------------------------- */


.services {
    padding: 3rem 0 4rem;
}

.services-flex {
    display: flex;
    gap: 2rem;
}

.services-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
}


/* -------------------------------------------Team---------------------------------- */

.team {
    padding: 3rem 0 4rem;
}

.team-flex {
    display: flex;
    gap: 1.4rem;
}

.team img {
    border-radius: 10px;
}


/* ---------------------------------------------Contact------------------------------- */

.contact {
    padding: 3rem 0 4rem;
}

.contact p {
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    margin: 2rem 0;
}

.contact input,
.contact textarea {
    border: none;
    border-bottom: 1px solid #333;
    width: 100%;
    font-family: inherit;
    font-size: inherit;
    padding-bottom: 1rem;
}

.contact input:focus,
.contact textarea:focus {
    outline: none;
}

.contact textarea {
    height: 200px;
    resize: none;
}

.contact .btn {
    width: 100%;
}


/* ----------------------------------------Media Queries------------------------------- */

@media (max-width: 768px) {
    .header .nav-flex, .footer .footer-flex, .services .services-flex, .team .team-flex {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero {
        height: 300px;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .gallery-item {
    width: calc(50% - 20px);
    }

    .footer .footer-flex{
        text-align: center;
    }
}