/* ============================================
   ENTERPRISE HEADER & FOOTER STYLES
   Professional, Global, Enterprise-Grade
   ============================================ */

/* Header â€” professional theme tokens */
:root {
    --nav-cta: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    --nav-cta-shadow: 0 2px 8px rgba(79, 70, 229, 0.35);
    --nav-ink: #0f172a;
    --nav-dropdown-border: #e2e8f0;
}

/* Header Styles â€” symmetric vertical rhythm (override stacked Bootstrap .navbar padding) */
header.nav-layout.navbar {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #0f172a 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 24px rgba(15, 23, 42, 0.35);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    /* Single source of vertical inset â€” equal top & bottom */
    padding-top: 0.45rem !important;
    padding-bottom: 0.45rem !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* While header search suggestions are open, stack above fixed footer pill (z-index 10050) */
header.nav-layout.navbar:has(#mobileSearchContainer .infyner-nav-search-wrap.is-active) {
    z-index: 10055;
}

/* Inner nav: strip extra Bootstrap padding so it doesnâ€™t add asymmetric bottom gap */
header.nav-layout > nav.navbar {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
    align-items: center;
}

header.nav-layout .navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.imglogo {
    height: 40px;
    width: auto;
    max-width: 200px;
    transition: opacity 0.3s ease;
}

.imglogo:hover {
    opacity: 0.9;
}

/* Search Container */
.containerSearch {
    flex: 1;
    max-width: 500px;
    margin: 0 2rem;
    position: relative;
    z-index: 10002;
}

/* Header company search — matches home banner / layout pill (gradient ring + ibbs rows) */
header.nav-layout #mobileSearchContainer .infyner-nav-search-wrap {
    position: relative;
    width: 100%;
    z-index: 10002;
}

header.nav-layout #mobileSearchContainer .infyner-nav-search-input-shell {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
}

header.nav-layout #mobileSearchContainer .infyner-nav-search-field-ring {
    flex: 1;
    min-width: 0;
    padding: 2px;
    border-radius: 10px;
    box-sizing: border-box;
    background: linear-gradient(
        90deg,
        #22d3ee 0%,
        #38bdf8 11%,
        #3b82f6 24%,
        #22c55e 38%,
        #eab308 52%,
        #fb923c 66%,
        #f472b6 80%,
        #c084fc 92%,
        #22d3ee 100%
    );
    background-size: 200% 100%;
}

header.nav-layout #mobileSearchContainer .infyner-nav-search-wrap:focus-within .infyner-nav-search-field-ring,
header.nav-layout #mobileSearchContainer .infyner-nav-search-wrap.is-active .infyner-nav-search-field-ring {
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.28);
}

@media (prefers-reduced-motion: no-preference) {
    header.nav-layout #mobileSearchContainer .infyner-nav-search-wrap:focus-within .infyner-nav-search-field-ring,
    header.nav-layout #mobileSearchContainer .infyner-nav-search-wrap.is-active .infyner-nav-search-field-ring {
        animation: infyner-nav-field-ring-shift 8s linear infinite;
    }
}

@keyframes infyner-nav-field-ring-shift {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@media (prefers-reduced-motion: reduce) {
    header.nav-layout #mobileSearchContainer .infyner-nav-search-wrap:focus-within .infyner-nav-search-field-ring,
    header.nav-layout #mobileSearchContainer .infyner-nav-search-wrap.is-active .infyner-nav-search-field-ring {
        animation: none;
    }
}

header.nav-layout #mobileSearchContainer .infyner-nav-search-field-ring .infyner-nav-search-input {
    width: 100%;
    height: 32px;
    padding: 0 2.25rem 0 0.65rem;
    border: none;
    border-radius: 8px;
    background: #ffffff;
    color: #141f2e;
    font-family: 'Plus Jakarta Sans', 'Outfit', system-ui, -apple-system, sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: -0.015em;
    outline: none;
    box-sizing: border-box;
    transition: border-radius 0.15s ease;
    box-shadow: none;
}

header.nav-layout #mobileSearchContainer .infyner-nav-search-field-ring .infyner-nav-search-input::placeholder {
    color: #64748b;
    font-weight: 400;
    opacity: 0.9;
}

header.nav-layout #mobileSearchContainer .infyner-nav-search-wrap.is-active .infyner-nav-search-field-ring {
    border-radius: 10px 10px 0 0;
}

header.nav-layout #mobileSearchContainer .infyner-nav-search-wrap.is-active .infyner-nav-search-field-ring .infyner-nav-search-input {
    border-radius: 8px 8px 0 0;
    box-shadow: inset 0 -1px 0 #e5e7eb;
}

header.nav-layout #mobileSearchContainer .infyner-nav-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    margin-top: -1px;
    max-height: min(420px, 55vh);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-top: none;
    border-radius: 0 0 10px 10px;
    box-shadow:
        0 10px 28px rgba(15, 23, 42, 0.14),
        inset 0 0 0 1px rgba(255, 255, 255, 0.65);
    z-index: 10005;
    isolation: isolate;
    scrollbar-width: thin;
    scrollbar-color: rgba(15, 23, 42, 0.18) transparent;
    font-family: 'Plus Jakarta Sans', 'Outfit', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

header.nav-layout #mobileSearchContainer .infyner-nav-search-dropdown::-webkit-scrollbar {
    width: 6px;
}

header.nav-layout #mobileSearchContainer .infyner-nav-search-dropdown::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.15);
    border-radius: 99px;
}

header.nav-layout #mobileSearchContainer .infyner-nav-search-wrap.is-active .infyner-nav-search-dropdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

header.nav-layout #mobileSearchContainer .infyner-nav-search-wrap.is-active {
    z-index: 10006;
}

header.nav-layout #mobileSearchContainer .infyner-nav-search-dropdown .infyner-nav-search-section {
    margin: 0;
}

header.nav-layout #mobileSearchContainer .infyner-nav-search-dropdown .infyner-nav-search-section--recent.infyner-nav-search-section--empty,
header.nav-layout #mobileSearchContainer .infyner-nav-search-dropdown .infyner-nav-search-section--api.is-empty {
    display: none;
}

header.nav-layout #mobileSearchContainer .infyner-nav-search-wrap.infyner-nav-showing-api .infyner-nav-search-section--recent {
    display: none;
}

header.nav-layout #mobileSearchContainer .infyner-nav-search-dropdown .infyner-nav-search-section-title {
    margin: 0 0 6px;
    padding: 0 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
    line-height: 1.2;
}

header.nav-layout #mobileSearchContainer .infyner-nav-search-dropdown .infyner-nav-search-scroll .ibbs-list {
    padding-top: 0;
    padding-bottom: 0;
}

header.nav-layout #mobileSearchContainer .infyner-nav-search-dropdown .ibbs-list {
    list-style: none;
    margin: 0;
    padding: 4px;
}

header.nav-layout #mobileSearchContainer .infyner-nav-search-dropdown .ibbs-item {
    margin: 0;
    padding: 0;
    border-radius: 8px;
}

header.nav-layout #mobileSearchContainer .infyner-nav-search-dropdown .ibbs-item + .ibbs-item {
    margin-top: 2px;
}

header.nav-layout #mobileSearchContainer .infyner-nav-search-dropdown a.ibbs-row-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 8px;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    outline: none;
    transition: background-color 0.12s ease;
}

header.nav-layout #mobileSearchContainer .infyner-nav-search-dropdown a.ibbs-row-link:hover {
    background: rgba(15, 23, 42, 0.04);
}

header.nav-layout #mobileSearchContainer .infyner-nav-search-dropdown a.ibbs-row-link:focus-visible {
    background: rgba(20, 31, 46, 0.06);
    box-shadow: 0 0 0 2px rgba(253, 222, 89, 0.55);
}

header.nav-layout #mobileSearchContainer .infyner-nav-search-dropdown .ibbs-avatar {
    --ibbs-h: 218;
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    background: hsl(var(--ibbs-h) 46% 93%);
    color: hsl(var(--ibbs-h) 36% 26%);
    border: 1px solid hsl(var(--ibbs-h) 38% 82% / 0.65);
}

header.nav-layout #mobileSearchContainer .infyner-nav-search-dropdown .ibbs-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

header.nav-layout #mobileSearchContainer .infyner-nav-search-dropdown .ibbs-name {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.28;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

header.nav-layout #mobileSearchContainer .infyner-nav-search-dropdown .ibbs-meta {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.28;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

header.nav-layout #mobileSearchContainer .infyner-nav-search-dropdown .ibbs-sep {
    margin: 0 0.28em;
    opacity: 0.55;
}

header.nav-layout #mobileSearchContainer .infyner-nav-search-dropdown .ibbs-item--empty {
    padding: 12px 10px;
    font-size: 12px;
    line-height: 1.4;
    color: #64748b;
    text-align: center;
}

header.nav-layout #mobileSearchContainer .infyner-nav-search-input-shell .icon {
    position: absolute;
    right: 2px;
    top: 2px;
    width: 28px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
    cursor: pointer;
    pointer-events: auto;
    transition: color 0.2s ease;
    z-index: 2;
}

header.nav-layout #mobileSearchContainer .infyner-nav-search-input-shell .icon:hover {
    color: #3b82f6;
}

header.nav-layout #mobileSearchContainer .infyner-nav-search-wrap.is-active .infyner-nav-search-input-shell .icon {
    color: #3b82f6;
}

/* Navigation Links */
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.navbar-nav .nav-item {
    margin: 0 0.1rem;
}

.navbar-nav .nav-link {
    color: #e5e7eb !important;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.35rem 0.65rem !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
}

/* Primary CTA (Pricing) â€” compact */
.nav-link--pricing-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    color: #fff !important;
    background: var(--nav-cta) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    font-weight: 600 !important;
    font-size: 0.8125rem !important;
    line-height: 1.2 !important;
    border-radius: 7px !important;
    padding: 0.3rem 0.65rem !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.01em;
}

.nav-link--pricing-cta:hover {
    color: #fff !important;
    filter: brightness(1.06);
    box-shadow: var(--nav-cta-shadow);
}

/* Secondary CTA (Create account) â€” compact */
.nav-link--signup-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.32rem;
    color: #f1f5f9 !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(148, 163, 184, 0.35) !important;
    font-weight: 600 !important;
    font-size: 0.8125rem !important;
    line-height: 1.2 !important;
    border-radius: 7px !important;
    padding: 0.3rem 0.65rem !important;
}

.nav-link--signup-cta:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(226, 232, 240, 0.45) !important;
}

.navbar-nav .nav-link i {
    font-size: 0.75rem;
}

.nav-link--pricing-cta i,
.nav-link--signup-cta i {
    font-size: 0.8rem;
}

/* Services Dropdown */
.services-dropdown-container {
    position: relative;
}

.services-dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.services-dropdown-toggle i {
    font-size: 0.65rem;
    transition: transform 0.3s ease;
}

.services-dropdown-container:hover .services-dropdown-toggle i,
.services-dropdown-container.active .services-dropdown-toggle i {
    transform: rotate(180deg);
}

.services-dropdown-container:hover .services-dropdown-toggle,
.services-dropdown-container.active .services-dropdown-toggle {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

.services-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 6px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid var(--nav-dropdown-border);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1), 0 2px 6px rgba(15, 23, 42, 0.05);
    min-width: 260px;
    max-width: min(92vw, 300px);
    padding: 6px;
    z-index: 1000;
    animation: dropdownFadeIn 0.2s ease-out;
}

.services-dropdown-container:hover .services-dropdown-menu,
.services-dropdown-container.active .services-dropdown-menu {
    display: block;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.services-dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 2px;
}

.services-dropdown-item:last-child {
    margin-bottom: 0;
}

.services-dropdown-item:hover {
    background: #f8fafc;
    transform: translateX(2px);
}

.services-item-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #4f46e5;
    font-size: 12px;
    border: 1px solid rgba(129, 140, 248, 0.35);
}

.services-item-content {
    flex: 1;
}

.services-item-title {
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 2px;
    line-height: 1.25;
}

.services-item-desc {
    font-size: 10px;
    color: #64748b;
    line-height: 1.35;
}

/* User Menu & Avatar */
.user-menu-container {
    position: relative;
    margin-left: 0.35rem;
}

.user-avatar-wrapper {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    color: #f8fafc;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.25s ease;
    border: 1px solid rgba(129, 140, 248, 0.5);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.45);
}

.user-avatar-wrapper:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35);
    border-color: rgba(165, 180, 252, 0.75);
}

.user-avatar-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid var(--nav-dropdown-border);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.05);
    min-width: 188px;
    z-index: 1000;
    overflow: hidden;
    padding: 4px;
    animation: dropdownSlideIn 0.2s ease-out;
}

.user-dropdown-menu.show {
    display: block;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    padding: 7px 10px;
    color: #1e293b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.18s ease, color 0.18s ease;
    border-radius: 6px;
    border-bottom: none;
}

.user-dropdown-item:last-child {
    border-bottom: none;
}

.user-dropdown-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.user-dropdown-item i {
    margin-right: 8px;
    width: 17px;
    text-align: center;
    font-size: 13px;
    color: #4f46e5;
    opacity: 0.92;
}

.user-dropdown-item:hover i {
    color: #4338ca;
    opacity: 1;
}

.user-dropdown-item--logout:hover {
    background: #fef2f2;
    color: #991b1b;
}

.user-dropdown-item--logout:hover i {
    color: #dc2626;
}

.user-dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 4px 6px;
}

/* Navbar Toggler */
.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 0.75rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Footer Styles (legacy - pages without .home-site-footer) */
footer:not(.home-site-footer) {
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
    color: #e5e7eb;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-item {
    margin-bottom: 2rem;
}

.footer-heading {
    margin-bottom: 1.5rem;
}

.footer-heading h2 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.footer-heading img {
   
    opacity: 0.95;
}

.footer-item p {
    color: #b0b0b0;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: 1rem;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 0.75rem;
}

.footer-list a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-list a:hover {
    color: #ffffff;
    padding-left: 0.25rem;
}

.footer-list li:has(a[href^="mailto:"]) a,
.footer-list li:has(a[href^="http"]) a {
    color: #60a5fa;
}

.footer-list li:has(a[href^="mailto:"]) a:hover,
.footer-list li:has(a[href^="http"]) a:hover {
    color: #93c5fd;
}

/* Social Media Links */
.footer-list li[style*="margin-top"] a {
    color: #ffffff;
    font-size: 1.1rem;
    margin: 0 0.5rem;
    transition: transform 0.3s ease;
}

.footer-list li[style*="margin-top"] a:hover {
    transform: translateY(-2px);
    color: #60a5fa;
}

/* Disclaimer & Copyright */
.signup-txt {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
}

.signup-txt span {
    color: #9ca3af;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.signup-txt p {
    color: #9ca3af;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-top: 0.75rem;
}

.sub-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    text-align: center;
}

.sub-footer p {
    color: #9ca3af;
    font-size: 0.85rem;
    margin: 0;
}

.sub-footer a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sub-footer a:hover {
    color: #93c5fd;
}

/* ----- Home page & _Layout footer (matches Views/Home/Index.cshtml) ----- */
html.home-page-fluid footer.home-site-footer {
    margin-top: 0;
}

footer.home-site-footer {
    position: relative;
    margin-top: 3rem;
    padding: clamp(2.75rem, 5vw, 4rem) 0 1.25rem;
    background: linear-gradient(180deg, #0f172a 0%, #020617 55%, #020617 100%);
    color: #94a3b8;
    font-size: 0.9375rem;
    line-height: 1.65;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border-top: none;
}

footer.home-site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #22d3ee, #a78bfa, #fbbf24, #34d399);
    opacity: 0.9;
}

footer.home-site-footer .container {
    position: relative;
    z-index: 1;
    max-width: 100% !important;
    width: 100%;
    padding-left: clamp(1.25rem, 5vw, 3rem);
    padding-right: clamp(1.25rem, 5vw, 3rem);
}

footer.home-site-footer .signup-txt {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

footer.home-site-footer ul li {
    font-weight: 400;
    letter-spacing: normal;
    color: inherit;
}

footer.home-site-footer a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer.home-site-footer a:hover {
    color: #67e8f9;
    text-decoration: none;
}

footer.home-site-footer .footer-list a:hover {
    padding-left: 0;
}

footer.home-site-footer a:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 3px;
    border-radius: 4px;
}

.home-footer-item {
    margin-bottom: 1.75rem;
}

footer.home-site-footer .footer-item {
    margin-bottom: 0;
}

.home-footer-brand__logo {
    display: inline-block;
    margin-bottom: 0.75rem;
}

.home-footer-brand__logo img {
    max-height: 46px;
    width: auto;
    vertical-align: middle;
}

.home-footer-brand__text {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.875rem;
    line-height: 1.7;
    max-width: none;
}

.home-footer__title {
    font-family: 'Outfit', 'Roboto', sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #67e8f9;
    margin: 0 0 1rem;
}

footer.home-site-footer .footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer.home-site-footer .footer-list li {
    margin-bottom: 0.5rem;
}

footer.home-site-footer .footer-list a {
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    padding: 0.15rem 0;
    font-size: 0.9375rem;
}

.home-footer-contact__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.home-footer-contact__list li {
    margin-bottom: 0.55rem;
    font-size: 0.9375rem;
    color: #94a3b8;
}

.home-footer-contact__list a {
    word-break: break-word;
}

.home-footer-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1.1rem;
}

.home-footer-social__label {
    font-family: 'Outfit', 'Roboto', sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #64748b;
    width: 100%;
    margin: 0 0 0.15rem;
}

.home-footer-social__link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: #e2e8f0 !important;
    font-size: 1.05rem;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.home-footer-social__link:hover {
    background: rgba(34, 211, 238, 0.12);
    border-color: rgba(34, 211, 238, 0.35);
    color: #67e8f9 !important;
}

.home-footer-social__link .home-footer-x {
    font-weight: 700;
    font-size: 0.95rem;
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1;
}

.home-footer-disclaimer {
    margin-top: clamp(1.75rem, 4vw, 2.5rem);
    padding-top: 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.home-footer-disclaimer__label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.home-footer-disclaimer__text {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.65;
    color: #64748b;
}

.home-footer-copy {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    text-align: center;
}

footer.home-site-footer .sub-footer.home-footer-copy {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.home-footer-copy p {
    margin: 0;
    font-size: 0.8125rem;
    color: #64748b;
}

@media (min-width: 768px) {
    .home-footer-item {
        margin-bottom: 0;
    }
}

/* Mobile Responsive */
@media (max-width: 992px) {
    header.nav-layout .containerSearch {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin: 1rem 0 0;
    }
    
    /* Home header keeps one row (logo left, links right); see infyner-nav-home.css */
    header .navbar .container:not(.nav-home-container) {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .navbar-nav {
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-item {
        width: 100%;
        margin: 0.25rem 0;
    }
    
    .navbar-nav .nav-link {
        width: 100%;
        text-align: left;
    }

    .services-dropdown-menu {
        position: static;
        display: none;
        margin-top: 0;
        margin-left: 20px;
        min-width: auto;
        width: calc(100% - 40px);
        box-shadow: none;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
        padding: 6px;
    }

    .services-dropdown-container.active .services-dropdown-menu {
        display: block;
    }

    .services-dropdown-item {
        padding: 8px;
        margin-bottom: 2px;
    }

    .services-item-icon {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }

    .services-item-title {
        font-size: 12px;
    }

    .services-item-desc {
        font-size: 10px;
    }
    
    .user-menu-container {
        width: 100%;
    }
    
    .user-dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 0.5rem;
    }
}

@media (max-width: 768px) {
    /* Mobile Header Layout - Single Row: Logo Left, Search Icon Center, Menu Icon Right */
    header.nav-layout .navbar .container {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        /* Horizontal only â€” vertical inset comes from header.nav-layout.navbar */
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        position: relative !important;
    }
    
    header.nav-layout .navbar .container > a {
        flex: 0 0 auto !important;
        margin-right: auto !important;
        z-index: 1 !important;
    }
    
    .imglogo {
        width: auto !important;
        max-width: 180px !important;
        height: 40px !important;
        object-fit: contain !important;
    }
    
    /* Mobile Search Icon Button */
    .mobile-search-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 44px !important;
        height: 44px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        border-radius: 6px !important;
        color: rgba(255, 255, 255, 0.9) !important;
        cursor: pointer !important;
        margin: 0 8px !important;
        transition: all 0.2s ease !important;
        z-index: 10002 !important;
        position: relative !important;
        touch-action: manipulation !important;
        flex: 0 0 auto !important;
    }
    
    .mobile-search-toggle:hover,
    .mobile-search-toggle:focus {
        background: rgba(255, 255, 255, 0.2) !important;
        border-color: rgba(255, 255, 255, 0.5) !important;
        outline: 2px solid rgba(102, 126, 234, 0.5) !important;
        outline-offset: 2px !important;
    }
    
    .mobile-search-toggle.active {
        background: rgba(255, 255, 255, 0.25) !important;
        border-color: rgba(255, 255, 255, 0.6) !important;
    }
    
    .mobile-search-toggle i {
        font-size: 18px !important;
        pointer-events: none !important;
    }
    
    /* Show Mobile Search Toggle Button on Mobile */
    .mobile-search-toggle {
        display: flex !important;
    }
    
    /* Hide desktop header search on mobile (slide-down panel); not banner hero search */
    header.nav-layout .containerSearch {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 1rem !important;
        background: linear-gradient(135deg, #0d1b2a 0%, #1a2332 100%) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
        z-index: 10000 !important;
        animation: slideDown 0.3s ease-out !important;
    }
    
    header.nav-layout .containerSearch.mobile-search-active {
        display: block !important;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    header.nav-layout .containerSearch .infyner-nav-search-wrap {
        width: 100% !important;
        margin: 0 !important;
    }

    header.nav-layout #mobileSearchContainer .infyner-nav-search-field-ring .infyner-nav-search-input {
        width: 100% !important;
        height: 44px !important;
        font-size: 16px !important; /* Prevents iOS zoom */
        padding: 0 3rem 0 1rem !important;
    }

    header.nav-layout #mobileSearchContainer .infyner-nav-search-input-shell .icon {
        height: 44px !important;
        width: 44px !important;
        line-height: 44px !important;
        top: 2px !important;
        right: 2px !important;
    }

    header.nav-layout #mobileSearchContainer .infyner-nav-search-dropdown {
        max-height: min(380px, 50vh) !important;
    }
    
    /* Fix Hamburger Menu Icon Clickability on Mobile - Right Aligned */
    .navbar-toggler {
        z-index: 10003 !important;
        position: relative !important;
        padding: 10px 12px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        width: 44px !important;
        height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        touch-action: manipulation !important;
        border: 1px solid rgba(255, 255, 255, 0.4) !important;
        border-radius: 4px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        transition: all 0.2s ease !important;
        flex: 0 0 auto !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        order: 3 !important;
        /* Ensure button is clickable */
        pointer-events: auto !important;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2) !important;
    }
    
    /* Ensure no other elements block the button */
    .navbar-toggler * {
        pointer-events: none !important;
    }
    
    .navbar-toggler:hover,
    .navbar-toggler:focus {
        background: rgba(255, 255, 255, 0.2) !important;
        border-color: rgba(255, 255, 255, 0.6) !important;
        outline: 2px solid rgba(102, 126, 234, 0.5) !important;
        outline-offset: 2px !important;
    }
    
    .navbar-toggler:active {
        background: rgba(255, 255, 255, 0.15) !important;
        transform: scale(0.98) !important;
    }
    
    .navbar-toggler-icon {
        width: 24px !important;
        height: 24px !important;
        pointer-events: none !important;
        display: block !important;
    }
    
    /* Ensure button container doesn't block clicks */
    header.nav-layout .navbar .container {
        pointer-events: auto !important;
    }
    
    /* Right align button group */
    header.nav-layout .navbar .container > .mobile-search-toggle,
    header.nav-layout .navbar .container > .navbar-toggler {
        margin-left: -45px !important;
    }
    
    /* Hide Desktop Navigation Menu on Mobile Initially */
    .navbar-collapse {
        order: 4 !important;
        width: 100% !important;
        margin-top: 0 !important;
    }
    
    /* Ensure navbar toggler is not blocked by any overlay */
    header.nav-layout {
        position: relative !important;
        z-index: 1000 !important;
    }
    
    header.nav-layout .navbar {
        position: relative !important;
        z-index: 1000 !important;
    }

    header.nav-layout.navbar:has(#mobileSearchContainer .infyner-nav-search-wrap.is-active) {
        z-index: 10055 !important;
    }
    
    /* Force button to be on top layer */
    .navbar-toggler {
        position: relative !important;
        z-index: 10003 !important;
    }
    
    /* Remove any potential blocking elements */
    header.nav-layout .navbar .container::before,
    header.nav-layout .navbar .container::after {
        display: none !important;
    }
    
    /* Ensure button group is properly aligned to the right (non-home headers only) */
    header.nav-layout .navbar .container:not(.nav-home-container) {
        justify-content: flex-start !important;
    }
    
    header.nav-layout .navbar .container:not(.nav-home-container) > a {
        order: 1 !important;
    }
    
    .mobile-search-toggle {
        order: 2 !important;
    }
    
    .navbar-toggler {
        order: 3 !important;
        margin-left: auto !important;
    }
    
    footer.home-site-footer {
        padding: 2.25rem 15px 1.25rem;
    }

    footer.home-site-footer .container {
        padding: 0 4px;
    }

    footer.home-site-footer .footer-item {
        margin-bottom: 0;
    }

    .home-footer-brand__text {
        font-size: 0.875rem;
        max-width: none;
    }

    .home-footer__title {
        margin-bottom: 0.75rem;
    }

    footer.home-site-footer .footer-list a {
        min-height: 44px;
        font-size: 0.9375rem;
    }

    .home-footer-disclaimer__text {
        font-size: 0.72rem !important;
    }

    .home-footer-copy p {
        font-size: 0.78rem !important;
    }

    .footer-item {
        margin-bottom: 2.5rem;
    }
}

/* Home header layout: see infyner-nav-home.css (loaded after templatemo on Home/Index) */

/* Accessibility */
.nav-link:focus,
.footer-list a:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* ============================================================
   Products dropdown — horizontal 4-column grid layout.
   Scoped to .products-dropdown-menu so the Services dropdown
   keeps its existing vertical layout untouched.
   ============================================================ */
.products-dropdown-menu {
    display: none;
    /* Anchor to the right side of the toggle with a safe gutter so the
       4-col grid never clips the viewport. The dropdown grows to the LEFT. */
    left: auto !important;
    right: 12px !important;
    transform: none !important;
    width: min(800px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    min-width: 0;
    padding: 14px;
    /* Smooth fade-in. */
    transition: opacity 180ms ease, visibility 200ms;
    opacity: 0;
    visibility: hidden;
}
/* IMPORTANT: only .active triggers display now (NOT :hover). The JS
   coordinator manages .active for both Services and Products, so the
   two dropdowns can never accidentally open at the same time. */
/* ============================================================
   AGGRESSIVE: Products dropdown ONLY shows when .active is set.
   The parent rule `.services-dropdown-container:hover .services-dropdown-menu
   { display: block }` fires for Products too (because Products carries
   both classes). The four rules below force-hide Products' menu in EVERY
   non-active scenario, then explicitly show it when .active is set.
   ============================================================ */

/* Hide ALWAYS, regardless of :hover or any other state. Wins over the
   parent rule via !important. */
.products-dropdown-container .products-dropdown-menu,
.products-dropdown-container:hover .products-dropdown-menu,
.products-dropdown-container .products-dropdown-menu:hover,
.products-dropdown-container:hover .products-dropdown-menu:hover {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Show ONLY when .active is on the container (set by the JS coordinator). */
.products-dropdown-container.active .products-dropdown-menu,
.products-dropdown-container.active:hover .products-dropdown-menu,
.products-dropdown-container.active .products-dropdown-menu:hover {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 10px;
    row-gap: 10px;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
.products-dropdown-menu .services-dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    background: #ffffff;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
    margin: 0 !important;
}
.products-dropdown-menu .services-dropdown-item:hover {
    background: #f8fafc;
    border-color: #1a3a72;
    transform: none;
}
.products-dropdown-menu .services-item-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.products-dropdown-menu .services-item-content { flex: 1; min-width: 0; }
.products-dropdown-menu .services-item-title {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 2px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.products-dropdown-menu .services-item-desc {
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.4;
    margin: 0;
    /* Limit description to two lines so each card has consistent height */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* The "View all 11 products" footer row spans the full grid width */
.products-dropdown-menu > div[style*="border-top"] {
    grid-column: 1 / -1;
    margin-top: 4px !important;
    padding: 10px 12px !important;
    background: #f8fafc !important;
    border-top: 0 !important;
    border: 1px solid #eef2f7 !important;
    border-radius: 8px;
    text-align: center;
}

/* Mobile fallback — back to a 1-column list under 720px so it stays usable */
@media (max-width: 1080px) {
    .products-dropdown-menu {
        right: 8px !important;
        min-width: 280px;
        width: min(92vw, 320px);
        padding: 6px;
    }
    .products-dropdown-container.active .products-dropdown-menu {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 4px;
    }
    .products-dropdown-menu .services-dropdown-item {
        border-color: transparent;
        padding: 8px 10px;
    }
    .products-dropdown-menu .services-item-desc {
        -webkit-line-clamp: 3;
    }
}
