/* =========================================================
   PURPLE STEPS GUEST HOUSE
   BOOKING PAGE
========================================================= */


/* =========================================================
   FONT
========================================================= */

@font-face {

    font-family: "Alta";

    src:
        url("fonts/Alta-Regular.ttf")
        format("truetype");

    font-weight: normal;

    font-style: normal;

    font-display: swap;

}


/* =========================================================
   VARIABLES
========================================================= */

:root {

    --dark-purple: #291031;

    --header-purple: #32182f;

    --purple-dark: #604073;

    --purple: #82519a;

    --purple-medium: #985ab4;

    --purple-light: #bd68df;

    --purple-bright: #cf78ed;

    --purple-pale: #dc91ef;

    --purple-soft: #eee4f2;

    --white: #ffffff;

    --off-white: #faf9fb;

    --text-dark: #231b24;

    --text-grey: #756d77;

    --alta:
        "Alta",
        Georgia,
        serif;

    --montserrat:
        "Montserrat",
        Arial,
        sans-serif;

}


/* =========================================================
   RESET
========================================================= */

* {

    margin: 0;
    padding: 0;

    box-sizing: border-box;

}


html {

    scroll-behavior: smooth;

}


body {

    overflow-x: hidden;

    background:
        var(--white);

    color:
        var(--text-dark);

    font-family:
        var(--montserrat);

}


img {

    display: block;

    width: 100%;

}


a {

    color: inherit;

    text-decoration: none;

}


button,
input,
select,
textarea {

    font: inherit;

}


/* =========================================================
   HEADER
========================================================= */

.header {

    position: absolute;

    top: 0;
    left: 0;

    z-index: 1000;

    width: 100%;
    height: 100px;

    background:

        linear-gradient(
            90deg,
            rgba(41, 16, 49, 0.97),
            rgba(43, 18, 48, 0.91),
            rgba(40, 17, 43, 0.87)
        );

    transition:

        height 0.35s ease,
        transform 0.35s ease,
        background 0.35s ease,
        box-shadow 0.35s ease;

}


.navbar {

    width:
        min(1420px, 94%);

    height: 100%;

    margin: auto;

    display: flex;

    align-items: center;

}


.logo {

    width: 105px;

    margin-right: auto;

}


.logo img {

    max-height: 80px;

    object-fit: contain;

}


.nav-links {

    display: flex;

    align-items: center;

    gap: 42px;

}


.nav-links a {

    position: relative;

    color: white;

    font-size: 13px;

    font-weight: 500;

    transition:
        color 0.3s ease;

}


.nav-links a::after {

    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 1px;

    background:
        var(--purple-light);

    transition:
        width 0.3s ease;

}


.nav-links a:hover {

    color:
        var(--purple-light);

}


.nav-links a:hover::after {

    width: 100%;

}


.reservation-btn {

    margin-left: 50px;

    padding:
        15px 24px;

    border-radius: 6px;

    background:
        var(--purple-light);

    color: white;

    font-size: 11px;

    transition:
        0.3s ease;

}


.reservation-btn:hover,
.reservation-btn.active-reservation {

    background:
        #cf7bed;

    box-shadow:

        0 8px 20px
        rgba(190, 103, 224, 0.26);

}


.menu-btn {

    display: none;

    border: 0;

    background: transparent;

    cursor: pointer;

}


.menu-btn span {

    display: block;

    width: 27px;
    height: 2px;

    margin: 5px 0;

    background: white;

}


/* =========================================================
   BOOKING HERO
========================================================= */

.booking-hero {

    position: relative;

    min-height: 720px;

    display: flex;

    align-items: center;

    background-image:
        url("assets/big\ hole.jfif");

    background-size: cover;

    background-position:
        center;

    background-repeat:
        no-repeat;

}


.booking-hero-overlay {

    position: absolute;

    inset: 0;

    background:

        linear-gradient(
            90deg,

            rgba(38, 19, 42, 0.50),

            rgba(30, 21, 31, 0.25),

            rgba(19, 15, 21, 0.23)
        );

}


.booking-hero::after {

    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 150px;

    background:

        linear-gradient(
            to top,

            rgba(154, 89, 180, 0.50),

            transparent
        );

}


.booking-hero-content {

    position: relative;

    z-index: 3;

    width:
        min(1350px, 88%);

    margin: auto;

    padding-top:
        85px;

    color: white;

}


.booking-hero-content p {

    margin-bottom:
        13px;

    font-size: 9px;

    letter-spacing:
        0.22em;

    opacity: 0.72;

}


.booking-hero-content h1 {

    font-family:
        var(--alta);

    font-size:
        clamp(
            4.8rem,
            8vw,
            7.5rem
        );

    font-weight: normal;

    line-height: 1;

}


/* =========================================================
   BOOKING SECTION
========================================================= */

.booking-section {

    position: relative;

    overflow: hidden;

    padding:

        85px
        8%
        110px;

    background:

        linear-gradient(
            135deg,
            #a85dca,
            #bb6cdd,
            #9a59b5
        );

    color: white;

}


.booking-section::before {

    content: "";

    position: absolute;

    width: 600px;
    height: 600px;

    right: -250px;
    top: -250px;

    border:

        1px solid
        rgba(255,255,255,0.10);

    border-radius: 50%;

}


.booking-heading {

    position: relative;

    z-index: 2;

    width:
        min(1300px, 100%);

    margin:

        0 auto
        70px;

}


.booking-eyebrow {

    margin-bottom:
        14px;

    font-size: 10px;

    letter-spacing:
        0.06em;

    opacity: 0.82;

}


.booking-heading h2 {

    margin-bottom:
        13px;

    font-family:
        var(--alta);

    font-size:
        clamp(
            2.7rem,
            5vw,
            4.5rem
        );

    font-weight: normal;

}


.booking-subtitle {

    font-size:
        11px;

    opacity: 0.8;

}


/* =========================================================
   LAYOUT
========================================================= */

.booking-layout {

    position: relative;

    z-index: 3;

    width:
        min(1250px, 100%);

    margin: auto;

    display: grid;

    grid-template-columns:
        1.1fr
        0.8fr;

    gap:
        55px;

    align-items: stretch;

}


/* =========================================================
   BOOKING FORM
========================================================= */

.booking-form {

    display: flex;

    flex-direction: column;

    gap: 27px;

}


.form-row,
.booking-options,
.date-fields {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 25px;

}


.form-group {

    display: flex;

    flex-direction: column;

    gap: 9px;

}


.form-group label {

    font-size: 10px;

    font-weight: 400;

}


.form-group input,
.form-group select,
.form-group textarea {

    width: 100%;

    border:

        1px solid
        rgba(255,255,255,0.65);

    outline: 0;

    border-radius:
        13px;

    padding:

        15px
        20px;

    background:

        rgba(
            218,
            120,
            238,
            0.64
        );

    color: white;

    transition:

        border 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;

}


.form-group input::placeholder,
.form-group textarea::placeholder {

    color:
        rgba(255,255,255,0.58);

}


.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {

    border-color: white;

    background:

        rgba(
            221,
            133,
            239,
            0.82
        );

    box-shadow:

        0 0 0 4px
        rgba(255,255,255,0.10);

}


.form-group select {

    cursor: pointer;

}


.form-group select option {

    color:
        var(--text-dark);

}


.form-group textarea {

    min-height: 120px;

    resize: vertical;

}


/* =========================================================
   CALENDAR
========================================================= */

.calendar {

    margin-top:
        7px;

}


.calendar-header {

    display: grid;

    grid-template-columns:
        50px
        1fr
        50px;

    align-items: center;

    margin-bottom:
        20px;

}


.calendar-header h3 {

    text-align: center;

    font-family:
        var(--alta);

    font-size:
        21px;

    font-weight: normal;

}


.calendar-arrow {

    width: 42px;
    height: 42px;

    border: 0;

    background: transparent;

    color:

        rgba(
            75,
            41,
            89,
            0.65
        );

    font-size: 22px;

    cursor: pointer;

    transition:
        0.3s ease;

}


.calendar-arrow:hover {

    color: white;

    transform:
        scale(1.1);

}


.calendar-weekdays,
.calendar-days {

    display: grid;

    grid-template-columns:
        repeat(7, 1fr);

    gap: 4px;

}


.calendar-weekdays {

    margin-bottom:
        9px;

}


.calendar-weekdays span {

    text-align: center;

    font-size: 9px;

    opacity: 0.8;

}


.calendar-days button {

    aspect-ratio: 1;

    border:

        1px solid
        rgba(255,255,255,0.72);

    border-radius:
        10px;

    background:

        linear-gradient(
            145deg,
            #d978ef,
            #c96fe6
        );

    color: white;

    font-size: 10px;

    cursor: pointer;

    box-shadow:

        0 5px 5px
        rgba(55, 25, 65, 0.18);

    transition:

        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;

}


.calendar-days button:hover {

    transform:
        translateY(-3px);

    background:
        #e18cf2;

    box-shadow:

        0 8px 14px
        rgba(55,25,65,0.22);

}


.calendar-days
.selected-day {

    background:
        var(--dark-purple);

    border-color:
        var(--dark-purple);

}


.calendar-days
.empty {

    aspect-ratio: 1;

}


/* =========================================================
   DATE FIELDS
========================================================= */

.date-fields {

    margin-top:
        15px;

}


.date-fields input {

    color-scheme: dark;

}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.booking-submit {

    width: 100%;

    margin-top:
        10px;

    padding:
        17px 25px;

    border: 0;

    border-radius:
        30px;

    background: white;

    color:
        var(--text-dark);

    font-size:
        12px;

    font-weight: 600;

    cursor: pointer;

    transition:

        transform 0.3s ease,
        background 0.3s ease,
        color 0.3s ease,
        box-shadow 0.3s ease;

}


.booking-submit:hover {

    transform:
        translateY(-3px);

    background:
        var(--dark-purple);

    color: white;

    box-shadow:

        0 10px 25px
        rgba(45, 18, 53, 0.25);

}


/* =========================================================
   BOOKING IMAGE
========================================================= */

.booking-image {

    position: relative;

    min-height:
        760px;

    overflow: hidden;

    box-shadow:

        0 20px 45px
        rgba(43, 19, 49, 0.22);

}


.booking-image img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.8s ease;

}


.booking-image:hover img {

    transform:
        scale(1.035);

}


.booking-image::after {

    content: "";

    position: absolute;

    inset: 0;

    background:

        linear-gradient(
            to top,

            rgba(41,16,49,0.68),

            transparent 45%
        );

}


.booking-image-overlay {

    position: absolute;

    z-index: 3;

    left: 35px;
    bottom: 35px;

    color: white;

}


.booking-image-overlay p {

    margin-bottom:
        7px;

    font-size: 8px;

    letter-spacing:
        0.22em;

}


.booking-image-overlay h3 {

    max-width:
        260px;

    font-family:
        var(--alta);

    font-size:
        31px;

    font-weight: normal;

}


/* =========================================================
   DIRECT BOOKING NOTE
========================================================= */

.booking-note {

    padding:

        55px
        8%;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 50px;

    background:
        #f5eff7;

}


.booking-note > div:first-child p {

    margin-bottom:
        8px;

    color:
        var(--purple);

    font-size: 8px;

    letter-spacing:
        0.2em;

}


.booking-note h2 {

    font-family:
        var(--alta);

    font-size:
        clamp(
            2rem,
            4vw,
            3.2rem
        );

    font-weight: normal;

}


.booking-contact-links {

    display: flex;

    flex-direction: column;

    gap: 8px;

    text-align: right;

}


.booking-contact-links a {

    color:
        var(--purple);

    font-size: 11px;

    transition:
        0.3s ease;

}


.booking-contact-links a:hover {

    color:
        var(--purple-light);

}


/* =========================================================
   FOOTER
========================================================= */

.footer {

    background:
        var(--dark-purple);

    color: white;

}


.footer-container {

    width:
        min(1350px, 92%);

    margin: auto;

    padding:

        60px
        0;

    display: grid;

    grid-template-columns:
        1.6fr
        1fr
        1fr
        0.6fr;

    gap:
        65px;

}


.footer-brand h2 {

    margin-bottom:
        26px;

    font-family:
        var(--alta);

    font-size:
        29px;

    font-weight: normal;

}


.footer-brand p {

    max-width:
        230px;

    font-size:
        9px;

    line-height:
        1.7;

    opacity: 0.72;

}


.footer-column {

    display: flex;

    flex-direction: column;

    gap: 14px;

}


.footer-column h3 {

    margin-bottom: 8px;

    font-size: 13px;

}


.footer-column a {

    width:
        fit-content;

    font-size: 10px;

    opacity: 0.8;

    transition:
        0.3s ease;

}


.footer-column a:hover {

    color:
        var(--purple-light);

    opacity: 1;

}


.social-links {

    display: flex;

    flex-direction: column;

    gap: 17px;

}


.social-links a {

    width: 38px;
    height: 38px;

    display: flex;

    justify-content: center;
    align-items: center;

    border-radius: 50%;

    background: white;

    color:
        var(--dark-purple);

    font-weight: 700;

    transition:
        0.3s ease;

}


.social-links a:hover {

    transform:
        translateY(-4px);

    background:
        var(--purple-light);

    color: white;

}


.copyright {

    padding:
        20px;

    background:
        #050505;

    text-align: center;

}


.copyright p {

    color:
        rgba(255,255,255,0.76);

    font-size:
        8px;

}


/* =========================================================
   GLOBAL JS EFFECTS
========================================================= */

body {

    opacity: 0;

}


body.page-loaded {

    opacity: 1;

    transition:
        opacity 0.65s ease;

}


.scroll-progress {

    position: fixed;

    top: 0;
    left: 0;

    z-index: 99999;

    width: 0;
    height: 3px;

    background:

        linear-gradient(
            90deg,
            var(--purple),
            var(--purple-light)
        );

}


/* GLASS HEADER */

.header.scrolled {

    position: fixed;

    height: 80px;

    background:
        rgba(
            41,
            16,
            49,
            0.95
        );

    backdrop-filter:
        blur(15px);

    -webkit-backdrop-filter:
        blur(15px);

    box-shadow:

        0 5px 25px
        rgba(0,0,0,0.18);

}


.header.header-hidden {

    transform:
        translateY(-105%);

}


/* =========================================================
   HERO ANIMATION
========================================================= */

.booking-hero-content {

    opacity: 0;

    transform:
        translateY(40px);

    transition:

        opacity 1s ease,

        transform
        1s
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );

}


.booking-hero-content.hero-loaded {

    opacity: 1;

    transform:
        translateY(0);

}


/* =========================================================
   REVEAL EFFECT
========================================================= */

.reveal {

    opacity: 0;

    transform:
        translateY(45px);

    transition:

        opacity 0.8s ease,

        transform
        0.8s
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );

    transition-delay:
        var(
            --reveal-delay,
            0ms
        );

}


.reveal.show {

    opacity: 1;

    transform:
        translateY(0);

}


/* IMAGE LOAD */

.dynamic-image {

    opacity: 0;

    transition:

        opacity 0.8s ease,
        transform 0.7s ease;

}


.dynamic-image.image-loaded {

    opacity: 1;

}


/* =========================================================
   MOBILE MENU BACKDROP
========================================================= */

.menu-backdrop {

    position: fixed;

    inset: 0;

    z-index: 900;

    background:
        rgba(
            15,
            7,
            18,
            0.58
        );

    backdrop-filter:
        blur(5px);

    opacity: 0;

    visibility: hidden;

    transition:
        0.35s ease;

}


.menu-backdrop.active {

    opacity: 1;

    visibility: visible;

}


body.menu-open {

    overflow: hidden;

}


/* =========================================================
   BACK TO TOP
========================================================= */

.back-to-top {

    position: fixed;

    z-index: 850;

    right: 28px;
    bottom: 28px;

    width: 48px;
    height: 48px;

    border: 0;

    border-radius: 50%;

    background:
        var(--purple-light);

    color: white;

    font-size: 21px;

    cursor: pointer;

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(15px);

    box-shadow:

        0 8px 25px
        rgba(0,0,0,0.2);

    transition:
        0.3s ease;

}


.back-to-top.visible {

    opacity: 1;

    visibility: visible;

    transform:
        translateY(0);

}


/* =========================================================
   PAGE TRANSITION
========================================================= */

.page-transition {

    position: fixed;

    inset: 0;

    z-index: 100000;

    pointer-events: none;

    background:

        linear-gradient(
            135deg,
            var(--dark-purple),
            var(--purple)
        );

    transform:
        translateY(100%);

    transition:

        transform
        0.32s
        cubic-bezier(
            0.7,
            0,
            0.3,
            1
        );

}


.page-transition.active {

    transform:
        translateY(0);

}


/* =========================================================
   TABLET
========================================================= */

@media
(max-width: 1050px) {


    .nav-links {

        position: fixed;

        top: 0;
        right: -100%;

        z-index: 1000;

        width: 320px;
        max-width: 85%;

        height: 100vh;

        padding: 60px;

        display: flex;

        flex-direction: column;

        justify-content: center;
        align-items: flex-start;

        background:
            var(--dark-purple);

        transition:
            right 0.4s ease;

    }


    .nav-links.active {

        right: 0;

    }


    .nav-links a {

        font-family:
            var(--alta);

        font-size:
            27px;

    }


    .reservation-btn {

        margin-left: auto;

        margin-right: 25px;

    }


    .menu-btn {

        position: relative;

        z-index: 1100;

        display: block;

    }


    .menu-btn span {

        transition:
            0.3s ease;

    }


    .menu-btn.active
    span:nth-child(1) {

        transform:

            translateY(7px)
            rotate(45deg);

    }


    .menu-btn.active
    span:nth-child(2) {

        opacity: 0;

    }


    .menu-btn.active
    span:nth-child(3) {

        transform:

            translateY(-7px)
            rotate(-45deg);

    }


    .booking-layout {

        grid-template-columns:
            1fr
            0.75fr;

    }


    .booking-image {

        min-height:
            700px;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media
(max-width: 750px) {


    .header {

        height: 80px;

    }


    .navbar {

        width: 90%;

    }


    .logo {

        width: 75px;

    }


    .reservation-btn {

        display: none;

    }


    /* HERO */

    .booking-hero {

        min-height:
            620px;

        background-position:
            58% center;

    }


    .booking-hero-content {

        width: 88%;

    }


    .booking-hero-content h1 {

        font-size:
            4rem;

    }


    /* BOOKING */

    .booking-section {

        padding:

            70px
            7%
            85px;

    }


    .booking-layout {

        grid-template-columns:
            1fr;

    }


    .booking-image {

        min-height:
            500px;

        order: -1;

    }


    .form-row,
    .booking-options,
    .date-fields {

        grid-template-columns:
            1fr;

    }


    .calendar-days {

        gap:
            3px;

    }


    .calendar-days button {

        border-radius:
            7px;

        font-size:
            9px;

    }


    /* NOTE */

    .booking-note {

        flex-direction:
            column;

        align-items:
            flex-start;

    }


    .booking-contact-links {

        text-align: left;

    }


    /* FOOTER */

    .footer-container {

        grid-template-columns:
            1fr;

        gap: 40px;

    }


    .social-links {

        flex-direction: row;

    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media
(max-width: 430px) {


    .booking-hero {

        min-height:
            570px;

    }


    .booking-hero-content h1 {

        font-size:
            3.3rem;

    }


    .booking-heading h2 {

        font-size:
            2.6rem;

    }


    .calendar-header {

        grid-template-columns:
            35px
            1fr
            35px;

    }


    .calendar-header h3 {

        font-size:
            18px;

    }


    .calendar-days button {

        font-size:
            8px;

    }


    .booking-image {

        min-height:
            400px;

    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media
(prefers-reduced-motion: reduce) {


    * {

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;

        scroll-behavior:
            auto !important;

    }


    .booking-hero-content,
    .reveal {

        opacity: 1;

        transform: none;

    }

}