/* =========================================
   WoodNest Inspired Hero & Nav - Premium UI
   ========================================= */

/* --- 1. Global Reset & Fonts --- */
/* (Fonts managed globally in style.css) */

:root {
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-blur: 20px;
    --accent-color: #ffffff;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --card-bg-dark: rgba(20, 30, 35, 0.6);
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-premium {
    /* font-family: managed globally */
    position: relative;
    height: 100vh;
    background: #fcf0f0;
    overflow: hidden;
    color: white;
    animation: heroFadeIn 1.2s ease-out forwards; /* Smooth global entry */
}

/* Optimization for potentially heavy glass/video elements */
.hero-video-wrapper,
.glass-widget-card,
.hero-desc {
    will-change: transform, opacity, backdrop-filter;
    transform: translateZ(0); /* Force GPU */
}

/* --- 2. Video Background & Overlay --- */
.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(185, 185, 185, 0.27) 10%,
        rgba(214, 209, 214, 0.2) 100%
    );
    z-index: 1;
}

/* --- 3. The "Frame" Layout --- */
.hero-frame-wrapper {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid var(--glass-border);
    border-radius: 30px; /* Slightly smaller radius for tighter frame */
    z-index: 10;
    pointer-events: none; /* Let clicks pass through to nav if needed */
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

/* Allow interaction with content inside the frame */
.hero-content {
    pointer-events: auto;
    padding-top: 80px; /* Space for Nav */
}

/* --- 4. Navigation (Glass Style) --- */
.navbar-glass {
    background: transparent !important;
    padding-top: 40px !important;
    transition: all 0.3s ease;
}

/* Organic "Nature Leaf" Background for Logo */
.navbar-glass .navbar-brand {
    background: #fff2ec;
    padding: 20px 25px; /* Increased vertical padding to keep container tall */
    border-radius: 0px 40px 0px 40px; /* Leaf Shape */
    margin-right: 25px;
    border: none;
    transition: all 0.3s ease;
}

.navbar-glass .navbar-brand img {
    max-height: 82px;
    width: auto;
    padding: 0.8rem;
    margin-right: 2px;
    @media (max-width: 1200px) {
        max-height: 70px;
        padding: 0.8rem;
    }
}

.navbar-glass .navbar-brand:hover {
    border-radius: 4px;
}

.navbar-glass .navbar-nav .nav-link {
    color: #ffffff !important; /* Yellow for inactive */
    font-weight: 500;
    font-size: 1.25rem; /* Increased size */
    padding: 10px 20px;
    transition: color 0.3s;
    @media (max-width: 1400px) {
        font-size: 1rem;
        padding: 10px;
    }
}

.navbar-glass .navbar-nav .nav-link:hover,
.navbar-glass .navbar-nav .nav-link.active {
    color: #ff6820 !important;
    background: none !important;
    -webkit-text-fill-color: #ff6820 !important;
}

/* Custom 'Book Now' style button for Contact */
.navbar-glass .btn-primary {
    background: rgba(255, 255, 255, 0.1); /* Subtle Glass */
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    padding: 10px 15px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    transition: all 0.4s ease;
    box-shadow: none; /* Clean look */
}

.navbar-glass .btn-primary:hover {
    background: #ffffff;
    color: #0f2027; /* Dark text on white */
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4); /* Soft white glow */
}

.navbar-glass .btn-primary i {
    transition: margin 0.3s ease;
}

.navbar-glass .btn-primary:hover i {
    margin-left: 5px; /* Subtle arrow nudge */
}

/* --- 5. Typography (Left Side) --- */
.brand-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #ffca28; /* Gold/Yellow accent */
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mini-logo {
    width: 24px;
    height: auto;
}

/* Use specific selector to override generic h1 styles */
.hero-premium .hero-title {
    font-size: 7.5rem;
    line-height: 1;
    font-weight: 700; /* Outfit Bold */
    margin-bottom: 0;
    text-transform: capitalize;
    letter-spacing: -2px;
    /* font-family: managed globally */
    /* color: #ffe0fe !important; */
    color: #fff !important;

    text-shadow:
        0 4px 10px rgba(0, 0, 0, 0.15),
        0 10px 30px rgba(0, 0, 0, 0.15);
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
}

/* Medium screens (Laptops/Large Tablets) */

.hero-title span {
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* --- 6. Bottom Left Info --- */
.hero-desc {
    line-height: 1.6;
    /* color: #492edf; */
    color: #0d7720;
    margin-bottom: 0;
    background: rgba(255, 255, 255);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
    /* Added for animation smoothness */
    transition:
        backdrop-filter 0.3s ease,
        -webkit-backdrop-filter 0.3s ease;
    backface-visibility: hidden;
    isolation: isolate;
    position: relative;
    z-index: 1;
}

/* Avatar Group Styling */
.avatar-group {
    display: flex;
    align-items: center;
}

.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #0f2027; /* Match hero bg color for cutout effect */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    margin-left: -12px; /* Overlap */
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.avatar-circle:first-child {
    margin-left: 0;
}

.review-panel {
    background: rgba(255, 255, 255, 0.05); /* Very subtle glass */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 50px; /* Pill shape */
    display: inline-flex;
    width: fit-content;
}

.stars {
    color: #ffff0d; /* Star Color */
}

/* --- 7. Bottom Right Widget (The Glass Card) --- */
.hero-widget-container {
    position: relative;
    /* top: -20px; Removed for About section alignment */
    z-index: 15;
}

@media (min-width: 992px) and (max-width: 1200px) {
    .hero-widget-container {
        position: relative;
        top: -10px;
        margin-bottom: 0px;
        padding-right: 2rem !important;
    }

    .glass-widget-card {
        max-width: 80% !important; /* Narrower card */
        margin: 0 0 0 auto !important; /* Align right */
        border-radius: 0px 100px 0px 100px !important; /* Smaller leaf shape */
    }

    .widget-item {
        min-height: 240px !important; /* Shorter height */
    }

    .widget-content-wrapper {
        padding: 15px !important; /* Tighter padding */
        gap: 10px !important;
    }

    .widget-info h5 {
        font-size: 1.2rem !important; /* Smaller text */
    }

    .widget-info p {
        font-size: 0.8rem !important;
    }

    .widget-price .price-value {
        font-size: 1.2rem !important;
        padding-left: 2rem !important;
    }

    .btn-reserve {
        padding: 5px 12px !important;
        font-size: 0.75rem !important;
    }

    .glass-widget-card .owl-dots {
        margin-top: 5px !important;
    }
}

.glass-widget-card {
    /* Asymmetric organic 'leaf' shape */
    border-radius: 0px 150px 0px 150px;
    border: 1px solid rgba(255, 255, 255, 0.01);
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    max-width: 90%; /* Reduce width */
    margin: 20px 0 20px auto;
}

@media (max-width: 1200px) {
    .glass-widget-card {
        border-radius: 0px 80px 0px 80px;
        max-width: 100%;
    }
}

/* Hover effect: Lift + Green Neon Glow + Border Light up */
.glass-widget-card:hover {
    transform: scale(1.03);
    /* The orange Brand color glow */
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 126, 1, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    border-color: #d860b4; /* Solid orange border on hover */
}

/* Holographic Shine Sweep Effect */
.glass-widget-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -200%; /* Start far left */
    width: 200%; /* Wide beam */
    height: 100%;
    background: linear-gradient(
        115deg,
        transparent,
        transparent,
        rgba(255, 255, 255, 0.4),
        /* Bright flash in middle */ transparent,
        transparent
    );
    transform: skewX(-20deg);
    transition: none; /* No transition on reset */
    pointer-events: none;
    z-index: 10;
}

.glass-widget-card:hover::after {
    left: 200%; /* Move to far right */
    transition: left 0.7s ease-in-out; /* Smooth wipe */
}

/* Inner elements of the widget */
.widget-item {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    overflow: hidden;
    min-height: 300px; /* Reduced height from 420px */
    justify-content: flex-end;
}

.widget-info h5 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.widget-info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.widget-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    z-index: 1;
}

.widget-content-wrapper {
    position: relative;
    z-index: 2;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.widget-actions {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 16px;
    backdrop-filter: blur(1px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.date-selector {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.date-selector span {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 3px;
}

.date-selector strong {
    font-size: 1rem;
    font-weight: 600;
}

.widget-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.widget-price .price-label {
    display: hidden; /* Hide label if needed, or style it */
    display: none;
}

.widget-price .price-value {
    font-size: 1.5rem;
    font-weight: 700;
    padding-left: 4rem;
}

.btn-reserve {
    background: #fff;
    color: #000;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: transform 0.2s;
}

.btn-reserve:hover {
    transform: scale(1.05);
    background: #f0f0f0;
    color: #000;
}

/* --- Owl Carousel Customization for Widget --- */
.glass-widget-card .owl-nav {
    display: none; /* Hide arrows if user prefers clean look, or style them */
}

/* Position dots at bottom of card */
.glass-widget-card .owl-dots {
    text-align: center;
    margin-top: 15px;
}

.glass-widget-card .owl-dot span {
    width: 4px;
    height: 4px;
    margin: 3px;
    background: rgba(255, 255, 255, 0.3) !important;
    display: block;
    transition: opacity 0.2s ease;
    border-radius: 30px;
}

.glass-widget-card .owl-dot.active span {
    background: #fff !important;
    transform: scale(1.2);
}

/* Sound Button Styling */
.btn-sound-toggle {
    background: rgba(60, 60, 60, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    cursor: pointer;
    backdrop-filter: blur(5px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-sound-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* ===================================
   Custom Hamburger Menu Icon
   =================================== */

/* Custom toggler button */
.custom-toggler {
    border: none;
    padding: 8px 12px;
    background: transparent !important;
    cursor: pointer;
    position: relative;
    z-index: 1000;
    transition: all 0.3s ease;
}

.custom-toggler:focus {
    outline: none;
    box-shadow: none;
}

/* Hamburger icon container */
.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    position: relative;
}

/* Individual bars */
.hamburger-icon .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #ff6820; /* Brand Orange */
    border-radius: 3px;
    transition: all 0.3s ease;
    position: relative;
}

/* Specific visibility for light backgrounds / sticky nav / inner pages */
.navbar-light .hamburger-icon .bar,
.nav-sticky .hamburger-icon .bar,
body.inner-page .hamburger-icon .bar {
    background-color: #282f34 !important; /* Dark Slate for visibility */
}

/* Animation when menu is open */
.custom-toggler[aria-expanded="true"] .hamburger-icon .bar:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
    background-color: #ff6820 !important;
}

.custom-toggler[aria-expanded="true"] .hamburger-icon .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.custom-toggler[aria-expanded="true"] .hamburger-icon .bar:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
    background-color: #ff6820 !important;
}

/* Hover effect */
.custom-toggler:hover .hamburger-icon .bar {
    background-color: #ff6820;
}

.navbar-light .custom-toggler:hover .hamburger-icon .bar,
.nav-sticky .custom-toggler:hover .hamburger-icon .bar,
body.inner-page .custom-toggler:hover .hamburger-icon .bar {
    background-color: #000 !important;
}

/* Mobile navbar background when open */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(15, 32, 39, 0.98);
        margin-top: 15px;
        border-radius: 12px;
        padding: 20px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .navbar-light .navbar-collapse,
    .bg-white .navbar-collapse {
        background: #ffffff;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    /* Ensure menu items are visible */
    .navbar-nav .nav-link {
        padding: 12px 20px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-light .navbar-nav .nav-link,
    .bg-white .navbar-nav .nav-link {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }

    /* Dropdown styling on mobile */
    .dropdown-menu {
        background: rgba(20, 30, 35, 0.95) !important;
        border: none;
        margin-left: 20px !important;
    }

    .navbar-light .dropdown-menu,
    .bg-white .dropdown-menu {
        background: #f8f9fa !important;
    }

    .dropdown-item {
        color: rgba(255, 255, 255, 0.8) !important;
        padding: 10px 20px !important;
    }

    .navbar-light .dropdown-item,
    .bg-white .dropdown-item {
        color: #555555 !important;
    }

    .dropdown-item:hover {
        background: rgba(255, 104, 32, 0.1) !important;
        color: #ff6820 !important;
    }

    .navbar-light .dropdown-item:hover,
    .bg-white .dropdown-item:hover {
        background: rgba(255, 104, 32, 0.1) !important;
        color: #ff6820 !important;
    }

    /* Contact button on mobile */
    .navbar-collapse .btn-primary {
        margin-top: 15px;
        width: 100%;
        text-align: center;
    }
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .navbar-glass {
        background: #fff2ec !important;
        position: fixed !important;
        padding: 8px 15px !important;
    }

    /* Match logo size to other pages on mobile */

    /* On mobile, navbar-glass is light — so bars must be dark for visibility */
    .navbar-glass .hamburger-icon .bar {
        background-color: #282f34 !important;
    }

    /* Keep hover consistent */
    .navbar-glass .custom-toggler:hover .hamburger-icon .bar {
        background-color: #ff6820 !important;
    }

    .hero-premium {
        height: auto;
        min-height: 100vh;
    }

    .hero-frame-wrapper {
        position: relative;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border: none;
        border-radius: 0;
        height: auto;
        min-height: 100vh;
        margin: 0;
    }

    .hero-content {
        padding-top: 100px !important;
        padding-bottom: 50px !important;
        padding-left: 25px !important;
        padding-right: 25px !important;
    }

    .hero-premium .hero-title {
        font-size: 6rem !important;
        padding-top: 1rem !important;
        text-align: center;
        letter-spacing: -1px;
    }

    .hero-text-content {
        text-align: center;
        margin-bottom: 40px;
    }

    /* Mobile description section */
    .hero-desc {
        font-size: 1rem;
        text-align: center;
        margin-bottom: 20px;
        padding: 12px 20px;
    }

    .hero-desc br {
        display: none; /* Remove line breaks on mobile */
    }

    /* Review panel adjustments */
    .review-panel {
        display: flex;
        flex-direction: column;
        padding: 15px;
        text-align: center;
        margin: 0 auto;
        max-width: 300px;
    }

    .review-panel .avatar-group {
        justify-content: center;
        margin-bottom: 10px;
    }

    .review-text-meta {
        text-align: center;
    }

    /* Widget container for mobile */
    .hero-widget-container {
        margin-top: 20px;
        padding-right: 0 !important;
        padding-left: 0 !important;
        padding-bottom: 20px !important;
        top: 0;
        margin-bottom: 0;
    }

    .glass-widget-card {
        margin: 0 20px;
        max-width: 100%;
        border-radius: 0px 60px 0px 60px; /* Smaller radius for mobile */
    }

    .widget-item {
        min-height: 250px; /* Slightly smaller on mobile */
    }

    .widget-content-wrapper {
        padding: 15px;
    }

    .widget-info h5 {
        font-size: 1.25rem;
    }

    .widget-info p {
        font-size: 0.85rem;
    }

    .widget-price .price-value {
        font-size: 1.25rem;
        padding-left: 2rem;
    }

    .btn-reserve {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575px) {
    .hero-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .hero-premium .hero-title {
        font-size: 3.5rem !important;
        padding-top: 0.5rem !important;
    }

    .hero-title br {
        display: block; /* Keep line breaks on very small screens for better readability */
    }

    .hero-desc {
        font-size: 0.95rem;
    }

    .glass-widget-card {
        margin: 0 15px;
        border-radius: 0px 40px 0px 40px; /* Even smaller radius for tiny screens */
    }

    .widget-item {
        min-height: 220px;
    }

    .widget-info h5 {
        font-size: 1.1rem;
    }

    .widget-info p {
        font-size: 0.8rem;
    }

    .avatar-circle {
        width: 35px;
        height: 35px;
        font-size: 0.65rem;
    }

    .review-panel {
        padding: 12px;
        max-width: 280px;
    }
}

/* Landscape mode for mobile devices */
@media (max-width: 991px) and (orientation: landscape) {
    .hero-premium {
        height: auto;
    }

    .hero-content {
        padding-top: 80px !important;
        padding-bottom: 30px !important;
    }

    .widget-item {
        min-height: 200px;
    }
}

/* --- Sticky Navigation (On Scroll) --- */
.navbar-glass.nav-sticky {
    background: #fff2ec !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding-top: 15px !important;
    padding-bottom: 15px !important;
}

/* Change link colors on white background (Desktop only) */
@media (min-width: 992px) {
    .navbar-glass.nav-sticky .navbar-nav .nav-link {
        color: #555555 !important;
    }

    .navbar-glass.nav-sticky .navbar-nav .nav-link:hover,
    .navbar-glass.nav-sticky .navbar-nav .nav-link.active {
        color: #ff6820 !important;
        background: none !important;
        text-shadow: none;
        -webkit-text-fill-color: #ff6820 !important;
    }
}

/* Adjust button transparency/color on white background */
.navbar-glass.nav-sticky .btn-primary {
    background: #ff6820; /* Solid green button */
    color: #ffffff;
    border: none;
    box-shadow: 0 5px 15px rgba(110, 7, 93, 0.1);
}

.navbar-glass.nav-sticky .btn-primary:hover {
    background: #249d63;
    color: #fff;
    box-shadow: 0 8px 20px rgba(233, 94, 175, 0);
}

/* Mobile-specific adjustments for bottom-left section */
@media (max-width: 991px) {
    .hero-bottom-left {
        padding-left: 20px !important;
        padding-right: 20px !important;
        padding-bottom: 30px !important;
        margin-top: 30px;
    }
}

@media (max-width: 575px) {
    .hero-bottom-left {
        padding-left: 15px !important;
        padding-right: 15px !important;
        padding-bottom: 20px !important;
    }
}
