/*
 * Theme "garden" (باغ آرام): header, hero, 3D booking button and mobile booking bar.
 * Source of every value: design/approved/02-home (desktop.html, mobile.html, spec.md) and
 * design/approved/01-brand/art-direction/spec.md. Colors only through tokens.css.
 * Breakpoints (art direction 4.4): up to 767 mobile, 768-1279 tablet, 1280 and up laptop.
 */

body {
    color: var(--c-text-2);
    font-weight: 400;
    font-stretch: 100%;
}

:focus-visible {
    outline: 3px solid var(--c-action);
    outline-offset: 3px;
}

/* ---------- 3D booking button (spec 19.2: same on every page) ---------- */
.btn {
    gap: 12px;
    min-height: 50px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 650;
}

.btn--primary {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #FFFFFF;
    font-weight: 600;
    background: linear-gradient(180deg, var(--p-btn-1) 0%, var(--p-btn-2) 50%, var(--p-btn-3) 100%);
    box-shadow: inset 0 1px 0 #FFFFFF4D, inset 0 -2px 0 color-mix(in srgb, var(--p-btn-dark) 36%, transparent), 0 1px 2px color-mix(in srgb, var(--p-ink) 22%, transparent), 0 10px 22px -12px color-mix(in srgb, var(--p-action) 72%, transparent), 0 20px 36px -26px color-mix(in srgb, var(--p-ink) 55%, transparent);
    text-shadow: 0 1px 0 color-mix(in srgb, var(--p-btn-dark) 28%, transparent);
    transition: transform .28s var(--ease), box-shadow .3s var(--ease), filter .3s;
}

.btn--primary::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, #FFFFFF2E 0%, #FFFFFF00 50%);
    pointer-events: none;
    z-index: -1;
}

.btn--primary::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -70%;
    width: 45%;
    background: linear-gradient(100deg, #FFFFFF00, #FFFFFF2B, #FFFFFF00);
    transform: skewX(-18deg);
    pointer-events: none;
    transition: left .8s var(--ease);
}

@media (hover: hover) {
    .btn--primary:hover {
        color: #FFFFFF;
        transform: translate3d(0, -2px, 0);
        background: linear-gradient(180deg, var(--p-btn-h1) 0%, var(--p-btn-h2) 50%, var(--p-btn-h3) 100%);
        box-shadow: inset 0 1px 0 #FFFFFF66, inset 0 -2px 0 color-mix(in srgb, var(--p-btn-dark) 36%, transparent), 0 2px 4px color-mix(in srgb, var(--p-ink) 20%, transparent), 0 16px 30px -12px color-mix(in srgb, var(--p-action) 82%, transparent), 0 28px 46px -28px color-mix(in srgb, var(--p-ink) 65%, transparent);
    }

    .btn--primary:hover::after {
        left: 125%;
    }

    .btn:hover .btn__arrow {
        transform: translateX(-4px);
    }
}

.btn--primary:active {
    transform: translate3d(0, 1px, 0) scale(.985);
    background: linear-gradient(180deg, var(--p-btn-3) 0%, #0B6866 55%, #0C7270 100%);
    box-shadow: inset 0 2px 7px #03302F8C, inset 0 -1px 0 #FFFFFF1F, 0 1px 2px color-mix(in srgb, var(--p-ink) 20%, transparent);
    transition-duration: .08s;
}

.btn--primary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 5px var(--c-action), 0 10px 22px -12px color-mix(in srgb, var(--p-action) 72%, transparent);
}

.btn--primary[disabled],
.btn--primary[aria-disabled="true"] {
    transform: none;
    filter: saturate(.6);
    box-shadow: inset 0 1px 0 #FFFFFF33, 0 1px 2px color-mix(in srgb, var(--p-ink) 15%, transparent);
}

.btn--primary[disabled]::after,
.btn--primary[aria-disabled="true"]::after {
    display: none;
}

.btn__arrow {
    display: inline-flex;
    transition: transform .35s var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
    .btn--primary,
    .btn__arrow {
        transition: none;
    }

    .btn--primary::after {
        display: none;
    }
}

/* ---------- Header (art direction 5.1, spec 14.5) ---------- */
.g-header {
    position: relative;
    z-index: 30;
    background: transparent;
}

.g-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: var(--page-max);
    margin-inline: auto;
    padding: 12px 16px;
}

.g-header__brand {
    display: inline-flex;
    flex: none;
    border-radius: 12px;
}

.g-header__brand img {
    display: block;
    width: auto;
    height: 46px;
}

.g-nav,
.g-header__actions {
    display: none;
}

/* Desktop menu: white capsule with sub-menus (design/approved/00-ia-copy desktop.html, .nx) */
.g-nav.nx {
    position: relative;
    align-items: center;
    gap: 6px;
    padding: 6px;
    background: var(--c-paper);
    border-radius: var(--radius-pill);
    box-shadow: 0 8px 24px -16px color-mix(in srgb, var(--p-ink) 35%, transparent);
    font-size: 16px;
    font-weight: 450;
}

.nx .dd {
    position: static;
}

.nx .dd-b,
.nx > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    padding: 9px 16px;
    border: 0;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--c-ink);
    font: inherit;
    font-weight: 450;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .25s var(--ease);
}

.nx .dd-b .chev {
    opacity: .7;
    transition: transform .25s var(--ease);
}

.nx .dd.open .dd-b,
.nx > a[aria-current="page"] {
    background: var(--p-bg);
}

@media (hover: hover) {
    .nx .dd:hover .dd-b,
    .nx > a:hover {
        background: var(--p-bg);
    }
}

.nx .dd.open .dd-b .chev {
    transform: rotate(180deg);
}

.nx .dd-p {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    z-index: 40;
    display: none;
    gap: 22px;
    width: 700px;
    padding: 22px;
    grid-template-columns: repeat(3, 1fr);
    background: var(--c-paper);
    border-radius: 28px;
    box-shadow: 0 30px 70px -30px #0E3A4766, 0 0 0 1px var(--p-sage);
    text-align: right;
}

/* An invisible bridge over the whole gap (14px), a little wider than the panel, so the sub-menu stays open while the
   mouse moves down to it, even on a slanted path (step 58d). */
.nx .dd-p::before {
    content: "";
    position: absolute;
    inset: -22px -24px auto;
    height: 24px;
}

/* the button itself also reaches down over the gap while its panel is open */
.nx .dd.open .dd-b {
    position: relative;
}

.nx .dd.open .dd-b::after {
    content: "";
    position: absolute;
    inset: 100% -8px auto;
    height: 18px;
}

.nx .dd-b:focus-visible,
.nx .dd-p a:focus-visible {
    outline: 3px solid var(--p-action);
    outline-offset: 2px;
}

.nx .dd.open .dd-p {
    display: grid;
}

/* Without JavaScript the mouse still opens a sub-menu (with header.js the delays and clicks decide: .dd-js). */
@media (hover: hover) {
    .nx:not(.dd-js) .dd:hover .dd-p {
        display: grid;
    }
}

.nx .dd-p--c1,
.nx .dd-p--c2 {
    width: auto;
    min-width: 320px;
    grid-template-columns: 1fr;
}

.nx .dd-p--feat {
    width: 600px;
    grid-template-columns: 250px 1fr;
}

.nx .dd-p ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nx .dd-p li a {
    display: block;
    padding: 9px 12px;
    border-radius: 14px;
    color: var(--c-ink);
    font-size: 16px;
    text-decoration: none;
}

.nx .dd-p li a:hover,
.nx .dd-p li a[aria-current="page"] {
    background: var(--p-bg);
    color: var(--c-action);
}

.nx .dd-h {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 2px 12px 6px;
    color: var(--p-muted);
    font-size: 13px;
    font-weight: 650;
}

.nx .dd-h::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #A3532F;
}

.nx .dd-feat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
    border-radius: 20px;
    background: linear-gradient(160deg, var(--p-bg), #DCEBE3);
    color: var(--c-ink);
    text-decoration: none;
}

.nx .dd-tag {
    align-self: flex-start;
    padding: 3px 12px;
    border-radius: var(--radius-pill);
    background: #FFFFFF;
    color: var(--c-action);
    font-size: 12px;
    font-weight: 650;
}

.nx .dd-feat b {
    color: var(--c-ink);
    font-size: 26px;
    font-weight: 750;
}

.nx .dd-feat span:not(.dd-tag) {
    color: var(--p-muted);
    font-size: 15px;
    line-height: 1.7;
}

.nx .dd-feat em {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: var(--c-action);
    font-size: 15px;
    font-style: normal;
    font-weight: 650;
}

.nx .dd-foot {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 12px 2px;
    border-top: 1px solid var(--p-sage);
    color: var(--c-action);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
    .nx .dd-b .chev {
        transition: none;
    }
}

.g-header__actions {
    align-items: center;
    gap: 18px;
}

/* Mobile and tablet menu button and full-screen menu (art direction 5.1) */
.g-menu > summary {
    list-style: none;
}

.g-menu > summary::-webkit-details-marker {
    display: none;
}

.g-menu__btn {
    position: relative;
    z-index: 2;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px 0 14px;
    border-radius: var(--radius-pill);
    background: var(--c-paper);
    color: var(--c-ink);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 18px -10px #0E3A4766;
}

.g-menu__close,
.g-menu[open] .g-menu__open {
    display: none;
}

.g-menu[open] .g-menu__close {
    display: inline;
}

.g-menu[open] > .g-menu__btn {
    background: var(--p-bg);
    box-shadow: none;
}

/* Full-screen menu (00-ia-copy mobile.html, .drawer): 62px rows, closed accordions, booking below. */
.g-menu__panel {
    position: fixed;
    inset: 0;
    z-index: 1;
    overflow-y: auto;
    padding: 12px 16px 40px;
    background: var(--c-paper);
}

.g-menu[open] > summary {
    position: fixed;
    top: 12px;
    left: 16px;
}

.dr-top {
    display: flex;
    align-items: center;
    min-height: 48px;
    margin-bottom: 8px;
}

.dr-top img {
    display: block;
    width: auto;
    height: 46px;
}

.dr-list,
.dr-sub ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dr-list > li {
    border-bottom: 1px solid var(--p-sage);
}

.dr-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 62px;
    padding: 0 4px;
    color: var(--c-ink);
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    list-style: none;
}

.dr-row::-webkit-details-marker {
    display: none;
}

.dr-acc .chev {
    opacity: .7;
    transition: transform .25s var(--ease);
}

.dr-acc[open] .chev {
    transform: rotate(180deg);
}

.dr-sub {
    padding: 0 4px 14px;
}

.dr-sub ul {
    margin-bottom: 6px;
}

.dr-sub li a {
    display: block;
    padding: 11px 12px;
    border-radius: 12px;
    color: var(--c-ink);
    font-size: 17px;
    text-decoration: none;
}

.dr-sub a[aria-current="page"],
.dr-row[aria-current="page"] {
    color: var(--c-action);
}

.dr-sub .dd-h {
    margin: 10px 12px 2px;
    color: var(--p-muted);
    font-size: 13px;
    font-weight: 650;
}

.dr-feat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0 0 6px;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--p-bg);
    text-decoration: none;
}

.dr-feat span {
    color: var(--c-action);
    font-size: 12px;
    font-weight: 650;
}

.dr-feat b {
    color: var(--c-ink);
    font-size: 20px;
    font-weight: 750;
}

.dr-all {
    display: block;
    padding: 8px 12px;
    color: var(--c-action);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}

.dr-bottom {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.dr-bottom .btn {
    justify-content: center;
    min-height: 56px;
    font-size: 17px;
}

.dr-bottom .dr-call {
    background: var(--p-bg);
    color: var(--c-ink);
}

.dr-bottom p {
    margin: 0;
    color: var(--p-muted);
    font-size: 14px;
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    .dr-acc .chev {
        transition: none;
    }
}

html.g-menu-open {
    overflow: hidden;
}

/* ---------- Fixed booking bar, mobile and tablet up to 1023px (art direction 5.4) ---------- */
.g-bookbar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 25;
    display: grid;
    padding: 8px;
    background: #FFFFFFEE;
    border-radius: var(--radius-pill);
    box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--p-ink) 40%, transparent);
}

.g-bookbar__btn {
    width: 100%;
    min-height: 48px;
    gap: 10px;
    font-size: 17px;
}

body:has(.g-bookbar) {
    padding-bottom: 88px;
}


/* Owner bug fix (21 Aban 1405): while a booking button of the page itself is on screen (the hero
   button, the end band...), the bar steps aside so two booking buttons never sit on top of each
   other. header.js sets .is-hidden; without it the bar simply stays, as before. */
.g-bookbar {
    transition: transform .25s ease, opacity .25s ease, visibility 0s linear 0s;
}

.g-bookbar.is-hidden {
    visibility: hidden;
    opacity: 0;
    transform: translateY(calc(100% + 20px));
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease, visibility 0s linear .25s;
}

/* The full-screen menu has its own «دریافت نوبت» button (00-ia-copy spec 1), so the bar steps aside. */
html.g-menu-open .g-bookbar {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .g-bookbar,
    .g-bookbar.is-hidden {
        transition: none;
    }
}

/* ---------- Hero (spec 13.1, 14.1, 16.1) ---------- */
.g-hero {
    position: relative;
    isolation: isolate;
    padding: 6px 16px 0;
}

.g-hero__bg {
    position: absolute;
    z-index: -1;
    left: 0;
    right: 0;
    top: -80px;
    bottom: -30px;
    overflow: hidden;
    pointer-events: none;
}

.g-hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 42% 40%;
    /* Owner, 21 Aban 1405: the interior must be clearly recognisable. Sharp photo, light blur from
       the panel (default 0.4px, about a quarter of the earlier baked blur); slight scale hides soft edges. */
    filter: blur(var(--hero-bg-blur, .4px));
    transform: scale(1.02);
}

.g-hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, #FFFFFFD9 0%, #FFFFFFE6 30%, #FFFFFFE6 70%, #FFFFFF99 100%);
}

.g-hero__inner {
    max-width: var(--page-max);
    margin-inline: auto;
}

.g-hero__eyebrow {
    display: block;
    margin: 6px 0 14px;
    font-size: 14px;
    line-height: 1.9;
    color: var(--c-muted);
}

.g-hero__eyebrow i {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-left: 8px;
    border-radius: 50%;
    background: var(--c-brick);
    vertical-align: middle;
}

.g-hero__loc {
    font-weight: 650;
    color: var(--c-ink);
    margin-left: 8px;
    padding-left: 10px;
    border-left: 1px solid var(--c-line-2);
    white-space: nowrap;
}

/* Stepped headline (design/approved/00-ia-copy spec 6, option 3): weight, size and colour rise line by
   line to «بدون جراحی.»; no underline, no band. Same three lines on every screen. */
.g-hero__title {
    margin: 0 0 22px;
    font-stretch: 100%;
    letter-spacing: 0;
    color: var(--c-ink);
    text-wrap: initial;
}

.g-hero__title > span,
.g-hero__title > b {
    display: block;
}

.g-hero__l1 {
    font-size: 28px;
    font-weight: 400;
    line-height: 1.38;
    color: var(--p-muted);
}

.g-hero__l2 {
    font-size: 33px;
    font-weight: 580;
    line-height: 1.36;
    color: var(--p-ink);
}

.g-hero__title b {
    font-size: 45px;
    font-weight: 900;
    font-stretch: 104%;
    line-height: 1.3;
    color: var(--c-action);
}

.g-hero__value p {
    margin: 0 0 12px;
    max-width: 540px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.75;
    color: var(--c-ink);
    text-wrap: pretty;
}

.g-hero__value b {
    font-weight: 700;
    color: var(--c-action);
}

.g-hero__lead {
    max-width: 540px;
    margin: 0 0 16px;
    font-size: 17px;
    line-height: 1.85;
    color: var(--c-text-2);
}

.g-hero__need {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 24px;
    font-size: 14px;
    color: var(--c-muted);
}

.g-need {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
    color: var(--c-brick);
    background: var(--c-brick-wash);
    border-radius: var(--radius-pill);
    padding: 3px 12px;
    white-space: nowrap;
}

.g-hero__doc {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 540px;
    margin-bottom: 28px;
    padding: 12px 14px;
    background: var(--c-paper);
    border-radius: var(--radius-md);
    color: var(--c-ink);
    text-decoration: none;
}

.g-hero__doc-icon {
    flex: none;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--c-sage);
}

.g-hero__doc-icon img {
    width: auto;
    height: 36px;
}

.g-hero__doc b {
    display: block;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.6;
}

.g-hero__doc b + span {
    display: block;
    font-size: 14px;
    line-height: 1.8;
    color: var(--c-muted);
}

.g-hero__ctas {
    display: flex;
    gap: 12px;
}

.g-hero__ctas .btn {
    width: 100%;
}

.g-hero__next {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 0;
    font-size: 15px;
    line-height: 1.8;
    color: var(--c-text-2);
}

.g-hero__dot {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-leaf);
}

.g-hero__photo {
    margin: 22px 0 0;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 60px -34px color-mix(in srgb, var(--p-ink) 45%, transparent), 0 0 0 6px #FFFFFF99;
}

.g-hero__photo-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Tablet: 768-1279 (art direction 4.4) ---------- */
@media (min-width: 768px) {
    .g-header__inner {
        padding: 16px 32px;
    }

    .g-header__brand img {
        height: 54px;  /* owner 21 Aban: larger logo on tablet too (was 46) */
    }

    .g-menu[open] > summary {
        top: 16px;
        left: 32px;
    }

    .g-hero {
        padding: 16px 32px 0;
    }

    .g-hero__ctas .btn {
        width: auto;
    }

    .g-hero__photo {
        max-width: 560px;
        margin: 32px auto 0;
    }
}

/* ---------- Laptop: 1024 and up the bottom bar goes away ---------- */
@media (min-width: 1024px) {
    .g-bookbar {
        display: none;
    }

    body:has(.g-bookbar) {
        padding-bottom: 0;
    }
}

/* ---------- Laptop: 1280 and up (desktop.html) ---------- */
@media (min-width: 1280px) {
    /* Step 58d: the header box keeps its full height (126px) while it shrinks, so the page under it never moves
       and the scroll position cannot bounce across the threshold (the old jitter near the top). Only the white
       background (::before), the padding and the logo change; the empty lower part lets clicks through. */
    .g-header {
        position: sticky;
        top: 0;
        height: var(--g-hdr-full, 126px);
        pointer-events: none;
    }

    .g-header__inner {
        position: relative;
        pointer-events: auto;
    }

    .g-header::before {
        content: "";
        position: absolute;
        inset: 0 0 auto;
        z-index: -1;
        height: 100%;
        pointer-events: none;
        background: transparent;
        transition: height .35s var(--ease), background-color .35s, box-shadow .35s var(--ease);
    }

    .g-header__inner {
        padding: 24px var(--page-pad);  /* owner 21 Aban: a little taller */
        transition: padding .35s var(--ease);
    }

    .g-header__brand img {
        height: 78px;  /* owner 21 Aban: logo clearly larger and readable (was 60) */
        transition: height .35s var(--ease);
    }

    .g-nav,
    .g-header__actions {
        display: flex;
    }

    .g-menu {
        display: none;
    }

    .g-header.is-scrolled::before {
        height: var(--g-hdr-small, 80px);
        background: #FFFFFFF2;
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        box-shadow: 0 10px 30px -22px color-mix(in srgb, var(--p-ink) 50%, transparent);
    }

    .g-header.is-scrolled .g-header__inner {
        padding-top: 12px;
        padding-bottom: 10px;
    }

    .g-header.is-scrolled .g-header__brand img {
        height: 58px;
    }

    .g-hero {
        padding: 40px var(--page-pad) 0;
    }

    .g-hero__bg {
        top: -128px;  /* the background continues under the taller header */
        bottom: -60px;
    }

    .g-hero__bg-img {
        object-position: center 42%;
    }

    .g-hero__bg::after {
        background:
            linear-gradient(to left, #FFFFFFF0 0%, #FFFFFFE8 30%, #FFFFFFC2 42%, #FFFFFF33 52%, #FFFFFF00 62%),
            linear-gradient(to bottom, #FFFFFF00 76%, #FFFFFF 100%);
    }

    .g-hero__inner {
        display: grid;
        grid-template-columns: 1fr 1.05fr;
        gap: 56px;
        align-items: start;
    }

    .g-hero__eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        margin: 30px 0 22px;
        font-size: 15px;
        line-height: 1.8;
    }

    .g-hero__eyebrow i {
        margin-left: 0;
    }

    .g-hero__loc {
        margin-left: 0;
        padding-left: 12px;
    }

    .g-hero__title {
        margin-bottom: 26px;
    }

    .g-hero__l1 {
        font-size: 46px;
    }

    .g-hero__l2 {
        font-size: 54px;
    }

    .g-hero__title b {
        font-size: 72px;
    }

    .g-hero__value p {
        font-size: 21px;
    }

    .g-hero__lead {
        font-size: 18px;
    }

    .g-hero__doc {
        padding: 16px 22px;
        border-radius: 24px;
    }

    .g-hero__stage {
        position: relative;
        height: 760px;
    }

    .g-hero__photo {
        position: absolute;
        inset: 0 0 0 120px;
        max-width: none;
        margin: 0;
        aspect-ratio: auto;
        border-radius: var(--radius-xl);
        box-shadow: 0 44px 90px -40px color-mix(in srgb, var(--p-ink) 60%, transparent), 0 0 0 8px #FFFFFFB3;
    }
}

@media (min-width: 1280px) and (prefers-reduced-motion: reduce) {
    .g-header,
    .g-header__inner,
    .g-header__brand img {
        transition: none;
    }
}

/* Narrowest supported screen: 320 (art direction 4.4) */
@media (max-width: 359px) {
    .g-header__inner,
    .g-hero {
        padding-inline: 12px;
    }

    .g-hero__l1 {
        font-size: 25px;
    }

    .g-hero__l2 {
        font-size: 30px;
    }

    .g-hero__title b {
        font-size: 40px;
    }
}

/* ---------- Islimi pattern on page sections (approved 02-home spec 14.3 and 15.7) ----------
 * Owner, 1405/08/19: every section below the hero, on the home page and on other pages, carries the
 * fine minimal islimi pattern. Same tile, 10% strength and soft centre mask as the approved home design.
 * Tinted sections keep the approved mint gradient; white sections stay white under the pattern.
 */
.section {
    position: relative;
    isolation: isolate;
}

.section--alt {
    background: linear-gradient(170deg, var(--p-bg-hi) 0%, var(--p-bg) 46%, var(--p-bg-lo) 100%);
}

.section {
    --isl: var(--site-isl, .10);
}

/* Step 58: the tile, its colour and strength come from «ظاهر سایت ← اسلیمی» (html class isl-a/b/c and --site-isl)
   and each home box can choose its own (tavana/css/islimi.css). The colour follows the palette. */
.section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: var(--isl-c, var(--p-action));
    opacity: var(--isl-o, var(--isl));
    -webkit-mask-image: var(--isl-tile), radial-gradient(130% 100% at 50% 45%, #0000008C 20%, #000 78%);
    mask-image: var(--isl-tile), radial-gradient(130% 100% at 50% 45%, #0000008C 20%, #000 78%);
    -webkit-mask-size: var(--isl-size, 150px) var(--isl-size, 150px), 100% 100%;
    mask-size: var(--isl-size, 150px) var(--isl-size, 150px), 100% 100%;
    -webkit-mask-repeat: repeat, no-repeat;
    mask-repeat: repeat, no-repeat;
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}

html[data-islimi="none"] .section:not(.isl)::before,
.isl-off::before {
    display: none;
}

/* Many pages use ".container section" (a narrow wrapper); give the pattern the full page width.
   body clips the extra width (overflow-x: clip keeps the sticky header working). */
body {
    overflow-x: clip;
}

.container.section::before {
    left: 50%;
    right: auto;
    width: 100vw;
    transform: translateX(-50%);
}

@media (max-width: 767px) {
    .section {
        --isl-size: 110px;
        --isl-o: calc(var(--isl) * .85);
    }
}

/* ---------- Footer (approved 02-home spec 3.7; same on 03-pain-region) ---------- */
.g-foot{background:var(--p-sage);border-radius:48px 48px 0 0;padding:80px max(64px,calc((100% - 1312px) / 2)) 40px;margin-top:0;color:var(--c-text-2)}
.g-foot__top{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr 1.1fr;gap:40px;align-items:start}
.g-foot__brand img{display:block;height:64px;width:auto}
.g-foot__brand p{font-size:15px;line-height:1.85;color:var(--p-text-2);margin:16px 0 0;max-width:300px}
.g-foot__title{font-size:15px;font-weight:650;color:var(--p-ink);margin:6px 0 14px;line-height:1.6}
.g-foot__title::after{content:none}
.g-foot ul{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.g-foot ul a,.g-foot ul span{display:inline-flex;align-items:center;min-height:36px;font-size:15px;color:var(--p-text-2);text-decoration:none}
@media (hover:hover){.g-foot ul a:hover{color:#A3532F}}
.g-foot__soc li{display:flex;align-items:center;gap:10px}
.g-foot__text{font-size:15px;line-height:1.85;margin:0}
.g-need--s{font-size:12px;padding:1px 10px}
.g-licbox{border:1.5px dashed #6B807C;border-radius:20px;padding:18px;display:flex;flex-direction:column;gap:8px;font-size:14px;line-height:1.8;color:var(--p-text-2);min-height:132px;justify-content:center;align-items:center;text-align:center}
.g-licbox b{font-size:15px;font-weight:650;color:var(--p-ink)}
.g-foot__bot{display:flex;justify-content:space-between;gap:20px;margin-top:48px;padding-top:22px;border-top:1px solid #B9CEC2;font-size:14px;color:var(--p-text-2)}
/* Tablet: three columns (02-home spec 1, tablet); brand and licence box full width. */
@media (max-width:1279px){
  .g-foot__top{grid-template-columns:repeat(3,1fr);gap:32px 24px}
  .g-foot__brand,.g-foot__lic{grid-column:1 / -1}
  .g-foot{padding:64px 32px 32px}
}
@media (max-width:767px){
  .g-foot{padding:56px 16px 28px;border-radius:32px 32px 0 0}
  .g-foot__top{grid-template-columns:1fr 1fr;gap:28px 20px}
  .g-foot__brand p{font-size:17px;max-width:none}
  .g-licbox{font-size:17px}
  .g-foot__bot{flex-direction:column;gap:6px;margin-top:32px}
}

/* ---------- «ظاهر سایت ← سربرگ و پانویس» (step 58, 07-panel 4.8) ---------- */
@media (min-width: 1280px) {
    .g-header.g-header--static { position: relative; }
}
.g-header__symbol { width: 56px; height: 56px; display: block; }
.g-header__phone { color: var(--p-ink); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.g-header__phone:hover { color: var(--p-action); }
@media (max-width: 1023px) { .g-header__phone { display: none; } }
/* footer corner islimi: the pattern only in one corner, fading out (01-design-system 5.2) */
.g-foot.g-foot--isl { --isl: .10; --isl-c: var(--p-deep); }
.g-foot.g-foot--isl::before {
    -webkit-mask-image: var(--isl-tile), radial-gradient(70% 90% at 0% 0%, #000 0%, #0000 70%);
    mask-image: var(--isl-tile), radial-gradient(70% 90% at 0% 0%, #000 0%, #0000 70%);
    border-radius: inherit;
}

/* step 58d: no size animation for people who ask for less motion */
@media (prefers-reduced-motion: reduce) {
    .g-header::before,
    .g-header__inner,
    .g-header__brand img {
        transition: none !important;
    }
}
