/**
 * FINTC Theme - Layout Styles
 * Header, Navigation, Footer
 */

/* ========================================
   SITE CONTENT OFFSET (below fixed header)
   ======================================== */
.site-content {
    padding-top: var(--header-height);
}

/* ========================================
   HEADER STYLES
   ======================================== */

/* Basic Header */
.site-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    transition: all var(--transition-base);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
}

.site-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary-dark);
}

.site-logo img {
    max-height: 50px;
    width: auto;
}

/* Enhanced Professional Header */
.site-header-enhanced {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fc 100%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 30px rgba(102, 126, 234, 0.08),
                0 1px 3px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.site-header-enhanced::after {
    display: none;
}

/* Shimmer effect on hover */
.site-header-enhanced:hover::after {
    display: none;
}

.site-header-enhanced.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 40px rgba(102, 126, 234, 0.12),
                0 2px 8px rgba(0, 0, 0, 0.06);
    border-bottom-color: rgba(102, 126, 234, 0.15);
}

.site-header-enhanced.scrolled::after {
    opacity: 1;
    height: 3px;
}

/* Main Header */
.header-main {
    background: transparent;
    padding: 0.75rem 0;
    transition: all var(--transition-base);
    position: static; /* Allow mega menu to position relative to header */
}

.header-main-content {
    display: grid;
    grid-template-columns: minmax(auto, max-content) 1fr minmax(auto, max-content);
    align-items: center;
    gap: 2rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50px;
    border: 1px solid rgba(102, 126, 234, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition-base);
    width: 100%;
}

.site-header-enhanced.scrolled .header-main-content {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(102, 126, 234, 0.12);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.08);
}

/* Enhanced Logo Section - Aligned to far left */
.site-branding-enhanced {
    display: flex;
    align-items: center;
    justify-self: start;
    grid-column: 1;
}

.site-logo-enhanced .logo-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    text-decoration: none;
    transition: all var(--transition-base);
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    border-radius: 16px;
    border: 1px solid transparent;
}

.site-logo-enhanced .logo-image {
    display: flex;
    align-items: center;
}

.site-logo-enhanced .custom-logo-link {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
}

.site-logo-enhanced .custom-logo {
    display: block;
    width: auto;
    max-height: 54px;
    height: auto;
}

.site-logo-enhanced .logo-link:hover {
    transform: translateY(-1px);
    background: rgba(102, 126, 234, 0.04);
    border-color: rgba(102, 126, 234, 0.1);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.logo-icon img {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.logo-icon:hover {
    transform: rotate(3deg) scale(1.02);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary-dark);
    line-height: 1.2;
    background: linear-gradient(135deg, #2c3e50 0%, #667eea 50%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    transition: background-position 0.5s ease;
}

.site-logo-enhanced .logo-link:hover .site-title {
    background-position: 100% center;
}

.site-tagline {
    margin: 0;
    font-size: 0.7rem;
    color: #7f8c8d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.8;
}

/* ========================================
   NAVIGATION STYLES
   ======================================== */

/* Enhanced Navigation - Centered in the middle */
.main-navigation-enhanced {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    position: static; /* Allow mega menu to position relative to header */
    grid-column: 2;
    justify-self: center;
}

.nav-container {
    display: flex;
    align-items: center;
    position: static; /* Allow mega menu to position relative to header */
}

.nav-menu-enhanced {
    display: flex;
    flex-direction: row; /* Explicitly set horizontal alignment */
    justify-content: space-between;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem;
    position: static; /* Allow mega menu to position relative to header */
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.2rem;
    color: var(--color-primary-dark);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    border: 1px solid transparent;
    white-space: nowrap;
}

.nav-item.dropdown .nav-link {
    padding-right: 0.75rem;
}

/* Navigation Hover Effects */
.nav-link:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.15), transparent);
    transition: left 0.5s;
}

.nav-link:hover:before {
    left: 100%;
}

.nav-link:hover,
.nav-link.current-menu-item {
    color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-color: rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.nav-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.1);
}

/* Dropdown Menu Styles - Ark Church Copenhagen Style */
.nav-item.dropdown {
    position: static; /* Important for full-width mega menu */
}

.nav-link.has-dropdown {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.dropdown-arrow {
    font-size: 0.65rem;
    transition: transform 0.3s ease;
    opacity: 0.6;
}

.nav-item.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Ark Church Style Full-Width Mega Menu */
.dropdown-menu.dropdown-menu-ark {
    position: fixed;
    top: auto;
    left: 50% !important;
    right: auto !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: -50vw !important;
    margin-right: 0 !important;
    transform: translateX(0) !important;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1),
                0 8px 25px rgba(0, 0, 0, 0.06);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: var(--z-dropdown);
    list-style: none !important;
    padding: 0;
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    grid-template-rows: auto;
    grid-auto-flow: row !important;
    justify-content: stretch;
    align-items: start;
    padding: 3rem 2rem;
    gap: 2rem;
    column-gap: 3rem;
    row-gap: 1.5rem;
    box-sizing: border-box;
    overflow: hidden;
}

.nav-item.dropdown:hover .dropdown-menu.dropdown-menu-ark,
.dropdown-menu.dropdown-menu-ark.show {
    opacity: 1;
    visibility: visible;
}

/* Horizontal Grid Layout for Items */
.dropdown-menu.dropdown-menu-ark li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    display: block !important;
    width: 100%;
}

/* Ark Style Dropdown Link with Title + Description */
.dropdown-menu.dropdown-menu-ark .dropdown-link {
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.75rem;
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 10px;
    text-align: left;
    height: 100%;
    min-height: 100px;
    background: transparent;
    border: 1px solid transparent;
}

.dropdown-menu.dropdown-menu-ark .dropdown-link:hover {
    background-color: #f8f9fc;
    border-color: rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Dropdown Item Title */
.dropdown-item-title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 0.4rem;
    transition: color 0.2s ease;
}

.dropdown-menu.dropdown-menu-ark .dropdown-link:hover .dropdown-item-title {
    color: #667eea;
}

/* Dropdown Item Description */
.dropdown-item-desc {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    color: #6b7280;
    line-height: 1.5;
}

/* Responsive adjustments for mega menu */
@media (max-width: 1400px) {
    .dropdown-menu.dropdown-menu-ark {
        grid-template-columns: repeat(4, 1fr) !important;
        padding: 2.5rem 2.5%;
        column-gap: 2.5rem;
    }
}

@media (max-width: 1200px) {
    .dropdown-menu.dropdown-menu-ark {
        grid-template-columns: repeat(3, 1fr) !important;
        padding: 2rem 2%;
        column-gap: 2rem;
    }
}

@media (max-width: 992px) {
    .dropdown-menu.dropdown-menu-ark {
        display: none !important; /* Hide on mobile - use mobile menu instead */
    }
}

/* Header Actions - Aligned to far right */
.header-actions {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 1rem;
    grid-column: 3;
}

.header-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.header-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

.header-cta-btn .btn-icon {
    transition: transform var(--transition-base);
}

.header-cta-btn:hover .btn-icon {
    transform: translateX(3px);
}

/* ========================================
   MOBILE MENU TOGGLE - ENHANCED
   ======================================== */

.mobile-menu-toggle,
.mobile-menu-toggle-enhanced {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle-enhanced:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.mobile-menu-toggle-enhanced.active,
.mobile-menu-toggle.active {
    background: #667eea;
    border-color: #667eea;
}

.mobile-menu-toggle-enhanced .hamburger-line,
.mobile-menu-toggle .hamburger-line {
    display: block;
    width: 24px;
    height: 3.5px;
    background: #667eea;
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    box-shadow: 0 1px 3px rgba(102, 126, 234, 0.3);
}

.mobile-menu-toggle-enhanced.active .hamburger-line,
.mobile-menu-toggle.active .hamburger-line {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.mobile-menu-toggle-enhanced .hamburger-line:nth-child(1) {
    transform: translateY(-8px);
}

.mobile-menu-toggle-enhanced .hamburger-line:nth-child(2) {
    transform: translateY(0);
}

.mobile-menu-toggle-enhanced .hamburger-line:nth-child(3) {
    transform: translateY(8px);
}

/* Hamburger to X animation */
.mobile-menu-toggle-enhanced.active .hamburger-line:nth-child(1) {
    transform: translateY(0) rotate(45deg);
}

.mobile-menu-toggle-enhanced.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-toggle-enhanced.active .hamburger-line:nth-child(3) {
    transform: translateY(0) rotate(-45deg);
}

/* ========================================
   MOBILE NAVIGATION - MODERN DESIGN
   ======================================== */

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-content {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 380px;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.25);
}

.mobile-nav-overlay.active .mobile-nav-content {
    transform: translateX(0);
}

/* Mobile Nav Header */
.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    position: relative;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.mobile-nav-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to bottom, rgba(102, 126, 234, 0.1), transparent);
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-logo .custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.mobile-logo .custom-logo {
    display: block;
    width: auto;
    max-height: 40px;
    height: auto;
}

.mobile-logo-text {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: white;
}

/* Close Button with X lines */
.mobile-nav-close {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.mobile-nav-close:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.mobile-nav-close:active {
    transform: rotate(90deg) scale(0.95);
}

.mobile-nav-close .close-line {
    display: block;
    position: absolute;
    width: 22px;
    height: 3px;
    background: white;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.mobile-nav-close .close-line:first-child {
    transform: rotate(45deg);
}

.mobile-nav-close .close-line:last-child {
    transform: rotate(-45deg);
}

/* Mobile Nav Menu */
.mobile-nav-menu {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 0;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav-list,
.mobile-nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-list > li,
.mobile-nav-menu > ul > li {
    opacity: 0;
    transform: translateX(30px);
    animation: slideInMenuItem 0.4s ease forwards;
}

.mobile-nav-overlay.active .mobile-nav-list > li:nth-child(1),
.mobile-nav-overlay.active .mobile-nav-menu > ul > li:nth-child(1) { animation-delay: 0.1s; }
.mobile-nav-overlay.active .mobile-nav-list > li:nth-child(2),
.mobile-nav-overlay.active .mobile-nav-menu > ul > li:nth-child(2) { animation-delay: 0.15s; }
.mobile-nav-overlay.active .mobile-nav-list > li:nth-child(3),
.mobile-nav-overlay.active .mobile-nav-menu > ul > li:nth-child(3) { animation-delay: 0.2s; }
.mobile-nav-overlay.active .mobile-nav-list > li:nth-child(4),
.mobile-nav-overlay.active .mobile-nav-menu > ul > li:nth-child(4) { animation-delay: 0.25s; }
.mobile-nav-overlay.active .mobile-nav-list > li:nth-child(5),
.mobile-nav-overlay.active .mobile-nav-menu > ul > li:nth-child(5) { animation-delay: 0.3s; }
.mobile-nav-overlay.active .mobile-nav-list > li:nth-child(6),
.mobile-nav-overlay.active .mobile-nav-menu > ul > li:nth-child(6) { animation-delay: 0.35s; }
.mobile-nav-overlay.active .mobile-nav-list > li:nth-child(7),
.mobile-nav-overlay.active .mobile-nav-menu > ul > li:nth-child(7) { animation-delay: 0.4s; }
.mobile-nav-overlay.active .mobile-nav-list > li:nth-child(8),
.mobile-nav-overlay.active .mobile-nav-menu > ul > li:nth-child(8) { animation-delay: 0.45s; }

@keyframes slideInMenuItem {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile Nav Items - ensure consistent alignment */
.mobile-nav-item,
.mobile-nav-list > li,
.mobile-nav-menu > ul > li {
    margin: 0;
    padding: 0;
}

.mobile-nav-list > li > a,
.mobile-nav-menu > ul > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.75rem;
    color: var(--color-primary-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

/* Ensure all mobile nav links have consistent bold styling */
.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.75rem;
    color: var(--color-primary-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-nav-list > li > a:hover,
.mobile-nav-menu > ul > li > a:hover {
    background: rgba(102, 126, 234, 0.08);
    color: #667eea;
    border-left-color: #667eea;
    padding-left: 2rem;
}

.mobile-nav-list > li > a:active,
.mobile-nav-menu > ul > li > a:active {
    background: rgba(102, 126, 234, 0.15);
}

/* Submenu Styles - WordPress default (.sub-menu) and custom (.mobile-submenu) */
.mobile-nav-menu .sub-menu,
.mobile-nav-menu .mobile-submenu,
.mobile-submenu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    background: rgba(102, 126, 234, 0.04);
    border-left: 4px solid #667eea;
    margin-left: 1.75rem;
}

/* Show submenu when parent is active */
.mobile-nav-menu li.menu-item-has-children.active > .sub-menu,
.mobile-nav-menu li.has-submenu.active > .mobile-submenu,
.mobile-nav-item.has-submenu.active > .mobile-submenu {
    display: block;
}

.mobile-nav-menu .sub-menu li a,
.mobile-nav-menu .mobile-submenu li a,
.mobile-submenu li a,
.mobile-submenu-link {
    display: block;
    padding: 0.85rem 1.5rem;
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-nav-menu .sub-menu li a:hover,
.mobile-nav-menu .mobile-submenu li a:hover,
.mobile-submenu li a:hover,
.mobile-submenu-link:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.08);
    padding-left: 1.75rem;
}

/* Dropdown Arrow - for WordPress menus */
.mobile-nav-menu li.menu-item-has-children > a::after {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-left: auto;
}

.mobile-nav-menu li.menu-item-has-children.active > a::after {
    transform: rotate(-135deg);
}

/* Mobile Nav Row - contains link and toggle button side by side */
.mobile-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.mobile-nav-row .mobile-nav-link {
    flex: 1;
    padding-right: 0.5rem;
    padding-left: 1.75rem;
}

.mobile-nav-link:hover {
    background: rgba(102, 126, 234, 0.08);
    color: #667eea;
    border-left-color: #667eea;
    padding-left: 2rem;
}

/* Mobile Submenu Toggle Button */
.mobile-submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(102, 126, 234, 0.12);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.1);
}

.mobile-submenu-toggle:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.2);
}

.mobile-submenu-toggle:active {
    transform: scale(0.95);
}

.mobile-nav-item.has-submenu.active .mobile-submenu-toggle {
    background: #667eea;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

/* Mobile Arrow (+/-) inside toggle button */
.mobile-arrow {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #667eea;
}

.mobile-nav-item.has-submenu.active .mobile-arrow {
    transform: rotate(45deg);
    color: white;
}

/* Ensure dropdown toggle links show as flex for arrow alignment (WordPress menus) */
.mobile-nav-menu li.menu-item-has-children > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

/* Mobile Nav Footer */
.mobile-nav-footer {
    padding: 1.75rem;
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Language Switcher Button */
.mobile-language-switcher {
    margin-bottom: 1.5rem;
}

.mobile-lang-switch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: auto;
    padding: 0.8rem 1.2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    text-align: center;
    letter-spacing: 0.02em;
    border: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.mobile-lang-switch-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    transition: left 0.4s ease;
    z-index: 0;
}

.mobile-lang-switch-btn:hover::before {
    left: 100%;
}

.mobile-lang-switch-btn > * {
    position: relative;
    z-index: 1;
}

.mobile-lang-switch-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

.mobile-lang-switch-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 15px rgba(102, 126, 234, 0.3);
}

.mobile-contact-info {
    margin-bottom: 0.2rem;
}

.mobile-contact-info p {
    margin: 0.08rem 0;
    font-size: 0.62rem;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    line-height: 1;
}

.mobile-contact-info img,
.mobile-contact-info svg {
    max-width: 20px !important;
    max-height: 20px !important;
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0;
}

.mobile-social-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mobile-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
    border: none;
}

.mobile-social-link:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.mobile-social-link:active {
    transform: translateY(0);
}

/* ========================================
   FOOTER STYLES - ARK DESIGN
   ======================================== */

.site-footer-ark {
    background: #1a1a1a;
    color: white;
}

/* Footer Cards Section */
.footer-cards-section {
    padding: 80px 0;
    background: #1a1a1a;
}

.footer-cards-header {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 20px;
}

.footer-cards-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-align: center;
    margin: 0;
    letter-spacing: -0.02em;
}

/* Full-width cards grid */
.footer-cards-grid-fullwidth {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    width: 100%;
}

.footer-card {
    position: relative;
    display: block;
    border-radius: 0;
    overflow: hidden;
    text-decoration: none;
    aspect-ratio: 16/9;
    transition: all 0.4s ease;
}

.footer-card:hover {
    z-index: 2;
}

.footer-card-image {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.footer-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-slow);
}

.footer-card:hover .footer-card-image img {
    transform: scale(1.08);
}

.footer-card-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    padding: 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
}

.footer-card-content h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

/* Footer Bottom Bar */
.footer-bottom-bar {
    padding: 24px 0;
    background: #111;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content-ark {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

/* Footer Brand */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-logo-ark {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon-ark {
    font-size: 1.5rem;
}

.logo-text-ark {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.footer-address-ark span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Footer Contact Info */
.footer-contact-info-ark {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-contact-info-ark a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.footer-contact-info-ark a:hover {
    color: white;
}

/* Footer Social Icons */
.footer-social-ark {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-icon-ark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.1);
    font-size: 1.2rem;
}

.social-icon-ark:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.25);
}

.social-icon-ark:active {
    transform: translateY(-1px);
}

.social-icon-ark svg {
    width: 20px;
    height: 20px;
}

/* ========================================
   LAYOUT RESPONSIVE STYLES
   ======================================== */

@media (max-width: 1200px) {
    .nav-link {
        padding: 1rem 0.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 1024px) {
    .nav-link {
        padding: 1rem 0.6rem;
        font-size: 0.85rem;
    }

    .main-navigation-enhanced .nav-container {
        display: none;
    }

    .mobile-menu-toggle,
    .mobile-menu-toggle-enhanced {
        display: flex;
    }

    /* Show language switcher in header on mobile */
    .language-switcher-enhanced {
        display: flex;
        margin-left: 0.5rem;
        margin-top: 0;
        text-align: center;
    }

    .language-circle {
        width: 48px;
        height: 48px;
    }

    .language-text {
        font-size: 0.75rem;
    }

    .language-tooltip {
        display: none;
    }
}

@media (max-width: 992px) {
    .footer-cards-section {
        padding: 60px 0 0;
    }

    .footer-cards-title {
        font-size: 2rem;
    }

    .footer-cards-grid-fullwidth {
        grid-template-columns: 1fr;
    }

    .footer-bottom-content-ark {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 65px;
    }

    .header-main-content {
        padding: 0.5rem;
    }

    .site-title {
        font-size: 1.25rem;
    }

    .site-logo-enhanced .custom-logo {
        max-height: 44px;
    }

    .site-tagline {
        display: none;
    }

    .footer-cards-section {
        padding: 40px 0 0;
    }

    .footer-cards-title {
        font-size: 1.75rem;
    }

    .footer-card {
        aspect-ratio: 4/3;
    }

    .footer-card-content h3 {
        font-size: 1.25rem;
    }

    .footer-bottom-bar {
        padding: 20px 0;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-contact-info-ark {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .footer-cards-section {
        padding: 30px 0 0;
    }

    .footer-cards-title {
        font-size: 1.5rem;
    }

    .footer-card {
        aspect-ratio: 16/9;
    }

    .footer-card-content {
        padding: 16px;
    }

    .footer-card-content h3 {
        font-size: 1.1rem;
    }
}

/* ========================================
   ENHANCED LANGUAGE SWITCHER
   ======================================== */

.language-switcher-enhanced {
    margin-left: 2rem;
    position: relative;
}

.language-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1000;
}

.language-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.language-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.language-circle:active {
    transform: scale(0.95);
}

.language-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.language-flag {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s ease;
    background-size: cover;
    background-position: center;
}

.language-circle.switching .language-text {
    opacity: 0;
    transform: scale(0.5);
}

.language-circle.switching .language-flag {
    opacity: 0.3;
    transform: scale(1.2);
}

/* Language Tooltip */
.language-tooltip {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.language-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(44, 62, 80, 0.95);
}

.language-toggle:hover .language-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* Animation effects */
.language-circle.switching {
    animation: languageSwitch 0.6s ease-in-out;
}

@keyframes languageSwitch {
    0% { transform: scale(1) rotateY(0deg); }
    50% { transform: scale(1.1) rotateY(180deg); }
    100% { transform: scale(1) rotateY(360deg); }
}

.language-text.switching {
    animation: textFlip 0.6s ease-in-out;
}

@keyframes textFlip {
    0% { opacity: 1; transform: rotateY(0deg); }
    50% { opacity: 0; transform: rotateY(90deg); }
    100% { opacity: 1; transform: rotateY(0deg); }
}

/* Ripple effect */
.language-circle:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.language-circle.ripple:before {
    width: 100px;
    height: 100px;
}

/* Pulse effect for active state */
.language-circle.active {
    animation: languagePulse 2s ease-in-out infinite;
}

@keyframes languagePulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(102, 126, 234, 0.5), 0 0 0 10px rgba(102, 126, 234, 0.1); }
}

/* Legacy Language Switcher (for compatibility) */
.language-switcher {
    margin-left: 1rem;
}

.language-switcher a {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 0 0.25rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.language-switcher a:hover,
.language-switcher a.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* Language Switcher Mobile Responsive */
@media (max-width: 768px) {
    .language-switcher-enhanced {
        margin-left: 0.5rem;
        margin-top: 0;
        text-align: center;
    }

    .language-circle {
        width: 48px;
        height: 48px;
    }

    .language-text {
        font-size: 0.75rem;
    }

    .language-tooltip {
        display: none;
    }
}

/* ========================================
   MOBILE NAVIGATION - RESPONSIVE TWEAKS
   ======================================== */

@media (max-width: 480px) {
    .mobile-nav-content {
        max-width: 100%;
    }

    .mobile-nav-header {
        padding: 1.25rem 1.5rem;
    }

    .mobile-logo-text {
        font-size: 1.2rem;
    }

    .mobile-logo .custom-logo {
        max-height: 34px;
    }

    .mobile-nav-close {
        width: 40px;
        height: 40px;
    }

    .mobile-nav-list > li > a,
    .mobile-nav-menu > ul > li > a {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .mobile-nav-footer {
        padding: 1.5rem;
    }

    .mobile-social-links {
        justify-content: center;
    }
}

/* Safe area insets for notched devices */
@supports (padding: max(0px)) {
    .mobile-nav-content {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }

    .mobile-nav-header {
        padding-top: max(1.5rem, env(safe-area-inset-top));
    }

    .mobile-nav-footer {
        padding-bottom: max(1.75rem, env(safe-area-inset-bottom));
    }
}