@font-face {
    font-family: "San Francisco";
    font-weight: 400;
    src: url("https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-regular-webfont.woff");
}

h1{
    font-family: "San Francisco", sans-serif;
    font-weight: 700;
    font-size: 3em;
}

h2{
    font-family: "San Francisco", sans-serif;
    font-weight: 600;
    color: #181c14;
}
a{
    text-decoration: none;
    color: inherit;
    font-family: "San Francisco", sans-serif;
}

body{
    margin: 0;
}
.containerr{
    width : 100%;
    height : 200vh;
    background-image: url('/img/main_bg.png');
    background-size: cover;
    background-position: center;
    margin-top: 0;
}

.header{
    width: 100%;
    max-width: 100%;
    height: 7vh;
    background-color: #697565;
    color: white;
    position: fixed;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    top: 0;
    left: 0;
    display: flex;                  /* enable flexbox */
    justify-content: space-between; /* space between items */
    align-items: center;            /* vertical centering */
    padding: 10px;
    z-index: 1000;                  /* ensure header is above other content */
}

.phone-link {
    margin-right: 25px;
}


.slider{
    width: 90%;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
.welcome{
    width: 50%;
    margin: 0 auto;
    text-align: center;
    padding-top: 20vh;
    padding-left: 10%;
    color: white;
    font-family: "San Francisco", sans-serif;
}
.space1{
    width: 60%;
}

.services{
    width: 80%;
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px auto;
}

.greenbtn{
    background-color: #697565;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 12px;
}

.btn{
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 12px;
}

.service_box{
    width: 30%;
    height: 80%;
    background-color: #F2EFE5;
    margin: 0 10px;
    padding: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}


.service_icon{
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

.service_box:hover {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.experience{
    width: 80%;
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px auto;
}

.experience_pic{
    width: 50%;
    height: 100%;
    background-image: url('/img/experience.jpg');
    background-size: cover;
    background-position: center;
}

.experience_content{
    width: 50%;
    height: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    font-family: "San Francisco", sans-serif;
    color: aliceblue;
}

.experience_content h2{
    font-size: 2em;
    margin-bottom: 20px;
    color: aliceblue;
}

/* initial hidden state */
.experience_pic,
.experience_content {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* visible state */
.experience_pic.visible,
.experience_content.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact_us_box{
    width : 100%;
    height: 100vh;
    background-image: url('/img/second_bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact_form{
    width: 40%;
    height: 80%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.customer_box{
    width: 100%;
    height: 4vh;
    align-items: center;
    background-color: #697565;
    margin: 0;
}

@media only screen and (max-width: 768px) {
    /* Main container adjustments */
    .containerr {
        background-image: none;
        background-color: #697565;
        height: auto;
        padding-top: 7vh; /* space for fixed header */
    }

    /* HEADER */
    .header {
        height: auto; /* let it grow with content */
        min-height: 80px; /* ensure enough height for phone number */
        padding: 15px 10px;
        flex-direction: column; /* stack title and phone */
        gap: 5px;
        text-align: center;
        align-items: center;
        justify-content: center;
    }

    .header h4 {
        margin: 0;
        font-size: 1.3em;
    }
    .phone-link {
        margin: 0;
        font-size: 1em;
    }

    /* Slider / Welcome section */
    .slider {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: auto;
        text-align: center;
    }

    .welcome {
        margin-top: 0;
        width: 100%;
        max-width: 400px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        color: white;
    }

    .welcome h1 {
        font-size: 1.8em;
        margin-bottom: 10px;
    }

    .welcome h3 {
        font-size: 1.1em;
        margin-bottom: 20px;
    }

    .welcome .btn {
        width: 90%;
        margin: 8px 0;
        font-size: 1em;
    }

    /* Services stacked vertically */
    .services {
        flex-direction: column;
        height: auto;
        align-items: center;
        padding: 10px 0;
    }

    .service_box {
        width: 95%;
        margin: 10px 0;
        padding: 15px;
        text-align: center;
    }

    .service_icon {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
    }

    /* Experience section stacked */
    .experience {
        flex-direction: column;
        height: auto;
        padding: 10px 0;
    }

    .experience_pic {
        width: 90%;
        height: 180px;
        margin: 0 auto 15px auto;
        background-size: cover;
        background-position: center;
        border-radius: 8px;
    }

    .experience_content {
        width: 90%;
        text-align: center;
        color: aliceblue;
    }

    .experience_content h2 {
        font-size: 1.6em;
        margin-bottom: 10px;
    }

    .experience_content h5 {
        font-size: 1em;
    }

    /* Contact form */
    .contact_us_box {
        height: auto;
        padding: 30px 0;
    }

    .contact_form {
        width: 95%;
        max-width: 400px;
        padding: 20px;
        background-color: rgba(255, 255, 255, 0.9);
        border-radius: 10px;
    }

    .contact_form h2 {
        font-size: 1.5em;
        margin-bottom: 20px;
    }

    .contact_form form .row {
        flex-direction: column;
        gap: 10px;
    }

    .contact_form form .col-md-6 {
        width: 100%;
    }

    .contact_form form .d-grid {
        width: 100%;
        gap: 10px;
    }

    .contact_form .btn {
        width: 100%;
        font-size: 1em;
        padding: 10px 0;
    }

    /* Footer */
    .customer_box {
        height: auto;
        padding: 10px 0;
        text-align: center;
    }

    .customer_box p {
        font-size: 0.9em;
        margin: 0;
    }
}

