/* ==================== REVIEWS + INSTAGRAM ==================== */
.dt-social {
    --dt-orange: #ff7a00;
    --dt-ink: #1a1a1a;
    --dt-muted: #6b6b6b;
    --dt-line: #ececec;
    --dt-ease: cubic-bezier(0.22, 1, 0.36, 1);

    max-width: 1320px;
    margin: 64px auto 0;
    padding: 0 24px;
    display: grid;
    grid-template-columns: minmax(0, 11fr) minmax(0, 12fr);
    gap: 32px;
    align-items: start;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.dt-social__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 32px;
    margin-bottom: 16px;
}

.dt-social__empty {
    padding: 28px;
    border: 1px dashed var(--dt-line);
    border-radius: 16px;
    text-align: center;
    color: var(--dt-muted);
}

/* ==================== Reviews ==================== */
.dt-reviews {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dt-reviews > li {
    display: flex;
}

.dt-review {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 18px 16px 16px;
    background: #fff;
    border: 1px solid var(--dt-line);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.35s var(--dt-ease), box-shadow 0.35s ease, border-color 0.35s ease;
}

.dt-review:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 122, 0, 0.35);
    box-shadow: 0 20px 36px -26px rgba(0, 0, 0, 0.35);
}

/* Big soft quote mark in the corner */
.dt-review__quote {
    position: absolute;
    top: -14px;
    right: 10px;
    font-family: Georgia, serif;
    font-size: 5.5rem;
    line-height: 1;
    color: #fff1e4;
    pointer-events: none;
}

.dt-review__stars {
    position: relative;
    display: flex;
    gap: 2px;
    margin-bottom: 10px;
    font-size: 0.72rem;
    color: #ffb400;
}

.dt-review__stars .is-off {
    color: #e2e2e2;
}

.dt-review__text {
    position: relative;
    flex: 1;
    margin: 0 0 14px;
}

.dt-review__text p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.55;
    color: #3a3a3a;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dt-review__author {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--dt-line);
}

.dt-review__avatar {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ffe0c4;
    box-shadow: 0 4px 10px -6px rgba(255, 122, 0, 0.6);
}

.dt-review__avatar img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.dt-review__who {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dt-review__name {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--dt-ink);
}

.dt-review__about i {
    margin-right: 2px;
    font-size: 0.6rem;
    color: var(--dt-orange);
}

.dt-review__about {
    font-size: 0.68rem;
    color: var(--dt-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

/* Overall score under the cards */
.dt-reviews__summary {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 14px;
    background: #fff8f1;
    border: 1px solid #ffe6cf;
}

.dt-reviews__icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    color: var(--dt-orange);
    font-size: 1rem;
}

.dt-reviews__meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    font-size: 0.76rem;
    color: var(--dt-muted);
}

.dt-reviews__meta strong {
    font-size: 0.82rem;
    color: var(--dt-ink);
}

.dt-reviews__cta {
    font-size: 0.76rem;
}

/* ==================== Instagram ==================== */
.dt-insta {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dt-insta__cta-item {
    display: none;   /* the header link does this job on desktop */
}

.dt-insta__tile {
    position: relative;
    display: block;
    aspect-ratio: 1;
    border-radius: 14px;
    overflow: hidden;
    background: #111;
}

.dt-insta__tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--dt-ease);
}

.dt-insta__overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(255, 122, 0, 0.75), rgba(200, 40, 120, 0.7));
    color: #fff;
    font-size: 1.6rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dt-insta__overlay i {
    transform: scale(0.6);
    transition: transform 0.4s var(--dt-ease);
}

.dt-insta__tile:hover img {
    transform: scale(1.1);
}

.dt-insta__tile:hover .dt-insta__overlay,
.dt-insta__tile:focus-visible .dt-insta__overlay {
    opacity: 1;
}

.dt-insta__tile:hover .dt-insta__overlay i,
.dt-insta__tile:focus-visible .dt-insta__overlay i {
    transform: scale(1);
}

.dt-insta__tile:focus-visible,
.dt-insta__cta:focus-visible {
    outline: 2px solid var(--dt-orange);
    outline-offset: 3px;
}

/* "Follow" tile, shown in the grid on smaller screens */
.dt-insta__cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    aspect-ratio: 1;
    padding: 10px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ff9a3c 0%, var(--dt-orange) 45%, #d63a7a 100%);
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.3;
    transition: transform 0.3s var(--dt-ease), box-shadow 0.3s ease;
}

.dt-insta__cta i {
    font-size: 1.6rem;
}

.dt-insta__cta:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 14px 24px -12px rgba(214, 58, 122, 0.7);
}

/* Invite line under the tiles (desktop) */
.dt-insta__invite {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
    padding: 12px 12px 12px 18px;
    border-radius: 14px;
    background: #111;
    color: rgba(255, 255, 255, 0.75);
}

.dt-insta__invite p {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.5;
}

.dt-insta__invite strong {
    color: #fff;
}

.dt-insta__follow {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--dt-orange), #d63a7a);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.25s var(--dt-ease), box-shadow 0.25s ease;
}

.dt-insta__follow:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(214, 58, 122, 0.8);
}

.dt-insta__follow:focus-visible {
    outline: 2px solid var(--dt-orange);
    outline-offset: 2px;
}

/* ---------- Tablet: stacked ---------- */
@media (max-width: 991.98px) {
    .dt-social {
        grid-template-columns: minmax(0, 1fr);
        gap: 44px;
        margin-top: 56px;
    }

    .dt-insta {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .dt-insta__cta-item {
        display: block;
    }

    .dt-insta__invite {
        display: none;   /* the Follow tile takes over */
    }
}

/* ---------- Mobile ---------- */
@media (max-width: 575.98px) {
    .dt-social {
        gap: 40px;
        margin-top: 44px;
        padding: 0;
    }

    .dt-social__head {
        padding: 0 16px;
        margin-bottom: 14px;
    }

    /* Reviews: swipeable cards */
    .dt-reviews {
        display: flex;
        gap: 12px;
        padding: 4px 16px 14px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 16px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .dt-reviews::-webkit-scrollbar {
        display: none;
    }

    .dt-reviews > li {
        flex: 0 0 80%;
        scroll-snap-align: start;
    }

    .dt-review:hover {
        transform: none;
        box-shadow: none;
    }

    .dt-reviews__summary {
        flex-wrap: wrap;
        margin: 4px 16px 0;
    }

    .dt-reviews__cta {
        width: 100%;
        padding-left: 52px;
    }

    .dt-social__empty {
        margin: 0 16px;
    }

    /* Instagram: 3 × 2 grid ending with the Follow tile */
    .dt-insta {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        padding: 0 16px;
    }

    .dt-insta__tile,
    .dt-insta__cta {
        border-radius: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dt-review,
    .dt-insta__tile img,
    .dt-insta__overlay,
    .dt-insta__overlay i,
    .dt-insta__cta {
        transition: none;
    }
}
