/* 1 rem = 24px */

:root {
    --gradient-l: linear-gradient(to bottom, rgba(255, 255, 255, 1) 10%, rgba(120, 168, 204, 1) 96%);
    --gradient-d: linear-gradient(to bottom, rgba(31, 82, 120, 1) 0%, rgba(154, 208, 253, 1) 100%);
    --font-primary: "Cal Sans", sans-serif;
    --font-secondary: "Roboto", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #2c506b;
    padding: 0;
    margin: 0;
}


button {
    border: none;
    outline: none;
    box-shadow: none;
}

a {
    text-decoration: none;
}

a:hover,
a:focus,
a:active {
    text-decoration: none;
    outline: none;
}

nav {
    position: sticky;
    top: 0;
    height: 2rem;
    display: flex;
    flex-direction: row;
    align-self: center;
    align-items: center;
    justify-content: space-evenly;
    padding: 10px 20px;
    background: #2c506b;
    z-index: 4;
}

nav #business-name {
    height: 100%;
    width: fit-content;
    display: flex;
    align-self: center;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

nav #business-name span {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 1.2rem;
    line-height: 1.2;
    color: #fff;
}

nav #nav-links {
    height: 1rem;
    width: 100%;
    display: flex;
    align-self: center;
    align-items: center;
    justify-content: end;
    padding: 0 30px;
    gap: 30px;
    font-family: var(--font-secondary);
    font-weight: 200;
    font-size: 1rem;
    line-height: 1.2;
    color: #fff;
}

nav #nav-links a {
    text-decoration: none;
    color: #fff;
    cursor: pointer;
}

nav #nav-links a:hover {
    text-decoration: underline;
}

nav #nav-links a.active {
    font-weight: 600;
}

nav #nav-book-now {
    z-index: 10;
}

.book-now-light {
    height: 2.5rem;
    width: 10rem;
    position: relative;
    display: flex;
    align-self: center;
    align-items: center;
    justify-content: center;
    color: #e5f2fd;
    background-color: transparent;
    border: 2px solid #e5f2fd;
    border-radius: 50px;
    overflow: hidden;
    cursor: pointer;
    transition: color 0.3s ease;
}

.book-now-light::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #e5f2fd;
    z-index: 0;
    transition: transform 0.5s ease;
    transform: translateX(0);
    pointer-events: none;
}

.book-now-light:hover::before {
    transform: translateX(100%);
}

.book-now-light span {
    position: relative;
    z-index: 1;
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 1.2rem;
    line-height: 1.2;
    text-decoration: none;
    padding: 2rem;
    cursor: pointer;
    color: #e5f2fd;
    transition: color 0.5s ease;
}

.book-now-light:hover span {
    color: #2c506b;
}

.book-now-dark {
    height: 2rem;
    width: 10rem;
    position: relative;
    display: flex;
    align-self: center;
    align-items: center;
    justify-content: center;
    color: #2c506b;
    background-color: transparent;
    border: 2px solid #2c506b;
    border-radius: 50px;
    overflow: hidden;
    cursor: pointer;
    transition: color 0.3s ease;
}

.book-now-dark::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #2c506b;
    z-index: 0;
    transition: transform 0.5s ease;
    transform: translateX(0);
}

.book-now-dark:hover::before {
    transform: translateX(100%);
}

.book-now-dark span {
    position: relative;
    z-index: 1;
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 1.2rem;
    line-height: 1.2;
    text-decoration: none;
    padding: 0rem;
    cursor: pointer;
    color: #2c506b;
    transition: color 0.5s ease;
}

.book-now-dark:hover span {
    color: #fff;
}

main {
    height: fit-content;
    width: auto;
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 30px;
    gap: 30px;
    padding: 10px;
}

/* ===================================================================== */
@media (max-width: 824px) {
    nav {
        display: grid;
        position: sticky;
        height: fit-content;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        grid-auto-flow: dense;
        grid-column-gap: 0px;
        grid-row-gap: 10px;
    }

    nav #business-name {
        font-size: 1rem;
        grid-area: 1 / 1 / 2 / 2;
        padding: 0;
    }

    nav #nav-links {
        font-size: 1rem;
        grid-area: 2 / 1 / 3 / 3;
        justify-content: space-between;
        padding: 0;
        gap: 0;
    }

    nav #wrapper-book-now {
        display: flex;
        grid-area: 1 / 2 / 2 / 3;
        justify-content: end;
    }

    nav #nav-book-now {
        width: 8rem;
    }

    nav #nav-book-now span {
        font-size: 1rem;
        padding: 1rem;
    }
}

@media (max-width: 614px) {
    nav #business-name {
        font-size: 0.8rem;
        grid-area: 1 / 1 / 2 / 2;
        padding: 0;
    }

    nav #nav-links {
        font-size: 0.8rem;
        justify-content: space-between;
    }

    nav #nav-book-now {
        height: 1.5rem;
        width: 7.5rem;
    }

    nav #nav-book-now span {
        font-size: 0.8rem;
        padding: 1rem;
    }
}