/* Fonts */
@font-face {
    font-family: 'Morabba';
    src: url('src/Morabba-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Morabba';
    src: url('src/Morabba-UltraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
}
@font-face {
    font-family: 'Morabba';
    src: url('src/Morabba-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'Morabba';
    src: url('src/Morabba-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Plasma';
    src: url('src/Plasma-Square-Dots.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Quicksand';
    src: url('src/Quicksand-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

:root {
    --bg-color: #F4F4F4;
    --red-color: #D4323D;
    --dark-text: #333333;
    --yellow-color: #F7B500;
}

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

body {
    font-family: 'Morabba', sans-serif;
    background-color: var(--bg-color);
    color: var(--dark-text);
    overflow-x: hidden;
    line-height: 1.6;
}

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

.text-center { text-align: center; }

.plasma-text {
    font-family: 'Plasma', sans-serif;
}
.font-morabba-reg {
    font-family: 'Morabba', sans-serif;
    font-weight: normal;
}
.font-quicksand {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
}

/* Header */
.header {
    padding: 20px 0;
    position: relative;
    z-index: 1100;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img {
    height: 80px;
    width: auto;
}
.menu ul {
    list-style: none;
    display: flex;
    gap: 50px;
}
.menu a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: normal;
    font-size: 1.1rem;
    transition: color 0.3s;
}
.menu a:hover {
    color: var(--red-color);
}
.btn-contact {
    display: inline-block;
    padding: 8px 30px;
    border: 1px solid var(--red-color);
    color: var(--red-color);
    text-decoration: none;
    border-radius: 0; /* Sharp corners */
    font-weight: normal;
    font-size: 1.1rem;
    transition: all 0.3s;
}
.btn-contact:hover {
    background-color: var(--red-color);
    color: #fff;
}

/* Sidebar */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1150;
}
.sidebar-overlay.open { display: block; }
.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 1200;
    padding: 30px 25px;
    transition: right 0.35s ease;
    box-shadow: -5px 0 20px rgba(0,0,0,0.15);
    direction: rtl;
}
.sidebar.open { right: 0; }
.sidebar-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #333;
    display: block;
    margin-bottom: 30px;
    padding: 0;
}
.sidebar ul { list-style: none; }
.sidebar ul li { border-bottom: 1px solid #f0f0f0; }
.sidebar ul li a {
    display: block;
    padding: 16px 0;
    text-decoration: none;
    color: #333;
    font-family: 'Morabba', sans-serif;
    font-weight: normal;
    font-size: 1.2rem;
    transition: color 0.2s;
}
.sidebar ul li a:hover { color: var(--red-color); }

/* Hamburger button */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--dark-text);
    border-radius: 2px;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Hero Wrap: پترن مشترک هدر + هیرو */
.hero-wrap {
    background-image: url('src/pattern.jpg');
    background-size: cover;
    background-position: center top;
}

/* Hero */
.hero {
    background: none;
    padding: 40px 0 200px;
}
.hero-inner {
    text-align: right;
}
/* Two-column layout: image takes the full width as base, text overlaps on left */
.hero-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
}
.hero-main-img {
    position: relative;
    z-index: 1;
    max-width: 560px;
    width: 55%;
    display: block;
    margin-left: auto;
    margin-right: 200px; /* پوزیشن راست 200 */
}
.hero-desc {
    position: absolute;
    right: 500px;        /* پوزیشن راست 500 */
    top: 58%;
    transform: translateY(-50%);
    z-index: 2;
    width: 35%;
    font-weight: 200;
    font-size: 1rem;
    color: var(--red-color);
    line-height: 1.9;
    text-align: right;
    margin-top: -73px;
}
.hero-tags {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: -100px;
    margin-left: 50px;
    direction: rtl;
    position: relative;
    z-index: 1000;
}
.tag {
    background-color: var(--yellow-color);
    color: #000;
    padding: 5px 12px;
    font-weight: 500;
    font-size: 0.82rem;
    border-radius: 3px;
}

/* Services */
.services {
    background-color: var(--red-color);
    position: relative;
    padding: 200px 0 200px;
    margin-top: -100px;
    clip-path: polygon(0 0, 50% 5vw, 100% 0, 100% calc(100% - 5vw), 50% 100%, 0 calc(100% - 5vw));
}
.services-content-wrapper {
    position: relative;
    z-index: 10;
    color: #fff;
}
.services-titles {
    margin-bottom: 150px; /* مارجین پایین 150 */
}
.title-line {
    font-size: 1.8rem;
    margin: -10px 0;
}
.marquee-line {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
}
.marquee-content {
    display: inline-flex;
    align-items: center;
    font-weight: 200; /* UltraLight */
    font-size: 2rem;
    animation: scroll 20s linear infinite;
    color: #fff;
    mask-image: linear-gradient(to right, transparent, black 35%, black 65%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 35%, black 65%, transparent);
}
.space-gap {
    display: inline-block;
    width: 100px;
}
.marquee-content span {
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
    color: #fff;
}
.marquee-content span:hover {
    transform: scale(1.25);
}
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

.services-slider-container {
    width: 100%;
    position: relative;
    padding-top: 50px;
}
.phone-center {
    position: absolute;
    top: 49.4%;
    left: 50.2%;
    transform: translate(-50%, -50%);
    z-index: 20;
    height: 180%;
}
.phone-center img {
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
}

.services-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0;
    scrollbar-width: none;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    user-select: none;
    -webkit-user-select: none;
}
.services-slider::-webkit-scrollbar {
    display: none;
}
.services-slider.is-dragging {
    scroll-snap-type: none;
    scroll-behavior: auto;
    cursor: grabbing !important;
}
.slider-track {
    display: flex;
    gap: 20px;
    padding: 0 50vw;
}
.slide-item {
    scroll-snap-align: center;
    flex: 0 0 250px;
    text-align: right;
}
.slide-item img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 0; /* Keep it square like UI */
    margin-bottom: 10px;
}
.slide-item h3 {
    font-size: 1.1rem;
    font-weight: normal; /* Regular */
    color: #fff;
    margin-bottom: 0;
}
.slide-item a {
    font-size: 1rem;
    font-weight: 300; /* Light */
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    direction: ltr;
    display: inline-block;
}

/* Companions */
.companions {
    padding: 50px 0 30px;
    overflow: hidden;
}
.companions-title {
    color: var(--red-color);
    font-size: 2.5rem;
    margin-bottom: 0;
}
.companions-subtitle {
    font-weight: 300; /* Light */
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
}
.companions-marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    /* Apply fade on left and right sides */
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}
.customers-marquee {
    display: flex;
    width: max-content;
    animation: scroll-left 50s linear infinite;
    gap: 0;
}
.customers-marquee img {
    /* Since it's a 4-row image, let it be naturally wide and high */
    height: auto;
    max-height: 400px; /* safety boundary */
    object-fit: contain;
}
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

/* Pricing */
.pricing {
    position: relative;
    background: #EBEBEB;
    padding: 100px 0 80px;
    margin-top: 50px;
}
.pricing-bg-top {
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: #EBEBEB;
    clip-path: polygon(0 50px, 50% 0, 100% 50px, 100% 100%, 0 100%);
    z-index: 1;
}
.pricing-content {
    position: relative;
    z-index: 10;
}
.pricing-title {
    color: var(--red-color);
    font-size: 2.5rem;
    margin-bottom: 40px;
}
.tabs {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
}
.tab-btn {
    background: none;
    border: none;
    font-family: 'Morabba', sans-serif;
    font-weight: 500; /* Medium */
    font-size: 1.2rem;
    color: #999;
    cursor: pointer;
    transition: all 0.3s;
}
.tab-btn.active {
    color: #000;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}
.pricing-cards {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
}
.detailed-card {
    background: #FAFAFA;
    width: 350px;
    border-radius: 10px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: right;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    z-index: 1;
}
.detailed-card.featured {
    background: #A61E22;
    color: #fff;
    width: 380px;
    padding: 60px 40px;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 20px 50px rgba(166,30,34,0.3);
}

.card-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}
.feature-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 1.1rem;
    font-family: 'Morabba', sans-serif;
}
.feature-text {
    flex: 1;
    font-weight: 500;
}
.feature-text span {
    display: block;
    font-size: 0.7rem;
    font-weight: 300;
    color: #888;
    margin-top: 5px;
    line-height: 1.6;
}
.detailed-card.featured .feature-text span {
    color: rgba(255, 255, 255, 0.7);
}
.feature-val {
    flex: 0 0 80px;
    text-align: left;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.feature-val span {
    display: block;
    font-size: 0.8rem;
    font-weight: 300;
    color: #888;
    margin-top: 2px;
}
.detailed-card.featured .feature-val span {
    color: rgba(255, 255, 255, 0.7);
}
.check-icon {
    width: 24px;
    height: 24px;
    color: #333;
}
.detailed-card.featured .check-icon {
    color: #fff;
}

.card-footer {
    text-align: center;
    margin-top: 20px;
}
.btn-price {
    background: transparent;
    border: 1px solid #ddd;
    color: #333;
    padding: 12px 30px;
    font-family: 'Morabba', sans-serif;
    font-size: 1.2rem;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
    font-weight: 500;
}
.detailed-card.featured .btn-price {
    border-color: rgba(255,255,255,0.3);
    color: #fff;
}
.contact-for-price {
    font-size: 1.5rem;
    padding: 50px;
    color: #555;
}

/* Contact */
.contact {
    padding: 0 100px;
}
.contact-inner {
    display: flex;
    flex-direction: row;     /* عکس اول (راست) سپس اطلاعات (چپ) */
    justify-content: flex-start;
    align-items: center;
    gap: 0;
}
.contact-image {
    flex: 0 0 60%;
    max-width: 60%;
    overflow: visible;   /* اجازه بده عکس از باکس بزنه بیرون */
    position: relative;
    margin-top: 40px;
}
.contact-image img {
    width: 90%;
    height: auto;
    object-fit: cover;
    display: block;
    position: relative;
    right: 0;
    margin-right: 100px;
}
.contact-info {
    flex: 1;
    padding: 40px 60px;      /* فاصله داخلی */
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.contact-item {
    display: flex;
    align-items: center;
    flex-direction: row;     /* آیکن چپ ، متن راست در LTR */
    direction: ltr;
    gap: 15px;
    margin-bottom: 28px;
}
.contact-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    filter: invert(28%) sepia(90%) saturate(600%) hue-rotate(330deg); /* رنگ قرمز */
}
.contact-item span,
.contact-item a {
    font-size: 1.1rem;
    color: var(--dark-text);
    direction: ltr;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

/* Inquiry Card (graphic & web tabs) */
.inquiry-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.4s ease;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.inquiry-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 28px;
    opacity: 0.9;
}
.inquiry-icon svg {
    width: 100%;
    height: 100%;
}
.inquiry-title {
    font-family: 'Morabba', sans-serif;
    font-weight: 500;
    font-size: 1.4rem;
    color: var(--dark-text);
    margin-bottom: 14px;
    line-height: 1.7;
}
.inquiry-desc {
    font-family: 'Morabba', sans-serif;
    font-weight: 200;
    font-size: 1rem;
    color: #777;
    line-height: 2;
    margin-bottom: 32px;
}
.inquiry-btn {
    display: inline-block;
    padding: 12px 40px;
    border: 1.5px solid var(--red-color);
    color: var(--red-color);
    text-decoration: none;
    font-family: 'Morabba', sans-serif;
    font-weight: normal;
    font-size: 1rem;
    border-radius: 0;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}
.inquiry-btn:hover {
    background-color: var(--red-color);
    color: #fff;
}
.inquiry-divider {
    width: 40px;
    height: 1px;
    background: #ddd;
    margin: 32px auto;
}
.inquiry-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.inquiry-badges span {
    font-family: 'Morabba', sans-serif;
    font-size: 0.85rem;
    color: #999;
    background: #f0f0f0;
    padding: 5px 14px;
    border-radius: 20px;
    transition: color 0.2s, background 0.2s;
}
.inquiry-badges span:hover {
    background: #ffe8e8;
    color: var(--red-color);
}

/* Footer */
.footer {
    background-color: var(--bg-color);
    border-top: 1px solid #e0e0e0;
    padding: 30px 0;
    text-align: center;
}
.footer-inner {
    display: flex;
    justify-content: center;
    align-items: center;
}
.footer-logo {
    height: 50px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s;
}
.footer-logo:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 1100px) {
    .hero-desc {
        width: 38%;
        font-size: 0.9rem;
    }
    .hero-main-img {
        width: 60%;
    }
    .detailed-pricing {
        flex-wrap: wrap;
    }
    .detailed-card, .detailed-card.featured {
        width: 100%;
        max-width: 380px;
    }
}

@media (max-width: 992px) {
    /* Header */
    .menu ul {
        gap: 20px;
    }
    .menu a {
        font-size: 0.95rem;
    }

    /* Hero - stack vertically on tablet */
    .hero-content {
        flex-direction: column;
        min-height: auto;
    }
    .hero-main-img {
        width: 80%;
        max-width: 450px;
        margin: 0 auto;
        margin-right: auto;            /* ریست margin-right: 200px */
    }
    .hero-desc {
        position: relative;
        right: auto;                   /* ریست right: 500px */
        left: auto;
        top: auto;
        transform: none;
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }
    .hero-tags {
        justify-content: center;
        margin-top: 20px;              /* ریست margin-top: -100px */
        margin-left: 0;               /* ریست margin-left: 50px */
    }

    /* Contact */
    .contact { padding: 0 30px; }     /* ریست padding: 0 100px */
    .contact-inner {
        flex-direction: column;
        text-align: right;
    }
    .contact-image {
        flex: 0 0 100%;               /* ریست flex: 0 0 60% */
        max-width: 100%;              /* ریست max-width: 60% */
        justify-content: center;
        margin-bottom: 40px;
    }
    .contact-image img {
        margin-right: 0;              /* ریست margin-right: 100px */
        width: 100%;
    }
    .contact-info {
        padding: 20px 0;             /* ریست padding: 40px 60px */
    }

    /* Services slider */
    .slider-track {
        padding: 0 20px;
    }

    /* Pricing */
    .tabs {
        gap: 20px;
    }
    .tab-btn {
        font-size: 1rem;
    }
}

@media (min-width: 501px) and (max-width: 767px) {
    .services {
        padding: 200px 0 200px;
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    /* Header */
    .menu ul { display: none; }
    .btn-contact { display: none; }
    .hamburger { display: flex; }
    .logo img { height: 55px; }
    .header-inner { flex-direction: row-reverse; } /* آیکن راست، لوگو چپ */

    /* Hero - stack vertically */
    .hero { padding: 30px 0 40px; }
    .hero-content { min-height: auto; flex-direction: column; }
    .hero-main-img {
        width: 90%;
        max-width: 100%;
        margin: 0 auto;
    }
    .hero-desc {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        text-align: center;
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    .tag { font-size: 0.9rem; padding: 6px 14px; }


    /* Services */
    .title-line {
        font-size: 2rem;
    }
    .marquee-content {
        font-size: 1.8rem;
    }

    /* Companions */
    .companions-title {
        font-size: 2rem;
    }

    /* Pricing */
    .pricing-title {
        font-size: 2rem;
    }
    .pricing-cards {
        flex-direction: column;
        align-items: center;
    }
    .detailed-card, .detailed-card.featured {
        width: 100%;
        max-width: 400px;
    }
    .detailed-card.featured {
        padding: 40px 30px;
    }

    /* Contact */
    .contact {
        padding: 60px 0;
    }
    .contact-image img {
        width: 100%;
    }
}
/* ─── ≤ 500px ──────────────────────────────────────── */
@media (max-width: 500px) {

    /* Header */
    .logo img { height: 48px; }
    .header { padding: 14px 0; }

    /* Hero */
    .hero-wrap { padding-bottom: 60px; }
    .hero { padding: 20px 0 30px; }
    .hero-main-img { width: 100%; }
    .hero-desc { font-size: 0.85rem; padding: 0 10px; margin-top: -50px; }
    .hero-tags {
        margin-top: 20px;   /* حذف -100px که باعث اوورلپ می‌شد */
        margin-left: 0;
        gap: 8px;
        padding: 0 10px;
    }
    .tag { font-size: 0.7rem; padding: 5px 10px; }

    /* Services */
    .services { padding: 80px 0 200px; margin-top: 50px; }
    .phone-center img { height: 92%; margin-top: 20px; }
    .title-line { font-size: 1.4rem; }
    .marquee-content { font-size: 1.3rem; }
    .marquee-line { height: 50px; }

    /* slider */
    .slider-track { padding: 0 10px; gap: 12px; }
    .slide-item { flex: 0 0 200px; }
    .slide-item img { width: 200px; height: 200px; }

    /* Companions */
    .companions { padding: 30px 0 20px; }
    .companions-title { font-size: 1.6rem; }
    .companions-subtitle { font-size: 1rem; }

    /* Pricing */
    .pricing { padding: 60px 0 50px; }
    .pricing-title { font-size: 1.6rem; margin-bottom: 24px; }
    .tabs {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 30px;
    }
    .tab-btn { font-size: 0.9rem; padding: 4px 8px; }
    .detailed-card {
        padding: 24px 16px;
        width: 100%;
        max-width: 100%;
    }
    .detailed-card.featured {
        padding: 28px 16px;
        width: 100%;
        max-width: 100%;
    }
    .feature-row { font-size: 0.9rem; }
    .feature-val { flex: 0 0 65px; font-size: 0.85rem; }
    .btn-price { font-size: 1rem; padding: 10px 16px; }
    .contact-for-price { font-size: 1.1rem; padding: 30px 16px; }

    /* Contact */
    .contact { padding: 30px 0; }
    .contact-inner { flex-direction: column; }
    .contact-image {
        width: 100%;
        max-width: 100%;
        flex: none;
        margin-top: 30px;
    }
    .contact-image img {
        width: 100%;
        margin-right: 0;     /* حذف margin-right: 100px */
        margin-left: 0;
    }
    .contact-info {
        z-index: 10;
        margin-top: -89px;
        padding: 25px 38px;
    }
    .contact-item {
        gap: 10px;
        margin-bottom: 18px;
        flex-wrap: wrap;     /* جلوگیری از overflow لینک‌های بلند */
    }
    .contact-item a,
    .contact-item span {
        font-size: 0.9rem;
        word-break: break-all;  /* شکستن لینک‌های بلند */
    }
    .contact-icon { width: 20px; height: 20px; }

    /* Footer */
    .footer { padding: 20px 0; }
    .footer-logo { height: 38px; }
}
