/* ============================================
   Peak Sourcing Solutions
   Design System: Clean Professional Preset
   ============================================ */

/* CSS Variables */
:root {
    /* Clean Professional Palette */
    --color-bg-body: #FFFFFF;
    --color-bg-surface: #F4F6F8;
    --color-text-main: #0F172A;
    --color-text-muted: #475569;
    --color-accent: #0284C7;
    --color-accent-hover: #0369A1;
    --color-accent-light: #E0F2FE;
    --color-border: #E2E8F0;

    /* Typography */
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing & Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 2rem;
    --radius-xl: 3rem;
    --container-padding: 2rem;
    --container-max: 1140px;
}

/* ============================================
   1. Reset & Base
   ============================================ */
*, *::before, *::after {
    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);
    font-size: 17px;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   2. Noise Overlay (Premium Layer)
   ============================================ */
.noise-svg {
    position: absolute;
    width: 0;
    height: 0;
    visibility: hidden;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    filter: url(#noiseFilter);
}

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

.section {
    padding: 6rem var(--container-padding);
}

.section-alt {
    background: var(--color-bg-surface);
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.overline {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1rem;
    display: block;
}

.overline-light {
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   4. Navbar
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background 0.4s ease, padding 0.4s ease, border-bottom 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    padding: 0.75rem 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    z-index: 1002;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.navbar:not(.scrolled) .logo-text {
    color: #FFFFFF;
}

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

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #FFFFFF;
}

.navbar.scrolled .nav-links a {
    color: var(--color-text-muted);
}

.navbar.scrolled .nav-links a:hover {
    color: var(--color-text-main);
}

.btn-nav {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
}

.navbar:not(.scrolled) .btn-nav {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
}

.navbar:not(.scrolled) .btn-nav:hover {
    background: rgba(255, 255, 255, 0.25);
}

.navbar:not(.scrolled) .btn-nav::before {
    background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   5. Mobile Navigation
   ============================================ */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    width: 44px;
    height: 44px;
    padding: 0;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1002;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--color-text-main);
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: block;
}

.navbar:not(.scrolled) .hamburger-line {
    background: #FFFFFF;
}

.mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    z-index: 1001;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-panel[aria-hidden="false"] {
    right: 0;
}

.panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.mobile-panel[aria-hidden="false"] .panel-overlay {
    opacity: 1;
    pointer-events: auto;
}

.panel-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg-body);
    padding: 5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
}

.panel-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--color-text-muted);
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-close:hover {
    color: var(--color-text-main);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav a {
    font-size: 1.125rem;
    color: var(--color-text-main);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
}

.mobile-nav a:hover {
    color: var(--color-accent);
}

.mobile-cta {
    margin-top: 1rem;
    text-align: center;
}

.desktop-only {
    display: flex;
}

/* ============================================
   6. Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding: 8rem var(--container-padding) 6rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(135deg, #0F172A 0%, #1E293B 40%, #0F172A 100%);
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -50px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 720px;
    position: relative;
}

.hero-overline {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(2, 132, 199, 0.9);
    margin-bottom: 1.25rem;
}

.hero h1 {
    font-size: clamp(2.75rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.btn-hero-primary {
    box-shadow: 0 0 24px rgba(2, 132, 199, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-lg);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
    color: #FFFFFF;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 0.25rem;
}

/* ============================================
   7. Service Cards
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--color-bg-body);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 4px 20px rgba(2, 132, 199, 0.08);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    background: var(--color-accent-light);
    color: var(--color-accent);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.service-card p {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ============================================
   8. How It Works / Process
   ============================================ */
.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 720px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    gap: 2rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--color-border);
    position: relative;
}

.process-step:last-child {
    border-bottom: none;
}

.step-number {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
    opacity: 0.3;
    line-height: 1;
    flex-shrink: 0;
    width: 60px;
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.step-content p {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ============================================
   9. Industries
   ============================================ */
.industries-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.industry-tag {
    padding: 0.625rem 1.5rem;
    background: var(--color-bg-body);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: all 0.3s ease;
}

.industry-tag:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: var(--color-accent-light);
}

/* ============================================
   10. Testimonials
   ============================================ */
.testimonials-row {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.testimonials-row::-webkit-scrollbar {
    height: 6px;
}

.testimonials-row::-webkit-scrollbar-track {
    background: var(--color-border);
    border-radius: 3px;
}

.testimonials-row::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 3px;
}

.testimonial-card {
    flex: 0 0 340px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: var(--color-bg-body);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    gap: 1.25rem;
}

.testimonial-stars {
    display: flex;
    gap: 2px;
}

.testimonial-card blockquote p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-text-main);
    font-style: italic;
}

.testimonial-card cite {
    margin-top: auto;
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.testimonial-card cite strong {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.testimonial-card cite span {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

/* ============================================
   11. Contact Section
   ============================================ */
.contact-section {
    background: var(--color-text-main);
    color: #FFFFFF;
    padding: 6rem var(--container-padding);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

.contact-info h2 {
    color: #FFFFFF;
    font-size: clamp(2rem, 3vw, 2.5rem);
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

.contact-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 480px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #FFFFFF;
}

.contact-link svg {
    flex-shrink: 0;
    opacity: 0.6;
}

/* Contact Form */
.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-group-full {
    grid-column: 1 / -1;
}

.contact-form label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    color: #FFFFFF;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
}

.contact-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.contact-form select option {
    background: var(--color-text-main);
    color: #FFFFFF;
}

.btn-submit {
    grid-column: 1 / -1;
    justify-self: start;
}

.form-status {
    grid-column: 1 / -1;
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

.form-status.success {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-status.error {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ============================================
   12. Footer
   ============================================ */
.site-footer {
    background: var(--color-text-main);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem var(--container-padding) 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.footer-tagline {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
    max-width: 300px;
}

.footer-col h4 {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1.25rem;
}

.footer-col a {
    display: block;
    margin-bottom: 0.625rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #FFFFFF;
}

.footer-address {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1.5rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.35);
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.8125rem;
}

.footer-legal a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   13. Buttons (Magnetic)
   ============================================ */
.btn-magnetic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background: var(--color-accent);
    color: #FFFFFF;
    border-radius: var(--radius-lg);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border: none;
}

.btn-magnetic:hover {
    transform: scale(1.03);
}

.btn-magnetic:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
}

.btn-magnetic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-accent-hover);
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 0;
}

.btn-magnetic:hover::before {
    transform: translateX(0);
}

.btn-magnetic span {
    position: relative;
    z-index: 1;
}

/* ============================================
   14. Interactive Lift
   ============================================ */
.interactive-lift {
    transition: transform 0.3s ease;
}

.interactive-lift:hover {
    transform: translateY(-2px);
}

/* ============================================
   15. Animations
   ============================================ */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
}

/* ============================================
   16. Responsive
   ============================================ */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero {
        padding: 6rem var(--container-padding) 4rem;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .section {
        padding: 4rem var(--container-padding);
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .process-step {
        flex-direction: column;
        gap: 0.75rem;
    }

    .step-number {
        width: auto;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .testimonial-card {
        flex: 0 0 280px;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 1.25rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .service-card {
        padding: 2rem;
    }
}

/* ============================================
   17. Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }

    .animate-in {
        opacity: 1 !important;
        transform: none !important;
    }

    html {
        scroll-behavior: auto;
    }
}
