@font-face {
    font-family: 'IRANSansX';
    src: url('../fonts/iransansx/IRANSansX-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSansX';
    src: url('../fonts/iransansx/IRANSansX-Regular.woff2') format('woff2'),
         url('../fonts/iransansx/IRANSansX-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSansX';
    src: url('../fonts/iransansx/IRANSansX-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Base */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body,
button,
input,
textarea,
select {
    font-family: 'IRANSansX', 'Vazirmatn', sans-serif;
}

body {
    direction: rtl;
    margin: 0;
    background: #f5f6f8;
    color: #222;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

::selection {
    background: #d1001f;
    color: #fff;
}

/* کنترل بهتر عرض در مانیتورهای بزرگ */
.container {
    width: min(92%, 1120px);
    margin-inline: auto;
    position: relative;
}

/* Header */
.site-header {
    background: #3F3F41;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 84px;
    gap: 24px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    flex-shrink: 0;
}

.site-logo {
    width: 110px;
    height: auto;
    object-fit: contain;
}

.site-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
    text-align: right;
}

.site-brand-text strong {
    font-size: 24px;
    color: #fff;
    font-weight: 800;
}

.site-brand-text span {
    font-size: 13px;
    color: #c8c8c8;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.main-nav a {
    color: #f2f2f2;
    font-size: 15px;
    font-weight: 700;
    transition: 0.25s ease;
    position: relative;
}

.main-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: #ff3654;
    transition: 0.25s ease;
}

.main-nav a:hover {
    color: #ff3654;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Hero */
.hero {
    position: relative;
    min-height: 590px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(63,63,65,0.70), rgba(63,63,65,0.92)),
        url('/assets/images/hero-cover.jpg') center center / cover no-repeat;
    color: #fff;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 25%, rgba(209, 0, 31, 0.28), transparent 32%),
        linear-gradient(to bottom, rgba(0,0,0,0.08), rgba(0,0,0,0.25));
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(209, 0, 31, 0.16), transparent 35%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    padding: 88px 0;
    width: 100%;
}

.hero-content {
    max-width: 760px;
    text-align: right;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.14);
    color: #f5f5f5;
    font-size: 13px;
    font-weight: 700;
}

.hero-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff3654;
    box-shadow: 0 0 0 6px rgba(255,54,84,0.14);
}

.hero-title {
    margin: 0 0 22px;
    line-height: 1.35;
}

.hero-title-main {
    display: block;
    font-weight: 900;
    font-size: clamp(42px, 4.2vw, 64px);
    margin-bottom: 14px;
    color: #fff;
    letter-spacing: -1px;
    text-shadow: 0 12px 35px rgba(0,0,0,0.28);
}

.hero-title-line {
    display: block;
    font-weight: 800;
    font-size: clamp(19px, 1.7vw, 27px);
    color: #f1f1f1;
    margin-bottom: 7px;
}

.hero-description {
    margin-top: 22px;
    line-height: 2.1;
    font-size: 18px;
    color: #ededed;
    max-width: 680px;
}

.hero-actions {
    margin-top: 34px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

/* Buttons */
.btn {
    padding: 13px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    transition: 0.28s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    min-height: 48px;
    line-height: 1.4;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background: #d1001f;
    color: #fff;
    box-shadow: 0 12px 26px rgba(209, 0, 31, 0.28);
}

.btn-primary:hover {
    background: #e11231;
    box-shadow: 0 16px 34px rgba(209, 0, 31, 0.34);
}

.btn-outline-light {
    border: 1px solid rgba(255,255,255,0.32);
    color: #fff;
    background: rgba(255,255,255,0.06);
}

.btn-outline-light:hover {
    background: #fff;
    color: #111;
    border-color: #fff;
}

/* Sections */
.main-content {
    overflow: hidden;
}

.categories-section,
.why-coverplus,
.cars-section,
.about-brand,
.final-cta {
    padding: 82px 0;
}

.categories-section {
    background: #f5f6f8;
}

.why-coverplus {
    background:
        radial-gradient(circle at top left, rgba(209,0,31,0.05), transparent 30%),
        #f5f6f8;
}

.cars-section {
    background: #f1f2f4;
}

.about-brand {
    background: #f5f6f8;
}

.section-heading {
    text-align: center;
    margin-bottom: 44px;
}

.section-heading h2 {
    font-size: clamp(26px, 2.2vw, 36px);
    font-weight: 900;
    margin: 0 0 14px;
    color: #171717;
}

.section-heading p {
    margin: 0;
    color: #686868;
    font-size: 15px;
    line-height: 1.9;
}

/* Categories */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.category-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    transition: 0.35s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.035);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 22px 44px rgba(0,0,0,0.10);
}

.category-card img {
    width: 100%;
    height: 235px;
    object-fit: cover;
    transition: 0.45s ease;
}

.category-card:hover img {
    transform: scale(1.04);
}

.category-card-body {
    padding: 22px 20px 24px;
    text-align: center;
}

.category-card-body h3 {
    margin: 0 0 12px;
    font-size: 19px;
    font-weight: 900;
    color: #202020;
}

.category-card-body p {
    margin: 0;
    color: #666;
    line-height: 1.9;
    font-size: 14px;
}

/* Why Cover Plus */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.why-card {
    position: relative;
    background:
        linear-gradient(145deg, #3f3f41, #323234);
    padding: 42px 26px;
    border-radius: 22px;
    text-align: center;
    color: #fff;
    overflow: hidden;
    transition: 0.35s ease;
    box-shadow: 0 14px 30px rgba(0,0,0,0.10);
}

.why-card::before {
    content: "";
    position: absolute;
    inset: auto -30px -70px auto;
    width: 160px;
    height: 160px;
    background: rgba(209,0,31,0.18);
    border-radius: 50%;
    transition: 0.35s ease;
}

.why-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: inherit;
    pointer-events: none;
}

.why-card:hover {
    transform: translateY(-9px) scale(1.015);
    box-shadow: 0 24px 48px rgba(0,0,0,0.16);
}

.why-card:hover::before {
    transform: scale(1.25);
    background: rgba(209,0,31,0.25);
}

.why-card .icon {
    position: relative;
    z-index: 1;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(255,255,255,0.08);
    color: #ff3654;
    font-size: 25px;
    margin-bottom: 10px;
    transition: 0.35s ease;
}

.why-card:hover .icon {
    background: #d1001f;
    color: #fff;
    transform: rotate(-4deg) scale(1.08);
}

.why-card h3 {
    position: relative;
    z-index: 1;
    color: #ff3654;
    margin: 15px 0 12px;
    font-size: 18px;
    font-weight: 900;
}

.why-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #ececec;
    line-height: 1.9;
    font-size: 14px;
}

/* Cars */
.cars-box {
    max-width: 920px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 26px;
    padding: 36px 30px;
    box-shadow: 0 14px 36px rgba(0,0,0,0.045);
}

.car-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    justify-content: center;
}

.car-tags span {
    background: #f8f8f8;
    padding: 11px 25px;
    border-radius: 50px;
    border: 1px solid #e2e2e2;
    font-weight: 800;
    font-size: 14px;
    color: #333;
    transition: 0.28s ease;
}

.car-tags span:hover {
    background: #d1001f;
    color: #fff;
    border-color: #d1001f;
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(209,0,31,0.22);
}

.cars-note {
    max-width: 720px;
    margin: 24px auto 0;
    text-align: center;
    color: #666;
    line-height: 1.9;
    font-size: 14px;
}

/* About */
.about-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 38px 42px;
    background: #fff;
    border-radius: 26px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 14px 36px rgba(0,0,0,0.045);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(209,0,31,0.07);
}

.about-text {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
    line-height: 2.15;
    font-size: 16px;
    color: #454545;
}

/* Final CTA */
.final-cta {
    background:
        linear-gradient(135deg, rgba(63,63,65,0.96), rgba(45,45,47,0.98));
    color: #fff;
    text-align: center;
    padding: 76px 0;
}

.final-cta h2 {
    margin: 0;
    font-size: clamp(22px, 2vw, 32px);
    font-weight: 900;
    line-height: 1.7;
    color: #fff;
}

.final-cta .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-actions {
    width: 100%;
    justify-content: center !important;
    align-items: center;
    text-align: center;
    margin-top: 28px;
}

.final-cta .btn-outline-light {
    border-color: rgba(255,255,255,0.45);
    color: #fff;
    background: rgba(255,255,255,0.06);
}

.final-cta .btn-outline-light:hover {
    background: #fff;
    color: #111;
}

/* Footer */
.site-footer {
    background: #3F3F41;
    color: #d8d8d8;
    padding: 68px 0 24px;
    border-top: 4px solid #d1001f;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr 1fr 1fr;
    gap: 34px;
    align-items: start;
    margin-bottom: 42px;
}

.footer-col {
    min-width: 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.footer-logo {
    width: 82px;
    height: 82px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    padding: 6px;
}

.footer-brand strong {
    display: block;
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 4px;
}

.footer-brand p {
    margin: 0;
    color: #cfcfcf;
    font-size: 13px;
}

.footer-about {
    margin: 0;
    color: #d5d5d5;
    line-height: 2;
    font-size: 14px;
    max-width: 360px;
}

.footer-col h3 {
    margin: 0 0 20px;
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    position: relative;
    padding-right: 14px;
}

.footer-col h3::before {
    content: "";
    position: absolute;
    right: 0;
    top: 5px;
    width: 4px;
    height: 18px;
    border-radius: 999px;
    background: #d1001f;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d0d0d0;
    font-size: 14px;
    line-height: 1.8;
    transition: 0.25s ease;
}

.footer-links a::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.30);
    transition: 0.25s ease;
}

.footer-links a:hover {
    color: #ff3654;
    transform: translateX(-4px);
}

.footer-links a:hover::before {
    background: #ff3654;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 22px;
    text-align: center;
}

.footer-copy {
    margin: 0;
    color: #bdbdbd;
    font-size: 13px;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.75s ease, transform 0.75s ease;
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-fade {
    opacity: 0;
    transition: opacity 0.75s ease;
}

.reveal-fade.is-visible {
    opacity: 1;
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal-scale.is-visible {
    opacity: 1;
    transform: scale(1);
}

.delay-1 {
    transition-delay: 0.08s;
}

.delay-2 {
    transition-delay: 0.16s;
}

.delay-3 {
    transition-delay: 0.24s;
}

.delay-4 {
    transition-delay: 0.32s;
}

.delay-5 {
    transition-delay: 0.40s;
}

/* Reduce Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }

    .reveal,
    .reveal-fade,
    .reveal-scale {
        opacity: 1;
        transform: none;
    }
}

/* Tablet */
@media (max-width: 992px) {
    .container {
        width: min(92%, 860px);
    }

    .header-inner {
        flex-direction: column-reverse;
        padding: 18px 0;
        gap: 16px;
    }

    .main-nav {
        justify-content: center;
        gap: 18px;
    }

    .hero {
        min-height: 560px;
    }

    .hero-content {
        text-align: center;
        margin-inline: auto;
    }

    .hero-description {
        margin-inline: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .category-grid,
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 34px 28px;
    }

    .footer-about {
        max-width: none;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .container {
        width: min(92%, 560px);
    }

    .site-brand-text strong {
        font-size: 20px;
    }

    .site-logo {
        width: 88px;
    }

    .main-nav {
        gap: 12px 16px;
    }

    .main-nav a {
        font-size: 13px;
    }

    .hero {
        min-height: 610px;
        background-position: center;
    }

    .hero-inner {
        padding: 70px 0;
    }

    .hero-title-main {
        font-size: 40px;
    }

    .hero-title-line {
        font-size: 18px;
    }

    .hero-description {
        font-size: 15px;
        line-height: 2;
    }

    .hero-actions,
    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        max-width: 320px;
    }

    .categories-section,
    .why-coverplus,
    .cars-section,
    .about-brand,
    .final-cta {
        padding: 64px 0;
    }

    .category-grid,
    .why-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .category-card img {
        height: 220px;
    }

    .cars-box,
    .about-card {
        padding: 28px 20px;
        border-radius: 22px;
    }

    .footer-grid {
        text-align: right;
    }

    .footer-brand {
        align-items: center;
    }
}

/* Small Mobile */
@media (max-width: 420px) {
    .hero-title-main {
        font-size: 36px;
    }

    .footer-logo {
        width: 72px;
        height: 72px;
    }
}
