/*
 * m2dijital – Landrick "law-firm" theme overrides.
 * Loaded after bootstrap.min.css + style.min.css.
 *
 * Tenant colour: the layout prints an inline <style> that only redefines the
 * --m2-* custom properties below. Landrick hardcodes its primary (#2f55d4) in
 * ~150 rules, so every rule used by the law-firm pages is re-pointed here to
 * the variables. Defaults equal the Landrick palette.
 */
:root {
    --m2-primary: #2f55d4;
    --m2-primary-rgb: 47, 85, 212;
    --m2-primary-dark: #2848b4;
    --m2-on-primary: #ffffff;
    --m2-primary-ink: var(--m2-primary); /* primary as text on light pages; darkened for light brand colours */

    --bs-primary: var(--m2-primary);
    --bs-primary-rgb: var(--m2-primary-rgb);
    --bs-link-color: var(--m2-primary);
    --bs-link-color-rgb: var(--m2-primary-rgb);
    --bs-link-hover-color: var(--m2-primary-dark);
}

::selection { background: rgba(var(--m2-primary-rgb), .9); color: var(--m2-on-primary); }
::-moz-selection { background: rgba(var(--m2-primary-rgb), .9); color: var(--m2-on-primary); }

/* ---------- Utilities / buttons ---------- */
.text-primary { color: var(--m2-primary) !important; }
/* Landrick's #8492a6 is 3.2:1 on white (excerpts, dates, page-header lead); this is 5.2:1 (4.9:1 on bg-light).
   Themes with their own .m2-theme-x .text-muted rule still win (higher specificity). */
.text-muted { color: #5f6e84 !important; }
.bg-primary { background-color: var(--m2-primary) !important; }
.border-primary { border-color: var(--m2-primary) !important; }
.bg-soft-primary {
    background-color: rgba(var(--m2-primary-rgb), .1) !important;
    border: 1px solid rgba(var(--m2-primary-rgb), .1) !important;
    color: var(--m2-primary) !important;
}
.btn-primary {
    --bs-btn-color: var(--m2-on-primary);
    --bs-btn-bg: var(--m2-primary);
    --bs-btn-border-color: var(--m2-primary);
    --bs-btn-hover-color: var(--m2-on-primary);
    --bs-btn-hover-bg: var(--m2-primary-dark);
    --bs-btn-hover-border-color: var(--m2-primary-dark);
    --bs-btn-focus-shadow-rgb: var(--m2-primary-rgb);
    --bs-btn-active-color: var(--m2-on-primary);
    --bs-btn-active-bg: var(--m2-primary-dark);
    --bs-btn-active-border-color: var(--m2-primary-dark);
    --bs-btn-disabled-bg: var(--m2-primary);
    --bs-btn-disabled-border-color: var(--m2-primary);
}
.btn-outline-primary {
    --bs-btn-color: var(--m2-primary);
    --bs-btn-border-color: var(--m2-primary);
    --bs-btn-hover-color: var(--m2-on-primary);
    --bs-btn-hover-bg: var(--m2-primary);
    --bs-btn-hover-border-color: var(--m2-primary);
    --bs-btn-focus-shadow-rgb: var(--m2-primary-rgb);
    --bs-btn-active-color: var(--m2-on-primary);
    --bs-btn-active-bg: var(--m2-primary);
    --bs-btn-active-border-color: var(--m2-primary);
}
.btn-soft-primary {
    background-color: rgba(var(--m2-primary-rgb), .05) !important;
    border: 1px solid rgba(var(--m2-primary-rgb), .05) !important;
    color: var(--m2-primary-ink) !important;
    box-shadow: 0 3px 5px 0 rgba(var(--m2-primary-rgb), .1);
}
.btn-soft-primary:hover, .btn-soft-primary:focus, .btn-soft-primary:active,
.btn-soft-primary.active, .btn-soft-primary.focus {
    background-color: var(--m2-primary) !important;
    border-color: var(--m2-primary) !important;
    color: var(--m2-on-primary) !important;
}
.btn:focus-visible, a:focus-visible, summary:focus-visible, button:focus-visible {
    outline: 2px solid var(--m2-primary);
    outline-offset: 2px;
}

/* ---------- Navbar ---------- */
#topnav .navigation-menu > li:hover > a,
#topnav .navigation-menu > li.active > a,
#topnav.nav-sticky .navigation-menu.nav-light > li:hover > a,
#topnav.nav-sticky .navigation-menu.nav-light > li.active > a { color: var(--m2-primary) !important; }
#topnav .navigation-menu > li > a:hover,
#topnav .navigation-menu > li > a:active,
#topnav.scroll .navigation-menu > li:hover > a,
#topnav.scroll .navigation-menu > li.active > a { color: var(--m2-primary); }
#topnav .navbar-toggle.open span:hover { background-color: var(--m2-primary); }
@media (min-width: 992px) {
    #topnav .navigation-menu.nav-light > li:hover > a,
    #topnav .navigation-menu.nav-light > li.active > a { color: #ffffff !important; }
    #topnav.nav-sticky .navigation-menu.nav-light > li:hover > a,
    #topnav.nav-sticky .navigation-menu.nav-light > li.active > a { color: var(--m2-primary) !important; }
}
/* the template uses <a> for the burger; we use a real <button> */
#topnav button.navbar-toggle { background: transparent; cursor: pointer; }
/* our wrapper is a <span class="lines"> (phrasing content inside <button>), which Landrick's
   ".navbar-toggle span" bar rule would paint as a solid block: keep only the three bars */
#topnav .navbar-toggle .lines { background-color: transparent; }
/* text logo fallback when the tenant has no logo image */
#topnav .logo .m2-logo-text { font-size: 1.25rem; font-weight: 700; letter-spacing: .2px; color: #212529; }
#topnav .logo .m2-logo-img { height: 32px; width: auto; max-width: 200px; object-fit: contain; }
@media (min-width: 992px) {
    #topnav.m2-nav-light:not(.nav-sticky) .logo .m2-logo-text { color: #ffffff; }
    /* Landrick fades the bar's background over .5s (#topnav { transition: all }) but the brand
       colour (a <span>, no transition) flips at once when "nav-sticky" toggles: for half a
       second after every pass over the threshold the logo sat on the wrong background - white
       on the still-white bar when scrolling back to the top, dark on the still-transparent bar
       over a dark section when scrolling down. Bar, brand and the nav-light menu links now
       switch together, so each state always has its own, readable pair. */
    #topnav { transition: none; }
    #topnav.m2-nav-light, #topnav.m2-nav-light .logo, #topnav.m2-nav-light .navigation-menu > li > a { transition: none; }
    /* an uploaded logo is usually drawn for a light background: on the transparent bar over a
       dark cover it gets a light plate (same box in both states, so nothing moves) */
    #topnav.m2-nav-light .logo .m2-logo-img { height: 40px; padding: 4px 8px; border-radius: 6px; }
    #topnav.m2-nav-light:not(.nav-sticky) .logo .m2-logo-img { background: rgba(255, 255, 255, .92); }
    /* a long business name wraps onto two lines instead of pushing the menu onto a second row */
    #topnav .logo .m2-logo-text {
        display: inline-block; vertical-align: middle; white-space: normal;
        max-width: min(420px, 32vw); line-height: 1.2;
    }
}
/* long practice names must not push the call buttons / burger onto a second header row */
@media (max-width: 991.98px) {
    #topnav .logo .m2-logo-text {
        display: inline-block; vertical-align: middle;
        max-width: calc(100vw - 180px);
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
}
#topnav .buy-button .btn { --bs-btn-padding-x: .75rem; }

/* ---------- Hero ---------- */
.m2-hero {
    background-color: #1b1f2b;
    background-image: url("../images/hero-bg.jpg");
    background-image: image-set(url("../images/hero-bg.webp") type("image/webp"), url("../images/hero-bg.jpg") type("image/jpeg"));
    background-position: center center;
    background-size: cover;
}
.m2-hero.m2-hero--overlap { padding-bottom: 260px; }
@media (max-width: 768px) {
    .m2-hero.m2-hero--overlap { padding-bottom: 200px; }
}
.lawyer-wrapper:before { background: linear-gradient(90deg, rgba(var(--m2-primary-rgb), .3), transparent); }
.bg-linear-gradient-primary {
    background: linear-gradient(to top, rgba(var(--m2-primary-rgb), 0) 0%, rgba(var(--m2-primary-rgb), .15) 50%, rgba(var(--m2-primary-rgb), .3) 100%);
}
.m2-hero .heading { overflow-wrap: anywhere; }

/* ---------- Feature (service) cards ---------- */
.features.feature-primary .icon { background: rgba(var(--m2-primary-rgb), .1); }
.features.feature-primary .read-more,
.features.feature-primary .color { color: var(--m2-primary) !important; }
.features.feature-primary.feature-clean .title:hover { color: var(--m2-primary) !important; }
.m2-service-card .icon,
.m2-contact-card .icon { width: 64px; height: 64px; line-height: 64px; margin-left: auto; margin-right: auto; font-size: 28px; color: var(--m2-primary); }
.m2-service-card .title { display: block; }

/* ---------- Blog / team ---------- */
.blog.blog-primary .title:hover,
.blog.blog-primary .readmore:hover { color: var(--m2-primary) !important; }
.blog.blog-primary .link { color: var(--m2-primary) !important; }
.m2-card-img { aspect-ratio: 16 / 9; width: 100%; height: auto; object-fit: cover; }
.team.team-primary .name:hover { color: var(--m2-primary) !important; }
.m2-avatar { object-fit: cover; }
.m2-avatar-initials {
    display: inline-flex; align-items: center; justify-content: center;
    height: 180px; width: 180px; border-radius: 50%;
    font-size: 3rem; font-weight: 700;
    background: rgba(var(--m2-primary-rgb), .1); color: var(--m2-primary);
}

/* ---------- Page header / breadcrumb (MDI-free) ---------- */
.breadcrumb .breadcrumb-item:after { content: "\203A" !important; font-family: inherit !important; font-size: 16px; }
.breadcrumb .breadcrumb-item a:hover,
.breadcrumb .breadcrumb-item.active { color: var(--m2-primary-ink); }
/* phones: a wrapped (2-3 line) breadcrumb pill must not ride over the lead text of the page header */
@media (max-width: 767.98px) {
    .position-breadcrumb { position: relative; top: auto; left: auto; right: auto; transform: none; margin-top: 1.5rem; }
}

/* ---------- Pagination ---------- */
.pagination .page-item .page-link:hover {
    color: var(--m2-on-primary);
    background: rgba(var(--m2-primary-rgb), .9);
    border-color: rgba(var(--m2-primary-rgb), .9);
}
.pagination .page-item.active .page-link {
    color: var(--m2-on-primary);
    background: var(--m2-primary) !important;
    border-color: var(--m2-primary);
}
.pagination .page-item.disabled .page-link { color: #adb5bd; }

/* ---------- Article body ---------- */
.m2-prose { color: #3c4858; font-size: 1.0625rem; line-height: 1.8; overflow-wrap: break-word; }
.m2-prose h2, .m2-prose h3, .m2-prose h4 { color: #161c2d; margin-top: 2rem; margin-bottom: 1rem; line-height: 1.35; }
.m2-prose h2 { font-size: 1.5rem; }
.m2-prose h3 { font-size: 1.25rem; }
.m2-prose img, .m2-prose iframe, .m2-prose video { max-width: 100%; height: auto; border-radius: 6px; }
.m2-prose table { width: 100%; margin-bottom: 1rem; border-collapse: collapse; display: block; overflow-x: auto; }
.m2-prose th, .m2-prose td { border: 1px solid #e9ecef; padding: .5rem .75rem; min-width: 7rem; vertical-align: top; }
.m2-prose blockquote { border-left: 3px solid var(--m2-primary); border-radius: 6px; padding: .75rem 1rem; background: #f8f9fa; }
.m2-prose blockquote > :last-child, .m2-prose li > :last-child { margin-bottom: 0; }
.m2-prose a { color: var(--m2-primary-ink); text-decoration: underline; text-underline-offset: .15em; overflow-wrap: anywhere; }
.m2-prose ul, .m2-prose ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.m2-prose li + li { margin-top: .25rem; }
.m2-prose pre { background: rgba(127, 127, 127, .1); border-radius: 6px; padding: .75rem 1rem; overflow-x: auto; font-size: .875em; }
.m2-prose pre code { color: inherit; }
.m2-prose hr { margin: 2rem 0; }
.m2-featured-img { aspect-ratio: 1200 / 630; width: 100%; height: auto; object-fit: cover; }

/* ---------- FAQ (native <details>, no JS) ---------- */
.m2-faq details { border: 1px solid #e9ecef; border-radius: 6px; background: #fff; }
.m2-faq details + details { margin-top: .75rem; }
.m2-faq summary {
    list-style: none; cursor: pointer; position: relative;
    padding: 1rem 3rem 1rem 1.25rem; font-weight: 600; color: #161c2d;
}
.m2-faq summary::-webkit-details-marker { display: none; }
.m2-faq summary::after {
    content: ""; position: absolute; right: 1.25rem; top: 50%;
    width: .6rem; height: .6rem; margin-top: -.45rem;
    border-right: 2px solid var(--m2-primary); border-bottom: 2px solid var(--m2-primary);
    transform: rotate(45deg); transition: transform .2s ease;
}
.m2-faq details[open] summary { color: var(--m2-primary-ink); }
.m2-faq details[open] summary::after { transform: rotate(-135deg); margin-top: -.1rem; }
.m2-faq .m2-faq-answer { padding: 0 1.25rem 1rem; color: #6c757d; }

/* ---------- Sidebar ---------- */
.m2-sidebar-list a { color: #3c4858; text-decoration: none; display: flex; align-items: center; padding: .35rem 0; }
.m2-sidebar-list a:hover, .m2-sidebar-list a[aria-current="page"] { color: var(--m2-primary-ink); }

/* ---------- Contact ---------- */
.m2-contact-card a { overflow-wrap: anywhere; }
.m2-map { aspect-ratio: 16 / 9; width: 100%; height: auto; border: 0; border-radius: 6px; display: block; }
@media (max-width: 576px) { .m2-map { aspect-ratio: 4 / 3; } }

/* ---------- Footer ---------- */
.footer a.text-foot { text-decoration: none; }
.footer a.text-foot:hover { color: #e9ecef; }
.footer .m2-disclaimer { font-size: .8125rem; color: #8492a6; }
.footer .m2-logo-text { color: #ffffff; font-size: 1.25rem; font-weight: 700; }
.footer .m2-logo-img { height: 32px; width: auto; max-width: 200px; object-fit: contain; }

/* ---------- Misc ---------- */
.back-to-top { background: var(--m2-primary); color: var(--m2-on-primary) !important; border: 0; }
.back-to-top:hover { background: var(--m2-primary-dark); }
.form-control:focus { border-color: var(--m2-primary); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Çağrı bandı: ana renk zemininde başlık okunaklı kalsın */
.m2-sec-cta.bg-primary,.m2-sec-cta.bg-primary .m2-sec-cta-title{color:var(--m2-on-primary,#fff)}
