/* =============================================
   GOTTSCHALK AUTO & GARTEN - GLOBAL.CSS
   Podstawowe style, zmienne, reset
   ============================================= */

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
    /* Colors */
    --color-primary: #FF6B00;          /* Pomarańczowy - TYLKO STIHL */
    --color-secondary: #000000;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-hover: #555555;            /* Ciemny szary - hover dla wszystkiego poza STIHL */
    --color-bg-light: #F8F8F8;
    --color-white: #FFFFFF;
    --color-error: #E53E3E;
    --color-success: #38A169;
    
    /* Layout */
    --max-width: 1920px;
    --content-width: 1300px;
    
    /* Spacing */
    --spacing-xs: 20px;
    --spacing-sm: 40px;
    --spacing-md: 60px;
    --spacing-lg: 80px;
    --spacing-xl: 120px;
    
    /* Typography */
    --font-family: 'Montserrat', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.12);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --shadow-xl: 0 15px 40px rgba(0,0,0,0.2);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 24px;
    --radius-full: 50%;
}

/* =============================================
   GLOBAL RESET
   ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* =============================================
   BASE STYLES
   ============================================= */
html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    line-height: var(--line-height-base);
    overflow-x: hidden;
    background: var(--color-white);
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

h4 {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
}

h5 {
    font-size: 1.15rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary);
}

strong, b {
    font-weight: 700;
}

em, i {
    font-style: italic;
}

small {
    font-size: 0.875rem;
}

/* =============================================
   IMAGES
   ============================================= */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* =============================================
   LISTS
   ============================================= */
ul, ol {
    list-style: none;
}

/* =============================================
   UTILITIES
   ============================================= */
.text-center {
    text-align: center !important;
}

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-inline-block {
    display: inline-block !important;
}

.d-flex {
    display: flex !important;
}

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

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

/* Spacing Utilities */
.py-5 {
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
}

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

/* =============================================
   CONTAINER
   ============================================= */
.container {
    max-width: var(--content-width);
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* =============================================
   RESPONSIVE UTILITIES
   ============================================= */

/* Hide on mobile */
@media (max-width: 767px) {
    .d-md-none {
        display: none !important;
    }
}

/* Hide on desktop */
@media (min-width: 768px) {
    .d-md-block {
        display: block !important;
    }
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease;
}

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

:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--color-text-light);
    border-radius: var(--radius-md);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text);
}

/* =============================================
   SELECTION
   ============================================= */
::selection {
    background: var(--color-primary);
    color: var(--color-white);
}

::-moz-selection {
    background: var(--color-primary);
    color: var(--color-white);
}
