﻿/* ============================================================
   SAMA UPS — home.css (فقط صفحه اصلی)
   جایگزین کامل OwlCarousel/Swiper/WOW/Bootstrap grid برای این صفحه
   ============================================================ */

.sec {
    padding-block: clamp(56px,7vw,96px)
}

.dark-sec {
    background: var(--ink);
    color: rgba(255,255,255,.75)
}

    .dark-sec h2, .dark-sec h3, .dark-sec h4, .dark-sec h5 {
        color: #fff
    }

.paper-sec {
    background: var(--paper)
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .2em;
    color: var(--signal);
    text-transform: uppercase;
    margin-bottom: 10px;
    direction: ltr
}

.sec-head {
    margin-bottom: 36px;
    max-width: 64ch
}

    .sec-head.center {
        margin-inline: auto;
        text-align: center
    }

    .sec-head h2 {
        font-size: clamp(23px,3vw,34px);
        font-weight: 800;
        line-height: 1.4
    }

        .sec-head h2 span {
            color: var(--signal)
        }

    .sec-head p {
        color: var(--muted);
        margin-top: 10px;
        font-size: 15px
    }

.dark-sec .sec-head p {
    color: rgba(255,255,255,.6)
}

.check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-block: 16px
}

    .check-list.two-col {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px 20px
    }

    .check-list li {
        display: flex;
        align-items: flex-start;
        gap: 9px;
        font-size: 14.5px
    }

    .check-list svg {
        color: var(--signal);
        flex-shrink: 0;
        margin-top: 3px
    }

hr {
    border: 0;
    border-top: 1px solid var(--rule);
    margin-block: 22px
}

.dark-sec hr {
    border-color: rgba(255,255,255,.12)
}

/* ---------- ریویل روی اسکرول ---------- */
.rv {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s cubic-bezier(.22,.8,.3,1),transform .7s cubic-bezier(.22,.8,.3,1)
}

    .rv.in {
        opacity: 1;
        transform: none
    }

/* ---------- هیرو ---------- */
.hero {
    position: relative;
    height: min(88vh,760px);
    min-height: 480px;
    overflow: hidden;
    background: var(--ink)
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center
}

    .slide.on {
        opacity: 1
    }

.slide-shade{position:absolute;inset:0;background:linear-gradient(0deg,rgba(12,20,32,.85),rgba(12,20,32,.4))}

.slide-in {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding-block: 60px
}

.slide .eyebrow {
    color: #fff;
    opacity: .8
}

.hero h2 {
    font-size: clamp(28px,4.6vw,50px);
    font-weight: 800;
    line-height: 1.4;
    max-width: 20ch;
    margin-bottom: 16px
}

.hero p {
    max-width: 56ch;
    opacity: .85;
    margin-bottom: 26px;
    font-size: 15.5px
}

.hero-dots {
    position: absolute;
    inset-block-end: 22px;
    inset-inline: 0;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 8px
}

    .hero-dots button {
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background: rgba(255,255,255,.35);
        transition: .25s
    }

        .hero-dots button.on {
            background: var(--signal);
            width: 24px;
            border-radius: 5px
        }

/* ---------- گروه محصولات ---------- */
.groups-grid {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule)
}

.g-head {
    background: var(--ink);
    color: #fff;
    display: flex;
    align-items: center;
    padding: 24px
}

    .g-head h3 {
        font-size: 19px;
        font-weight: 800;
        line-height: 1.5
    }

.g-card {
    background: #fff;
    display: block;
    position: relative;
    overflow: hidden;
    transition: .3s
}

    .g-card img {
        width: 100%;
        aspect-ratio: 1;
        object-fit: cover;
        transition: transform .6s
    }

    .g-card:hover img {
        transform: scale(1.08)
    }

.g-card-text {
    padding: 16px
}

    .g-card-text h4 {
        font-size: 14.5px;
        font-weight: 700;
        margin-bottom: 4px
    }

    .g-card-text p {
        font-size: 12px;
        color: var(--muted)
    }

.g-card::before {
    content: "";
    position: absolute;
    inset-block-end: 0;
    inset-inline-end: 0;
    height: 3px;
    width: 0;
    background: var(--signal);
    transition: width .35s
}

.g-card:hover::before {
    width: 100%
}

/* ---------- خدمات ---------- */
.svc-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 22px
}

.svc-card {
    background: #fff;
    border: 1px solid var(--rule);
    padding: 26px;
    text-align: center;
    transition: .3s
}

    .svc-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 22px 44px rgba(12,20,32,.1);
        border-color: var(--ink)
    }

    .svc-card img {
        
        object-fit: contain;
        margin: 0 auto 16px;
    }

    .svc-card h5 {
        font-size: 16.5px;
        font-weight: 700;
        margin-bottom: 8px
    }

        .svc-card h5 a:hover {
            color: var(--signal)
        }

    .svc-card p {
        font-size: 13.5px;
        color: var(--muted);
        line-height: 1.9
    }

/* ---------- تعمیرات ---------- */
.repair-grid {
    display: grid;
    grid-template-columns: .9fr 1.3fr .8fr;
    gap: 30px;
    align-items: center
}

.repair-pic img {
    width: 100%;
    border-radius: 10px
}

.repair-text h2 {
    font-size: clamp(21px,2.8vw,30px);
    font-weight: 800;
    margin-bottom: 16px
}

    .repair-text h2 span {
        color: var(--signal)
    }

.repair-text p {
    color: var(--muted);
    margin-bottom: 14px;
    font-size: 14.5px;
    text-align: justify
}

.repair-quote {
    background: var(--ink);
    color: #fff;
    padding: 28px 24px;
    border-radius: 10px
}

    .repair-quote svg {
        color: var(--signal);
        margin-bottom: 12px
    }

    .repair-quote p {
        font-size: 14.5px;
        line-height: 1.9;
        margin-bottom: 18px
    }

.repair-author b {
    display: block;
    font-size: 14px
}

.repair-author span {
    font-size: 12.5px;
    color: rgba(255,255,255,.5)
}

/* ---------- چرا ما ---------- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 22px
}

.why-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    padding: 30px 24px;
    text-align: center;
    transition: .3s
}

    .why-card:hover {
        background: rgba(255,255,255,.07);
        transform: translateY(-6px)
    }

    .why-card svg {
        color: var(--signal);
        margin-bottom: 14px
    }

    .why-card h4 {
        font-size: 17px;
        font-weight: 700;
        margin-bottom: 10px
    }

    .why-card p {
        font-size: 13.5px;
        color: rgba(255,255,255,.6);
        line-height: 1.9
    }

/* ---------- تاریخچه/ویدیو ---------- */
.history-grid {
    display: grid;
    grid-template-columns: .5fr 1fr;
    gap: 34px;
    align-items: center
}

.video-btn {
    aspect-ratio: 1;
    background: var(--signal);
    color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    width: 100%;
    max-width: 220px;
    margin-inline: auto;
    transition: .3s;
    box-shadow: 0 20px 50px rgba(214,0,42,.3);
}

    .video-btn:hover {
        transform: scale(1.06);
        background: var(--signal-hot)
    }

.history-text p {
    margin-bottom: 14px;
    line-height: 2;
    font-size: 14.5px;
    color: rgba(255,255,255,.7)
}

/* ---------- پشتیبانی ۲۴ ساعته ---------- */
.support-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 34px;
    align-items: start
}

.support-text h2 {
    font-size: clamp(21px,2.8vw,30px);
    font-weight: 800;
    margin-bottom: 8px
}

    .support-text h2 span {
        color: var(--signal)
    }

.support-text > p {
    color: var(--muted);
    font-size: 14.5px;
    text-align: justify;
    margin-bottom: 6px
}

.support-side {
    display: flex;
    flex-direction: column;
    gap: 18px
}

.coupon-box {
    background: var(--ink);
    color: #fff;
    padding: 26px 22px;
    text-align: center;
    border-radius: 10px
}

    .coupon-box h4 {
        font-size: 17px;
        margin-bottom: 8px
    }

    .coupon-box p {
        font-size: 13.5px;
        color: rgba(255,255,255,.6);
        margin-bottom: 18px
    }

.call-box {
    background: #fff;
    border: 1px solid var(--rule);
    padding: 22px;
    text-align: center;
    border-radius: 10px
}

    .call-box h5 {
        font-size: 15px;
        margin-bottom: 12px
    }

    .call-box .num {
        display: block;
        font-size: 17px;
        font-weight: 700;
        color: var(--signal);
        margin-bottom: 6px
    }

/* ---------- فرم تماس ---------- */
.contact-sec {
    background: var(--paper)
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 34px;
    align-items: start
}

.form-box {
    background: #fff;
    border: 1px solid var(--rule);
    padding: clamp(22px,3vw,34px)
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px
}

.field {
    margin-bottom: 16px
}

    .field.full {
        grid-column: 1/-1
    }

    .field label {
        display: block;
        font-size: 13px;
        font-weight: 600;
        margin-bottom: 7px
    }

    .field input, .field select, .field textarea {
        width: 100%;
        padding: 12px 14px;
        border: 1px solid var(--rule);
        background: #FAFBFC;
        font: inherit;
        font-size: 14.5px;
        transition: .2s;
    }

        .field input:focus, .field select:focus, .field textarea:focus {
            outline: none;
            border-color: var(--signal);
            background: #fff
        }

    .field textarea {
        resize: vertical;
        min-height: 100px
    }

.err {
    display: block;
    color: var(--signal);
    font-size: 12px;
    margin-top: 5px
}

.submit {
    width: 100%;
    background: var(--ink);
    color: #fff;
    padding: 14px;
    font-weight: 700;
    font-size: 15px;
    transition: .25s;
    clip-path: polygon(0 0,100% 0,100% 100%,12px 100%,0 calc(100% - 12px));
}

    .submit:hover {
        background: var(--signal)
    }

.contact-side h2 {
    font-size: clamp(20px,2.6vw,28px);
    font-weight: 800;
    margin-bottom: 22px
}

.step-item {
    display: flex;
    gap: 14px;
    margin-bottom: 20px
}

.step-ico {
    width: 36px;
    height: 36px;
    background: var(--signal);
    color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0
}

.step-item h5 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 5px
}

.step-item p {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.85
}

/* ---------- کاروسل عمومی (best-sellers / testimonials / blog) ---------- */
.trk-view {
    overflow: hidden
}

.trk-wrap {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-block: 4px
}

    .trk-wrap::-webkit-scrollbar {
        display: none
    }

.trk-item {
    scroll-snap-align: start;
    flex: 0 0 auto
}

.trk-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px
}

.trk-btn {
    width: 38px;
    height: 38px;
    border: 1px solid var(--rule);
    display: grid;
    place-items: center;
    transition: .2s;
    border-radius: 50%
}

    .trk-btn:hover {
        border-color: var(--signal);
        color: var(--signal)
    }

.dark-sec .trk-btn {
    border-color: rgba(255,255,255,.2);
    color: #fff
}

    .dark-sec .trk-btn:hover {
        border-color: var(--signal);
        color: var(--signal)
    }

.trk-dots {
    display: flex;
    gap: 7px
}

    .trk-dots button {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--rule);
        transition: .2s
    }

.dark-sec .trk-dots button {
    background: rgba(255,255,255,.25)
}

.trk-dots button.on {
    background: var(--signal);
    width: 20px;
    border-radius: 4px
}

.prod-card {
    width: 230px
}

.prod-ph {
    display: block;
    aspect-ratio: 1;
    background: var(--paper);
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid var(--rule)
}

    .prod-ph img {
        width: 100%;
        height: 100%;
        object-fit: fill;
        transition: transform .4s
    }

.prod-card:hover .prod-ph img {
    transform: scale(1.06)
}

.prod-text h3 {
    font-size: 14.5px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.6
}

.trk-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--signal)
}

.testi-card {
    width: min(440px,80vw);
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.12);
    padding: 26px
}

    .testi-card svg {
        color: var(--signal);
        margin-bottom: 12px
    }

    .testi-card p {
        font-size: 14.5px;
        line-height: 1.9;
        margin-bottom: 18px
    }

.testi-author {
    display: flex;
    align-items: center;
    gap: 10px
}

    .testi-author img {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        object-fit: cover
    }

    .testi-author span {
        font-size: 13.5px;
        font-weight: 600
    }

.blog-card {
    width: 270px
}

.blog-ph {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
    margin-bottom: 12px
}

    .blog-ph img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .5s
    }

.blog-card:hover .blog-ph img {
    transform: scale(1.06)
}

.blog-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--muted);
    margin-bottom: 8px
}

.blog-text h5 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 8px
}

    .blog-text h5 a:hover {
        color: var(--signal)
    }

/* ---------- لوگوی مشتریان ---------- */
.logos-sec h4 {
    text-align: center;
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 26px;
    font-weight: 600
}

.logos-track {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
    mask-image: linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)
}

.logos-move {
    display: flex;
    gap: 56px;
    width: max-content;
    animation: logoScroll 26s linear infinite;
    align-items: center
}

    .logos-move:hover {
        animation-play-state: paused
    }

    .logos-move img {
        height: 34px;
        opacity: .55;
        filter: grayscale(1);
        transition: .25s
    }

        .logos-move img:hover {
            opacity: 1;
            filter: none
        }

@keyframes logoScroll {
    to {
        transform: translateX(-50%)
    }
}

/* ---------- مودال ویدیو ---------- */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(6,10,16,.9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: .3s
}

    .video-modal.open {
        opacity: 1;
        visibility: visible
    }

.video-modal-in {
    position: relative;
    width: min(880px,100%)
}

.video-frame {
    position: relative;
    aspect-ratio: 16/9;
    background: #000
}

    .video-frame iframe {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0
    }

.video-close {
    position: absolute;
    inset-block-end: 100%;
    inset-inline-end: 0;
    margin-bottom: 12px;
    width: 38px;
    height: 38px;
    background: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center
}

/* ---------- ریسپانسیو ---------- */
@media(max-width:1080px) {
    .groups-grid {
        grid-template-columns: repeat(3,1fr)
    }

    .svc-grid, .why-grid {
        grid-template-columns: 1fr 1fr
    }

    .repair-grid {
        grid-template-columns: 1fr;
        text-align: center
    }

    .repair-pic img {
        max-width: 320px;
        margin-inline: auto
    }

    .history-grid, .support-grid, .contact-grid {
        grid-template-columns: 1fr
    }

    .video-btn {
        max-width: 140px
    }
}

@media(max-width:640px) {
    .groups-grid {
        grid-template-columns: 1fr 1fr
    }

    .svc-grid, .why-grid {
        grid-template-columns: 1fr
    }

    .row {
        grid-template-columns: 1fr
    }

    .check-list.two-col {
        grid-template-columns: 1fr
    }
}

@media(prefers-reduced-motion:reduce) {
    .rv {
        opacity: 1;
        transform: none
    }

    .logos-move {
        animation: none
    }
}
