/* DNY project detail - Altıpatlar reference layout. Scoped to project singles. */
body.single-project {
    background: #fff;
}

body.single-project .elementor-element-d98f557 {
    display: none !important;
}

body.single-project .elementor-2771,
body.single-project .elementor-2771 > .elementor-element,
body.single-project .elementor-2771 .elementor-widget-shortcode,
body.single-project .elementor-2771 .elementor-widget-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.single-project .elementor-2771 {
    overflow: visible;
}

.dny-alt-project,
.dny-alt-project * {
    box-sizing: border-box;
}

.dny-alt-project {
    --dny-ink: #1C1C1D;
    --dny-text: #59585D;
    --dny-border: #E3E3E8;
    --dny-accent: #CAA05C;
    width: 100%;
    margin: 0;
    background: #fff;
    color: var(--dny-ink);
    font-family: "Urbanist", sans-serif;
}

.dny-alt-project__hero {
    position: relative;
    width: 100vw;
    height: clamp(285px, 20vw, 350px);
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    background: #1C1C1D;
}

.dny-alt-project__hero > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.dny-alt-project__hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,10,10,.08) 15%, rgba(10,10,10,.18) 58%, rgba(10,10,10,.58) 100%);
    pointer-events: none;
}

.dny-alt-project__hero-title-wrap {
    position: absolute;
    inset: auto 24px 24px;
    display: flex;
    justify-content: center;
    z-index: 2;
}

.dny-alt-project__hero-title {
    max-width: 1220px;
    margin: 0;
    color: #fff;
    text-align: center;
    font-family: "Urbanist", sans-serif;
    font-size: clamp(42px, 4vw, 54px);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -0.025em;
    text-wrap: balance;
    text-shadow: 0 2px 18px rgba(0,0,0,.24);
}

.dny-alt-project__intro {
    width: min(1040px, calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0 30px;
    text-align: center;
}

.dny-alt-project__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 28px;
    color: var(--dny-ink);
    font-size: 16px;
    line-height: 1.25;
}

.dny-alt-project__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

a.dny-alt-project__meta-item {
    color: inherit !important;
    text-decoration: none !important;
    cursor: pointer;
}

a.dny-alt-project__meta-item:hover,
a.dny-alt-project__meta-item:focus,
a.dny-alt-project__meta-item:focus-visible,
a.dny-alt-project__meta-item:active,
a.dny-alt-project__meta-item:visited {
    color: inherit !important;
    text-decoration: none !important;
}

.dny-alt-project__meta-item svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

.dny-alt-project__summary {
    max-width: 860px;
    margin: 30px auto 0;
    color: var(--dny-text);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

.dny-alt-project__contact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: min(520px, 100%);
    min-height: 114px;
    margin: 34px auto 0;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(180deg, #1C1C1D 0%, #1C1C1D 100%);
    box-shadow: 0 14px 34px rgba(28,28,29,.08);
}

.dny-alt-project__contact-item {
    position: relative;
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    padding: 18px 12px;
    color: #fff !important;
    text-decoration: none !important;
    transition: background-color .22s ease, transform .22s ease;
}

.dny-alt-project__contact-item + .dny-alt-project__contact-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255,255,255,.42);
}

.dny-alt-project__contact-item:hover,
.dny-alt-project__contact-item:focus-visible {
    background: rgba(255,255,255,.075);
}

.dny-alt-project__contact-item:active {
    transform: translateY(1px);
}

.dny-alt-project__contact-item svg {
    width: 42px;
    height: 42px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dny-alt-project__contact-item span {
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
}

.dny-alt-project__gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: min(var(--dny-content-max), calc(100% - var(--dny-gutter) * 2));
    margin: 0 auto;
}

.dny-alt-project__gallery-item {
    display: block;
    min-width: 0;
    aspect-ratio: 1.55 / 1;
    overflow: hidden;
    background: #F6F6F6;
    text-decoration: none !important;
}

.dny-alt-project__gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .38s ease;
}

.dny-alt-project__gallery-item:hover img {
    transform: scale(1.015);
}

.dny-alt-project__content {
    width: 100%;
    padding: var(--dny-section-space) var(--dny-gutter) 0;
    background: #fff;
}

.dny-alt-project__content-inner {
    width: min(900px, 100%);
    margin: 0 auto;
    color: var(--dny-text);
    font-size: 17px;
    line-height: 1.68;
}

.dny-alt-project__content-inner > :first-child {
    margin-top: 0;
}

.dny-alt-project__content-inner h2,
.dny-alt-project__content-inner h3,
.dny-alt-project__content-inner h4 {
    color: var(--dny-ink);
    font-family: "Urbanist", sans-serif;
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.018em;
}

.dny-alt-project__content-inner h2 {
    margin: 54px 0 20px;
    font-size: clamp(30px, 2.3vw, 40px);
}

.dny-alt-project__content-inner h3 {
    margin: 40px 0 16px;
    font-size: clamp(25px, 1.8vw, 32px);
}

.dny-alt-project__content-inner p {
    margin: 0 0 18px;
}

.dny-alt-project__content-inner ul,
.dny-alt-project__content-inner ol {
    margin: 0 0 22px;
    padding-left: 1.35em;
}

.dny-alt-project__content-inner a {
    color: var(--dny-ink);
    text-decoration-color: var(--dny-accent);
    text-underline-offset: 3px;
}

.dny-alt-project__rail {
    position: fixed;
    right: 10px;
    top: 34%;
    z-index: 999;
    display: grid;
    gap: 7px;
}

.dny-alt-project__rail-link {
    display: grid;
    place-items: center;
    width: 58px;
    height: 48px;
    background: #1C1C1D;
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    transition: transform .2s ease, opacity .2s ease;
}

.dny-alt-project__rail-link--whatsapp {
    background: #20c96b;
}

.dny-alt-project__rail-link:hover,
.dny-alt-project__rail-link:focus-visible {
    transform: translateX(-3px);
}

.dny-alt-project__rail-link svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 1024px) {
    .dny-alt-project__hero {
        height: 300px;
    }

    .dny-alt-project__intro {
        padding-top: 40px;
    }

    .dny-alt-project__gallery {
        width: min(var(--dny-content-max), calc(100% - var(--dny-gutter) * 2));
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dny-alt-project__rail {
        right: 8px;
    }
}

@media (max-width: 767px) {
    .dny-alt-project__hero {
        height: 238px;
    }

    .dny-alt-project__hero-title-wrap {
        inset: auto 18px 18px;
    }

    .dny-alt-project__hero-title {
        font-size: clamp(29px, 9vw, 38px);
        line-height: 1.08;
    }

    .dny-alt-project__intro {
        width: min(100% - 30px, 620px);
        padding: 32px 0 24px;
    }

    .dny-alt-project__meta {
        gap: 10px 18px;
        font-size: 14px;
    }

    .dny-alt-project__summary {
        margin-top: 24px;
        font-size: 15px;
        line-height: 1.55;
    }

    .dny-alt-project__contact {
        min-height: 102px;
        margin-top: 28px;
        border-radius: 22px;
    }

    .dny-alt-project__contact-item {
        gap: 9px;
        padding: 15px 7px;
    }

    .dny-alt-project__contact-item svg {
        width: 30px;
        height: 30px;
    }

    .dny-alt-project__contact-item span {
        font-size: 15px;
    }

    .dny-alt-project__gallery {
        grid-template-columns: 1fr;
        gap: 8px;
        width: calc(100% - var(--dny-gutter) * 2);
    }

    .dny-alt-project__gallery-item {
        aspect-ratio: 4 / 3;
    }

    .dny-alt-project__content {
        padding: 54px 18px 70px;
    }

    .dny-alt-project__content-inner {
        font-size: 16px;
        line-height: 1.62;
    }

    .dny-alt-project__content-inner h2 {
        margin-top: 42px;
    }

    .dny-alt-project__rail {
        top: auto;
        right: 10px;
        bottom: 78px;
        gap: 5px;
    }

    .dny-alt-project__rail-link {
        width: 46px;
        height: 42px;
    }

    .dny-alt-project__rail-link svg {
        width: 20px;
        height: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dny-alt-project__contact-item,
    .dny-alt-project__gallery-item img,
    .dny-alt-project__rail-link {
        transition: none;
    }
}


/* Use Antra's native WhatsApp brand glyph; avoids malformed custom SVG rendering. */
.dny-alt-project__contact-item .antra-icon-whatsapp {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    font-size: 42px;
    line-height: 1;
    color: currentColor;
}

.dny-alt-project__rail-link .antra-icon-whatsapp {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    font-size: 24px;
    line-height: 1;
    color: currentColor;
}

@media (max-width: 767px) {
    .dny-alt-project__contact-item .antra-icon-whatsapp {
        width: 30px;
        height: 30px;
        font-size: 30px;
    }

    .dny-alt-project__rail-link .antra-icon-whatsapp {
        width: 20px;
        height: 20px;
        font-size: 20px;
    }
}


/* Project singles: remove the old theme breadcrumb shell completely so the global
   absolute header sits over the project hero instead of over an empty white band. */
body.single-project .breadcrumb-wrap {
    display: none !important;
}

body.single-project .elementor-42 .elementor-element.elementor-element-3ae6e686.header-absolute {
    background: transparent !important;
}

body.single-project .elementor-42 .elementor-element.elementor-element-3d4340b9 .hfe-site-logo-img {
    -webkit-filter: brightness(0) saturate(100%) invert(100%) !important;
    filter: brightness(0) saturate(100%) invert(100%) !important;
}

body.single-project .elementor-42 .elementor-element.elementor-element-e722053 .main-navigation ul.menu > li.menu-item > a,
body.single-project .elementor-42 .elementor-element.elementor-element-e722053 .main-navigation ul.menu > li.menu-item > a .menu-title,
body.single-project .elementor-42 .elementor-element.elementor-element-65ff6f95 .elementor-icon-box-title,
body.single-project .elementor-42 .elementor-element.elementor-element-65ff6f95 .elementor-icon-box-title a,
body.single-project .elementor-42 .elementor-element.elementor-element-65ff6f95 .elementor-icon-box-description,
body.single-project .elementor-42 .elementor-element.elementor-element-65ff6f95 .elementor-icon {
    color: #FFFFFF !important;
}

body.single-project .dny-alt-project__hero-shade {
    background: linear-gradient(180deg, rgba(10,10,10,.34) 0%, rgba(10,10,10,.12) 38%, rgba(10,10,10,.58) 100%);
}


/* Project singles: make the global masthead itself overlay the hero.
   This avoids the header reserving a white flow-height even if Elementor/child CSS
   changes the .header-absolute container behavior later in the cascade. */
body.single-project #masthead {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    background: transparent !important;
}

body.single-project #masthead .elementor-42 .elementor-element.elementor-element-3ae6e686.header-absolute {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    width: 100% !important;
    background: transparent !important;
}

body.single-project #masthead,
body.single-project #masthead .elementor-42,
body.single-project #masthead .elementor-42 > .elementor-element {
    background-color: transparent !important;
}


/* Critical project-single flow reset: Antra adds 130px top margin to #page .site-content
   on non-Elementor pages. The single-project template is Elementor-rendered but the
   body does not carry .elementor-page, so that margin created the persistent white band. */
body.single-project #page .site-content,
body.single-project #page .site-content.site-content-fluid {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}


body.single-project #content.site-content,
body.single-project #content.site-content.site-content-fluid {
    margin: 0 !important;
    padding: 0 !important;
}

body.single-project #primary.content-area,
body.single-project #main.site-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
