
/* =====================================================
   دست دوست — Homepage
===================================================== */

@font-face {
    font-family: "Estedad";
    src: url("../fonts/Estedad-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

.dd-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.dd-home {
    --dd-teal: #0f766e;
    --dd-gold: #e4a923;
    --dd-cream: #fffdf8;
    --dd-text: #173b3a;
    --dd-muted: #71817f;
    --dd-border: #e4ecea;
    background: var(--dd-cream);
    color: var(--dd-text);
    direction: rtl;
    overflow-x: clip;
}

.dd-home-wrap {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.dd-home-heading {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 28px;
}

.dd-home-heading h2 {
    margin: 0;
    font-size: clamp(20px, 2.6vw, 28px);
    line-height: 1.6;
    color: var(--dd-text);
}

.dd-home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 12px 22px;
    border-radius: 14px;
    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
    font-weight: 700;
    text-decoration: none;
    transition: .2s background, .2s border-color, .2s transform;
}

.dd-home-btn-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.dd-home-btn-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.dd-home-btn-primary {
    background: var(--dd-teal);
    color: #fff;
}

.dd-home-btn-primary:hover {
    background: #0a635d;
}

.dd-home-btn-ghost {
    background: #e8f5f2;
    color: #0b5c56;
    border: 2px solid #0f766e;
}

.dd-home-btn-ghost:hover {
    background: #dcefec;
}

.dd-home-btn-gold {
    background: var(--dd-gold);
    color: #fff;
}

.dd-home-hero {
    background: linear-gradient(180deg, #f7fbf9, #fffdf8);
    padding: 44px 0 52px;
}

.dd-home-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 40px;
    align-items: center;
}

.dd-home-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
}

.dd-home-proverb {
    margin: 0;
    font-family: "Estedad", "Vazirmatn", Tahoma, Arial, sans-serif;
    font-size: clamp(30px, 3.8vw, 46px);
    line-height: 1.75;
    font-weight: 700;
    color: #123f3d;
    letter-spacing: 0;
    overflow-wrap: normal;
    word-break: normal;
}

.dd-home-proverb-line {
    display: block;
}

.dd-home-proverb-accent {
    color: var(--dd-teal);
}

.dd-home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dd-home-hero-visual img {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(15, 118, 110, .12);
}

.dd-hero-slider {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(15, 118, 110, .12);
    outline: none;
}

.dd-hero-slider:focus-visible {
    outline: 2px solid var(--dd-teal);
    outline-offset: 3px;
}

.dd-hero-slides {
    position: relative;
}

.dd-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .55s ease, visibility .55s ease;
    pointer-events: none;
}

.dd-hero-slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dd-hero-slide[hidden],
.dd-hero-slide.is-broken {
    display: none !important;
}

.dd-hero-media,
.dd-hero-poster,
.dd-hero-slider video {
    display: block;
    width: 100%;
    max-height: 440px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #e8f2ef;
    box-shadow: none;
    border-radius: 0;
}

.dd-hero-poster,
.dd-hero-player video {
    cursor: pointer;
}

.dd-hero-poster {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.dd-hero-poster[hidden],
.dd-hero-play[hidden] {
    display: none !important;
}

.dd-hero-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    width: 64px;
    height: 64px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: rgba(15, 118, 110, .92);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(23, 59, 58, .22);
}

.dd-hero-play::before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    margin: 0 auto;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid currentColor;
    transform: translateX(2px);
}

.dd-hero-play:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.dd-hero-slide.is-playing .dd-hero-play,
.dd-hero-slide.is-playing .dd-hero-poster {
    display: none !important;
}

.dd-hero-player {
    position: relative;
    overflow: hidden;
}

.dd-hero-slide.is-playing .dd-hero-slide-caption {
    display: none;
}

.dd-hero-slider.is-watching .dd-hero-dots {
    display: none;
}

.dd-hero-slide.is-playing .dd-hero-nav {
    display: none;
}

.dd-hero-player-bar {
    display: none;
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 4;
    padding: 18px 10px 8px;
    border-radius: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(18, 63, 61, .55) 70%, rgba(18, 63, 61, .82));
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease;
}

.dd-hero-player-bar[hidden] {
    display: none !important;
}

.dd-hero-slide.is-playing.is-controls-on .dd-hero-player-bar {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

.dd-hero-player-main,
.dd-hero-player-tools {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex-shrink: 0;
}

.dd-hero-player-tools {
    justify-content: flex-end;
    margin-top: 0;
}

.dd-hero-slide.is-playing .dd-hero-player-bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 4px 6px;
}

.dd-hero-player-main { grid-column: 1; }
.dd-hero-progress { grid-column: 2; }
.dd-hero-player-tools { grid-column: 3; }

.dd-hero-player-main:not(:has(.dd-hero-skip:not([hidden]))) {
    display: none;
}

.dd-hero-skip[hidden] {
    display: none !important;
}

.dd-hero-player-bar button {
    min-width: 28px;
    min-height: 28px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.dd-hero-progress {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    min-width: 0;
}

.dd-hero-time-now,
.dd-hero-time-dur {
    min-width: 26px;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
    text-align: center;
    opacity: .88;
}

.dd-hero-seek {
    flex: 1;
    min-width: 0;
    height: 16px;
    margin: 0;
    accent-color: #d7efe9;
    cursor: pointer;
}

.dd-hero-mute.is-muted {
    opacity: .7;
}

.dd-hero-mute.is-muted svg {
    opacity: .85;
}

.dd-hero-player-bar svg {
    display: block;
    margin: 0 auto;
    pointer-events: none;
}

.dd-hero-player-bar button:focus-visible,
.dd-hero-seek:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.dd-hero-player:fullscreen,
.dd-hero-player:-webkit-full-screen {
    width: 100%;
    height: 100%;
    background: #123f3d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dd-hero-player:fullscreen video,
.dd-hero-player:-webkit-full-screen video {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
}

.dd-hero-player:fullscreen .dd-hero-player-bar,
.dd-hero-player:-webkit-full-screen .dd-hero-player-bar {
    display: grid;
}

.dd-hero-slide-caption {
    position: absolute;
    right: 16px;
    left: 16px;
    bottom: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(18, 63, 61, .08), rgba(18, 63, 61, .72));
    color: #fff;
}

.dd-hero-slide-title {
    margin: 0 0 6px;
    font-weight: 800;
    font-size: 1.05rem;
}

.dd-hero-slide-text {
    margin: 0;
    line-height: 1.8;
    font-size: 14px;
}

.dd-hero-slide-btn {
    margin-top: 10px;
    min-height: 42px;
    padding: 8px 16px;
}

.dd-hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 253, 248, .92);
    color: var(--dd-teal);
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(23, 59, 58, .12);
}

.dd-hero-nav:focus-visible {
    outline: 2px solid var(--dd-teal);
    outline-offset: 2px;
}

.dd-hero-prev { right: 12px; }
.dd-hero-next { left: 12px; }

.dd-hero-prev::before,
.dd-hero-next::before {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    margin: 0 auto;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
}

.dd-hero-prev::before { transform: rotate(45deg); }
.dd-hero-next::before { transform: rotate(-135deg); }

.dd-hero-dots {
    position: absolute;
    left: 50%;
    bottom: 12px;
    z-index: 2;
    display: flex;
    gap: 6px;
    transform: translateX(-50%);
}

.dd-hero-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
    cursor: pointer;
}

.dd-hero-dot.is-active {
    background: #fff;
    transform: scale(1.2);
}

.dd-hero-dot:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.dd-hero-slider:not(.is-single) .dd-hero-slide-caption {
    bottom: 36px;
}

.dd-hero-slider.is-single .dd-hero-nav,
.dd-hero-slider.is-single .dd-hero-dots {
    display: none;
}

.dd-home-hero-card {
    background: #fff;
    border: 1px solid var(--dd-border);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 18px 50px rgba(15, 118, 110, .08);
}

.dd-home-hero-card strong {
    display: block;
    font-size: 20px;
    margin-bottom: 8px;
}

.dd-home-hero-card p {
    margin: 0;
    color: var(--dd-muted);
    line-height: 1.9;
}

.dd-home-mother {
    padding: 36px 0 48px;
}

.dd-home-mother-inner {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 28px;
    align-items: center;
    background: linear-gradient(135deg, #fffdf8, #fff7df);
    border: 1px solid #f1dca4;
    border-radius: 28px;
    padding: 28px 32px;
}

.dd-home-mother-visual img,
.dd-home-mother-fallback {
    width: 100%;
    min-height: 220px;
    border-radius: 20px;
    object-fit: cover;
}

.dd-home-mother-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8ecd0;
    color: #b37a05;
    font-size: 64px;
}

.dd-home-mother-copy h2 {
    margin: 0 0 12px;
    font-size: clamp(22px, 3vw, 32px);
    line-height: 1.5;
    color: #b37a05;
}

.dd-home-mother-copy p {
    margin: 0 0 20px;
    color: #746b58;
    line-height: 1.95;
}

.dd-home-stats {
    background: #f3f8f6;
    border-top: 1px solid var(--dd-border);
    border-bottom: 1px solid var(--dd-border);
    padding: 32px 0;
    color: var(--dd-text);
}

.dd-home-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.dd-home-stat {
    background: #fff;
    border: 1px solid var(--dd-border);
    border-radius: 18px;
    padding: 24px 16px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(15, 118, 110, .06);
}

.dd-home-stat strong {
    display: block;
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 900;
    color: var(--dd-teal);
    line-height: 1.2;
}

.dd-home-stat span {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: var(--dd-muted);
    line-height: 1.6;
}

@media (max-width: 1100px) {
    .dd-home-mother-inner {
        grid-template-columns: 1fr !important;
    }

    .dd-home-hero-grid {
        display: flex;
        flex-direction: column;
        gap: 28px;
    }

    .dd-home-hero-visual {
        order: -1;
    }

    .dd-home-hero-copy {
        align-items: stretch;
        text-align: center;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .dd-home-wrap {
        width: min(100% - 24px, 1120px);
    }

    .dd-home-hero {
        padding: 20px 0 32px;
    }

    .dd-home-hero-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .dd-home-hero-visual {
        order: -1;
    }

    .dd-home-hero-visual img,
    .dd-hero-media,
    .dd-hero-poster,
    .dd-hero-slider video {
        width: 100%;
        max-height: 220px;
        margin-top: 0;
        aspect-ratio: 16 / 10;
        object-fit: cover;
    }

    .dd-hero-play {
        width: 52px;
        height: 52px;
    }

    .dd-hero-player-bar {
        right: 0;
        left: 0;
        bottom: 0;
        padding: 14px 6px 5px;
    }

    .dd-hero-skip {
        display: none !important;
    }

    .dd-hero-slide.is-playing .dd-hero-player-bar {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto;
        gap: 2px 4px;
    }

    .dd-hero-player-main {
        display: none;
    }

    .dd-hero-progress,
    .dd-hero-player-tools {
        grid-row: 1;
    }

    .dd-hero-progress {
        grid-column: 1;
    }

    .dd-hero-player-tools {
        grid-column: 2;
        gap: 2px;
    }

    .dd-hero-time-dur {
        display: none;
    }

    .dd-hero-slide.is-playing .dd-hero-nav {
        display: none;
    }
    .dd-hero-slide-caption {
        right: 10px;
        left: 10px;
        bottom: 10px;
        padding: 10px 12px;
    }

    .dd-home-proverb {
        font-size: clamp(26px, 7.2vw, 32px);
        line-height: 1.8;
    }

    .dd-home-hero-copy {
        gap: 20px;
    }

    .dd-home-actions {
        flex-direction: column;
        gap: 10px;
    }

    .dd-home-actions .dd-home-btn {
        width: 100%;
    }

    .dd-home-mother {
        padding: 24px 0 32px;
    }

    .dd-home-stats {
        padding: 24px 0;
    }

    .dd-home-stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 510px) {
    .dd-hero-nav {
        display: none;
    }
}

@media (max-width: 360px) {
    .dd-home-proverb {
        font-size: 26px;
        line-height: 1.85;
    }
}
