/* ==========================================================================
   حق سپار راستین توس — استایل اصلی (نسخه نهایی)
   ========================================================================== */

/* ---------- 1. فونت ---------- */
@font-face {
    font-family: Parastoo;
    src: url('../font/parastoo-font-v1.0.0-alpha5/web/Parastoo.eot');
    src: url('../font/parastoo-font-v1.0.0-alpha5/web/Parastoo.eot?#iefix') format('embedded-opentype'),
        url('../font/parastoo-font-v1.0.0-alpha5/web/Parastoo.woff') format('woff'),
        url('../font/parastoo-font-v1.0.0-alpha5/web/Parastoo.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ---------- 2. متغیرها ---------- */
:root {
    --green: #06271f;
    --green-2: #0b392d;
    --green-3: #164b3b;
    --gold: #d9ad69;
    --gold-light: #f0d19a;
    --cream: #f4f1e9;
    --ink: #112c25;
    --muted: #66736c;
    --line: rgba(12, 49, 38, .16);
    --serif: Georgia, 'Times New Roman', serif;

    --header-h: 88px;
    --gutter: clamp(17px, 4vw, 24px);
}

/* ---------- 3. پایه ---------- */
*,
*::before,
*::after {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 14px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: Parastoo, Tahoma, sans-serif;
    font-size: 16px;
    line-height: 1.9;
    overflow-x: hidden;
    min-width: 0;
}

img,
svg {
    display: block;
    max-width: 100%;
    height: auto
}

a {
    color: inherit;
    text-decoration: none
}

button {
    font: inherit;
    color: inherit;
    cursor: pointer
}

h1,
h2,
h3 {
    overflow-wrap: break-word
}

.container {
    width: 100%;
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.skip-link {
    position: absolute;
    inset-inline-start: 12px;
    top: -60px;
    background: #fff;
    color: #000;
    padding: 10px 16px;
    z-index: 100;
    transition: top .2s;
}

.skip-link:focus {
    top: 12px
}

/* ==========================================================================
   4. هدر و دکمه منو — نسخه اصلاح‌شده و ریسپانسیو
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(4, 31, 24, .98);
    border-bottom: 1px solid rgba(225, 190, 128, .2);
    color: #f8f4eb;
    backdrop-filter: blur(14px);
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: var(--header-h);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}

.brand img {
    width: 43px;
    height: 48px;
    flex: none
}

.brand span {
    display: grid;
    line-height: 1.4;
    min-width: 0
}

.brand strong {
    font-size: 17px;
    font-weight: 400;
    color: var(--gold-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand small {
    font-size: 10px;
    color: #d9d2c3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.6vw, 38px);
    margin-inline-start: auto;
}

.primary-nav a {
    font-size: 13px;
    color: #e3e7e0;
    position: relative;
    padding-block: 8px;
    transition: color .2s;
    white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav a.active {
    color: var(--gold-light)
}

.primary-nav a.active::after {
    content: "";
    position: absolute;
    bottom: -7px;
    inset-inline: 0;
    height: 2px;
    background: var(--gold);
}

/* ---------- دکمه همبرگری ---------- */
.menu-toggle {
    display: none;
    flex: none;
    width: 46px;
    height: 46px;
    padding: 12px 11px;
    background: rgba(220, 180, 112, .06);
    border: 1px solid rgba(220, 180, 112, .38);
    border-radius: 6px;
    cursor: pointer;
    transition: background .2s, border-color .2s, transform .15s;
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle:hover {
    background: rgba(220, 180, 112, .12);
    border-color: var(--gold);
}

.menu-toggle:active {
    transform: scale(.96);
}

.menu-toggle:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 2px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--gold-light);
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease, background .2s;
}

.menu-toggle span:first-child {
    margin-bottom: 7px;
}

.menu-toggle[aria-expanded="true"] {
    background: rgba(220, 180, 112, .16);
    border-color: var(--gold);
}

.menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4.5px) rotate(45deg);
    background: var(--gold);
}

.menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4.5px) rotate(-45deg);
    background: var(--gold);
}

/* ==========================================================================
   5. دکمه‌ها
   ========================================================================== */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 12px 23px;
    min-height: 48px;
    border: 1px solid transparent;
    font-size: 13px;
    transition: transform .2s, background .2s, border-color .2s;
    white-space: nowrap;
}

.button:hover {
    transform: translateY(-2px)
}

.button span {
    font-size: 18px;
    line-height: 1
}

.button-gold {
    background: linear-gradient(135deg, #f0d09a, #c99750);
    color: #12271f;
    box-shadow: 0 8px 24px #00000012;
}

.button-gold:hover {
    background: var(--gold-light)
}

.button-dark {
    background: var(--green);
    color: #fff
}

.button-dark:hover {
    background: var(--green-3)
}

/* ==========================================================================
   6. هیرو
   ========================================================================== */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 77% 38%, #174d3b 0%, transparent 38%),
        linear-gradient(112deg, #031a14 0%, #06281f 55%, #041a14 100%);
    color: #f8f5ed;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .12) 100%),
        repeating-linear-gradient(90deg, transparent 0, transparent 79px, rgba(220, 185, 119, .025) 80px);
}

.hero-glow {
    position: absolute;
    width: min(500px, 70vw);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid rgba(220, 180, 112, .1);
    inset-inline-start: 32%;
    top: 2%;
    box-shadow: 0 0 0 40px rgba(220, 180, 112, .018), 0 0 0 90px rgba(220, 180, 112, .015);
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 20, 15, .45), transparent 40%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
    align-items: center;
    gap: clamp(18px, 3vw, 40px);
    min-height: 620px;
    padding-block: 56px 72px;
}

.hero-copy {
    min-width: 0;
    max-width: 560px
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    letter-spacing: .04em;
    color: var(--gold-light);
    margin: 0 0 18px;
}

.eyebrow>span {
    display: inline-block;
    width: 28px;
    height: 1px;
    background: var(--gold);
    flex: none
}

.eyebrow.dark {
    color: #8a642f
}

.hero h1 {
    font-size: clamp(34px, 6.4vw, 70px);
    font-weight: 400;
    line-height: 1.25;
    margin: 0;
    letter-spacing: -1.5px;
}

.hero h1 em,
.section-heading h2 em,
.about h2 em,
.approach h2 em,
.contact-band h2 em {
    font-style: normal;
    color: var(--gold-light)
}

.title-rule {
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(290px, 100%);
    margin: 20px 0 15px;
    color: var(--gold);
}

.title-rule span {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
    flex: 1
}

.title-rule span:last-child {
    background: linear-gradient(270deg, transparent, var(--gold))
}

.title-rule b {
    font-weight: 400;
    font-size: 14px;
    flex: none
}

.hero h2 {
    font-size: clamp(17px, 2vw, 21px);
    font-weight: 400;
    margin: 0 0 12px;
    color: #f3e6ce
}

.hero-description {
    font-size: 15px;
    color: #c5d0c8;
    max-width: 480px;
    margin: 0;
    line-height: 2.15
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px 28px;
    margin-top: 28px
}

.text-link {
    font-size: 13px;
    color: #e4e9e2;
    display: inline-flex;
    gap: 10px;
    align-items: center
}

.text-link span {
    color: var(--gold);
    font-size: 18px
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 48px;
    color: #9cafa4;
    font-size: 11px
}

.note-line {
    height: 1px;
    width: 42px;
    background: #b18b53;
    flex: none
}

.hero-art {
    position: relative;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-art>img {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 590px;
    max-height: 530px;
    object-fit: contain;
    filter: drop-shadow(0 28px 34px rgba(0, 0, 0, .3));
}

.art-frame {
    position: absolute;
    inset: 8% 8% 10%;
    border: 1px solid rgba(221, 181, 112, .25);
    border-radius: 48% 48% 8px 8px;
    transform: rotate(-4deg);
}

.art-orbit {
    position: absolute;
    border: 1px solid rgba(221, 181, 112, .12);
    border-radius: 50%;
    width: 90%;
    aspect-ratio: 1
}

.orbit-one {
    transform: scaleY(.45) rotate(-20deg)
}

.orbit-two {
    transform: scaleY(.6) rotate(32deg);
    width: 75%
}

.art-caption {
    position: absolute;
    z-index: 3;
    bottom: 2%;
    inset-inline-start: 3%;
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(3, 28, 21, .82);
    border: 1px solid rgba(220, 180, 112, .26);
    padding: 12px 18px;
    backdrop-filter: blur(10px);
}

.caption-number {
    font: 20px var(--serif);
    color: var(--gold)
}

.art-caption span:last-child {
    display: grid
}

.art-caption b {
    font-size: 12px;
    font-weight: 400
}

.art-caption small {
    font-size: 10px;
    color: #a8b6ac
}

.hero-bottom-line {
    position: absolute;
    bottom: 0;
    inset-inline: 0;
    border-top: 1px solid rgba(223, 187, 126, .17);
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 12px var(--gutter);
    font-size: 10px;
    color: #9eb0a5;
    z-index: 2;
}

/* ==========================================================================
   7. بخش‌ها
   ========================================================================== */
.section {
    padding-block: clamp(60px, 8vw, 100px)
}

.services {
    background: var(--cream)
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 36px;
    margin-bottom: 42px;
}

.section-heading h2,
.about h2,
.approach h2,
.contact-band h2 {
    font-size: clamp(25px, 3.6vw, 43px);
    line-height: 1.5;
    font-weight: 400;
    margin: 0;
}

.section-heading h2 em,
.about h2 em {
    color: #a77a3e
}

.section-heading>p {
    max-width: 350px;
    color: var(--muted);
    font-size: 14px;
    margin: 0 0 8px
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 14px;
}

.service-card {
    min-height: 270px;
    padding: 24px 23px 21px;
    border: 1px solid #d6d4c9;
    background: rgba(255, 255, 255, .25);
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: transform .25s, border-color .25s, background .25s;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #b78a4e;
    background: #fffdf7
}

.service-card.featured {
    background: var(--green);
    color: #f6f1e5;
    border-color: var(--green)
}

.service-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px
}

.service-top img {
    width: 48px;
    height: 48px;
    flex: none
}

.service-index {
    font: 14px var(--serif);
    color: #a17a43
}

.featured .service-index {
    color: var(--gold)
}

.service-card h3 {
    font-size: 20px;
    font-weight: 400;
    margin: 0 0 12px
}

.service-card p {
    font-size: 13px;
    line-height: 2;
    color: #66756d;
    margin: 0 0 20px
}

.service-card.featured p {
    color: #c3d0c8
}

.service-card>a {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid var(--line);
    padding-top: 14px;
    font-size: 12px;
}

.service-card.featured>a {
    border-color: #ffffff26
}

.service-card>a span {
    font-size: 18px;
    color: #ae8247
}

.services-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 11px;
    color: #788179;
}

.arrow-link {
    color: #936b36;
    font-size: 12px;
    display: flex;
    gap: 12px;
    align-items: center
}

.arrow-link span {
    font-size: 18px
}

/* ==========================================================================
   8. درباره ما
   ========================================================================== */
.about {
    background: #eae8de;
    overflow: hidden
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(30px, 6vw, 100px);
}

.about-visual {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-backdrop {
    position: absolute;
    width: 78%;
    height: 80%;
    background: var(--green);
    border-radius: 48% 45% 18% 18%;
    transform: rotate(-7deg);
}

.about-visual::before,
.about-visual::after {
    content: "";
    position: absolute;
    inset: 10% 5%;
    border: 1px solid #b98c4f;
    border-radius: 45% 42% 12% 12%;
    transform: rotate(8deg);
}

.about-visual::after {
    inset: 16% 1%;
    transform: rotate(-13deg);
    border-color: #d2b17b
}

.about-visual>img {
    position: relative;
    z-index: 1;
    width: 94%;
    max-height: 450px;
    object-fit: contain;
    filter: drop-shadow(0 18px 18px #0b241b20);
}

.visual-stamp {
    position: absolute;
    z-index: 2;
    bottom: 3%;
    inset-inline-end: 1%;
    width: 86px;
    height: 86px;
    background: var(--cream);
    border: 1px solid #c7a56e;
    border-radius: 50%;
    display: grid;
    align-content: center;
    text-align: center;
    line-height: 1.3;
    box-shadow: 0 5px 20px #00000012;
}

.visual-stamp span {
    font: 25px var(--serif);
    color: #98703b
}

.visual-stamp small {
    font-size: 10px
}

.about-copy {
    max-width: 570px;
    min-width: 0
}

.about-copy>.eyebrow {
    margin-bottom: 13px
}

.about-lead {
    font-size: 18px;
    color: #26473b;
    margin: 16px 0 8px
}

.about-copy>p:not(.eyebrow):not(.about-lead) {
    font-size: 14px;
    color: #67736b;
    line-height: 2.2
}

.principles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
    gap: 16px;
    margin: 30px 0 32px;
}

.principles>div {
    display: grid;
    align-content: start;
    gap: 5px;
    border-inline-start: 1px solid #d0cfc4;
    padding-inline-start: 14px;
    min-width: 0;
}

.principles>div:first-child {
    border: 0;
    padding-inline-start: 0
}

.principle-mark {
    font: 18px var(--serif);
    color: #ae8043
}

.principles b {
    font-size: 12px;
    font-weight: 400
}

.principles small {
    font-size: 10px;
    color: #7d857e
}

/* ==========================================================================
   9. چرخه استهلاک
   ========================================================================== */
.approach {
    background: var(--green);
    color: #f4f0e5;
    position: relative;
    overflow: hidden;
}

.approach::after {
    content: "";
    position: absolute;
    width: min(550px, 80vw);
    aspect-ratio: 1;
    border: 1px solid #d9ad691b;
    border-radius: 50%;
    inset-inline-end: -170px;
    top: -200px;
    box-shadow: 0 0 0 50px #d9ad6908, 0 0 0 100px #d9ad6906;
    pointer-events: none;
}

.approach .container {
    position: relative;
    z-index: 1
}

.approach-heading {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 46px
}

.approach-heading .eyebrow {
    justify-content: center
}

.approach-heading>p:last-child {
    font-size: 13px;
    color: #aebeb4;
    margin: 12px 0 0
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    gap: 1px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .16);
}

.steps article {
    background: var(--green);
    display: flex;
    gap: 20px;
    padding: 26px 24px;
    min-width: 0;
}

.steps article>span {
    font: 32px var(--serif);
    color: var(--gold);
    line-height: 1.3;
    flex: none
}

.steps h3 {
    font-size: 17px;
    font-weight: 400;
    margin: 0 0 8px
}

.steps p {
    font-size: 12px;
    color: #aebeb4;
    margin: 0;
    line-height: 2
}

/* ==========================================================================
   10. نوار تماس
   ========================================================================== */
.contact-band {
    background: #e6e2d7;
    padding-block: clamp(32px, 5vw, 60px);
    overflow: hidden
}

.contact-inner {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    padding: clamp(26px, 4vw, 42px) clamp(20px, 4vw, 48px);
    background: linear-gradient(110deg, #092a20, #0c3a2c);
    color: #f8f1e5;
    overflow: hidden;
}

.contact-inner>div:first-child {
    position: relative;
    z-index: 1;
    min-width: 0;
    flex: 1 1 320px
}

.contact-band .eyebrow {
    margin-bottom: 8px
}

.contact-band h2 {
    font-size: clamp(22px, 3vw, 31px)
}

.contact-band h2 em {
    color: var(--gold)
}

.contact-band p:not(.eyebrow) {
    font-size: 13px;
    color: #bdc9c0;
    margin: 8px 0 0
}

.contact-decoration {
    position: absolute;
    inset-inline-end: 12%;
    top: -60px;
    font: clamp(160px, 26vw, 340px)/1 var(--serif);
    color: #ffffff05;
    pointer-events: none;
    user-select: none;
}

.contact-inner>.button {
    position: relative;
    z-index: 1;
    flex: none
}

/* ==========================================================================
   11. فوتر
   ========================================================================== */
.site-footer {
    background: #031b14;
    color: #e9e7dc
}

.footer-main {
    display: grid;
    grid-template-columns: 1.4fr .8fr .9fr 1.1fr;
    gap: clamp(24px, 4vw, 55px);
    padding-block: 58px;
}

.footer-brand p {
    font-size: 12px;
    line-height: 2;
    color: #9caca2;
    max-width: 280px;
    margin: 20px 0 0
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0
}

.footer-col h3 {
    font-size: 14px;
    font-weight: 400;
    color: var(--gold-light);
    margin: 0 0 9px
}

.footer-col>a {
    font-size: 12px;
    color: #aeb9b0;
    transition: color .2s
}

.footer-col>a:hover,
.footer-bottom a:hover {
    color: var(--gold-light)
}

.footer-contact p {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    font-size: 12px;
    margin: 0;
    color: #b8c2ba
}

.footer-contact p span:first-child {
    color: #7e9688;
    min-width: 45px
}

.footer-contact-link {
    font-size: 12px;
    color: var(--gold-light);
    margin-top: 9px
}

.footer-bottom {
    border-top: 1px solid #ffffff19
}

.footer-bottom>.container {
    min-height: 55px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 20px;
    padding-block: 12px;
    font-size: 10px;
    color: #80948a;
}

.footer-bottom a {
    color: #c5c8bd
}

/* ---------- اعتبار طراحی ---------- */
.footer-credit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.footer-credit a {
    color: var(--gold-light);
    position: relative;
    transition: color .2s;
}

.footer-credit a::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: -2px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .25s ease;
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
    color: var(--gold);
}

.footer-credit a:hover::after,
.footer-credit a:focus-visible::after {
    transform: scaleX(1);
}

.footer-credit a:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ==========================================================================
   12. دکمه بازگشت به بالا
   ========================================================================== */
.to-top {
    position: fixed;
    inset-inline-end: clamp(16px, 3vw, 28px);
    bottom: clamp(16px, 3vw, 28px);
    z-index: 60;

    width: 48px;
    height: 48px;
    padding: 0;
    display: grid;
    place-items: center;

    border: 1px solid rgba(220, 180, 112, .45);
    border-radius: 50%;
    background: linear-gradient(135deg, #0b392d, #06271f);
    color: var(--gold-light);
    cursor: pointer;

    box-shadow: 0 10px 28px rgba(0, 0, 0, .28);

    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(.92);
    transition:
        opacity .28s ease,
        transform .28s ease,
        visibility 0s linear .28s,
        background .2s,
        border-color .2s;
}

.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition:
        opacity .28s ease,
        transform .28s ease,
        visibility 0s,
        background .2s,
        border-color .2s;
}

.to-top:hover,
.to-top:focus-visible {
    background: linear-gradient(135deg, #164b3b, #0b392d);
    border-color: var(--gold);
    color: #fff;
}

.to-top:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 3px;
}

.to-top:active {
    transform: translateY(0) scale(.96);
}

.to-top svg {
    width: 22px;
    height: 22px;
}

.to-top::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    background: conic-gradient(var(--gold) calc(var(--progress, 0) * 1%), transparent 0);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0);
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0);
    opacity: .9;
    pointer-events: none;
}

.no-js .to-top {
    display: none;
}

/* ==========================================================================
   13. ریسپانسیو
   ========================================================================== */

/* --- تبلت افقی و پایین‌تر: منوی همبرگری فعال --- */
@media (max-width:1024px) {
    :root {
        --header-h: 72px
    }

    .header-inner {
        gap: 12px;
    }

    .brand {
        flex: 1 1 auto;
        min-width: 0;
    }

    .brand img {
        width: 38px;
        height: 44px;
    }

    .brand strong {
        font-size: 15px;
    }

    .brand small {
        font-size: 9px;
    }

    /* دکمه منو: گوشه سمت چپ (در RTL انتهای خط) */
    .menu-toggle {
        display: block;
        order: 3;
        margin-inline-start: 4px;
        margin-inline-end: 0;
    }

    /* نوار ناوبری کشویی */
    .primary-nav {
        display: none;
        position: absolute;
        top: calc(100% + 1px);
        inset-inline: 0;
        margin: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #05251c;
        padding: 8px var(--gutter) 16px;
        border-bottom: 1px solid #c49b5c44;
        box-shadow: 0 18px 28px rgba(0, 0, 0, .25);
        max-height: calc(100dvh - var(--header-h));
        overflow-y: auto;
    }

    .primary-nav.open {
        display: flex;
        animation: navSlide .25s ease;
    }

    @keyframes navSlide {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .primary-nav a {
        padding: 14px 4px;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        font-size: 15px;
        border-radius: 4px;
        transition: background .15s, color .15s;
    }

    .primary-nav a:hover,
    .primary-nav a:focus-visible {
        background: rgba(220, 180, 112, .08);
        color: var(--gold-light);
    }

    .primary-nav a:last-child {
        border-bottom: 0;
    }

    .primary-nav a.active::after {
        display: none;
    }

    .primary-nav a.active {
        color: var(--gold-light);
        background: rgba(220, 180, 112, .1);
    }

    .hero-inner {
        min-height: 0;
        padding-block: 48px 60px
    }

    .hero-art>img {
        max-height: 440px
    }

    .about-visual {
        min-height: 330px
    }

    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px 24px
    }

    .footer-brand {
        grid-column: 1/-1
    }

    .footer-brand p {
        max-width: 420px
    }
}

/* --- تبلت عمودی / موبایل بزرگ --- */
@media (max-width:820px) {
    .hero {
        min-height: 0
    }

    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
        padding-block: 42px 34px;
    }

    .hero-copy {
        order: 1;
        max-width: none
    }

    .hero-art {
        order: 2;
        margin-top: 6px
    }

    .hero-art>img {
        max-height: 340px;
        width: min(100%, 420px)
    }

    .art-caption {
        bottom: 0;
        inset-inline-start: 50%;
        transform: translateX(50%)
    }

    .hero-note {
        margin-top: 30px
    }

    .hero-bottom-line {
        position: static;
        margin-top: 34px;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 6px 16px;
    }

    .section-heading {
        display: block;
        margin-bottom: 30px
    }

    .section-heading>p {
        margin-top: 14px;
        max-width: none
    }

    .about-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px
    }

    .about-copy {
        order: 1;
        max-width: none
    }

    .about-visual {
        order: 2;
        min-height: 290px
    }

    .about-visual>img {
        max-height: 330px;
        width: min(100%, 420px)
    }

    .approach-heading {
        margin-bottom: 30px
    }

    .steps article {
        padding: 22px 18px
    }

    .contact-inner>.button {
        flex: 1 1 auto
    }
}

/* --- موبایل --- */
@media (max-width:560px) {
    body {
        font-size: 15px
    }

    :root {
        --header-h: 68px
    }

    .header-inner {
        gap: 10px;
    }

    .brand img {
        width: 34px;
        height: 40px
    }

    .brand strong {
        font-size: 14px
    }

    .brand small {
        font-size: 9px
    }

    /* دکمه منو: بزرگ‌تر، در گوشه، فاصله مناسب */
    .menu-toggle {
        width: 44px;
        height: 44px;
        padding: 12px 11px;
    }

    .menu-toggle span {
        height: 2px;
    }

    .hero h1 {
        letter-spacing: -.5px
    }

    .hero-description {
        font-size: 14px
    }

    .hero-actions {
        gap: 16px 20px;
        margin-top: 22px
    }

    .hero .button {
        min-height: 46px;
        padding: 11px 18px
    }

    .art-frame {
        inset: 4% 12% 8%
    }

    .section {
        padding-block: 60px
    }

    .service-card {
        min-height: 0;
        padding: 20px
    }

    .service-top {
        margin-bottom: 16px
    }

    .service-card h3 {
        font-size: 18px
    }

    .principles {
        gap: 14px;
        margin: 22px 0 26px
    }

    .principles>div {
        padding-inline-start: 12px
    }

    .principles>div:first-child {
        padding-inline-start: 0
    }

    .principles b {
        font-size: 11.5px
    }

    .principles small {
        font-size: 9.5px
    }

    .steps article {
        padding: 20px 16px;
        gap: 16px
    }

    .steps article>span {
        font-size: 26px
    }

    .contact-inner {
        flex-direction: column;
        align-items: stretch
    }

    .contact-inner>.button {
        width: 100%;
        flex: 0 0 auto;
    }

    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 18px;
        padding-block: 42px
    }

    .footer-brand,
    .footer-contact {
        grid-column: 1/-1
    }

    .footer-contact p {
        flex-direction: column;
        gap: 2px
    }

    .footer-bottom>.container {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px
    }

    .footer-credit {
        white-space: normal
    }

    .to-top {
        width: 44px;
        height: 44px;
        inset-inline-end: 14px;
        bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    }

    .to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* --- موبایل کوچک --- */
@media (max-width:380px) {
    .brand small {
        display: none
    }

    .brand strong {
        font-size: 13px;
    }

    .hero h1 {
        font-size: 31px
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start
    }

    .title-rule {
        width: 220px
    }

    .footer-main {
        grid-template-columns: minmax(0, 1fr)
    }

    .footer-brand,
    .footer-contact {
        grid-column: auto
    }

    .visual-stamp {
        width: 70px;
        height: 70px;
        font-size: .85em
    }
}

/* --- احترام به تنظیمات کاربر --- */
@media (prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .to-top,
    .to-top.is-visible {
        transition: opacity .15s, visibility 0s;
    }

    .to-top {
        transform: none;
    }
}