* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

html, body {
    height: 100vh;
    font-family: 'Sen', sans-serif;
}

.container {
    max-width: 1240px;
    padding: 0 15px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    position: fixed;
    z-index: 10;
    top: 0;
    left: 0;
    right: 0;
    justify-content: space-between;
    align-items: center;
    display: flex;
    background-color: rgb(255, 255, 255);
    font-family: 'Sen', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 15px 0 15px;
    height: 60px;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
}

.logo {
    float: left;
    color: rgb(24, 24, 24);
    font-weight: 600;
    margin-left: 30px;
}

nav {
    float: right;
}

.nav-links {  
    display: flex;
}

.nav-links li {
    margin-right: 70px;
}

.nav-links a{
    color: rgb(24, 24, 24);
    font-size: 17px;
    transition: all ease 250ms;
}

.nav-links a:hover {
    color: rgb(0, 48, 61);
}

.nav-links a::before {
    content: " ";
    display: block;
    height: 5px;
    bottom: -24px;
    width: 0%;
    position: relative; 
    background-color: rgb(0, 92, 117); 
    transition: all ease-in-out 0.25s;
}

.nav-links a:hover::before {
    width: 95%;
}

.dropdown {
    display: none;
    cursor: pointer;
}

.dropdown div{
    width: 25px;
    height: 3px;
    background-color: rgb(41, 41, 41); 
    margin: 5px 40px 0 30px;
    border-radius: 5px;
}

.intro {
    display: flex; 
    height: 100vh;
    width: 100%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.562);
}

.intro-info {
    background-color: rgb(0, 92, 117);
    min-height: 100vh;
    width: 45vw;
    display: flex;
    flex-direction: column;

    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
    align-items: center;
    justify-content: center;
    color: rgb(255, 255, 255);
    z-index: 5;
    padding: 20px;
}


.intro-img {
    background-image: url("images/intro.jpeg");
    background-size: cover;
    background-position: center;
    height: 100vh;
    width: 65vw;
    position: absolute;
    right: 0;
    overflow: hidden;
    background-repeat: no-repeat;
}

.intro-text {
    align-items: center;
    text-align: center;
    font-size: 22px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.opening-hrs {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 7px 0;
    border-style: solid;
    padding: 10px 15px;
    border-radius: 5px;
    border-color: rgb(255, 255, 255);
}


.about-us {
    display: flex; 
}

.intro-btns, .contacts-btns {
    display: flex;
    flex-direction: column;
    gap: 15px;

}

.intro-btns a {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    border: 2px solid rgb(255, 255, 255);
    border-radius: 25px;
    color: rgb(255, 255, 255);
}

.intro-title p {
    margin-bottom: 10px;
    font-size: 24px;
}

.intro-btns img {
    height: 28px;
    filter: invert(100%);
}

.intro-btns a:hover {
    transform: scale(1.03);
    transition: all ease-in-out 0.3s;
    color: #14545f;
    border-color: rgb(255, 255, 255);
    background-color: rgb(255, 255, 255);
}

.intro-btns a:hover img {
    filter: invert(16%) sepia(12%) saturate(3776%) hue-rotate(149deg) brightness(95%) contrast(91%);
    transition: 0.5s ease;
}

.about-title, .services-title {
    font-size: 26px;
    margin-bottom: 20px;
}

.about-img {
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    object-fit: cover;
    flex: 1;
    overflow: hidden;
}

.about-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 40px 0;
    max-width: 1240px;
}

.about-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.about-card {
  display: flex;
  flex: 1;
  background: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  border-radius: 8px;
  overflow: hidden;
  height: 480px;
}

.about-info {
  flex: 1.04;
  background-color: rgb(63, 155, 180);
  color: white;
  padding: 30px 20px;
  box-shadow: 0 10px 0 0 rgba(0,0,0,0.15);
  z-index: 5;
  text-align: justify;
}


.about-name {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 8px;
}

.about-info p {
  margin-bottom: 15px;
}


.services-container {
    max-width: 1240px;
    margin: 40px;
    color: rgb(49, 49, 49);
}

.services-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 30px;
    margin: 0 auto;
    text-align: justify;
}

.services-card {
    display: flex;
    align-items: center;
    border: 2px solid rgb(105, 105, 105);
    border-radius: 8px;
    padding: 20px;
    position: relative;
    min-height: 80px;
}

.services-card-title {
    position: absolute;
    top: -12px;
    left: 20px;
    background: white;
    padding: 0 10px;
    font-weight: bold;
}

.services-card:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: 50%;
}

.contacts-container {
    max-width: 1240px;
    margin: 40px auto;
    display: flex;
    gap: 150px;
    align-items: flex-start;
}

.contacts-text {
    flex: 1;
}


.contacts-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
}

.contacts-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgb(24, 24, 24);
    text-decoration: none;
    font-size: 18px;
}

.contacts-links a:hover {
    text-decoration: underline;
}

.contacts-links img {
    height: 22px;
}

.contacts-opening-hrs p {
    margin: 5px 0;
}

.indent {
    margin-left: 20px;
}

.contacts-map {
    border-radius: 8px;
    width: 50%;
    height: 400;
}


footer {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    padding: 10px;
    background-color: rgb(0, 92, 117);
    gap: 20px;
}


.footer-copyright {
  text-align: center;
  color: rgb(216, 216, 216);
  font-size: 16px;
}

footer img {
    width: 50px;
    filter: invert(100);
}

@media screen and (max-width: 1240px) {

    .intro-text {
        font-size: 20px;
    }
}

@media screen and (max-width: 1070px) {
    .intro-text {
        font-size: 17px;
    }

    .about-cards {
        flex-direction: column;
    }

    .about-card {
        height: 250px;
    }

    .about-info {
        flex: 2.5;
    }

    .contacts-container {
        gap: 50px;
    }

    .contacts-map {
        width: 300;
        height: 400;
    }

    .intro {
        flex-direction: column-reverse;
        position: relative; 
        height: auto;
    }

    .intro-info {
        width: 100vw;
        min-height: 40vh;
        clip-path: none;
    }

    .intro-img {
        width: 100vw;
        height: 60vh;
        overflow: unset;
        position: relative; 
        background-position: center -120px;
    }

    .intro-text {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .intro-title {
        flex: 1 1 100%;
        text-align: center;
    }
}

@media screen and (max-width: 900px) {
    .intro-img {
        background-position: center -75px;
    }
}

@media screen and (max-width: 768px){

    body {
        overflow-x: hidden;
    }

    .nav-links{
        font-weight: 600;
        position: absolute;
        right: 0;
        top: 54px;
        background-color: rgb(255, 255, 255);
        display: flex;
        flex-direction: column;
        width: 100%;
        transform: translateX(100%);
        transition: ease-in 0.5s;
    }

    .nav-links li {
        margin: 30px auto;
    }

    .nav-links a::before {
        display: none;
    }

    .dropdown {
        display: block;
    }


    .logo-container {
        width: 100%;
    }

    .links-sec {
        width: 100%;
        justify-content: center;
    }

    .contacts-container {
        flex-direction: column;
        padding: 40px;
        margin: 0 auto;
    }

    .contacts-map {
        width: 100%;
    }

    .services-cards {
        grid-template-columns: repeat(1, 1fr);
    }

    .services-card:last-child {
        width: 100%;
    }

    .intro-text {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 25px;
    }

    .intro-info {
        min-height: 55vh;
    }

    .intro-img {
        height: 45vh;
        background-position: top;
    }

    .intro-title {
        flex: auto;
    }

    .about-card img {
        display: none;
    }

    footer img {
        width: 80px;
    }

    .intro-title p {
        margin-bottom: 10px;
        font-size: 22px;
    }

}

.nav-active {
    transform: translateX(0%);
}