/* مجتمع پردیس دریاکنار — تم ساحلی با رنگ نارنجی برند HRHS */
:root {
    --dk-ink: #333333;
    --dk-muted: #666666;
    --dk-sand: #fafafa;
    --dk-paper: #ffffff;
    --dk-deep: #333333;
    --dk-mid: #454545;
    --dk-accent: var(--brand-primary, #fb520d);
    --dk-accent-soft: rgba(var(--brand-primary-rgb, 251, 82, 13), .14);
}

.dk-page {
    overflow-x: hidden;
    color: var(--dk-ink);
    background: var(--dk-paper);
}

/* Hero + آمار — الگوی پردیس فرمانیه (کلاس‌های farmanieh-*) */
.dk-page .farmanieh-hero {
    min-height: min(820px, 94vh);
    background: var(--dk-deep);
}

.dk-page .farmanieh-hero::before {
    background:
        linear-gradient(90deg, rgba(30, 45, 55, .12) 0%, rgba(20, 55, 75, .45) 42%, rgba(12, 38, 52, .88) 100%),
        url("../images/daryakenar/gallery-01.jpg") center 38% / cover no-repeat;
}

.dk-page .farmanieh-hero__content {
    padding-top: clamp(40px, 5vw, 64px);
}

.dk-page #experience.dk-section {
    padding-top: clamp(48px, 6vw, 80px);
}

.dk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}

.dk-btn:hover,
.dk-btn:focus-visible {
    transform: translateY(-2px);
}

.dk-btn--primary {
    color: #fff;
    background: var(--dk-accent);
    box-shadow: 0 14px 30px rgba(var(--brand-primary-rgb, 251, 82, 13), .42);
}

.dk-btn--primary:hover {
    color: #fff;
    background: #e8490b;
}

.dk-btn--ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(10px);
}

/* Sections */
.dk-section {
    padding: clamp(64px, 9vw, 100px) 0;
}

.dk-section--sand {
    background: var(--dk-sand);
}

.dk-section--sea {
    color: #fff;
    background:
        radial-gradient(ellipse at 80% 0%, rgba(var(--brand-primary-rgb, 251, 82, 13), .1), transparent 50%),
        linear-gradient(165deg, var(--dk-mid), var(--dk-deep));
}

.dk-contact.dk-section--sea {
    background: #525252;
}

.dk-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .02em;
    color: var(--dk-accent);
}

.dk-title {
    margin: 0 0 16px;
    font-size: clamp(24px, 2.8vw, 36px);
    font-weight: 900;
    line-height: 1.35;
    color: var(--dk-ink);
}

.dk-section--sea .dk-title {
    color: #fff;
}

.dk-desc {
    max-width: 640px;
    margin: 0;
    font-size: 15px;
    line-height: 1.9;
    color: var(--dk-muted);
}

.dk-desc + .dk-desc {
    margin-top: 14px;
}

.dk-section--sea .dk-desc {
    color: rgba(255, 255, 255, .78);
}

/* Experience grid */
.dk-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.dk-pillar {
    position: relative;
    padding: 28px 22px 26px;
    border-radius: 22px;
    background: var(--dk-paper);
    border: 1px solid rgba(51, 51, 51, .08);
    box-shadow: 0 16px 40px rgba(51, 51, 51, .06);
    transition: transform .35s ease, box-shadow .35s ease;
    overflow: hidden;
}

.dk-pillar::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--dk-accent), transparent);
    opacity: 0;
    transition: opacity .35s ease;
}

.dk-pillar:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 50px rgba(51, 51, 51, .1);
}

.dk-pillar:hover::after {
    opacity: 1;
}

.dk-pillar__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    border-radius: 16px;
    font-size: 20px;
    color: var(--dk-accent);
    background: var(--dk-accent-soft);
}

.dk-pillar h3 {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 800;
    color: var(--dk-ink);
}

.dk-pillar p {
    margin: 0;
    font-size: 13px;
    line-height: 1.85;
    color: var(--dk-muted);
}

/* Story */
.dk-story {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(32px, 5vw, 56px);
    align-items: center;
}

.dk-story__visual {
    position: relative;
}

.dk-story__main {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(51, 51, 51, .14);
}

.dk-story__main img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.dk-story__float {
    position: absolute;
    left: -24px;
    bottom: -24px;
    width: 42%;
    border-radius: 20px;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .2);
}

.dk-story__float img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.dk-checklist {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.dk-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    line-height: 1.75;
    color: var(--dk-muted);
    border-bottom: 1px dashed rgba(51, 51, 51, .1);
}

.dk-checklist li i {
    margin-top: 4px;
    color: var(--dk-accent);
}

/* Facilities — گرید ۲×۲ با نوار عنوان خوانا */
#facilities .container {
    text-align: center;
}

.dk-facilities {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    max-width: min(1040px, 100%);
    margin: 32px auto 0;
    text-align: right;
}

.dk-facility {
    position: relative;
    aspect-ratio: 16 / 10;
    min-height: 220px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(51, 51, 51, .1);
    padding: 0;
    cursor: pointer;
    text-align: right;
    background: #eeeeee;
    box-shadow: 0 10px 28px rgba(51, 51, 51, .08);
}

.dk-facility img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.dk-facility:hover img {
    transform: scale(1.04);
}

.dk-facility__overlay {
    position: absolute;
    inset: auto 0 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    background: rgba(45, 45, 45, .94);
    border-top: 2px solid var(--dk-accent);
}

.dk-facility__overlay h3 {
    margin: 0;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
}

.dk-facility__overlay p {
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.65;
}

/* Awards */
.dk-awards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 36px;
}

.dk-award {
    padding: 28px 22px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .06);
    text-align: center;
}

.dk-award i {
    display: block;
    font-size: 28px;
    color: var(--dk-accent);
    margin-bottom: 14px;
}

.dk-award strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    line-height: 1.55;
}

.dk-award span {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, .7);
}

/* News */
.dk-news {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 36px;
}

.dk-news-card {
    border-radius: 22px;
    overflow: hidden;
    background: var(--dk-paper);
    border: 1px solid rgba(51, 51, 51, .08);
    box-shadow: 0 14px 36px rgba(51, 51, 51, .07);
    transition: transform .3s ease;
}

.dk-news-card:hover {
    transform: translateY(-4px);
}

.dk-news-card__img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.dk-news-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dk-news-card__body {
    padding: 20px 18px 22px;
}

.dk-news-card time {
    font-size: 11px;
    font-weight: 700;
    color: var(--dk-accent);
}

.dk-news-card h3 {
    margin: 10px 0 0;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.65;
    color: var(--dk-ink);
}

/* Gallery */
.dk-gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 96px;
    gap: 10px;
    max-width: min(880px, 100%);
    margin-top: 28px;
    margin-right: auto;
    margin-left: auto;
}

.dk-gallery__item {
    border: none;
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    background: #e8eef2;
}

.dk-gallery__item img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    transition: transform .45s ease;
}

.dk-gallery__item:hover img {
    transform: scale(1.05);
}

.dk-gallery__item--a { grid-column: span 7; grid-row: span 2; }
.dk-gallery__item--b { grid-column: span 5; }
.dk-gallery__item--c { grid-column: span 5; }
.dk-gallery__item--d { grid-column: span 4; }
.dk-gallery__item--e { grid-column: span 4; }
.dk-gallery__item--f { grid-column: span 4; }

/* Contact */
.dk-contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.dk-contact__cards {
    display: grid;
    gap: 14px;
}

.dk-contact__card {
    display: flex;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
}

.dk-contact__card i {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 18px;
    color: var(--dk-accent);
    background: rgba(255, 255, 255, .12);
}

.dk-contact__card strong {
    display: block;
    font-size: 13px;
    color: #fff;
    margin-bottom: 4px;
}

.dk-contact__card span,
.dk-contact__card a {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, .92);
    text-decoration: none;
    line-height: 1.7;
}

.dk-contact__card a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Lightbox */
.dk-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8, 20, 28, .92);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

.dk-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.dk-lightbox img {
    max-width: min(1100px, 96vw);
    max-height: 88vh;
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
}

.dk-lightbox__close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    color: #fff;
    background: rgba(255, 255, 255, .15);
    cursor: pointer;
}

@media (max-width: 1199px) {
    .dk-story,
    .dk-contact__grid {
        grid-template-columns: 1fr;
    }

    .dk-pillars {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .dk-pillars,
    .dk-awards,
    .dk-news {
        grid-template-columns: 1fr;
    }

    .dk-facilities {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .dk-facility {
        min-height: 200px;
        aspect-ratio: 16 / 11;
    }

    .dk-gallery__item--a,
    .dk-gallery__item--b,
    .dk-gallery__item--c,
    .dk-gallery__item--d,
    .dk-gallery__item--e,
    .dk-gallery__item--f {
        grid-column: span 12;
        grid-row: span 1;
    }

    .dk-story__float {
        left: 12px;
        bottom: -12px;
        width: 38%;
    }
}
