﻿/* ==========================================================================
     Navbar Component — SSS-Hub
     Pure CSS3. No JavaScript. Desktop dropdowns open on hover/focus,
     mobile menu + mobile dropdowns run on the checkbox technique.
     ========================================================================== */
.navbar {
    --bg: #3A3836;
    --text: #F2F0EE;
    --text-muted: #C9C6C2;
    --accent: #F5A623;
    --accent-dark: #D68A0E;
    --accent-soft: #FDECD2;
    --green: #22C55E;
    --panel-bg: #FFFFFF;
    --panel-border: #E5E7EB;
    --panel-hover-bg: #EAFBF0;
    --panel-text: #2F2F2F;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    animation: navbarSlide .4s ease;
}

@keyframes navbarSlide {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}
.navbar * {
    box-sizing: border-box;
}

.navbar__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(8px, 1.6vw, 20px);
    max-width: 1600px;
    margin: 0 auto;
    padding: clamp(10px, 1.6vw, 14px) clamp(14px, 3vw, 28px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    position: relative;
}

/* ---------- Logo ---------- */
.navbar__logo {
    flex: none;
    display: inline-flex;
    align-items: center;
    font-size: clamp(16px, 1.6vw, 22px);
    font-weight: 800;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: -0.01em;
}

/* ===========================================================
   Desktop category items (Product / Features / Solutions / Company)
   =========================================================== */
.navbar__categories {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.navbar__item {
    position: relative;
    /* CRITICAL: Item ko hover ke liye proper area dena */
    padding: 0;
}

.navbar__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px clamp(8px, 1vw, 14px);
    font-size: 17px;
    color: #1b1b1b;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
    position: relative;
    /* CRITICAL: Z-index ensure karna */
    z-index: 2;
}

    /* BRIDGE: Link se dropdown tak invisible bridge */
    .navbar__link::after {
        content: '';
        position: absolute;
        bottom: -12px;
        left: 0;
        right: 0;
        height: 12px;
        background: transparent;
        /* CRITICAL: Z-index ensure */
        z-index: 2;
    }

    .navbar__link:hover,
    .navbar__item:hover .navbar__link {
        background: var(--accent);
        color: #fff;
    }

.navbar__chevron {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .3s ease;
    flex-shrink: 0;
}

.navbar__item:hover .navbar__chevron {
    transform: rotate(225deg);
}

/* DROPDOWN: Perfectly attached with no gaps */
.navbar__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    box-shadow: 0 20px 45px rgba(20,18,31,0.16);
    padding: 12px;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* CRITICAL: Z-index ensure karna */
    z-index: 100;
    /* CRITICAL: Transition delay for smooth hover */
    transition: opacity 0.15s ease, visibility 0.15s ease;
    transition-delay: 0.1s;
}

    /* BRIDGE: Dropdown se link tak invisible bridge */
    .navbar__dropdown::before {
        content: "";
        position: absolute;
        top: -12px;
        left: 0;
        right: 0;
        height: 12px;
        background: transparent;
        /* CRITICAL: Z-index ensure */
        z-index: 2;
    }

    /* ========== CRITICAL HOVER LOGIC ========== */
    /* Jab item par hover ho ya dropdown par hover ho toh open rahe */
    .navbar__item:hover .navbar__dropdown,
    .navbar__item:focus-within .navbar__dropdown,
    .navbar__dropdown:hover {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        /* Transition delay hatao jab open ho */
        transition-delay: 0s;
    }

    /* EXTRA SAFETY: Dropdown ke andar kisi bhi cheez par hover ho toh open rahe */
    .navbar__dropdown * {
        pointer-events: auto;
    }

    .navbar__dropdown li + li {
        margin-top: 4px;
    }

    .navbar__dropdown a {
        display: flex;
        align-items: center;
        padding: 9px 12px;
        border-left: 3px solid transparent;
        border-radius: 8px;
        color: var(--panel-text);
        text-decoration: none;
        font-size: 14px;
        font-weight: 600;
        transition: background 0.25s ease, border-color 0.25s ease, padding-left 0.25s ease;
        /* CRITICAL: Click events ko allow karna */
        pointer-events: auto;
    }

        .navbar__dropdown a:hover {
            background: var(--panel-hover-bg);
            border-left-color: var(--accent);
            padding-left: 16px;
        }

/* ===========================================================
   Utility links (Pricing / FAQ / Contact) — inline on desktop
   =========================================================== */
.navbar__utility {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0 8px;
}

    .navbar__utility a {
        display: inline-flex;
        padding: 10px 12px;
        font-size: 17px;
        color: #1b1b1b;
        font-weight: 500;
        text-decoration: none;
        border-radius: 8px;
        white-space: nowrap;
        transition: background 0.2s ease, color 0.2s ease;
    }

        .navbar__utility a:hover {
            background: var(--accent);
            color: #fff;
        }

/* ===========================================================
   Button A — "More" (Pricing / FAQ / Contact), appears ≤1000px
   =========================================================== */
.navbar__more {
    display: none;
    position: relative;
}

.navbar__more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1.5px solid #E2DFDA;
    background: #fff;
    color: #1F1D1B;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

    .navbar__more-btn:hover {
        border-color: var(--accent);
        color: var(--accent-dark);
    }

.navbar__more-chevron {
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.navbar__more.is-open .navbar__more-btn {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.navbar__more.is-open .navbar__more-chevron {
    transform: rotate(225deg);
}

.navbar__more-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 180px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    box-shadow: 0 20px 45px rgba(20,18,31,0.16);
    padding: 10px;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.navbar__more.is-open .navbar__more-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navbar__more-panel li + li {
    margin-top: 4px;
}

.navbar__more-panel a {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--panel-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

    .navbar__more-panel a:hover {
        background: var(--panel-hover-bg);
        color: var(--accent-dark);
    }

/* ===========================================================
   Button B — hamburger (Product/Features/Solutions/Company drawer)
   =========================================================== */
.navbar__hamburger {
    display: none;
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #1F1D1B;
    border: none;
    padding: 0;
    transition: background 0.25s ease, transform 0.15s ease;
}

    .navbar__hamburger:hover {
        background: #34312D;
    }

    .navbar__hamburger:active {
        transform: scale(0.94);
    }

.navbar__hamburger-box {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 13px;
}

.navbar__hamburger-bar {
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background-color: #fff;
    transition: transform 0.3s cubic-bezier(.4,0,.2,1), opacity 0.2s ease, top 0.25s ease;
}

.navbar__hamburger-bar--top {
    top: 0;
}

.navbar__hamburger-bar--mid {
    top: 5.5px;
}

.navbar__hamburger-bar--bottom {
    top: 11px;
}

.navbar.nav-open .navbar__hamburger {
    background: var(--accent);
}

.navbar.nav-open .navbar__hamburger-bar--top {
    top: 5.5px;
    transform: rotate(45deg);
}

.navbar.nav-open .navbar__hamburger-bar--mid {
    opacity: 0;
}

.navbar.nav-open .navbar__hamburger-bar--bottom {
    top: 5.5px;
    transform: rotate(-45deg);
}

/* ---------- CTA ---------- */
.navbar__cta {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(9px, 1.2vw, 14px) clamp(14px, 2vw, 24px);
    border-radius: 12px;
    background: var(--green);
    color: #fff;
    font-size: clamp(12.5px, 1vw, 14px);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.25s ease;
}

    .navbar__cta:hover {
        transform: translateY(-1px);
    }

/* ===========================================================
   Categories drawer (Button B panel)
   =========================================================== */
.navbar__drawer {
    display: none;
    max-height: 0;
    overflow: hidden;
    background: #fff;
    border-top: 1px solid #EFEDEA;
    transition: max-height 0.35s ease;
}

.navbar.nav-open .navbar__drawer {
    max-height: 80vh;
    overflow-y: auto;
}

.navbar__drawer-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 6px clamp(14px, 3vw, 28px) 16px;
}

.navbar__accordion-item {
    border-bottom: 1px solid #EFEDEA;
}

    .navbar__accordion-item:last-child {
        border-bottom: none;
    }

.navbar__accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 4px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    color: #1F1D1B;
    text-align: left;
    cursor: pointer;
}

.navbar__accordion-item .navbar__chevron {
    border-color: var(--accent);
    transition: transform 0.3s ease;
}

.navbar__accordion-item.is-open .navbar__chevron {
    transform: rotate(225deg);
}

.navbar__accordion-panel {
    max-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: max-height 0.3s ease;
}

    .navbar__accordion-panel a {
        padding: 11px 8px 11px 14px;
        color: #55524D;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        border-left: 2px solid #EFEDEA;
        margin-left: 4px;
        transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    }

        .navbar__accordion-panel a:hover {
            color: var(--accent-dark);
            border-left-color: var(--accent);
            background: rgba(245,166,35,0.05);
        }
        /* ===========================================================
   RESPONSIVE BREAKPOINTS
   =========================================================== */

/* ---- ≤1400px: tighten spacing slightly ---- */
@media (max-width: 1400px) {
    .navbar__categories {
        gap: 0;
    }
}

/* ---- ≤1000px: utility links collapse into "More" button ---- */
@media (max-width: 1000px) {
    .navbar__utility {
        display: none;
    }

    .navbar__more {
        display: block;
    }
}

/* ---- ≤600px: categories collapse into hamburger drawer ---- */
@media (max-width: 750px) {
    .navbar__categories {
        display: none;
    }

    .navbar__hamburger {
        display: flex;
    }

    .navbar__drawer {
        display: block;
    }

    .navbar__bar {
        flex-wrap: nowrap;
    }
}

/* ---- Tablet portrait fine-tuning ---- */
@media (max-width: 768px) {
    .navbar__bar {
        padding: 10px 16px;
    }

    .navbar__logo {
        font-size: 19px;
    }
}

/* ---- Large phones ---- */
@media (max-width: 576px) {
    .navbar__bar {
        padding: 10px 14px;
        gap: 8px;
    }

    .navbar__cta {
        padding: 9px 14px;
        font-size: 12.5px;
    }

    .navbar__more-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* ---- Small phones ---- */
@media (max-width: 480px) {
    .navbar__logo {
        font-size: 16px;
    }

    .navbar__hamburger {
        width: 38px;
        height: 38px;
    }

    .navbar__cta {
        padding: 8px 12px;
        font-size: 12px;
    }

    .navbar__more-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* ---- Very small phones (down to ~300px) ---- */
@media (max-width: 380px) {
    .navbar__bar {
        padding: 8px 10px;
        gap: 6px;
    }

    .navbar__logo {
        font-size: 14px;
    }

    .navbar__hamburger {
        width: 34px;
        height: 34px;
    }

    .navbar__more-btn {
        padding: 7px 10px;
        font-size: 12px;
    }

    .navbar__cta {
        padding: 7px 10px;
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .navbar * {
        transition: none !important;
    }
}




/*-----------NAV END---------*/







/*    ----FOOTER----*/

.site-footer {
    --bg: #3A3836;
    --heading: #F5F4F2;
    --body-text: #B7B4B0;
    --muted: #8C8A87;
    --accent: #f8b604;
    --green: #4dc247;
    --border: rgba(255,255,255,0.1);
    --dot: rgba(255,255,255,0.08);
    --social-bg: rgba(255,255,255,0.08);
    background: radial-gradient(var(--dot) 1px, transparent 1px) 0 0/18px 18px, var(--bg);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    padding: 64px 32px 32px;
}

    .site-footer * {
        box-sizing: border-box;
    }

.site-footer__inner {
    max-width: 1240px;
    margin: 0 auto;
}

.site-footer__top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 48px;
}

.site-footer__brand {
    opacity: 0;
    transform: translateY(14px);
    animation: ftFadeUp 0.6s ease forwards;
}

.site-footer__logo {
    display: inline-flex;
    align-items: center;
    font-size: 22px;
    font-weight: 800;
    color: var(--heading);
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .site-footer__logo:hover {
    }

.site-footer__desc {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--body-text);
    max-width: 300px;
    margin: 0 0 22px;
}

.site-footer__socials {
    display: flex;
    gap: 12px;
}

    .site-footer__socials a {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: var(--social-bg);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--heading);
        transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), background 0.3s ease;
    }

        .site-footer__socials a:hover {
            background: var(--accent);
            transform: translateY(-3px) scale(1.06);
        }

    .site-footer__socials svg {
        width: 17px;
        height: 17px;
        fill: currentColor;
    }

.site-footer__col {
    opacity: 0;
    transform: translateY(14px);
    animation: ftFadeUp 0.6s ease forwards;
}

    .site-footer__col:nth-of-type(2) {
        animation-delay: 0.08s;
    }

    .site-footer__col:nth-of-type(3) {
        animation-delay: 0.14s;
    }

    .site-footer__col:nth-of-type(4) {
        animation-delay: 0.2s;
    }

    .site-footer__col:nth-of-type(5) {
        animation-delay: 0.26s;
    }

    .site-footer__col h4 {
        font-size: 12.5px;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--accent);
        margin: 0 0 22px;
    }

    .site-footer__col ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .site-footer__col li {
        margin-bottom: 16px;
    }

    .site-footer__col a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 14.5px;
        color: var(--body-text);
        text-decoration: none;
        transition: color 0.2s ease, transform 0.2s ease;
    }

        .site-footer__col a svg {
            width: 12px;
            height: 12px;
            stroke: var(--accent);
            fill: none;
            stroke-width: 3;
            flex: none;
            transition: transform 0.2s ease;
        }

        .site-footer__col a:hover {
            color: var(--heading);
            transform: translateX(3px);
        }

            .site-footer__col a:hover svg {
                transform: translateX(2px);
            }

.site-footer__divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0 0 28px;
}

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    opacity: 0;
    transform: translateY(10px);
    animation: ftFadeUp 0.6s ease forwards;
    animation-delay: 0.3s;
}

.site-footer__copyright {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: var(--muted);
}

    .site-footer__copyright svg {
        width: 16px;
        height: 16px;
        stroke: var(--accent);
        fill: none;
        stroke-width: 2;
        flex: none;
    }

.site-footer__contact {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13.5px;
    color: var(--body-text);
    flex-wrap: wrap;
}

    .site-footer__contact a {
        color: var(--body-text);
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .site-footer__contact a:hover {
            color: var(--heading);
        }

.site-footer__dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--body-text);
    flex: none;
}

@keyframes ftFadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 980px) {
    .site-footer__top {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 40px;
    }

    .site-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .site-footer {
        padding: 48px 20px 24px;
    }

    .site-footer__top {
        grid-template-columns: 1fr;
    }

    .site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer__brand, .site-footer__col, .site-footer__bottom {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

        .site-footer__logo, .site-footer__socials a, .site-footer__col a {
            transition: none !important;
        }
}
