
:root{
    --red: #f9032f;
    --black: #000;
    --white: #fff;
    --blue:rgba(4, 4, 36, 0.741);
    --yellow: #e7b22bea;
}
*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family:'Federant', sans-serif;
    
    
}

.navbar{
    background: var(--blue) ;
    height: 60px;
    width: 100%;
    padding: 0.5rem calc((100vw - 1200px) / 2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position:relative;
    scroll-behavior: smooth;
    /* position: fixed; */
}
.navbar__logo {
    color: var(--white);
    text-decoration: none;
    padding-left: 2rem;
    font-size: 1.5rem;
}
.navbar__link{
    color: var(--white);
    text-decoration: none;
    padding: 0rem 1rem;
}
.navbar__link:hover{
    color: var(--yellow);
}
   /* HERO section */
   .hero{
    background: linear-gradient( rgba(4, 4, 36, 0.741) 0%, rgba(4, 4, 36, 0.741) 35%),url(./images/magnific_create-a-lawfirm-logo-in-_2948418787.png);
    height: 100vh;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    /* padding: 0.5rem calc((100vw - 1200px) / 2); */
    display: flex;
    justify-content: space-between;
    align-items: center;
    
}
.hero__content{
    color: var(--white);
    padding: 3rem 1rem;
    line-height: 1;
    margin-left: 50px;
}
.hero__content h1{
    font-size: clamp(2rem,5vw, 6rem);
    /* text-transform: uppercase; */
    margin-bottom: 0.5rem;
}
.hero__content p{
     font-size: clamp(1rem,4vw, 2.5rem);
    margin-bottom: 3rem;
}
.hero__content p:hover{
     /* font-size: clamp(3rem,6vw, 3.5rem); */
    /* margin-bottom: 3rem; */
    color: var(--yellow);
   
}
.button{
    padding: 1rem;
    border: none;
    background: var(--blue);
    color: var(--white);
    cursor: pointer;
    outline: none;
    transition: 0.3s ease;
    text-decoration: none;
    border-radius: 10px;
}
.button:hover{
    background: var(--yellow);
}

/* SERVICES */
.membership{
    background:linear-gradient( rgba(4, 4, 36, 0.741) 0%, rgba(4, 4, 36, 0.741) 20%),url(./images/lawcourt.png);
    color:var(--white);
    padding: 6rem calc((100vw - 1100px) / 2);
    text-align: center;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

}

.membership__img1{
    background:linear-gradient( rgba(4, 4, 36, 0.741) 0%, rgba(4, 4, 36, 0.741) 35%), url(images/criminal.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 60px;
    border-radius: 10px;
    

}
.membership__img2{
    background:linear-gradient( rgba(4, 4, 36, 0.741) 0%, rgba(4, 4, 36, 0.741) 35%), url(images/estate.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 60px;
    border-radius: 10px;
    

}
.membership__img3{
    background:linear-gradient( rgba(4, 4, 36, 0.741) 0%, rgba(4, 4, 36, 0.741) 35%), url(images/insurance.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 60px;
    border-radius: 10px;
    

}
.membership h1{
    margin-bottom: 1rem;
    font-size: clamp(2rem, 5vw, 3rem);
    padding: 0 1rem;
}
.membership__desc{
    margin-bottom: 3rem;
    font-size: clamp(1rem, 3vw, 1.5rem);
    padding: 1rem;
}
.membership__wrapper{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem;
}
.membership__card{
    padding: 2rem;
    min-height: 450px;
    width: 325px;
    
    color: var(--yellow);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content:space-between;

}
.membership__perks{
    min-height: 150px;
}
.membership__card p{
    margin-bottom: 1rem;
}
.card-icon{
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--red);
}
.membership__card h3{
    font-size: clamp(1rem, 5vw, 2rem);
    margin-bottom:2rem;
}

/* SCHEDULE */
#portfolio{
    padding: 50px 0;
    background: var(--blue);
}
.Work-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
    margin-left: 10px;
    margin-right: 10px;
}
.work{
    position: relative;
    border-radius:10px;
    overflow: hidden;
}
.work img{
    width: 100%;
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
}
.layer{
    width: 100%;
    /* height: 100%; */
    height: 0;
    background: linear-gradient( rgba(4, 4, 36, 0.741) 0%, rgba(4, 4, 36, 0.741) 20%);
    border-radius:10px;
    position: absolute; 
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    bottom:0; 
    overflow: hidden;
    padding: 0 40px;
    text-align: center;
    font-size: 14px;
    transition: height 0.5s;
    color:var(--white);
}
.layer h3{
    font-weight: 500;
    margin-bottom: 20px;
}
.layer a{
    margin-top: 20px;
    color: #ff004f;
    text-decoration: none;
    font-size: 18px;
    line-height: 60px;
    background: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
}
.work:hover img{
    transform: scale(1.1);
}
.work:hover .layer{
    height: 100%;
}

/* form section */
.email{
     background:linear-gradient( rgba(4, 4, 36, 0.741) 0%, rgba(4, 4, 36, 0.741) 20%), url(images/low-angle-shot-tall-business-building-nyc.jpg) no-repeat center;
     background-size: cover;
     height: 450px;
     width: 100%;
     padding: 5rem calc((100vw - 1300px) / 2);
     color: var(--white);
     display: flex;
     justify-content: center;
     align-items: center;
}
.email__content{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.email__content h1{
    text-align: center;
    margin-bottom: 1rem;
    font-size: clamp(1rem, 5vw, 3rem);
    padding: 0 1rem;

}
.email__content p{
    text-align: center;
    font-size:clamp(1rem, 2.5vw, 1.5rem);
    padding: 0 1rem;
    margin-bottom: 2rem;
}
form{
    z-index: 10;
}
.form__wrap input{
    padding: 1rem 1.5rem;
    outline: none;
    width: 350px;
    height: 50px;
    border: none;
    margin-right: 1rem;
    border-radius: 4px;
}

/* FOOTER */
.footer{
    /* padding:5rem calc((100vw - 1100px) / 2); */
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    color: var(--white);
    background: linear-gradient( rgba(4, 4, 36, 0.741) 0%, rgba(4, 4, 36, 0.741) 35%), url(images/estate.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.footer__desc{
    padding: 0 2rem;
}
.footer__desc h1{
    margin-bottom: 2rem;
    color: var(--yellow);
    font-size: 1.5rem;
}
.footer__desc a{
    text-decoration: none;
    color: var(--white);
}
/* .footer__desc p{
    margin-bottom: 1rem;
} */
#phone{
    font-weight: bold;
    font-size: 1.2rem;
}
.footer__wrapper{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}
.footer__links{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 2rem;
}
.footer__title{
    font-size: 10px;
    margin-bottom: 16px;
    text-transform: uppercase;
}
.footer__link{
    text-decoration: none;
    color: rgb(242, 242, 242);
    font-size: 14px;
    margin-bottom: 0.5rem;
    transition: 0.3s ease-in-out;
}
.footer__link:hover{
    color:var(--yellow);
}

@media screen and (max-width:820px) {
    .footer__wrapper{
        grid-template-columns: 1fr;
    }
}
@media screen and (maxx-width:400px) {
    .footer__desc{
        padding: 1rem;
    }
    .footer__links {
        padding: 1rem;
    }
}
/* Copyright */
.copyright{

width: 100%;
text-align: center;
padding: 10px 0;
/* background: #262626; */
font-weight: 200;
margin-top: 5px;
margin-left: 200px;


}
.copyright span{
color: var(--yellow);
}

/* Team or About us section */
.team{
    padding: brem calc((100vw - 1100px) / 2);
}
.team__wrapper{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat((auto, 350px));
    margin-top: 40px;
}
.team__card{
    margin: 1rem;
    border-radius: 10px;
    position: relative;
  
    
 
    
}
.team__text{
    
    color: var(--yellow);
}
.team__text h1{
    margin-bottom: 1rem;
    font-size: 3rem;
}
.team__desc{
    font-size: 20px;
    
}
.team__card p{  
    position: absolute;
    bottom: 30px;
    color: var(--white);
    left: 25px;
  
}
.team__img{
    width: 100%;
    height: 100%;
    border-radius: 10px;
}
.team__text:nth-child(1) {
    grid-row: 1/3;
    grid-column: 2 /3;
}
.team__text:nth-child(2){
    grid-row: 5/6;
    grid-column: 1/2;
}
.team__card:nth-child(3){
    grid-row: 1/3;
    grid-column: 1/2;
}
.team__card:nth-child(4) {
    grid-row: 2/4;
    grid-column: 2/3;
}
.team__card:nth-child(5){
    grid-row: 3/5;
    grid-column: 1/2;
}
.team__card:nth-child(6){
    grid-row: 4/6;
    grid-column: 2/3;
}
@media screen and (max-width: 768px){
    .team__wrapper{
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
.team__text:nth-child(1) {
    grid-row: 1/2;
    grid-column: 1 /2;
}
.team__text:nth-child(2){
    grid-row: 6/7;
    grid-column: 1/2;
}
.team__card:nth-child(3){
    grid-row: 3/4;
    grid-column: 1/2;
}
.team__card:nth-child(4) {
    grid-row: 4/5;
    grid-column: 1/2 ;
}
.team__card:nth-child(5){
    grid-row: 5/6;
    grid-column: 1/2;
}
.team__card:nth-child(6){
    grid-row: 2/3;
    grid-column: 1/2;
}
.copyright{
        margin: auto;
        text-align: center;
         
     }
}

/* navbar media queries */
/* FOR MEDIA SCREEN*/
@media screen and (max-width: 768px){
    body.active{
        overflow: hidden;
    }
    .navbar__link{
        display: flex;
        justify-content: center;
        align-items: center;

    }
    .navbar__menu {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4,100px);
        position: absolute;
        width: 100%;
        top: -1000px;

    }
    .navbar__menu.active{
        top: 100%;
        opacity: 1;
        z-index: 99;
        height: 100vh;
        font-size: 1.5rem;
        background: var(--black);
    }
    .navbar__toggle .bar {
        width: 25px;
        height: 3px;
        margin: 5px auto;
        transition: all 0.3s ease-in-out;
        background: var(--white);
        display: block;
        cursor: pointer;
         
    }
    #mobile-menu {
        position: absolute;
        top: 15%;
        right: 5%;
        transform: translate(5%, 20%);
    }
    #mobile-menu.is-active .bar:nth-child(2) {
        opacity: 0;
    }
    #mobile-menu.is-active .bar:nth-child(1){
        transform: translateY(8px) rotate(45deg);
    }
    #mobile-menu.is-active .bar:nth-child(3){
        transform: translateY(-8px) rotate(-45deg);
    }
}
@media screen and (max-width:700px) {
 .membership__wrapper{
    flex-direction: column;
    align-items: center;
 }  
 .membership__card{
    width: 90%;
    margin-bottom: 2rem;
 }  
}
