/**
 * Dalia Catering — luxury polish layer
 * Soft motion & typography refinements. Does not redesign the theme.
 */

:root {
    --lux-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --lux-duration: 0.65s;
    --lux-duration-fast: 0.4s;
    --lux-gold: #ad9d86;
    --lux-rise: 22px;
}

/* ---------- Base ---------- */
html {
    scroll-behavior: smooth;
}

::selection {
    background-color: rgba(173, 157, 134, 0.35);
    color: #1a1a1a;
}

::-moz-selection {
    background-color: rgba(173, 157, 134, 0.35);
    color: #1a1a1a;
}

/* ---------- Typography ---------- */
.section-title h5 {
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 13px;
}

.section-title h2.title,
.row-title h2.title {
    letter-spacing: 0.03em;
}

.hero-slide-title {
    letter-spacing: 0.06em !important;
}

body,
.ttm-row p,
.title-desc p {
    line-height: 1.75;
}

/* ---------- Buttons & links ---------- */
.ttm-btn {
    transition:
        background-color var(--lux-duration-fast) var(--lux-ease),
        border-color var(--lux-duration-fast) var(--lux-ease),
        color var(--lux-duration-fast) var(--lux-ease),
        transform var(--lux-duration-fast) var(--lux-ease),
        box-shadow var(--lux-duration-fast) var(--lux-ease),
        background-position 0.5s var(--lux-ease) !important;
    letter-spacing: 0.04em;
}

.ttm-btn:hover,
.ttm-btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.ttm-btn.ttm-icon-btn-right,
.ttm-btn.ttm-icon-btn-left {
    transition:
        background-color var(--lux-duration-fast) var(--lux-ease),
        border-color var(--lux-duration-fast) var(--lux-ease),
        color var(--lux-duration-fast) var(--lux-ease),
        transform var(--lux-duration-fast) var(--lux-ease),
        box-shadow var(--lux-duration-fast) var(--lux-ease) !important;
}

.hero-slide-btn {
    transition:
        background-color var(--lux-duration-fast) var(--lux-ease),
        border-color var(--lux-duration-fast) var(--lux-ease),
        color var(--lux-duration-fast) var(--lux-ease),
        transform var(--lux-duration-fast) var(--lux-ease),
        box-shadow var(--lux-duration-fast) var(--lux-ease) !important;
    letter-spacing: 0.08em;
}

.hero-slide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

nav.main-menu ul.menu > li > a,
nav.main-menu ul.menu .mega-submenu a {
    transition: color var(--lux-duration-fast) var(--lux-ease);
}

/* ---------- Header ---------- */
#site-header-menu .site-header-menu-inner,
#site-header-menu .ttm-stickable-header {
    transition:
        background-color var(--lux-duration-fast) var(--lux-ease),
        box-shadow var(--lux-duration-fast) var(--lux-ease),
        padding var(--lux-duration-fast) var(--lux-ease);
}

#site-header-menu .ttm-stickable-header.fixed-header {
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.14);
}

#site-header-menu .site-branding img {
    transition: opacity var(--lux-duration-fast) var(--lux-ease), transform var(--lux-duration-fast) var(--lux-ease);
}

/* ---------- Imagery ---------- */
.featured-imagebox .ttm-box-view-overlay,
.featured-imagebox .ttm-post-thumbnail,
.featured-imagebox .featured-thumbnail,
.featured-imagebox .ttm-featured-wrapper,
.featured-imagebox-blog .ttm-box-view-overlay,
.featured-imagebox-portfolio .ttm-box-view-overlay,
.featured-imagebox .ttm-box-view-content-inner,
.ttm-box-img {
    overflow: hidden;
}

.featured-imagebox img,
.featured-imagebox-blog img,
.featured-imagebox-portfolio img,
.featured-imagebox-team img,
.ttm-box-img img,
.latest-events-item img {
    transition: transform 0.9s var(--lux-ease), opacity 0.6s var(--lux-ease);
    will-change: transform;
}

.featured-imagebox:hover img,
.featured-imagebox-blog:hover img,
.featured-imagebox-portfolio:hover img,
.featured-imagebox-team:hover img,
.ttm-box-img:hover img,
.latest-events-item:hover img {
    transform: scale(1.04);
}

/* ---------- Scroll reveals ---------- */
.lux-reveal {
    opacity: 0;
    transform: translateY(var(--lux-rise));
    transition:
        opacity var(--lux-duration) var(--lux-ease),
        transform var(--lux-duration) var(--lux-ease);
    will-change: opacity, transform;
}

.lux-reveal.lux-visible {
    opacity: 1;
    transform: translateY(0);
}

.lux-reveal-delay-1 { transition-delay: 0.08s; }
.lux-reveal-delay-2 { transition-delay: 0.16s; }
.lux-reveal-delay-3 { transition-delay: 0.24s; }
.lux-reveal-delay-4 { transition-delay: 0.32s; }

/* Images entering viewport */
img.lux-img-reveal {
    opacity: 0;
    transition: opacity 0.8s var(--lux-ease);
}

img.lux-img-reveal.lux-visible {
    opacity: 1;
}

/* Page title soft entrance */
.ttm-page-title-row .page-title-heading,
.ttm-page-title-row .breadcrumb-wrapper {
    transition: opacity var(--lux-duration) var(--lux-ease), transform var(--lux-duration) var(--lux-ease);
}

/* Back to top */
#totop {
    transition:
        opacity var(--lux-duration-fast) var(--lux-ease),
        transform var(--lux-duration-fast) var(--lux-ease),
        background-color var(--lux-duration-fast) var(--lux-ease) !important;
}

#totop:hover {
    transform: translateY(-3px);
}

/* Form focus polish */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea,
select {
    transition:
        border-color var(--lux-duration-fast) var(--lux-ease),
        box-shadow var(--lux-duration-fast) var(--lux-ease),
        background-color var(--lux-duration-fast) var(--lux-ease);
}

input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(173, 157, 134, 0.2);
    outline: none;
}

/* ---------- Certifications (footer) ---------- */
.widget-footer .footer-logo {
    margin-bottom: 18px;
}

.lux-certifications {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 8px auto 36px;
    max-width: 420px;
    padding: 0 16px;
}

.lux-cert-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.lux-cert-badges img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 50%;
    opacity: 0.92;
    transition:
        opacity var(--lux-duration-fast) var(--lux-ease),
        transform var(--lux-duration-fast) var(--lux-ease),
        box-shadow var(--lux-duration-fast) var(--lux-ease);
    box-shadow: 0 0 0 1px rgba(173, 157, 134, 0.25);
}

.lux-cert-badges img:hover {
    opacity: 1;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(173, 157, 134, 0.45);
}

.lux-cert-text {
    margin: 0;
    font-family: 'Cormorant', 'sinhala_mnregular', serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #5a5348;
    text-align: center;
    line-height: 1.4;
}

.lux-cert-text::before,
.lux-cert-text::after {
    content: '';
    display: inline-block;
    vertical-align: middle;
    width: 28px;
    height: 1px;
    margin: 0 12px;
    background: linear-gradient(90deg, transparent, var(--lux-gold), transparent);
}

@media (max-width: 575px) {
    .lux-cert-badges {
        gap: 18px;
    }

    .lux-cert-badges img {
        width: 60px;
        height: 60px;
    }

    .lux-cert-text {
        font-size: 12px;
        letter-spacing: 0.1em;
    }

    .lux-cert-text::before,
    .lux-cert-text::after {
        width: 16px;
        margin: 0 8px;
    }
}

/* ---------- Christmas mood: snowfall + festive menu button ---------- */
.dalia-snowfall {
    position: fixed;
    inset: 0;
    z-index: 997;
    pointer-events: none;
    overflow: hidden;
}

.dalia-snowfall span {
    position: absolute;
    top: -12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.45);
    animation: dalia-snow-fall linear infinite;
    opacity: 0.55;
}

.dalia-snowfall span:nth-child(odd) {
    width: 4px;
    height: 4px;
    opacity: 0.35;
}

.dalia-snowfall span:nth-child(3n) {
    width: 8px;
    height: 8px;
    opacity: 0.7;
    background: rgba(244, 239, 230, 0.9);
}

.dalia-snowfall span:nth-child(1) { left: 4%; animation-duration: 11s; animation-delay: 0s; }
.dalia-snowfall span:nth-child(2) { left: 12%; animation-duration: 14s; animation-delay: -2s; }
.dalia-snowfall span:nth-child(3) { left: 18%; animation-duration: 10s; animation-delay: -5s; }
.dalia-snowfall span:nth-child(4) { left: 27%; animation-duration: 16s; animation-delay: -1s; }
.dalia-snowfall span:nth-child(5) { left: 35%; animation-duration: 12s; animation-delay: -7s; }
.dalia-snowfall span:nth-child(6) { left: 42%; animation-duration: 15s; animation-delay: -3s; }
.dalia-snowfall span:nth-child(7) { left: 49%; animation-duration: 11s; animation-delay: -8s; }
.dalia-snowfall span:nth-child(8) { left: 56%; animation-duration: 17s; animation-delay: -4s; }
.dalia-snowfall span:nth-child(9) { left: 63%; animation-duration: 13s; animation-delay: -6s; }
.dalia-snowfall span:nth-child(10) { left: 71%; animation-duration: 10s; animation-delay: -2.5s; }
.dalia-snowfall span:nth-child(11) { left: 78%; animation-duration: 14s; animation-delay: -9s; }
.dalia-snowfall span:nth-child(12) { left: 84%; animation-duration: 12s; animation-delay: -1.5s; }
.dalia-snowfall span:nth-child(13) { left: 91%; animation-duration: 16s; animation-delay: -5.5s; }
.dalia-snowfall span:nth-child(14) { left: 8%; animation-duration: 18s; animation-delay: -10s; }
.dalia-snowfall span:nth-child(15) { left: 22%; animation-duration: 13s; animation-delay: -3.5s; }
.dalia-snowfall span:nth-child(16) { left: 38%; animation-duration: 11s; animation-delay: -7.5s; }
.dalia-snowfall span:nth-child(17) { left: 53%; animation-duration: 15s; animation-delay: -0.5s; }
.dalia-snowfall span:nth-child(18) { left: 67%; animation-duration: 12s; animation-delay: -4.5s; }
.dalia-snowfall span:nth-child(19) { left: 81%; animation-duration: 17s; animation-delay: -8.5s; }
.dalia-snowfall span:nth-child(20) { left: 95%; animation-duration: 14s; animation-delay: -2.2s; }

@keyframes dalia-snow-fall {
    0% {
        transform: translate3d(0, -10vh, 0);
        opacity: 0;
    }
    12% {
        opacity: 0.7;
    }
    100% {
        transform: translate3d(28px, 105vh, 0);
        opacity: 0;
    }
}

.dalia-christmas-fab {
    position: fixed;
    left: 22px;
    bottom: 28px;
    z-index: 998;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px 13px 14px;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 20%, rgba(173, 157, 134, 0.28), transparent 42%),
        linear-gradient(145deg, #12352d 0%, #0a241f 55%, #1a1410 100%);
    color: #f7f1e6 !important;
    text-decoration: none !important;
    border: 1px solid rgba(198, 163, 99, 0.55);
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    animation:
        dalia-christmas-fab-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both,
        dalia-christmas-fab-glow 3.6s ease-in-out infinite;
}

.dalia-christmas-fab__icon {
    display: inline-flex;
    color: #d4b56a;
    filter: drop-shadow(0 0 6px rgba(212, 181, 106, 0.35));
    animation: dalia-flake-spin 10s linear infinite;
}

.dalia-christmas-fab__copy {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
}

.dalia-christmas-fab__label {
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.dalia-christmas-fab__year {
    font-size: 11px;
    font-weight: 500;
    color: #d4b56a;
    line-height: 1;
}

.dalia-christmas-fab__sparkle {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 82% 28%, rgba(255, 255, 255, 0.55) 0 1px, transparent 2px),
        radial-gradient(circle at 70% 72%, rgba(212, 181, 106, 0.7) 0 1px, transparent 2px),
        radial-gradient(circle at 22% 78%, rgba(255, 255, 255, 0.45) 0 1px, transparent 2px);
    animation: dalia-sparkle 2.8s ease-in-out infinite;
}

.dalia-christmas-fab:hover,
.dalia-christmas-fab:focus {
    transform: translateY(-3px);
    border-color: rgba(212, 181, 106, 0.9);
    box-shadow:
        0 16px 36px rgba(0, 0, 0, 0.32),
        0 0 0 1px rgba(212, 181, 106, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
    color: #fff !important;
}

@keyframes dalia-christmas-fab-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dalia-christmas-fab-glow {
    0%, 100% {
        box-shadow:
            0 10px 28px rgba(0, 0, 0, 0.28),
            inset 0 1px 0 rgba(255, 255, 255, 0.12);
    }
    50% {
        box-shadow:
            0 12px 32px rgba(0, 0, 0, 0.3),
            0 0 18px rgba(173, 157, 134, 0.22),
            inset 0 1px 0 rgba(255, 255, 255, 0.16);
    }
}

@keyframes dalia-flake-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes dalia-sparkle {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 1; }
}

@media (max-width: 991px) {
    .dalia-christmas-fab {
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        justify-content: center;
        padding: 15px 18px calc(15px + env(safe-area-inset-bottom, 0px));
        border: 0;
        border-top: 1px solid rgba(212, 181, 106, 0.4);
        border-radius: 0;
        box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.22);
        z-index: 1100;
        animation:
            dalia-christmas-fab-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both,
            dalia-christmas-fab-glow 3.6s ease-in-out infinite;
    }

    .dalia-christmas-fab:hover,
    .dalia-christmas-fab:focus {
        transform: none;
    }

    .dalia-christmas-fab__label {
        font-size: 13px;
    }

    .dalia-christmas-fab__year {
        font-size: 12px;
    }

    body {
        padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px));
    }

    #totop {
        bottom: calc(72px + env(safe-area-inset-bottom, 0px));
        right: 16px;
    }

    .dalia-snowfall span {
        opacity: 0.45;
    }
}

/* Sticky header on mobile / tablet */
@media (max-width: 1199px) {
    .ttm-stickable-header.fixed-header {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1111;
        background-color: #fff;
        box-shadow: 0 4px 28px rgba(0, 0, 0, 0.14);
    }

    .ttm-stickable-header.fixed-header .site-branding img.standardlogo {
        opacity: 0;
    }

    .ttm-stickable-header.fixed-header .site-branding img.stickylogo {
        opacity: 1;
    }

    .ttm-stickable-header.fixed-header .menubar-inner,
    .ttm-stickable-header.fixed-header .menubar-inner:before,
    .ttm-stickable-header.fixed-header .menubar-inner:after {
        background-color: #003029;
    }

    header.ttm-header-style-01 #site-header-menu .ttm-stickable-header.fixed-header {
        background-color: #fff;
    }

    /* Keep open mobile nav above the sticky bar */
    nav.main-menu.show {
        z-index: 1120;
    }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .lux-reveal,
    .lux-reveal.lux-visible,
    img.lux-img-reveal,
    img.lux-img-reveal.lux-visible,
    .ttm-btn,
    .ttm-btn:hover,
    .hero-slide-btn,
    .hero-slide-btn:hover,
    .featured-imagebox img,
    .featured-imagebox:hover img,
    .featured-imagebox-blog img,
    .featured-imagebox-blog:hover img,
    .featured-imagebox-portfolio img,
    .featured-imagebox-portfolio:hover img,
    .featured-imagebox-team img,
    .featured-imagebox-team:hover img,
    .ttm-box-img img,
    .ttm-box-img:hover img,
    .latest-events-item img,
    .latest-events-item:hover img,
    #totop:hover,
    .dalia-christmas-fab,
    .dalia-christmas-fab:hover,
    .dalia-christmas-fab__icon,
    .dalia-christmas-fab__sparkle,
    .dalia-snowfall span {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
        animation: none !important;
    }

    .dalia-snowfall {
        display: none;
    }
}
