/*
Theme Name: Saffron Custom
Theme URI: https://saffronhospitality.com
Author: Saffron Team
Author URI: https://saffronhospitality.com
Description: Custom WordPress Theme for Saffron Hospitality UAE.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: saffron_custom
Tags: custom-theme, hospitality, responsive-layout
*/

/* ─── Global Scrollbar & Layout Stability ─── */
html,
body {
    overflow-x: hidden !important;
    width: 100%;
}

.main-content {
    overflow: hidden;
    width: 100%;
}

/* Prevent vertical scroll jumps caused by transformed AOS elements during initial page render */
[data-aos] {
    will-change: transform, opacity;
}

/* ─── What We Do Link Styling ─── */
a.wwd-item,
a.wwd-item:hover,
a.wwd-item:focus {
    text-decoration: none !important;
    color: inherit;
}

/* ─── Swiper Pagination Bullets Enhancement ─── */
.wwd-pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    margin-top: 24px !important;
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    z-index: 10 !important;
}

.wwd-pagination .swiper-pagination-bullet {
    width: 10px !important;
    height: 10px !important;
    min-width: 10px !important;
    min-height: 10px !important;
    margin: 0 !important;
    background: #000000 !important;
    opacity: 0.25 !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    cursor: pointer !important;
}

.wwd-pagination .swiper-pagination-bullet-active {
    background: #000000 !important;
    opacity: 1 !important;
    transform: scale(1.25) !important;
}

/* ─── Contact Form 7 Seamless Integration ─── */
.form-right .wpcf7 {
    width: 100%;
}

.form-right .wpcf7-form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form-right .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.form-right .wpcf7-not-valid-tip {
    font-size: 13px;
    margin-top: 6px;
    color: #c04838;
}

.form-right .wpcf7-response-output {
    margin: 1.5rem 0 0 0 !important;
    padding: 1rem !important;
    border-radius: 8px !important;
    border: 1px solid #c04838 !important;
    color: #000000 !important;
    font-size: 14px !important;
}

.form-right .wpcf7-spinner {
    margin-left: 10px;
}

/* ─── Header Navigation Integration & Dropdowns ─── */
.header-wrap,
.header-nav {
    overflow: visible !important;
}



.header-menu li {
    margin: 0;
    padding: 0;
    list-style: none;
    position: relative;
}

.header-menu li a,
.header-menu a {
    display: inline-block;
    padding: 0;
    color: var(--light-white, rgba(255, 255, 255, 0.7));
    font-family: var(--font-family-1);
    font-size: var(--text-20);
    font-weight: 400;
    line-height: 150%;
    letter-spacing: -0.03em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.header-menu li.current-menu-item>a,
.header-menu li.current_page_item>a,
.header-menu li.current-menu-ancestor>a,
.header-menu li a:hover,
.header-menu a:hover,
.header-menu li a:focus-visible,
.header-menu a:focus-visible {
    color: #ffffff !important;
    text-decoration: underline !important;
    text-underline-offset: 0.35em !important;
    text-decoration-thickness: 1px !important;
    font-weight: 700 !important;
}

/* Submenu Dropdown Indicator & Box — chevron sits beside label without breaking equal menu gaps */
.header-menu li.menu-item-has-children {
    padding-right: 0;
}

.header-menu li.menu-item-has-children>a {
    padding-right: 1.1em;
}

.header-menu li.menu-item-has-children::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0.7em;
    height: 0.55em;
    background-image: url('assets/images/dropdown.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
    transition: transform 0.25s ease, opacity 0.25s ease;
    pointer-events: none;
}

.header-menu li.menu-item-has-children:hover::after,
.header-menu li.menu-item-has-children.current-menu-ancestor::after {
    transform: translateY(-50%) rotate(180deg);
    opacity: 1;
}

.header-menu ul.sub-menu {
    position: absolute;
    top: 150%;
    left: 0;
    min-width: 250px;
    padding: 2.5vw;
    margin: 1px 0 0 0;
    background: rgba(56, 62, 25, 0.9);
    box-shadow: 0px 3px 4.4px 3px rgba(0, 0, 0, 0.07);
    border-radius: 11px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1.25vw;
}

.header-menu ul.sub-menu::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.header-menu li.menu-item-has-children:hover>ul.sub-menu,
.header-menu li.menu-item-has-children:focus-within>ul.sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.header-menu ul.sub-menu li {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border-bottom: 1.5px solid #DDDCD0;
}

.header-menu ul.sub-menu li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5vw;
    padding: 1vw 0 0.5vw 0;
    color: #DDDCD0 !important;
    font-size: var(--text-24) !important;
    font-weight: 400 !important;
    line-height: 130% !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    white-space: nowrap;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.header-menu ul.sub-menu li a::after {
    content: "";
    display: inline-block;
    width: 23px;
    height: 12px;
    background-image: url('assets/images/right-arrow.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.8;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.header-menu ul.sub-menu li a:hover,
.header-menu ul.sub-menu li.current-menu-item>a {
    color: #ffffff !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.header-menu ul.sub-menu li a:hover::after,
.header-menu ul.sub-menu li.current-menu-item>a::after {
    transform: translateX(4px);
    opacity: 1;
}

/* ─── Mobile Drawer Submenu (Bootstrap-like accordion) ─── */
.navbar-nav>li.menu-item-has-children {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
}

.navbar-nav>li.menu-item-has-children>a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-right: 28px;
}

.navbar-nav>li.menu-item-has-children>a::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 12px;
    height: 8px;
    margin-top: -4px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23DDDCD0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 0.25s ease;
}

.navbar-nav>li.menu-item-has-children.is-open>a::after {
    transform: rotate(180deg);
}

.navbar-nav ul.sub-menu {
    display: none;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    margin: 0;
    padding: 14px 0 4px 16px;
    list-style: none;
    border-left: 1px solid rgba(221, 220, 208, 0.25);
}

.navbar-nav>li.menu-item-has-children.is-open>ul.sub-menu {
    display: flex;
}

.navbar-nav ul.sub-menu li a {
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

.navbar-nav ul.sub-menu li.current-menu-item>a,
.navbar-nav ul.sub-menu li a:hover,
.navbar-nav ul.sub-menu li a:focus-visible {
    color: #ffffff;
    font-weight: 700;
}

/* ─── Footer WordPress Nav & CF7 Newsletter Integration ─── */
.footer-nav ul,
.footer-nav ul.menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.625vw 3.542vw;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
}

.footer-nav li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-nav li a,
.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-family-1);
    font-size: var(--text-20);
    font-weight: 400;
    line-height: 150%;
    letter-spacing: -0.03em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-nav li.current-menu-item>a,
.footer-nav li.current_page_item>a,
.footer-nav li a:hover,
.footer-nav a:hover,
.footer-nav li a:focus-visible,
.footer-nav a:focus-visible {
    color: #ffffff !important;
    font-weight: 700 !important;
    opacity: 1 !important;
}

.footer-subscribe .wpcf7 {
    width: 100%;
}

.footer-subscribe .wpcf7-form {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
    position: relative;
}

.footer-subscribe .footer-subscribe-form-wrap {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

.footer-subscribe .wpcf7-form-control-wrap {
    flex: 1;
    width: 100%;
}

.footer-subscribe .footer-email {
    width: 100%;
}

/* ─── Hero Video & Text Timeline Sequence ─── */
.intro-video-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100svh;
    background: #0d1109;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.85s linear;
}

.intro-video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Step 0: Initial State (0.0s - 3.0s) - ONLY VIDEO VISIBLE, NO HIDING ANIMATION */
html.hero-sequence-active .header-wrap {
    z-index: 1000005 !important;
    opacity: 0 !important;
    transform: translateY(-20px) !important;
    background: rgba(30, 36, 19, 0.15) !important;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    transition: none !important;
    pointer-events: none;
}

html.hero-sequence-active .hero-content {
    z-index: 1000002 !important;
}

html.hero-sequence-active .hero-title,
html.hero-sequence-active .hero-text,
html.hero-sequence-active .hero-content .btn-promise {
    opacity: 0 !important;
    transform: translateY(30px) !important;
    transition: none !important;
}

/* Step 1: Navigation Reveal (~3.0s - 4.5s) - Header fades in & shifts from light to final color */
html.step-nav-revealed .header-wrap {
    opacity: 1 !important;
    transform: translateY(0) !important;
    background: var(--green) !important;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
        background 1.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
    pointer-events: auto;
}

/* Step 2: Hero Content Entrance (~4.5s - 6.5s) - Text appears directly over video */
html.step-hero-revealed .hero-title {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 1.0s cubic-bezier(0.16, 1, 0.3, 1), transform 1.0s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

html.step-hero-revealed .hero-text {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s !important;
}

html.step-hero-revealed .hero-content .btn-promise {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s !important;
}

/* Step 3: Seamless Zero-Jerk Crossfade (~6.5s onward) */
html.step-hero-completed .intro-video-overlay {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 1.5s linear;
}

/* ─── Mobile Responsiveness & Drawer Navigation ─── */
html,
body {
    overflow-x: hidden;
    width: 100%;
}

.menu-toggle.bar-toggler {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1000010;
}

.menu-toggle .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
}

.menu-toggle .hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-toggle.opened .hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.opened .hamburger span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.opened .hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Drawer Container */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000015;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

html.nav-open .nav-overlay {
    opacity: 1;
    visibility: visible;
}

.navbar-collapse {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: var(--green);
    z-index: 1000020;
    padding: 80px 28px 36px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4);
}

.navbar-collapse.show {
    transform: translateX(0);
}

.drawer-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 8px;
}

.navbar-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navbar-nav li a {
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-family-1);
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

.navbar-nav li a:hover,
.navbar-nav li.current-menu-item>a {
    color: #ffffff;
    font-weight: 700;
}

.btn-contact-drawer {

    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 14px 20px !important;
    box-sizing: border-box !important;
    font-size: 14px !important;
}

/* Breakpoint Media Queries */
@media (max-width: 991.98px) {

    .header-menu,
    .header-wrap .btn-contact {
        display: none !important;
    }

    .menu-toggle.bar-toggler {
        display: flex !important;
    }

    .header-nav {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .hero-banner {
        min-height: 100dvh;
        padding-top: 110px;
        padding-bottom: 60px;
    }

    .hero-title {
        font-size: clamp(2.2rem, 7.5vw, 3.8rem) !important;
        line-height: 1.15 !important;
        letter-spacing: -0.02em !important;
        margin-bottom: 1.25rem !important;
    }

    .hero-text {
        font-size: clamp(1rem, 4vw, 1.25rem) !important;
        line-height: 1.5 !important;
        margin-bottom: 2rem !important;
    }

    .btn-promise {
        width: 100% !important;
        justify-content: center !important;
        padding: 14px 28px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 575.98px) {
    .header-nav .navbar-brand img {
        width: 110px;
        height: auto;
    }

    .hero-title {
        font-size: clamp(1.85rem, 8.5vw, 2.6rem) !important;
    }

    .hero-text {
        font-size: 0.98rem !important;
    }
}

/* FAQs menu item exact casing styling */
.menu-item-faqs,
.menu-item-faqs a,
li.menu-item-faqs a {
    text-transform: none !important;
}