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

:root {
    --primary-color: #672C7E;
    --accent-color: #FE4601;
    --font-family: 'Inter', sans-serif;
}


/* Force Reset Elementor Container Borders */
.elementor-widget-premium_header .elementor-widget-container {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.premium-header {
    width: 100%;
    font-family: var(--font-family);
    display: flex;
    justify-content: center;
    padding: 0;
    position: relative;
    z-index: 999;
    /* transition: all 0.3s ease; Removed to prevent flicker on reload */
    transition: background 0.3s ease, padding 0.3s ease;
}

.premium-header.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 99999;
}

.premium-header.is-sticky .premium-header-container {
    margin: 10px auto;
    max-width: 1140px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.98);
    border: 1px solid #f1f5f9; /* Changed from rgba for stability */
}
/* Force Reset for Top Spacing */
body.home .elementor-section-wrap > .elementor-section:first-child,
body.home .elementor > .elementor-section:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Ensure no gap at top of page */
html, body {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.premium-header-inner {
    width: 100%;
    max-width: 1140px;
}

/* OVERLAY MODE (Floating over section below) */
.premium-header-overlay-yes {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    pointer-events: none; /* Let clicks pass through to content below if not over header */
}

.premium-header-overlay-yes .premium-header {
    pointer-events: auto; /* Re-enable clicks for the header itself */
}

.premium-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.premium-logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.premium-logo-icon {
    background-color: var(--primary-color);
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    overflow: hidden;
}

.premium-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.premium-logo-icon-placeholder {
    background-color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.premium-logo-text {
    font-weight: 600;
    color: #1f2937;
    font-size: 1.1rem;
}

.premium-nav {
    display: none; /* hidden on mobile */
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .premium-nav {
        display: flex;
    }
}

.premium-nav-link {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.premium-nav-link:hover {
    color: var(--primary-color);
}

/* ── Desktop Dropdown ─────────────────────────────────────────────────────── */
.premium-nav-dropdown {
    position: relative;
}

.premium-nav-link.has-dropdown {
    cursor: pointer;
}

.dropdown-arrow {
    transition: transform 0.25s ease;
    flex-shrink: 0;
    opacity: 0.6;
}

.premium-nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

.premium-dropdown-menu {
    position: absolute;
    top: 100%;              /* NO gap — hover area is continuous */
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: transparent; /* transparent wrapper so padding is hoverable */
    padding-top: 12px;       /* visual spacing without breaking hover */
    list-style: none;
    margin: 0;
    min-width: 200px;
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    border: none;
    box-shadow: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 99999;
}

/* The actual visible box lives in the inner wrapper */
.premium-dropdown-menu-inner {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    padding: 0.5rem;
    margin: 0;
    list-style: none;
}

/* Small triangle pointer — sits at top of padding-top area */
.premium-dropdown-menu::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(0,0,0,0.06);
}

.premium-dropdown-menu::after {
    content: '';
    position: absolute;
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #fff;
}

.premium-nav-dropdown:hover .premium-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Keep dropdown open while hovering directly on it */
.premium-dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.premium-dropdown-menu li {
    list-style: none;
    padding: 0;
    margin: 0;
}

.premium-dropdown-link {
    display: block;
    text-decoration: none;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.6rem 1rem;
    border-radius: 9px;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.premium-dropdown-link:hover {
    background: rgba(103, 44, 126, 0.07);
    color: var(--primary-color);
}

.premium-nav-badge {
    background-color: rgba(103, 44, 126, 0.1);
    color: var(--primary-color);
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    position: relative;
    text-decoration: none;
}

.premium-badge-dot {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    width: 0.5rem;
    height: 0.5rem;
    background-color: var(--accent-color);
    border-radius: 50%;
}

.premium-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.premium-btn {
    text-decoration: none;
    padding: 0.625rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.625rem;
    border: none;
    cursor: pointer;
}

.premium-btn-icon {
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.btn-ghost {
    background-color: #f3f4f6;
    color: #374151;
}

.btn-ghost:hover {
    background-color: #e5e7eb;
    transform: translateY(-2px);
}

.btn-solid {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 4px 12px rgba(254, 70, 1, 0.2);
}

.btn-solid:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(254, 70, 1, 0.3);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: background 0.2s;
}

.mobile-toggle:hover {
    background-color: rgba(0,0,0,0.05);
}

@media (max-width: 767px) {
    .premium-btn.btn-ghost {
        display: none;
    }
    .premium-nav {
        display: none;
    }
    .mobile-toggle {
        display: flex;
    }
    .premium-header-container {
        padding: 0.6rem 1.25rem;
    }
}

.mobile-toggle span {
    width: 22px;
    height: 2px;
    background-color: #374151;
    border-radius: 2px;
    transition: 0.3s;
}

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

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

/* MOBILE MENU DRAWER */
.premium-mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    border-radius: 24px;
    margin-top: 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.premium-mobile-menu.is-open {
    max-height: 500px;
    padding: 1.5rem;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    text-decoration: none;
    color: #374151;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

.mobile-nav-link.badge-link {
    color: var(--primary-color);
    background: rgba(103, 44, 126, 0.05);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border-bottom: none;
    text-align: center;
}

/* FOOTER WIDGET STYLES */
.premium-footer-widget {
    padding: 3rem 1.5rem 2rem;
    font-family: var(--font-family);
    background-color: #ffffff;
    width: 100%;
}

.footer-container {
    max-width: 1140px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo-icon {
    background-color: rgba(103, 44, 126, 0.1);
    color: var(--primary-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.footer-logo-img img {
    height: 36px;
    width: auto;
}

.footer-site-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.footer-links-nav {
    display: flex;
    gap: 1.5rem;
}

.footer-link {
    text-decoration: none;
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--primary-color);
}

.footer-divider {
    height: 1px;
    background-color: #e5e7eb;
    margin-bottom: 2rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.footer-bottom-text {
    font-size: 0.8rem;
    color: #9ca3af;
    line-height: 1.5;
}

.footer-copyright {
    max-width: 400px;
}

.footer-disclaimer {
    max-width: 500px;
    text-align: right;
}

@media (max-width: 767px) {
    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .footer-links-nav {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-disclaimer {
        text-align: left;
    }
}
