/* Homepage «رسالتنا · رؤيتنا · قيمنا» band (inc/vmv.php). */
.sanam-vmv {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(64px, 9vw, 120px) 0 calc(clamp(64px, 9vw, 120px) + 56px);
    /* Brand patterns: scattered capsules (upright or leaning up-right) in the top-left corner, the dash strip along the bottom. */
    background:
        url("vmv-capsules.svg?v=5") left -30px top -20px / clamp(220px, 28vw, 420px) auto no-repeat,
        url("vmv-strip.svg?v=2") left bottom 22px / auto 52px repeat-x,
        #662627; /* one solid maroon, same as «قصتنا» */
    color: #fff;
    font-family: var(--sanam-font-text);
}

/* English (left to right): the capsules move to the top-right corner, mirrored (leaning up-left). */
html:not([dir="rtl"]) section.sanam-vmv {
    background:
        url("vmv-capsules-ltr.svg?v=1") right -30px top -20px / clamp(220px, 28vw, 420px) auto no-repeat,
        url("vmv-strip.svg?v=2") left bottom 22px / auto 52px repeat-x,
        #662627;
}
.sanam-vmv::before { /* soft gold glow: off, the band is one solid colour */
    display: none;
    content: "";
    position: absolute;
    inset: auto -10% -40% auto;
    z-index: -1;
    width: 55%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgb(228 170 88 / .18), transparent);
}
.sanam-vmv__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 88px);
    align-items: start;
    width: min(1080px, calc(100% - 48px));
    margin-inline: auto;
}
.sanam-vmv__eyebrow,
body section.sanam-vmv h3 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #e4aa58;
    font: 400 clamp(28px, calc(2vw + 16px), 38px)/1.5 var(--sanam-font-accent) !important; /* phone 28 → tablet ~32 → desktop 38 */
}
.sanam-vmv__eyebrow::before,
body section.sanam-vmv h3::before { content: ""; width: 34px; height: 2px; background: #e4aa58; }
.sanam-vmv__title { /* same look as the mission text under it */
    margin: 16px 0 0;
    color: rgb(255 248 239 / .85);
    font: 400 clamp(16px, 1.4vw, 18px)/2.05 var(--sanam-font-text);
}
.sanam-vmv__title em { font-style: normal; color: inherit; }
.sanam-vmv__title + .sanam-vmv__mission { margin-top: 0; }
.sanam-vmv__mission {
    margin: 16px 0 0;
    color: rgb(255 248 239 / .85);
    font-size: clamp(16px, 1.4vw, 18px);
    line-height: 2.05;
}
.sanam-vmv__vision {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid rgb(228 170 88 / .25);
}
body section.sanam-vmv h3 { margin: 0 0 10px; letter-spacing: 0; }
.sanam-vmv__vision p {
    margin: 0;
    color: rgb(255 248 239 / .85);
    font-size: clamp(16px, 1.4vw, 18px);
    line-height: 2.05;
}
.sanam-vmv__values ol { margin: 0; padding: 0; list-style: none; counter-reset: sanam-vmv; }
.sanam-vmv__values li {
    counter-increment: sanam-vmv;
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 4px 14px;
    padding: 20px 0;
    border-bottom: 1px solid rgb(255 248 239 / .1);
}
.sanam-vmv__values li::before {
    content: counter(sanam-vmv, decimal-leading-zero);
    grid-row: span 2;
    color: #e4aa58;
    font: 600 32px/1 var(--sanam-font-heading);
    opacity: .9;
}
.sanam-vmv__values b { color: #fff; font: 600 20px/1.4 var(--sanam-font-heading); }
.sanam-vmv__values span { color: rgb(255 248 239 / .75); font-size: 15.5px; line-height: 1.85; }

/* Desktop homepage: keep clear of the section timeline on the start edge. */
@media (min-width: 1025px) {
    body.home .sanam-vmv__inner { width: min(1080px, calc(100% - 160px)); }
}
@media (max-width: 860px) {
    .sanam-vmv__inner { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .sanam-vmv { background-size: 200px auto, auto 40px; background-position: left -24px top -16px, left bottom 16px; }
    html:not([dir="rtl"]) section.sanam-vmv { background-size: 200px auto, auto 40px; background-position: right -24px top -16px, left bottom 16px; }
}


/* ===== Sand band (after «قصتنا» became a rounded card): light sand background, maroon text, darker gold,
   and the band starts under the card's rounded bottom corners. ===== */
body .sanam-vmv,
html:not([dir="rtl"]) body section.sanam-vmv {
    background-color: #e3caab;
    background-image: url("vmv-capsules-sand.svg?v=1"), url("vmv-strip-sand.svg?v=1");
    color: #291f1e;
}
html:not([dir="rtl"]) body section.sanam-vmv { background-image: url("vmv-capsules-ltr-sand.svg?v=1"), url("vmv-strip-sand.svg?v=1"); }
body.home .sanam-vmv {
    margin-top: -56px;
    padding-top: calc(clamp(64px, 9vw, 120px) + 56px);
    background-position: left -30px top 46px, left bottom 22px;
}
html:not([dir="rtl"]) body.home section.sanam-vmv { background-position: right -30px top 46px, left bottom 22px; }
.sanam-vmv__eyebrow,
body section.sanam-vmv h3 { color: #662627; }
.sanam-vmv__eyebrow::before,
body section.sanam-vmv h3::before { background: #c4893a; }
.sanam-vmv__title,
.sanam-vmv__mission,
.sanam-vmv__vision p { color: rgb(41 31 30 / .85); }
.sanam-vmv__vision { border-top-color: rgb(102 38 39 / .2); }
.sanam-vmv__values li { border-bottom-color: rgb(102 38 39 / .15); }
.sanam-vmv__values li::before { color: #b5792b; opacity: 1; }
.sanam-vmv__values b { color: #662627; }
.sanam-vmv__values span { color: rgb(41 31 30 / .75); }
@media (max-width: 767px) {
    body.home .sanam-vmv { margin-top: -30px; padding-top: calc(clamp(64px, 9vw, 120px) + 30px); background-position: left -24px top 22px, left bottom 16px; }
    html:not([dir="rtl"]) body.home section.sanam-vmv { background-position: right -24px top 22px, left bottom 16px; }
}

/* Desktop: bigger text and a wider band, so the section is filled. */
@media (min-width: 1025px) {
    body.home .sanam-vmv__inner { width: min(1360px, calc(100% - 200px)); gap: clamp(48px, 6vw, 120px); }
    .sanam-vmv__title,
    .sanam-vmv__mission,
    .sanam-vmv__vision p { font-size: clamp(19px, 1.45vw, 26px); line-height: 1.95; }
    .sanam-vmv__vision { margin-top: 38px; padding-top: 30px; }
    .sanam-vmv__values li { grid-template-columns: 76px 1fr; gap: 6px 18px; padding: 26px 0; }
    .sanam-vmv__values li::before { font-size: clamp(36px, 2.8vw, 48px); }
    .sanam-vmv__values b { font-size: clamp(22px, 1.7vw, 30px); }
    .sanam-vmv__values span { font-size: clamp(17px, 1.25vw, 22px); line-height: 1.8; }
}

/* Motion: the gold lines before the headings draw in, the line under each value runs across and its
   number lights up, as the band scrolls into view (browsers with scroll-driven animations). */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .sanam-vmv__eyebrow::before,
        body section.sanam-vmv h3::before {
            transform-origin: right center;
            animation: sanam-vmv-line linear both;
            animation-timeline: view();
            animation-range: entry 20% cover 35%;
        }
        html:not([dir="rtl"]) .sanam-vmv__eyebrow::before,
        html:not([dir="rtl"]) body section.sanam-vmv h3::before { transform-origin: left center; }
        .sanam-vmv__values li { position: relative; border-bottom-color: transparent; }
        .sanam-vmv__values li::after {
            content: "";
            position: absolute;
            inset: auto 0 -1px;
            height: 1px;
            background: rgb(102 38 39 / .25);
            transform-origin: right center;
            animation: sanam-vmv-line linear both;
            animation-timeline: view();
            animation-range: entry 30% cover 45%;
        }
        html:not([dir="rtl"]) .sanam-vmv__values li::after { transform-origin: left center; }
        .sanam-vmv__values li::before {
            animation: sanam-vmv-num linear both;
            animation-timeline: view();
            animation-range: entry 25% cover 40%;
        }
    }
}
@keyframes sanam-vmv-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes sanam-vmv-num { from { opacity: .15; transform: translateY(10px) scale(.85); } to { opacity: 1; transform: none; } }

/* Bottom pattern: the two-row band (assets/vmv-band-sand.svg, traced from the brand artwork), in place
   of the one-row dash strip. Taller so the dashes keep their size. */
body .sanam-vmv,
html:not([dir="rtl"]) body section.sanam-vmv { background-size: clamp(220px, 28vw, 420px) auto, auto clamp(64px, 6vw, 92px); }
body .sanam-vmv { background-image: url("vmv-capsules-sand.svg?v=1"), url("vmv-band-sand.svg?v=1"); }
html:not([dir="rtl"]) body section.sanam-vmv { background-image: url("vmv-capsules-ltr-sand.svg?v=1"), url("vmv-band-sand.svg?v=1"); }
body.home .sanam-vmv { padding-bottom: calc(clamp(64px, 9vw, 120px) + clamp(76px, 6vw, 96px)); }
@media (max-width: 767px) {
    body .sanam-vmv,
    html:not([dir="rtl"]) body section.sanam-vmv { background-size: 200px auto, auto 58px; }
}

/* Top pattern: the same two-row band along the top (in place of the capsules in the corner), just under
   «قصتنا»'s rounded corners; the content moves down to make room for it. */
body .sanam-vmv,
html:not([dir="rtl"]) body section.sanam-vmv {
    background-image: url("vmv-band-sand.svg?v=1"), url("vmv-band-sand.svg?v=1");
    background-size: auto clamp(64px, 6vw, 92px), auto clamp(64px, 6vw, 92px);
    background-repeat: repeat-x, repeat-x;
    background-position: left top 22px, left bottom 22px;
}
body.home .sanam-vmv,
html:not([dir="rtl"]) body.home section.sanam-vmv {
    padding-top: calc(clamp(64px, 9vw, 120px) + 56px + clamp(56px, 5vw, 80px));
    background-position: left top 74px, left bottom 22px;
}
@media (max-width: 767px) {
    body .sanam-vmv,
    html:not([dir="rtl"]) body section.sanam-vmv { background-size: auto 58px, auto 58px; background-position: left top 16px, left bottom 16px; }
    body.home .sanam-vmv,
    html:not([dir="rtl"]) body.home section.sanam-vmv {
        padding-top: calc(clamp(64px, 9vw, 120px) + 30px + 52px);
        background-position: left top 42px, left bottom 16px;
    }
}
