/*
Theme Name: Astra Child
Template: astra
Version: 1.0
*/
/* custom.css - استایل‌های تخصصی ثامن لب */
:root {
    --primary-color: #1565c0;
    --secondary-color: #4a148c;
    --repair-color: #d32f2f;
    --chamber-color: #ff8f00;
    --vacuum-color: #7b1fa2;
    --calibration-color: #00838f;
    --safety-color: #388e3c;
    --dark-color: #212121;
    --light-bg: #f8f9fa;
    --text-color: #444;
    --border-radius: 12px;
    --transition: all 0.3s ease;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    --gradient-repair: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    --gradient-chamber: linear-gradient(135deg, #ff8f00 0%, #ef6c00 100%);
    --gradient-vacuum: linear-gradient(135deg, #7b1fa2 0%, #4a148c 100%);
    --gradient-calibration: linear-gradient(135deg, #00838f 0%, #006064 100%);
    
    /* Shadows */
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 12px 36px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background: #fff;
    direction: rtl;
    text-align: right;
    width: 100%;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    background: #fff;
    position: relative;
    overflow: hidden;
}

/* Header Styles */
.header {
    background: var(--gradient-repair);
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.header::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
}

.breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.breadcrumb a:hover {
    opacity: 0.8;
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    max-width: 1000px;
    opacity: 0.95;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.15);
    padding: 0.6rem 1rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Content Sections */
.content {
    padding: 2rem 1.5rem;
    width: 100%;
}

h2 {
    font-size: 1.8rem;
    color: var(--repair-color);
    margin: 2rem 0 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid var(--repair-color);
    position: relative;
}

h2::after {
    content: "";
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 100px;
    height: 3px;
    background: var(--chamber-color);
}

h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin: 2rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 1.5rem 0 0.8rem;
}

p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Card Styles */
.card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.intro-section, .diagnostics-section, .overhaul-section, 
.standards-section, .case-study-section, .faq-section,
.related-articles {
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    width: 100%;
}

.intro-section {
    background: #f5f5f5;
}

.diagnostics-section {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
}

.overhaul-section {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
}

.standards-section {
    background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
}

.case-study-section {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.faq-section {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
}

.related-articles {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.importance-details, .diagnostics-grid, .overhaul-grid, 
.standards-grid, .case-study-grid, .related-links {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
    width: 100%;
}

.importance-details {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.diagnostics-grid, .overhaul-grid, .standards-grid, .case-study-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.related-links {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.detail-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
}

.detail-card.precision::before {
    background: var(--gradient-repair);
}

.detail-card.safety::before {
    background: var(--gradient-chamber);
}

.detail-card.longevity::before {
    background: var(--gradient-calibration);
}

.detail-badge, .diagnostic-badge, .process-badge, .standard-badge, .case-study-badge {
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    color: white;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.precision-badge {
    background: var(--gradient-repair);
}

.safety-badge {
    background: var(--gradient-chamber);
}

.longevity-badge {
    background: var(--gradient-calibration);
}

.diagnostic-badge {
    background: var(--gradient-primary);
}

.process-badge {
    background: var(--gradient-vacuum);
}

.standard-badge {
    background: var(--gradient-chamber);
}

.case-study-badge {
    background: var(--safety-color);
}

.chamber-icon, .contact-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Table Styles - Responsive */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    -webkit-overflow-scrolling: touch;
}

.diagnostics-table, .overhaul-table, .standards-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.diagnostics-table th, .overhaul-table th, .standards-table th {
    background: var(--gradient-repair);
    color: white;
    padding: 1rem;
    text-align: right;
    font-weight: bold;
}

.diagnostics-table td, .overhaul-table td, .standards-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.diagnostics-table tr:nth-child(even), .overhaul-table tr:nth-child(even), 
.standards-table tr:nth-child(even) {
    background: #f9f9f9;
}

.diagnostics-table tr:hover, .overhaul-table tr:hover, .standards-table tr:hover {
    background: #f1f1f1;
}

/* FAQ Styles */
.faq-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.2rem;
    box-shadow: var(--shadow-light);
    border-right: 3px solid var(--repair-color);
    width: 100%;
}

.faq-question {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.faq-question::after {
    content: "+";
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
    max-height: 500px;
    padding-top: 0.8rem;
}

/* Chamber Animation */
.chamber-animation {
    text-align: center;
    margin: 1.5rem 0;
    width: 100%;
}

.chamber-visual {
    display: inline-block;
    width: 300px;
    height: 200px;
    background: linear-gradient(135deg, #424242 0%, #212121 100%);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--repair-color);
}

.chamber-body {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 80px;
    background: #78909c;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.heating-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 20px;
    height: 20px;
    background: #ff6d00;
    border-radius: 50%;
    animation: heatingPulse 2s ease-in-out infinite;
}

@keyframes heatingPulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 10px #ff6d00;
    }
    50% {
        opacity: 0.3;
        box-shadow: 0 0 5px #ff6d00;
    }
}

.fan-indicator {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 20px;
    height: 20px;
    background: #1565c0;
    border-radius: 50%;
    animation: fanSpin 1s linear infinite;
}

@keyframes fanSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* CTA Section */
.cta-box {
    background: var(--gradient-repair);
    color: white;
    padding: 2.5rem 1.5rem;
    border-radius: var(--border-radius);
    margin: 2.5rem 0 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.cta-box::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.cta-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition);
}

.cta-button:hover {
    transform: translateY(-3px);
}

.cta-button.secondary {
    background: white;
    color: var(--repair-color);
}

/* Contact Info */
.contact-info {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    text-align: center;
    width: 100%;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.contact-method {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

/* Clickable phone numbers */
.phone-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.phone-link:hover {
    color: var(--primary-color);
}

/* Table of Contents */
.toc-container {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    width: 100%;
}

.toc-title {
    font-size: 1.5rem;
    color: var(--repair-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc-list {
    list-style-type: none;
}

.toc-list li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-right: 1.5rem;
}

.toc-list li::before {
    content: "•";
    color: var(--repair-color);
    position: absolute;
    right: 0;
}

.toc-list a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.toc-list a:hover {
    color: var(--repair-color);
}

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

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

.animate {
    animation: fadeInUp 0.5s ease-out;
    transform: translateY(20px);
    transition: transform 0.5s ease;
    will-change: transform;
}

.animate.visible {
    transform: translateY(0);
}

.pulse {
    animation: pulse 2s infinite;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    right: 0;
    background: var(--repair-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 100%;
        box-shadow: none;
    }
    
    .header, .content {
        padding: 1.2rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .hero-stats {
        gap: 0.8rem;
    }
    
    .stat {
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem;
    }
    
    .importance-details, .diagnostics-grid, .overhaul-grid, 
    .standards-grid, .case-study-grid, .related-links {
        grid-template-columns: 1fr;
    }
    
    .card, .faq-item {
        padding: 1.2rem;
    }
    
    .cta-links {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .chamber-visual {
        width: 250px;
        height: 170px;
    }
    
    .diagnostics-table, .overhaul-table, .standards-table {
        font-size: 0.9rem;
    }
    
    .diagnostics-table th, .diagnostics-table td,
    .overhaul-table th, .overhaul-table td,
    .standards-table th, .standards-table td {
        padding: 0.8rem;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .intro-section, .diagnostics-section, .overhaul-section, 
    .standards-section, .case-study-section, .faq-section,
    .related-articles {
        padding: 1.5rem 1rem;
        margin: 1.5rem 0;
    }
    
    .table-container {
        margin: 1rem 0;
    }
    
    .diagnostics-table, .overhaul-table, .standards-table {
        min-width: 100% !important;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stat {
        font-size: 0.8rem;
        padding: 0.4rem 0.7rem;
    }
    
    .chamber-visual {
        width: 200px;
        height: 140px;
    }
    
    .chamber-body {
        width: 90px;
        height: 60px;
        font-size: 0.9rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .cta-box {
        padding: 1.5rem 1rem;
    }
}

/* Fallback fonts */
@font-face {
    font-family: 'Vazirmatn';
    src: local('Vazirmatn'), local('Vazir');
    font-display: swap;
}