/*
Theme Name: دليل الصيانة الميكانيكية (Maintenance Directory)
Theme URI: https://example.com/maintenance-directory
Author: Abdurrahman Breik
Author URI: https://example.com
Description: قالب ووردبريس متخصص لدليل الموردين والورش ومراكز الصيانة والفنيين في قطاع الصيانة الميكانيكية والتوريدات الصناعية. يدعم اللغة العربية (RTL) بالكامل، ويحتوي على نظام بحث وفلترة متقدم، مقارنة الأنشطة، وملفات تعريف مخصصة لكل نوع نشاط.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: maintenance-directory
Tags: rtl-language-support, custom-logo, custom-menu, directory, business, mechanical-maintenance
*/

:root {
    --primary: #1B3C6E;
    --primary-hover: #245390;
    --primary-light: #E8EFF8;
    --primary-lighter: #F2F6FC;
    --accent-green: #2D8B4E;
    --accent-green-hover: #246E3E;
    --accent-green-light: #E6F4EC;
    --accent-orange: #C67B32;
    --accent-orange-hover: #A56628;
    --accent-orange-light: #FFF4E8;
    --bg: #F8F8F6;
    --white: #FFFFFF;
    --text-dark: #1C2333;
    --text-medium: #4E5566;
    --text-light: #8B92A5;
    --text-white: #FFFFFF;
    --border: #E3E4EA;
    --border-light: #F0F1F5;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 3px rgba(28,35,51,0.05);
    --shadow-md: 0 2px 10px rgba(28,35,51,0.07);
    --shadow-lg: 0 4px 20px rgba(28,35,51,0.1);
    --transition: all 0.3s ease;
    --font-main: 'IBM Plex Sans Arabic', 'Alexandria', sans-serif;
    --font-heading: 'Alexandria', 'IBM Plex Sans Arabic', sans-serif;
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: var(--font-main);
    background-color: var(--bg);
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 16px;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

img { max-width: 100%; display: block; height: auto; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

button {
    font-family: var(--font-main);
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    transition: var(--transition);
}

input, select, textarea {
    font-family: var(--font-main);
    outline: none;
    border: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* Top Notice Banner */
.demo-banner {
    background-color: var(--primary);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.825rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.demo-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.demo-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
    padding: 2px 10px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.75rem;
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    line-height: 1.4;
}

.section-title { font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.section-subtitle { font-size: 1.08rem; color: var(--text-medium); margin-bottom: 40px; max-width: 620px; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header .section-subtitle { margin-left: auto; margin-right: auto; margin-bottom: 0; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: var(--radius-md);
    font-size: 0.975rem;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary { background-color: var(--primary); color: var(--text-white); }
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background-color: var(--white); color: var(--primary); border: 2px solid var(--primary); }
.btn-secondary:hover { background-color: var(--primary-light); }
.btn-soft { background-color: var(--primary-lighter); color: var(--primary); border: 1px solid var(--border); }
.btn-soft:hover { background-color: var(--primary-light); border-color: var(--primary); }
.btn-green { background-color: var(--accent-green); color: var(--text-white); }
.btn-green:hover { background-color: var(--accent-green-hover); transform: translateY(-1px); }
.btn-orange { background-color: var(--accent-orange); color: var(--text-white); }
.btn-orange:hover { background-color: var(--accent-orange-hover); transform: translateY(-1px); }
.btn-sm { padding: 8px 16px; font-size: 0.875rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; text-align: right; }
.logo-icon {
    width: 44px; height: 44px; background: var(--primary); border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm);
}
.logo-icon svg { width: 24px; height: 24px; fill: none; stroke: white; stroke-width: 2; }
.logo-text { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: var(--primary); line-height: 1.25; }
.logo-text span { display: block; font-size: 0.75rem; font-weight: 400; color: var(--text-light); font-family: var(--font-main); }

.nav, .nav ul { display: flex; align-items: center; gap: 6px; }
.nav-link, .nav ul li a {
    padding: 8px 16px; border-radius: var(--radius-sm); font-size: 0.95rem;
    font-weight: 500; color: var(--text-medium); transition: var(--transition); display: inline-block;
}
.nav-link:hover, .nav-link.active, .nav ul li a:hover, .nav ul li.current-menu-item a {
    color: var(--primary); background-color: var(--primary-lighter); font-weight: 600;
}

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.compare-badge-count {
    background: var(--accent-orange); color: var(--white); font-size: 0.75rem; font-weight: 700;
    width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
}

.mobile-menu-btn {
    display: none; width: 44px; height: 44px; background: var(--primary-lighter);
    border-radius: var(--radius-sm); align-items: center; justify-content: center;
}
.mobile-menu-btn svg { width: 22px; height: 22px; stroke: var(--primary); stroke-width: 2; }
.mobile-nav {
    display: none; position: fixed; top: 74px; right: 0; left: 0; background: var(--white);
    border-bottom: 1px solid var(--border); padding: 16px 24px 20px; z-index: 999; box-shadow: var(--shadow-lg);
}
.mobile-nav.open { display: block; }
.mobile-nav-btn, .mobile-nav a {
    display: block; width: 100%; text-align: right; padding: 13px 16px;
    border-radius: var(--radius-sm); font-size: 1rem; font-weight: 500; color: var(--text-medium);
}
.mobile-nav-btn:hover, .mobile-nav-btn.active, .mobile-nav a:hover {
    background-color: var(--primary-lighter); color: var(--primary); font-weight: 600;
}
.mobile-nav .btn { width: 100%; margin-top: 10px; text-align: center; }

/* Hero Section */
.hero {
    position: relative; padding: 72px 0 88px;
    background: linear-gradient(180deg, var(--primary-lighter) 0%, var(--bg) 100%);
    overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -50%; left: -20%; width: 600px; height: 600px;
    border-radius: 50%; border: 2px solid rgba(27,60,110,0.05); pointer-events: none;
}
.hero::after {
    content: ''; position: absolute; bottom: -30%; right: -10%; width: 400px; height: 400px;
    border-radius: 50%; border: 2px solid rgba(27,60,110,0.04); pointer-events: none;
}
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 840px; margin: 0 auto; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px;
    background: var(--white); border: 1px solid var(--border); border-radius: 100px;
    font-size: 0.875rem; color: var(--primary); font-weight: 500; margin-bottom: 22px; box-shadow: var(--shadow-sm);
}
.hero-badge svg { width: 16px; height: 16px; stroke: var(--accent-green); stroke-width: 2; fill: none; }
.hero h1 { font-size: 2.55rem; font-weight: 700; line-height: 1.38; margin-bottom: 16px; color: var(--text-dark); }
.hero h1 span { color: var(--primary); }
.hero-description { font-size: 1.125rem; color: var(--text-medium); margin-bottom: 36px; line-height: 1.8; max-width: 680px; margin-left: auto; margin-right: auto; }

/* Search Bar */
.search-bar {
    display: flex; background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border);
    overflow: hidden; box-shadow: var(--shadow-lg); max-width: 820px; margin: 0 auto 24px; transition: var(--transition);
}
.search-bar:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(27,60,110,0.12), var(--shadow-lg); }
.search-field { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 18px; min-height: 64px; }
.search-field.wide { flex: 1.4; }
.search-field svg { width: 20px; height: 20px; stroke: var(--text-light); stroke-width: 2; fill: none; flex-shrink: 0; }
.search-field input, .search-field select { width: 100%; height: 100%; font-size: 0.96rem; color: var(--text-dark); background: transparent; }
.search-field input::placeholder { color: var(--text-light); }
.search-field select { cursor: pointer; color: var(--text-medium); }
.search-divider { width: 1px; background: var(--border-light); margin: 12px 0; }
.search-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 32px;
    background: var(--primary); color: var(--text-white); font-size: 1rem; font-weight: 600; min-height: 64px;
}
.search-btn:hover { background: var(--primary-hover); }
.search-btn svg { width: 20px; height: 20px; stroke: white; stroke-width: 2; fill: none; }

/* Quick Links */
.quick-links { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.quick-links-label { font-size: 0.875rem; color: var(--text-medium); font-weight: 500; margin-left: 4px; }
.quick-link {
    padding: 7px 16px; background: var(--white); border: 1px solid var(--border);
    border-radius: 100px; font-size: 0.875rem; color: var(--text-medium); transition: var(--transition); cursor: pointer;
}
.quick-link:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-lighter); transform: translateY(-1px); }

/* Scope Bar */
.scope-bar { padding: 32px 0; background: var(--white); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.scope-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.scope-item {
    display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--radius-md);
    background: var(--bg); border: 1px solid var(--border-light); cursor: pointer; text-align: right; transition: var(--transition);
}
.scope-item:hover { border-color: var(--primary); background: var(--primary-lighter); transform: translateY(-2px); }
.scope-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.scope-icon.blue { background: var(--primary-light); color: var(--primary); }
.scope-icon.orange { background: var(--accent-orange-light); color: var(--accent-orange); }
.scope-icon.green { background: var(--accent-green-light); color: var(--accent-green); }
.scope-icon svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.8; fill: none; }
.scope-title { font-family: var(--font-heading); font-size: 0.98rem; font-weight: 600; color: var(--text-dark); }
.scope-sub { font-size: 0.8rem; color: var(--text-light); }

/* Specialties Section */
.specialties { padding: 76px 0; }
.specialties-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.specialty-card {
    background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-md);
    padding: 30px 22px; text-align: center; transition: var(--transition); cursor: pointer;
    position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center;
}
.specialty-card::before {
    content: ''; position: absolute; top: 0; right: 0; left: 0; height: 3px;
    background: var(--primary); transform: scaleX(0); transition: var(--transition);
}
.specialty-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.specialty-card:hover::before { transform: scaleX(1); }
.specialty-icon {
    width: 64px; height: 64px; background: var(--primary-light); border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; transition: var(--transition);
}
.specialty-card:hover .specialty-icon { background: var(--primary); }
.specialty-icon svg { width: 30px; height: 30px; stroke: var(--primary); stroke-width: 1.6; fill: none; transition: var(--transition); }
.specialty-card:hover .specialty-icon svg { stroke: white; }
.specialty-name { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; color: var(--text-dark); }
.specialty-desc { font-size: 0.825rem; color: var(--text-medium); margin-bottom: 12px; line-height: 1.5; }
.specialty-count { margin-top: auto; font-size: 0.8rem; font-weight: 600; color: var(--primary); background: var(--primary-lighter); padding: 3px 12px; border-radius: 100px; }

/* Suppliers & Workshops */
.suppliers { padding: 76px 0; background: var(--white); }
.section-top { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 36px; gap: 24px; flex-wrap: wrap; }
.section-top .section-subtitle { margin-bottom: 0; }
.filter-Generating-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab-pill { padding: 8px 18px; border-radius: 100px; font-size: 0.9rem; font-weight: 600; color: var(--text-medium); background: var(--bg); border: 1px solid var(--border); }
.tab-pill.active, .tab-pill:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.suppliers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.supplier-card { background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-md); overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; }
.supplier-card:hover { border-color: var(--border); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.supplier-card-header { height: 136px; background: linear-gradient(135deg, var(--primary-light), var(--primary-lighter)); position: relative; display: flex; align-items: center; justify-content: center; }
.supplier-card-header.workshop-theme { background: linear-gradient(135deg, var(--accent-orange-light), #FDF8F2); }
.supplier-card-header .supplier-logo { width: 72px; height: 72px; background: var(--white); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; color: var(--primary); }
.supplier-card-header.workshop-theme .supplier-logo { color: var(--accent-orange); }
.entity-badge { position: absolute; top: 12px; right: 12px; display: flex; align-items: center; gap: 5px; padding: 4px 12px; background: var(--white); border-radius: 100px; font-size: 0.75rem; color: var(--primary); font-weight: 600; box-shadow: var(--shadow-sm); }
.entity-badge.workshop { color: var(--accent-orange); }
.compare-mini-btn { position: absolute; top: 12px; left: 12px; padding: 4px 10px; background: rgba(255, 255, 255, 0.9); border: 1px solid var(--border); border-radius: 100px; font-size: 0.75rem; font-weight: 600; color: var(--text-medium); }
.compare-mini-btn.selected { background: var(--primary); color: var(--white); border-color: var(--primary); }
.supplier-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.supplier-name { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; color: var(--text-dark); cursor: pointer; text-align: right; display: block; }
.supplier-name:hover { color: var(--primary); }
.supplier-type { display: inline-block; align-self: flex-start; padding: 3px 12px; background: var(--primary-lighter); border-radius: 100px; font-size: 0.8rem; color: var(--primary); font-weight: 500; margin-bottom: 12px; }
.supplier-type.workshop-tag { background: var(--accent-orange-light); color: var(--accent-orange); }
.supplier-specialties { font-size: 0.9rem; color: var(--text-medium); margin-bottom: 14px; line-height: 1.65; }
.card-specs-strip { background: var(--bg); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 14px; font-size: 0.82rem; color: var(--text-medium); display: flex; flex-direction: column; gap: 4px; }
.card-specs-strip strong { color: var(--text-dark); }
.supplier-location { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--text-light); margin-top: auto; margin-bottom: 16px; }
.supplier-location svg { width: 16px; height: 16px; stroke: var(--text-light); stroke-width: 2; fill: none; flex-shrink: 0; }
.supplier-card-footer { display: flex; gap: 10px; padding-top: 16px; border-top: 1px solid var(--border-light); }
.supplier-card-footer .btn { flex: 1; }

/* Technicians Section */
.technicians { padding: 76px 0; }
.technicians-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.technician-card { background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 26px 20px; text-align: center; transition: var(--transition); display: flex; flex-direction: column; position: relative; }
.technician-card:hover { border-color: var(--accent-green); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.technician-avatar { width: 78px; height: 78px; border-radius: 50%; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; color: var(--text-white); background: linear-gradient(135deg, var(--primary), var(--primary-hover)); }
.technician-name { font-family: var(--font-heading); font-size: 1.08rem; font-weight: 600; margin-bottom: 4px; cursor: pointer; display: block; }
.technician-name:hover { color: var(--primary); }
.technician-specialty { font-size: 0.85rem; color: var(--accent-green); font-weight: 600; margin-bottom: 10px; }
.technician-desc { font-size: 0.83rem; color: var(--text-medium); margin-bottom: 12px; line-height: 1.55; }
.technician-info { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; font-size: 0.8rem; color: var(--text-light); margin-top: auto; margin-bottom: 16px; }
.technician-info span { display: flex; align-items: center; gap: 4px; }
.technician-info svg { width: 14px; height: 14px; stroke: var(--text-light); stroke-width: 2; fill: none; }
.technician-actions { display: flex; gap: 8px; }
.technician-actions .btn { flex: 1; padding: 9px 10px; font-size: 0.82rem; }

/* How It Works & Need Advisor */
.how-it-works { padding: 76px 0; background: var(--white); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; position: relative; margin-bottom: 56px; }
.steps-grid::before { content: ''; position: absolute; top: 52px; right: 20%; left: 20%; height: 2px; background: var(--border); }
.step-item { text-align: center; position: relative; z-index: 2; }
.step-number { width: 104px; height: 104px; background: var(--primary-lighter); border: 3px solid var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; font-family: var(--font-heading); font-size: 2.3rem; font-weight: 700; color: var(--primary); }
.step-title { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
.step-description { font-size: 0.94rem; color: var(--text-medium); max-width: 290px; margin: 0 auto; line-height: 1.7; }

.advisor-card { background: var(--primary-lighter); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: center; }
.advisor-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.advisor-btn { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; text-align: right; transition: var(--transition); }
.advisor-btn:hover, .advisor-btn.active { border-color: var(--primary); background: var(--white); box-shadow: var(--shadow-sm); }
.advisor-btn.active { border-width: 2px; background: var(--primary-light); }
.advisor-btn strong { display: block; font-size: 0.92rem; color: var(--text-dark); margin-bottom: 2px; }
.advisor-btn span { font-size: 0.78rem; color: var(--text-medium); }
.advisor-output { background: var(--white); border-radius: var(--radius-md); padding: 24px; border: 1px solid var(--border-light); box-shadow: var(--shadow-sm); }

/* CTA Banner */
.cta-section { padding: 72px 0; }
.cta-box { background: linear-gradient(135deg, var(--primary), var(--primary-hover)); border-radius: var(--radius-xl); padding: 56px 40px; text-align: center; position: relative; overflow: hidden; }
.cta-box::before { content: ''; position: absolute; top: -100px; right: -100px; width: 300px; height: 300px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.1); }
.cta-box::after { content: ''; position: absolute; bottom: -80px; left: -80px; width: 250px; height: 250px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.08); }
.cta-box h2 { font-size: 1.95rem; color: var(--text-white); margin-bottom: 12px; position: relative; z-index: 2; }
.cta-box p { font-size: 1.1rem; color: rgba(255,255,255,0.88); margin-bottom: 28px; max-width: 600px; margin-left: auto; margin-right: auto; position: relative; z-index: 2; }
.cta-box .btn-white { background: var(--white); color: var(--primary); padding: 14px 36px; font-size: 1.05rem; position: relative; z-index: 2; }
.cta-box .btn-white:hover { background: var(--primary-lighter); transform: translateY(-2px); }

/* Search Results / Archive Page */
.search-page-header { background: var(--white); padding: 28px 0; border-bottom: 1px solid var(--border-light); }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-light); margin-bottom: 14px; flex-wrap: wrap; }
.breadcrumb a, .breadcrumb button { color: var(--text-light); font-size: 0.85rem; }
.breadcrumb a:hover, .breadcrumb button:hover { color: var(--primary); }
.search-page-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.search-page-title h1 { font-size: 1.7rem; font-weight: 700; }
.search-page-title h1 .count { font-size: 1.05rem; font-weight: 400; color: var(--text-light); margin-right: 8px; }
.results-controls-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.view-toggle-group { display: inline-flex; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 3px; }
.view-toggle-btn { padding: 6px 14px; border-radius: 6px; font-size: 0.85rem; font-weight: 600; color: var(--text-medium); }
.view-toggle-btn.active { background: var(--primary); color: var(--white); }

.results-layout { display: grid; grid-template-columns: 290px 1fr; gap: 32px; padding: 32px 0 64px; align-items: start; }
.filters-sidebar { position: sticky; top: 94px; }
.filter-group { background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 20px; margin-bottom: 16px; }
.filter-title { font-family: var(--font-heading); font-size: 0.98rem; font-weight: 600; margin-bottom: 14px; color: var(--text-dark); display: flex; align-items: center; justify-content: space-between; }
.filter-reset-link { font-size: 0.8rem; color: var(--primary); font-weight: 600; font-family: var(--font-main); }
.filter-reset-link:hover { text-decoration: underline; }
.sidebar-search-input, .sidebar-select { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); font-size: 0.9rem; color: var(--text-dark); transition: var(--transition); }
.sidebar-search-input:focus, .sidebar-select:focus { border-color: var(--primary); background: var(--white); }
.filter-option { display: flex; align-items: center; gap: 10px; padding: 7px 0; cursor: pointer; }
.filter-option input[type="checkbox"], .filter-option input[type="radio"] { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }
.filter-option label { font-size: 0.9rem; color: var(--text-medium); cursor: pointer; transition: var(--transition); }
.filter-option:hover label { color: var(--text-dark); }
.filter-option .count-badge { margin-right: auto; font-size: 0.78rem; color: var(--text-light); background: var(--bg); padding: 2px 8px; border-radius: 100px; }

.active-filters-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.active-filter-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; background: var(--primary-light); color: var(--primary); border-radius: 100px; font-size: 0.825rem; font-weight: 600; }
.active-filter-chip button { color: var(--primary); font-weight: 700; font-size: 0.9rem; line-height: 1; }

.sort-select { display: flex; align-items: center; gap: 8px; }
.sort-select label { font-size: 0.875rem; color: var(--text-light); }
.sort-select select { padding: 8px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--white); font-size: 0.9rem; color: var(--text-dark); cursor: pointer; }

.results-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.result-card { background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-md); overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; }
.result-card:hover { border-color: var(--border); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.result-card-img { height: 148px; background: linear-gradient(135deg, var(--primary-light), var(--primary-lighter)); display: flex; align-items: center; justify-content: center; position: relative; }
.result-card-img.type-bg-workshop { background: linear-gradient(135deg, var(--accent-orange-light), #FDF8F2); }
.result-card-img.type-bg-technician { background: linear-gradient(135deg, var(--accent-green-light), #F2FAF5); }
.result-card-img .img-placeholder { width: 60px; height: 60px; background: var(--white); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.result-card-img .img-placeholder svg { width: 30px; height: 30px; stroke: var(--primary); stroke-width: 1.6; fill: none; }
.result-card-type { position: absolute; top: 12px; right: 12px; padding: 4px 12px; border-radius: 100px; font-size: 0.75rem; font-weight: 600; }
.type-supplier { background: var(--white); color: var(--primary); }
.type-workshop { background: var(--white); color: var(--accent-orange); }
.type-technician { background: var(--white); color: var(--accent-green); }
.result-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.result-card-body h3 { font-size: 1.125rem; margin-bottom: 6px; cursor: pointer; }
.result-card-body h3:hover { color: var(--primary); }
.result-card-body .specialty-text { font-size: 0.85rem; color: var(--accent-green); font-weight: 600; margin-bottom: 8px; }
.result-card-body .description { font-size: 0.875rem; color: var(--text-medium); line-height: 1.6; margin-bottom: 12px; }
.result-card-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 0.82rem; color: var(--text-light); margin-top: auto; }
.result-card-meta span { display: flex; align-items: center; gap: 4px; }
.result-card-meta svg { width: 14px; height: 14px; stroke: var(--text-light); stroke-width: 2; fill: none; }
.result-card-footer { display: flex; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border-light); }
.result-card-footer .btn { flex: 1; padding: 9px 14px; font-size: 0.85rem; }

.results-table-wrap { background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-md); overflow-x: auto; box-shadow: var(--shadow-sm); }
.results-table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 0.9rem; }
.results-table th { background: var(--primary-lighter); color: var(--primary); font-family: var(--font-heading); font-weight: 600; text-align: right; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.results-table td { padding: 14px 16px; border-bottom: 1px solid var(--border-light); color: var(--text-medium); vertical-align: middle; }
.results-table tr:hover td { background: var(--bg); }

/* Profile Page */
.profile-banner { height: 210px; background: linear-gradient(135deg, var(--primary), var(--primary-hover)); position: relative; padding-top: 24px; }
.profile-banner::before { content: ''; position: absolute; top: -60px; right: -60px; width: 200px; height: 200px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.08); pointer-events: none; }
.profile-banner::after { content: ''; position: absolute; bottom: -40px; left: -40px; width: 150px; height: 150px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.06); pointer-events: none; }
.profile-back-btn { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.16); color: var(--white); padding: 8px 18px; border-radius: 100px; font-size: 0.875rem; font-weight: 500; position: relative; z-index: 3; }
.profile-back-btn:hover { background: rgba(255, 255, 255, 0.26); }
.profile-container { max-width: var(--max-width); margin: -75px auto 0; padding: 0 24px; position: relative; z-index: 2; }
.profile-header-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--border-light); padding: 32px; display: flex; gap: 28px; align-items: flex-start; margin-bottom: 28px; }
.profile-avatar { width: 112px; height: 112px; background: linear-gradient(135deg, var(--primary-light), var(--primary-lighter)); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-size: 2.1rem; font-weight: 700; color: var(--primary); flex-shrink: 0; }
.profile-info { flex: 1; }
.profile-info h1 { font-size: 1.7rem; margin-bottom: 10px; }
.profile-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.profile-tag { padding: 4px 14px; border-radius: 100px; font-size: 0.825rem; font-weight: 600; }
.tag-primary { background: var(--primary-light); color: var(--primary); }
.tag-green { background: var(--accent-green-light); color: var(--accent-green); }
.tag-orange { background: var(--accent-orange-light); color: var(--accent-orange); }
.profile-desc { font-size: 0.98rem; color: var(--text-medium); line-height: 1.8; margin-bottom: 16px; }
.profile-meta { display: flex; gap: 24px; flex-wrap: wrap; font-size: 0.9rem; color: var(--text-medium); }
.profile-meta-item { display: flex; align-items: center; gap: 8px; }
.profile-meta-item svg { width: 18px; height: 18px; stroke: var(--primary); stroke-width: 2; fill: none; }
.profile-actions { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.profile-actions .btn { width: 185px; }

.profile-content { display: grid; grid-template-columns: 1fr 340px; gap: 28px; padding-bottom: 64px; align-items: start; }
.content-section { background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 28px; margin-bottom: 24px; }
.content-section h2 { font-size: 1.2rem; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; }
.services-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.service-item { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--bg); border-radius: var(--radius-sm); border: 1px solid var(--border-light); }
.service-item svg { width: 18px; height: 18px; stroke: var(--accent-green); stroke-width: 2.5; fill: none; flex-shrink: 0; }
.service-item span { font-size: 0.92rem; color: var(--text-dark); font-weight: 500; }

.profile-spec-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.profile-spec-table th { background: var(--primary-lighter); color: var(--primary); padding: 12px 14px; text-align: right; font-weight: 600; border-bottom: 1px solid var(--border); }
.profile-spec-table td { padding: 12px 14px; border-bottom: 1px solid var(--border-light); color: var(--text-medium); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-item { height: 145px; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; transition: var(--transition); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px; text-align: center; position: relative; border: 1px solid var(--border-light); background: linear-gradient(135deg, #E8EFF8, #F2F6FC); }
.gallery-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.gallery-item svg { width: 42px; height: 42px; stroke: var(--primary); stroke-width: 1.5; fill: none; margin-bottom: 8px; }
.gallery-item-caption { font-size: 0.8rem; font-weight: 600; color: var(--text-dark); }

.sidebar-card { background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 24px; margin-bottom: 20px; }
.sidebar-card h3 { font-size: 1.1rem; margin-bottom: 16px; }
.contact-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.contact-item:last-child { border-bottom: none; padding-bottom: 0; }
.contact-icon { width: 40px; height: 40px; background: var(--primary-lighter); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-icon svg { width: 18px; height: 18px; stroke: var(--primary); stroke-width: 2; fill: none; }
.contact-text .label { font-size: 0.78rem; color: var(--text-light); }
.contact-text .value { font-size: 0.92rem; color: var(--text-dark); font-weight: 600; }

.inquiry-form { display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.85rem; font-weight: 500; color: var(--text-medium); }
.form-group input, .form-group textarea { padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.92rem; color: var(--text-dark); transition: var(--transition); background: var(--bg); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); background: var(--white); box-shadow: 0 0 0 3px rgba(27,60,110,0.1); }
.form-group textarea { resize: vertical; min-height: 92px; }

/* Empty State */
.empty-state { text-align: center; padding: 64px 32px; background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-md); }
.empty-state-icon { width: 76px; height: 76px; background: var(--primary-lighter); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.empty-state-icon svg { width: 34px; height: 34px; stroke: var(--primary); stroke-width: 1.6; fill: none; }
.empty-state h3 { font-size: 1.3rem; margin-bottom: 8px; }
.empty-state p { font-size: 0.95rem; color: var(--text-medium); margin-bottom: 20px; }

/* Modals & Toast */
.modal-overlay { position: fixed; inset: 0; background: rgba(28, 35, 51, 0.55); backdrop-filter: blur(2px); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-overlay.open { display: flex; }
.modal-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 600px; max-height: 90vh; overflow-y: auto; border: 1px solid var(--border); }
.modal-card.wide { max-width: 900px; }
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; background: var(--primary-lighter); }
.modal-header h3 { font-size: 1.12rem; color: var(--primary); }
.modal-close { width: 34px; height: 34px; border-radius: 50%; background: var(--white); color: var(--text-medium); font-weight: 700; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); }
.modal-body { padding: 24px; }

.toast-stack { position: fixed; bottom: 24px; left: 24px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.toast-item { background: var(--text-dark); color: var(--white); padding: 14px 18px; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); font-size: 0.9rem; border-right: 4px solid var(--accent-green); }

/* Footer */
.footer { background: var(--white); border-top: 1px solid var(--border-light); padding: 60px 0 0; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.footer-about .logo { margin-bottom: 16px; }
.footer-about p { font-size: 0.925rem; color: var(--text-medium); line-height: 1.8; margin-bottom: 16px; }
.footer-title { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600; margin-bottom: 18px; color: var(--text-dark); }
.footer-links li { margin-bottom: 10px; }
.footer-links a, .footer-links button { font-size: 0.925rem; color: var(--text-medium); transition: var(--transition); text-align: right; display: inline-block; }
.footer-links a:hover, .footer-links button:hover { color: var(--primary); transform: translateX(-4px); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.footer-contact-item svg { width: 18px; height: 18px; stroke: var(--primary); stroke-width: 2; fill: none; flex-shrink: 0; margin-top: 3px; }
.footer-contact-item span { font-size: 0.9rem; color: var(--text-medium); line-height: 1.6; }
.footer-bottom { border-top: 1px solid var(--border-light); padding: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: 0.85rem; color: var(--text-light); }

/* Responsive */
@media (max-width: 1024px) {
    .scope-grid, .specialties-grid, .suppliers-grid, .technicians-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .advisor-card, .profile-content { grid-template-columns: 1fr; }
    .results-layout { grid-template-columns: 250px 1fr; }
}
@media (max-width: 768px) {
    .nav, .header-actions .btn-primary { display: none; }
    .mobile-menu-btn { display: flex; }
    .hero { padding: 48px 0 64px; }
    .hero h1 { font-size: 1.85rem; }
    .search-bar { flex-direction: column; }
    .search-divider { width: auto; height: 1px; margin: 0; }
    .search-field, .search-btn { min-height: 54px; }
    .suppliers-grid, .technicians-grid, .results-grid, .services-list, .advisor-options, .steps-grid, .results-layout, .footer-grid { grid-template-columns: 1fr; }
    .steps-grid::before { display: none; }
    .filters-sidebar { position: static; }
    .profile-header-card { flex-direction: column; align-items: center; text-align: center; }
    .profile-tags, .profile-meta { justify-content: center; }
    .profile-actions { flex-direction: row; width: 100%; flex-wrap: wrap; }
    .profile-actions .btn { flex: 1; width: auto; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .scope-grid, .specialties-grid, .gallery-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.55rem; }
}

/* ===========================
   Upgraded v2.0: 5-Item Scope Grid, Mobile Filter Drawer & Sticky Mobile Action Bar
=========================== */
.scope-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.mobile-filter-trigger-bar {
    display: none;
    margin-bottom: 16px;
}

.mobile-filter-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(28, 35, 51, 0.55);
    z-index: 1400;
}

.mobile-filter-backdrop.open {
    display: block;
}

.sidebar-mobile-close-row {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.mobile-sticky-profile-bar {
    display: none;
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 10px 16px;
    z-index: 1200;
    box-shadow: 0 -4px 16px rgba(28, 35, 51, 0.1);
    gap: 10px;
}

@media (max-width: 1120px) {
    .scope-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .scope-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }

    .mobile-filter-trigger-bar {
        display: flex;
        gap: 10px;
    }

    .mobile-filter-trigger-bar .btn {
        flex: 1;
    }

    .filters-sidebar {
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        top: auto;
        max-height: 82vh;
        overflow-y: auto;
        background: var(--white);
        z-index: 1500;
        padding: 20px;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -8px 30px rgba(28, 35, 51, 0.18);
        transform: translateY(105%);
        transition: transform 0.3s ease;
    }

    .filters-sidebar.mobile-open {
        transform: translateY(0);
    }

    .sidebar-mobile-close-row {
        display: flex;
    }

    .mobile-sticky-profile-bar.active {
        display: flex;
    }

    body {
        padding-bottom: 68px;
    }
}

@media (max-width: 480px) {
    .scope-grid-5 {
        grid-template-columns: 1fr;
    }
}
