/* Klassa Group: açılır menüler, sektör ve pazar sayfaları (style.css'ten sonra yüklenir). */

/* ------------------------------------------------------------------ Alt menüler */
.nav-sub-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 0; border: 0; background: none; color: inherit;
    font: inherit; font-size: .9375rem; font-weight: 500; line-height: 1.6;
    opacity: .84; cursor: pointer; transition: opacity .2s;
}
.nav-sub-toggle:hover, .has-sub.is-open > .nav-sub-toggle, .nav-list > li.is-current > .nav-sub-toggle { opacity: 1; }
.nav-chevron { flex-shrink: 0; transition: transform .2s var(--ease); }
.has-sub.is-open > .nav-sub-toggle .nav-chevron { transform: rotate(180deg); }

.nav-sub {
    position: absolute; top: 100%; z-index: 120;
    background: #fff; color: var(--text);
    border: 1px solid var(--line); border-radius: 18px;
    box-shadow: 0 24px 60px rgba(7, 23, 53, .16);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .18s, transform .18s var(--ease), visibility 0s linear .18s;
}
.has-sub.is-open > .nav-sub {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .18s, transform .18s var(--ease);
}
.nav-list .nav-sub a { opacity: 1; }

.nav-drop { inset-inline-start: -20px; width: 360px; padding: 10px; }
.nav-drop li + li { margin-top: 2px; }
.nav-list .nav-drop a { display: block; padding: 12px 14px; border-radius: 12px; text-decoration: none; transition: background-color .15s; }
.nav-list .nav-drop a:hover { background: var(--paper); }
.nav-drop strong { display: block; font-size: .9375rem; font-weight: 600; color: var(--navy); }
.nav-drop span { display: block; margin-top: 2px; font-size: .8125rem; font-weight: 400; line-height: 1.45; color: var(--muted); }

.nav-mega {
    left: 50%; transform: translate(-50%, 6px);
    width: min(1080px, calc(100vw - var(--gutter) * 2));
    padding: 28px;
}
.has-mega.is-open > .nav-mega { transform: translate(-50%, 0); }
.mega-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 28px; }
.nav-list .mega-cat {
    display: flex; align-items: center; gap: 10px;
    font-size: .9375rem; font-weight: 600; line-height: 1.3; color: var(--navy); text-decoration: none;
}
.nav-list .mega-cat:hover span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.mega-cat-icon {
    display: grid; place-items: center; flex-shrink: 0;
    width: 34px; height: 34px; border-radius: 10px;
    background: var(--paper); color: var(--gold);
}
.mega-cat-icon svg { width: 20px; height: 20px; }
.mega-col ul { display: grid; gap: 4px; margin-top: 10px; padding-inline-start: 44px; }
.nav-list .mega-col ul a { font-size: .875rem; font-weight: 400; line-height: 1.4; color: var(--muted); text-decoration: none; }
.nav-list .mega-col ul a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.nav-list .mega-all {
    display: flex; flex-direction: column; gap: 8px;
    padding: 18px; border-radius: 14px;
    background: var(--ink); color: #fff; text-decoration: none;
    transition: background-color .2s;
}
.nav-list .mega-all:hover { background: var(--navy-2); }
.mega-all strong { color: var(--gold-2); font-size: .9375rem; font-weight: 600; }
.mega-all span {
    font-size: .8125rem; font-weight: 400; line-height: 1.45; color: var(--on-dark-muted);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

@media (min-width: 981px) {
    .site-nav { align-self: stretch; }
    .nav-list { height: 100%; align-items: stretch; }
    .nav-list > li { display: flex; align-items: center; position: relative; }
    .nav-list > li.has-mega { position: static; }
    .nav-list > li.is-current > .nav-sub-toggle { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 1.5px; }
}
@media (hover: hover) and (min-width: 981px) {
    .has-sub:hover > .nav-sub { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s var(--ease); }
    .has-mega:hover > .nav-mega { transform: translate(-50%, 0); }
    .has-sub:hover > .nav-sub-toggle { opacity: 1; }
    .has-sub:hover > .nav-sub-toggle .nav-chevron { transform: rotate(180deg); }
}
@media (max-width: 1080px) and (min-width: 981px) {
    .mega-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
    .nav-list > li.has-sub { border-bottom: 1px solid var(--line); }
    .nav-sub-toggle {
        width: 100%; justify-content: space-between;
        padding: 18px 0; font-size: 1.375rem; opacity: 1;
    }
    .nav-sub, .nav-mega {
        position: static; display: none;
        width: auto; padding: 0 0 20px;
        border: 0; border-radius: 0; box-shadow: none;
        opacity: 1; visibility: visible; transform: none; transition: none;
    }
    .has-sub.is-open > .nav-sub, .has-mega.is-open > .nav-mega { display: block; transform: none; }
    .mega-grid { grid-template-columns: 1fr; gap: 18px; }
    .nav-list .nav-sub a { padding: 0; border-bottom: 0; font-size: 1rem; }
    .nav-list .mega-col ul a { display: block; padding: 6px 0; font-size: 1rem; }
    .nav-list .nav-drop a { padding: 10px 0; }
    .nav-drop span { font-size: .875rem; }
    .nav-list .mega-all { padding: 16px; }
    .nav-list .mega-all span { display: none; }
}

/* ------------------------------------------------------------------ Sayfa başlığı */
.page-hero {
    padding-block: calc(var(--header-h) + 48px) clamp(56px, 7vw, 88px);
    color: #fff;
    background:
        radial-gradient(55% 80% at 82% 30%, rgba(39, 84, 170, .42) 0%, rgba(7, 23, 53, 0) 70%),
        var(--ink);
}
html[dir="rtl"] .page-hero {
    background:
        radial-gradient(55% 80% at 18% 30%, rgba(39, 84, 170, .42) 0%, rgba(7, 23, 53, 0) 70%),
        var(--ink);
}
.page-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}
.page-hero-grid--solo { grid-template-columns: minmax(0, 1fr); }
.page-hero-grid--solo .page-hero-copy { max-width: 52rem; }
.page-hero h1 {
    margin-top: 22px;
    font-size: clamp(2rem, 1.25rem + 2.5vw, 3.4rem);
    line-height: 1.08; letter-spacing: -0.025em;
    text-wrap: balance;
}
html[lang="ar"] .page-hero h1 { letter-spacing: 0; line-height: 1.35; }
.page-hero-lead {
    margin-top: 20px; max-width: 40rem;
    font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
    color: var(--on-dark-muted);
}
.page-hero .hero-actions { margin-top: 32px; }
.page-hero .btn-ghost svg { width: 20px; height: 20px; }
.page-hero-media {
    border-radius: var(--r-l); overflow: hidden;
    aspect-ratio: 4 / 3; background: rgba(255, 255, 255, .06);
}
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-media--icon {
    display: grid; place-items: center;
    border: 1px solid rgba(255, 255, 255, .12);
    background: linear-gradient(165deg, #133170 0%, #0A1F47 100%);
    color: var(--gold-2);
}
.page-hero-media--icon svg { width: 34%; height: auto; stroke-width: 1.1; }

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: .875rem; color: var(--on-dark-muted); }
.breadcrumb li + li::before { content: "/"; margin-inline-end: 10px; opacity: .5; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb [aria-current] { color: #fff; }

@media (max-width: 900px) {
    .page-hero { padding-top: calc(var(--header-h) + 32px); }
    .page-hero-grid { grid-template-columns: minmax(0, 1fr); }
    .page-hero-media { aspect-ratio: 16 / 9; }
    .page-hero-media--icon { display: none; }
}

/* ------------------------------------------------------------------ İç sayfa bölümleri */
.section-sm { padding-block: clamp(56px, 7vw, 96px); }
.bg-paper { background: var(--paper); }
.section-sm .section-head h2, .info-card h2, .callout h2 { letter-spacing: -0.015em; }
.section-sm .section-head h2 { font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.375rem); }
.narrow { max-width: calc(52rem + var(--gutter) * 2); }

.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 32px; }
.check-grid li {
    display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start;
    padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px;
    background: #fff; font-weight: 500; line-height: 1.45;
}
.check-list { display: grid; gap: 14px; margin-top: 22px; }
.check-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; line-height: 1.5; }
.check-grid svg, .check-list svg { width: 22px; height: 22px; margin-top: 1px; color: var(--gold); }

.info-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.info-card { padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--r-l); background: #fff; }
.bg-paper .info-card { border-color: transparent; }
.info-card h2 { display: flex; align-items: center; gap: 12px; font-size: 1.375rem; line-height: 1.25; }
.info-card h2 svg { flex-shrink: 0; width: 26px; height: 26px; color: var(--navy); }
.info-card--plain { padding-inline: 0; border: 0; background: transparent; }
.info-card--plain h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }

.callout {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
    padding: clamp(26px, 3.5vw, 40px); border-radius: var(--r-l);
    background: var(--ink); color: #fff;
}
.callout > div { flex: 1 1 26rem; }
.callout h2 { font-size: 1.5rem; line-height: 1.25; }
.callout p { margin-top: 10px; max-width: 42rem; color: var(--on-dark-muted); }
.callout--stack { flex-direction: column; align-items: flex-start; justify-content: center; }
.callout--stack p { margin-top: 0; font-size: 1.0625rem; color: var(--on-dark); }
.pill-links { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-links a {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 44px; padding: 0 18px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px;
    color: #fff; font-weight: 500; text-decoration: none;
    transition: background-color .2s, border-color .2s;
}
.pill-links a:hover { border-color: var(--gold-2); background: rgba(255, 255, 255, .06); }
.pill-links svg { width: 16px; height: 16px; }

.faq { margin-top: 28px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
    padding: 22px 0; list-style: none; cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 1.125rem; line-height: 1.4; }
.faq-item summary::after {
    content: "+"; flex-shrink: 0; margin-top: -2px;
    font-size: 1.625rem; font-weight: 300; line-height: 1; color: var(--gold-text);
    transition: transform .2s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { max-width: 46rem; padding-bottom: 24px; color: var(--muted); }

.process--compact { padding-block: clamp(64px, 8vw, 104px); }

@media (max-width: 820px) { .info-cols { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ Kartlar */
.kcard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 32px; }
.kcard-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kcard {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column;
    border: 1px solid var(--line); border-radius: 18px; background: #fff;
    transition: box-shadow .2s, transform .2s var(--ease);
}
.bg-paper .kcard { border-color: transparent; }
.kcard--linked:hover { box-shadow: 0 18px 40px rgba(7, 23, 53, .12); transform: translateY(-2px); }
.kcard--linked:focus-within { outline: 3px solid var(--gold-2); outline-offset: 3px; }
.kcard-media { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--paper); }
.kcard-media--icon {
    display: grid; place-items: center;
    background: linear-gradient(165deg, #133170 0%, #0A1F47 100%); color: var(--gold-2);
}
.kcard-media--icon svg { width: 44px; height: 44px; }
.kcard-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 20px; }
.kcard h3 { font-size: 1.0625rem; line-height: 1.3; letter-spacing: -0.005em; }
.kcard-link { color: inherit; text-decoration: none; }
.kcard-link:focus-visible { outline: none; }
.kcard-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.kcard p { font-size: .9375rem; line-height: 1.5; color: var(--muted); }
.kcard-more {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: auto; padding-top: 6px;
    font-size: .9375rem; font-weight: 600; color: var(--navy);
}
.kcard-quote {
    margin-top: auto; padding-top: 6px;
    font-size: .9375rem; font-weight: 500; color: var(--gold-text);
    text-decoration: underline; text-underline-offset: 3px;
}

@media (max-width: 1100px) { .kcard-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px)  { .kcard-grid, .kcard-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px)  { .kcard-grid, .kcard-grid--4 { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ Sektörler sayfası */
.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-nav .chip { display: inline-flex; align-items: center; text-decoration: none; }
.cat-block { margin-top: clamp(48px, 6vw, 72px); scroll-margin-top: calc(var(--header-h) + 16px); }
.cat-title { display: flex; align-items: center; gap: 14px; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -0.015em; }
.cat-icon {
    display: grid; place-items: center; flex-shrink: 0;
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--paper); color: var(--gold);
}
.cat-icon svg { width: 24px; height: 24px; }
.cat-block .kcard-grid { margin-top: 24px; }

/* ------------------------------------------------------------------ Ana sayfa eklemeleri */
.tile-link { color: inherit; text-decoration: none; }
.tile-link:focus-visible { outline: none; }
.tile-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tile--linked:focus-within { outline: 3px solid var(--gold-2); outline-offset: 3px; }
.tile-arrow {
    position: absolute; top: 18px; inset-inline-end: 18px;
    display: grid; place-items: center;
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255, 255, 255, .16); color: #fff;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    transition: background-color .2s, color .2s;
}
.tile--linked:hover .tile-arrow { background: var(--gold-2); color: var(--ink); }

.sectors-foot { display: flex; justify-content: center; margin-top: 36px; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }

.markets { background: var(--ink); color: #fff; }
.markets .lead { color: var(--on-dark-muted); }
.market-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 48px; }
.market-card {
    position: relative;
    display: flex; flex-direction: column; gap: 12px;
    padding: clamp(24px, 3vw, 32px);
    border: 1px solid rgba(255, 255, 255, .14); border-radius: 20px;
    background: rgba(255, 255, 255, .03);
    transition: border-color .2s, background-color .2s;
}
.market-card:hover { border-color: var(--gold-2); background: rgba(255, 255, 255, .06); }
.market-card:focus-within { outline: 3px solid var(--gold-2); outline-offset: 3px; }
.market-card h3 { font-size: 1.5rem; letter-spacing: -0.015em; }
.market-card h3 a { color: #fff; text-decoration: none; }
.market-card h3 a:focus-visible { outline: none; }
.market-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.market-card p { color: var(--on-dark-muted); }
.market-more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--gold-2); }

@media (max-width: 900px) { .market-cards { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .sectors-foot .btn { width: 100%; } }

/* ------------------------------------------------------------------ Alt bilgi: beş sütun */
.footer-grid--wide { grid-template-columns: minmax(0, 3fr) repeat(4, minmax(0, 2fr)); gap: 32px; }
@media (max-width: 1100px) {
    .footer-grid--wide { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .footer-grid--wide .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 700px) { .footer-grid--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .footer-grid--wide { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ Sağdan sola */
html[dir="rtl"] .pill-links svg,
html[dir="rtl"] .kcard-more svg,
html[dir="rtl"] .market-more svg,
html[dir="rtl"] .tile-arrow svg,
html[dir="rtl"] .sectors-foot svg,
html[dir="rtl"] .callout .btn svg { transform: scaleX(-1); }
