@font-face {
    font-family: 'Swiss721';
    src: url('/assets/fonts/swiss721-light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Swiss721';
    src: url('/assets/fonts/swiss721-regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Swiss721';
    src: url('/assets/fonts/swiss721-bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Swiss721';
    src: url('/assets/fonts/swiss721-italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

:root {
    --color-primary: #FFAD02;
    --color-primary-soft: #FDD271;
    --color-tab-inactive: #FDD271;
    --color-text: #231F1F;
    --color-white: #ffffff;
    --sidebar-width: 300px;
    --font-body: 'Swiss721', Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    color: var(--color-text);
    font-family: var(--font-body);
    font-weight: 300;
    background: var(--color-white);
}

/* Masaüstünde sayfa kaymaz (no-scroll); mobilde serbest bırakılır. */
@media (min-width: 1025px) {

    html,
    body {
        overflow: hidden;
    }
}

/* ---------- Üst bar: logo + menü + dil değiştirici ---------- */
.topbar {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 28px 40px;
    background: var(--color-white);
    flex: 0 0 auto;
}

.brand {
    display: block;
    line-height: 0;
    flex: 0 0 calc(var(--sidebar-width) - 40px);
}

.brand img {
    display: block;
    width: 100%;
    height: auto;
}

.tabs {
    display: flex;
    gap: 30px;
    flex: 1 1 auto;
    flex-wrap: wrap;
    margin-left: 15px;
}

.tab {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 28px;
    text-decoration: none;
    color: var(--color-text);
    border-radius: 2px;
    min-width: 170px;
    transition: opacity .15s ease, background .15s ease;
}

.tab__title {
    font-family: 'Swiss721', Arial, sans-serif;
    font-weight: 400;
    font-size: 1.3rem;
}

.tab__sub {
    font-family: 'Swiss721', Arial, sans-serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1rem;
    opacity: .85;
}

.tab--about {
    background: #FDD271;
}

.tab--expertise {
    background: #FDD271;
}

.tab--partners {
    background: #FDD271;
}

.tab--contact {
    background: #FDD271;
}

.tab--active,
.tab:hover {
    background: #FFAD02 !important;
    opacity: 1;
    box-shadow: none;
}

/* Mobil hamburger düğmesi (checkbox-hack, JS gerektirmez) — masaüstünde gizli */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
}

.lang-switch {
    flex: 0 0 auto;
    margin-left: auto;
    align-self: flex-start;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: .8rem;
    padding: 6px 12px;
    border-radius: 2px;
}

.lang-switch:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* ---------- Gövde: sabit sidebar + içerik ---------- */
.layout {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    gap: clamp(18px, 2.6vw, 42px);
    padding-bottom: clamp(18px, 2.6vw, 42px);
}

.sidebar {
    flex: 0 0 var(--sidebar-width);
    background: #FDD271;
    color: var(--color-text);
    padding: 20px 18px;
    overflow-y: auto;
}

.sidebar-block {
    margin-bottom: 22px;
}

.sidebar-block h2 {
    font-family: 'Swiss721', Arial, sans-serif;
    font-weight: 400;
    font-size: .88rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin: 0 0 8px;
    border-bottom: 2px solid var(--color-text);
    padding-bottom: 4px;
}

.sidebar table {
    width: 100%;
    border-collapse: collapse;
    font-size: .76rem;
    margin-bottom: 4px;
}

.sidebar th,
.sidebar td {
    text-align: left;
    padding: 2px 4px;
    border-bottom: 1px dotted rgba(35, 31, 31, .35);
    text-transform: capitalize;
}

.sidebar th {
    font-weight: 700;
}

.sidebar-source {
    display: block;
    font-family: 'Swiss721', Arial, sans-serif;
    font-style: italic;
    font-size: .66rem;
    opacity: .8;
    margin-top: 4px;
    line-height: 1.3;
}

/* Mobil açılır/kapanır sidebar (checkbox-hack, JS gerektirmez) — masaüstünde devre dışı */
.sidebar-toggle {
    display: none;
}

.sidebar-toggle-label {
    display: none;
}

.content {
    flex: 1 1 auto;
    padding: 40px 48px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.content h1 {
    font-family: 'Swiss721', Arial, sans-serif;
    font-weight: 400;
    font-size: 2.3rem;
    margin: 0 0 4px;
}

.content .lead-en {
    font-family: 'Swiss721', Arial, sans-serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1.3rem;
    color: rgba(35, 31, 31, .7);
    margin: 0 0 24px;
}

.content p {
    line-height: 1.6;
    max-width: 100%;
    margin: 0 0 16px;
    font-size: 1rem;
    font-weight: 300;
}

.content h2,
.content h3 {
    font-family: 'Swiss721', Arial, sans-serif;
    font-weight: 400;
    font-size: 1.25rem;
    margin: 20px 0 10px;
}

/* İç sayfa metinleri için düzeltmeler */
@media (min-width: 1025px) {
    .content:not(.home-content) {
        overflow-y: hidden;
        padding-bottom: 20px;
        height: 100%;
        --font-scale: 1;
        font-size: calc(1rem * var(--font-scale));
    }

    .content:not(.home-content) h1 {
        margin-bottom: calc(24px * var(--font-scale));
        font-size: calc(2rem * var(--font-scale));
    }

    .content:not(.home-content) h2,
    .content:not(.home-content) h3 {
        font-size: calc(1.2rem * var(--font-scale));
        margin: 0 0 calc(8px * var(--font-scale));
    }

    .content:not(.home-content) p,
    .content:not(.home-content) li {
        font-size: calc(1rem * var(--font-scale));
        line-height: 1.45;
        margin-bottom: 12px;
    }

    .content:not(.home-content) ul {
        padding-left: 20px;
    }
}

.fuko-cols-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    width: 100%;
}

.fuko-col {
    display: flex;
    flex-direction: column;
}

@media (min-width: 1025px) {
    .fuko-cols-wrapper {
        flex-direction: row;
        gap: 40px;
    }
}

.site-footer {
    position: fixed;
    right: 12px;
    bottom: 4px;
    font-size: .68rem;
    color: rgba(35, 31, 31, .5);
    pointer-events: none;
}

/* ---------- Ana sayfa: zemin görseli (tek görsel = statik, 2+ görsel = fade slider) ---------- */
.home-content {
    position: relative;
}

/* Zemin görseli slider'ı — tek görselde statik, 2+ görselde fade ile döner.
   Hem kutucuklu ana sayfada hem de tam ekran slider alternatifinde kullanılır. */
.bg-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    border-radius: 2px;
}

.bg-slider__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-fill-mode: both;
}

.bg-slider__slide--static {
    opacity: 1;
    animation: none;
}

/* Tam ekran slider alternatifi: içerik kutusu kenarlara kadar dolsun diye padding kaldırılır.
   Masaüstünde sadece slider görünür; mobil fallback'i (home-tiles) burada gizli tutulur —
   mobilde standart ana sayfadaki kutucuklu görünüme dönülür (bkz. mobil medya sorgusu). */
.content--bg-slider {
    position: relative;
    padding: 0;
}

.content--bg-slider .bg-slider {
    border-radius: 0;
}

.content--bg-slider .home-tiles {
    display: none;
}

/* ---------- Ana sayfa: kademeli navigasyon kutuları ---------- */
.home-tiles {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.home-tile {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: #1A1919;
    text-decoration: none;
    padding: 48px 24px 24px 48px;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform .2s ease, box-shadow .2s ease;
    width: 18.3%;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
}

.home-tile::before {
    content: "";
    position: absolute;
    top: 28px;
    left: 28px;
    width: 65%;
    height: 35%;
    border-top: 3px solid #F3B13E;
    border-left: 3px solid #F3B13E;
    pointer-events: none;
    box-sizing: border-box;
    transition: width 0.2s, height 0.2s;
}

.home-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, .1);
}

.home-tile:hover::before {
    width: 68%;
    height: 38%;
}

.home-tile__title {
    font-family: 'Swiss721', Arial, sans-serif;
    font-weight: 400;
    font-size: clamp(1.2rem, 1.8vw, 1.8rem);
    color: #1A1919;
    margin-bottom: 4px;
    line-height: 1.1;
    text-align: left;
}

.home-tile__sub {
    font-family: 'Swiss721', Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    color: #1A1919;
    opacity: .85;
    text-align: left;
}

/* Specific Cards */
.home-tile--about {
    left: 5.5%;
    top: 2.3%;
    background: #FDD271;
}

.home-tile--expertise {
    left: 28.6%;
    top: 18.3%;
    background: #FDD271;
}

.home-tile--partners {
    left: 51.8%;
    top: 44.9%;
    background: #FDD271;
}

.home-tile--contact {
    left: 74.9%;
    top: 29.0%;
    background: #FDD271;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 24px 48px 48px 24px;
}

.home-tile--contact .home-tile__title,
.home-tile--contact .home-tile__sub {
    text-align: right;
}

.home-tile--contact::before {
    top: auto;
    left: auto;
    bottom: 20px;
    right: 20px;
    border-top: none;
    border-left: none;
    border-bottom: 3px solid #F3B13E;
    border-right: 3px solid #F3B13E;
}

.contact-grid {
    display: flex;
    flex-direction: row;
    gap: 32px;
    flex: 1;
    min-height: 540px;
    margin-bottom: 0;
    padding-bottom: 0;
}


.contact-map {
    position: relative;
    flex: 1 1 55%;
}

.contact-map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 2px;
}

.map-link {
    position: absolute;
    right: 8px;
    bottom: 8px;
    background: rgba(255, 255, 255, .92);
    color: var(--color-text);
    font-size: .72rem;
    padding: 4px 9px;
    border-radius: 2px;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}

.contact-info {
    flex: 1 1 45%;
}

.contact-info h2 {
    font-family: 'Swiss721', Arial, sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    margin-bottom: 18px;
}

.contact-info dl {
    display: grid;
    grid-template-columns: 100px 1fr;
    row-gap: 14px;
    column-gap: 12px;
}

.contact-info dt {
    font-weight: 700;
}

.contact-info dd {
    margin: 0;
    font-weight: 300;
}

/* ---------- Mobil ---------- */
@media (max-width: 1024px) {

    /* Masaüstündeki "tek viewport'a sığdırma" kısıtlaması mobilde tamamen
       kaldırılır: sayfa doğal yüksekliğine büyür, tarayıcı kendi sayfa
       kaydırmasını (page scroll) kullanır. */
    html,
    body {
        height: auto;
        overflow: visible;
    }

    .layout {
        flex-direction: column;
        height: auto;
        min-height: 0;
    }

    .sidebar {
        flex: 0 0 auto;
        width: 100%;
        overflow-y: visible;
    }

    .content {
        flex: 1 1 auto;
        overflow-y: visible;
    }

    .contact-grid {
        flex-direction: column;
        height: auto;
        margin-bottom: 0;
    }

    .contact-map {
        min-height: 220px;
    }

    .site-footer {
        position: static;
        text-align: center;
        margin-top: 24px;
    }

    .topbar {
        padding: 16px 20px;
        gap: 16px;
        flex-wrap: wrap;
    }

    .brand {
        flex: 0 0 auto;
        width: auto;
    }

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

    /* Üst menü: mobilde hamburger düğmesinin arkasına gizlenir (checkbox-hack) */
    .nav-toggle-label {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 30px;
        height: 26px;
        margin-left: auto;
        order: 2;
        cursor: pointer;
    }

    .nav-toggle-label span {
        display: block;
        height: 3px;
        background: var(--color-primary);
        border-radius: 2px;
    }

    .lang-switch {
        order: 3;
        margin-left: 14px;
    }

    .tabs {
        display: none;
        order: 4;
        flex-basis: 100%;
        width: 100%;
        flex-direction: column;
        gap: 8px;
        margin-top: 14px;
        margin-left: 0;
    }

    .nav-toggle:checked~.tabs {
        display: flex;
    }

    .tab {
        padding: 12px 18px;
        min-width: 0;
    }

    .tab__title {
        font-size: 1.05rem;
    }

    .tab__sub {
        font-size: .85rem;
    }

    /* Piyasa verileri (LME/döviz/çapraz kur) paneli: mobilde açılır/kapanır,
       varsayılan olarak KAPALI gelir. Saf CSS "checkbox hack" — JS gerekmez. */
    .sidebar-toggle-label {
        display: block;
        cursor: pointer;
        font-family: 'Swiss721', Arial, sans-serif;
        font-weight: 400;
        font-size: .95rem;
        text-transform: uppercase;
        letter-spacing: .03em;
        padding: 10px 4px;
        border-bottom: 2px solid var(--color-text);
        user-select: none;
    }

    .sidebar-toggle-label::after {
        content: ' \25BE';
    }

    .sidebar-toggle:checked~.sidebar-toggle-label::after {
        content: ' \25B4';
    }

    .sidebar-panels {
        max-height: 0;
        overflow: hidden;
    }

    .sidebar-toggle:checked~.sidebar-panels {
        max-height: none;
        overflow: visible;
    }

    /* Ana sayfa kutuları mobilde dikey akışa döner (mutlak konumlandırma kaldırılır) */
    .home-tiles {
        display: flex;
        flex-direction: column;
        gap: 16px;
        height: auto;
        padding: 0;
    }

    .home-tile,
    .home-tile--about,
    .home-tile--expertise,
    .home-tile--partners,
    .home-tile--contact {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 110px;
        aspect-ratio: auto;
        padding: 30px 24px 24px 28px;
    }

    /* Alternatif ana sayfa: mobilde de slider görünür olacak */
    .content--bg-slider {
        padding: 0;
        min-height: 480px;
        height: 65vh;
    }

    .content--bg-slider .bg-slider {
        display: block;
    }

    .content--bg-slider .home-tiles {
        display: none;
    }
}