/**
 * Kultiva Agricultural Equipment - Base Styles
 *
 * This file contains:
 * - CSS Custom Properties (Design System Variables)
 * - Global Resets
 * - Typography Styles
 * - Utility Classes
 *
 * @version 1.0.0
 * @updated 2026-01-04
 */

/* ============================================
   CSS CUSTOM PROPERTIES (DESIGN SYSTEM)
   ============================================ */

:root {
    /* Color Palette */
    --kultiva-green: #2D5016;
    --kultiva-green-dark: #1e3510;
    --kultiva-gold: #ead25a;
    --kultiva-earth: #8B4513;
    --kultiva-grey: #4A4A4A;
    --kultiva-light: #F5F5F5;
    --kultiva-warm-white: #FFFEF9;

    /* Semantic Colors */
    --color-primary: var(--kultiva-green);
    --color-primary-dark: var(--kultiva-green-dark);
    --color-accent: var(--kultiva-gold);
    --color-text: var(--kultiva-grey);
    --color-bg-light: var(--kultiva-light);
    --color-bg-warm: var(--kultiva-warm-white);
    --color-card-bg: #FFFFFF;

    /* Typography */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Font Weights */
    --font-weight-normal: 400;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    /* Spacing Scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --space-xl: 4rem;
    --space-2xl: 5rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-round: 50%;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 8px 20px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Z-Index Scale */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-toast: 600;
}


/* ============================================
   GLOBAL RESETS
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

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


/* ============================================
   TYPOGRAPHY
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: var(--font-weight-extrabold);
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
}

/* Typography Responsive Adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.25rem;
    }
}


/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Section Spacing */
.section-padding {
    padding: 5rem 0;
}

.section-padding-sm {
    padding: 3rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 0;
    }

    .section-padding-sm {
        padding: 2rem 0;
    }
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    padding: 1rem 0;
    margin-bottom: 0rem;
    text-align: center;
}

.page-header h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.page-header .lead {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .page-header {
        padding: 0.85rem 0;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 0.75rem 0;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }
}


/* ============================================
   FOCUS STATES (ACCESSIBILITY)
   ============================================ */

/* Enhanced focus states for keyboard navigation */
.btn-kultiva-primary:focus,
.btn-kultiva-secondary:focus,
.btn-kultiva-accent:focus,
.form-control:focus,
.form-select:focus {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

/* Remove default focus outline for mouse users */
*:focus:not(:focus-visible) {
    outline: none;
}

/* Restore focus outline for keyboard users */
*:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}
