/* تعریف وب‌فونت‌های محلی */
@font-face {
    font-family: 'Yekan Bakh';
    src: url('fonts/Yekan-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Yekan Bakh';
    src: url('fonts/Yekan-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}


:root {
    --primary: #8c1c38;
    --primary-dark: #5d0c22;
    --primary-light: #a62444;
    --gold: #d4af37;
    --bg-dark: #0a0a0a;
    --bg-card: rgba(20, 20, 20, 0.6);
    --text-main: #ffffff;
    --text-muted: #a6a3a3;
    --text-light: #b3b3b3;
    --border-subtle: rgba(255, 255, 255, 0.04);
}

/* ریست و تنظیمات پایه */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Yekan Bakh', 'Segoe UI', Tahoma, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.8;
}

h1, h2 {
    color: var(--primary); /* قرمز شرابی لوکس */
    font-weight: 800;
}

h3 {
    color: var(--text-main);
    font-weight: 700;
}

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

/* هدر شیشه‌ای و لوکس */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4%;
    z-index: 1000;
    border-bottom: 1px solid rgba(228, 197, 144, 0.1);
    gap: 16px;
}

@media (max-width: 480px) {
    header {
        height: 60px;
        padding: 0 16px;
        position: relative;
    }
    
    .logo {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .header-logo {
        height: 36px;
    }
    
    .hamburger {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
    }
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo span {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(140, 28, 56, 0.5);
}

.logo .sub-logo {
    font-size: 0.75rem;
    color: var(--gold); /* شامپاینی */
    font-weight: 400;
    letter-spacing: 1px;
    margin-right: 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding-right: 10px;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 19px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger div {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    border-radius: 2px;
}

.hamburger.active div:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
    background-color: var(--primary);
}

.hamburger.active div:nth-child(2) {
    opacity: 0;
}

.hamburger.active div:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
    background-color: var(--primary);
}

.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: rgba(13, 13, 13, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: flex;
    flex-direction: column;
    padding: 120px 45px;
    gap: 30px;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -20px 0 50px rgba(0,0,0,0.8);
    border-left: 1px solid rgba(228, 197, 144, 0.08);
}

.nav-menu.active {
    right: 0;
}

.nav-menu a {
    font-size: 1.2rem;
    font-weight: 500;
    color: #cccccc;
    transition: all 0.3s;
    position: relative;
    padding-bottom: 8px;
}

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

.nav-menu a:hover::after {
    width: 60%;
}

.nav-menu a:hover {
    color: var(--text-main);
    padding-right: 5px;
}

/* بخش هیرو لوکس */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 24px;
    background: radial-gradient(ellipse at 50% 30%, rgba(140, 28, 56, 0.15) 0%, var(--bg-dark) 75%);
    padding-top: 80px;
}



.premium-badge span {
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--gold);
}

.hero h1 {
    font-size: 4.6rem; /* بزرگ‌تر شدن اندازه فونت در دسکتاپ */
    margin-bottom: 24px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.6);
    line-height: 1.3;
    color: var(--text-main);
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    max-width: 800px;
    font-size: 1.25rem;
    line-height: 2;
    color: var(--text-light);
    margin-bottom: 45px;
    font-weight: 300;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--text-main);
    padding: 18px 45px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(140, 28, 56, 0.35);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(140, 28, 56, 0.5);
    border-color: rgba(228, 197, 144, 0.3);
}

section {
    padding: 120px 10%;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 80px;
    color: var(--text-main);
    font-weight: 800;
}

.section-title span {
    color: var(--primary);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* کارت‌های خدمات با تم لوکس */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}

.service-card {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 50px 35px;
    border-radius: 28px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(140, 28, 56, 0.08) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(140, 28, 56, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.service-card h3 {
    font-size: 1.45rem;
    margin-bottom: 18px;
    font-weight: 850;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    transition: transform 0.3s ease;
}

.service-card:hover h3 {
    transform: translateX(-4px);
}
.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    font-weight: 300;
}

/* کانتکت لوکس */
.contact {
    background: #0d0d0d;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-vertical-stack {
    display: flex;
    flex-direction: column;
    gap: 35px;
    width: 100%;
}

.contact-info-block, .action-card {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    width: 100%;
    padding: 45px 50px;
    border-radius: 32px;
    background: rgba(15, 15, 15, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 25px 50px rgba(0,0,0,0.45);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.contact-info-block:hover, .action-card:hover {
    border-color: rgba(140, 28, 56, 0.35);
    transform: translateY(-3px);
}

.contact-card-right {
    flex: 1.2;
}

.contact-card-left {
    flex: 1;
    display: flex;
    flex-direction: column; /* تبدیل به ستون برای چیدمان عمودی دکمه‌ها و نقشه در کارت ادغام شده */
    gap: 25px;
    align-items: flex-end;
    width: 100%;
}

.contact-info-block h3, .action-card h4 {
    font-size: 1.65rem;
    margin-bottom: 20px;
    border-right: 4px solid var(--primary);
    padding-right: 15px;
    letter-spacing: -0.5px;
    color: var(--text-main);
    font-weight: 700;
}

.action-card h4 {
    border-right: 4px solid var(--gold);
}

.contact-meta {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #cccccc;
    font-size: 1.05rem;
}

.meta-item svg {
    width: 24px;
    height: 24px;
    fill: var(--primary);
}

.phone-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
    max-width: 420px;
}

.btn-phone {
    background: rgba(20, 20, 20, 0.4);
    color: var(--text-main);
    border: 1px solid rgba(140, 28, 56, 0.25);
    padding: 15px 18px;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-phone:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(140, 28, 56, 0.3);
}

.action-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 0;
    font-weight: 300;
}

.address-text {
    color: var(--gold);
    font-size: 1.05rem;
    font-weight: 500;
    margin-top: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    line-height: 1.8;
}

.address-text svg {
    width: 24px;
    height: 24px;
    fill: var(--gold);
    margin-top: 3px;
    flex-shrink: 0;
}

.map-preview-container {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.map-iframe-wrapper {
    width: 100%;
    height: 180px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(228, 197, 144, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
}

.map-iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(1) invert(0.9) contrast(1.2);
}

.messenger-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    justify-content: center;
    width: auto;
}

.messenger-row {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-square {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.03);
    overflow: hidden;
    position: relative;
}

.btn-square img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.btn-square svg {
    width: 32px;
    height: 32px;
    transition: transform 0.3s;
}

.btn-telegram svg {
    width: 44px;
    height: 44px;
}

.btn-square:hover {
    transform: translateY(-6px) scale(1.06);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
    border-color: rgba(228, 197, 144, 0.2);
}

.btn-square:hover img, .btn-square:hover svg {
    transform: scale(1.05);
}

.btn-whatsapp { background-color: #128C7E; }
.btn-telegram { background-color: #229ED9; }
.btn-sms { background-color: var(--primary-dark); }
.btn-sms svg { fill: var(--text-main); }
.btn-bale { background-color: #12b488; }
.btn-eitaa { background-color: #f07124; }
.btn-rubika { background-color: var(--text-main); }

.btn-map {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    color: #e6e6e6;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 32px;
    border-radius: 18px;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s;
    white-space: nowrap;
    width: 100%;
}

.btn-map:hover {
    background: var(--text-main);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255,255,255,0.1);
    border-color: transparent;
}

footer {
    background-color: #060606;
    padding: 60px 8%;
    text-align: center;
    border-top: 1px solid rgba(228, 197, 144, 0.05);
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 25px;
}

.footer-logo span { color: var(--primary); }

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #999999;
    font-size: 1rem;
    transition: color 0.3s;
    font-weight: 500;
}

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

.copy {
    font-size: 0.85rem;
    color: #555555;
    letter-spacing: 0.5px;
}

/* ==========================================
   بخش رسپانسیو و بهینه‌سازی کامل برای موبایل
   ========================================== */

/* تبلت‌ها و مانیتورهای کوچک */
@media (max-width: 900px) {
    header {
        padding: 0 5%;
    }
    .contact-info-block, .action-card {
        flex-direction: column;
        align-items: stretch;
        gap: 30px;
        padding: 35px 25px;
    }
    .contact-card-left { 
        justify-content: center; 
        align-items: center;
        width: 100%;
    }
    .phone-buttons, .map-preview-container { 
        max-width: 100%; 
        width: 100%;
    }
    .btn-map { 
        width: 100%; 
        justify-content: center; 
    }
}

/* موبایل‌ها (جمع‌وجور کردن ابعاد و ریزتر کردن المان‌ها) */
@media (max-width: 768px) {
    header {
        height: 70px;
        flex-direction: row; /* حذف دگرگونی جهت برای چسبیدن منو و لوگو در کنار هم */
        justify-content: flex-start; /* هدایت هردو المان به سمت راست در راست‌چین */
        gap: 15px;
    }
    .logo {
        font-size: 1.4rem; /* اصلاح اندازه فونت برای خوانایی هدر مینی‌مال */
    }
    .logo .sub-logo {
        font-size: 0.65rem;
        margin-right: 6px;
        padding-right: 6px;
    }
    
    section { 
        padding: 40px 5%; 
    }
    
    /* هیرو سکشن موبایل */
    .hero {
        min-height: 76vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 75px 24px 10px 24px;
        background: radial-gradient(circle at center, rgba(140, 28, 56, 0.38) 0%, rgba(10, 10, 10, 1) 70%);
    }
    
    .hero h1 { 
        font-size: 2.2rem; /* فونت بزرگ‌تر و خوانا برای عنوان اصلی در موبایل */
        margin-bottom: 12px; 
        line-height: 1.3;
        white-space: nowrap;
    }
    .hero p { 
        font-size: 0.85rem; 
        margin-bottom: 22px; 
        line-height: 1.75;
        padding: 0 5px;
    }
    
    /* دکمه عیب‌یابی هیرو */
    .btn-primary {
        padding: 10px 22px;
        font-size: 0.88rem;
        width: auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin: 0 auto;
    }
    .btn-primary svg {
        width: 16px !important;
        height: 16px !important;
    }

    /* بخش خدمات */
    .section-title { 
        font-size: 1.55rem;
        margin-bottom: 20px;
    }

    /* اسلایدر افقی خدمات */
    .services-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding: 10px 5% 20px 5%;
        margin-right: -5%;
        margin-left: -5%;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .services-grid::-webkit-scrollbar {
        display: none;
    }

    .service-card {
        flex: 0 0 58%;
        scroll-snap-align: start;
        padding: 50px 16px 30px 16px;
        background: #111111;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    }
    .service-card h3 {
        font-size: 1.1rem;
        margin-top: -15px;
        margin-bottom: 12px;
    }
    .service-card p {
        font-size: 0.8rem;
        line-height: 1.65;
    }

    /* بخش ارتباط با ما */
    .contact-info-block, .action-card {
        padding: 25px 18px;
        border-radius: 24px;
        text-align: center;
    }
    .contact-info-block h3, .action-card h4 {
        font-size: 1.55rem;
        margin-bottom: 15px;
        border-right: none;
        border-bottom: 3px solid var(--primary);
        padding-right: 0;
        padding-bottom: 6px;
        display: inline-block;
    }
    .action-card h4 {
        border-bottom-color: var(--gold);
    }
    .contact-meta {
        align-items: center;
        gap: 12px;
    }
    .meta-item {
        font-size: 0.9rem;
        flex-direction: column;
        gap: 5px;
    }
    
    .btn-phone { 
        font-size: 0.9rem; /* ریزتر شدن ابعاد جهت فشرده‌سازی دکمه‌ها */
        padding: 10px 8px; 
    }
    .phone-buttons { 
        grid-template-columns: repeat(2, 1fr); /* چیدمان ۲ ستونه فشرده برای موبایل */
        gap: 10px;
    }
    
    /* شبکه‌های اجتماعی */
    .messenger-grid {
        width: 100%;
    }
    .messenger-row {
        gap: 8px;
    }
    .btn-square { 
        width: 54px; 
        height: 54px; 
        border-radius: 12px; 
    }
    .btn-square svg { width: 22px; height: 22px; }
    .btn-telegram svg { width: 30px; height: 30px; }

    /* نقشه */
    .map-preview-container {
        gap: 10px;
    }
    .map-iframe-wrapper {
        height: 140px;
        border-radius: 14px;
    }
    .address-text {
        font-size: 0.85rem;
        text-align: center;
        justify-content: center;
    }

    /* فوتر */
    footer {
        padding: 35px 5%;
    }
    .footer-links {
        gap: 20px;
        margin-bottom: 20px;
    }
    .footer-links a {
        font-size: 0.85rem;
    }
    .copy {
        font-size: 0.75rem;
        line-height: 1.6;
    }
}
/* استایل لوگوی تصویری هدر */
.header-logo {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

/* استایل لوگوی تصویری فوتر */
.footer-logo-img {
    height: 40px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-logo-img:hover {
    opacity: 1;
}

/* === Fix: Logo left, Hamburger right (both mobile & desktop) === */
/* RTL: order 1 = left, order -1 = right */
header {
    flex-direction: row;
}

.logo {
    order: 1;
}

.hamburger {
    order: -1;
}

@media (min-width: 768px) {
    .logo {
        order: 1;
    }
    .hamburger {
        order: -1;
    }
}

/* ponytail: inline styles moved to classes */
.icon-sm { width: 20px; height: 20px; fill: currentColor; }
.email-text { font-size: 1.05rem; word-break: break-all; }
