/* ==========================================================================
   Durix Workshop Tools - Bento Design System (Light Mode Industrial)
   Font Family Name: DurixFont (Weights: 400, 700, 900)
   Brand Accent Color: #ef4623 (Durix Orange/Red)
   Theme: Light Industrial Gray (#f1f5f9 / #e2e8f0)
   ========================================================================== */

/* Load Local DurixFont Fonts from assets/DurixFont/ Directory */
@font-face {
    font-family: 'DurixFont';
    src: url('DurixFont/DurixFont-Regular.woff2') format('woff2'),
         url('DurixFont/DurixFont-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DurixFont';
    src: url('DurixFont/DurixFont-Bold.woff2') format('woff2'),
         url('DurixFont/DurixFont-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DurixFont';
    src: url('DurixFont/DurixFont-Black.woff2') format('woff2'),
         url('DurixFont/DurixFont-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Color Palette (Bento Light Industrial) */
    --bg-light: #f1f5f9;       /* Slate 100 - Cool Light Gray */
    --bg-surface: #ffffff;     /* Pure White Card */
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --bg-section-alt: #e2e8f0; /* Slate 200 */
    
    /* Durix Brand Identity Color */
    --accent-brand: #ef4623;
    --accent-brand-hover: #d93816;
    --accent-brand-bg: rgba(239, 70, 35, 0.08);
    --accent-brand-border: rgba(239, 70, 35, 0.25);
    
    --accent-cyan: #0284c7;    /* Deep Industrial Cyan for Light Theme */
    --accent-cyan-bg: rgba(2, 132, 199, 0.08);
    
    --text-primary: #0f172a;   /* Deep Slate - Clean Contrast */
    --text-secondary: #475569; /* Medium Slate */
    --text-muted: #64748b;
    
    --border-color: #cbd5e1;   /* Slate 300 - Clear Borders */
    --border-subtle: #e2e8f0;
    --border-highlight: rgba(239, 70, 35, 0.4);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-subtle: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
    --shadow-card-hover: 0 12px 30px -4px rgba(15, 23, 42, 0.12);
    --shadow-glow: 0 4px 20px rgba(239, 70, 35, 0.3);
    
    --font-family: 'DurixFont', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseSubtle {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
}

@keyframes floatSoft {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

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

html {
    scroll-behavior: smooth;
    direction: rtl;
}

body {
    font-family: var(--font-family);
    font-weight: 400;
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
    animation: fadeInUp 0.6s ease-out;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.25s ease;
}

/* Typography Helpers */
h1, h2, .hero-title, .section-header h2, .product-title, .error-code, .error-title {
    font-family: 'DurixFont', sans-serif;
    font-weight: 900;
    line-height: 1.2;
    color: var(--text-primary);
}

h3, h4, .btn, .card-badge, .nav-links a, th {
    font-family: 'DurixFont', sans-serif;
    font-weight: 700;
}

p, td, span, label, input, select {
    font-family: 'DurixFont', sans-serif;
    font-weight: 400;
}

.text-brand { color: var(--accent-brand) !important; }
.text-cyan { color: var(--accent-cyan) !important; }
.text-white { color: #ffffff !important; }
.text-gray { color: var(--text-secondary) !important; }
.text-success { color: #16a34a !important; }

/* Header & Responsive Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 2.5rem;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.brand-header-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-shrink: 0;
}

.brand-logo-img {
    height: 38px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.brand-logotype-img {
    height: 24px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.brand-header-link:hover .brand-logo-img {
    transform: scale(1.05) rotate(-3deg);
}

.nav-links {
    display: flex;
    gap: 1.8rem;
    align-items: center;
}

.nav-links a {
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 0.95rem;
    white-space: nowrap;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-brand);
    transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-brand);
}

.nav-cta {
    flex-shrink: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background-color: var(--accent-brand);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--accent-brand-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--accent-brand);
    color: var(--accent-brand);
    background: var(--accent-brand-bg);
}

.btn-lg {
    padding: 0.9rem 1.8rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* Hero Section */
.hero-section {
    padding: 4.5rem 1.5rem 3rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.2rem;
    background: var(--accent-brand-bg);
    border: 1px solid var(--accent-brand-border);
    border-radius: var(--radius-full);
    color: var(--accent-brand);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    animation: floatSoft 3s ease-in-out infinite;
}

.hero-title {
    font-size: 3.4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Bento Grid System */
.bento-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2.8rem;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 0.6rem;
}

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

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.bento-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-subtle);
}

.bento-card:hover {
    border-color: var(--border-highlight);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

/* Bento Spans */
.card-featured {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 460px;
    background: #ffffff;
    border: 2px solid var(--border-color);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05);
}

.card-wide {
    grid-column: span 2;
}

.card-full-width {
    grid-column: span 3;
}

.card-medium {
    grid-column: span 1;
}

.card-small {
    grid-column: span 1;
}

/* Card Content Styling */
.card-badge {
    align-self: flex-start;
    background: var(--accent-brand);
    color: #ffffff;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    z-index: 2;
}

/* Clean & Readable Card Background Image */
.card-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.15; /* بسیار نرم و روشن برای حفظ شفافیت کامل متن */
    transition: all 0.4s ease;
    mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}

.bento-card:hover .card-image-bg {
    opacity: 0.25;
    transform: scale(1.03);
}

.card-content {
    position: relative;
    z-index: 2;
}

.category {
    color: var(--accent-brand);
    font-size: 0.85rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.category-dark {
    color: var(--accent-cyan);
    font-size: 0.85rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.bento-card h3 {
    font-size: 1.45rem;
    font-weight: 900;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.bento-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.card-specs {
    display: flex;
    gap: 1.2rem;
    margin: 1.2rem 0;
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 700;
    flex-wrap: wrap;
}

.card-icon {
    font-size: 2.2rem;
    color: var(--accent-brand) !important;
    margin-bottom: 1.2rem;
    transition: transform 0.3s ease;
}

.bento-card:hover .card-icon {
    transform: scale(1.1);
}

.gradient-bg {
    background: var(--bg-surface);
}

.card-supply-light {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
}

.stat-num {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-brand);
    margin-top: 1rem;
    line-height: 1;
}

.stat-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 700;
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.badge-tag {
    background: var(--accent-cyan-bg);
    color: var(--accent-cyan);
    border: 1px solid rgba(2, 132, 199, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
}

.mini-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.mini-item {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.3s ease;
}

.mini-item:hover {
    border-color: var(--accent-brand);
    transform: translateY(-3px);
}

.mini-item i {
    font-size: 1.5rem;
    color: var(--accent-brand);
    margin-bottom: 0.5rem;
}

.mini-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.mini-item span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-brand);
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 1rem;
    transition: gap 0.25s ease;
}

.btn-link:hover {
    gap: 0.8rem;
}

.margin-top {
    margin-top: 1.5rem;
}

/* About Section */
.about-section {
    padding: 4.5rem 1.5rem;
    background: var(--bg-section-alt);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.about-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.8rem;
    line-height: 1.8;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-item i {
    font-size: 1.6rem;
    color: var(--accent-brand);
    background: var(--accent-brand-bg);
    padding: 0.7rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--accent-brand-border);
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.feature-item p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.about-img-box {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-subtle);
    transition: transform 0.4s ease;
}

.about-img-box:hover {
    transform: scale(1.02);
}

.about-img-box img {
    width: 100%;
    height: 100%;
    max-height: 380px;
    object-fit: cover;
    display: block;
}

/* Contact Section */
.contact-section {
    padding: 4.5rem 1.5rem;
}

.contact-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-surface);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-card-hover);
}

.contact-card h2 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.8rem;
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 2.2rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.info-link-box {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 1rem 1.6rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all 0.25s ease;
}

.info-link-box:hover {
    border-color: var(--accent-brand);
    color: var(--accent-brand);
    background: var(--accent-brand-bg);
    transform: translateY(-2px);
}

.info-link-box i {
    color: var(--accent-brand);
    font-size: 1.1rem;
}

/* Product Page Layout */
.product-hero-section {
    padding: 2.5rem 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
}

.breadcrumb {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.8rem;
    font-weight: 700;
}

.breadcrumb a:hover {
    color: var(--accent-brand);
}

/* Equal Height Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: stretch;
}

.product-gallery {
    height: 100%;
    display: flex;
}

.main-image-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
    box-shadow: var(--shadow-subtle);
    width: 100%;
    height: 100%;
    min-height: 440px;
}

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

.main-image-card:hover img {
    transform: scale(1.03);
}

.product-badge {
    position: absolute;
    bottom: 1.2rem;
    right: 1.2rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--accent-brand);
    color: var(--accent-brand);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.product-details-bento {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 2.2rem;
    box-shadow: var(--shadow-subtle);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-tag {
    color: var(--accent-cyan);
    font-size: 0.85rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.4rem;
}

.product-title {
    font-size: 2.1rem;
    font-weight: 900;
    margin-bottom: 0.8rem;
}

.product-subtitle {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.product-price-box {
    background: var(--bg-light);
    border: 1px dashed var(--border-color);
    padding: 1.1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.price-status {
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.price-call {
    font-size: 0.85rem;
    color: var(--accent-brand);
    font-weight: 700;
}

.key-features {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 1.8rem;
}

.feature-badge {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.product-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    text-align: right;
}

.specs-table th, .specs-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.specs-table th {
    color: var(--accent-brand);
    width: 35%;
    font-weight: 700;
}

.specs-table td {
    color: var(--text-primary);
    font-weight: 400;
}

/* 404 Page Styling */
.error-page-container {
    padding: 5rem 1.5rem;
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
}

.error-code {
    font-size: 6rem;
    font-weight: 900;
    color: var(--accent-brand);
    line-height: 1;
    margin-bottom: 0.8rem;
    animation: floatSoft 3s ease-in-out infinite;
}

.error-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.8rem;
}

.error-desc {
    color: var(--text-secondary);
    margin-bottom: 1.8rem;
    font-size: 1.05rem;
}

/* Footer */
.footer {
    background: var(--bg-section-alt);
    border-top: 1px solid var(--border-color);
    padding: 2.2rem 1.5rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.footer-logotype-img {
    height: 30px;
    width: auto;
    display: block;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.4rem;
    font-weight: 700;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Mobile & Tablet Responsive Engine */
@media (max-width: 1024px) {
    .navbar {
        padding: 0.8rem 1.5rem;
    }
    
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-featured, .card-full-width {
        grid-column: span 2;
    }

    .about-grid, .product-grid {
        grid-template-columns: 1fr;
    }

    .main-image-card {
        min-height: 380px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 1rem;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0.6rem;
    }

    .brand-header-link {
        gap: 0.4rem;
    }

    .brand-logo-img {
        height: 28px;
    }

    .brand-logotype-img {
        height: 18px;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: space-around;
        gap: 0.5rem;
        padding-top: 0.6rem;
        border-top: 1px solid var(--border-subtle);
    }

    .nav-links a {
        font-size: 0.82rem;
    }

    .nav-cta {
        order: 2;
    }

    .btn {
        padding: 0.55rem 0.9rem;
        font-size: 0.82rem;
    }

    .btn-lg {
        padding: 0.75rem 1.2rem;
        font-size: 0.9rem;
    }

    .hero-section {
        padding: 2.5rem 1rem 1.8rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .bento-container {
        padding: 2rem 1rem;
    }

    .section-header h2 {
        font-size: 1.7rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .card-featured, .card-wide, .card-medium, .card-small, .card-full-width {
        grid-column: span 1;
        min-height: auto;
        padding: 1.3rem;
    }

    .mini-products-grid {
        grid-template-columns: 1fr;
    }

    .about-section, .contact-section {
        padding: 3rem 1rem;
    }

    .contact-card {
        padding: 1.8rem 1rem;
    }

    .info-link-box {
        width: 100%;
        justify-content: center;
        font-size: 0.82rem;
        padding: 0.8rem 1rem;
    }

    .product-hero-section {
        padding: 1.8rem 1rem;
    }

    .main-image-card {
        min-height: 280px;
    }

    .product-details-bento {
        padding: 1.3rem;
    }

    .product-title {
        font-size: 1.6rem;
    }

    .product-actions {
        flex-direction: column;
    }

    .product-actions .btn {
        width: 100%;
    }
}
