/*
Theme Name: Vidyarjan Consulting
Theme URI: http://vidyarjanconsulting.com/
Description: A sophisticated Swiss-style landing page for professional recruitment consulting.
Version: 1.4.1
Author: Harekrishna Software Solutions
Text Domain: vidyarjan-consulting
*/

/* --- Design Tokens --- */
:root {
    /* Colors */
    --bg-page: #FAFAFA;
    --bg-card: #FFFFFF;
    --text-primary: #0A0A0A;
    --text-secondary: #444444;
    --text-muted: #888888;
    --accent-blue: #0066FF;
    --accent-red: #FF3300;
    --accent-green: #00AA55;
    --border-primary: #0A0A0A;
    --border-subtle: #EEEEEE;

    /* Strokes & Radii */
    --stroke-width: 2px;
    --radius-standard: 4px;
    --radius-pill: 200px;

    /* Typography */
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --header-height: 80px;
    --section-padding: 100px;
    --container-max: 1200px;
    --transition: 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* --- Base Styles --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--accent-blue);
    color: white;
    padding: 1rem;
    z-index: 2000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.04em;
}

/* --- Header & Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: transparent;
    z-index: 1000;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.header--scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    height: 70px;
    border-bottom: 1px solid var(--border-subtle);
}

.header--menu-open .header {
    background: white;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 1200;
    /* Higher than overlay (1050) */
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.brand__logo {
    width: 40px;
    height: 40px;
    background: var(--text-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.875rem;
    border-radius: var(--radius-standard);
}

.brand__name {
    font-weight: 800;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.nav__list {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav__link {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: var(--transition);
}

.nav__link:hover {
    color: var(--accent-blue);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__cta {
    display: inline-flex;
    padding: 0.75rem 1.5rem;
    background: var(--text-primary);
    color: white;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-standard);
    transition: var(--transition);
}

.nav__cta:hover {
    background: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.2);
}

/* Mobile Toggle */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    /* Controlled by media queries */
    align-items: center;
    gap: 10px;
    z-index: 2000;
    /* Much higher to stay above overlay */
    padding: 10px;
    position: relative;
}

.menu-toggle-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.menu-toggle-icon {
    width: 24px;
    height: 14px;
    position: relative;
}

.menu-toggle-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    position: absolute;
    transition: var(--transition);
}

.menu-toggle-icon span:first-child {
    top: 0;
}

.menu-toggle-icon span:last-child {
    bottom: 0;
}

.header--menu-open .menu-toggle-text {
    color: var(--accent-red);
}

.header--menu-open .menu-toggle-text::after {
    content: 'CLOSE';
    font-size: 0.75rem;
}

.header--menu-open .menu-toggle-text {
    font-size: 0;
}

.header--menu-open .menu-toggle-icon span:first-child {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    background: var(--accent-red);
}

.header--menu-open .menu-toggle-icon span:last-child {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
    background: var(--accent-red);
}

/* Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s var(--transition);
}

.header--menu-open .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav-list {
    list-style: none;
    text-align: center;
}

.mobile-nav-list li {
    margin-bottom: 2rem;
}

.mobile-nav-list a {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
}

/* --- Sections --- */
.section {
    padding: var(--section-padding) 0;
    border-bottom: 1px solid var(--border-subtle);
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    display: block;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 4rem;
}

/* Hero */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
}

.hero h1 {
    font-size: clamp(3.5rem, 9vw, 6.5rem);
    margin-bottom: 2rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin-bottom: 3.5rem;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.bento-item {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-standard);
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.bento-item:hover {
    border-color: var(--accent-blue);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--accent-blue);
}

.service-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.service-desc {
    color: var(--text-secondary);
}

/* Team */
.team-item {
    display: grid;
    grid-template-columns: 350px 1fr;
    background: white;
    border-radius: var(--radius-standard);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    margin-bottom: 3rem;
}

.team-image {
    background: var(--border-subtle);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-avatar {
    font-size: 5rem;
    font-weight: 800;
    color: var(--text-muted);
}

.team-info {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-role {
    font-family: var(--font-mono);
    color: var(--accent-blue);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.team-name {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.team-bio {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Clients */
.clients-strip {
    overflow: hidden;
    padding: 4rem 0;
    background: white;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.clients-container {
    display: flex;
    gap: 6rem;
    animation: scroll var(--marquee-speed, 40s) linear infinite;
    white-space: nowrap;
}

.client-item {
    font-family: var(--font-mono);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    font-size: 1rem;
    letter-spacing: 0.2rem;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Testimonials */
.testimonial-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 3.5rem;
    border-radius: var(--radius-standard);
    border: 1px solid var(--border-subtle);
}

.testimonial-text {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 2.5rem;
    font-weight: 600;
}

.testimonial-author h4 {
    font-size: 1.25rem;
}

.testimonial-author p {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Contact */
.contact-box {
    background: var(--text-primary);
    color: white;
    padding: 6rem;
    border-radius: 8px;
    text-align: center;
}

.contact-box h2 {
    font-size: clamp(2.5rem, 7vw, 5rem);
    margin-bottom: 4rem;
}

.contact-phone {
    font-family: var(--font-mono);
    font-size: clamp(1.5rem, 4vw, 3.5rem);
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 800;
}

/* --- Animations --- */
.animate-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animate-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }

    .nav__list {
        display: none;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-item {
        grid-column: span 1 !important;
    }

    .team-item {
        grid-template-columns: 1fr;
    }

    .team-image {
        aspect-ratio: 4/3;
    }

    .team-info {
        padding: 3rem;
    }
}

@media (max-width: 640px) {
    :root {
        --section-padding: 60px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .contact-box {
        padding: 4rem 1.5rem;
    }

    .brand__name {
        font-size: 1rem;
    }
}