/* ======== GOOGLE FONTS ======== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
    /*=======header height========*/
    --header-height: 3rem;
  
    /*=======color========*/
    --first-color: #997d00;
    --first-color-alt: #beac02;
    --text-color: rgb(5,5,5);
    --text-color-light: rgb(75, 75, 75);
    --body-color: rgb(250,250,250);
    --container-color: rgb(255,255,255);
  
    /*=======font size and typography========*/
    --body-font: 'Poppins', sans-serif;
    --biggest-font-size: 2.5rem;
    --h1-font-size: 1.7rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.3rem;
    --normal-font-size: 1.18rem;
    --small-font-size: 1.07rem;
    --smaller-font-size: 1rem;

    /*=======font weight========*/
    --font-medium: 400;
    --font-semi-bold: 600;
    --font-bold: 700;
  
    /*=======margins========*/
    --mb-0-25: 0.25rem;
    --mb-0-5: 0.5rem;
    --mb-0-75: 0.75rem;
    --mb-1: 1rem;
    --mb-1-25: 1.25rem;
    --mb-1-5: 1.5rem;
    --mb-2: 2rem;
    --mb-2-5: 2.5rem;
  
    /*=======z-index========*/
    --z-normal: 1;
    --z-tooltip: 10;
    --z-fixed: 100;
}
  
@media screen and (min-width: 1024px) {
    :root {
        --biggest-font-size: 3.5rem;
        --h1-font-size: 1.8rem;
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.3rem;
        --normal-font-size: 1.15rem;
        --small-font-size: 1.05rem;
        --smaller-font-size: 0.9rem;
    }
}

/* ======== BASE ======== */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: var(--header-height) 0 0 0;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    background-color: var(--body-color);
    color: var(--text-color);
}

h1, h2, h3 {
    color: var(--first-color);
    font-weight: var(--font-bold);
    font-family: var(--first-font);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

img, video {
    max-width: 100%;
    height: auto;
}

button, input {
    border: none;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
}

button {
    cursor: pointer;
}

input {
    outline: none;
}

.main {
    overflow-x: hidden;
}

/* ======== REUSABLE CSS CLASSES ======== */
.section {
    padding: 3rem 0 2rem;
}

.section-title, .section-subtitle {
    text-align: center;
}

.section-title {
    font-size: var(--h1-font-size);
    color: var(--first-color);
    text-transform: capitalize;
    margin-bottom: var(--mb-2-5);
}

.section-subtitle {
    display: block;
    font-size: var(--smaller-font-size);
    font-weight: var(--font-semi-bold);
    color: var(--text-color-light);
}

.container {
    max-width: 1024px;
    margin-left: var(--mb-1);
    margin-right: var(--mb-1);
}

.grid {
    display: grid;
    gap: 1.5rem;
}

/* ======== HEADER ======== */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    background-color: transparent;
}

/* ======== NAV ======== */
.nav {
    height: var(--header-height);
    max-width: 1152px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.nav-logo {
    width: 80px;
    height: auto;
}

.nav-toggle {
    color: var(--container-color);
    font-size: 1.2rem;
    cursor: pointer;
}

.nav-menu {
    position: relative
}

@media screen and (max-width: 1024px) {
    .nav-menu {
        position: fixed;
        background-color: var(--body-color);
        top: -100%;
        right: 0;
        width: 100%;
        height: 80%;
        box-shadow: -1px 0 4px rgba(0,0,0,0.2);
        padding: 3rem;
        transition: 0.4s;
    }
}

.nav-list {
    display: flex;
    flex-direction: column;
    row-gap: 2.5rem;
}

.nav-link {
    color: var(--text-color-light);
    font-weight: var(--font-semi-bold);
    text-transform: uppercase;
}

.nav-link:hover {
    color: var(--text-color);
}

.nav-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--first-color);
    cursor: pointer;
}

/* Show menu */
.show-menu {
    top: 0;
}

/* ======== Change background header ======== */
.scroll-header {
    background-color: var(--first-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.scroll-header .nav-logo, .nav-toggle {
    color: var(--container-color);
}

/* ======== Active link ======== */
.active-link {
    position: relative;
    color: var(--first-color);
}

.active-link::before {
    content: '';
    position: absolute;
    background-color: var(--first-color);
    width: 30%;
    height: 2px;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
}

/* ======== HOME ======== */
.banner {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    margin-top: -3rem;
}

.slider {
    position: absolute;
    width: 100%;
    height: 100vh;
    top: 0;
}

#slideImg {
    height: 100vh;
    object-fit: cover;
    object-position: 50%;
    animation: zoom 3s linear infinite;
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100vh;
    top: 0;
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7));
}

@keyframes zoom {
    0% {
        transform: scale(1.3);
    }
    15% {
        transform: scale(1);
    }
    85% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.3);
    }
}

.home-container {
    position: relative;
    height: calc(100vh - var(--header-height));
    align-content: center;
    row-gap: 3rem;
}

.home-data {
    padding-top: 9rem;
}

.home-data-subtitle, .home-data-title, 
.home-social-link {
    color: var(--container-color);
}

.home-data-subtitle {
    display: block;
    font-weight: var(--font-semi-bold);
    margin-bottom: var(--mb-2);
}

.home-data-title {
    font-size: var(--biggest-font-size);
    font-weight: var(--font-medium);
    margin-bottom: var(--mb-2-5);
}

.home-social {
    padding-top: 6rem;
    display: flex;
    flex-direction: row;
    column-gap: 1.5rem;
    margin: auto;
}

.home-social-link {
    font-size: 1.2rem;
    width: max-content;
}

.home-social-link:hover {
    color: var(--first-color-alt);
}

/* ======== BUTTONS ======== */
.button {
    display: inline-block;
    background-color: var(--first-color);
    color: var(--container-color);
    padding: 0.8rem 1.2rem;
    font-weight: var(--font-semi-bold);
    transition: 0.5s;
}

.button:hover {
    background-color: var(--first-color-alt);
}

.button-flex {
    position: absolute;
    height: 2.8rem;
    width: 12rem;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--first-color);
    color: var(--container-color);
    padding: 0.6rem 1rem;
    font-weight: var(--font-semi-bold);
    font-size: var(--smaller-font-size);
    transition: 0.5s;
}

.button-flex:hover {
    background-color: var(--first-color-alt);
}

.button-white {
    background-color: var(--container-color);
    color: var(--first-color);
}

.button-white:hover {
    background-color: var(--first-color-alt);
    color: var(--container-color);
}

/* ========= ROOMS ========== */
.rooms-data {
    position: relative;
    padding: 2rem 1rem 4rem;
    text-align: center;
    border-bottom: 2px solid var(--first-color);
}

.rooms-img {
    max-width: 500px;
    height: 180px;
    border-radius: var(--mb-0-5);
    background-position: center;
    background-size: cover;
    margin-bottom: var(--mb-1-5);
}

.rooms-img1 {
    background-image: url('images/hotel9.jpg');
}

.rooms-img2 {
    background-image: url('images/hotel100.jpg');
}

.rooms-img3 {
    background-image: url('images/hotel104.jpg');
}

.rooms-img4 {
    background-image: url('images/hotel101.jpg');
}

.rooms-title {
    margin-bottom: var(--mb-1-25);
    color: var(--first-color);
    font-size: var(--h3-font-size);
}

.rooms-description {
    margin-bottom: var(--mb-1);
}

/* ========= SERVICES ========== */
.services-container {
    row-gap: var(--mb-2);
}

.services-content {
    overflow: hidden;
    border-bottom: 2px solid var(--first-color);
    padding-bottom: var(--mb-0-5);
}

.services-img {
    width: 100%;
    transition: 0.5s;
    border-radius: var(--mb-0-5);
}

.services-data {
    padding: var(--mb-1);
}

.services-subtitle {
    font-size: var(--h1-font-size);
    font-weight: var(--font-bold);
    color: var(--first-color);
}

.services-title {
    color: var(--text-color-light);
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    margin-top: var(--mb-1-25);
}

.services-content:hover .services-img {
    transform: translateY(-0.5rem);
}

/* ========= FEATURES ========== */
.features-container {
    row-gap: var(--mb-1-5);

}

.features-content {
    width: 210px;
    border-bottom: 2px solid var(--first-color);
    justify-self: center;
    margin-top: var(--mb-1-5);
}

.features-title {
    justify-content: center;
    font-size: var(--normal-font-size);
    color: var(--text-color);
    font-weight: var(--font-medium);
    margin-bottom: var(--mb-1-5);
}

.features-title-icon {
    font-size: 3rem;
    color: var(--first-color-alt);
    margin-bottom: var(--mb-0-5);
    justify-self: center;
}

/* ========= GALLERY ========== */
.swiper-pagination {
    position: absolute !important;

}

.swiper-pagination-bullet {
    width: 10px !important;
    height: 10px !important;
}

.swiper-pagination-bullet-active {
    background-color: var(--first-color) !important;
}

.gallery-container {
    margin-top: var(--mb-2-5);
    width: 85%;
    height: 270px;
    padding-bottom: 5rem !important;
}

.gallery-content {
    margin: auto;
    height: 180px;
    width: 250px;
    border-radius: 0.5rem;
    overflow: hidden;
}

.gallery-cont1 {
    background-image: url("images/hotel60.jpg");
    background-position: center;
    background-size: cover;
}

.gallery-cont2 {
    background-image: url("images/hotel19.jpg");
    background-position: center;
    background-size: cover;
}

.gallery-cont3 {
    background-image: url("images/hotel41.jpg");
    background-position: center;
    background-size: cover;
}

.gallery-cont4 {
    background-image: url("images/hotel108.jpg");
    background-position: center;
    background-size: cover;
}

.gallery-cont5 {
    background-image: url("images/hotel109.jpg");
    background-position: center;
    background-size: cover;
}

.gallery-cont6 {
    background-image: url("images/hotel110.jpg");
    background-position: center;
    background-size: cover;
}

.gallery-cont7 {
    background-image: url("images/hotel103.jpg");
    background-position: center;
    background-size: cover;
}

.gallery-cont8 {
    background-image: url("images/hotel27.jpg");
    background-position: center;
    background-size: cover;
}

.gallery-cont9 {
    background-image: url("images/hotel5.jpg");
    background-position: center;
    background-size: cover;
}

.gallery-cont10 {
    background-image: url("images/hotel13.jpg");
    background-position: center;
    background-size: cover;
}


.gallery-cont11 {
    background-image: url("images/hotel67.jpg");
    background-position: center;
    background-size: cover;
}

.gallery-img {
    width: 100%;
    height: 100%;
    transition: 0.5s;
}

/* ========= ABOUT ========== */
.about-container {
    align-items: center;
}

.about-description {
    color: var(--text-color);
}

.about-quote {
    color: var(--first-color-alt);
    font-weight: var(--font-semi-bold);
}

.about-img {
    justify-self: center;
    width: 220px;
    border-radius: 0.5rem;
}

/* ========= CONTACT ========== */
.contact-container {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url("images/hotel112.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 1.5rem 1rem;
    color: var(--container-color);
    text-align: center;
}

.contact-icon, .contact-title {
    margin-bottom: var(--mb-2-5);
}

.contact-icon {
    font-size: 3.5rem;
}

.contact-title {
    font-size: var(--h3-font-size);
    color: var(--container-color);
}

/* ======== FOOTER ======== */
.footer {
    margin-top: 3rem;
    padding: 3rem 0 1rem;
}

.footer-container {
    row-gap: 3rem;
}

.footer-content {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    row-gap: 2rem;
}

.footer-subtitle {
    color: var(--first-color);
    margin-bottom: var(--mb-1);
    font-size: var(--h3-font-size);
}

.footer-item {
    margin-bottom: var(--mb-1);
}

.footer-link {
    color: var(--text-color);
    transition: 0.5s;
}

.footer-link:hover {
    color: var(--text-color-light);
}

.footer-copy {
    border-top: 1px solid var(--first-color);
    padding-top: var(--mb-1);
    text-align: center;
    color: var(--text-color-light);
    font-size: var(--small-font-size);
}

/* ======== MEDIA QUERIES ======== */
@media screen and (min-width: 576px) {
    .nav-logo {
        width: 90px;
        height: auto;
    }

    .home-data {
        position: relative;
        margin: auto;
        padding-bottom: 7rem;
        border-bottom: 2px solid var(--container-color);
        margin-top: var(--mb-2-5);
    }

    .home-button {
        position: absolute;
        top: 70%;
        left: 50%;
        transform: translateX(-50%);
    }

    .home-social {
        flex-direction: row;
        align-self: flex-end;
        margin-bottom: 3rem;
        column-gap: 2.5rem;
    }

    .rooms-container, .features-container,  
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .rooms-data {
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
        padding-bottom: 7rem;
    }

    .button-flex {
        bottom: var(--mb-2-5);
    }

    .services-content {
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
    }

    .swiper-pagination-bullet {
        width: 12px !important;
        height: 12px !important;
    }

    .gallery-container {
        width: 100%;
        margin-top: 3rem;
        height: 300px;
    }

    .about-img {
        width: 350px;
    }
}

@media screen and (min-width: 768px) {
    .about-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 1024px) {
    .container {
        margin-left: auto;
        margin-right: auto;
    }

    .nav {
        height: calc(var(--header-height) + 1.5rem);
    }

    .nav-link {
        color: var(--container-color);
        text-transform: initial;
    }
    
    .nav-link:hover {
        color: var(--body-color);
    }
    
    .nav-menu {
        display: flex;
        column-gap: 1rem;
    }

    .nav-list {
        flex-direction: row;
        column-gap: 3rem;
    }

    .nav-toggle, .nav-close {
        display: none;
    }

    .active-link::before {
        background-color: var(--container-color);
    }

    .nav-link {
        color: var(--container-color);
    }

    .active-link {
        color: var(--container-color);
    }

    .section {
        padding: 7rem 0 2rem;
    }

    .home-container {
        height: 100vh;
        grid-template-rows: 2fr 0.5fr;
    }

    #slideImg {
        width: 100%;
        height: 100%;
    }

    .button-flex {
        padding: 0.8rem 1rem;
    }

    .rooms-img {
        max-width: 200px;
        height: 150px;
        background-position: center;
        background-size: cover;
    }

    .rooms-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        row-gap: var(--mb-2-5);
        column-gap: 4rem;
    }

    .services-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-box {
        display: flex;
        justify-content: space-between;       
    }

    .features-container {
        padding-top: var(--mb-2);
        grid-template-columns: repeat(4, 1fr);
        column-gap: 3rem;
        row-gap: 4rem;
    }

    .gallery-nav {
        grid-template-columns: repeat(4, 1fr);
    }

    .gallery-item {
        margin-top: var(--mb-2-5);
    }

    .gallery-container {
        grid-template-columns: repeat(3, 1fr);
        margin-top: 3rem;
    }
    .gallery-content {
        margin: auto;
        height: 200px;
        width: 300px;
    }

    .about-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-description {
        text-align: initial;
    }

    .about-img {
        width: 350px;
    }

    .contact-container {
        padding: 12rem 0 8rem;
    }

    .contact-data {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        column-gap: var(--mb-2-5);
    }

    .contact-icon, .contact-title {
        margin-bottom: var(--mb-1);
    }

    .contact-icon {
        font-size: 6rem;
    }

    .contact-title {
        font-size: var(--h3-font-size);
    }
}