/* Layered navigation and staggered scroll motion inspired by industrial editorial sites. */
.links {
    gap: 24px
}

#site-header .drawer-nav-items > .header-archive-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex-shrink: 0;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--color-brand-primary, #d71920);
    color: #fff !important;
    font: 700 .85rem "Manrope", Arial, sans-serif;
    white-space: nowrap;
    text-shadow: none !important;
    transition: background-color .2s ease, border-color .2s ease;
}

#site-header .header-archive-button::after { display: none !important; }

#site-header .header-archive-button:focus-visible {
    outline: 2px solid var(--color-brand-primary, #d71920);
    outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
    #site-header .drawer-nav-items > .header-archive-button:hover {
        background: #9f1118;
        transform: none;
    }
}

@media (min-width: 851px) and (max-width: 1200px) {
    #site-header .brand-logo { width: clamp(190px, 22vw, 260px); }
    #site-header .links { gap: 14px; }
}

@media (max-width: 850px) {
    #site-header .drawer-nav-items > .header-archive-button {
        justify-content: space-between;
        min-height: 48px;
        margin-top: 12px;
        padding: 13px 16px;
        font-size: 1rem;
    }
}

[id="hakkimizda"],
[id="tarihce"],
[id="degerler"] {
    scroll-margin-top: 115px
}

.nav-group {
    position: relative;
    display: flex;
    align-items: center;
    align-self: stretch
}

.nav-parent {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 100%
}

.nav-parent>a {
    position: relative;
    font-weight: 600;
    white-space: nowrap
}

.nav-parent>a::after,
.drawer-nav-items>a:not(.nav-cta)::after,
.links>a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -7px;
    height: 2px;
    background: var(--color-brand-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--motion-ease)
}

.nav-parent>a[aria-current="page"]::after,
.drawer-nav-items>a[aria-current="page"]::after,
.links>a[aria-current="page"]::after {
    transform: scaleX(1)
}

.submenu-toggle {
    appearance: none;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    width: 25px;
    height: 30px;
    padding: 0;
    display: grid;
    place-items: center;
    font: 800 17px/1 var(--font-body, Poppins, Arial, sans-serif);
    cursor: pointer;
    transition: color .25s, transform .35s var(--motion-ease)
}

.nav-group:focus-within .submenu-toggle,
.nav-group.submenu-open .submenu-toggle {
    color: var(--color-brand-accent);
    transform: rotate(180deg);
    transition-duration: .18s;
}

.nav-dropdown {
    position: absolute;
    z-index: 40;
    top: calc(100% - 1px);
    left: 50%;
    width: 470px;
    background: var(--color-white);
    border-top: 3px solid var(--color-brand-accent);
    box-shadow: 0 24px 65px rgba(20, 22, 25, .16);
    padding: 27px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 16px);
    transition: opacity .18s ease, transform .18s var(--motion-ease), visibility .18s
}

.nav-projects .nav-dropdown,
.nav-corporate .nav-dropdown {
    width: 340px
}

.nav-group:focus-within .nav-dropdown,
.nav-group.submenu-open .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0)
}

@media (hover: hover) and (pointer: fine) {
    .nav-group:hover .submenu-toggle {
        color: var(--color-brand-accent);
        transform: rotate(180deg);
        transition-duration: .18s;
    }

    .nav-group:hover .nav-dropdown {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translate(-50%, 0);
    }
}

.dropdown-heading {
    padding-bottom: 20px;
    margin-bottom: 8px;
    border-bottom: 1px solid #e7e7e8
}

.dropdown-heading>span {
    display: block;
    color: var(--color-brand-accent);
    font: 500 .66rem var(--font-body, Poppins, Arial, sans-serif);
    text-transform: uppercase;
    letter-spacing: .11em;
    margin-bottom: 7px
}

.dropdown-heading>strong {
    font-size: 1.05rem;
    letter-spacing: -.025em
}

.dropdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr
}

.dropdown-grid>a {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 8px;
    align-items: center;
    padding: 15px 10px;
    border-bottom: 1px solid var(--color-border-dropdown);
    color: #303236;
    transition: color .22s, background .22s, transform .3s var(--motion-ease)
}

.dropdown-grid>a:nth-last-child(-n+2) {
    border-bottom: 0
}

.dropdown-grid small {
    font: 500 .65rem var(--font-body, Poppins, Arial, sans-serif);
    color: var(--color-brand-primary)
}

.dropdown-grid span {
    font-size: .8rem;
    font-weight: 750;
    line-height: 1.25
}

.dropdown-list>a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 4px;
    border-bottom: 1px solid var(--color-border-dropdown);
    font-size: .82rem;
    font-weight: 700;
    transition: color .22s, padding .3s var(--motion-ease)
}

.dropdown-list>a:last-child {
    border-bottom: 0
}

.dropdown-list b {
    color: var(--color-brand-primary);
    font-size: .9rem
}

.dropdown-grid>a,
.dropdown-list>a {
    opacity: 0;
    translate: 0 8px
}

.nav-group:focus-within .dropdown-grid>a,
.nav-group.submenu-open .dropdown-grid>a,
.nav-group:focus-within .dropdown-list>a,
.nav-group.submenu-open .dropdown-list>a {
    opacity: 1;
    translate: 0 0;
    transition-property: opacity, translate, color, background, transform, padding;
    transition-duration: .18s;
    transition-timing-function: var(--motion-ease)
}

@media (hover: hover) and (pointer: fine) {
    .nav-group:hover .dropdown-grid>a,
    .nav-group:hover .dropdown-list>a {
        opacity: 1;
        translate: 0 0;
        transition-property: opacity, translate, color, background, transform, padding;
        transition-duration: .18s;
        transition-timing-function: var(--motion-ease);
    }
}

.nav-dropdown a:nth-child(2) {
    transition-delay: 10ms
}

.nav-dropdown a:nth-child(3) {
    transition-delay: 20ms
}

.nav-dropdown a:nth-child(4) {
    transition-delay: 30ms
}

.nav-dropdown a:nth-child(5) {
    transition-delay: 40ms
}

.nav-dropdown a:nth-child(6) {
    transition-delay: 50ms
}

/* Alternating editorial movement as sections enter the viewport. */
.detail-item.motion-reveal {
    transition: opacity .9s var(--motion-ease), translate 1s var(--motion-ease), clip-path 1s var(--motion-ease)
}

.detail-item.motion-pending:nth-child(odd) {
    translate: -58px 0;
    clip-path: inset(0 7% 0 0)
}

.detail-item.motion-pending:nth-child(even) {
    translate: 58px 0;
    clip-path: inset(0 0 0 7%)
}

.section-head>*.motion-reveal,
.details-intro>*.motion-reveal,
.page-banner .wrap>*.motion-reveal,
.contact-lead-intro>*.motion-reveal,
.contact-channel-card.motion-reveal,
.contact-card.motion-reveal,
.contact-map-panel.motion-reveal,
.contact-map-wrapper.motion-reveal,
.contact-form-wrapper.motion-reveal {
    transition: opacity .8s var(--motion-ease), translate .9s var(--motion-ease)
}

.section-head>*.motion-pending,
.details-intro>*.motion-pending,
.page-banner .wrap>*.motion-pending,
.contact-lead-intro>*.motion-pending {
    translate: 0 34px
}

.contact-channel-card.motion-pending,
.contact-card.motion-pending {
    translate: -32px 0
}

.contact-map-panel.motion-pending,
.contact-map-wrapper.motion-pending,
.contact-form-wrapper.motion-pending {
    translate: 32px 0
}

.year-block.motion-pending,
.archive-window.motion-pending {
    translate: -45px 0
}

.about-copy.motion-pending,
.archive-copy.motion-pending,
.location-block.motion-pending {
    translate: 45px 0
}

@media(hover:hover) and (pointer:fine) {

    .nav-parent>a:hover::after,
    .drawer-nav-items>a:not(.nav-cta):hover::after,
    .links>a:not(.nav-cta):hover::after {
        transform: scaleX(1)
    }

    .dropdown-grid>a:hover {
        color: var(--color-brand-primary);
        background: var(--color-surface-hover);
        transform: translateX(3px)
    }

    .dropdown-list>a:hover {
        color: var(--color-brand-primary);
        padding-left: 10px
    }
}

@media(max-width:1050px) and (min-width:851px) {
    .brand-logo {
        width: clamp(230px, 28vw, 280px);
        max-height: 47px;
    }

    .links {
        gap: 18px
    }

    .nav-parent>a,
    .links>a {
        font-size: .82rem
    }

    .nav-dropdown {
        left: 45%
    }
}

@media(max-width:850px) {
    header {
        margin-bottom: -80px;
    }

    header.is-scrolled {
        margin-bottom: -68px;
    }

    nav {
        height: 80px;
    }

    header.is-scrolled nav {
        height: 68px;
    }

    .brand-logo {
        width: clamp(205px, 48vw, 245px);
        max-height: 40px;
    }

    header.is-scrolled .brand-logo {
        width: clamp(205px, 48vw, 245px);
        max-height: 40px;
    }

    .menu {
        display: flex;
    }

    body.nav-open {
        overflow: hidden !important;
    }

    /* Keep the fixed drawer relative to the viewport, including a scrolled header. */
    body.nav-open #site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 10000;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        background: rgba(6, 8, 12, 0.75);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.35s ease, visibility 0.35s ease;
    }

    .nav-backdrop.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .links {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        width: min(90vw, 380px);
        height: 100vh;
        height: 100dvh;
        max-height: none;
        overflow-y: auto;
        overflow-x: hidden;
        touch-action: pan-y;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        gap: 0;
        padding: 0;
        flex-direction: column;
        align-items: stretch;
        background: #0d1117;
        background: linear-gradient(180deg, #0b0e14 0%, #111722 100%);
        border-left: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.85);
        transform: translateX(100%);
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease, visibility 0.38s ease;
        z-index: 9999;
        will-change: transform;
    }

    .links.open {
        display: flex;
        transform: translateX(0);
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    .drawer-header-mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 22px;
        background: #07090d;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        position: sticky;
        top: 0;
        z-index: 10;
        flex-shrink: 0;
    }

    .drawer-brand {
        display: flex;
        align-items: center;
        text-decoration: none;
        min-width: 0;
    }

    .drawer-brand-logo {
        max-height: 38px;
        width: auto;
        max-width: 195px;
        object-fit: contain;
    }

    .drawer-brand-text {
        font-size: 1.1rem;
        font-weight: 700;
        color: #ffffff;
        letter-spacing: -0.01em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .drawer-close {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.16);
        color: #ffffff;
        cursor: pointer;
        transition: all 0.2s ease;
        padding: 0;
        flex-shrink: 0;
    }

    .drawer-close:hover,
    .drawer-close:active {
        background: rgba(215, 25, 32, 0.2);
        border-color: var(--color-brand-accent, #d71920);
        color: #ffffff;
        transform: scale(1.05);
    }

    .drawer-nav-items {
        display: flex;
        flex-direction: column;
        padding: 18px 18px 10px;
        gap: 4px;
        flex: 1 0 auto;
        min-width: 0;
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }

    .nav-parent>a::after,
    .links>a:not(.nav-cta)::after {
        display: none !important;
    }

    .drawer-nav-items>a:not(.nav-cta) {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        color: #ffffff !important;
        font-size: 1.05rem;
        font-weight: 600;
        text-decoration: none;
        text-shadow: none !important;
        transition: all 0.22s ease;
    }

    .drawer-nav-items>a:not(.nav-cta):hover,
    .drawer-nav-items>a:not(.nav-cta):active {
        background: rgba(255, 255, 255, 0.09);
        border-color: rgba(255, 255, 255, 0.2);
        color: #ffffff !important;
        transform: translateX(3px);
    }

    .drawer-nav-items>a:not(.nav-cta)[aria-current="page"] {
        background: rgba(215, 25, 32, 0.15);
        border-color: var(--color-brand-accent, #d71920);
        border-left: 4px solid var(--color-brand-accent, #d71920);
        color: #ffffff !important;
        font-weight: 700;
    }

    .nav-group {
        display: block;
        width: 100%;
        align-self: auto;
        border-bottom: 0;
        padding: 0;
        margin-bottom: 0;
    }

    .nav-parent {
        position: relative;
        display: flex;
        align-items: center;
        gap: 0;
        width: 100%;
        height: auto;
    }

    .nav-parent>a {
        flex: 1;
        display: flex;
        align-items: center;
        padding: 14px 60px 14px 16px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        color: #ffffff !important;
        font-size: 1.05rem;
        font-weight: 600;
        text-decoration: none;
        text-shadow: none !important;
        transition: all 0.22s ease;
    }

    .nav-parent>a:hover,
    .nav-parent>a:active {
        background: rgba(255, 255, 255, 0.09);
        border-color: rgba(255, 255, 255, 0.2);
        color: #ffffff !important;
    }

    .nav-parent>a[aria-current="page"] {
        background: rgba(215, 25, 32, 0.15);
        border-color: var(--color-brand-accent, #d71920);
        border-left: 4px solid var(--color-brand-accent, #d71920);
        color: #ffffff !important;
        font-weight: 700;
    }

    .submenu-toggle {
        position: absolute;
        right: 4px;
        top: 50%;
        translate: 0 -50%;
        width: 48px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: 0;
        border-radius: 6px;
        color: #ffffff !important;
        cursor: pointer;
        transition: all 0.25s ease;
        padding: 0;
        margin: 0;
        flex-shrink: 0;
    }

    .submenu-toggle:hover {
        background: transparent;
    }

    .submenu-toggle svg {
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
        stroke: currentColor;
    }

    .nav-group.submenu-open .submenu-toggle {
        background: transparent;
        color: #ffffff !important;
        box-shadow: none;
    }

    .nav-group.submenu-open .submenu-toggle svg {
        transform: rotate(180deg);
    }

    #site-header .nav-group .nav-dropdown {
        display: none;
        position: static;
        inset: auto;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        margin: 0 0 12px;
        padding: 6px 0 6px 16px;
        background: transparent;
        border-radius: 0;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        max-height: none;
        overflow: visible;
        transition: none;
    }

    #site-header .nav-group.submenu-open .nav-dropdown {
        display: block;
    }

    #site-header .nav-dropdown .dropdown-heading {
        display: none;
    }

    #site-header .nav-dropdown :is(.dropdown-grid, .dropdown-list) {
        display: flex;
        flex-direction: column;
        gap: 0;
        border-left: 1px solid rgba(255, 255, 255, 0.18);
    }

    #site-header .nav-dropdown :is(.dropdown-grid, .dropdown-list) > a {
        min-height: 48px;
        padding: 12px 16px;
        margin: 0;
        background: transparent;
        border: 0;
        border-radius: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        opacity: 1;
        translate: none;
        transform: none;
        transition: background .18s ease, color .18s ease;
    }

    #site-header .nav-dropdown :is(.dropdown-grid, .dropdown-list) > a:is(:hover, :focus-visible) {
        background: rgba(255, 255, 255, 0.07);
    }

    #site-header .nav-dropdown small {
        display: none;
    }

    #site-header .nav-parent > a {
        min-width: 0;
        min-height: 50px;
        overflow-wrap: anywhere;
    }

    #site-header .submenu-toggle {
        transform: none;
    }

    #site-header :is(.drawer-close, .submenu-toggle) {
        min-width: 44px;
        min-height: 44px;
    }

    #site-header .links :is(a, button):focus-visible {
        outline: 2px solid #ffffff;
        outline-offset: -3px;
    }

    .dropdown-heading {
        padding-bottom: 8px;
        margin-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .dropdown-heading>span {
        display: block;
        color: #e7b633;
        font: 700 0.74rem var(--font-body, Poppins, Arial, sans-serif);
        text-transform: uppercase;
        letter-spacing: 0.1em;
        margin-bottom: 3px;
    }

    .dropdown-heading>strong {
        color: #ffffff;
        font-size: 0.94rem;
        font-weight: 600;
        letter-spacing: -0.01em;
    }

    .dropdown-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .dropdown-grid>a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.06);
        color: #e2e8f0 !important;
        font-size: 0.92rem;
        font-weight: 500;
        text-decoration: none;
        text-shadow: none !important;
        border-radius: 8px;
        opacity: 1;
        translate: none;
        transition: all 0.2s ease;
    }

    .dropdown-grid>a small {
        color: #ffffff;
        font-weight: 700;
        font-size: 0.72rem;
        background: var(--color-brand-accent, #d71920);
        padding: 2px 7px;
        border-radius: 5px;
        line-height: 1.4;
    }

    .dropdown-grid>a span {
        font-size: 0.9rem;
        font-weight: 600;
        color: #f1f5f9;
    }

    .dropdown-grid>a:hover,
    .dropdown-grid>a:active {
        color: #ffffff !important;
        background: rgba(215, 25, 32, 0.18);
        border-color: rgba(215, 25, 32, 0.4);
        transform: translateX(3px);
    }

    .dropdown-list>a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 11px 12px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.06);
        color: #f1f5f9 !important;
        font-size: 0.92rem;
        font-weight: 500;
        text-decoration: none;
        text-shadow: none !important;
        border-radius: 8px;
        opacity: 1;
        translate: none;
        transition: all 0.2s ease;
        margin-bottom: 5px;
    }

    .dropdown-list>a:last-child {
        margin-bottom: 0;
    }

    .dropdown-list>a:hover,
    .dropdown-list>a:active {
        color: #ffffff !important;
        background: rgba(215, 25, 32, 0.18);
        border-color: rgba(215, 25, 32, 0.4);
        transform: translateX(3px);
    }

    .links .nav-cta {
        margin-top: 12px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 15px 20px;
        font-size: 1.02rem;
        font-weight: 700;
        color: #ffffff !important;
        background: var(--color-brand-accent, #d71920);
        border-radius: 10px;
        box-shadow: 0 4px 18px rgba(215, 25, 32, 0.4);
        text-decoration: none;
        text-shadow: none !important;
        border: 0;
        transition: all 0.25s ease;
    }

    .links .nav-cta:hover,
    .links .nav-cta:active {
        filter: brightness(1.12);
        box-shadow: 0 8px 24px rgba(215, 25, 32, 0.55);
        transform: translateY(-1px);
    }

    .drawer-contact-info {
        display: block;
        padding: 16px 18px 24px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        background: #07090d;
        margin-top: auto;
        flex-shrink: 0;
    }

    .drawer-contact-phone {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        color: #ffffff !important;
        font-size: 0.98rem;
        font-weight: 600;
        text-decoration: none;
        text-shadow: none !important;
        padding: 12px 18px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.07);
        border: 1px solid rgba(255, 255, 255, 0.12);
        transition: all 0.2s ease;
    }

    .drawer-contact-phone:hover,
    .drawer-contact-phone:active {
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.25);
    }

    .detail-item.motion-pending:nth-child(odd),
    .detail-item.motion-pending:nth-child(even),
    .year-block.motion-pending,
    .about-copy.motion-pending,
    .archive-window.motion-pending,
    .archive-copy.motion-pending,
    .location-block.motion-pending {
        translate: 0 24px;
        clip-path: none;
    }
}

@media(prefers-reduced-motion:reduce) {

    .links,
    .nav-dropdown,
    .submenu-toggle,
    .dropdown-grid>a,
    .dropdown-list>a,
    .detail-item.motion-reveal {
        transition: none !important
    }

    .detail-item.motion-pending {
        clip-path: none;
        translate: none
    }
}
