/* ========================================
   HirePlans Home Page - Minimal Styles
   Only includes styles for homepage components
   ======================================== */

:root {
    /* Brand colors */
    --brand-gold: #F4C542;
    --brand-gold-600: #D4A017;
    --ink-900: #0A0A0A;
    --ink-600: #4B4B4B;
    --bg-0: #FFFFFF;
    --bg-50: #FAFAFA;
    --line-200: #EAEAEA;
    
    /* Typography */
    --font-family: Inter, ui-sans-serif, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --line-height-base: 1.6;
    --line-height-tight: 1.2;
    
    /* Spacing scale (8px base) */
    --space-1: 0.5rem;   /* 8px */
    --space-2: 1rem;     /* 16px */
    --space-3: 1.5rem;   /* 24px */
    --space-4: 2rem;     /* 32px */
    --space-6: 3rem;     /* 48px */
    --space-8: 4rem;     /* 64px */
    
    /* Layout */
    --container-max: 1200px;
    --container-padding: 1.5rem; /* 24px */
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Scope styles to homepage layout to avoid conflicts */
.home-layout h1, .home-layout h2, .home-layout h3, .home-layout h4, .home-layout h5, .home-layout h6 {
    font-weight: 700;
    line-height: var(--line-height-tight);
    letter-spacing: -0.02em;
}

.home-layout h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.home-layout h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.home-layout h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

/* Buttons - scoped to avoid conflicts */
.home-layout .btn--primary {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    background-color: var(--brand-gold);
    color: var(--ink-900);
}

.home-layout .btn--primary:hover {
    background-color: var(--brand-gold-600);
    text-decoration: none;
}

.home-layout .btn--primary:active {
    transform: translateY(1px);
}

.home-layout .btn--large {
    padding: 0.875rem 2rem;
    font-size: 1.0625rem;
}

.home-layout .btn--inline {
    margin-top: var(--space-3);
}

.home-layout .btn--ghost {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    border: 1px solid var(--line-200);
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    color: var(--ink-900);
}

.home-layout .btn--ghost:hover {
    background-color: var(--bg-50);
    text-decoration: none;
}

/* Container utility */
.home-layout .container {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* ========================================
   Header & Navigation
   ======================================== */

.home-layout .header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg-0);
    border-bottom: 1px solid var(--line-200);
    box-shadow: var(--shadow-sm);
}

/* Scroll offset for anchor links to account for sticky header */
.home-layout {
    scroll-padding-top: 90px; /* Header height (73px) + extra padding (17px) */
}

/* Alternative method for older browsers */
.home-layout :target {
    scroll-margin-top: 90px;
}

.home-layout .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-2);
    padding-bottom: var(--space-2);
    gap: var(--space-3);
    position: relative;
}

.home-layout .nav__logo {
    z-index: 100;
}

.home-layout .logo-img {
    height: 40px;
    width: auto;
    display: block;
}

/* Hamburger Menu */
.home-layout .nav__toggle {
    display: none;
}

.home-layout .nav__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
    position: relative;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    background-color: transparent;
}

.home-layout .nav__hamburger:hover {
    background-color: var(--bg-50);
}

.home-layout .nav__toggle:checked ~ .nav__hamburger:hover {
    background-color: transparent;
}

.home-layout .nav__toggle:focus-visible ~ .nav__hamburger {
    outline: 2px solid var(--ink-900);
    outline-offset: 2px;
}

.home-layout .nav__hamburger-line {
    width: 25px;
    height: 2px;
    background-color: var(--ink-900);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.home-layout .nav__links {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.home-layout .nav__link {
    font-weight: 500;
    color: var(--ink-600);
    text-decoration: none;
}

.home-layout .nav__link:hover {
    color: var(--ink-900);
}

/* Mobile Menu */
@media (max-width: 959px) {
    .home-layout .nav__hamburger {
        display: flex;
    }
    
    /* Mobile menu backdrop - covers only the main content area */
    .home-layout .nav__links::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 280px; /* Leave exact space for sidebar */
        height: 100vh;
        background-color: rgba(0, 0, 0, 0);
        z-index: 999; /* Above main content but below sidebar */
        pointer-events: none; /* Initially not clickable */
        transition: all 0.3s ease; /* Smooth fade animation */
        opacity: 0;
    }
    
    .home-layout .nav__toggle:checked ~ .nav__links::after {
        background-color: rgba(0, 0, 0, 0.5);
        pointer-events: auto; /* Allow clicking to close when visible */
        opacity: 1;
    }
    
    .home-layout .nav__links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--bg-0);
        flex-direction: column;
        align-items: stretch;
        padding: 80px 24px 24px;
        gap: 0;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
        transition: right 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
    }
    
    .home-layout .nav__toggle:checked ~ .nav__links {
        right: 0;
    }
    
    /* Transform hamburger to clean X */
    .home-layout .nav__toggle:checked ~ .nav__hamburger {
        background-color: transparent;
    }
    
    .home-layout .nav__toggle:checked ~ .nav__hamburger .nav__hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
        transform-origin: center;
    }
    
    .home-layout .nav__toggle:checked ~ .nav__hamburger .nav__hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .home-layout .nav__toggle:checked ~ .nav__hamburger .nav__hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
        transform-origin: center;
    }
    
    .home-layout .nav__link {
        padding: var(--space-2) 0;
        border-bottom: 1px solid var(--line-200);
        display: block;
        width: 100%;
        color: var(--ink-900);
        font-weight: 500;
    }
    
    .home-layout .nav__link:hover {
        color: var(--brand-gold-600);
        background-color: var(--bg-50);
        padding-left: var(--space-2);
        margin-left: calc(-1 * var(--space-2));
        border-radius: 4px;
    }
    
    .home-layout .nav__links .btn {
        width: 100%;
        text-align: center;
        margin-top: var(--space-2);
    }
    
    .home-layout .nav__links .btn--ghost {
        margin-top: var(--space-3);
    }
}

/* ========================================
   Hero Section
   ======================================== */

.home-layout .hero {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
    background-color: #FFFBF0;
    background-image: radial-gradient(circle, rgba(244, 197, 66, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    position: relative;
    display: flex;
    align-items: center;
}

.home-layout .hero .container {
    width: 100%;
}

.home-layout .hero__content {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    margin-bottom: var(--space-6);
    flex-direction: column;
}

.home-layout .hero__text {
    flex: 1;
    text-align: center;
}

.home-layout .hero__slogan {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--brand-gold-600);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-3);
}

.home-layout .hero__headline {
    margin-bottom: var(--space-3);
}

.home-layout .hero__subtext {
    font-size: var(--font-size-lg);
    color: var(--ink-600);
}

.home-layout .hero__illustration {
    display: none;
}

.home-layout .hero__illustration img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.08));
}

.home-layout .search-form {
    display: flex;
    gap: var(--space-2);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
}

.home-layout .search-form__group {
    flex: 1;
    min-width: 200px;
}

.home-layout .search-form__input,
.home-layout .search-form__select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--line-200);
    border-radius: 0.375rem;
    background-color: var(--bg-0);
    color: var(--ink-900);
}

.home-layout .search-form__input:focus,
.home-layout .search-form__select:focus {
    outline: 2px solid var(--brand-gold);
    outline-offset: 0;
    border-color: var(--brand-gold);
}

.home-layout .search-form__input::placeholder {
    color: var(--ink-600);
}

.home-layout .trust-bar {
    display: flex;
    justify-content: center;
    margin-top: var(--space-6);
}

.home-layout .trust-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    width: 100%;
    max-width: 700px;
}

.home-layout .trust-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-3);
    background-color: var(--bg-0);
    border: 1px solid var(--line-200);
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.home-layout .trust-stat:hover {
    border-color: var(--brand-gold);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.home-layout .trust-stat__number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-gold-600);
    margin-bottom: var(--space-1);
    line-height: 1.2;
}

.home-layout .trust-stat__label {
    font-size: 0.875rem;
    color: var(--ink-600);
    font-weight: 500;
    line-height: 1.4;
}

/* ========================================
   Mission Section
   ======================================== */

.home-layout .mission {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
    background-color: var(--bg-50);
}

.home-layout .mission__content {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-3);
    border-left: 4px solid var(--brand-gold);
}

.home-layout .mission__title {
    margin-bottom: var(--space-3);
}

.home-layout .mission__text {
    font-size: var(--font-size-lg);
    color: var(--ink-600);
}

.home-layout .mission__text + .mission__text {
    margin-top: var(--space-3);
}

/* ========================================
   Featured Jobs
   ======================================== */

.home-layout .featured-jobs {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
}

.home-layout .section-title {
    margin-bottom: var(--space-6);
    text-align: center;
}

.home-layout .jobs-grid {
    display: grid;
    gap: var(--space-3);
    grid-template-columns: 1fr;
}

.home-layout .job-card {
    padding: var(--space-4);
    background-color: var(--bg-0);
    border: 1px solid var(--line-200);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.home-layout .job-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--brand-gold);
}

.home-layout .job-card__title {
    font-size: 1.25rem;
    margin-bottom: var(--space-1);
}

.home-layout .job-card__company {
    font-weight: 600;
    color: var(--ink-600);
    margin-bottom: 0.25rem;
}

.home-layout .job-card__location {
    font-size: 0.9375rem;
    color: var(--ink-600);
    margin-bottom: var(--space-2);
}

.home-layout .job-card__tags {
    display: flex;
    gap: var(--space-1);
    margin-bottom: var(--space-2);
    flex-wrap: wrap;
}

.home-layout .tag {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    font-size: 0.8125rem;
    background-color: var(--bg-50);
    color: var(--ink-600);
    border-radius: 0.25rem;
    border: 1px solid var(--line-200);
}

.home-layout .job-card__salary {
    font-weight: 600;
    color: var(--ink-900);
    margin-bottom: var(--space-2);
}

.home-layout .job-card__link {
    font-weight: 600;
    color: var(--brand-gold-600);
    text-decoration: none;
}

.home-layout .job-card__link:hover {
    color: var(--ink-900);
}

/* ========================================
   Categories
   ======================================== */

.home-layout .categories {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
    background-color: #FAFAFA;
    background-image: radial-gradient(circle, rgba(10, 10, 10, 0.02) 1px, transparent 1px);
    background-size: 20px 20px;
}

.home-layout .category-grid {
    display: grid;
    gap: var(--space-2);
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.home-layout .pill-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3);
    background-color: var(--bg-0);
    border: 1px solid var(--line-200);
    border-radius: 2rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.home-layout .pill-card:hover {
    background-color: var(--brand-gold);
    border-color: var(--brand-gold);
    text-decoration: none;
    box-shadow: var(--shadow-md);
}

.home-layout .pill-card__name {
    font-weight: 600;
    color: var(--ink-900);
}

.home-layout .pill-card__count {
    font-size: 0.875rem;
    color: var(--ink-600);
}

.home-layout .pill-card:hover .pill-card__count {
    color: var(--ink-900);
}

/* ========================================
   How It Works
   ======================================== */

.home-layout .how-it-works {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
}

.home-layout .how-grid {
    display: grid;
    gap: var(--space-8);
    grid-template-columns: 1fr;
}

.home-layout .how-column__title {
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-2);
    border-bottom: 2px solid var(--brand-gold);
}

.home-layout .steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.home-layout .step {
    display: flex;
    gap: var(--space-3);
}

.home-layout .step__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--brand-gold);
    color: var(--ink-900);
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.125rem;
}

.home-layout .step__content {
    flex: 1;
}

.home-layout .step__title {
    font-size: 1.125rem;
    margin-bottom: var(--space-1);
}

.home-layout .step__text {
    color: var(--ink-600);
}

/* ========================================
   Testimonials
   ======================================== */

.home-layout .testimonials {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
    background-color: #FFFCF5;
    background-image: radial-gradient(circle, rgba(244, 197, 66, 0.06) 1px, transparent 1px);
    background-size: 32px 32px;
}

.home-layout .testimonials-grid {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: 1fr;
}

.home-layout .testimonial {
    padding: var(--space-4);
    background-color: var(--bg-0);
    border-left: 4px solid var(--brand-gold);
    border-radius: 0.375rem;
    border: none;
    margin: 0;
}

.home-layout .testimonial__quote {
    font-size: var(--font-size-lg);
    color: var(--ink-900);
    margin-bottom: var(--space-3);
    line-height: 1.7;
}

.home-layout .testimonial__quote::before {
    content: '"';
    color: var(--brand-gold);
    font-size: 2rem;
    font-weight: 700;
    line-height: 0;
    position: relative;
    top: 0.5rem;
    margin-right: 0.25rem;
}

.home-layout .testimonial__author {
    font-style: normal;
}

.home-layout .testimonial__name {
    font-weight: 700;
    color: var(--ink-900);
    font-style: normal;
}

.home-layout .testimonial__role {
    font-size: 0.9375rem;
    color: var(--ink-600);
    margin-top: 0.25rem;
}

/* ========================================
   CTA Band
   ======================================== */

.home-layout .cta-band {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
    background: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 50%, #0A0A0A 100%);
    color: var(--bg-0);
    position: relative;
    overflow: hidden;
}

.home-layout .cta-band::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(244, 197, 66, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.home-layout .cta-band::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(244, 197, 66, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.home-layout .cta-band__content {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.home-layout .cta-band__headline {
    color: var(--bg-0);
    margin-bottom: var(--space-2);
}

.home-layout .cta-band__text {
    font-size: var(--font-size-lg);
    color: var(--line-200);
    margin-bottom: var(--space-4);
}

.home-layout .cta-band__actions {
    display: flex;
    gap: var(--space-2);
    justify-content: center;
    flex-wrap: wrap;
}

.home-layout .cta-band .btn--ghost {
    color: var(--bg-0);
    border-color: var(--bg-0);
}

.home-layout .cta-band .btn--ghost:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ========================================
   Footer
   ======================================== */

.home-layout .footer {
    padding-top: var(--space-8);
    padding-bottom: var(--space-4);
    background-color: #FAFAFA;
    background-image: radial-gradient(circle, rgba(10, 10, 10, 0.015) 1px, transparent 1px);
    background-size: 16px 16px;
    border-top: 1px solid var(--line-200);
}

.home-layout .footer__grid {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-bottom: var(--space-6);
}

.home-layout .footer__heading {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-3);
    color: var(--ink-900);
}

.home-layout .footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
}

.home-layout .footer__links a {
    color: var(--ink-600);
    font-size: 0.9375rem;
    text-decoration: none;
}

.home-layout .footer__links a:hover {
    color: var(--ink-900);
    text-decoration: underline;
}

.home-layout .social-icons {
    display: flex;
    gap: var(--space-2);
}

.home-layout .social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-0);
    border: 1px solid var(--line-200);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ink-600);
    transition: all 0.2s ease;
    text-decoration: none;
}

.home-layout .social-icon:hover {
    background-color: var(--brand-gold);
    border-color: var(--brand-gold);
    color: var(--ink-900);
    text-decoration: none;
}

.home-layout .footer__bottom {
    padding-top: var(--space-4);
    border-top: 1px solid var(--line-200);
    text-align: center;
}

.home-layout .footer__copyright {
    font-size: 0.875rem;
    color: var(--ink-600);
    margin: 0;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (min-width: 640px) {
    :root {
        --container-padding: 2rem; /* 32px */
    }
    
    .home-layout .search-form__group {
        min-width: 160px;
    }
    
    .home-layout .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .home-layout .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .home-layout .trust-stats {
        grid-template-columns: repeat(4, 1fr);
        max-width: 900px;
    }
}

@media (min-width: 960px) {
    .home-layout .logo-img {
        height: 50px;
    }
    
    .home-layout .hero {
        height: calc(100vh - 84px);
        padding-top: var(--space-6);
        padding-bottom: var(--space-6);
    }
    
    .home-layout .hero__content {
        flex-direction: row;
        text-align: left;
    }
    
    .home-layout .hero__text {
        text-align: left;
    }
    
    .home-layout .hero__slogan {
        text-align: left;
    }
    
    .home-layout .hero__illustration {
        display: block;
        flex: 1;
        max-width: 450px;
        width: 100%;
    }
    
    .home-layout .jobs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .home-layout .how-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .home-layout .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .home-layout .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
