/* ================================================================
   CAPONDEL – Story Page (Mobile)
   @version 1.2  |  شاشات ≤ 768px فقط
   ✅ Supports <picture> for hero (mobile-specific image)
   ✅ Tuned object-position for portrait hero
   ================================================================ */

/* ============================================================
   REUSABLE
   ============================================================ */
.sh-eyebrow-line {
    display: inline-block;
    width: 28px;
    height: 1px;
    background: rgba(238, 232, 223, 0.35);
    vertical-align: middle;
    margin-right: 10px;
}
.sh-eyebrow-line.gold {
    background: linear-gradient(90deg, transparent, #a87845, transparent);
}

.sh-hero .gold-text,
.sh-narrative .gold-text,
.sh-process .gold-text,
.sh-cta .gold-text {
    color: #c49a68;
}

/* ============================================================
   1. HERO
   ============================================================ */
.sh-hero {
    position: relative;
    min-height: 100svh;
    height: 100svh;
    width: 100%;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #0d0d0b;
}

.sh-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* ✅ دعم <picture> — يتصرف كـ container ممتد */
.sh-hero-bg picture {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

.sh-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%; /* ✅ يركز على الـ 35% العلويين — مناسب لصورة طولية */
    animation: shHeroKenBurnsMobile 32s ease-in-out infinite;
    transform-origin: center center;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

@keyframes shHeroKenBurnsMobile {
    0%, 100% { transform: scale(1.03) translate3d(0, 0, 0); }
    50%      { transform: scale(1.10) translate3d(-1%, -0.5%, 0); }
}

.sh-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg,
            rgba(13, 13, 11, 0.55) 0%,
            rgba(13, 13, 11, 0.25) 30%,
            rgba(13, 13, 11, 0.65) 65%,
            rgba(13, 13, 11, 0.95) 100%);
    pointer-events: none;
}

.sh-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    padding: 5rem 1.5rem 4rem;
    margin: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.sh-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #c49a68;
    margin-bottom: 1.25rem;
}

/* ---------- EDITORIAL TITLE ---------- */
.sh-hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.15rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.15;
    color: #eee8df;
    letter-spacing: -0.005em;
    margin: 0 0 1.5rem;
    max-width: 100%;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.9);
}

.sh-hero-title .gold-text {
    display: inline;
    font-style: italic;
    font-weight: 400;
    color: #c49a68;
}

/* ---------- EDITORIAL SUBLINE ---------- */
.sh-hero-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(238, 232, 223, 0.7);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    max-width: 100%;
    margin: 0;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8);
}

/* ============================================================
   2. NARRATIVE (Stacked)
   ============================================================ */
.sh-narrative {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    background: #0d0d0b;
    min-height: auto;
}

.sh-narrative-image {
    position: relative;
    overflow: hidden;
    height: 320px;
    min-height: 320px;
}

.sh-narrative-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.sh-narrative-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        transparent 60%,
        rgba(13, 13, 11, 0.5) 100%);
    pointer-events: none;
}

.sh-narrative-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 1.5rem 3.5rem;
    max-width: 100%;
    box-sizing: border-box;
}

.sh-narrative-eyebrow {
    display: inline-flex;
    align-items: center;
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #c49a68;
    margin-bottom: 1rem;
}

.sh-narrative-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.85rem;
    font-weight: 500;
    line-height: 1.15;
    color: #eee8df;
    letter-spacing: -0.01em;
    margin: 0 0 1.25rem;
}

.sh-narrative-title .gold-text {
    font-style: italic;
    font-weight: 400;
}

.sh-narrative-p {
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 1.75;
    color: rgba(238, 232, 223, 0.72);
    margin: 0 0 1.1rem;
    letter-spacing: 0.005em;
}

.sh-signature {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
}

.sh-signature-name {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.6rem;
    font-weight: 400;
    color: #c49a68;
    letter-spacing: 0.02em;
    text-shadow: 0 0 18px rgba(196, 154, 104, 0.28);
}

.sh-signature-line {
    display: block;
    width: 70px;
    height: 1px;
    background: linear-gradient(90deg, #a87845, transparent);
}

/* ============================================================
   3. GALLERY (Simplified Mobile Grid)
   ============================================================ */
.sh-gallery {
    background: #0d0d0b;
    padding: 3rem 1.25rem 3.5rem;
    border-top: 1px solid rgba(168, 120, 69, 0.15);
    border-bottom: 1px solid rgba(168, 120, 69, 0.15);
}

.sh-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 160px);
    gap: 0.6rem;
    max-width: 100%;
    margin: 0 auto;
}

.sh-gallery-item {
    position: relative;
    overflow: hidden;
    background: #151412;
    border: 1px solid rgba(168, 120, 69, 0.18);
    transition: border-color 0.4s ease;
}

.sh-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.sh-gallery-item:active img {
    transform: scale(1.04);
}

.sh-gallery-item:active {
    border-color: rgba(168, 120, 69, 0.55);
}

.sh-gi-1 { grid-column: span 2; grid-row: span 2; }
.sh-gi-2 { grid-column: span 1; grid-row: span 1; }
.sh-gi-3 { grid-column: span 1; grid-row: span 1; }
.sh-gi-4 { grid-column: span 1; grid-row: span 1; }
.sh-gi-5 { grid-column: span 1; grid-row: span 1; }

/* ============================================================
   4. FEATURES (2 Columns Grid)
   ============================================================ */
.sh-features {
    background: #0a0a09;
    padding: 3rem 1.25rem;
    border-top: 1px solid rgba(168, 120, 69, 0.15);
}

.sh-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 1.25rem;
    max-width: 100%;
    margin: 0 auto;
}

.sh-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 0.35rem;
    position: relative;
}

.sh-feature:not(:last-child)::after {
    display: none;
}

.sh-feature-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c49a68;
    margin-bottom: 0.85rem;
    filter: drop-shadow(0 0 8px rgba(168, 120, 69, 0.25));
    transition: filter 0.3s ease, transform 0.3s ease;
}

.sh-feature:active .sh-feature-icon {
    filter: drop-shadow(0 0 14px rgba(196, 154, 104, 0.55));
    transform: translateY(-2px);
}

.sh-feature-icon svg {
    width: 24px;
    height: 24px;
}

.sh-feature h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #eee8df;
    margin: 0 0 0.45rem;
    line-height: 1.3;
}

.sh-feature p {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 300;
    line-height: 1.5;
    color: rgba(238, 232, 223, 0.55);
    margin: 0;
    max-width: 100%;
}

/* ============================================================
   5. PROCESS (Vertical Steps)
   ============================================================ */
.sh-process {
    background: #0d0d0b;
    padding: 3.5rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.sh-process::before {
    content: '';
    position: absolute;
    top: 0; left: 8%; right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 120, 69, 0.3), transparent);
}

.sh-process-header {
    text-align: center;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sh-process-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 1.15;
    color: #eee8df;
    margin: 0;
    letter-spacing: -0.01em;
}

.sh-process-title .gold-text {
    font-style: italic;
    font-weight: 400;
}

.sh-process-timeline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.25rem;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

.sh-process-timeline::before {
    display: none;
}

.sh-step {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 0.5rem;
    padding-bottom: 1rem;
}

.sh-step:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 1.75rem;
    background: linear-gradient(180deg,
        rgba(168, 120, 69, 0.5),
        rgba(168, 120, 69, 0.05));
}

.sh-step-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: #c49a68;
    margin-bottom: 0.5rem;
}

.sh-step-dot {
    width: 10px;
    height: 10px;
    margin: 0 auto 1.1rem;
    background: #a87845;
    border-radius: 50%;
    box-shadow:
        0 0 0 4px rgba(13, 13, 11, 1),
        0 0 0 5px rgba(168, 120, 69, 0.4),
        0 0 16px rgba(168, 120, 69, 0.6);
    position: relative;
}

.sh-step-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #eee8df;
    margin: 0 0 0.55rem;
}

.sh-step-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 300;
    line-height: 1.65;
    color: rgba(238, 232, 223, 0.55);
    margin: 0 auto;
    max-width: 280px;
}

/* ============================================================
   6. QUOTE
   ============================================================ */
.sh-quote {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
    background: #0a0a09;
    overflow: hidden;
}

.sh-quote-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.sh-quote-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px) brightness(0.42) saturate(1.15);
    transform: scale(1.1);
}

.sh-quote-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse at center,
            rgba(13, 13, 11, 0.65) 0%,
            rgba(13, 13, 11, 0.9) 70%,
            rgba(13, 13, 11, 0.98) 100%);
}

.sh-quote-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 100%;
    padding: 0 0.5rem;
}

.sh-quote-content blockquote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.4;
    color: #eee8df;
    margin: 0 0 1.5rem;
    letter-spacing: 0.005em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.9);
}

.sh-quote-stars {
    color: #c49a68;
    font-size: 0.75rem;
    letter-spacing: 1em;
    text-indent: 1em;
    filter: drop-shadow(0 0 8px rgba(196, 154, 104, 0.6));
}

/* ============================================================
   7. FINAL CTA
   ============================================================ */
.sh-cta {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
    overflow: hidden;
    background: #0d0d0b;
    border-top: 1px solid rgba(168, 120, 69, 0.15);
}

.sh-cta-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.sh-cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.5) saturate(1.1);
}

.sh-cta-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg,
            rgba(13, 13, 11, 0.75) 0%,
            rgba(13, 13, 11, 0.55) 50%,
            rgba(13, 13, 11, 0.92) 100%);
}

.sh-cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 100%;
}

.sh-cta-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 1.15;
    color: #eee8df;
    margin: 0 0 2rem;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.85);
}

.sh-cta-content h2 .gold-text {
    font-style: italic;
    font-weight: 400;
}

.sh-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1rem 2rem;
    background: #a87845;
    color: #0d0d0b;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid #a87845;
    transition: all 0.3s ease;
    box-shadow: 0 6px 24px rgba(168, 120, 69, 0.35);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.sh-cta-btn svg {
    transition: transform 0.3s ease;
}

.sh-cta-btn:active {
    background: #c49a68;
    border-color: #c49a68;
    transform: scale(0.97);
    box-shadow: 0 8px 32px rgba(196, 154, 104, 0.5);
}

.sh-cta-btn:active svg {
    transform: translateX(4px);
}

/* ============================================================
   📱 شاشات ضيقة جداً (≤ 380px)
   ============================================================ */
@media (max-width: 380px) {
    .sh-hero-content { padding: 4.5rem 1.15rem 3.5rem; }
    .sh-hero-title { font-size: 1.9rem; }
    .sh-hero-desc { font-size: 0.68rem; letter-spacing: 0.1em; }

    .sh-narrative-text { padding: 2.5rem 1.15rem 3rem; }
    .sh-narrative-title { font-size: 1.65rem; }
    .sh-narrative-p { font-size: 0.84rem; }

    .sh-gallery { padding: 2.5rem 1rem 3rem; }
    .sh-gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 140px);
        gap: 0.5rem;
    }

    .sh-features { padding: 2.5rem 1rem; }
    .sh-features-grid { gap: 1.5rem 1rem; }
    .sh-feature h4 { font-size: 0.7rem; }
    .sh-feature p { font-size: 0.65rem; }

    .sh-process { padding: 3rem 1.15rem; }
    .sh-process-title { font-size: 1.55rem; }
    .sh-step-title { font-size: 1.05rem; }
    .sh-step-desc { font-size: 0.74rem; }

    .sh-quote-content blockquote { font-size: 1.35rem; }
    .sh-cta-content h2 { font-size: 1.55rem; }
    .sh-cta-btn { padding: 0.9rem 1.7rem; font-size: 9.5px; }
}

/* ============================================================
   ♿ REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .sh-hero-bg img {
        animation: none !important;
        transform: none !important;
    }
    .sh-gallery-item img {
        transition: none !important;
    }
}