/****************************************** WRAPPER ******************************************/
#wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    background-color: white;
    overflow: hidden
}

/****************************************** GENEARL USE CARD ******************************************/
.card{
    background-color: #C19A6B;
    color: #2f4f2f;
    padding: 20px;
    margin: 20px auto;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/****************************************** ELEMENTS ******************************************/
body{
    margin: 0;
    font-family: Roboto, sans-serif;
    box-sizing: border-box; background-color: #C19A6B;
    justify-self: center;
}

p{
    color: #2f4f2f;
    text-align: center;
}

h1{
    text-align: center;
    color: #2f4f2f;
    font-size: 36px;
    
}

h2{
    text-align: center;
    color:#2f4f2f;
    margin-top: 5px;
    font-weight: normal;
    font-size: 18px;
}

h3{
    color: #2f4f2f;
    margin-top: 15px;
    font-size: 20px;
}

h4{
    color: #2f4f2f;
    margin-top: 15px;
    font-size: 22px;
    text-align: center;
}

section{
    margin-bottom: 10px;
}

footer{
    text-align: center;
    padding: 20px;
    color: #2f4f2f;
    margin-bottom: 10px;
}

/****************************************** Banner ******************************************/
.navbar{
    display: flex;
    justify-content: space-between;
    border-radius: 8px;
    background-color: white;
    padding: 15px 40px;
    max-width: 1300px;
    margin: 20px auto;

} 

.logo{
    color: #2f4f2f;
    font-size: 18px;
    font-weight: bold;
    background-color: white;
    margin-right: 60px;   
    
}

/****************************************** NAV ******************************************/
.nav-links{
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
    margin-left: auto;
}

.nav-links a{
    color: #2f4f2f;
    font-weight: bold;
    text-decoration: none;
    font-size: 18px;
}

.nav-links a:hover{
    text-decoration: underline;
    color: #5c7b44;
}

/****************************************** Service Card ******************************************/
.services-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.service-card{
    color: #2f4f2f;
    background-color: #C19A6B;
    flex: 0 0 300px;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
    
    text-align: center;
}

.service-list{
    max-width: 600px;
    margin: 20px auto;
    padding-left: 20px;
    font-size: 18px;
    line-height: 1.7;
}

.service-list li{
    margin-bottom: 8px;
}

/****************************************** Location Card ******************************************/
.location-grid{
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.location-card{
    color: #2f4f2f;
    background-color: #C19A6B;
    width: 800px;
    max-width: 100%;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
}

/****************************************** CONTACT CARD ******************************************/
.contact-grid{
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
    
}

.contact-card{
    color: #2f4f2f;
    background-color: #C19A6B;
    width: 800px;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: -40px;
    margin-top: 15px;
}

/****************************************** FORM FORMAT******************************************/

form input,
form textarea{
width: 100%;
max-width: 500px;
padding: 8px;
margin-top: 5px;
border-radius: 4px;
border: 1px solid #ccc;
}

button{
background-color:#C19A6B;
color:#2f4f2f;
padding:10px 15px;
border:none;
border-radius:6px;
cursor:pointer;
}

/****************************************** LIST FORMAT ******************************************/
main ul{
    color: #2f4f2f;
    text-align: center;
    max-width: 500px;
    margin: 20px auto;
    font-size: 18px;
    list-style-type: none;
}

/****************************************** MEDIUM SCREENS ******************************************/
@media (max-width: 900px){

.services-grid{
    grid-template-columns: repeat(2, 1fr);
}

.location-card,
.contact-card{
    width: 100%;
}

.navbar{
    flex-direction: column;
    gap: 10px;
}

}

/****************************************** SMALL SCREENS ******************************************/
@media (max-width: 600px){

.services-grid{
    grid-template-columns: 1fr;
}

.nav-links{
    flex-direction: column;
    gap: 10px;
}

.logo{
    text-align: center;
}
}
/****************************************** Image Scaling ******************************************/

main img{
    max-width: 800px;
    width: 100%;
    max-height: 500px;
    height: auto;
    margin-top: 20px;
}