:root {
    --teal: #28a8a8;
    --dark: #242424;
    --light: #f6f6f3
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #444;
    line-height: 1.6;
    background: white
}

a {
    text-decoration: none;
    color: inherit
}

.top {
    position: fixed;
    z-index: 30;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(25, 25, 25, .94);
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    box-shadow: 0 2px 12px #0004
}

.logo {
    height: 58px
}

.nav {
    display: flex;
    gap: 22px;
    align-items: center;
    color: #fff;
    font-size: 14px;
    text-transform: uppercase
}

.nav a:hover,
.nav a.active {
    color: #6fd6d3
}

.book {
    background: var(--teal);
    padding: 10px 16px;
    border-radius: 2px
}

.menu {
    display: none;
    color: #fff;
    font-size: 28px
}

.hero {
    min-height: 670px;
    background: linear-gradient(#0004, #0006), url('images/hero-pool.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding-top: 78px
}

.hero h1 {
    font-size: 64px;
    font-weight: 300;
    margin: 0;
    letter-spacing: 1px
}

.hero h2 {
    font-weight: 300;
    font-size: 27px;
    margin: 5px 0 28px
}

.btn {
    display: inline-block;
    padding: 12px 22px;
    margin: 5px;
    border: 1px solid white;
    color: #fff;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px
}

.btn.fill {
    background: var(--teal);
    border-color: var(--teal)
}

section {
    padding: 75px 7%
}

.title {
    text-align: center;
    font-size: 38px;
    font-weight: 300;
    color: #333;
    margin: 0 0 42px
}

.intro {
    max-width: 850px;
    margin: auto;
    text-align: center
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px
}

.card {
    background: #fff;
    box-shadow: 0 4px 18px #0002;
    overflow: hidden
}

.card img {
    width: 100%;
    height: 230px;
    object-fit: cover
}

.card .pad {
    padding: 24px
}

.card h3 {
    margin: 0 0 8px;
    font-weight: 400;
    font-size: 24px
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 450px
}

.split .photo {
    background: url('images/hero-bungalow.jpg') center/cover
}

.split .copy {
    padding: 70px;
    background: var(--light)
}

.band {
    background: var(--teal);
    color: #fff;
    text-align: center;
    padding: 48px 8%
}

.pagehero,
.restaurant-hero {
    height: 420px;
    background: linear-gradient(#0005, #0007), url('images/hero-pool.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding-top: 78px
}

.restaurant-hero {
    background-image: linear-gradient(#0005, #0007), url('images/restaurant-dish.jpg')
}

.pagehero h1,
.restaurant-hero h1 {
    font-size: 48px;
    font-weight: 300
}

.content {
    max-width: 1100px;
    margin: auto
}

.restaurant-intro {
    max-width: 1120px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 58px;
    align-items: center
}

.restaurant-intro h2,
.restaurant-gallery h2 {
    margin: 0 0 20px;
    color: #333;
    font-size: 34px;
    font-weight: 300;
    line-height: 1.25
}

.restaurant-intro img,
.restaurant-gallery img {
    width: 100%;
    height: 390px;
    object-fit: cover
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--teal);
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase
}

.restaurant-gallery {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1fr;
    align-items: stretch;
    padding: 0;
    background: var(--light)
}

.restaurant-gallery img {
    height: 100%;
    min-height: 440px
}

.restaurant-gallery__copy {
    padding: 60px 42px;
    display: flex;
    flex-direction: column;
    justify-content: center
}

.room {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    margin-bottom: 55px;
    align-items: center
}

.room:nth-child(even) img {
    order: 2
}

.room img {
    width: 100%;
    height: 340px;
    object-fit: cover
}

.price {
    color: var(--teal);
    font-size: 20px
}

.tourgrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px
}

.tour {
    border: 1px solid #ddd;
    background: #fff
}

.tour img {
    width: 100%;
    height: 190px;
    object-fit: cover
}

.tour div {
    padding: 20px
}

.tour h3 {
    margin-top: 0
}

.form {
    max-width: 720px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px
}

.form input,
.form textarea {
    padding: 14px;
    border: 1px solid #ccc;
    font: inherit
}

.form textarea {
    grid-column: 1/-1;
    height: 150px
}

.form button {
    grid-column: 1/-1;
    border: 0;
    background: var(--teal);
    color: #fff;
    padding: 15px;
    text-transform: uppercase
}

.footer {
    background: #222;
    color: #bbb;
    padding: 42px 7%;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px
}

.footer img {
    height: 68px
}

.copyright {
    background: #171717;
    color: #777;
    text-align: center;
    padding: 14px;
    font-size: 13px
}

.booking-widget-open {
    overflow: hidden
}

.booking-widget-modal {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: #0009
}

.booking-widget-modal[hidden] {
    display: none
}

.booking-widget-modal__content {
    position: relative;
    width: min(100%, 760px);
    max-height: 90vh;
    overflow: auto;
    padding: 46px 24px 24px;
    background: #fff;
    border-radius: 4px
}

.booking-widget-modal__close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: 0;
    background: none;
    color: #333;
    font-size: 32px;
    line-height: 1;
    cursor: pointer
}

@media(max-width:850px) {
    .nav {
        display: none
    }

    .menu {
        display: block
    }

    .hero h1 {
        font-size: 43px
    }

    .cards,
    .tourgrid,
    .footer,
    .restaurant-intro,
    .restaurant-gallery {
        grid-template-columns: 1fr
    }

    .split,
    .room {
        grid-template-columns: 1fr
    }

    .room:nth-child(even) img {
        order: 0
    }

    .form {
        grid-template-columns: 1fr
    }

    .form textarea,
    .form button {
        grid-column: 1
    }

    .hero {
        min-height: 560px
    }

    .restaurant-intro {
        gap: 28px
    }

    .restaurant-gallery img {
        height: 310px;
        min-height: 0
    }

    .restaurant-gallery__copy {
        padding: 48px 7%
    }

    .booking-widget-modal {
        padding: 12px
    }

    .booking-widget-modal__content {
        padding: 46px 12px 12px
    }
}