:root{
    /* colors */
    --bg-color: rgba(249, 222, 237, 0.1);
    --header-link: #8c513e;
    --primary: #8c513e;
    --header-bg: #f9deed;
}
@media (min-width: 768px){
    html{
        font-size:17px;
    }
}

@media (min-width: 1200px){
    html{
        font-size:18px;
    }
}

@media (min-width: 1800px){
    html{
        font-size:20px;
    }
}

/* element-wise css */
*{
    font-family: Verdana, sans-serif, Serif;
    margin:0;
    padding:0;
    box-sizing: border-box;
}

body{
    background-color: var(--bg-color);
    /*padding: 0 2rem;*/
}
section{
    margin: 1.5rem 2.5rem;
}
ul{
    list-style: none;
    padding: 0;
    gap: 1rem;
}
form{
    width: 100%;
    padding:1.5rem;
}
[type='text'],[type='email'],textarea{
    width:100%;
    padding:0.5rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}
img{
    max-width: 100%;
    height: auto;
}
[type='submit']{
    background-color: var(--primary);
    padding:0.5rem 3rem;
    color:white;
    border: 1px solid var(--header-link);
    border-radius: 5px;
    font-size: 1rem;
}
label{
    width: 100%;
    text-align: start;
    margin-bottom: 0.5rem;
}

/* Common classes */
.flex-container{
    display:flex;
    align-items: center;
}
.flex-column{
    flex-direction: column;
    display:flex;
    align-items: center;
}
.justify-center{
    justify-content: center;
}
.grid-columns{
    display:grid;
    grid-template-columns: 1fr;
}
.grid-rows-2{
    display:grid;
    grid-template-rows: 1fr 1fr;
}
image{
    width: 100%;
}
.heading{
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}
.sub-heading{
    font-size:1.25rem;
    width: 100%;
    text-align: center;
}
a{
    text-decoration: none;
}
@media (min-width: 768px){
    .grid-columns{
        display:grid;
        grid-template-columns: 1fr 1fr;
    }
}

/* Header */
header *,header{
    background-color: var(--header-bg);
}
header{
    justify-content: space-between;
    padding: 1rem 2.5rem;
}
.company-logo{
    font-size: 1.5rem;
    font-weight: bold;
}
header a{
    color:var(--header-link);
}
nav a{
    font-weight: 600;
    font-size: 1rem;
}
nav{
    gap:1rem;
    flex-direction: column;
}
#home{
    flex-direction: column;
    gap: 0.5rem;
}
@media (min-width: 768px){
    #home, nav{
        flex-direction: row;
    }
    nav a{
        padding:0.3rem;
    }
    .company-logo{
        padding:0.5rem;
    }
}


/* hero section */
.hero-section{
    margin:0 0 2.5rem 0;
    position: relative;
    justify-content: center;
}

.hero-image{
    width: 100%;
    max-height: 70vh;
}
.hero-caption{
    padding: 0 2rem;
    position: absolute;
    width:50%;
    color:black;
    text-align: center;
    backdrop-filter: blur(10px);
}
.hero-caption .heading{
    font-size: 2rem;
}
.hero-caption p {
    font-size: 1rem;
}
@media (min-width: 768px){
    .hero-section{
        justify-content: flex-end;
    }
    .hero-caption p {
        width: 50%;
    }
}


/* About section */
.about-section{
    color:var(--primary);
    gap: 0.5rem;
}
.about-section-image-1 {
    width:70%;
    margin-bottom: 2rem;
}
.about-section .image{
    padding:0;
    /*margin:1.5rem 0;*/
}
.about-section p {
    padding: 0.5rem 1.5rem;
    color:black;
    line-height: 1.75rem;
}
.about-section .heading{
    font-size: 1.5rem;
    margin-bottom: 2rem;
}
.about-section > div{
    justify-content: space-around;
}
.about-section a{
    background-color: var(--primary);
    color: white;
    border: 1px solid var(--primary);
    border-radius: 5px;
    padding: 0.75rem 2rem;
}
.about-section .visit-us-section div{
    gap:2rem;
}
.about-section .visit-us-section{
    width: 100%;
    height: 100%;
    justify-content: center;
}
.about-section .sub-heading{
    padding:1rem;
    margin-bottom: 2rem;
}
@media (min-width: 768px){
    .about-section .visit-us-section div{
        flex-direction: row;
    }
}

/* Contact form */
.contact-image{
    padding: 1rem;
    width: min(450px, 100%);
}
#contact-section{
    padding: 0.5rem 0 0.5rem 0;
}
.contact-form textarea{
    margin-bottom: 1rem;
}
#contact-section .heading{
    text-align: center;
}
.contact-image-container{
    justify-content: center;
}
@media (min-width: 768px){
    .contact-image{
        width:100%;
    }
    #contact-section .heading{
        text-align: start;
    }
}
/* Footer */
footer {
    background-color: var(--header-bg);
    padding:1.5rem 2.5rem;
    display : grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 2rem;
}
footer ul{
    gap:0.5rem;
}
.footer-social{
    list-style-type: disc;
    display: flex;
    flex-direction: column;
    gap:0.5rem;
}
.footer-social h3{
    margin-bottom: 0.5rem;
    color:var(--primary);
}
.footer-social a{
    color:black;
}
@media (min-width: 768px){
    footer{
        grid-template-columns: 1fr 1fr 1fr;
    }
}