/* ==========================================================================
   02 — YERLEŞİM
   Konteyner, üst bant, header, navigasyon, mobil çekmece, footer
   ========================================================================== */

.container {
    width: var(--c);
    margin: auto;
}

section {
    padding: 104px 0;
}

.soft {
    background: var(--soft);
}

/* Bölüm başlığı (başlık + yan buton) */
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 46px;
}

.section-head .copy {
    max-width: 760px;
}

.section-head .copy p {
    margin-top: 17px;
    color: var(--muted);
    max-width: 680px;
}

/* --------------------------------------------------------------------------
   Üst iletişim bandı
   -------------------------------------------------------------------------- */

.top {
    height: 38px;
    background: var(--dark);
    color: #d5e6ee;
    font-size: 13px;
}

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

.top-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-links {
    display: flex;
    gap: 22px;
}

.top-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.top-links a:hover {
    color: #fff;
}

/* Sosyal medya simgeleri — yalnızca panelde bağlantı girilmişse basılır */
.top-social {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-left: 18px;
    border-left: 1px solid rgba(255, 255, 255, .16);
}

.top-social a {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 15px;
    transition: background .2s ease, color .2s ease;
}

.top-social a:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

header.site-header {
    position: fixed;
    top: 38px;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    transition: top .3s ease, background .3s ease, box-shadow .3s ease;
}

/* Sayfa kaydırıldığında header beyaza döner */
header.site-header.scrolled {
    top: 0;
}

/* Hero'su olmayan sayfalarda (hizmet listesi, detay, yasal metinler) header
   en baştan beyaz görünür — aksi hâlde beyaz yazı beyaz zeminde kaybolur. */
header.site-header.scrolled,
header.site-header.is-solid {
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 12px 30px rgba(16, 47, 73, .1);
    backdrop-filter: blur(15px);
}

.site-nav {
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.logo img {
    display: block;
    height: 46px;
    width: auto;
}

/* Header'da iki logo sürümü bulunur; zemine göre biri gösterilir.
   Varsayılan (saydam header, koyu hero) → açık sürüm.
   Seçici `.logo img`den daha özgül olmalı, yoksa gizleme kuralı ezilir. */
.logo .logo-on-light {
    display: none;
}

header.site-header.scrolled .logo-on-dark,
header.site-header.is-solid .logo-on-dark {
    display: none;
}

header.site-header.scrolled .logo-on-light,
header.site-header.is-solid .logo-on-light {
    display: block;
}

.navlinks {
    display: flex;
    gap: 26px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.navlinks a {
    position: relative;
    padding: 4px 0;
}

/* Alt çizgi animasyonu */
.navlinks a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    border-radius: 2px;
    background: var(--gold);
    transition: width .25s ease;
}

.navlinks a:hover::after,
.navlinks a[aria-current="page"]::after {
    width: 100%;
}

.navlinks a:hover {
    color: #ffd776;
}

header.site-header.scrolled .navlinks,
header.site-header.is-solid .navlinks {
    color: var(--navy);
}

header.site-header.scrolled .navlinks a:hover,
header.site-header.is-solid .navlinks a:hover {
    color: var(--teal);
}

header.site-header.scrolled .navlinks a::after,
header.site-header.is-solid .navlinks a::after {
    background: var(--teal);
}

.navacts {
    display: flex;
    gap: 10px;
}

/* Beyaz zeminde cam butonun okunabilir hale gelmesi */
header.site-header.scrolled .navacts .btn-glass,
header.site-header.is-solid .navacts .btn-glass {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
    backdrop-filter: none;
    box-shadow: 0 8px 20px rgba(16, 47, 73, .14);
}

header.site-header.scrolled .navacts .btn-glass:hover,
header.site-header.is-solid .navacts .btn-glass:hover {
    background: var(--teal);
    border-color: var(--teal);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Mobil menü butonu ve çekmecesi
   -------------------------------------------------------------------------- */

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 14px;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(9px);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
}

header.site-header.scrolled .menu-toggle,
header.site-header.is-solid .menu-toggle {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: var(--z-drawer);
    background: rgba(8, 31, 50, .55);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

.drawer-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: calc(var(--z-drawer) + 1);
    width: min(360px, 86vw);
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: #fff;
    box-shadow: -20px 0 60px rgba(8, 31, 50, .25);
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.4, 0, .2, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.drawer.open {
    transform: translateX(0);
}

.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.drawer .logo img {
    height: 38px;
}

.drawer-close {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--soft);
    color: var(--navy);
    font-size: 20px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.drawer-close:hover {
    background: var(--navy);
    color: #fff;
}

.drawer-links {
    display: flex;
    flex-direction: column;
}

.drawer-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
    color: var(--navy);
    font-size: 16px;
    font-weight: 800;
}

.drawer-links a:hover {
    color: var(--teal);
}

.drawer-links .i {
    color: var(--muted);
    font-size: 18px;
}

.drawer-acts {
    display: grid;
    gap: 10px;
    margin-top: 26px;
}

.drawer-contact {
    margin-top: auto;
    padding-top: 26px;
    color: var(--muted);
    font-size: 14px;
}

.drawer-contact a {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    font-weight: 700;
    color: var(--navy);
}

.drawer-social {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}

.drawer-social a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--soft);
    color: var(--navy);
    font-size: 19px;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.drawer-social a:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

/* Çekmece açıkken arka planın kaymasını engelle */
body.drawer-open {
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   Mobil sabit CTA çubuğu
   -------------------------------------------------------------------------- */

.mobile-cta {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: calc(var(--z-header) - 1);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px rgba(16, 47, 73, .1);
    gap: 10px;
}

.mobile-cta .btn {
    flex: 1 1 0;
    min-height: 50px;
    font-size: 14px;
    gap: 8px;
}

.btn-whatsapp {
    background: #25d366;
    color: #fff;
}

.btn-whatsapp:hover {
    background: #1eb855;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

footer.site-footer {
    padding: 62px 0 28px;
    background: var(--dark);
    color: #c6d8e2;
}

.footer {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 40px;
}

.site-footer .logo img {
    height: 42px;
}

.site-footer h4 {
    margin: 0 0 15px;
    color: #fff;
}

.site-footer nav a {
    display: block;
    margin: 8px 0;
    color: #abc1cf;
    font-size: 14px;
    transition: color .2s ease;
}

.site-footer nav a:hover {
    color: var(--teal-light);
}

.footer-intro {
    margin-top: 17px;
    color: #abc1cf;
}

.bottom {
    margin-top: 38px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: #8fa9b8;
}
