/* 
    GK HR Standard UI Architecture
    Consistency Layer for Header, Footer, and Global Tokens
*/

:root {
    --primary: #5B3FA0;
    --primary-light: #7B61C4;
    --black: #111111;
    --deep-black: #080808;
    --white: #FFFFFF;
    --surface: #F9F9F9;
    --text-main: #222222;
    --text-muted: #666666;
    --footer-text: #AAAAAA;
    --border: rgba(0, 0, 0, 0.08);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: all 0.5s var(--ease);
}

/* 1. Header Standardisation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    transition: 0.4s var(--ease);
    background: transparent;
    border-bottom: 1px solid transparent;
}

header.scrolled,
header.subpage-header {
    padding: 10px 0;
    background: #fff !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--border);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-links {
    display: flex;
    gap: 2.2rem;
    align-items: center;
}

.header-logo {
    height: 42px;
    mix-blend-mode: multiply;
    filter: contrast(120%);
}

.nav-link {
    text-decoration: none;
    color: var(--black) !important;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
}

.nav-link:hover {
    color: var(--primary) !important;
}

.nav-item .nav-link::after {
    content: '';
    width: 5px;
    height: 5px;
    border-right: 1.2px solid currentColor;
    border-bottom: 1.2px solid currentColor;
    transform: rotate(45deg);
    margin-left: 8px;
    transition: transform 0.3s var(--ease);
    opacity: 0.6;
    display: inline-block;
}

.nav-item:hover > .nav-link::after {
    transform: rotate(-135deg);
}

.nav-item {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 260px;
    padding: 1.5rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.4s var(--ease);
    z-index: 1001;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 0.6rem 0;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    transition: 0.3s;
}

.dropdown-link:hover {
    color: var(--primary);
    padding-left: 0.5rem;
}

/* 2. Hero Padding Fix (Prevent Merging) */
.page-hero,
.hero,
.ind-hero,
.contact-hero {
    padding-top: 160px !important;
}

/* 3. Footer Standardisation */
footer {
    background: #000 !important;
    padding: 6rem 0 3.5rem;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 3rem;
    text-align: left;
}

.f-col h4 {
    margin-bottom: 1.8rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    /* Reduced for better fit */
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.f-col a {
    display: block;
    text-decoration: none;
    color: var(--footer-text);
    margin-bottom: 0.8rem;
    font-size: 0.8rem;
    transition: 0.3s var(--ease);
}

.f-col a:hover {
    color: var(--primary-light) !important;
    padding-left: 0.3rem;
}

.footer-logo {
    height: 38px;
    filter: brightness(0) invert(1);
    mix-blend-mode: normal;
}

.f-bottom {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #555;
}

/* 4. Subpage Special Sections */
.cta-banner {
    padding: 7rem 0;
    text-align: center;
    background: #fff !important;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 5;
    color: var(--black) !important;
}

.cta-banner h2 {
    margin-bottom: 1rem;
    color: var(--black) !important;
}

.cta-banner p {
    color: var(--text-muted);
    margin-bottom: 3rem;
}

/* 5. Responsive Handlers */
@media (max-width: 1200px) {
    .container {
        padding: 0 4rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr !important;
        gap: 3rem;
        row-gap: 4rem;
    }

    .f-bottom {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (max-width: 991px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 300px;
        background: #fff !important;
        flex-direction: column;
        padding: 100px 3rem;
        gap: 1.5rem;
        z-index: 10000;
        align-items: flex-start;
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 1rem 0 0 1rem;
        display: none;
    }

    .nav-item:hover .dropdown {
        display: block;
    }

    footer {
        padding: 4rem 0 2.5rem;
    }

    footer .container {
        padding: 0 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 2.5rem;
        row-gap: 3rem;
    }

    .f-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        margin-top: 3rem;
    }

    .f-bottom p {
        text-align: center !important;
    }
}

@media (max-width: 767px) {
    footer {
        padding: 3.5rem 0 2rem;
    }

    footer .container {
        padding: 0 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 2.5rem;
    }

    .f-col {
        padding: 0 !important;
    }

    .f-col a {
        display: block;
        margin-bottom: 0.8rem;
        font-size: 0.85rem;
    }

    .f-col h4 {
        display: block;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 1.5rem !important;
        display: block;
    }

    .f-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.4rem;
        margin-top: 2.5rem;
        padding-top: 1.5rem;
    }

    .f-bottom p {
        text-align: center !important;
        font-size: 0.7rem;
    }

    .page-hero,
    .hero,
    .ind-hero,
    .contact-hero {
        padding-top: 120px !important;
    }
}

/* 6. Visual Enhancements */
.page-hero.has-bg {
    background: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?q=80&w=2000') center / cover no-repeat;
    position: relative;
    min-height: 400px;
    /* adjust as needed */
}

.page-hero.has-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.9) 30%, rgba(255, 255, 255, 0.7) 100%);
    z-index: 1;
}

.page-hero.has-bg .container {
    position: relative;
    z-index: 2;
}

.mid-page-visual {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    background-image: url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?q=80&w=2000');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

@media (max-width: 767px) {
    .mid-page-visual {
        background-attachment: scroll;
        height: 300px;
    }
}

/* 7. Utility Classes */
.v-h {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* 8. Global Paragraph Styling */
p {
    text-align: justify;
}

/* Ensure centered, highlighted, and carousel text is not justified */
.usp-highlight p,
.cta-banner p,
.cta-bottom p,
.stat-item p,
.testimonial-carousel p,
.t-slide p,
.t-slide cite,
.f-bottom p {
    text-align: center;
}

/* 9. Enforce Global List Item Consistency */
.benefit-item,
.ach-item,
.usp-item {
    font-size: 0.9rem !important;
    color: var(--text-muted) !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
}

/* 10. Disable Custom Cursor globally and restore standard pointer */
* {
    cursor: auto !important;
}

a, button, [role="button"], select, input, textarea, .faq-q, .dropdown-link, .nav-link {
    cursor: pointer !important;
}

.cursor-dot, .cursor-ring {
    display: none !important;
}