/* ─── Global Reach (distributors) section ──────────────── */
.rs-global-area {
    position: relative;
    overflow: hidden;
}
.rs-global-stats {
    display: flex;
    gap: 48px;
    justify-content: flex-end;
}
.rs-global-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.rs-global-stat-num {
    font-family: "Space Grotesk", "Inter Display", sans-serif;
    font-size: 56px;
    font-weight: 700;
    color: #0077B9;
    line-height: 1;
    letter-spacing: -1px;
}
.rs-global-stat-label {
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.rs-global-map-wrap {
    position: relative;
    margin: 40px 0;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    padding: 24px;
    border: 1px solid rgba(0, 119, 185, 0.08);
}
.rs-global-map {
    width: 100%;
    height: auto;
    display: block;
}
.rs-global-dot-pulse {
    fill: #0077B9;
    opacity: 0.25;
    animation: kotan-global-pulse 2.4s ease-out infinite;
}
.rs-global-dot.is-hq .rs-global-dot-pulse {
    animation-duration: 1.8s;
    opacity: 0.4;
    fill: #FF6B35;
}
.rs-global-dot-core {
    fill: #0077B9;
}
.rs-global-dot.is-hq .rs-global-dot-core {
    fill: #FF6B35;
}
@keyframes kotan-global-pulse {
    0%   { r: 5; opacity: 0.5; }
    100% { r: 22; opacity: 0; }
}
.rs-global-regions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    margin-top: 32px;
}
.rs-global-region {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 22px 24px;
    border-radius: 4px;
}
.rs-global-region-title {
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: #0077B9;
    margin: 0 0 16px;
}
.rs-global-region-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.rs-global-region-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
    font-size: 14px;
}
.rs-global-region-list li:last-child {
    border-bottom: 0;
}
.rs-global-country {
    font-weight: 600;
    color: #1A1A1A;
}
.rs-global-city {
    color: #6B7280;
    margin-left: auto;
    font-size: 12px;
    font-family: "IBM Plex Mono", monospace;
}
.rs-global-hq-badge {
    background: #FF6B35;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 2px;
    letter-spacing: 0.5px;
    margin-left: 4px;
}
@media (max-width: 767px) {
    .rs-global-stats {
        justify-content: flex-start;
        gap: 32px;
        margin-top: 16px;
    }
    .rs-global-stat-num {
        font-size: 40px;
    }
}

/* ─── Design tokens — design.md §9.2 ────────────────────
 * Body için Inter, monospace için IBM Plex Mono, script
 * için Allura. Display (titles) industrie'nin Space Grotesk
 * kullanımıyla aynı kalır (zaten brand'a uygun).
 */
:root {
    --rs-ff-body: "Inter", "IBM Plex Sans", system-ui, sans-serif;
    --rs-ff-p: "Inter", "IBM Plex Sans", system-ui, sans-serif;
    /* --rs-ff-title Space Grotesk olarak kalır (main.css'te) */
    --kotan-ff-mono: "IBM Plex Mono", "JetBrains Mono", monospace;
    --kotan-ff-script: "Allura", cursive;
}

/* AR/RTL locale'inde Arabic font'u öncelikli */
.ml-rtl,
.ml-rtl :where(p, span, div, h1, h2, h3, h4, h5, h6, a, button, input, textarea) {
    font-family: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
}

/* Monospace label/code yardımcı sınıfı */
.kotan-mono,
.rs-cta-number,
.product-category-label {
    font-family: var(--kotan-ff-mono);
    letter-spacing: 0.5px;
}

/* Mörtel Meister script marka anı — product_category[slug=mortel-meister] kartı
 * veya başka brand moment'lerinde class ile uygulanır.
 */
.kotan-mortel-meister-signature {
    font-family: var(--kotan-ff-script);
    font-style: italic;
    font-size: 1.4em;
    color: #0077B9;
}

/* ─── RTL temel mirror'lar ─────────────────────────────
 * Industrie template'in tamamı LTR optimize; AR/RTL için
 * gerekli yer-değiştirmeler. Sadece en görünür simetri
 * sorunlarını çözer. Daha derin RTL desteği için tema-wide
 * audit gerekir (icon yönleri, swiper navigation, vb.).
 */
.rtl,
.ml-rtl {
    direction: rtl;
}
.ml-rtl .rs-header-lang-wrapper {
    margin-right: 0;
    margin-left: 15px;
}
.ml-rtl .rs-header-lang-menu {
    right: auto;
    left: 0;
}
.ml-rtl .kotan-search-close {
    right: auto;
    left: 32px;
}
.ml-rtl .kotan-search-form {
    flex-direction: row-reverse;
}
.ml-rtl .rs-section-subtitle.justify-content-start {
    justify-content: flex-end !important;
}
.ml-rtl .rs-blog-meta,
.ml-rtl .rs-services-tab-list ul,
.ml-rtl .rs-footer-widget-links ul {
    text-align: right;
}
.ml-rtl .rs-btn.has-icon .icon-box svg {
    transform: scaleX(-1);
}
.ml-rtl .rs-portfolio-item .rs-portfolio-btn .rs-btn svg {
    transform: scaleX(-1);
}
.ml-rtl .rs-feature-descrip p,
.ml-rtl .rs-cta-descrip p,
.ml-rtl .rs-section-title,
.ml-rtl .rs-section-subtitle {
    text-align: right;
}

@media (max-width: 767px) {
    .ml-rtl .kotan-search-close {
        left: 16px;
    }
}

/* Other Offices block (Contact section) */
.rs-contact-offices {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.rs-contact-offices-title {
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 18px;
}
.rs-contact-offices-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px 28px;
}
.rs-contact-office-label {
    display: inline-block;
    font-weight: 700;
    color: #fff;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 6px;
}
.rs-contact-office-addr {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin: 0 0 6px;
    line-height: 1.4;
}
.rs-contact-office-phone,
.rs-contact-office-email,
.rs-contact-office-map {
    margin: 0 0 4px;
    font-size: 13px;
}
.rs-contact-office-phone a,
.rs-contact-office-email a,
.rs-contact-office-map a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.2s ease;
}
.rs-contact-office-phone a:hover,
.rs-contact-office-email a:hover,
.rs-contact-office-map a:hover {
    color: #fff;
}

/* Footer Legal strip (bottom bar) */
.rs-footer-legal-strip {
    margin-top: 32px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.rs-footer-legal-strip ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 22px;
}
.rs-footer-legal-strip li {
    position: relative;
}
.rs-footer-legal-strip li + li::before {
    content: "·";
    position: absolute;
    left: -13px;
    color: rgba(255, 255, 255, 0.3);
    pointer-events: none;
}
.rs-footer-legal-strip a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease;
}
.rs-footer-legal-strip a:hover {
    color: #fff;
}

/* Footer Certifications strip */
.rs-footer-certifications {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.rs-footer-certifications ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 32px;
}
.rs-footer-cert-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}
.rs-footer-cert-item a,
.rs-footer-cert-item {
    position: relative;
    display: inline-block;
}
.rs-footer-cert-item img {
    display: block;
    max-height: 48px;
    width: auto;
    transition: opacity 0.3s ease;
}
.rs-footer-cert-color {
    position: absolute;
    inset: 0;
    margin: auto;
    opacity: 0;
    pointer-events: none;
}
.rs-footer-cert-grayscale {
    filter: grayscale(1) brightness(1.6);
    opacity: 0.7;
}
.rs-footer-cert-item:hover .rs-footer-cert-grayscale {
    opacity: 0;
}
.rs-footer-cert-item:hover .rs-footer-cert-color {
    opacity: 1;
}
/* Renkli logo yoksa hover'da grayscale opacity'sini tam yap */
.rs-footer-cert-item:hover img:only-child {
    opacity: 1;
    filter: none;
}

/* Language Switcher */
.rs-header-lang-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-right: 15px;
}

.rs-header-lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid rgba(0, 119, 185, 0.25);
    color: #111;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: all 0.25s ease;
}

.rs-header-lang-toggle:hover,
.rs-header-lang-toggle[aria-expanded="true"] {
    background: #0077B9;
    border-color: #0077B9;
    color: #fff;
}

.rs-header-lang-toggle i {
    font-size: 16px;
    line-height: 1;
}

.rs-header-lang-toggle .ri-arrow-down-s-line {
    transition: transform 0.25s ease;
}

.rs-header-lang-toggle[aria-expanded="true"] .ri-arrow-down-s-line {
    transform: rotate(180deg);
}

.rs-header-lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 999;
}

.rs-header-lang-wrapper.is-open .rs-header-lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.rs-header-lang-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.rs-header-lang-item a:hover {
    background: rgba(0, 119, 185, 0.08);
    color: #0077B9;
}

.rs-header-lang-item.is-active a {
    color: #0077B9;
    font-weight: 700;
}

.rs-header-lang-code {
    display: inline-block;
    min-width: 26px;
    font-size: 12px;
    font-weight: 700;
    color: #0077B9;
    letter-spacing: 0.5px;
}

.rs-header-lang-item.is-active .rs-header-lang-code {
    color: inherit;
}

.rs-header-lang-name {
    font-size: 14px;
}

/* Search trigger button */
.rs-header-search-trigger {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 119, 185, 0.25);
    background: transparent;
    color: #111;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.25s ease;
}
.rs-header-search-trigger:hover,
.rs-header-search-trigger[aria-expanded="true"] {
    background: #0077B9;
    border-color: #0077B9;
    color: #fff;
}

/* Search overlay */
.kotan-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
.kotan-search-overlay.is-open {
    opacity: 1;
    visibility: visible;
}
body.kotan-search-open {
    overflow: hidden;
}

.kotan-search-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(8, 24, 38, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.kotan-search-close {
    position: fixed;
    top: 28px;
    right: 32px;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    border-radius: 50%;
    font-size: 26px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.3s ease, border-color 0.2s ease;
    z-index: 2;
}
.kotan-search-close:hover {
    background: #0077B9;
    border-color: #0077B9;
    transform: rotate(90deg);
}

.kotan-search-inner {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 140px 30px 80px;
    z-index: 1;
}

.kotan-search-form {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.25);
    transition: border-color 0.25s ease;
}
.kotan-search-form:focus-within {
    border-color: #0077B9;
}

.kotan-search-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 28px;
    line-height: 1;
}

.kotan-search-input {
    flex: 1;
    background: transparent;
    border: 0;
    outline: 0;
    color: #fff;
    font-family: inherit;
    font-size: clamp(22px, 4vw, 40px);
    font-weight: 500;
    padding: 6px 0;
    width: 100%;
}
.kotan-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

.kotan-search-hint {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    margin-top: 14px;
    letter-spacing: 0.4px;
}

.kotan-search-results {
    margin-top: 36px;
    display: grid;
    gap: 10px;
}

.kotan-search-result {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.kotan-search-result:hover,
.kotan-search-result.is-focused {
    background: rgba(0, 119, 185, 0.18);
    border-color: #0077B9;
    color: #fff;
    transform: translateX(4px);
}

.kotan-search-result-thumb {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 22px;
}
.kotan-search-result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.kotan-search-result-body {
    flex: 1;
    min-width: 0;
}
.kotan-search-result-type {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0077B9;
    background: rgba(0, 119, 185, 0.15);
    padding: 3px 8px;
    border-radius: 3px;
    margin-bottom: 4px;
}
.kotan-search-result-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 4px;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
mark.kotan-search-mark {
    background: rgba(0, 119, 185, 0.4);
    color: #fff;
    padding: 0 2px;
    border-radius: 2px;
}
.kotan-search-result-excerpt {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.kotan-search-result-arrow {
    color: rgba(255, 255, 255, 0.3);
    font-size: 20px;
    transition: transform 0.2s ease, color 0.2s ease;
}
.kotan-search-result:hover .kotan-search-result-arrow,
.kotan-search-result.is-focused .kotan-search-result-arrow {
    color: #fff;
    transform: translateX(4px);
}

.kotan-search-empty {
    margin-top: 36px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
}

.kotan-search-loading {
    margin-top: 36px;
    display: flex;
    justify-content: center;
}
.kotan-search-loading::after {
    content: "";
    width: 28px;
    height: 28px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: #0077B9;
    border-radius: 50%;
    animation: kotan-search-spin 0.7s linear infinite;
}
@keyframes kotan-search-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 767px) {
    .kotan-search-close {
        top: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
    .kotan-search-inner {
        padding: 90px 18px 40px;
    }
    .kotan-search-label {
        font-size: 22px;
    }
    .kotan-search-result-thumb {
        width: 46px;
        height: 46px;
    }
}

@media (max-width: 767px) {
    .rs-header-lang-wrapper {
        margin-right: 8px;
    }
    .rs-header-lang-toggle {
        padding: 6px 9px;
        font-size: 13px;
    }
    .rs-header-lang-name {
        display: none;
    }
    .rs-header-lang-menu {
        min-width: 90px;
    }
}
