/**
 * LITHIOTEC Main Stylesheet
 * Industrial B2B Battery Technology Theme
 * 
 * @package LITHIOTEC
 * @version 1.0.0
 */

/* ============================================
   CSS Custom Properties (Design Tokens)
   ============================================ */
:root {
    /* Industrial Color Palette */
    --background: 210 20% 98%;
    --foreground: 215 25% 15%;

    --card: 0 0% 100%;
    --card-foreground: 215 25% 15%;

    --popover: 0 0% 100%;
    --popover-foreground: 215 25% 15%;

    /* Primary - Deep Steel Blue */
    --primary: 215 50% 20%;
    --primary-foreground: 0 0% 100%;

    /* Secondary - Industrial Grey */
    --secondary: 210 15% 92%;
    --secondary-foreground: 215 25% 20%;

    /* Muted - Soft Industrial */
    --muted: 210 15% 95%;
    --muted-foreground: 215 15% 45%;

    /* Accent - Technical Teal */
    --accent: 190 65% 40%;
    --accent-foreground: 0 0% 100%;

    /* CTA Orange */
    --cta: 25 90% 50%;
    --cta-foreground: 0 0% 100%;

    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;

    --border: 210 20% 88%;
    --input: 210 20% 88%;
    --ring: 215 50% 20%;

    --radius: 0.375rem;

    /* Custom Industrial Tokens */
    --industrial-dark: 215 30% 12%;
    --industrial-steel: 215 20% 30%;
    --industrial-grey: 210 10% 60%;
    --industrial-light: 210 15% 96%;
    --technical-blue: 205 70% 45%;
    --success-green: 150 60% 40%;
    --warning-amber: 40 90% 50%;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, hsl(215 30% 12%) 0%, hsl(215 50% 20%) 100%);
    --gradient-card: linear-gradient(180deg, hsl(0 0% 100%) 0%, hsl(210 15% 98%) 100%);
    --gradient-cta: linear-gradient(135deg, hsl(25 90% 50%) 0%, hsl(15 85% 45%) 100%);
    --gradient-accent: linear-gradient(135deg, hsl(190 65% 40%) 0%, hsl(200 60% 35%) 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 hsl(215 30% 12% / 0.05);
    --shadow-md: 0 4px 6px -1px hsl(215 30% 12% / 0.07), 0 2px 4px -2px hsl(215 30% 12% / 0.05);
    --shadow-lg: 0 10px 15px -3px hsl(215 30% 12% / 0.08), 0 4px 6px -4px hsl(215 30% 12% / 0.05);
    --shadow-xl: 0 20px 25px -5px hsl(215 30% 12% / 0.1), 0 8px 10px -6px hsl(215 30% 12% / 0.05);
    --shadow-industrial: 0 4px 20px -2px hsl(215 30% 12% / 0.15);

    /* Typography */
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

/* ============================================
   Base Styles
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: var(--font-body);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

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

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

/* ============================================
   Utility Classes
   ============================================ */
.container-industrial {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container-industrial {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container-industrial {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.section-industrial {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    .section-industrial {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

/* ============================================
   Color Utility Classes
   ============================================ */
.bg-background { background-color: hsl(var(--background)); }
.bg-foreground { background-color: hsl(var(--foreground)); }
.bg-card { background-color: hsl(var(--card)); }
.bg-muted { background-color: hsl(var(--muted)); }
.bg-primary { background-color: hsl(var(--primary)); }
.bg-primary\/10 { background-color: hsl(var(--primary) / 0.1); }
.bg-primary\/90 { background-color: hsl(var(--primary) / 0.9); }
.bg-accent { background-color: hsl(var(--accent)); }
.bg-accent\/20 { background-color: hsl(var(--accent) / 0.2); }
.bg-cta { background-color: hsl(var(--cta)); }
.bg-cta\/90 { background-color: hsl(var(--cta) / 0.9); }
.bg-industrial-dark { background-color: hsl(var(--industrial-dark)); }
.bg-industrial-dark\/50 { background-color: hsl(var(--industrial-dark) / 0.5); }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }

.text-foreground { color: hsl(var(--foreground)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-primary { color: hsl(var(--primary)); }
.text-primary-foreground { color: hsl(var(--primary-foreground)); }
.text-accent { color: hsl(var(--accent)); }
.text-white { color: #ffffff; }
.text-white\/60 { color: rgba(255, 255, 255, 0.6); }
.text-white\/80 { color: rgba(255, 255, 255, 0.8); }
.text-industrial-grey { color: hsl(var(--industrial-grey)); }
.text-industrial-light { color: hsl(var(--industrial-light)); }
.text-border { color: hsl(var(--border)); }

.border-border { border-color: hsl(var(--border)); }
.border-accent\/30 { border-color: hsl(var(--accent) / 0.3); }
.border-primary\/20 { border-color: hsl(var(--primary) / 0.2); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.border-white\/30 { border-color: rgba(255, 255, 255, 0.3); }
.border-industrial-steel\/30 { border-color: hsl(var(--industrial-steel) / 0.3); }

/* ============================================
   Layout Utilities
   ============================================ */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }

.items-center { align-items: center; }
.items-start { align-items: start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.shrink-0 { flex-shrink: 0; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* ============================================
   Grid Utilities
   ============================================ */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:flex-row { flex-direction: row; }
    .md\:gap-6 { gap: 1.5rem; }
    .md\:gap-12 { gap: 3rem; }
    .md\:mt-0 { margin-top: 0; }
    .md\:py-32 { padding-top: 8rem; padding-bottom: 8rem; }
    .md\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
    .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
    .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .md\:text-5xl { font-size: 3rem; line-height: 1; }
    .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
    .md\:h-20 { height: 5rem; }
    .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .md\:inline-flex { display: inline-flex; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:col-span-1 { grid-column: span 1 / span 1; }
    .lg\:flex { display: flex; }
    .lg\:hidden { display: none; }
    .lg\:text-6xl { font-size: 3.75rem; line-height: 1; }
}

/* ============================================
   Spacing Utilities
   ============================================ */
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-4 { padding-top: 1rem; }
.pt-8 { padding-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-4 { margin-top: 1rem; }
.mt-12 { margin-top: 3rem; }
.ml-auto { margin-left: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ============================================
   Sizing Utilities
   ============================================ */
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-12 { width: 3rem; }
.w-full { width: 100%; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-none { max-width: none; }
.aspect-square { aspect-ratio: 1 / 1; }

/* ============================================
   Typography Utilities
   ============================================ */
.font-display { font-family: var(--font-display); }
.font-body { font-family: var(--font-body); }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.025em; }
.leading-tight { line-height: 1.25; }
.text-center { text-align: center; }

/* ============================================
   Border & Radius Utilities
   ============================================ */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.rounded { border-radius: var(--radius); }
.rounded-md { border-radius: calc(var(--radius) - 2px); }
.rounded-lg { border-radius: var(--radius); }
.rounded-full { border-radius: 9999px; }

/* ============================================
   Effects Utilities
   ============================================ */
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-industrial { box-shadow: var(--shadow-industrial); }
.overflow-hidden { overflow: hidden; }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.opacity-20 { opacity: 0.2; }
.resize-none { resize: none; }

/* ============================================
   Position Utilities
   ============================================ */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.inset-0 { inset: 0; }
.z-50 { z-index: 50; }

/* ============================================
   Transitions
   ============================================ */
.transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-300 { transition-duration: 300ms; }

/* ============================================
   Hover States
   ============================================ */
.hover\:text-foreground:hover { color: hsl(var(--foreground)); }
.hover\:text-white:hover { color: #ffffff; }
.hover\:text-primary:hover { color: hsl(var(--primary)); }
.hover\:bg-muted:hover { background-color: hsl(var(--muted)); }
.hover\:bg-primary\/90:hover { background-color: hsl(var(--primary) / 0.9); }
.hover\:bg-cta\/90:hover { background-color: hsl(var(--cta) / 0.9); }
.hover\:bg-white\/10:hover { background-color: rgba(255, 255, 255, 0.1); }
.hover\:border-primary\/20:hover { border-color: hsl(var(--primary) / 0.2); }
.hover\:shadow-industrial:hover { box-shadow: var(--shadow-industrial); }
.hover\:shadow-xl:hover { box-shadow: var(--shadow-xl); }
.hover\:underline:hover { text-decoration: underline; }
.hover\:scale-105:hover { transform: scale(1.05); }

.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:text-primary { color: hsl(var(--primary)); }

/* ============================================
   Focus States
   ============================================ */
.focus\:outline-none:focus { outline: none; }
.focus\:ring-2:focus { 
    box-shadow: 0 0 0 2px hsl(var(--primary) / 0.2);
}
.focus\:border-primary:focus { border-color: hsl(var(--primary)); }

/* ============================================
   Background Utilities
   ============================================ */
.bg-cover { background-size: cover; }
.bg-center { background-position: center; }

/* ============================================
   Object Fit
   ============================================ */
.object-cover { object-fit: cover; }

/* ============================================
   Component Styles
   ============================================ */

/* Hero Section */
.hero-industrial {
    background: var(--gradient-hero);
    color: #ffffff;
}

/* Industrial Card */
.card-industrial {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.card-industrial:hover {
    box-shadow: var(--shadow-xl);
    border-color: hsl(var(--primary) / 0.2);
}

/* CTA Button */
.btn-cta {
    background: var(--gradient-cta);
    color: #ffffff;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: calc(var(--radius) - 2px);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-cta:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Language Switcher */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.lang-switch button {
    padding: 0.25rem 0.5rem;
    border-radius: calc(var(--radius) - 2px);
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    background: transparent;
}

.lang-switch button.active {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.lang-switch button:not(.active) {
    color: hsl(var(--muted-foreground));
}

.lang-switch button:not(.active):hover {
    color: hsl(var(--foreground));
    background-color: hsl(var(--muted));
}

/* Navigation Links */
.nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: calc(var(--radius) - 2px);
    color: hsl(var(--muted-foreground));
    transition: all 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
    color: hsl(var(--foreground));
    background-color: hsl(var(--muted));
}

.nav-link.active {
    color: hsl(var(--primary));
    background-color: hsl(var(--primary) / 0.05);
}

/* Mobile Menu */
#mobile-menu {
    animation: fadeIn 0.3s ease;
}

/* Form Styles */
input, select, textarea {
    font-family: var(--font-body);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px hsl(var(--primary) / 0.2);
    border-color: hsl(var(--primary));
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: hsl(var(--muted));
}

::-webkit-scrollbar-thumb {
    background: hsl(var(--industrial-grey));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--industrial-steel));
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-up {
    animation: fadeUp 0.5s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* ============================================
   Responsive Visibility
   ============================================ */
@media (min-width: 640px) {
    .sm\:flex { display: flex; }
    .sm\:hidden { display: none; }
}

@media (min-width: 768px) {
    .md\:hidden { display: none; }
    .md\:block { display: block; }
    .md\:flex { display: flex; }
}

@media (min-width: 1024px) {
    .lg\:hidden { display: none; }
    .lg\:flex { display: flex; }
}
