:root {
    --nav-h: 72px;
    --pad-x: 56px;
    --brand: #ffcc00;
    --brand-ink: #121212;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h)
}

.container {
    /* keep a predictable max width and use padding for spacing */
    max-width: 1200px;
    padding-inline: var(--pad-x);
    margin-inline: auto;
}

/* NAV (CSS-only hamburger) — Hizmetler sayfasındaki ile aynı */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--nav-h);
    z-index: 1000;
    background: #000;
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.nav__wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px
}

.brand img {
    /* responsive logo sizes: desktop/tablet/mobile */
    height: 56px; /* desktop default */
    max-height: 56px;
    width: auto;
    border-radius: 8px;
}

.brand picture img {
    height: 56px;
    max-height: 56px;
    width: auto;
}

/* tablet: slightly smaller */
@media (max-width:1024px) {
    .brand img, .brand picture img {
        height: 48px;
        max-height: 48px;
    }
}

.brand span {
    font-weight: 800;
    letter-spacing: .3px
}

.nav__checkbox {
    display: none
}

.nav__hamburger {
    display: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px
}

.nav__hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: #fff;
    border-radius: 2px
}

.nav__hamburger span+span {
    margin-top: 5px
}

/* animate hamburger into X when checked */
.nav__hamburger span {
    transition: transform .22s ease, opacity .18s ease;
}

.nav__checkbox:checked+.nav__hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav__checkbox:checked+.nav__hamburger span:nth-child(2) {
    opacity: 0;
}

.nav__checkbox:checked+.nav__hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav__links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0
}

.nav__links a {
    color: #fff;
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none;
    transition: background .25s ease;
}

.nav__links a:hover,
.nav__links a:focus {
    background: var(--brand);
    color: var(--brand-ink);
    outline: none
}

/* İçeriğin NAV’a çarpmaması için */
.header-spacer {
    height: var(--nav-h)
}

/* Mobil menü */
@media (max-width:768px) {
    .nav__hamburger {
        display: block;
        position: fixed;
        right: 16px;
        top: calc(var(--nav-h) / 2);
        transform: translateY(-50%);
        z-index: 1101;
    }

    .nav__links {
        position: fixed;
        top: var(--nav-h);
        right: 0;
        background: rgba(0, 0, 0, .95);
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: min(240px, 90vw);
        padding: 14px;
        border-bottom-left-radius: 12px;
        border-left: 1px solid rgba(255, 255, 255, .08);
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        transform-origin: top right;
        transform: translateY(-8px) scaleY(.98);
        opacity: 0;
        pointer-events: none;
        transition: transform .22s ease, opacity .18s ease;
    }

    .nav__checkbox:checked+.nav__hamburger+.nav__links {
        transform: translateY(0) scaleY(1);
        opacity: 1;
        pointer-events: auto;
    }

    /* reduce visual clutter on small screens */
    .brand span {
        display: none;
    }

    .brand img {
        height: 40px;
    }
}

/* mobile extra small: keep logo compact */
@media (max-width:480px) {
    .brand img, .brand picture img {
        height: 40px;
        max-height: 40px;
    }
}