/* ============================================================
 * PALPLANS — ÖZEL STİLLER
 * Tailwind'in karşılamadığı animasyonlar, layout kuralları ve
 * tema geçişleri burada tanımlıdır.
 *
 * İÇİNDEKİLER
 *   1. Değişkenler
 *   2. Scrollbar
 *   3. Temel Layout
 *   4. Sekme (View) Sistemi
 *   5. Anasayfa Efektleri
 *   6. Hava Durumu Ticker
 *   7. Form / Slider
 *   8. Güneş Modu (Açık Tema)
 *   9. Harita (Leaflet)
 *  10. Görsel Efektler (Kazık)
 * ============================================================ */


/* ------------------------------------------------------------
 * 1. DEĞİŞKENLER
 * Renkler tek yerden yönetilsin diye tanımlandı. Yeni yazılan
 * kurallarda sabit hex yerine bu değişkenleri kullanın.
 * ---------------------------------------------------------- */
:root {
    --c-bg:       #020617;   /* dark-950 */
    --c-surface:  #0f172a;   /* dark-900 */
    --c-border:   #1e293b;   /* dark-800 */
    --c-line:     #334155;   /* dark-700 */
    --c-text:     #f8fafc;
    --c-muted:    #cbd5e1;
    --c-brand:    #f59e0b;
    --c-success:  #10b981;
    --c-danger:   #ef4444;

    --header-h:   70px;
    --ticker-h:   40px;
}


/* ------------------------------------------------------------
 * 2. SCROLLBAR
 * ---------------------------------------------------------- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--c-line);
    border-radius: 4px;
}


/* ------------------------------------------------------------
 * 3. TEMEL LAYOUT
 * Sayfa tek ekrana sabitlenir; kaydırma view-section içinde olur.
 * ---------------------------------------------------------- */
html {
    height: 100%;
    height: 100dvh;
}

body {
    width: 100%;
    height: 100%;
    height: 100dvh;         /* mobil tarayıcı çubuğu için */
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: var(--c-bg);
    color: var(--c-text);
    transition: background-color .3s, color .3s;
}

.mobile-home-functions,
.mobile-menu-primary {
    display: none;
}

@media (max-width: 767px) {
    header.site-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: 69px;
        height: 70px;
        gap: 0;
    }

    .site-header .header-actions {
        justify-self: end;
        gap: 8px;
    }

    .site-header .header-actions > button {
        width: 44px;
        height: 44px;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #view-home .home-primary-actions {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
        gap: 8px;
    }

    #view-home .home-intro:has(.mobile-home-functions[open]) {
        z-index: 30;
    }

    .home-primary-actions .home-analysis-button,
    .mobile-home-functions > summary {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        height: 48px;
        padding: 0 8px;
        gap: 6px;
        border-radius: 8px;
        font-size: 13px;
        letter-spacing: 0;
        white-space: nowrap;
    }

    .mobile-home-functions {
        display: block;
        min-width: 0;
    }

    .mobile-home-functions > summary {
        cursor: pointer;
        list-style: none;
    }

    .mobile-home-functions > summary::-webkit-details-marker {
        display: none;
    }

    .mobile-home-functions > summary .fa-chevron-down {
        font-size: 10px;
        transition: transform .2s;
    }

    .mobile-home-functions[open] > summary .fa-chevron-down {
        transform: rotate(180deg);
    }

    .mobile-functions-options {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        width: min(280px, 100%);
        padding: 6px;
        border-radius: 8px;
        z-index: 40;
    }

    .mobile-functions-options button {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        min-height: 44px;
        padding: 10px;
        text-align: left;
        font-size: 14px;
    }

    .mobile-functions-options button i {
        width: 18px;
        text-align: center;
        flex-shrink: 0;
    }

    #mobileMenuModal .mobile-corporate-group,
    #mobileMenuModal .mobile-menu-tool {
        display: none;
    }

    #mobileMenuModal .mobile-menu-primary {
        display: flex;
    }

}

#map-eng-panel .text-slate-400,
#map-eng-panel .text-slate-500,
#map-eng-panel .text-slate-600 {
    color: #cbd5e1;
}

/* Geniş ekran işlev menüsü, logo bloğunun yanında açılır. */
.header-functions {
    display: none;
}

.functions-dropdown::before {
    position: absolute;
    top: -7px;
    left: 42px;
    width: 14px;
    height: 14px;
    content: '';
    background: var(--c-surface);
    border-top: 1px solid var(--c-line);
    border-left: 1px solid var(--c-line);
    transform: rotate(45deg);
}

.functions-menu-item {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 14px;
    padding: 10px;
    border-radius: 10px;
    color: var(--c-muted);
    text-align: left;
    transition: background-color .2s, color .2s;
}

.functions-menu-item:hover {
    background: rgba(245, 158, 11, .08);
    color: var(--c-text);
}

.functions-menu-icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border: 1px solid var(--c-line);
    border-radius: 10px;
    background: var(--c-bg);
    color: var(--c-brand);
    font-size: 20px;
}

.functions-menu-item strong,
.functions-menu-item small {
    display: block;
}

.functions-menu-item strong {
    margin-bottom: 3px;
    color: inherit;
    font-size: 16px;
}

.functions-menu-item small {
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.35;
}

@media (min-width: 1536px) {
    .header-functions {
        display: block;
    }
}


/* ------------------------------------------------------------
 * 4. SEKME (VIEW) SİSTEMİ
 * Aynı anda yalnızca .active olan bölüm görünür.
 * ---------------------------------------------------------- */
.view-section {
    display: none;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: 140px;              /* mobil alt menü payı */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
}

.view-section.active {
    display: block;
    animation: fadeIn .3s ease-in-out;
}

@media (min-width: 1024px) {
    .view-section {
        padding-bottom: 50px;           /* masaüstünde alt menü yok */
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}


/* ------------------------------------------------------------
 * 5. ANASAYFA EFEKTLERİ
 * ---------------------------------------------------------- */
.bg-grid-pattern {
    background-image:
        linear-gradient(to right,  rgba(255, 255, 255, .03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image:         radial-gradient(ellipse at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero-target-ring {
    animation: pulse-ring 2s cubic-bezier(.215, .61, .355, 1) infinite;
}

.hero-map-card {
    isolation: isolate;
}

#hero-map-preview {
    z-index: 0;
}

@keyframes pulse-ring {
    0%   { box-shadow: 0 0 0 0    rgba(245, 158, 11, .5); }
    100% { box-shadow: 0 0 0 30px rgba(245, 158, 11, 0);  }
}


/* ------------------------------------------------------------
 * 6. HAVA DURUMU TICKER
 * ---------------------------------------------------------- */
.ticker-wrap {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: 100%;
    height: var(--ticker-h);
    overflow: hidden;
    background-color: var(--c-surface);
    border-top: 1px solid var(--c-border);
    z-index: 60;
}

.ticker {
    display: inline-block;
    white-space: nowrap;
    padding-right: 100%;
    animation: ticker 30s linear infinite;
}

@keyframes ticker {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

.ticker-item {
    padding: 0 2rem;
    font-size: .875rem;
    font-weight: 500;
    color: var(--c-muted);
}

.ticker-item i {
    margin-right: 6px;
    color: var(--c-brand);
}


/* ------------------------------------------------------------
 * 7. FORM / SLIDER
 * ---------------------------------------------------------- */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
}

input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: var(--c-line);
    border-radius: 2px;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    margin-top: -6px;
    background: var(--c-brand);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(245, 158, 11, .5);
    cursor: pointer;
}

/* Firefox karşılığı — orijinalde eksikti, slider gri görünüyordu */
input[type="range"]::-moz-range-track {
    width: 100%;
    height: 4px;
    background: var(--c-line);
    border-radius: 2px;
}

input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--c-brand);
    border: none;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(245, 158, 11, .5);
    cursor: pointer;
}


/* ------------------------------------------------------------
 * 8. GÜNEŞ MODU (AÇIK TEMA)
 * body.sun-mode eklenince koyu tema sınıfları ezilir.
 * ---------------------------------------------------------- */
body.sun-mode {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

body.sun-mode .bg-dark-950,
body.sun-mode .bg-dark-900,
body.sun-mode .bg-dark-800 {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .05) !important;
}

/* Tailwind'in saydam koyu yüzeyleri de açık temada görünür kalmalı. */
body.sun-mode .bg-dark-950\/60,
body.sun-mode .bg-dark-950\/50,
body.sun-mode .bg-dark-950\/30,
body.sun-mode .bg-dark-900\/98,
body.sun-mode .bg-dark-900\/95,
body.sun-mode .bg-dark-900\/90,
body.sun-mode .bg-dark-900\/80,
body.sun-mode .bg-dark-800\/50 {
    background-color: rgba(255, 255, 255, .96) !important;
}

body.sun-mode .text-white {
    color: #0f172a !important;
}

body.sun-mode .text-slate-400,
body.sun-mode .text-slate-300 {
    color: #475569 !important;
}

body.sun-mode .border-dark-800,
body.sun-mode .border-dark-700,
body.sun-mode .border-slate-700 {
    border-color: #cbd5e1 !important;
}

body.sun-mode input,
body.sun-mode textarea,
body.sun-mode select {
    background-color: #f8fafc !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

/* Harita üstü paneller ve açılır menüler her iki temada da koyudur. */
body.sun-mode .theme-dark-surface {
    background-color: rgba(15, 23, 42, .97) !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .22) !important;
}

body.sun-mode .theme-dark-surface .text-white,
body.sun-mode .theme-fixed-white {
    color: #ffffff !important;
}

body.sun-mode .theme-dark-surface .text-slate-300 {
    color: #e2e8f0 !important;
}

body.sun-mode .theme-dark-surface .text-slate-400,
body.sun-mode .theme-dark-surface .text-slate-500 {
    color: #cbd5e1 !important;
}

body.sun-mode .theme-dark-surface .bg-dark-950,
body.sun-mode .theme-dark-surface .bg-dark-950\/60,
body.sun-mode .theme-dark-surface .bg-dark-950\/50,
body.sun-mode .theme-dark-surface .bg-dark-950\/30,
body.sun-mode .theme-dark-surface .bg-dark-900,
body.sun-mode .theme-dark-surface .bg-dark-800 {
    background-color: #020617 !important;
    border-color: #334155 !important;
}

/* Mega menüde ikon kutuları açık kalır; metinler koyu panelde okunur. */
body.sun-mode .theme-dark-menu .bg-dark-950 {
    background-color: #ffffff !important;
}

body.sun-mode .theme-dark-menu h4 {
    color: #e2e8f0 !important;
}

body.sun-mode #arama-kutusu {
    background-color: transparent !important;
    border-color: transparent !important;
    color: #ffffff !important;
}

body.sun-mode #arama-kutusu::placeholder {
    color: #94a3b8 !important;
}

body.sun-mode .theme-dark-surface .contact-upload-optional {
    color: #ffffff !important;
}

/* Proje etiketi fotoğraf üzerinde kalır; açık temada da beyaz metin korunur. */
.international-project-grid {
    align-items: start;
}

.international-project-card {
    min-width: 0;
    overflow-wrap: anywhere;
}

.international-project-image {
    position: relative;
    aspect-ratio: 3 / 2;
    background: #1e293b;
}

.international-project-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.international-project-image .project-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    max-width: calc(100% - 24px);
    white-space: normal;
}

.international-project-card figcaption {
    padding: 8px 20px;
    color: #cbd5e1;
    background: #1e293b;
    font-size: 11px;
    line-height: 1.5;
}

.international-project-content {
    padding: 20px;
}

.international-project-location {
    margin-bottom: 8px;
    color: #fbbf24;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
}

.international-project-summary {
    margin-top: 10px;
}

.international-project-details {
    margin-top: 20px;
    border-top: 1px solid #334155;
}

.international-project-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 12px 0 0;
    color: #fbbf24;
    cursor: pointer;
    list-style: none;
    font-size: 13px;
    font-weight: 700;
}

.international-project-details summary::-webkit-details-marker {
    display: none;
}

.international-project-details summary:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 4px;
    border-radius: 2px;
}

.international-project-details summary i {
    flex-shrink: 0;
    font-size: 11px;
}

.international-project-details[open] summary i {
    transform: rotate(180deg);
}

.international-project-details dl > div {
    padding-top: 14px;
}

.international-project-details dt {
    color: #f8fafc;
    font-size: 12px;
    font-weight: 700;
}

.international-project-details dd {
    margin-top: 4px;
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.7;
}

body.sun-mode .international-project-card figcaption {
    color: #475569;
    background: #f1f5f9;
}

body.sun-mode .international-project-location,
body.sun-mode .international-project-details summary {
    color: #92400e;
}

body.sun-mode .international-project-details {
    border-color: #cbd5e1;
}

body.sun-mode .international-project-details dt {
    color: #0f172a;
}

body.sun-mode .international-project-details dd {
    color: #475569;
}

.project-category-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 3px;
    background: rgba(2, 6, 23, .9);
    color: #ffffff !important;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
}

.project-category-badge-success {
    background: rgba(5, 150, 105, .92);
}

/* Kurumsal referans kartları */
.reference-card {
    overflow: hidden;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    background: var(--c-surface);
}

.reference-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 210px;
    padding: 22px;
    background: #f8fafc;
}

.reference-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.reference-content {
    padding: 20px;
}

.reference-content h3 {
    color: var(--c-text);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
}

.reference-content p {
    margin-top: 10px;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.65;
}

/* Ayrıntılı makine parkuru */
.fleet-hero {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    border: 1px solid var(--c-border);
    border-radius: 8px 8px 0 0;
}

.fleet-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fleet-hero-overlay {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    padding: 36px 24px;
    text-align: center;
    background: rgba(2, 6, 23, .8);
}

.fleet-hero-overlay h3 {
    color: #fff;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.1;
}

.fleet-hero-overlay p {
    max-width: 720px;
    margin-top: 16px;
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.7;
}

.fleet-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 56px;
    border: 1px solid var(--c-border);
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background: var(--c-surface);
}

.fleet-stats-grid > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 110px;
    padding: 18px;
    border-right: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    text-align: center;
}

.fleet-stats-grid > div:nth-child(2n) {
    border-right: 0;
}

.fleet-stats-grid > div:nth-last-child(-n+2) {
    border-bottom: 0;
}

.fleet-stats-grid strong {
    color: var(--c-brand);
    font-size: 30px;
    font-weight: 800;
}

.fleet-stats-grid span {
    margin-top: 4px;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.fleet-category {
    margin-top: 52px;
}

.fleet-category-title {
    margin-bottom: 22px;
    padding: 0 0 14px 14px;
    border-bottom: 1px solid var(--c-border);
    border-left: 3px solid var(--c-brand);
    color: var(--c-text);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
}

.fleet-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}

.fleet-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    background: var(--c-surface);
}

.fleet-card > img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.fleet-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    padding: 20px;
}

.fleet-card-content h4 {
    color: var(--c-text);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
}

.fleet-card-content > p {
    margin-top: 10px;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.65;
}

.fleet-spec-list {
    margin-top: 18px;
}

.fleet-spec-list > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, auto);
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid var(--c-border);
    font-size: 11px;
    line-height: 1.35;
}

.fleet-spec-list dt {
    color: #64748b;
    font-weight: 700;
}

.fleet-spec-list dd {
    max-width: 175px;
    color: var(--c-text);
    font-weight: 700;
    text-align: right;
}

.fleet-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: auto;
    padding-top: 18px;
}

.fleet-tags span {
    padding: 6px 9px;
    border: 1px solid var(--c-line);
    border-radius: 4px;
    color: #cbd5e1;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

/* Belgeler, kalite politikası ve İSG */
.quality-hero {
    position: relative;
    min-height: 300px;
    margin-top: 72px;
    overflow: hidden;
    border: 1px solid var(--c-border);
    border-radius: 8px;
}

.quality-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quality-hero-overlay {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 42px 24px;
    background: rgba(2, 6, 23, .86);
    text-align: center;
}

.quality-eyebrow {
    margin-bottom: 12px;
    color: var(--c-brand) !important;
    font-size: 11px !important;
    font-weight: 800;
    text-transform: uppercase;
}

.quality-hero-overlay h3 {
    max-width: 820px;
    color: #fff;
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.15;
}

.quality-hero-overlay > p:last-child {
    max-width: 760px;
    margin-top: 18px;
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.7;
}

.quality-section-heading {
    max-width: 800px;
    margin: 68px auto 30px;
    text-align: center;
}

.quality-section-heading h3 {
    color: var(--c-text);
    font-size: 30px;
    font-weight: 800;
    line-height: 1.25;
}

.quality-section-heading h3::after {
    display: block;
    width: 54px;
    height: 3px;
    margin: 14px auto 0;
    background: var(--c-brand);
    content: '';
}

.quality-section-heading p {
    margin-top: 14px;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.65;
}

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

.certificate-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    min-height: 260px;
    padding: 26px 24px 24px 27px;
    overflow: hidden;
    border: 1px solid var(--c-border);
    border-left: 3px solid var(--c-brand);
    border-radius: 0 8px 8px 0;
    background: var(--c-surface);
}

.certificate-card > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 6px;
    background: rgba(245, 158, 11, .12);
    color: var(--c-brand);
    font-size: 18px;
}

.certificate-card h4 {
    margin-top: 18px;
    color: var(--c-text);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
}

.certificate-card p {
    margin: 10px 0 20px;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.7;
}

.certificate-status {
    align-self: flex-start;
    margin-top: auto;
    padding: 7px 10px;
    border-radius: 4px;
    background: rgba(16, 185, 129, .12);
    color: #34d399;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.certificate-status::before {
    margin-right: 6px;
    content: '\2022';
}

.quality-policy {
    padding: 34px;
    border: 1px solid #334155;
    border-left: 4px solid var(--c-brand);
    border-radius: 0 8px 8px 0;
    background: #0b1f3a;
}

.quality-policy h4 {
    color: #f8fafc;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.35;
}

.quality-policy p {
    margin-top: 16px;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.85;
}

.quality-process-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

.quality-process-step {
    position: relative;
    min-width: 0;
    padding: 26px 22px;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    background: var(--c-surface);
    text-align: center;
}

.quality-process-step > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin: 0 auto;
    border: 1px solid rgba(245, 158, 11, .45);
    border-radius: 50%;
    background: rgba(245, 158, 11, .12);
    color: var(--c-brand);
    font-size: 16px;
    font-weight: 800;
}

.quality-process-step h4 {
    margin-top: 15px;
    color: var(--c-text);
    font-size: 15px;
    font-weight: 800;
}

.quality-process-step p {
    margin-top: 9px;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.65;
}

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

.safety-card {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 16px;
    padding: 22px;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    background: var(--c-surface);
}

.safety-card > i {
    display: flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: rgba(245, 158, 11, .12);
    color: var(--c-brand);
    font-size: 17px;
}

.safety-card h4 {
    color: var(--c-text);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
}

.safety-card p {
    margin-top: 7px;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.65;
}

/* Kariyer görünümü */
.career-hero {
    position: relative;
    min-height: 300px;
    overflow: hidden;
    border: 1px solid var(--c-border);
    border-radius: 8px;
}

.career-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.career-hero-overlay {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 40px 24px;
    text-align: center;
    background: rgba(2, 6, 23, .82);
}

.career-eyebrow {
    margin-bottom: 12px;
    color: var(--c-brand) !important;
    font-size: 11px !important;
    font-weight: 800;
    text-transform: uppercase;
}

.career-hero-overlay h2 {
    max-width: 820px;
    color: #fff;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.15;
}

.career-hero-overlay > p:last-child {
    max-width: 760px;
    margin-top: 18px;
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.7;
}

.career-section-heading {
    max-width: 760px;
    margin: 68px auto 30px;
    text-align: center;
}

.career-section-heading h3 {
    color: var(--c-text);
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
}

.career-section-heading h3::after {
    display: block;
    width: 54px;
    height: 3px;
    margin: 14px auto 0;
    background: var(--c-brand);
    content: '';
}

.career-section-heading p {
    margin-top: 14px;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.65;
}

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

.career-benefit-card {
    padding: 26px 22px;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    background: var(--c-surface);
    text-align: center;
}

.career-benefit-card > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(245, 158, 11, .12);
    color: var(--c-brand);
    font-size: 19px;
}

.career-benefit-card h4 {
    margin-top: 16px;
    color: var(--c-text);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
}

.career-benefit-card p {
    margin-top: 10px;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.65;
}

.career-position-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}

.career-position-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 24px;
    border: 1px solid var(--c-border);
    border-top: 3px solid var(--c-brand);
    border-radius: 0 0 8px 8px;
    background: var(--c-surface);
}

.career-position-card h4 {
    color: var(--c-text);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.4;
}

.career-position-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.career-position-tags span {
    padding: 6px 8px;
    border-radius: 3px;
    background: rgba(59, 130, 246, .13);
    color: #93c5fd;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.career-position-tags .career-tag-location {
    background: rgba(245, 158, 11, .13);
    color: #fbbf24;
}

.career-position-tags .career-tag-time {
    background: rgba(16, 185, 129, .13);
    color: #34d399;
}

.career-position-card > p {
    margin: 16px 0 22px;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.7;
}

.career-position-card button {
    align-self: flex-start;
    margin-top: auto;
    padding: 10px 18px;
    border-radius: 6px;
    background: var(--c-brand);
    color: #020617;
    font-size: 12px;
    font-weight: 800;
    transition: background-color .2s, transform .2s;
}

.career-position-card button:hover {
    background: #fbbf24;
    transform: translateY(-1px);
}

.career-application {
    scroll-margin-top: 92px;
    padding: 28px;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    background: var(--c-surface);
}

.career-application > h3 {
    color: var(--c-text);
    font-size: 22px;
    font-weight: 800;
}

.career-application > p {
    margin-top: 7px;
    color: #94a3b8;
    font-size: 13px;
}

.career-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 24px;
}

.career-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

.career-form input,
.career-form select,
.career-form textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--c-line);
    border-radius: 6px;
    background: var(--c-bg);
    color: var(--c-text);
    font-size: 13px;
    outline: none;
}

.career-form input,
.career-form select {
    min-height: 46px;
    padding: 0 14px;
}

.career-form textarea {
    padding: 14px;
    resize: vertical;
}

.career-form input:focus,
.career-form select:focus,
.career-form textarea:focus {
    border-color: var(--c-brand);
}

.career-file-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 13px;
    border: 1px solid var(--c-line);
    border-radius: 6px;
    background: var(--c-bg);
}

.career-file-field input {
    min-height: auto;
    padding: 0;
    border: 0;
}

.career-file-field span {
    color: #64748b;
    font-size: 11px;
    line-height: 1.4;
}

.career-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.5;
}

.career-consent input {
    width: 16px;
    min-height: 16px;
    margin-top: 1px;
    padding: 0;
}

.career-submit {
    min-height: 48px;
    border-radius: 6px;
    background: var(--c-brand);
    color: #020617;
    font-size: 13px;
    font-weight: 800;
    transition: background-color .2s;
}

.career-submit:hover {
    background: #fbbf24;
}

body.sun-mode .reference-card,
body.sun-mode .fleet-card,
body.sun-mode .fleet-stats-grid,
body.sun-mode .certificate-card,
body.sun-mode .quality-process-step,
body.sun-mode .safety-card,
body.sun-mode .career-benefit-card,
body.sun-mode .career-position-card,
body.sun-mode .career-application {
    border-color: #cbd5e1;
    background: #fff;
}

body.sun-mode .reference-content h3,
body.sun-mode .fleet-category-title,
body.sun-mode .fleet-card-content h4,
body.sun-mode .fleet-spec-list dd,
body.sun-mode .quality-section-heading h3,
body.sun-mode .certificate-card h4,
body.sun-mode .quality-process-step h4,
body.sun-mode .safety-card h4,
body.sun-mode .career-section-heading h3,
body.sun-mode .career-benefit-card h4,
body.sun-mode .career-position-card h4,
body.sun-mode .career-application > h3 {
    color: #0f172a;
}

body.sun-mode .reference-content p,
body.sun-mode .fleet-card-content > p,
body.sun-mode .quality-section-heading p,
body.sun-mode .certificate-card p,
body.sun-mode .quality-process-step p,
body.sun-mode .safety-card p,
body.sun-mode .career-section-heading p,
body.sun-mode .career-benefit-card p,
body.sun-mode .career-position-card > p,
body.sun-mode .career-application > p,
body.sun-mode .career-consent {
    color: #475569;
}

body.sun-mode .fleet-category-title,
body.sun-mode .fleet-spec-list > div {
    border-color: #cbd5e1;
}

body.sun-mode .fleet-tags span {
    border-color: #cbd5e1;
    color: #334155;
    background: #f8fafc;
}

body.sun-mode .career-position-tags span {
    color: #1d4ed8;
}

body.sun-mode .career-position-tags .career-tag-location {
    color: #b45309;
}

body.sun-mode .career-position-tags .career-tag-time {
    color: #047857;
}

body.sun-mode .career-file-field {
    border-color: #cbd5e1;
    background: #f8fafc;
}

@media (min-width: 640px) {
    .fleet-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

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

@media (min-width: 1024px) {
    .fleet-stats-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .fleet-stats-grid > div,
    .fleet-stats-grid > div:nth-child(2n) {
        border-right: 1px solid var(--c-border);
        border-bottom: 0;
    }

    .fleet-stats-grid > div:last-child {
        border-right: 0;
    }

    .career-benefit-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .career-position-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .certificate-grid,
    .safety-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .quality-process-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
    }

    .quality-process-step:not(:last-child)::after {
        position: absolute;
        z-index: 2;
        top: 50%;
        right: -14px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        border: 1px solid var(--c-border);
        border-radius: 50%;
        background: var(--c-bg);
        color: var(--c-brand);
        font-size: 14px;
        content: '\2192';
        transform: translateY(-50%);
    }

    body.sun-mode .quality-process-step:not(:last-child)::after {
        border-color: #cbd5e1;
        background: #f8fafc;
    }
}

@media (min-width: 1280px) {
    .fleet-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* ------------------------------------------------------------
 * 9. HARİTA (LEAFLET)
 * ---------------------------------------------------------- */
.leaflet-container {
    background: var(--c-bg);
    font-family: 'Inter', sans-serif;
}

/* Atıf GİZLENEMEZ — OpenStreetMap (ODbL) ve Sentinel-2 (CC BY)
   lisansları kaynak belirtmeyi zorunlu kılar. Eskiden bu kural
   display:none idi; yalnızca koyu temaya uyacak şekilde biçimlendirilir. */
.leaflet-control-attribution {
    background: rgba(2, 6, 23, .72) !important;
    color: #94a3b8 !important;
    font-size: 10px !important;
    padding: 2px 6px !important;
}

.leaflet-control-attribution a {
    color: #cbd5e1 !important;
}

body.sun-mode .leaflet-control-attribution {
    background: rgba(255, 255, 255, .85) !important;
    color: #475569 !important;
}

body.sun-mode .leaflet-control-attribution a {
    color: #1e293b !important;
}

#real-map {
    z-index: 1;
}

/* Uydu görüntüsünü koyu temaya uydurur */
.dark-map-filter {
    filter: brightness(60%) contrast(110%) saturate(80%);
    transition: filter .3s;
}

body.sun-mode .dark-map-filter {
    filter: brightness(100%) contrast(100%) saturate(100%) !important;
}

.map-target-ring {
    animation: ping 2s cubic-bezier(0, 0, .2, 1) infinite;
}

@keyframes ping {
    75%, 100% { transform: scale(2); opacity: 0; }
}


/* ------------------------------------------------------------
 * 10. GÖRSEL EFEKTLER (KAZIK)
 * ---------------------------------------------------------- */
.pile-texture {
    background-image: repeating-linear-gradient(
        45deg,
        transparent, transparent 10px,
        rgba(255, 255, 255, .05) 10px, rgba(255, 255, 255, .05) 20px
    );
}

.corporate-menu-btn {
    display: flex;
    width: 100%;
    align-items: center;
    gap: .75rem;
    padding: .7rem .75rem;
    border-radius: 6px;
    color: #cbd5e1;
    font-size: .875rem;
    font-weight: 600;
    text-align: left;
    transition: color .2s ease, background-color .2s ease;
}

.corporate-menu-btn i {
    width: 1rem;
    color: var(--c-brand);
    text-align: center;
}

.corporate-menu-btn:hover,
.corporate-menu-btn:focus-visible,
.corporate-menu-btn.active {
    color: #fff;
    background: rgba(245, 158, 11, .12);
    outline: none;
}

.mobile-corporate-link {
    width: 100%;
    padding: .65rem .75rem .65rem 2.75rem;
    border-radius: 6px;
    color: #cbd5e1;
    font-size: .875rem;
    text-align: left;
}

.mobile-corporate-link:hover,
.mobile-corporate-link:focus-visible {
    color: #fff;
    background: rgba(245, 158, 11, .12);
    outline: none;
}

/* Iletisim panelindeki sabit ofis konumu isaretcisi. */
.contact-map-marker {
    background: transparent;
    border: 0;
}

.contact-map-marker span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 2px solid #ffffff;
    border-radius: 50% 50% 50% 0;
    background: var(--c-brand);
    color: #020617;
    box-shadow: 0 4px 14px rgba(245, 158, 11, .5);
    transform: rotate(-45deg);
}

.contact-map-marker i {
    transform: rotate(45deg);
}

/* ------------------------------------------------------------
 * 11. SCROLL ANİMASYONLARI
 * JS hazır olduğunda içerikler yumuşakça ve sırayla görünür.
 * ---------------------------------------------------------- */
.scroll-animations-ready .scroll-reveal {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    transition:
        opacity .58s cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0ms),
        transform .58s cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

.scroll-animations-ready .scroll-reveal.is-revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    will-change: auto;
}

.scroll-reveal-title::after {
    display: block;
    width: 54px;
    height: 3px;
    margin: 13px 0 0;
    background: var(--c-brand);
    content: '';
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .5s cubic-bezier(.22, 1, .36, 1) calc(var(--reveal-delay, 0ms) + 180ms);
}

.quality-section-heading .scroll-reveal-title::after,
.career-section-heading .scroll-reveal-title::after {
    transform-origin: center;
}

.scroll-reveal-title.is-revealed::after {
    transform: scaleX(1);
}

/* ------------------------------------------------------------
 * ERİŞİLEBİLİRLİK
 * Hareket azaltma tercihine saygı gösterir.
 * ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .scroll-animations-ready .scroll-reveal {
        opacity: 1;
        transform: none;
    }

    .scroll-reveal-title::after {
        transform: scaleX(1);
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
