/* ==========================================================================
   ALL SCRAP BUYER - DAMMAM, SAUDI ARABIA
   Main Stylesheet & Design System (Lite, Clean & Responsive)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Tajawal:wght@400;500;700;800&display=swap');

:root {
    /* Lite Color Palette */
    --bg-body: #F8FAFC;           /* Soft light canvas */
    --bg-surface: #FFFFFF;        /* Clean card / container white */
    --bg-surface-alt: #F1F5F9;    /* Light slate for alternate sections */
    --bg-muted: #E2E8F0;          /* Subdued surface for borders & lines */

    /* Text Colors - High contrast, easy to read */
    --text-primary: #0F172A;      /* Deep slate / charcoal for strong readability */
    --text-secondary: #475569;    /* Balanced slate for body & descriptions */
    --text-muted: #64748B;        /* Muted slate for captions & metadata */
    --text-on-dark: #FFFFFF;      /* For colored solid buttons */

    /* Brand & Accent Colors - Professional industrial scrap tones */
    --primary: #D97706;           /* Warm amber / copper */
    --primary-hover: #B45309;     /* Darker amber on hover */
    --primary-light: #FEF3C7;     /* Soft warm tint for tags */
    --accent-emerald: #059669;    /* Crisp green for price and recycling */
    --accent-emerald-light: #D1FAE5; /* Soft green tint */
    --accent-blue: #2563EB;       /* Industrial trust blue */
    --accent-blue-light: #DBEAFE;

    /* Clean Borders & Shadows - Simple, subtle, no heavy glow */
    --border-subtle: #E2E8F0;
    --border-active: #D97706;
    --border-emerald: #A7F3D0;
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 6px 18px rgba(15, 23, 42, 0.07);
    --shadow-lg: 0 12px 30px rgba(15, 23, 42, 0.09);

    /* Legacy Aliases for safety */
    --accent-gold: var(--primary);
    --accent-copper: var(--primary-hover);
    --bg-dark: var(--bg-body);
    --bg-card: var(--bg-surface);
    --bg-surface-light: var(--bg-surface-alt);
    --text-gold: var(--primary);

    /* Layout & Spacing */
    --max-width: 1200px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Smooth Micro-Transitions */
    --transition-fast: all 0.15s ease;
    --transition-normal: all 0.25s ease;

    /* Fonts */
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-arabic: 'Tajawal', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset & Base Setup */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

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

/* RTL Language Mode Support (Arabic) */
[dir="rtl"] body {
    font-family: var(--font-arabic), var(--font-sans);
}

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

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

p {
    color: var(--text-secondary);
}

/* Light High-Contrast Text Highlight for Hero and Dark Surfaces */
.text-gradient-gold {
    color: #FDE047;
    background: linear-gradient(135deg, #FFFFFF 0%, #FEF08A 45%, #FACC15 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}

.text-gradient-gold strong, 
.text-highlight {
    color: #FACC15;
}

.text-gradient-emerald {
    color: var(--accent-emerald);
}

/* Button Component Base - Simple, clean, tactile hover */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: var(--transition-normal);
    border: 1px solid transparent;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.2;
}

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

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: var(--primary);
    color: #FFFFFF;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
    color: #FFFFFF;
}

.btn-emerald {
    background-color: var(--accent-emerald);
    color: #FFFFFF;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}

.btn-emerald:hover {
    background-color: #047857;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
    color: #FFFFFF;
}

.btn-outline {
    background: #FFFFFF;
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-xs);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--bg-surface-alt);
}

.btn-whatsapp {
    background-color: #16A34A;
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25);
}

.btn-whatsapp:hover {
    background-color: #15803D;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
    color: #FFFFFF;
}

/* Badge System - Clean, pastel tinted, high readability */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.6rem;
}

.badge-gold {
    background: var(--primary-light);
    color: #92400E;
    border: 1px solid #FDE68A;
}

.badge-emerald {
    background: var(--accent-emerald-light);
    color: #065F46;
    border: 1px solid #A7F3D0;
}

/* Section Header Shared */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3rem auto;
}

.section-header h2 {
    font-size: 2.1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.85rem;
    color: var(--text-primary);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Clean Card Style (Replaces heavy glassmorphism) */
.glass-card, .clean-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.glass-card:hover, .clean-card:hover {
    border-color: #CBD5E1;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Form Helper Classes */
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 640px) {
    .form-row-2 {
        grid-template-columns: 1fr;
    }
}
