/**
 * Smart Supply B2B - Main Stylesheet
 * Custom CSS (replaces Tailwind CDN)
 */

/* ============================================
   CSS Variables
   ============================================ */
:root {
    /* Brand Colors */
    --brand-navy: #0f172a;
    --brand-accent: #2563eb;
    --brand-accent-hover: #1d4ed8;
    --industrial-grey: #64748b;

    /* Slate Palette */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    /* Blue Palette */
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-7xl: 4.5rem;

    /* Shadows */
    --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);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Transitions */
    --transition-base: all 0.3s ease;
    --transition-slow: all 0.7s ease;

    /* Container */
    --container-max: 80rem;
    --container-padding: 1.5rem;
}

/* ============================================
   Base Styles
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    color: var(--slate-900);
    background-color: var(--slate-50);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

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

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.grid {
    display: grid;
}

.hidden {
    display: none;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    width: 100%;
    z-index: 50;
    background-color: white;
    border-bottom: 1px solid var(--slate-200);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--slate-900);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: var(--font-size-xl);
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.nav-logo-name {
    font-size: var(--font-size-xl);
    font-weight: 700;
    letter-spacing: -0.025em;
    text-transform: uppercase;
    color: var(--slate-900);
}

.nav-logo-tagline {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--slate-500);
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

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

.nav-link {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--slate-700);
    transition: var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--blue-600);
}

.nav-cta {
    background-color: var(--blue-600);
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 2px;
    font-size: var(--font-size-xs);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--transition-base);
    box-shadow: var(--shadow-md);
}

.nav-cta:hover {
    background-color: var(--blue-700);
}

.nav-mobile-btn {
    display: block;
    background: none;
    border: none;
    color: var(--slate-900);
    font-size: var(--font-size-xl);
    cursor: pointer;
}

.lang-switch {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

.lang-switch a {
    padding: 0.25rem 0.5rem;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--slate-500);
    border: 1px solid var(--slate-200);
    border-radius: 2px;
    transition: var(--transition-base);
}

.lang-switch a:hover,
.lang-switch a.active {
    background-color: var(--slate-900);
    color: white;
    border-color: var(--slate-900);
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
    .nav-mobile-btn {
        display: none;
    }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background-color: var(--brand-navy);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231e293b' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2v-4h4v-2h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2v-4h4v-2H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    color: white;
    overflow: hidden;
}

.hero-inner {
    position: relative;
    z-index: 10;
    padding: var(--space-20) 0;
}

.hero-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.section-indent {
    border-left: 4px solid var(--brand-accent);
    padding-left: 1.5rem;
}

.hero-label {
    color: var(--blue-500);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: var(--font-size-sm);
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    line-height: 1.1;
    margin-top: 1rem;
}

.hero-title-highlight {
    color: var(--blue-500);
}

.hero-description {
    font-size: var(--font-size-lg);
    color: var(--slate-400);
    max-width: 36rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-weight: 700;
    transition: var(--transition-base);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--blue-600);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    background-color: var(--blue-700);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid var(--slate-700);
}

.btn-outline:hover {
    border-color: var(--slate-500);
}

.btn-dark {
    background-color: var(--slate-900);
    color: white;
}

.btn-dark:hover {
    background-color: var(--blue-600);
}

.btn-block {
    width: 100%;
}

.btn-uppercase {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: var(--font-size-xs);
    font-weight: 900;
}

.hero-media {
    display: none;
}

.hero-image-wrapper {
    background-color: rgba(30, 41, 59, 0.5);
    padding: 0.25rem;
    border: 1px solid var(--slate-700);
    border-radius: 2px;
}

.hero-image {
    filter: grayscale(100%);
    opacity: 0.8;
    transition: var(--transition-slow);
}

.hero-image:hover {
    filter: grayscale(0%);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background-color: var(--slate-700);
    margin-top: 1px;
}

.hero-stat {
    background-color: var(--slate-900);
    padding: 1.5rem;
}

.hero-stat-number {
    font-size: var(--font-size-3xl);
    font-weight: 900;
    color: var(--blue-500);
}

.hero-stat-label {
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate-500);
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 7fr 5fr;
    }
    .hero-media {
        display: block;
    }
    .hero-title {
        font-size: var(--font-size-7xl);
    }
}

/* ============================================
   Expertise Section
   ============================================ */
.expertise {
    padding: var(--space-24) 0;
    background-color: white;
}

.expertise-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: var(--space-16);
}

.expertise-header-text {
    max-width: 36rem;
}

.expertise-label {
    color: var(--blue-600);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: var(--font-size-sm);
    margin-bottom: 1rem;
}

.expertise-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--slate-900);
}

.expertise-divider {
    display: none;
    height: 1px;
    background-color: var(--slate-200);
    flex-grow: 1;
    margin: 0 2rem;
}

.expertise-quote {
    color: var(--slate-500);
    font-weight: 500;
    font-style: italic;
}

.expertise-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .expertise-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .expertise-divider {
        display: block;
    }
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .expertise-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Industry Cards */
.industry-card {
    padding: 2rem;
    background-color: var(--slate-50);
    border: 1px solid var(--slate-100);
    border-bottom: 4px solid transparent;
    transition: var(--transition-base);
}

.industry-card:hover {
    border-bottom-color: var(--brand-accent);
    transform: translateY(-4px);
    background-color: white;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

.industry-card-icon {
    font-size: var(--font-size-3xl);
    color: var(--slate-900);
    margin-bottom: 1.5rem;
    transition: var(--transition-base);
}

.industry-card:hover .industry-card-icon {
    color: var(--blue-600);
}

.industry-card-title {
    font-size: var(--font-size-xl);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

.industry-card-desc {
    font-size: var(--font-size-sm);
    color: var(--slate-600);
    line-height: 1.7;
}

/* ============================================
   Operations Section
   ============================================ */
.operations {
    padding: var(--space-24) 0;
    background-color: var(--slate-900);
    color: white;
    position: relative;
}

.operations-bg {
    position: absolute;
    inset: 0;
    opacity: 0.2;
}

.operations-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.operations-inner {
    position: relative;
    z-index: 10;
}

.operations-grid {
    display: grid;
    gap: 5rem;
    align-items: center;
}

.operations-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.operations-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.operations-description {
    color: var(--slate-400);
    font-size: var(--font-size-lg);
    line-height: 1.7;
}

.operations-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.operations-feature {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 2px solid var(--slate-700);
}

.operations-feature:first-child {
    border-left-color: var(--blue-600);
}

.operations-feature-number {
    font-size: var(--font-size-4xl);
    font-weight: 900;
    color: var(--slate-700);
}

.operations-feature-title {
    font-weight: 700;
    font-size: var(--font-size-lg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.operations-feature-desc {
    font-size: var(--font-size-sm);
    color: var(--slate-400);
}

@media (min-width: 1024px) {
    .operations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   Form Styles
   ============================================ */
.form-card {
    background-color: white;
    padding: 3rem;
    color: var(--slate-900);
    box-shadow: var(--shadow-2xl);
}

.form-title {
    font-size: var(--font-size-2xl);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    margin-bottom: 2rem;
}

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

.form-label {
    display: block;
    font-size: var(--font-size-xs);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--slate-500);
    margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 1rem;
    background-color: var(--slate-50);
    border: none;
    border-bottom: 2px solid var(--slate-200);
    outline: none;
    transition: var(--transition-base);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-bottom-color: var(--blue-600);
}

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

.form-error {
    color: #dc2626;
    font-size: var(--font-size-sm);
    margin-top: 0.25rem;
}

.form-success {
    background-color: #dcfce7;
    color: #166534;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* ============================================
   Partners Section
   ============================================ */
.partners {
    padding: var(--space-16) 0;
    background-color: var(--slate-50);
    border-bottom: 1px solid var(--slate-200);
}

.partners-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2.5rem;
    opacity: 0.4;
    filter: grayscale(100%);
}

.partner-name {
    font-size: var(--font-size-2xl);
    font-weight: 900;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: white;
    padding: var(--space-24) 0 var(--space-12);
}

.footer-grid {
    display: grid;
    gap: 4rem;
    margin-bottom: var(--space-20);
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.footer-logo-icon {
    width: 2rem;
    height: 2rem;
    background-color: var(--slate-900);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.footer-logo-name {
    font-size: var(--font-size-xl);
    font-weight: 700;
    letter-spacing: -0.025em;
    text-transform: uppercase;
}

.footer-description {
    font-size: var(--font-size-sm);
    color: var(--slate-500);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.footer-social {
    display: flex;
    gap: 1.25rem;
    color: var(--slate-400);
}

.footer-social a:hover {
    color: var(--blue-600);
}

.footer-column-title {
    font-weight: 900;
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate-900);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-link {
    font-size: var(--font-size-sm);
    color: var(--slate-500);
    transition: var(--transition-base);
}

.footer-link:hover {
    color: var(--blue-600);
}

.footer-contact-address {
    font-size: var(--font-size-sm);
    color: var(--slate-500);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.footer-contact-phone {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--slate-900);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--slate-100);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: var(--font-size-xs);
    font-weight: 700;
    color: var(--slate-400);
}

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

.footer-legal a:hover {
    color: var(--blue-600);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.text-white { color: white; }
.text-slate-400 { color: var(--slate-400); }
.text-slate-500 { color: var(--slate-500); }
.text-blue-600 { color: var(--blue-600); }

.bg-white { background-color: white; }
.bg-slate-50 { background-color: var(--slate-50); }
.bg-slate-900 { background-color: var(--slate-900); }

.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background-color: white;
    z-index: 100;
    padding: 2rem;
}

.mobile-menu.active {
    display: flex;
    flex-direction: column;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu-link {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--slate-900);
}

.mobile-menu-link:hover {
    color: var(--blue-600);
}

/* ============================================
   Page-specific Styles
   ============================================ */
.page-header {
    padding: 10rem 0 4rem;
    background-color: var(--slate-900);
    color: white;
}

.page-title {
    font-size: var(--font-size-5xl);
    font-weight: 800;
}

.page-content {
    padding: var(--space-24) 0;
    background-color: white;
}

.prose {
    max-width: 65ch;
    font-size: var(--font-size-lg);
    line-height: 1.8;
    color: var(--slate-600);
}

.prose h2 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--slate-900);
    margin: 2rem 0 1rem;
}

.prose h3 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--slate-900);
    margin: 1.5rem 0 0.75rem;
}

.prose p {
    margin-bottom: 1.5rem;
}

.prose ul, .prose ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
}
