/* =========================================
   FUNELIS — Design System premium
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --primary: #0A1216;
    /* Deeper, more prestigious dark */
    --primary-light: #141E24;
    --secondary: #FBFAF9;
    /* Softer, more peaceful off-white */
    --accent: #C9A84C;
    --accent-light: #E8D5A3;
    --accent-glow: rgba(201, 168, 76, 0.12);
    --text-dark: #1E2D35;
    --text-muted: #373737;
    --text-light: #FFFFFF;
    --card-bg: #FFFFFF;
    --border-subtle: rgba(201, 168, 76, 0.12);
    --font-heading: 'Cinzel', 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition: 0.1s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 8px 30px rgba(10, 18, 22, 0.04);
    --shadow-md: 0 15px 50px rgba(10, 18, 22, 0.08);
    --shadow-lg: 0 30px 80px rgba(10, 18, 22, 0.12);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--secondary);
    color: var(--text-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1.3;
}

/* ── Layout ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

/* ============================================
   NAVBAR
   ============================================ */
.funelis-navbar {
    background: linear-gradient(135deg, var(--primary) 0%, #162028 100%);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
    padding: 1.1rem 0;
    transition: padding 0.15s ease, box-shadow 0.15s ease;
    border-bottom: 1px solid rgba(201, 168, 76, 0.12);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
}

/* Logo */
.funelis-navbar .logo {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition);
}

.funelis-navbar .logo::after {
    content: '.';
    color: var(--accent);
    font-size: 2.2rem;
    line-height: 0;
    vertical-align: -4px;
}

/* Desktop nav links */
.funelis-nav-link {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 1);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
}

.funelis-nav-link:hover,
.funelis-nav-link.active {
    color: var(--accent);
    background: rgba(201, 168, 76, 0.08);
}

/* Mega menu trigger chevron */
.mega-chevron {
    font-size: 0.72rem;
    transition: transform 0.15s ease;
}

.mega-trigger.open .mega-chevron {
    transform: rotate(180deg);
}

/* CTA pill button */
.nav-cta {
    background: linear-gradient(135deg, var(--accent), #b8932e) !important;
    color: var(--primary) !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 14px rgba(201, 168, 76, 0.3);
    padding: 0.55rem 1.4rem !important;
    margin-left: 0.4rem;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.4) !important;
    color: var(--primary) !important;
}

/* Hamburger button (mobile) */
.funelis-mobile-toggler {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    z-index: 2000;
    transition: all 0.15s ease;
}

.funelis-mobile-toggler span {
    display: block;
    width: 22px;
    height: 2px;
    background: #FFFFFF;
    border-radius: 10px;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
}

.funelis-mobile-toggler span:nth-child(1) {
    transform: translateY(-7px);
}

.funelis-mobile-toggler span:nth-child(2) {
    transform: translateY(0);
    opacity: 1;
}

.funelis-mobile-toggler span:nth-child(3) {
    transform: translateY(7px);
}

/* Hamburger to X Animation */
.funelis-mobile-toggler.active span:nth-child(1) {
    transform: translateY(0) rotate(45deg);
}

.funelis-mobile-toggler.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.funelis-mobile-toggler.active span:nth-child(3) {
    transform: translateY(0) rotate(-45deg);
}

/* Mobile sliding menu */
.funelis-mobile-menu {
    background: linear-gradient(180deg, #0a1216, var(--primary));
    border-top: 1px solid rgba(201, 168, 76, 0.15);
    overflow: hidden;
    max-height: 0;
    visibility: hidden;
    transition: max-height 0.1s ease, visibility 0.1s;
}

.funelis-mobile-menu.open {
    max-height: 90vh;
    /* Responsive height */
    visibility: visible;
    padding-bottom: 2rem;
    overflow-y: auto;
}

.mobile-nav-link {
    display: block;
    color: rgba(255, 255, 255, 1);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: color 0.1s;
}

.mobile-nav-link:hover {
    color: var(--accent);
}

.mobile-collapse-btn {
    color: rgba(255, 255, 255, 1);
    font-size: 0.9rem;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-collapse-btn:hover {
    color: var(--accent);
}

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.1s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-top: 0.25rem;
}

.mobile-submenu.open {
    max-height: 500px;
    padding: 0.5rem 0;
}

.mobile-sub-link {
    font-size: 0.88rem;
    padding: 0.8rem 1rem !important;
    display: flex !important;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 1) !important;
    text-decoration: none !important;
}

.mobile-sub-link:hover {
    color: var(--accent) !important;
    background: rgba(255, 255, 255, 0.02);
}



/* ============================================
   HERO 
   ============================================ */
.hero {
    min-height: 80vh;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

/* Global Hero Overlay for funeral atmosphere */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(201, 168, 76, 0.08) 0%, rgba(10, 18, 22, 0.92) 80%);
    z-index: 1;
}

.hero>* {
    position: relative;
    z-index: 2;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--secondary), transparent);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    animation: heroFadeIn 0.3s ease-out both;
    max-width: 860px;
}

.hero-eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 1.5rem;
    padding: 0.4rem 1.2rem;
    border: 1px solid rgba(201, 168, 76, 0.4);
    border-radius: 50px;
    backdrop-filter: blur(6px);
    background: rgba(201, 168, 76, 0.08);
}

.hero h1 {
    color: var(--text-light);
    font-size: clamp(2.4rem, 5.5vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero h1 em {
    font-style: italic;
    color: var(--accent-light);
}

.hero-content p {
    font-size: 1.15rem;
    max-width: 620px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 1);
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   BUTTONS 
   ============================================ */
.btn-funelis-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, var(--accent), #b8932e);
    color: var(--primary) !important;
    padding: 0.9rem 2.2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
    box-shadow: 0 6px 20px rgba(201, 168, 76, 0.35);
    cursor: pointer;
}

.btn-funelis-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(201, 168, 76, 0.45);
    color: var(--primary) !important;
}

.btn-funelis-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: transparent;
    color: var(--text-light) !important;
    padding: 0.9rem 2.2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
}

.btn-funelis-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    color: var(--text-light) !important;
}

/* Legacy support */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, var(--accent), #b8932e);
    color: var(--primary);
    padding: 0.9rem 2.2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: none;
    box-shadow: 0 6px 20px rgba(201, 168, 76, 0.35);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(201, 168, 76, 0.45);
    color: var(--primary);
}

/* ============================================
   SECTION TITLES 
   ============================================ */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.section-title h2 {
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.section-title .gold-line {
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 3px;
    margin: 1.2rem auto;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* Solemn Ornament Divider */
.ornament-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem auto;
}

.ornament-divider::before,
.ornament-divider::after {
    content: '';
    height: 1px;
    width: 60px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.3), transparent);
}

.ornament-divider svg {
    opacity: 0.6;
}

/* ============================================
   SERVICE CARDS 
   ============================================ */
.funelis-service-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    transition: all 0.1s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.funelis-service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.04) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.1s ease;
    border-radius: var(--radius-lg);
    z-index: 0;
}

.funelis-service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(201, 168, 76, 1);
}

.funelis-service-card:hover::before {
    opacity: 1;
}

.card-content {
    padding: 2.5rem 2rem;
    position: relative;
    z-index: 1;
}

.card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
    font-weight: 600;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.97rem;
    line-height: 1.75;
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    font-size: 2rem;
    color: var(--accent);
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.12), rgba(201, 168, 76, 0.03));
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.funelis-service-card:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.2), rgba(201, 168, 76, 0.06));
    box-shadow: 0 0 0 6px rgba(201, 168, 76, 0.08);
}

/* ============================================
   TRUST SECTION (Stats banner)
   ============================================ */
.trust-banner {
    background: linear-gradient(135deg, var(--primary) 0%, #162028 100%);
    border-top: 1px solid rgba(201, 168, 76, 0.15);
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.trust-stat {
    text-align: center;
    padding: 2.5rem 1.5rem;
    position: relative;
}

.trust-stat+.trust-stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 50px;
    width: 1px;
    background: rgba(201, 168, 76, 0.2);
}

.trust-stat .stat-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.trust-stat .stat-label {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 1);
}

/* ============================================
   CTA SECTION (Urgency Banner)
   ============================================ */
.cta-urgency {
    background: linear-gradient(135deg, var(--accent) 0%, #b8932e 100%);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    color: var(--primary);
    position: relative;
    overflow: hidden;
}

.cta-urgency::after {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

/* ============================================
   FOOTER 
   ============================================ */
.funelis-footer {
    background: linear-gradient(180deg, var(--primary) 0%, #080f12 100%);
    border-top: 1px solid rgba(201, 168, 76, 0.18);
    padding: 4rem 2rem 2rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-logo::after {
    content: '.';
    color: var(--accent);
}

.footer-tagline {
    color: rgba(255, 255, 255, 1);
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.8;
}

.footer-divider {
    border-color: rgba(201, 168, 76, 1);
    margin: 2rem 0 1.5rem;
}

.footer-copy {
    color: rgba(255, 255, 255, 1);
    font-size: 0.82rem;
    text-align: center;
}

/* ============================================
   ANIMATIONS 
   ============================================ */
@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Urgence Pulse Animation */
@keyframes ping {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    70%,
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.pulse-animation {
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Watermark styles */
.watermark-flower {
    position: absolute;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero {
        min-height: 85vh;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero::before {
        height: 70px;
    }

    .trust-stat+.trust-stat::before {
        display: none;
    }

    .cta-urgency {
        padding: 2.5rem 1.5rem;
    }

    .container {
        padding: 3rem 1.25rem;
    }
}

/* ============================================
   MEGA MENU
   ============================================ */



.navbar-dark .navbar-nav .dropdown-toggle::after {
    border: none;
    content: '\F282';
    font-family: 'bootstrap-icons';
    font-size: 0.72rem;
    vertical-align: middle;
    margin-left: 4px;
    transition: transform 0.15s ease;
    display: inline-block;
}

.navbar-dark .navbar-nav .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.funelis-megamenu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
    background: linear-gradient(135deg, #080f12 0%, var(--primary) 100%);
    border-top: 1px solid rgba(201, 168, 76, 0.2);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    /* Hover improvements */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.15s cubic-bezier(0.25, 0.8, 0.25, 1),
        visibility 0.15s cubic-bezier(0.25, 0.8, 0.25, 1),
        transform 0.15s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
}

/* Show when open */
.funelis-megamenu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}


.mega-intro {
    padding: 2rem 2rem 2rem 0;
    border-right: 1px solid rgba(201, 168, 76, 0.12);
}

.mega-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.mega-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-light);
    line-height: 1.4;
    margin-bottom: 1rem;
    font-weight: 600;
}

.mega-title em {
    font-style: italic;
    color: var(--accent-light);
}

.mega-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    transition: gap 0.15s ease, opacity 0.1s ease;
}

.mega-all-link:hover {
    opacity: 0.75;
    gap: 0.75rem;
}

.mega-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 0.9rem;
    border-radius: var(--radius-sm);
    transition: background 0.15s ease, transform 0.15s ease;
    text-decoration: none !important;
}

.mega-item:hover {
    background: rgba(201, 168, 76, 0.07);
    transform: translateX(5px);
}

.mega-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    min-width: 42px;
    font-size: 1.1rem;
    color: var(--accent);
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.18);
    border-radius: 10px;
    transition: all 0.15s ease;
}

.mega-item:hover .mega-icon {
    background: rgba(201, 168, 76, 0.2);
    transform: scale(1.08);
}

.mega-item-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 1);
    margin-bottom: 0.15rem;
    transition: color 0.1s;
    line-height: 1.3;
}

.mega-item:hover .mega-item-title {
    color: var(--accent-light);
}

.mega-item-desc {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 1);
    margin-bottom: 0;
    line-height: 1.4;
}

@media (max-width: 991px) {
    .funelis-navbar .container-xl {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    .funelis-megamenu {
        display: none !important;
        /* Force hide on mobile/tablet */
    }

    .mega-intro {
        border-right: none;
        border-bottom: 1px solid rgba(201, 168, 76, 0.12);
        padding: 1rem;
    }

    .mega-item {
        padding: 0.65rem 0.5rem;
    }
}