/* Craft Connect Staffing - Construction-Focused Design */
/* Optimized for conversion, not vanity */

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700;800&family=Bitter:wght@700;800&display=swap');

/* Design Philosophy: Industrial, trustworthy, action-oriented */
/* Colors: Construction safety colors + professional blue-grays */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* New Color Palette: Warm, Construction-Friendly */
    --spicy-paprika: #e4572e;    /* Primary CTA, accents */
    --canary-yellow: #f0f66e;    /* Highlights, trust signals */
    --honeydew: #f0f8ea;         /* Light backgrounds */
    --muted-olive: #a8c686;      /* Secondary accents */
    --palm-leaf: #9d9c62;        /* Earthy tones */
    
    /* Functional Colors Mapped */
    --primary-orange: #e4572e;   /* Spicy Paprika - main CTAs */
    --primary-blue: #9d9c62;     /* Palm Leaf - replaced blue with earthy tone */
    --accent-yellow: #f0f66e;    /* Canary Yellow - highlights */
    
    /* Neutrals: Industrial grays */
    --dark: #1A1A1A;
    --charcoal: #2D3142;
    --mid-gray: #4F5D75;
    --light-gray: #BFC0C0;
    --off-white: #f0f8ea;        /* Honeydew - softer than pure white */
    
    /* UI States */
    --success: #a8c686;          /* Muted Olive */
    --warning: #f0f66e;          /* Canary Yellow */
    --error: #e4572e;            /* Spicy Paprika */
    
    /* Typography */
    --font-heading: 'Bitter', serif;
    --font-body: 'Barlow', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--dark);
    line-height: 1.7;
    font-size: 18px;
    background: white;
    overflow-x: hidden;
}

/* Typography Hierarchy */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    font-weight: 800;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--dark);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--dark);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--charcoal);
}

p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--charcoal);
    max-width: 65ch;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: white;
    z-index: 1000;
    padding: 1rem 5%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 0.75rem 5%;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-blue);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary-orange);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--charcoal);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary-orange);
}

/* CTA Buttons - Construction Industry Standard */
.cta-primary {
    background: var(--primary-orange);
    color: white;
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-orange);
    display: inline-block;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.cta-primary:hover {
    background: #E55A2B;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.cta-secondary {
    background: transparent;
    color: var(--primary-blue);
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-blue);
    display: inline-block;
}

.cta-secondary:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

/* Hero Section - Results-Focused */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--palm-leaf) 0%, var(--charcoal) 100%);
    position: relative;
    padding: 120px 5% 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.03) 10px,
            rgba(255, 255, 255, 0.03) 20px
        );
    opacity: 0.5;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-text .subheadline {
    font-size: 1.5rem;
    color: var(--accent-yellow);
    font-weight: 700;
    margin-bottom: 2rem;
}

.hero-text p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Trust Bar */
.trust-bar {
    background: var(--off-white);
    padding: 2rem 5%;
    border-bottom: 3px solid var(--canary-yellow);
}

.trust-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.trust-item {
    padding: 1rem;
}

.trust-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-orange);
    display: block;
    line-height: 1;
}

.trust-label {
    color: var(--charcoal);
    font-weight: 600;
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Section Styles */
section {
    padding: 80px 5%;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--mid-gray);
    margin: 0 auto;
}

/* Benefits Section */
.benefits {
    background: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.benefit-card {
    background: var(--off-white);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-orange);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-left-width: 8px;
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-orange);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.benefit-card h3 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.benefit-card p {
    color: var(--mid-gray);
    font-size: 1.125rem;
}

/* Testimonials */
.testimonials {
    background: var(--palm-leaf);
    color: white;
}

.testimonials .section-header h2,
.testimonials .section-header p {
    color: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.testimonial-text {
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 700;
    color: var(--accent-yellow);
}

.testimonial-role {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--spicy-paprika) 0%, #d14520 100%);
    color: white;
    text-align: center;
    padding: 80px 5%;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.cta-section p {
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 2.5rem;
    max-width: 700px;
}

.cta-section .cta-primary {
    background: var(--palm-leaf);
    border-color: var(--palm-leaf);
    font-size: 1.25rem;
    padding: 1.25rem 3rem;
}

.cta-section .cta-primary:hover {
    background: var(--charcoal);
    border-color: var(--charcoal);
}

/* FAQ Section */
.faq {
    background: var(--off-white);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--palm-leaf);
}

.faq-question {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.faq-answer {
    color: var(--mid-gray);
    line-height: 1.8;
}

/* Forms */
.form-section {
    background: white;
    padding: 80px 5%;
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--off-white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-weight: 700;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    width: 100%;
    background: var(--primary-orange);
    color: white;
    padding: 1.25rem;
    border: none;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover {
    background: #E55A2B;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.form-submit:disabled {
    background: var(--light-gray);
    cursor: not-allowed;
    transform: none;
}

/* AI Screening Section */
.ai-screening {
    margin-top: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    border: 2px solid var(--palm-leaf);
}

.ai-screening h3 {
    color: var(--palm-leaf);
    margin-bottom: 1rem;
}

.screening-question {
    margin-bottom: 2rem;
}

.screening-question label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--dark);
    font-weight: 600;
    font-size: 1.125rem;
}

.screening-question textarea {
    min-height: 100px;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 3rem 5% 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h4 {
    color: var(--accent-yellow);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--primary-orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 4rem;
}

.mb-4 {
    margin-bottom: 4rem;
}

/* Loading State */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Message */
.success-message {
    background: var(--success);
    color: white;
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

.error-message {
    background: var(--error);
    color: white;
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        display: none;
    }
    
    .nav-links {
        display: none;
    }
    
    .benefits-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .form-container {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 100px 5% 60px;
    }
    
    .hero-ctas {
        flex-direction: column;
    }
    
    .cta-primary,
    .cta-secondary {
        width: 100%;
        text-align: center;
    }
}
