/*
Theme Name: İş Hukuku Bağımsız Tema
Author: Site Yönetimi
Description: İş hukuku ve iş kazası bilgi platformu için bağımsız tema.
Version: 1.4.0
Text Domain: bdi
*/

:root {
    --bg: #f5f7f8;
    --surface: #ffffff;
    --soft: #edf2f4;
    --ink: #16232d;
    --muted: #61707a;
    --line: #dbe3e6;
    --brand: #173d50;
    --brand-deep: #102d3b;
    --accent: #ad8749;
    --accent-soft: #f3eadc;
    --radius: 18px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.65;
}

a {
    color: var(--brand);
    text-underline-offset: .16em;
}

a:hover,
a:focus {
    color: var(--brand-deep);
}

.bdi-shell {
    width: min(calc(100% - 40px), var(--max));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(14px);
}

.header-row {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    min-width: 230px;
    flex-direction: column;
    color: var(--ink);
    text-decoration: none;
}

.brand strong {
    font-size: 1.03rem;
    letter-spacing: -.02em;
}

.brand span {
    color: var(--muted);
    font-size: .76rem;
}

.primary-nav ul,
.footer-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-nav > ul {
    display: flex;
    gap: 3px;
    align-items: center;
}

.primary-nav a {
    display: block;
    padding: 10px 8px;
    border-radius: 9px;
    color: var(--ink);
    font-size: .86rem;
    font-weight: 650;
    text-decoration: none;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a {
    background: var(--soft);
}

.hero {
    padding: 74px 0 58px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(
            circle at 82% 15%,
            rgba(173,135,73,.14),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            #fff 0%,
            var(--bg) 100%
        );
}

.hero-grid {
    display: grid;
    grid-template-columns:
        minmax(0,1.25fr)
        minmax(300px,.75fr);
    gap: 52px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 7px 11px;
    border: 1px solid #ded1bc;
    border-radius: 999px;
    background: var(--accent-soft);
    color: #765929;
    font-size: .74rem;
    font-weight: 750;
    letter-spacing: .05em;
}

.hero h1 {
    max-width: 820px;
    margin: 0;
    color: var(--brand-deep);
    font-size: clamp(2.35rem,5vw,4.75rem);
    line-height: 1;
    letter-spacing: -.055em;
}

.hero .lead {
    max-width: 760px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: clamp(1.02rem,2vw,1.2rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border: 1px solid var(--brand);
    border-radius: 11px;
    background: var(--brand);
    color: #fff;
    font-weight: 750;
    text-decoration: none;
}

.button:hover,
.button:focus {
    background: var(--brand-deep);
    color: #fff;
}

.button.secondary {
    border-color: var(--line);
    background: #fff;
    color: var(--brand);
}

.hero-panel,
.card,
.page-side {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.hero-panel {
    padding: 28px;
    box-shadow: 0 18px 45px rgba(16,45,59,.08);
}

.hero-panel h2 {
    margin: 0 0 14px;
}

.hero-panel ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero-panel li {
    padding-bottom: 9px;
    border-bottom: 1px solid var(--line);
}

.hero-panel li:last-child {
    border-bottom: 0;
}

.section {
    padding: 64px 0;
}

.section.white {
    background: #fff;
}

.section-head {
    max-width: 770px;
    margin-bottom: 30px;
}

.section-head h2 {
    margin: 0;
    color: var(--brand-deep);
    font-size: clamp(1.75rem,3vw,2.5rem);
    line-height: 1.12;
    letter-spacing: -.035em;
}

.section-head p,
.card p,
.footer-note {
    color: var(--muted);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 18px;
}

.card {
    min-height: 205px;
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.card h3 {
    margin: 0;
    color: var(--brand-deep);
}

.card-link {
    margin-top: auto;
    font-weight: 750;
    text-decoration: none;
}

.calculator-strip {
    padding: 30px;
    border-radius: 24px;
    background: var(--brand-deep);
    color: #fff;
}

.calculator-strip h2 {
    margin: 0;
}

.calculator-strip p {
    color: rgba(255,255,255,.78);
}

.calculator-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 22px;
}

.calculator-links a {
    padding: 10px 13px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    color: #fff;
    text-decoration: none;
    font-weight: 650;
}

.page-hero {
    padding: 50px 0 34px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.page-hero h1 {
    max-width: 920px;
    margin: 0;
    color: var(--brand-deep);
    font-size: clamp(2rem,4vw,3.5rem);
    line-height: 1.06;
    letter-spacing: -.045em;
}

.breadcrumb {
    margin-bottom: 12px;
    color: var(--muted);
    font-size: .84rem;
}

.breadcrumb a {
    color: var(--muted);
    text-decoration: none;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) 300px;
    gap: 44px;
    align-items: start;
}

.entry-content {
    padding: 42px 0 72px;
}

.entry-content p,
.entry-content li {
    color: #34434c;
}

.entry-content h2,
.entry-content h3 {
    color: var(--brand-deep);
}

.page-side {
    margin-top: 42px;
    padding: 22px;
}

.child-pages {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.child-pages a {
    padding: 9px 10px;
    border-radius: 8px;
    background: var(--soft);
    font-size: .9rem;
    font-weight: 650;
    text-decoration: none;
}

.notice {
    margin-top: 22px;
    padding: 18px 20px;
    border-left: 4px solid var(--accent);
    border-radius: 4px 12px 12px 4px;
    background: var(--accent-soft);
}

.site-footer {
    padding: 42px 0 100px;
    border-top: 1px solid var(--line);
    background: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 40px;
}

.footer-note {
    max-width: 680px;
    font-size: .86rem;
}

.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.footer-nav a {
    color: var(--muted);
    font-size: .85rem;
    text-decoration: none;
}

.mobile-contact {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 120;
    display: none;
    grid-template-columns: repeat(3,1fr);
    border-top: 1px solid var(--line);
    background: rgba(255,255,255,.98);
}

.mobile-contact a {
    padding: 12px 8px;
    color: var(--brand);
    font-size: .82rem;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
}

@media (max-width: 1060px) {

    .primary-nav {
        display: none;
    }

    .hero-grid,
    .content-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .card-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (max-width: 720px) {

    .bdi-shell {
        width: min(calc(100% - 28px),var(--max));
    }

    .header-row {
        min-height: 68px;
    }

    .hero {
        padding: 48px 0 40px;
    }

    .hero h1 {
        font-size: clamp(2.2rem,12vw,3.5rem);
    }

    .section {
        padding: 48px 0;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .mobile-contact {
        display: grid;
    }
}
