@import url('https://fonts.googleapis.com/css?family=Montserrat:400,700&display=swap');

:root {

    --color-1: #f2f2f2;
    --color-2: #333333;
    --color-service-1: #ebe2dd;
    --color-service-2: #e1d5c7;
    --color-service-3: #c0b19b;

}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    background: var(--color-1);
    /* Set background color to #263238*/
}

html,
body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.4;
    color: var(--color-2);
    height: 100%;
    /* the height was put in for the hero image section */
}

ul {
    list-style: none;
}

a {
    color: var(--color-2);
    text-decoration: none;
}

p {
    margin: 5px 0;
    line-height: 1.7;
}

img {
    max-width: 100%;
}

/* --------------------------------------------------------------------- */
/* header/hero/cta */
/* --------------------------------------------------------------------- */
header {
    background-color: var(--color-1);
    border-bottom: 1px solid #bbbeb9;

}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
}

.logo {
    font-size: 3rem;
    font-family: 'Times New Roman', Times, serif;
    letter-spacing: 10px;
}

.navbar {
    min-height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 24px;
    background-color: #f2f2f2;
    /* I added the two lines below because the mobile menu was hiding under the hero image. Used Javascript to add it after*/
    z-index: 1;
    position: relative;
}

.nav-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 110px;
    width: 475px;
}

.nav-link {
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-2);
    padding: 3px 0px;
    margin: 0px 3px;
    display: inline-block;
    position: relative;
    opacity: 0.75;

}

.book-link {
    width: 100px;
}

.nav-link:hover {
    opacity: 1;
}

.nav-link::before {
    transition: 300ms;
    height: 3px;
    content: "";
    position: absolute;
    background-color: #333333;
}

.nav-link-fade-up::before {
    width: 100%;
    bottom: 2px;
    opacity: 0;
}

.nav-link-fade-up:hover::before {
    bottom: 1px;
    opacity: 1;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--color-2);
}

.nav-menu.left {
    margin-right: 70px;
}

.nav-menu.right {
    margin-left: 70px;
}

.nav-menu.left li:nth-last-of-type(-n+3) {
    display: none;
}

/* The hero image */
.hero-image {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../assets/jz-photo3.webp");
    background-color: #4e3c32;
    height: 100%;
    /* Position and center the image to scale nicely on all screens */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    /* I originally had a -1 z-index here - I moved it to a positive in the navbar */
    /* z-index: -1; */
}

.hero-buttons {
    display: block;
    width: 100vw;
}

/* Place text in the middle of the image */
.hero-text {
    text-align: center;
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.5rem;

}

.hero-btn {
    cursor: pointer;
    border: 1px solid #b9b7b7;
    background-color: transparent;
    height: 60px;
    width: 300px;
    color: #f2f2f2;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 6px 6px rgba(0, 0, 0, 0.6);
    margin: 10px;

}

.hero-btn:hover {
    /* transform: scale(0.95); */
    background-color: rgba(0, 0, 0, 0.5);
}

/* --------------------------------------------------------------------- */
/* services */
/* --------------------------------------------------------------------- */
/* Choosing to apply this will contain the service boxes to a max width so that they dont span the full page */
@media (min-width: 1440px) {
    .box {
        max-width: 1440px;
        margin-right: auto;
        margin-left: auto;
    }

    .about {

        max-width: 1440px;
        margin-right: auto;
        margin-left: auto;

    }
}

.services {
    background-color: #f2f2f2;
    padding-bottom: 40px;
}

.service-boxes {
    margin-top: 35px;

}

.service-main-title,
.main-title {
    font-size: 3rem;
    text-align: center;
    padding-top: 40px;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: black;
}

.service-subtitle,
.sub-line {
    font-size: 24px;
    text-align: center;
    text-transform: none;
    margin-top: 5px;
    margin-bottom: 35px;
    letter-spacing: 0.5px;
    font-weight: 600;
    text-transform: uppercase;
    color: black;
}

/* below styling is for the horizontal lines */
.sub-line {
    position: relative;
    max-width: 900px;
    margin: 10px auto;
}

.sub-line::before {
    content: " ";
    height: 2px;
    width: 350px;
    background: #1e1e1e;
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
}

.sub-line::after {
    content: " ";
    height: 2px;
    width: 350px;
    background: #1e1e1e;
    display: block;
    position: absolute;
    top: 50%;
    right: 0;
}

/* Box */
.box {
    margin-bottom: 30px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.box:hover {
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

.box img {
    /*This allows for whatever image to be scaled within the service banner*/
    height: 100%;
    width: auto;
    display: block;
    margin: 0 auto;
}

.box-text {
    max-width: 500px;
    text-align: center;
    justify-self: center;
    padding: 50px 0;
    margin: 0 auto;
}

/* Grid Styles */
.grid-col-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
}

.grid-reversed :first-child {
    order: 2;
}

/* Buttons */
.btn {
    cursor: pointer;
    border: 1px solid #1e1e1e;
    background-color: transparent;
    height: 50px;
    width: 220px;
    color: #1e1e1e;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.6);
    margin: 10px;
    padding: 10px;
    text-decoration: none;

}

.btn-services {
    display: block;
    margin: auto;
    text-align: center;
    line-height: 40px;
    /* I added this line to center the text within the button  */
    font-weight: bold;
    height: 65px;
    width: 300px;
    font-size: large;
    background-color: #f1efec;
}

.btn-light-outline:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.btn-light-outline {
    border-color: #1e1e1e;
    color: #1e1e1e;
}

/* Backgrounds */
.bg-one {
    background-color: var(--color-service-1);
    color: #1e1e1e;
}

.bg-two {
    background-color: var(--color-service-2);
    color: #1e1e1e;
}

.bg-three {
    background-color: var(--color-service-3);
    color: #1e1e1e;
}

/* Text Styling */
.service-title {
    font-size: 45px;
    text-transform: uppercase;
    letter-spacing: 6px;
    font-weight: 600;
    margin-bottom: 20px;
}

.service-text {
    font-size: 24px;
    margin-bottom: 20px;
}

/* --------------------------------------------------------------------- */
/* about */
/* --------------------------------------------------------------------- */
.about-container,
.about {
    background-color: #d8e5e9;
    /* background-color: #f4ede7; */
}

.about-title {
    margin-right: 950px;
}

.about {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    /* margin-top: 50px;
    margin-bottom: 50px; */
    padding: 30px 0px;
    color: #1e1e1e;
}

.about-img {
    object-fit: cover;
    margin-right: 50px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.about-text {
    width: 50%;
    display: flex;
    flex-direction: column;
    font-size: 24px;
    line-height: 1.5;
    margin-bottom: 20px;
    text-align: center;
    align-items: center;
}

.about-hello {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-hello~p {
    /* CSS properties for p elements that come after .about-hello */
    max-width: 35em;
    font-weight: 500;
}

.about-signature {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 0;
}

.signature-links {
    padding-top: 40px;
}

.sig-link {
    padding: 0px 10px;
    color: #152124;
}

.sig-link:hover {
    /* color: #181818; */
    scale: 1.1;
}

/* --------------------------------------------------------------------- */
/* footer */
/* --------------------------------------------------------------------- */
footer .footer-container {
    max-width: 1170px;
    margin: auto;

}

.copyright {
    text-align: center;
    padding: 15px;
    color: #868484;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
}

.footer {
    background-color: #1b1b1b;
    padding: 30px 0;
}

.footer-col {
    width: 25%;
    padding: 0 15px;
}

.footer-col {
    font-size: 1rem;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 35px;
    font-weight: 500;
    position: relative;
}

.footer-col ul li:not(:last-child) {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 0.9rem;
    text-transform: capitalize;
    color: #f2f2f2;
    text-decoration: none;
    font-weight: 300;
    color: #f2f2f2;
    display: block;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-col ul li a:hover {
    color: #868585;
    /* padding-left: 3px; */
}

.footer-col .social-links a {
    display: inline-block;
    height: 40px;
    width: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 10px 10px 0;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    color: #f2f2f2;
    transition: all 0.5s ease;
}

.footer-col .social-links a:hover {
    color: #24262b;
    background-color: #f2f2f2;
}

/* --------------------------------------------------------------------- */
/* tablet */
/* --------------------------------------------------------------------- */
@media(max-width: 1228px) {
    .nav-menu {
        gap: 40px;
    }

    .service-title {
        font-size: 25px;
    }

    .service-text {
        font-size: 19px;
    }

    .footer-col {
        width: 50%;
        margin-bottom: 30px;
    }

    .instagram-media {
        max-width: 900px;
    }

    /* hero */
    .hero-h1-title {
        font-size: 1.2em;
    }

    .hero-text {
        top: 60%;
        left: 50%;
    }

    .hero-btn {
        border: 1px solid #b9b7b7;
        height: 50px;
        width: 190px;
        font-size: 0.5em;
        margin: 10px;
    }
}

/* --------------------------------------------------------------------- */
/* mobile */
/* --------------------------------------------------------------------- */
@media(max-width: 932px) {

    .nav-menu.left li:nth-last-of-type(-n+3) {
        display: block;
    }

    .hamburger {
        display: block;
        margin-right: 10px;
        margin-left: 30px;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* centers logo and pushes hamburger menu to the right */
    .navbar {
        display: flex;
        background-color: #f1f1f1;
        justify-content: center;
        /* centers first div horizontally */
        padding: 0px 0px;
    }

    .logo-container {
        margin-left: auto;
        /* pushes second div off to the right edge */
        margin-right: -51px;
    }

    .hamburger {
        margin-left: auto;
        /* pushes second div off to the right edge */
        margin-right: 20px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: var(--color-1);
        width: 100%;
        text-align: center;
        transition: 0.3s;
    }

    .nav-menu.right {
        display: none;
    }

    .nav {
        margin: 16px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .footer-col {
        width: 100%;
    }

    /* This is the responsive css for the services on the home page */
    .grid-col-2 {
        grid-template-columns: 1fr;
    }

    .grid-reversed :first-child {
        order: 0;
    }

    .sub-line {
        max-width: 300px;
    }

    .sub-line::before {
        width: 50px;
    }

    .sub-line::after {
        width: 50px;
    }

    .instagram-media {
        max-width: 768px;
    }

    .hero-btn {
        border: 1px solid #b9b7b7;
        height: 50px;
        width: 170px;
        font-size: 0.5em;
        padding: 0px;
        margin: 0px;
        gap: 0px;
    }

    .hero-buttons {
        margin-top: 5px;
    }

    .box-text {
        padding: 41px 0px;
    }

    .box img {
        padding-top: 20px;
    }

}

/* galaxy fold media query */
@media (max-width: 281px) {

    .sig-link {
        padding: 0px 5px;
    }

    .btn-services {
        width: 250px;
    }

    .hero-btn {
        margin: 5px;
    }

}