/**
 * HireJasmine Header & Footer Styles
 */

/* ========================================
   SITE HEADER — black two-row: topbar + nav
   ======================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #000000;
    border-bottom: 1px solid #ffffff;
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

/* ---- Topbar ---- */
.site-topbar {
    background: #000000;
    height: 38px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-topbar-inner {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.topbar-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #CFE132;
    animation: topbarPulse 2.4s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes topbarPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.45; transform: scale(0.7); }
}

.topbar-text {
    color: rgba(255, 255, 255, 0.75);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.topbar-link {
    color: #CFE132;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.3px;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.topbar-link:hover {
    opacity: 0.8;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---- Main nav row ---- */
.site-header-inner {
    position: relative;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 0;
}

/* ---- Logo ---- */
.site-logo {
    display: inline-flex;
    gap: 0;
    align-items: baseline;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.35rem;
    letter-spacing: 3px;
    flex-shrink: 0;
}

.logo-hire {
    color: #ffffff;
    transition: color 0.2s ease;
}

.logo-jasmine {
    background: linear-gradient(135deg, #850D8C, #CFE132);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: 6px;
}

.site-logo:hover .logo-hire {
    color: #CFE132;
}

/* ---- Logo / Nav divider ---- */
.site-logo-divider {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 28px;
    flex-shrink: 0;
}

/* ---- Nav ---- */
.site-nav {
    flex: 1;
    display: flex;
    align-items: center;
}

.site-nav-list {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav-link {
    display: block;
    padding: 8px 14px;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    border-radius: 8px;
    letter-spacing: 0.3px;
    transition: color 0.2s ease, background 0.2s ease;
    position: relative;
}

.site-nav-link::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: linear-gradient(90deg, #850D8C, #CFE132);
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.site-nav-link:hover,
.site-nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
}

.site-nav-link:hover::after,
.site-nav-link.active::after {
    transform: scaleX(1);
}

/* ---- Right side buttons ---- */
.site-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: auto;
}

/* Client Login — white outline ghost button */
.header-login-btn {
    display: inline-block;
    padding: 9px 20px;
    background: transparent;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    letter-spacing: 0.3px;
    white-space: nowrap;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.header-login-btn:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

/* Let's Work Together — filled gradient button */
.header-cta-btn {
    display: inline-block;
    padding: 10px 22px;
    background: linear-gradient(135deg, #850D8C, #CFE132);
    color: #0a0a0a;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    letter-spacing: 0.3px;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 12px rgba(133, 13, 140, 0.35);
}

.header-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(133, 13, 140, 0.45);
}

/* ---- Mobile toggle ---- */
.header-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.header-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.25s ease;
}

.header-mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.header-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.header-mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Mobile drawer ---- */
.mobile-nav-drawer {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid #ffffff;
    padding: 16px 24px 24px;
    transform: translateY(-8px);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    pointer-events: none;
}

.mobile-nav-drawer.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-nav-link {
    display: block;
    padding: 11px 16px;
    color: rgba(255, 255, 255, 0.75);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

.mobile-nav-login {
    color: #CFE132;
    font-weight: 600;
}

.mobile-nav-cta {
    display: block;
    margin-top: 12px;
    padding: 13px 16px;
    background: linear-gradient(135deg, #850D8C, #CFE132);
    color: #0a0a0a;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
    text-align: center;
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.mobile-nav-cta:hover {
    opacity: 0.9;
    box-shadow: 0 4px 14px rgba(133, 13, 140, 0.3);
}

/* Push body down: topbar (38px) + nav row (68px) = 106px */
body {
    padding-top: 106px;
}

/* ========================================
   RESPONSIVE — header
   ======================================== */

@media (max-width: 900px) {
    /* Hide topbar on mobile */
    .site-topbar {
        display: none;
    }

    /* Nav row fills the space */
    body {
        padding-top: 68px;
    }

    .site-nav {
        display: none;
    }

    .site-logo-divider {
        display: none;
    }

    .header-login-btn,
    .header-cta-btn {
        display: none;
    }

    .header-mobile-toggle {
        display: flex;
    }

    .mobile-nav-drawer {
        display: block;
        top: 68px;
    }

    .site-header-inner {
        padding: 0 20px;
    }
}

/* ========================================
   FOOTER STYLES
   ======================================== */

.footer {
    background: var(--color-black);
    color: var(--color-neutral);
    padding: var(--space-4xl) 0 var(--space-2xl);
    position: relative;
    overflow: hidden;
}

/* Subtle background pattern */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 15% 15%, var(--color-primary-alpha-10) 0%, transparent 50%),
        radial-gradient(circle at 85% 85%, var(--color-accent-alpha-10) 0%, transparent 50%);
    pointer-events: none;
}

/* Footer Top */
.footer-top {
    margin-bottom: var(--space-3xl);
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.footer-column {
    animation: fadeInUp 0.8s ease-out;
}

.footer-column:nth-child(1) { animation-delay: 0.1s; }
.footer-column:nth-child(2) { animation-delay: 0.2s; }
.footer-column:nth-child(3) { animation-delay: 0.3s; }
.footer-column:nth-child(4) { animation-delay: 0.4s; }
.footer-column:nth-child(5) { animation-delay: 0.5s; }

/* Brand spans full width, displayed horizontally */
.footer-brand {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-lg);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer-brand .footer-tagline {
    margin-bottom: 0;
}

.footer-brand .social-links {
    flex-shrink: 0;
}

/* Footer Brand */
.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
    letter-spacing: 2px;
    white-space: nowrap;
}

.footer-tagline {
    color: rgba(250, 249, 246, 0.7);
    font-size: var(--text-sm);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

/* Social Links */
.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-neutral);
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-primary);
}

/* Footer Headings */
.footer-heading {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: var(--space-lg);
    position: relative;
    padding-bottom: var(--space-sm);
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-primary);
}

/* Footer Menu */
.footer-menu {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-menu li a {
    color: rgba(250, 249, 246, 0.8);
    font-size: var(--text-sm);
    transition: all var(--transition-base);
    display: inline-block;
}

.footer-menu li a:hover {
    color: var(--color-accent);
    transform: translateX(5px);
}

/* Footer Contact */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(250, 249, 246, 0.8);
    font-size: var(--text-sm);
}

.footer-contact li svg {
    flex-shrink: 0;
    color: var(--color-accent);
}

.footer-contact li a {
    color: inherit;
    transition: color var(--transition-base);
}

.footer-contact li a:hover {
    color: var(--color-accent);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-xl);
    position: relative;
    z-index: 1;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.copyright {
    color: rgba(250, 249, 246, 0.6);
    font-size: var(--text-sm);
}

.footer-links {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.footer-links a {
    color: rgba(250, 249, 246, 0.7);
    font-size: var(--text-sm);
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-links .separator {
    color: rgba(255, 255, 255, 0.3);
}

.footer-credit {
    color: rgba(250, 249, 246, 0.6);
    font-size: var(--text-sm);
}

.footer-credit .heart {
    color: var(--color-primary);
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.1); }
    20%, 40% { transform: scale(0.95); }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl);
    }

    .footer-brand {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    /* Footer */
    .footer {
        padding: var(--space-3xl) 0 var(--space-xl);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}
