/*
==================================================
Hamrah Daftar - Home Page
File: /public/front/css/home.css
==================================================
*/

/* ================================================
   1. تنظیمات عمومی صفحه اصلی
================================================ */

.main {
    overflow: hidden;
}

.hd-hero,
.hd-services,
.hd-about {
    direction: rtl;
}

.hd-section-badge {
    display: inline-block;
    padding: 6px 14px;
    margin-bottom: 12px;
    border-radius: 30px;
    background: #e8efff;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.hd-section-heading {
    max-width: 760px;
    margin: 0 auto 30px;
    text-align: center;
}

.hd-section-heading h2 {
    margin: 0 0 12px;
    color: #172554;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.7;
}

.hd-section-heading p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 2;
}


/* ================================================
   2. Hero
================================================ */

.hd-hero {
    position: relative;
    min-height: 500px;
    padding: 105px 0 60px;
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 25%, rgba(255,255,255,.12), transparent 28%),
        linear-gradient(135deg, #172554 0%, #1e3a8a 100%);
}

.hd-hero::before {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 50%;
    top: -250px;
    left: -100px;
}

.hd-hero .container,
.hd-hero-content {
    position: relative;
    z-index: 2;
}

.hd-hero-content {
    max-width: 570px;
}

.hd-hero-badge {
    display: inline-block;
    padding: 6px 13px;
    margin-bottom: 14px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 30px;
    background: rgba(255,255,255,.10);
    color: #dbeafe;
    font-size: 12px;
}

.hd-hero h1 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.55;
}

.hd-hero h1 span {
    color: #93c5fd;
}

.hd-hero p {
    max-width: 520px;
    margin: 0 0 24px;
    color: rgba(255,255,255,.78);
    font-size: 16px;
    line-height: 2;
}

.hd-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}


/* دکمه‌های اصلی */

.hd-primary-btn,
.hd-secondary-btn,
.hd-outline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 11px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all .25s ease;
}

.hd-primary-btn {
    border: 1px solid #ffffff;
    background: #ffffff;
    color: #1e3a8a !important;
}

.hd-primary-btn:hover {
    color: #172554 !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,.18);
}

.hd-secondary-btn {
    border: 1px solid rgba(255,255,255,.35);
    background: transparent;
    color: #ffffff !important;
}

.hd-secondary-btn:hover,
.hd-outline-btn:hover {
    background: rgba(255,255,255,.10);
}


/* کارت‌های نمایشی Hero */

.hd-tools-preview {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 350px;
    margin: 0 auto;
}

.hd-tool-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #1e293b;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0,0,0,.16);
}

.hd-card-main {
    top: 75px;
    right: 45px;
    width: 330px;
    padding: 22px;
}

.hd-tool-icon {
    display: flex;
    flex: 0 0 54px;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 23px;
}

.hd-tool-title,
.hd-tool-card strong {
    display: block;
    margin-bottom: 3px;
    font-size: 16px;
    font-weight: 700;
}

.hd-tool-card small {
    display: block;
    color: #64748b;
    font-size: 12px;
}

.hd-card-search {
    right: 0;
    bottom: 25px;
    padding: 15px 18px;
}

.hd-card-search > span {
    color: #2563eb;
    font-size: 22px;
}

.hd-card-new {
    top: 5px;
    left: 5px;
    padding: 14px 18px;
}

.hd-card-new > span {
    color: #16a34a;
    font-size: 21px;
}


/* ================================================
   3. خدمات
================================================ */

.hd-services {
    padding: 60px 0;
    background: #f8fafc;
}

.hd-service-card {
    position: relative;
    height: calc(100% - 24px);
    padding: 30px;
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid #e8edf5;
    border-radius: 18px;
    background: #ffffff;
    transition: all .25s ease;
}

.hd-service-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    transition: background .25s ease;
}

.hd-service-main {
    border-color: #cfdcff;
    box-shadow: 0 10px 30px rgba(30,58,138,.06);
}

.hd-service-main::before,
.hd-service-card:hover::before {
    background: #2563eb;
}

.hd-service-card:hover {
    transform: translateY(-5px);
    border-color: #d7e3ff;
    box-shadow: 0 18px 40px rgba(30,58,138,.10);
}

.hd-service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    border-radius: 15px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 23px;
}

.hd-service-card h3 {
    margin: 0 0 10px;
    color: #1e293b;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.7;
}

.hd-service-card p {
    min-height: 54px;
    margin: 0 0 16px;
    color: #64748b;
    font-size: 14px;
    line-height: 2;
}

.hd-service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 20px;
}

.hd-service-tags span {
    padding: 5px 10px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
}

.hd-service-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #2563eb !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
}

.hd-service-link span {
    font-size: 12px;
    transition: transform .2s ease;
}

.hd-service-link:hover span {
    transform: translateX(-4px);
}


/* ================================================
   4. درباره ما و Timeline
================================================ */

.hd-about {
    padding: 60px 0;
    background: #ffffff;
}

.hd-about-content h2 {
    margin: 0 0 15px;
    color: #172554;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.7;
}

.hd-about-content > p {
    margin: 0 0 12px;
    color: #64748b;
    font-size: 15px;
    line-height: 2;
}

.hd-about-note {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 22px;
    padding: 15px;
    border: 1px solid #e8edf5;
    border-radius: 14px;
    background: #f8fafc;
}

.hd-about-note > span {
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 18px;
}

.hd-about-note strong,
.hd-about-note small {
    display: block;
}

.hd-about-note strong {
    margin-bottom: 3px;
    color: #1e293b;
    font-size: 13px;
}

.hd-about-note small {
    color: #64748b;
    font-size: 12px;
}


/* Timeline */

.hd-timeline {
    position: relative;
    padding-right: 32px;
}

.hd-timeline::before {
    content: "";
    position: absolute;
    top: 13px;
    bottom: 22px;
    right: 8px;
    width: 2px;
    background: #e2e8f0;
}

.hd-timeline-item {
    position: relative;
    padding-bottom: 24px;
}

.hd-timeline-item:last-child {
    padding-bottom: 0;
}

.hd-timeline-item::before {
    content: "";
    position: absolute;
    top: 6px;
    right: -30px;
    z-index: 2;
    width: 17px;
    height: 17px;
    border: 4px solid #94a3b8;
    border-radius: 50%;
    background: #ffffff;
}

.hd-timeline-active::before {
    border-color: #2563eb;
    box-shadow: 0 0 0 5px #dbeafe;
}

.hd-timeline-year {
    display: inline-block;
    margin-bottom: 7px;
    padding: 4px 10px;
    border-radius: 7px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
}

.hd-timeline-content h4 {
    margin: 0 0 5px;
    color: #1e293b;
    font-size: 16px;
    font-weight: 700;
}

.hd-timeline-content p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.9;
}


/* ================================================
   5. بخش کمک
================================================ */

.hd-help-section {
    padding-top: 50px;
}

.hd-help-heading {
    max-width: 700px;
    margin: 0 auto 25px;
    text-align: center;
}

.hd-help-heading h3 {
    margin: 0 0 9px;
    color: #172554;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.7;
}

.hd-help-heading p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 2;
}

.hd-help-card {
    height: calc(100% - 20px);
    margin-bottom: 20px;
    padding: 24px 20px;
    text-align: center;
    border-bottom: 2px solid #e8edf5;
}

.hd-help-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 auto 12px;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 19px;
}

.hd-help-card h3,
.hd-help-card h4 {
    margin: 0 0 9px;
    color: #1e293b;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.7;
}

.hd-help-card p {
    max-width: 330px;
    margin: 0 auto 13px;
    color: #64748b;
    font-size: 13px;
    line-height: 2;
}

.hd-help-card a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2563eb !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
}

.hd-help-card a span {
    font-size: 12px;
}

.hd-help-support {
    border-bottom-color: #dbeafe;
}


/* ================================================
   6. CTA / ارتباط
================================================ */

.hd-contact-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-top: 35px;
    padding: 32px 38px;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, #172554, #1e3a8a);
    color: #ffffff;
}

.hd-contact-box::before {
    content: "";
    position: absolute;
    left: -120px;
    bottom: -190px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
}

.hd-contact-box > * {
    position: relative;
    z-index: 2;
}

.hd-contact-box .hd-section-badge {
    margin-bottom: 10px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.10);
    color: #dbeafe;
}

.hd-contact-box h3 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.7;
}

.hd-contact-box p {
    margin: 0;
    color: rgba(255,255,255,.72);
    font-size: 14px;
    line-height: 2;
}

.hd-contact-buttons {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
}

.hd-outline-btn {
    border: 1px solid rgba(255,255,255,.35);
    background: transparent;
    color: #ffffff !important;
}


/* ================================================
   7. Responsive
================================================ */

@media (max-width: 991px) {

    .hd-hero {
        min-height: auto;
        padding: 100px 0 55px;
        text-align: center;
    }

    .hd-hero-content {
        margin: 0 auto 30px;
    }

    .hd-hero p {
        margin-right: auto;
        margin-left: auto;
    }

    .hd-hero-buttons {
        justify-content: center;
    }

    .hd-tools-preview {
        transform: scale(.92);
        transform-origin: center top;
        margin-bottom: -20px;
    }

    .hd-services,
    .hd-about {
        padding: 55px 0;
    }

    .hd-about-content {
        margin-bottom: 40px;
    }

    .hd-contact-box {
        display: block;
    }

    .hd-contact-buttons {
        margin-top: 20px;
    }
}


@media (max-width: 767px) {

    .hd-section-heading h2,
    .hd-about-content h2 {
        font-size: 27px;
    }

    .hd-help-heading h3 {
        font-size: 25px;
    }

    .hd-tools-preview {
        height: 310px;
        transform: scale(.80);
        margin-top: -15px;
        margin-bottom: -55px;
    }

    .hd-card-main {
        right: 40px;
    }

    .hd-service-card {
        height: auto;
    }

    .hd-service-card p {
        min-height: auto;
    }
}


@media (max-width: 576px) {

    .hd-hero {
        padding-top: 90px;
        padding-bottom: 40px;
    }

    .hd-hero h1 {
        font-size: 31px;
    }

    .hd-hero p {
        font-size: 14px;
    }

    .hd-primary-btn,
    .hd-secondary-btn,
    .hd-outline-btn {
        width: 100%;
    }

    .hd-hero-buttons {
        display: block;
    }

    .hd-hero-buttons a {
        margin-bottom: 8px;
    }

    .hd-tools-preview {
        height: 275px;
        transform: scale(.68);
        margin-top: -30px;
        margin-bottom: -70px;
    }

    .hd-section-heading {
        margin-bottom: 22px;
    }

    .hd-section-heading h2,
    .hd-about-content h2 {
        font-size: 24px;
    }

    .hd-services,
    .hd-about {
        padding: 45px 0;
    }

    .hd-service-card {
        padding: 24px;
        margin-bottom: 18px;
    }

    .hd-help-section {
        padding-top: 35px;
    }

    .hd-help-heading h3 {
        font-size: 22px;
    }

    .hd-help-card {
        padding: 20px 12px;
    }

    .hd-contact-box {
        margin-top: 25px;
        padding: 25px 20px;
        border-radius: 17px;
    }

    .hd-contact-box h3 {
        font-size: 19px;
    }

    .hd-contact-buttons {
        display: block;
    }

    .hd-contact-buttons a {
        width: 100%;
        margin-bottom: 8px;
    }
}
