* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    font-family: Tahoma, Arial, sans-serif;
    color: #172033;
    background: #f8f6f1;
    line-height: 1.9;
    direction: rtl;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.wrap {
    width: min(1120px, 92%);
    margin-right: auto;
    margin-left: auto;
}

/* =========================
   منوی اصلی سایت
========================= */

header {
    background: #fff;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 50;
}

header .wrap {
    min-height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand {
    font-size: 20px;
    font-weight: bold;
    color: #172033;
    flex-shrink: 0;
}

.brand small {
    display: block;
    font-size: 11px;
    color: #9b7a43;
}

nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
}

nav a {
    color: #333;
    white-space: nowrap;
    transition: color .2s ease;
}

nav a:hover {
    color: #a77d3d;
}

.phone {
    direction: ltr;
    unicode-bidi: embed;
    color: #8b682f;
    font-weight: bold;
    white-space: nowrap;
}

/* =========================
   تصویر اصلی و نوشته‌های روی آن
========================= */

.hero {
    position: relative;
    isolation: isolate;
    min-height: 570px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #172033;
    background-image:
        linear-gradient(
            90deg,
            rgba(15, 23, 42, .78) 0%,
            rgba(15, 23, 42, .40) 55%,
            rgba(15, 23, 42, .18) 100%
        ),
        url("hero-background.png");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    color: #fff;
}

/* ظرف محتوای تصویر اصلی */
.heroContent {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 570px;
}

/* نوشته‌ها با فاصله از لبه راست */
.heroText {
    width: 100%;
    max-width: 560px;
    margin-right: 40px;
    margin-left: auto;
    padding: 65px 0;
    color: #fff;
    text-align: right;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 40px;
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 18px;
    overflow-wrap: anywhere;
}

.heroText p {
    font-size: 18px;
    line-height: 2;
    margin: 12px 0;
}

/* =========================
   دکمه‌ها
========================= */

.btn {
    display: inline-block;
    background: #b48b4b;
    color: #fff;
    border: 1px solid #b48b4b;
    border-radius: 7px;
    padding: 9px 20px;
    margin: 8px 0;
    cursor: pointer;
    font: inherit;
    text-align: center;
    transition: background .2s ease, color .2s ease;
}

.btn:hover {
    background: #936c34;
    border-color: #936c34;
    color: #fff;
}

.btn.alt {
    background: transparent;
    border: 1px solid #ddd;
    color: inherit;
}

/* =========================
   نوار خدمات و اطلاعات
   این استایل‌ها برای HTML متناظر هستند
========================= */

.quick-links,
.info-strip {
    display: block;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e5dfd5;
}

.quick-links .wrap,
.info-strip .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 16px;
    padding-bottom: 16px;
}

.quick-links a {
    color: #172033;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
}

.quick-links a:hover {
    color: #a77d3d;
    background: #f8f6f1;
}

.info-strip {
    background: #eee9df;
    font-size: 14px;
}

.info-strip a {
    color: inherit;
    overflow-wrap: anywhere;
}

/* =========================
   بخش‌های عمومی
========================= */

.section {
    padding: 70px 0;
}

.section h2 {
    text-align: center;
    font-size: 30px;
    line-height: 1.7;
    margin-top: 0;
    margin-bottom: 30px;
}

.section p {
    overflow-wrap: anywhere;
}

.grid,
.prices {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.grid article,
.prices article,
.two article {
    min-width: 0;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e5dfd5;
}

.grid strong {
    font-size: 30px;
    color: #b48b4b;
}

.cream {
    background: #eee9df;
}

.prices article {
    text-align: center;
}

.price {
    font-size: 24px;
    font-weight: bold;
    color: #8b682f;
}

.prices input,
.prices select,
.prices textarea {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #d6d0c6;
    border-radius: 6px;
    font: inherit;
}

.two {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 30px;
}

.trust {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.trust span {
    border: 2px dashed #c5bcad;
    padding: 20px 30px;
    border-radius: 10px;
}

.center {
    text-align: center;
}

.dark {
    background: #172033;
    color: #fff;
}

/* =========================
   پابرگ سایت
========================= */

footer {
    background: #101722;
    color: #ddd;
    padding: 35px 0;
}

footer a {
    color: #fff;
}

.message {
    width: min(600px, 92%);
    margin: 60px auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

/* =========================
   تبلت و موبایل
========================= */

@media (max-width: 900px) {
    header .wrap {
        gap: 14px;
    }

    nav {
        gap: 12px;
    }

    .heroText {
        max-width: 520px;
        margin-right: 28px;
    }

    .hero h1 {
        font-size: 34px;
    }
}

@media (max-width: 750px) {
    header {
        position: relative;
    }

    header .wrap {
        flex-wrap: wrap;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .brand {
        margin-left: auto;
    }

    nav {
        order: 3;
        width: 100%;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 5px 0 10px;
        gap: 18px;
    }

    nav a {
        flex-shrink: 0;
    }

    .phone {
        font-size: 14px;
    }

    .hero {
        min-height: 480px;
        background-position: center center;
    }

    .heroContent {
        min-height: 480px;
    }

    .heroText {
        width: 100%;
        max-width: 460px;
        margin-right: 18px;
        margin-left: 18px;
        padding: 45px 0;
    }

    .hero h1 {
        font-size: 29px;
        line-height: 1.7;
    }

    .heroText p {
        font-size: 16px;
    }

    .section {
        padding: 45px 0;
    }

    .section h2 {
        font-size: 25px;
    }

    .grid,
    .prices,
    .two {
        grid-template-columns: minmax(0, 1fr);
    }

    .quick-links .wrap,
    .info-strip .wrap {
        justify-content: center;
        text-align: center;
        gap: 10px;
    }

    .trust {
        flex-direction: column;
    }
}

@media (max-width: 380px) {
    .heroText {
        margin-right: 12px;
        margin-left: 12px;
    }

    .hero h1 {
        font-size: 25px;
    }

    .btn {
        padding: 8px 12px;
    }
}

/* اصلاح جای نوشته روی تصویر اصلی */
.hero {
    overflow: hidden;
}

.heroContent {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 570px;
    padding: 40px 5%;
    box-sizing: border-box;
    direction: rtl;
}

.heroText {
    box-sizing: border-box;
    width: 100%;
    max-width: 560px;
    margin: 0;
    padding: 28px;
    text-align: right;
    overflow-wrap: anywhere;
    position: relative;
    z-index: 2;
}

/* تبلت */
@media (max-width: 900px) {
    .heroContent {
        min-height: 500px;
        padding: 32px 5%;
    }

    .heroText {
        max-width: 520px;
        padding: 24px;
    }
}

/* موبایل */
@media (max-width: 600px) {
    .heroContent {
        min-height: 440px;
        padding: 24px 18px;
        justify-content: center;
    }

    .heroText {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 20px;
        text-align: right;
    }

    .heroText h1 {
        font-size: clamp(25px, 7vw, 34px);
        line-height: 1.7;
        overflow-wrap: anywhere;
    }

    .heroText p {
        font-size: 15px;
        line-height: 2;
    }

    .heroText .btn {
        max-width: 100%;
        white-space: normal;
    }
}
