/* Peak Sourcing Solutions - Clean Professional Theme */
/* Based on FlexFly Reference Template */

/* 1. CSS VARIABLES */
:root {
    /* Colors - Clean Professional */
    --color-bg-body: #FFFFFF;
    --color-bg-surface: #F4F6F8;
    --color-text-main: #0F172A;
    --color-text-muted: #475569;
    --color-accent: #0284C7;
    --color-accent-hover: #0369A1;
    --color-border: #E2E8F0;

    /* Typography */
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Space Mono', monospace; /* Keep for technical bits? Spec didn't specify mono, allowing fallback or reuse */

    /* Spacing & Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1rem; /* Spec says 1rem for cards */
    --radius-xl: 2rem;
    --container-padding: 5vw;
    --max-width: 1200px;
}

/* 2. UNIVERSAL PREMIUM LAYER & RESET */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-text-main);
}

p { color: var(--color-text-muted); margin-bottom: 1.5rem; }

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }

img, svg { max-width: 100%; display: block; }

/* Noise Overlay */
.noise-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 9999; opacity: 0.05; filter: url(#noiseFilter);
}
.noise-svg { position: absolute; width: 0; height: 0; }

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* 3. COMPONENT LIBRARY */

/* Buttons */
.btn-magnetic {
    display: inline-flex;
    align-items: center; justify-content: center;
    padding: 1rem 2rem;
    background: var(--color-accent);
    color: #fff;
    border-radius: var(--radius-sm); /* Clean look */
    font-family: var(--font-heading); /* Match theme */
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, background 0.3s ease;
}
.btn-magnetic:hover { transform: translateY(-2px); background: var(--color-accent-hover); }
.btn-magnetic:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.btn-secondary {
    background: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
}
.btn-secondary:hover {
    background: var(--color-accent);
    color: #fff;
}

/* Navbar */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: background 0.3s ease, padding 0.3s ease, border-bottom 0.3s ease;
}
.navbar .container {
    display: flex; justify-content: space-between; align-items: center;
}
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
}
.nav-logo { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 800; color: var(--color-text-main); }
.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-links a { font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--color-accent); }
.nav-links a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--color-text-main); }

/* Hero */
.hero {
    padding-top: 8rem; padding-bottom: 6rem;
    height: 100dvh;
    display: flex; align-items: center;
    background-color: var(--color-bg-body);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, transparent 50%);
    z-index: 1;
}
.hero-content { max-width: 650px; position: relative; z-index: 2; }
.hero h1 { 
    font-size: clamp(2.5rem, 5vw, 4rem); 
    margin-bottom: 1.5rem; 
    letter-spacing: -0.02em;
}
.hero-p { font-size: 1.25rem; margin-bottom: 2.5rem; max-width: 500px; }
.trust-ticker { margin-top: 4rem; font-size: 0.875rem; color: var(--color-text-muted); opacity: 0.8; }
.hero-bg-img {
    position: absolute; right: 0; top: 0; width: 45%; height: 100%;
    object-fit: cover; opacity: 0.2; mix-blend-mode: multiply; /* Subtle overlap */
    z-index: 0;
}

/* Sections General */
.section { padding: 6rem 0; }
.bg-surface { background-color: var(--color-bg-surface); }
.text-center { text-align: center; }
.section-header { margin-bottom: 4rem; max-width: 700px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 1rem; }

/* Grid Layouts */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 3rem; align-items: center; }

/* Cards & Interactives */
.card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}
.card-icon { 
    width: 3rem; height: 3rem; 
    background: var(--color-bg-surface); 
    color: var(--color-accent);
    display: flex; align-items: center; justify-content: center;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}
.card-icon svg { width: 1.5rem; height: 1.5rem; }

/* Process Steps */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.process-step { position: relative; padding-top: 2rem; }
.step-number { 
    font-size: 4rem; font-weight: 800; color: var(--color-border); 
    line-height: 1; margin-bottom: 1rem; opacity: 0.5;
}

/* Trust Badges */
.trust-badges { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; margin-top: 2rem; }
.badge { 
    background: white; padding: 1rem 2rem; border: 1px solid var(--color-border);
    border-radius: 2rem; font-weight: 600; font-size: 0.9rem;
    display: flex; align-items: center; gap: 0.5rem;
}

/* Contact */
.contact-wrapper {
    background: var(--color-text-main);
    color: white;
    border-radius: var(--radius-xl);
    padding: 4rem;
}
.contact-wrapper p {
    color: var(--color-border);
}
.contact-wrapper h2 { color: white; margin-bottom: 2rem; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: white;
    font-family: inherit;
}
.form-group input:focus { outline: 1px solid var(--color-accent); border-color: var(--color-accent); }

/* Footer */
.footer {
    background: var(--color-text-main);
    color: white;
    padding: 4rem 0 2rem;
    font-size: 0.9rem;
}
.footer a { color: var(--color-border); opacity: 0.7; }
.footer a:hover { opacity: 1; color: white; }

/* Utilities */
.animate-in { opacity: 0; transform: translateY(20px); }

/* Mobile */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .hero-content { padding-right: 0; }
    .hero-bg-img { opacity: 0.05; width: 100%; }
    .contact-wrapper { padding: 2rem; }
    
    /* Mobile Menu Overlay */
    .mobile-menu {
        position: fixed; top: 0; right: 0; width: 80%; height: 100%;
        background: white; z-index: 2000; padding: 4rem 2rem;
        transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.8,0,0.2,1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }
    .mobile-menu.active { transform: translateX(0); }
    .mobile-menu a { display: block; font-size: 1.5rem; margin-bottom: 1.5rem; font-weight: 700; }
}
