/* برقکار - لندینگ RTL */
:root {
    --primary: #d4a017;
    --primary-dark: #b8860b;
    --dark: #1a1a2e;
    --text: #333;
    --light: #f8f9fa;
    --white: #fff;
    --shadow: 0 4px 20px rgba(0,0,0,.08);
    --radius: 12px;
    --font: 'Vazirmatn', 'Tahoma', sans-serif;
}

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

body {
    font-family: var(--font);
    direction: rtl;
    color: var(--text);
    line-height: 1.7;
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Header */
.site-header {
    background: var(--dark);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-header .logo {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
}

.site-header .nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.site-header .nav a {
    color: rgba(255,255,255,.9);
    transition: color .2s;
}

.site-header .nav a:hover,
.site-header .nav a.active {
    color: var(--primary);
}

.header-phone {
    background: var(--primary);
    color: var(--dark) !important;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    white-space: nowrap;
}

.header-phone:hover {
    background: var(--primary-dark);
    color: var(--white) !important;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, #2d2d44 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.hero-with-img .hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    text-align: right;
}

.hero-with-img .hero-content { order: 1; }
.hero-with-img .hero-image { order: 0; }

.hero-image img {
    width: 100%;
    max-height: 340px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(0,0,0,.35), 0 0 0 1px rgba(212, 160, 23, .2);
}

.hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 0.75rem;
}

.hero .subtitle {
    font-size: 1.1rem;
    opacity: .9;
    margin-bottom: 1.5rem;
}

.hero .phones {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hero-with-img .hero .phones { justify-content: flex-start; }

.hero .phones a {
    display: inline-block;
    background: var(--primary);
    color: var(--dark);
    padding: 0.85rem 1.5rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform .2s, background .2s;
}

.hero .phones a:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: scale(1.03);
}

.hero .tagline {
    font-size: 0.95rem;
    opacity: .85;
}

/* Sections */
.section {
    padding: 3.5rem 0;
}

.section:nth-child(even) {
    background: var(--light);
}

.section-title {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 2rem;
    color: var(--dark);
}

/* Services grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    padding: 1.75rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
}

.service-card h3 {
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.service-card p {
    font-size: 0.95rem;
    color: #555;
}

.service-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius) var(--radius) 0 0;
    margin: -1.75rem -1.75rem 1rem -1.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    aspect-ratio: 16/9;
    transition: transform .25s ease, box-shadow .25s ease;
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item span {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.85));
    color: var(--white);
    padding: 1.5rem 1rem 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
}

/* CTA strip */
.cta-strip {
    background: var(--primary);
    color: var(--dark);
    padding: 2rem;
    text-align: center;
}

.cta-strip h2 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.cta-strip .phones {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.cta-strip .phones a {
    background: var(--dark);
    color: var(--primary);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 700;
}

.cta-strip .phones a:hover {
    background: #0d0d1a;
    color: var(--white);
}

/* Region links (SEO) */
.regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.regions-grid a {
    display: block;
    padding: 0.6rem 1rem;
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: border-color .2s, background .2s;
}

.regions-grid a:hover {
    border-color: var(--primary);
    background: rgba(212, 160, 23, .08);
}

.regions-grid-many {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

/* SEO content blocks */
.section-intro .section-title { margin-bottom: 1rem; }
.content-block {
    max-width: 820px;
    margin: 0 auto;
}
.seo-intro p {
    margin-bottom: 1rem;
    text-align: right;
    line-height: 1.85;
}
.why-list {
    list-style: none;
    max-width: 700px;
    margin: 0 auto;
    padding: 0;
}
.why-list li {
    padding: 0.75rem 0;
    padding-right: 1.5rem;
    position: relative;
    border-bottom: 1px solid #eee;
}
.why-list li:last-child { border-bottom: none; }
.why-list li::before {
    content: "✓";
    position: absolute;
    right: 0;
    color: var(--primary);
    font-weight: bold;
}
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid #eee;
}
.faq-item h3 {
    font-size: 1.05rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}
.faq-item p {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.75;
}
.section-desc {
    text-align: center;
    color: #555;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}
.text-center { text-align: center; }

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
}

.blog-card-img,
.blog-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.blog-card .content {
    padding: 1.25rem;
}

.blog-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card p {
    font-size: 0.9rem;
    color: #555;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card .more {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Article single */
.article-single {
    max-width: 800px;
    margin: 0 auto;
}

.article-single h1 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.article-single .meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.article-single .body {
    font-size: 1.05rem;
}

.article-single .body p {
    margin-bottom: 1rem;
}

/* Footer */
.site-footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-grid h3,
.footer-grid h4 {
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.footer-phones a {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(255,255,255,.9);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: .85;
}

/* Region page breadcrumb */
.breadcrumb {
    padding: 1rem 0;
    font-size: 0.95rem;
    color: #666;
}

.breadcrumb a {
    color: var(--primary-dark);
}

/* Contact form placeholder - فقط ظاهر */
.contact-box {
    background: var(--light);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
}

.contact-box .phones {
    margin-top: 1rem;
}

.contact-box .phones a {
    display: inline-block;
    margin: 0 0.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

/* فرم ثبت سفارش */
.order-form {
    max-width: 520px;
    margin: 0 auto 1rem;
    text-align: right;
}
.order-form .form-row {
    margin-bottom: 1rem;
}
.order-form label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    color: var(--dark);
}
.order-form input,
.order-form select,
.order-form textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font);
    font-size: 1rem;
}
.order-form textarea { resize: vertical; min-height: 80px; }
.order-form .btn-submit {
    background: var(--primary);
    color: var(--dark);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font);
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
}
.order-form .btn-submit:hover { background: var(--primary-dark); color: var(--white); }
.order-form .form-note {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.75rem;
}
.form-message {
    max-width: 520px;
    margin: 0 auto;
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
    display: none;
}
.form-message.show { display: block; }
.form-message.success { background: #d4edda; color: #155724; }
.form-message.error { background: #f8d7da; color: #721c24; }

/* نظرات مشتریان */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}
.review-card {
    background: var(--white);
    padding: 1.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid #eee;
}
.review-card .review-text { margin-bottom: 0.75rem; line-height: 1.7; color: #444; }
.review-card .review-meta { font-size: 0.85rem; color: #777; }

/* نقشه */
.map-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    background: var(--light);
}
.map-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .site-header .nav {
        order: 3;
        width: 100%;
    }
    .hero { padding: 2.5rem 0; }
    .hero-with-img .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-with-img .hero-content { order: 0; }
    .hero-with-img .hero-image { order: 1; }
    .hero-with-img .hero .phones { justify-content: center; }
    .section { padding: 2rem 0; }
}
