/* Visithuru Theme Final Transitions & Global Stylesheet */

:root {
    --brand-terracotta: #C86D51;
    --brand-sage: #4A6B5D;
    --brand-charcoal: #1A1A1A;
    --brand-cream: #FAFAFA;
    --brand-gold: #D4A373;
    --brand-sand: #F5F3EF;
}

body {
    background-color: #FAFAFA;
    color: #1A1A1A;
}

/* Glassmorphism Header */
header.glass-header {
    background: rgba(250, 250, 250, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

header.glass-header.scrolled {
    background: rgba(250, 250, 250, 0.96);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
}

/* Visithuru Smooth Hover Utility Class */
.smooth-hover {
    transition: all 0.3s ease;
}

/* Visithuru Fade In Section Class */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    visibility: hidden;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
    visibility: visible;
}

/* Navigation Links Hover Underline */
nav a {
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--brand-terracotta);
    transition: width 0.3s ease, left 0.3s ease;
}

nav a:hover::after, nav a.active-link::after {
    width: 100%;
    left: 0;
}

/* Dropdown Menu Transition */
.group:hover .group-hover\:block {
    animation: dropdownFadeIn 0.25s ease-out forwards;
}

@keyframes dropdownFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Drawer & Modal Smooth Transitions */
.drawer-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.drawer-content {
    transform: translateX(100%);
    transition: transform 0.35s ease;
}

.drawer-content.active {
    transform: translateX(0);
}

.modal-box {
    opacity: 0;
    transform: translate(-50%, -45%) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal-box.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Heartbeat Animation */
@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(0.95); }
    75% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.animate-heartbeat {
    animation: heartBeat 0.45s ease;
}

/* Smooth Base Page Fade In Animation */
body {
    background-color: #FAFAFA;
    color: #1A1A1A;
    animation: pageFadeIn 0.4s ease-out forwards;
}

@keyframes pageFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Dynamic WordPress Submenu & Active Styles */
.menu-item-has-children {
    position: relative;
}

.menu-item-has-children > .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background-color: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;
    padding: 0.5rem 0;
    z-index: 50;
    border: 1px solid #F3F4F6;
}

.menu-item-has-children:hover > .sub-menu {
    display: block;
    animation: dropdownFadeIn 0.25s ease-out forwards;
}

.sub-menu li {
    list-style: none;
}

.sub-menu li a {
    display: block;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    color: #374151;
    border: none !important;
}

.sub-menu li a:hover {
    background-color: #FAFAFA;
    color: var(--brand-terracotta);
}

