/* ============================================================
   COMPONENTS — Navbar · Buttons · Section Utilities · Footer
   Xecutify site — shared across all pages
   ============================================================ */

/* ============================================================
   1. NAVBAR
   ============================================================ */

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition:
        background 0.25s,
        border-color 0.25s,
        backdrop-filter 0.25s;
}

#navbar.scrolled {
    background: rgba(7, 10, 16, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom-color: var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo-img {
    height: 72px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

footer .brand-logo-img {
    height: 32px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.nav-links a,
.nav-group-btn {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    text-decoration: none;
    border-radius: 6px;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-group-btn:hover,
.nav-group.open .nav-group-btn {
    color: var(--text-1);
    background: rgba(255, 255, 255, 0.05);
}

.nav-group {
    position: relative;
}

.nav-group-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.nav-direct {
    color: var(--text-1);
}

.chev {
    color: var(--text-4);
    transition: transform 0.18s ease, color 0.18s ease;
}

.nav-group:hover .chev,
.nav-group:focus-within .chev,
.nav-group.open .chev {
    color: var(--text-2);
    transform: rotate(180deg);
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 210px;
    padding: 10px;
    list-style: none;
    background: rgba(7, 10, 16, 0.98);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        visibility 0.18s ease;
}

.nav-dropdown a {
    display: block;
    padding: 10px 12px;
    font-size: 13.5px;
    border-radius: 8px;
}

.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown,
.nav-group.open .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.nav-login {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    text-decoration: none;
    padding: 7px 12px;
    border-radius: 6px;
    transition: var(--transition);
}

.nav-login:hover {
    color: var(--text-1);
}

.nav-login.is-auth-greeting {
    color: var(--text-1);
    font-weight: 600;
}

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-2);
}

/* ============================================================
   2. MOBILE MENU
   ============================================================ */

.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background: rgba(7, 10, 16, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0 28px;
    z-index: 999;
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu a {
    display: block;
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    padding: 13px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-2);
    text-decoration: none;
    border-bottom: 1px solid var(--border-dim);
    transition: color 0.18s;
}

.mobile-menu a:last-of-type {
    border-bottom: none;
}

.mobile-menu a:hover {
    color: var(--text-1);
}

.mm-group {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    border-bottom: 1px solid var(--border-dim);
}

.mm-group-label {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    padding: 14px 0 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-1);
}

.mm-group-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    background: none;
    border: none;
    color: var(--text-1);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.mm-group-toggle svg {
    flex-shrink: 0;
    color: var(--text-4);
    transition: transform 0.18s ease, color 0.18s ease;
}

.mm-group.open .mm-group-toggle svg {
    transform: rotate(180deg);
    color: var(--text-2);
}

.mm-group-links {
    display: none;
    padding: 0 0 8px;
}

.mm-group.open .mm-group-links {
    display: block;
}

.mm-group-links a {
    width: 100%;
    margin: 0;
    padding: 11px 0 11px 14px;
    font-size: 15px;
    border-bottom: none;
}

.mobile-menu .btn-primary {
    margin-top: 20px;
    width: min(1120px, calc(100% - 48px));
    justify-content: center;
    padding: 13px;
    font-size: 15px;
    border-bottom: none;
}

/* ============================================================
   3. BUTTONS
   ============================================================ */

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 7px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(249, 115, 22, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(249, 115, 22, 0.08);
    color: var(--text-1);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 7px;
    border: 1.5px solid var(--accent);
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.15);
}

.btn-secondary:hover {
    background: rgba(249, 115, 22, 0.15);
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.35);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 13px 28px;
    font-size: 15px;
}

/* ============================================================
   4. SECTION UTILITIES
   ============================================================ */

section {
    padding: 80px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    color: var(--accent);
    margin-bottom: 14px;
}

.eyebrow::before {
    content: "";
    display: block;
    width: 18px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.sec-title {
    font-size: clamp(26px, 3.2vw, 36px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-1);
    margin-bottom: 16px;
}

.sec-sub {
    font-size: 16px;
    color: var(--text-2);
    max-width: 560px;
    line-height: 1.67;
}

.sec-head {
    margin-bottom: 48px;
}

.sec-head-c {
    text-align: center;
}

.sec-head-c .eyebrow {
    justify-content: center;
}

.sec-head-c .sec-sub {
    margin: 0 auto;
}

/* ============================================================
   5. FOOTER
   ============================================================ */

footer {
    background: #040710;
    border-top: 1px solid var(--border);
    padding: 56px 0 28px;
}

footer .container {
    width: min(calc(100% - (var(--container-gutter) * 2)), var(--container-wide));
}

.foot-inner {
    display: grid;
    grid-template-columns: minmax(16rem, 1.6fr) repeat(4, minmax(8.75rem, 1fr));
    gap: clamp(32px, 3vw, 52px);
    margin-bottom: 48px;
}

.foot-tag {
    font-size: 13.5px;
    color: var(--text-3);
    line-height: 1.67;
    max-width: 30ch;
    margin-top: 14px;
}

.foot-col-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-3);
    margin-bottom: 18px;
}

.foot-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.foot-links a {
    font-size: 14px;
    color: var(--text-3);
    text-decoration: none;
    transition: color 0.18s;
}

.foot-links a:hover {
    color: var(--text-1);
}

.foot-bottom {
    border-top: 1px solid var(--border-dim);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.foot-copy {
    font-size: 13px;
    color: var(--text-4);
}

.foot-ver {
    font-size: 13px;
    color: var(--text-4);
}

.foot-ver span {
    color: var(--text-3);
}

.foot-legal {
    display: flex;
    align-items: center;
    gap: 20px;
}

.foot-legal a {
    font-size: 13px;
    color: var(--text-4);
    text-decoration: none;
    transition: color 0.18s;
}

.foot-legal a:hover {
    color: var(--text-2);
}

/* ============================================================
   6. RESPONSIVE
   ============================================================ */

@media (min-width: 769px) {
    #navbar .nav-brand {
        margin-left: -6px;
    }

    .brand-logo-img {
        height: 62px;
    }

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

@media (max-width: 1024px) {
    .foot-inner {
        grid-template-columns: 1fr 1fr;
    }
    .foot-inner > :first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1180px) {
    .nav-links,
    .nav-right {
        display: none;
    }
    .nav-hamburger {
        display: flex;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    .nav-inner {
        height: 58px;
    }
    .nav-hamburger {
        padding: 6px;
    }
    .mobile-menu {
        top: 58px;
        max-height: calc(100dvh - 58px);
        padding: 10px 0 20px;
    }
    .mobile-menu .btn-primary {
        margin-top: 14px;
        padding: 12px;
    }
    .brand-logo-img {
        height: 52px;
    }
    footer .brand-logo-img {
        height: 30px;
    }
    .foot-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
