/* زیباسازی — آمار، برند، پروژه، محصولات ویژه، واتساپ، موبایل */

:root {
    --brand-blue: #1976d2;
    --brand-blue-light: #42a5f5;
    --brand-gold: #fbbf24;
    --brand-dark: #0f172a;
    --section-gap: 72px;
}

/* ── آمار اعتماد ── */
.trust-stats-bar {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #1565c0 100%);
    color: #fff;
    padding: 28px 20px;
    position: relative;
    overflow: hidden;
}

.trust-stats-bar::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -10%;
    width: 40%;
    height: 140%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.trust-stats-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.trust-stat-item {
    padding: 8px 12px;
}

.trust-stat-num {
    display: block;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800;
    color: var(--brand-gold);
    line-height: 1.2;
    margin-bottom: 4px;
}

.trust-stat-label {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.5;
}

/* ── برندها ── */
.brands-strip {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 28px 20px;
}

.brands-strip-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.brands-strip-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 18px;
}

.brands-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px 16px;
}

.brand-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
    letter-spacing: 0.02em;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.brand-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(25, 118, 210, 0.12);
    border-color: rgba(25, 118, 210, 0.35);
    color: var(--brand-blue);
}

/* ── مسیر مشتری ── */
.journey-section {
    padding: var(--section-gap) 20px;
    background: #fff;
}

.journey-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.journey-header {
    text-align: center;
    margin-bottom: 40px;
}

.journey-header h2 {
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    color: var(--brand-dark);
    margin: 0 0 8px;
}

.journey-header p {
    color: #64748b;
    margin: 0;
    font-size: 0.95rem;
}

.journey-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.journey-step {
    text-align: center;
    padding: 0 12px;
}

.journey-step-num {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(145deg, #fff 0%, #f0f9ff 100%);
    border: 3px solid var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 16px rgba(25, 118, 210, 0.15);
}

.journey-step h3 {
    font-size: 1rem;
    margin: 0 0 6px;
    color: var(--brand-dark);
}

.journey-step p {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0;
    line-height: 1.55;
}

/* ── پروژه‌ها ── */
.projects-section {
    padding: var(--section-gap) 20px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.projects-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.projects-header {
    text-align: center;
    margin-bottom: 36px;
}

.projects-header .section-eyebrow {
    color: var(--brand-blue);
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.projects-header h2 {
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    margin: 0 0 10px;
    color: var(--brand-dark);
}

.projects-header p {
    color: #64748b;
    margin: 0;
    max-width: 560px;
    margin-inline: auto;
    font-size: 0.95rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.project-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.15);
}

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

.project-card:hover img {
    transform: scale(1.06);
}

.project-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, transparent 55%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px;
    color: #fff;
}

.project-card-overlay h3 {
    font-size: 1rem;
    margin: 0 0 4px;
    font-weight: 700;
}

.project-card-overlay span {
    font-size: 0.8rem;
    opacity: 0.9;
}

.project-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--brand-gold);
    color: #1e293b;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

/* ── محصولات ویژه ── */
.featured-section {
    padding: var(--section-gap) 20px;
    background: #fff;
}

.featured-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.featured-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.featured-header h2 {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    margin: 0 0 6px;
    color: var(--brand-dark);
}

.featured-header p {
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
}

.featured-more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--brand-blue);
    color: #fff !important;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s, transform 0.2s;
}

.featured-more-link:hover {
    background: #1565c0;
    transform: translateY(-1px);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.featured-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow 0.25s, transform 0.25s;
}

.featured-card:hover {
    box-shadow: 0 12px 32px rgba(25, 118, 210, 0.12);
    transform: translateY(-3px);
}

.featured-card-link {
    display: block;
    color: inherit;
}

.featured-card-thumb {
    position: relative;
    aspect-ratio: 1;
    background: linear-gradient(145deg, #f0f9ff, #e0f2fe);
    overflow: hidden;
}

.featured-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--brand-gold);
    color: #1e293b;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

.featured-card-body {
    padding: 14px;
}

.featured-card-brand {
    font-size: 0.75rem;
    color: var(--brand-blue);
    font-weight: 600;
    margin-bottom: 4px;
}

.featured-card-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-card-price {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
}

.featured-card-name .product-title-model {
    display: block;
    margin-top: 4px;
    font-size: 0.88em;
    font-weight: 700;
    color: #334155;
    direction: rtl;
    text-align: right;
    unicode-bidi: isolate;
}

.featured-card-price span {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
}

/* ── درباره ما — عکس ── */
.about-visual {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    position: relative;
}

.about-visual img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    display: block;
}

.about-visual-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 12px 18px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.about-visual-badge strong {
    display: block;
    font-size: 1.1rem;
    color: var(--brand-blue);
}

.about-visual-badge span {
    font-size: 0.8rem;
    color: #64748b;
}

/* ── نشان‌های اعتماد ── */
.trust-badges-section {
    padding: 48px 20px;
    background: #f1f5f9;
    border-top: 1px solid #e2e8f0;
}

.trust-badges-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    padding: 18px 16px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.2s;
}

.trust-badge:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.trust-badge-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(145deg, #e3f2fd, #bbdefb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.trust-badge h4 {
    margin: 0 0 2px;
    font-size: 0.9rem;
    color: #1e293b;
}

.trust-badge p {
    margin: 0;
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.4;
}

/* ── CTA هیرو ── */
.hero-quick-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 20px;
}

.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-cta-btn.primary {
    background: linear-gradient(135deg, var(--brand-blue) 0%, #1565c0 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(25, 118, 210, 0.35);
}

.hero-cta-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(25, 118, 210, 0.4);
}

.hero-cta-btn.outline {
    background: #fff;
    color: var(--brand-blue);
    border: 2px solid var(--brand-blue);
}

.hero-cta-btn.outline:hover {
    background: #e3f2fd;
    transform: translateY(-2px);
}

.hero-slide-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    pointer-events: auto;
}

.hero-slide-cta a {
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.95);
    color: var(--brand-blue);
    transition: background 0.2s;
}

.hero-slide-cta a:hover {
    background: var(--brand-gold);
    color: #1e293b;
}

.hero-slide-cta a.gold {
    background: var(--brand-gold);
    color: #1e293b;
}

/* ── واتساپ شناور ── */
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 998;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
    transition: transform 0.25s, box-shadow 0.25s;
    animation: waPulse 3s ease-in-out infinite;
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 32px rgba(37, 211, 102, 0.55);
}

@keyframes waPulse {
    0%, 100% { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45); }
    50% { box-shadow: 0 6px 32px rgba(37, 211, 102, 0.65), 0 0 0 8px rgba(37, 211, 102, 0.12); }
}

.whatsapp-float-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: #1e293b;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.whatsapp-float:hover .whatsapp-float-tooltip {
    opacity: 1;
}

/* ── نوار موبایل ── */
.mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 997;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.1);
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
}

.mobile-sticky-bar-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: 480px;
    margin: 0 auto;
}

.mobile-sticky-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #475569;
    transition: background 0.2s;
}

.mobile-sticky-bar a span:first-child {
    font-size: 1.2rem;
}

.mobile-sticky-bar a:hover,
.mobile-sticky-bar a:active {
    background: #f1f5f9;
    color: var(--brand-blue);
}

.mobile-sticky-bar a.wa-link {
    color: #16a34a;
}

body.has-mobile-bar {
    padding-bottom: 72px;
}

body.has-mobile-bar .whatsapp-float {
    bottom: 88px;
}

body.has-mobile-bar .support-widget-btn {
    bottom: 88px;
}

body.has-mobile-bar .support-widget-box {
    bottom: 158px;
}

/* ── responsive ── */
@media (max-width: 992px) {
    .trust-stats-inner { grid-template-columns: repeat(2, 1fr); }
    .journey-steps { grid-template-columns: repeat(2, 1fr); gap: 28px; }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-badges-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .trust-stats-inner { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .trust-stat-num { font-size: 1.4rem; }
    .projects-grid { grid-template-columns: 1fr; }
    .featured-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .trust-badges-inner { grid-template-columns: 1fr; }
    .journey-steps { grid-template-columns: 1fr; }
    .mobile-sticky-bar { display: block; }
    body.has-mobile-bar { padding-bottom: 80px; }
    .whatsapp-float { right: 16px; bottom: 16px; width: 50px; height: 50px; }
    .whatsapp-float-tooltip { display: none; }
    .about-visual { order: -1; }
}
