/* ============ Navbar me mega menu (ngarkohet pas index.css) ============ */
.menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.6vw, 38px)
}

.menu>li>a.top {
    display: block;
    padding: 12px 0;
    font-size: 13px;
    letter-spacing: .08em;
    opacity: .7;
    transition: opacity .25s
}

.menu>li:hover>a.top,
.menu>li.open>a.top,
.menu>li>a.top:focus-visible {
    opacity: 1
}

.has-mega>a.top::after {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-left: 9px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: translateY(-3px) rotate(45deg);
    transition: transform .25s
}

.has-mega.open>a.top::after {
    transform: translateY(-1px) rotate(225deg)
}

.menu .cta a {
    display: block;
    padding: 10px 22px;
    font-size: 13px;
    letter-spacing: .08em;
    opacity: 1;
    border: 1px solid currentColor;
    transition: background .25s, color .25s
}

.menu .cta a:hover {
    background: var(--ice);
    color: var(--card)
}

header.open {
    background: var(--card);
    color: var(--ice);
    border-bottom: 1px solid var(--line)
}

/* paneli */
.mega {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 2.2fr minmax(200px, .9fr);
    gap: clamp(32px, 5vw, 72px);
    padding: 40px clamp(24px, 5vw, 72px) 48px;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    color: var(--ice);
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .22s, transform .22s, visibility 0s .22s
}

.open>.mega {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s
}

.mega h3 {
    font-weight: 200;
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 14px
}

.mega p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--mute)
}

.mega .gt {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .04em;
    margin-bottom: 14px
}

.mega ul {
    list-style: none
}

.mega .cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0 40px;
    align-content: start
}

.mega li {
    border-top: 1px solid var(--line)
}

header .mega a {
    display: block;
    padding: 11px 0;
    opacity: 1;
    letter-spacing: 0;
    font-size: 15px;
    transition: color .2s, padding .2s
}

header .mega a:hover,
header .mega a:focus-visible {
    color: var(--teal);
    padding-left: 6px
}

.mega b {
    display: block;
    font-weight: 300
}

.mega small {
    display: block;
    font-size: 13px;
    color: var(--mute)
}

header .mega a.more {
    display: inline-block;
    margin-top: 22px;
    padding: 0 0 6px;
    font-size: 14px;
    border-bottom: 1px solid var(--teal)
}

header .mega a.more:hover {
    padding-left: 0
}

.aside {
    align-self: start;
    padding: 28px;
    border: 1px solid var(--line);
    background: var(--bg)
}

.aside h4 {
    font-weight: 300;
    font-size: 17px;
    margin-bottom: 10px
}

/* burger */
.burger {
    display: none;
    width: 44px;
    height: 44px;
    background: none;
    border: 0;
    color: inherit;
    cursor: pointer;
    position: relative
}

.burger span {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 1px;
    background: currentColor;
    transition: transform .25s, top .25s
}

.burger span:first-child {
    top: 17px
}

.burger span:last-child {
    top: 26px
}

header.menu-open .burger span:first-child {
    top: 21px;
    transform: rotate(45deg)
}

header.menu-open .burger span:last-child {
    top: 21px;
    transform: rotate(-45deg)
}

/* faqet e brendshme */
.ph {
    padding-top: clamp(130px, 18vw, 220px);
    padding-bottom: clamp(40px, 6vw, 80px)
}

.ph h1 {
    font-weight: 200;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.15;
    letter-spacing: .02em;
    max-width: 820px
}

.contact.ph h1,
.contact.ph .lead {
    margin-left: auto;
    margin-right: auto
}

.pb {
    padding-top: clamp(40px, 6vw, 80px);
    padding-bottom: clamp(40px, 6vw, 80px)
}

.crumb {
    display: inline-block;
    margin-bottom: 22px;
    font-size: 14px;
    color: var(--mute);
    border-bottom: 1px solid var(--line)
}

.crumb:hover {
    color: var(--teal)
}

.lgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1px;
    margin-top: 40px;
    background: var(--line);
    border: 1px solid var(--line)
}

.lgrid>* {
    display: block;
    padding: 32px;
    background: var(--card);
    transition: background .3s
}

.lgrid>a:hover,
.lgrid>a:focus-visible {
    background: var(--bg)
}

.lgrid h3 {
    font-weight: 200;
    font-size: 24px;
    line-height: 1.25;
    margin-bottom: 8px
}

.lgrid p {
    color: var(--mute);
    font-size: 15px
}

.dgrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 6vw, 90px);
    align-items: start
}

.plist {
    list-style: none
}

.plist li {
    padding: 16px 0;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between
}

.plist li:last-child {
    border-bottom: 1px solid var(--line)
}

.plist li::after {
    content: "";
    width: 18px;
    height: 1px;
    background: var(--teal);
    align-self: center
}

.mail-s {
    display: inline-block;
    margin-top: 8px;
    padding-bottom: 6px;
    font-size: 14px;
    border-bottom: 1px solid var(--teal);
    transition: color .2s
}

.mail-s:hover {
    color: var(--teal)
}

[id] {
    scroll-margin-top: 110px
}

.lgrid img,
.pimg {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px
}

.lgrid img {
    aspect-ratio: 16/10;
    object-fit: cover
}

/* projektet: 3 karta në rresht (desktop), 1 në telefon, me efektin e ndarjes mbi njëra-tjetrën */
.pstack {
    margin-top: 40px
}

.prow {
    position: sticky;
    top: calc(96px + var(--n) * 26px);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 8vh;
    padding-bottom: 4px;
    background: var(--bg);
    transform-origin: 50% 0;
    will-change: transform
}

.prow:last-child {
    margin-bottom: 0
}

.pcard {
    display: block;
    padding: clamp(20px, 2.4vw, 32px);
    background: var(--card);
    border: 1px solid var(--line);
    transform-origin: 50% 0;
    transition: background .3s
}

.pcard:hover,
.pcard:focus-visible {
    background: #fff
}

.pcard img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
    margin-bottom: 20px
}

.pcard h3 {
    font-weight: 200;
    font-size: 24px;
    line-height: 1.25;
    margin-bottom: 8px
}

.pcard p {
    color: var(--mute);
    font-size: 15px
}

/* mobile */
@media (max-width:860px) {
    .burger {
        display: block
    }

    header nav {
        display: none;
        position: fixed;
        inset: 78px 0 0 0;
        padding: 8px clamp(24px, 5vw, 72px) 40px;
        background: var(--card);
        color: var(--ice);
        overflow-y: auto
    }

    header.menu-open {
        background: var(--card);
        color: var(--ice)
    }

    header.menu-open nav {
        display: block
    }

    .menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0
    }

    .menu>li {
        border-bottom: 1px solid var(--line)
    }

    .menu>li>a.top {
        padding: 18px 0;
        font-size: 16px;
        opacity: 1
    }

    .has-mega>a.top::after {
        float: right;
        margin-top: 8px
    }

    .menu .cta {
        border: 0;
        margin-top: 24px
    }

    .menu .cta a {
        text-align: center
    }

    .mega {
        position: static;
        display: none;
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 0 24px;
        max-height: none;
        border: 0;
        background: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none
    }

    .open>.mega {
        display: grid
    }

    .mega .cols {
        grid-template-columns: 1fr
    }

    .dgrid {
        grid-template-columns: 1fr
    }

    .prow {
        display: contents
    }

    .pcard {
        position: sticky;
        top: calc(96px + var(--n) * 26px);
        margin-bottom: 8vh;
        will-change: transform
    }

    .prow:last-child .pcard:last-child {
        margin-bottom: 0
    }
}

@media (prefers-reduced-motion:reduce) {

    .mega,
    .menu>li>a.top,
    .has-mega>a.top::after {
        transition: none
    }
}