/* =========================================================
   BOTANİK YAZILIM — TASARIM SİSTEMİ
   Eski tema (style.css) üzerine tek katman.
   Renk, tipografi, buton, kart, boşluk ve ortak bileşenler.
   ========================================================= */

:root {
    /* Marka yeşili */
    --btk-green-900: #08251b;
    --btk-green-800: #0b3326;
    --btk-green-700: #0d4a35;
    --btk-green-600: #0f6b4f;
    --btk-green-500: #12805e;
    --btk-green-400: #16a077;
    --btk-green-300: #3dbe93;
    --btk-green-200: #a7e3cb;
    --btk-green-100: #d8f3e7;
    --btk-green-50: #eef9f4;

    /* Nötrler */
    --btk-ink: #0c1f17;
    --btk-body: #4b5f56;
    --btk-muted: #6b7f76;
    --btk-line: rgba(12, 31, 23, .10);
    --btk-line-strong: rgba(12, 31, 23, .16);
    --btk-surface: #ffffff;
    --btk-surface-2: #f6fbf8;
    --btk-surface-3: #edf7f2;

    /* Ölçü */
    --btk-container: 1180px;
    --btk-header-h: 80px;
    --btk-radius-sm: 12px;
    --btk-radius: 18px;
    --btk-radius-lg: 24px;
    --btk-radius-xl: 32px;

    /* Gölge */
    --btk-shadow-sm: 0 2px 10px rgba(12, 31, 23, .05);
    --btk-shadow: 0 16px 40px rgba(12, 31, 23, .08);
    --btk-shadow-lg: 0 28px 70px rgba(12, 31, 23, .14);

    /* Tipografi */
    --btk-font-head: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --btk-font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ---------- Temel ---------- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--btk-header-h) + 18px);
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
}

body {
    font-family: var(--btk-font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--btk-body);
    background: var(--btk-surface);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--btk-font-head);
    color: var(--btk-ink);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.022em;
    margin-bottom: .5em;
}

h1 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
h4 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); }
h5 { font-size: 1.05rem; }
h6 { font-size: .95rem; }

p { margin-bottom: 1rem; }

a {
    color: var(--btk-green-600);
    text-decoration: none;
    transition: color .2s ease;
}

a:hover { color: var(--btk-green-700); }

img { max-width: 100%; height: auto; }

::selection {
    background: var(--btk-green-200);
    color: var(--btk-green-900);
}

:focus-visible {
    outline: 2px solid var(--btk-green-500);
    outline-offset: 3px;
}

/* İnce, marka renginde kaydırma çubuğu */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--btk-green-300) transparent;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--btk-green-300);
    border-radius: 999px;
    border: 3px solid #fff;
}

/* ---------- Yardımcılar ---------- */
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.btk-container {
    width: 100%;
    max-width: var(--btk-container);
    margin: 0 auto;
    padding: 0 24px;
}

.btk-section {
    position: relative;
    padding: clamp(64px, 8vw, 104px) 0;
    overflow: hidden;
}

.btk-section--soft {
    background: linear-gradient(180deg, #fff 0%, var(--btk-surface-2) 55%, #fff 100%);
}

.btk-section--tint {
    background: var(--btk-surface-2);
}

/* Bölüm başlığı */
.btk-head {
    max-width: 760px;
    margin: 0 auto clamp(36px, 5vw, 56px);
    text-align: center;
}

.btk-head--left {
    margin-left: 0;
    text-align: left;
}

.btk-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 6px 14px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: var(--btk-green-50);
    border: 1px solid rgba(15, 107, 79, .14);
    color: var(--btk-green-600);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.btk-eyebrow--light {
    background: rgba(255, 255, 255, .10);
    border-color: rgba(255, 255, 255, .18);
    color: #d8f3e7;
}

.btk-title {
    margin: 0 0 14px;
    color: var(--btk-ink);
    font-size: clamp(1.9rem, 3.4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.12;
}

.btk-title .brand-color { color: var(--btk-green-600); }

.btk-lead {
    max-width: 660px;
    margin: 0 auto;
    color: var(--btk-body);
    font-size: 17px;
    line-height: 1.7;
}

.btk-head--left .btk-lead { margin-left: 0; }

/* Kart */
.btk-card {
    position: relative;
    height: 100%;
    padding: 28px;
    border-radius: var(--btk-radius-lg);
    background: #fff;
    border: 1px solid var(--btk-line);
    box-shadow: var(--btk-shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.btk-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--btk-shadow);
    border-color: rgba(15, 107, 79, .22);
}

.btk-card h3, .btk-card h4 {
    margin-bottom: 10px;
    color: var(--btk-ink);
}

.btk-card p:last-child { margin-bottom: 0; }

.btk-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: var(--btk-green-50);
    color: var(--btk-green-600);
    font-size: 20px;
}

.btk-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--btk-line);
    color: var(--btk-ink);
    font-size: 12.5px;
    font-weight: 600;
}

/* ---------- Butonlar ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 11px 22px;
    border-radius: var(--btk-radius-sm);
    border: 1px solid transparent;
    font-family: var(--btk-font-body);
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: none;
    text-decoration: none;
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.btn:focus,
.btn:active:focus {
    box-shadow: 0 0 0 4px rgba(15, 107, 79, .18) !important;
}

.btn:active { transform: translateY(1px); }

.btn-success,
.btn-primary,
.btn.btn-green,
.btn.btn-green-orange,
.btn.btn-blue:hover {
    background-color: var(--btk-green-600) !important;
    border-color: var(--btk-green-600) !important;
    color: #fff !important;
}

.btn-success:hover,
.btn-primary:hover,
.btn.btn-green:hover {
    background-color: var(--btk-green-700) !important;
    border-color: var(--btk-green-700) !important;
    color: #fff !important;
}

.btn-outline-success {
    background: #fff;
    border-color: rgba(15, 107, 79, .28);
    color: var(--btk-green-600);
}

.btn-outline-success:hover {
    background: var(--btk-green-600);
    border-color: var(--btk-green-600);
    color: #fff;
}

.btn-link { color: var(--btk-green-600); }

.btn-sm {
    min-height: 34px;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 9px;
}

.btn-lg {
    min-height: 54px;
    padding: 14px 28px;
    font-size: 16px;
    border-radius: 14px;
}

/* Yeni nesil butonlar */
.btk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    padding: 13px 24px;
    border-radius: 13px;
    border: 1px solid transparent;
    font-family: var(--btk-font-body);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.btk-btn i { font-size: 13px; transition: transform .2s ease; }
.btk-btn:hover i.fa-arrow-right { transform: translateX(3px); }

.btk-btn--primary {
    background: var(--btk-green-600);
    border-color: var(--btk-green-600);
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(15, 107, 79, .24);
}

.btk-btn--primary:hover {
    background: var(--btk-green-700);
    border-color: var(--btk-green-700);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(15, 107, 79, .30);
}

.btk-btn--dark {
    background: var(--btk-ink);
    border-color: var(--btk-ink);
    color: #fff !important;
}

.btk-btn--dark:hover {
    background: var(--btk-green-700);
    border-color: var(--btk-green-700);
    color: #fff !important;
    transform: translateY(-2px);
}

.btk-btn--ghost {
    background: #fff;
    border-color: var(--btk-line-strong);
    color: var(--btk-ink) !important;
}

.btk-btn--ghost:hover {
    background: var(--btk-green-50);
    border-color: rgba(15, 107, 79, .28);
    color: var(--btk-green-600) !important;
    transform: translateY(-2px);
}

.btk-btn--glass {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .30);
    color: #fff !important;
    backdrop-filter: blur(8px);
}

.btk-btn--glass:hover {
    background: rgba(255, 255, 255, .20);
    border-color: rgba(255, 255, 255, .50);
    color: #fff !important;
    transform: translateY(-2px);
}

.btk-btn--sm {
    min-height: 40px;
    padding: 9px 16px;
    font-size: 13.5px;
    border-radius: 10px;
}

/* ---------- Formlar ---------- */
.form-control,
select.form-control,
textarea.form-control {
    height: auto;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--btk-line-strong);
    border-radius: var(--btk-radius-sm);
    background: #fff;
    color: var(--btk-ink);
    font-family: var(--btk-font-body);
    font-size: 14.5px;
    line-height: 1.4;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form-control::placeholder { color: #9aa9a2; }

.form-control:focus,
select.form-control:focus,
textarea.form-control:focus {
    border-color: var(--btk-green-500);
    box-shadow: 0 0 0 4px rgba(15, 107, 79, .12);
    outline: none;
}

label {
    margin-bottom: 6px;
    color: var(--btk-ink);
    font-size: 13px;
    font-weight: 600;
}

/* ---------- Hero ---------- */
/* Slider görselleri tam genişlikte arka planda döner; CTA paneli solda üsttedir. */
.btk-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: clamp(470px, 48vw, 760px);
    padding: clamp(24px, 2.5vw, 36px) 0 clamp(20px, 2.5vw, 32px);
    overflow: hidden;
    isolation: isolate;
    background: var(--btk-green-900);
}

/* Görselin sığmadığı kenarları aynı görselin bulanık kopyası doldurur. */
.btk-hero__bg {
    position: absolute;
    inset: -28px;
    z-index: -3;
    background-position: center center;
    background-size: cover;
    filter: blur(26px) brightness(.42) saturate(.85);
    opacity: 0;
    animation: btkHeroSlide1 16s ease-in-out infinite;
}

    .btk-hero__bg--2 {
        animation: btkHeroSlide2 16s ease-in-out infinite;
    }

.btk-hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}

.btk-hero__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    /* Görsel küçültülür ve bütünüyle sığdırılır; kırpma yok. */
    object-fit: contain;
    object-position: center center;
    filter: saturate(.95);
    opacity: 0;
    animation: btkHeroSlide1 16s ease-in-out infinite;
}

    .btk-hero__slide--2 {
        animation: btkHeroSlide2 16s ease-in-out infinite;
    }

.btk-hero__scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(6, 32, 23, .62) 0%, rgba(6, 32, 23, .32) 30%, rgba(6, 32, 23, .06) 62%, rgba(6, 32, 23, .06) 100%),
        linear-gradient(180deg, rgba(6, 32, 23, .22) 0%, rgba(6, 32, 23, 0) 30%, rgba(6, 32, 23, .42) 100%);
}

.btk-hero__inner.container {
    position: relative;
    width: 100%;
}

.btk-hero__panel {
    width: min(250px, 34%);
    padding: clamp(12px, 1.4vw, 18px);
    border-radius: var(--btk-radius-sm);
    background: rgba(8, 37, 27, .58);
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
    color: #fff;
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
}

.btk-hero__panel h1,
.btk-hero__panel h2 {
    margin: 6px 0 12px;
    color: #fff;
    font-size: clamp(1rem, 1.35vw, 1.2rem);
    font-weight: 800;
    line-height: 1.2;
}

.btk-hero__panel h1 span,
.btk-hero__panel h2 span { color: #86e7c2; }

.btk-hero__panel .btk-eyebrow {
    min-height: 26px;
    padding: 5px 10px;
    margin-bottom: 4px;
    font-size: 11px;
}

.btk-hero__actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
}

    .btk-hero__actions .btk-btn {
        min-height: 38px;
        padding: 7px 8px;
        font-size: 11.5px;
    }

    .btk-hero__actions .btk-btn i { font-size: 10px; }

.btk-hero__dots {
    position: absolute;
    right: clamp(20px, 3vw, 40px);
    bottom: clamp(22px, 3vw, 38px);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(6, 32, 23, .40);
    backdrop-filter: blur(6px);
}

.btk-hero__dot {
    display: block;
    width: 10px;
    height: 10px;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 999px;
    background: rgba(255, 255, 255, .35);
    animation: btkHeroDot1 16s ease-in-out infinite;
}

    .btk-hero__dot--2 {
        animation-name: btkHeroDot2;
    }

/* Hero görselleri 16 saniyelik döngüde Crossfade ile değişir */
@keyframes btkHeroSlide1 {
    0%, 42%   { opacity: 1; }
    50%, 92%  { opacity: 0; }
    100%      { opacity: 1; }
}

@keyframes btkHeroSlide2 {
    0%, 42%   { opacity: 0; }
    50%, 92%  { opacity: 1; }
    100%      { opacity: 0; }
}

@keyframes btkHeroDot1 {
    0%, 42%   { width: 28px; background: #fff; }
    50%, 92%  { width: 10px; background: rgba(255, 255, 255, .35); }
    100%      { width: 28px; background: #fff; }
}

@keyframes btkHeroDot2 {
    0%, 42%   { width: 10px; background: rgba(255, 255, 255, .35); }
    50%, 92%  { width: 28px; background: #fff; }
    100%      { width: 10px; background: rgba(255, 255, 255, .35); }
}

/* ---------- Modallar ---------- */
.modal-content {
    border: 0;
    border-radius: var(--btk-radius-lg);
    box-shadow: var(--btk-shadow-lg);
    overflow: hidden;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--btk-line);
}

.modal-title {
    font-family: var(--btk-font-head);
    font-weight: 800;
    color: var(--btk-ink);
}

.modal-body { padding: 24px; }

.modal-footer {
    padding: 16px 24px 20px;
    border-top: 1px solid var(--btk-line);
}

.modal-backdrop.show { opacity: .55; }

/* ---------- Global küçük dokunuşlar ---------- */
.go-top {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--btk-green-600) !important;
    box-shadow: 0 12px 28px rgba(15, 107, 79, .32);
    color: #fff;
    right: 22px;
    bottom: 22px;
}

.go-top:hover { background: var(--btk-green-700) !important; }

/* Eski temanın turuncu vurgularını marka yeşiline bağla */
.nav-radius .navbar-nav .nav-link.active,
.header-appear .nav-radius .navbar-nav .nav-link.active {
    background: var(--btk-green-600) !important;
    color: #fff !important;
}

.green, .orange, .bluee,
.navbar-top-default .navbar-nav .nav-link:hover,
.header-appear .navbar-top-default .navbar-nav .nav-link:hover,
.webtags li a:hover,
.portfolio-three .filtering .active,
.portfolio-three .filtering span:hover {
    color: var(--btk-green-600) !important;
}

.about-padding,
.carousel-date,
.icon-block:hover .counters h3,
.icon-block:hover .icon,
.widget_search .input-group-addon,
.portfolio-three .item-img-overlay:before,
.team-box .overlay:before {
    background-color: var(--btk-green-600) !important;
    border-color: var(--btk-green-600) !important;
    color: #fff !important;
}

.slick-dots li button,
.slick-dots li.slick-active button {
    background: var(--btk-green-600) !important;
}

.page-item.active .page-link,
.page-link:hover {
    background-color: var(--btk-green-600) !important;
    border-color: var(--btk-green-600) !important;
    color: #fff !important;
}

.page-link { color: var(--btk-green-600) !important; }

/* ---------- Duyarlı ---------- */
@media (max-width: 720px) {
    .btk-hero {
        min-height: 480px;
        align-items: flex-end;
    }

    .btk-hero__panel {
        width: 100%;
        max-width: none;
        background: rgba(8, 37, 27, .82);
        box-shadow: none;
    }
}

@media (max-width: 575px) {
    .btk-hero { padding: 28px 0 36px; }

    .btk-hero__panel { padding: 20px; }

    .btk-hero__panel h1,
    .btk-hero__panel h2 {
        font-size: 1.35rem;
        margin-bottom: 14px;
    }

    .btk-hero__actions { flex-direction: column; }
    .btk-hero__actions .btk-btn { width: 100%; }

    .btk-hero__dots {
        right: 10px;
        bottom: 10px;
        padding: 5px 9px;
    }

    .btk-section { padding: 56px 0; }
    .btk-head { margin-bottom: 30px; }
    .btk-lead { font-size: 15.5px; }
}

/* Font Awesome dekoratif ikonları — Razor içinde \f... kaçışı Blazor
   hydration sırasında JS string'ini bozduğu için dış CSS'e taşındı. */
.btk-dl__main::after {
    content: "\f019";
    position: absolute;
    right: -10px;
    bottom: -30px;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 150px;
    line-height: 1;
    color: rgba(255, 255, 255, .05);
    pointer-events: none;
}

.btk-price__list li::before {
    content: "\f00c";
    position: absolute;
    left: 0;
    top: 1px;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--btk-green-50);
    color: var(--btk-green-600);
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 10px;
}

/* Bootstrap modal, sticky header'ın (9990) üzerinde kalsın */
.modal-backdrop { z-index: 10050 !important; }
.modal { z-index: 10060 !important; }

/* İletişim modalındaki telefon satırları taşmasın / üst üste binmesin */
#contactModal .number-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 14px;
    min-height: 52px;
}

    #contactModal .num-text {
        flex: 1 1 auto;
        min-width: 0;
        white-space: nowrap;
    }

    #contactModal .actions {
        flex: 0 0 auto;
    }

@media (max-width: 480px) {
    #contactModal .number-row {
        flex-direction: column;
        align-items: stretch;
    }

        #contactModal .actions {
            width: 100%;
        }

            #contactModal .actions .btn {
                flex: 1 1 0;
            }
}

/* Ana sayfa iletişim akordiyonundaki numaralar */
.btk-contact__number { flex-wrap: nowrap; }
.btk-contact__tel { flex: 1 1 auto; min-width: 0; }

/* Hareket azaltma tercihi */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}
