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

:root {
    /* Color Palette - Premium Parquet Theme */
    --bg-main: #F9FAFB; /* Off-white for background */
    --bg-surface: #FFFFFF; /* Pure white for cards/surfaces */
    --bg-surface-hover: #F3F4F6;
    
    /* Typography Colors */
    --text-primary: #2D3748; /* Anthracite from logo */
    --text-secondary: #4B5563; /* Dark gray */
    --text-muted: #9CA3AF; /* Light gray */

    /* Brand Colors (from Logo) */
    --brand-primary: #A0522D; /* Oak Brown (from wood planks) */
    --brand-primary-hover: #8B4513;
    --brand-accent: #D32F2F; /* Offer Red (from % tag) */
    --brand-accent-hover: #B71C1C;
    --brand-dark: #2D3748; /* Anthracite (from text) */
    
    /* Semantic Colors */
    --success-green: #10B981;
    --price-red: #D32F2F; /* Matching Offer Red */

    /* UI Elements */
    --border-color: #E5E7EB;
    
    /* Premium Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --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-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.18);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem; /* 16px for premium cards */
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-secondary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
    color: var(--text-primary);
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* =========================================
   HEADER DYNAMIC (Injected via components.js)
   ========================================= */
.main-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}



.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
}

.logo-img {
    height: 48px;
    width: auto;
    display: block;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    padding: 6rem 1.5rem;
    background: radial-gradient(circle at center, #231510 0%, #0f0907 100%);
    color: #FFFFFF;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    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="%23c9a84c" fill-opacity="0.03"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    opacity: 0.6;
}

.hero-content {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
    z-index: 10;
}

.hero-badge {
    display: inline-block;
    background: rgba(201, 168, 76, 0.08);
    color: #c9a84c;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(201, 168, 76, 0.35);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.hero h1 strong {
    color: #c9a84c;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: #E5E7EB;
    margin-bottom: 3rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 400;
}

/* =========================================
   SEARCH BOX
   ========================================= */
.search-box {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border-radius: var(--radius-full);
    padding: 0.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin: 0 auto;
    border: 2px solid transparent;
    transition: all var(--transition-normal);
}

.search-box:focus-within {
    border-color: var(--brand-accent);
    box-shadow: 0 20px 25px -5px rgba(211, 47, 47, 0.2);
}

.search-icon {
    color: var(--text-muted);
    margin-left: 1rem;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background-color: var(--brand-accent);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-full);
    padding: 1rem 2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-btn:hover {
    background-color: var(--brand-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.trust-indicators span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #E5E7EB;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all var(--transition-fast);
}

.trust-indicators span:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
    border-color: rgba(201, 168, 76, 0.3);
}

.trust-indicators .lucide {
    color: #10B981;
    width: 18px;
    height: 18px;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--brand-accent);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-full);
    padding: 0.875rem 2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.btn-primary:hover {
    background-color: var(--brand-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #c9a84c;
    color: #FFFFFF !important;
    border: none;
    border-radius: var(--radius-full);
    padding: 0.875rem 2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 14px rgba(201, 168, 76, 0.3);
}

.btn-gold:hover {
    background-color: #b5933a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 168, 76, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
}

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

/* =========================================
   GRID & CARDS (Home & Search)
   ========================================= */
.workshops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    position: relative;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(196, 149, 42, 0.3);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    background-color: #F3F4F6;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image {
    transform: scale(1.05);
}

.card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-primary);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.card-company {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.card-company .lucide {
    width: 16px;
    height: 16px;
    color: var(--brand-primary);
}

.card-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-top: auto;
    margin-bottom: 1.5rem;
}

.price-regular {
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 500;
}

.price-offer {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--brand-primary);
    font-family: 'Montserrat', sans-serif;
}

.price-unit {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* =========================================
   UTILITIES & LAYOUT & PREMIUM CARDS
   ========================================= */
.card-discount-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--brand-accent);
    color: #FFFFFF;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 6px rgba(211, 47, 47, 0.25);
    z-index: 10;
    letter-spacing: 0.05em;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

@media (max-width: 768px) {
    .hero {
        padding: 3rem 1rem;
    }
    .hero h1 {
        font-size: 2.25rem;
    }
    .search-box {
        flex-direction: column;
        border-radius: var(--radius-md);
        padding: 0.5rem;
    }
    .search-input {
        width: 100%;
        text-align: center;
    }
    .search-btn {
        width: 100%;
        border-radius: var(--radius-md);
        justify-content: center;
    }
    .trust-indicators {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
}
