/* ============================================================
   Kalibrasyon & Makine Sitesi - Genel Stil
   ============================================================ */

:root {
    --primary: #1c3f60;
    --primary-dark: #12283f;
    --accent: #f5a623;
    --accent-dark: #d98c0f;
    --light-blue: #f4f8fb;
    --text-muted: #6b7787;
    --radius: 14px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #2a3644;
    line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--primary-dark); }
.fw-700 { font-weight: 700; }
.fw-600 { font-weight: 600; }
.fw-800 { font-weight: 800; }

a { text-decoration: none; color: var(--primary); }
a:hover { color: var(--accent); }

.section-padding { padding: 80px 0; }
.bg-light-blue { background: var(--light-blue); }

.eyebrow {
    display: inline-block;
    color: var(--accent-dark);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-size: .85rem;
    margin-bottom: .5rem;
}

.section-heading { max-width: 680px; margin: 0 auto 3rem; }
.section-heading p { color: var(--text-muted); }

/* ---------- TOPBAR ---------- */
.topbar {
    background: var(--primary-dark);
    color: #cfd9e3;
    font-size: .875rem;
}
.topbar a { color: #cfd9e3; }
.topbar a:hover { color: var(--accent); }

/* ---------- NAVBAR ---------- */
.main-navbar { padding: .6rem 0; z-index: 1030; }
.navbar-brand { display: flex; align-items: center; gap: .6rem; }
.brand-mark {
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    font-size: 1.1rem;
}
.brand-mark-lg { width: 60px; height: 60px; font-size: 1.4rem; border-radius: 14px; }
.brand-name { font-weight: 800; color: var(--primary-dark); font-size: 1.15rem; display: block; line-height: 1.1; }
.brand-logo-img { max-height: 48px; max-width: 220px; width: auto; height: auto; object-fit: contain; }

.nav-link { font-weight: 600; color: #33475b !important; padding: .6rem 1rem !important; }
.nav-link.active, .nav-link:hover { color: var(--primary) !important; }

.btn-cta {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 700;
    border-radius: 8px;
}
.btn-cta:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

.badge-pill {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    padding: .4rem 1rem;
    border-radius: 30px;
    font-size: .85rem;
    font-weight: 600;
}

/* ---------- HERO ---------- */
.hero-section {
    background: linear-gradient(120deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: 100px 0 80px;
}
.hero-title { font-size: 2.6rem; color: #fff; font-weight: 800; margin: 1rem 0; }
.hero-subtitle { color: #c6d4e0; font-size: 1.15rem; max-width: 560px; }
.hero-stats h3 { color: var(--accent); font-size: 2rem; margin-bottom: 0; }
.hero-stats p { color: #c6d4e0; margin-bottom: 0; font-size: .9rem; }

.page-hero {
    background: linear-gradient(120deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: 60px 0;
}
.page-hero h1 { color: #fff; margin-bottom: .5rem; }
.page-hero .breadcrumb { --bs-breadcrumb-divider: '/'; }
.page-hero .breadcrumb a { color: #c6d4e0; }
.page-hero .breadcrumb-item.active { color: var(--accent); }

/* ---------- CERT STRIP ---------- */
.cert-strip { background: var(--light-blue); border-bottom: 1px solid #e4ecf3; }
.cert-item { color: var(--primary); font-weight: 600; font-size: .9rem; }

/* ---------- SERVICE CARDS ---------- */
.service-card {
    background: #fff;
    border: 1px solid #e9eef3;
    border-radius: var(--radius);
    padding: 2rem 1.6rem;
    transition: .25s;
}
.service-card:hover { box-shadow: 0 15px 35px rgba(28,63,96,.1); transform: translateY(-4px); border-color: transparent; }
.service-icon {
    width: 60px; height: 60px;
    background: var(--light-blue);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
}
.service-card p { color: var(--text-muted); font-size: .93rem; }
.stretched-link-text { font-weight: 700; color: var(--primary); }

/* ---------- FEATURE BOX ---------- */
.feature-box { display: flex; gap: .9rem; align-items: flex-start; }
.feature-box i { font-size: 1.6rem; color: var(--accent); margin-top: .2rem; }
.feature-box h6 { margin-bottom: .2rem; }
.feature-box p { color: var(--text-muted); font-size: .87rem; margin-bottom: 0; }

/* ---------- PRODUCT CARD ---------- */
.product-card {
    background: #fff;
    border: 1px solid #e9eef3;
    border-radius: var(--radius);
    overflow: hidden;
    transition: .25s;
}
.product-card:hover { box-shadow: 0 15px 35px rgba(28,63,96,.1); transform: translateY(-4px); }
.product-img { aspect-ratio: 4/3; overflow: hidden; background: var(--light-blue); position: relative; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.stock-badge {
    position: absolute; top: 10px; right: 10px;
    background: #e74c3c; color: #fff;
    font-size: .72rem; font-weight: 700;
    padding: .3rem .6rem; border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.product-body { padding: 1.2rem; }
.product-body h6 { margin-bottom: .4rem; }
.product-body p { color: var(--text-muted); font-size: .85rem; min-height: 2.6em; }
.price-tag { background: var(--light-blue); color: var(--primary); font-weight: 700; padding: .5rem 1rem; border-radius: 8px; }

/* ---------- FAVORİLER / ÜRÜN KARŞILAŞTIRMA ---------- */
.product-card-extras {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    display: flex; flex-direction: column; gap: .4rem; align-items: flex-start;
}
.fav-btn {
    width: 34px; height: 34px; border-radius: 50%; border: none;
    background: rgba(255,255,255,.92); color: #b0bac3;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.15);
    transition: .2s;
}
.fav-btn:hover { color: #e74c3c; transform: scale(1.08); }
.fav-btn.active { color: #e74c3c; }
.compare-chk {
    display: flex; align-items: center; gap: .35rem;
    background: rgba(255,255,255,.92); color: var(--primary-dark);
    font-size: .72rem; font-weight: 600; padding: .3rem .55rem; border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,.15); cursor: pointer; user-select: none;
}
.compare-chk input { cursor: pointer; }
.compare-nav-link {
    position: relative; display: inline-flex; align-items: center;
    color: var(--primary-dark); font-size: 1.15rem; padding: .3rem .5rem;
}
.compare-badge {
    position: absolute; top: -4px; right: -6px;
    background: #e74c3c; color: #fff; font-size: .65rem; font-weight: 700;
    min-width: 17px; height: 17px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; padding: 0 3px;
}
.compare-table th, .compare-table td { border-color: #eef2f6; }
.compare-table thead th { background: var(--light-blue); vertical-align: top; }
.compare-table tbody th { background: #f8fafb; white-space: nowrap; }
.compare-thumb { width: 100px; height: 75px; object-fit: cover; border-radius: 8px; }

.push-subscribe-btn { background: none; border: none; cursor: pointer; }
.push-subscribe-btn.push-subscribed { color: var(--accent, #f5a623); }

/* ---------- CTA SECTION ---------- */
.cta-section { padding: 60px 0; }
.cta-card {
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius);
    padding: 2.5rem;
    height: 100%;
}
.cta-card-alt { background: var(--primary-dark); }
.cta-card i { font-size: 2.2rem; color: var(--accent); }
.cta-card h4 { color: #fff; margin: 1rem 0 .6rem; }
.cta-card p { color: #c6d4e0; }

/* ---------- TESTIMONIALS ---------- */
.testimonial-card {
    background: #fff;
    border: 1px solid #e9eef3;
    border-radius: var(--radius);
    padding: 2rem;
    height: 100%;
}
.testimonial-card .stars { color: var(--accent); margin-bottom: 1rem; }
.testimonial-card p { color: #45525f; font-style: italic; }
.testimonial-card h6 { margin: 1rem 0 0; }
.testimonial-card span { color: var(--text-muted); font-size: .85rem; }

/* ---------- SIDEBAR / FORMS ---------- */
.sidebar-card {
    background: #fff;
    border: 1px solid #e9eef3;
    border-radius: var(--radius);
    padding: 1.6rem;
}
.category-filter li { margin-bottom: .4rem; }
.category-filter a {
    display: block;
    padding: .5rem .9rem;
    border-radius: 8px;
    color: #33475b;
    font-weight: 500;
}
.category-filter a:hover, .category-filter a.active { background: var(--light-blue); color: var(--primary); font-weight: 700; }
.other-services li { padding: .5rem 0; border-bottom: 1px dashed #e9eef3; }
.other-services li:last-child { border-bottom: none; }

.contact-info-box {
    background: #fff;
    border: 1px solid #e9eef3;
    border-radius: var(--radius);
    padding: 1.8rem;
    text-align: center;
}
.contact-info-box i { font-size: 1.8rem; color: var(--accent); margin-bottom: .8rem; }
.contact-info-box p { color: var(--text-muted); margin-bottom: 0; }

.map-placeholder { overflow: hidden; min-height: 400px; }

.stat-box { text-align: center; background: var(--light-blue); border-radius: var(--radius); padding: 1.6rem; }
.stat-box h3 { color: var(--primary); font-size: 2rem; margin-bottom: 0; }
.stat-box p { color: var(--text-muted); margin-bottom: 0; }

.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #d8e0e8;
    padding: .65rem .9rem;
}
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(28,63,96,.12); }
.form-label { font-weight: 600; font-size: .9rem; color: #33475b; }

.alert { border-radius: 10px; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--primary-dark); }
.footer-newsletter { background: #0d2740; padding: 2rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-newsletter-form { display: flex; gap: .6rem; flex-wrap: wrap; }
.footer-newsletter-form .form-control {
    flex: 1 1 220px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    color: #fff;
    min-width: 200px;
}
.footer-newsletter-form .form-control::placeholder { color: rgba(255,255,255,.55); }
.footer-newsletter-form .form-control:focus {
    background: rgba(255,255,255,.12);
    border-color: var(--accent);
    color: #fff;
    box-shadow: none;
}
.footer-newsletter-form .btn { flex-shrink: 0; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .6rem; color: #c6d4e0; font-size: .9rem; }
.footer-links a { color: #c6d4e0; }
.footer-links a:hover { color: var(--accent); }
.social-btn {
    width: 38px; height: 38px;
    background: rgba(255,255,255,.08);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
}
.social-btn:hover { background: var(--accent); color: #fff; }
.footer-bottom { background: #0d1e30; }

.back-to-top {
    position: fixed; right: 24px; bottom: 24px;
    width: 46px; height: 46px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: .25s;
    z-index: 1000;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--accent); color: #fff; }

.whatsapp-btn {
    position: fixed; left: 24px; bottom: 24px;
    width: 54px; height: 54px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 8px 20px rgba(37,211,102,.4);
    z-index: 1000;
}
.whatsapp-btn:hover { color: #fff; transform: scale(1.05); }

/* ---------- CANLI SOHBET (LIVE CHAT) ---------- */
.livechat-bubble {
    position: fixed; left: 24px; bottom: 90px;
    width: 54px; height: 54px;
    background: var(--primary);
    color: #fff;
    border: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
    z-index: 1001;
    cursor: pointer;
}
.livechat-bubble:hover { background: var(--accent); transform: scale(1.05); }
.livechat-bubble .livechat-badge {
    position: absolute; top: -4px; right: -4px;
    background: #e74c3c; color: #fff;
    font-size: .68rem; font-weight: 700;
    min-width: 20px; height: 20px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 5px; line-height: 1;
    box-shadow: 0 0 0 2px #fff;
}
.livechat-window {
    position: fixed; left: 24px; bottom: 154px;
    width: 330px; max-width: calc(100vw - 32px);
    height: 440px; max-height: calc(100vh - 190px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 16px 44px rgba(0,0,0,.25);
    display: flex; flex-direction: column;
    overflow: hidden;
    z-index: 1001;
}
.livechat-window[hidden] { display: none; }
.livechat-header {
    background: var(--primary); color: #fff;
    padding: .85rem 1rem;
    display: flex; align-items: center; justify-content: space-between;
    flex-shrink: 0;
}
.livechat-header h6 { margin: 0; font-weight: 700; }
.livechat-header .livechat-close { background: none; border: none; color: #fff; font-size: 1.2rem; line-height: 1; opacity: .85; cursor: pointer; }
.livechat-header .livechat-close:hover { opacity: 1; }
.livechat-body {
    flex: 1 1 auto; overflow-y: auto;
    padding: .85rem;
    background: #f4f7fa;
    display: flex; flex-direction: column; gap: .5rem;
}
.livechat-msg {
    max-width: 82%;
    padding: .5rem .75rem;
    border-radius: 12px;
    font-size: .87rem;
    line-height: 1.4;
    word-wrap: break-word;
    white-space: pre-wrap;
}
.livechat-msg-visitor { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 3px; }
.livechat-msg-admin { align-self: flex-start; background: #fff; color: var(--dark, #1c3f60); border: 1px solid #e2e8f0; border-bottom-left-radius: 3px; }
.livechat-empty { color: #8a97a3; font-size: .85rem; text-align: center; margin: auto; }
.livechat-form {
    flex-shrink: 0;
    display: flex; gap: .5rem;
    padding: .65rem;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}
.livechat-form input[type="text"] {
    flex: 1 1 auto;
    border: 1px solid #dde3e9; border-radius: 20px;
    padding: .5rem .9rem; font-size: .85rem;
}
.livechat-form button {
    width: 38px; height: 38px; flex-shrink: 0;
    border: none; border-radius: 50%;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
}
.livechat-form button:hover { background: var(--accent); }
@media (max-width: 575.98px) {
    .livechat-window { left: 16px; bottom: 84px; width: calc(100vw - 32px); }
    .livechat-bubble { left: 16px; bottom: 78px; }
}

/* ---------- DROPDOWN NAV ---------- */
.dropdown-menu {
    border: 1px solid #e9eef3;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(28,63,96,.12);
    padding: .5rem;
}
.dropdown-item { border-radius: 6px; padding: .55rem .9rem; font-weight: 500; font-size: .92rem; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--light-blue); color: var(--primary); }

/* ---------- BLOG / POST CARD ---------- */
.post-card {
    background: #fff;
    border: 1px solid #e9eef3;
    border-radius: var(--radius);
    overflow: hidden;
    transition: .25s;
}
.post-card:hover { box-shadow: 0 15px 35px rgba(28,63,96,.1); transform: translateY(-4px); }
.post-img { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--light-blue); }
.post-img img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 1.3rem; }
.post-date { color: var(--text-muted); font-size: .8rem; font-weight: 600; }
.post-body h5 { margin: .5rem 0; font-size: 1.05rem; }
.post-body h5 a { color: var(--primary-dark); }
.post-body h5 a:hover { color: var(--accent); }
.post-body p { color: var(--text-muted); font-size: .88rem; }
.post-content { color: #45525f; font-size: 1.02rem; line-height: 1.9; }

/* ---------- CERTIFICATE CARD ---------- */
.cert-card {
    background: #fff;
    border: 1px solid #e9eef3;
    border-radius: var(--radius);
    overflow: hidden;
    transition: .25s;
    display: flex;
    flex-direction: column;
}
.cert-card:hover { box-shadow: 0 15px 35px rgba(28,63,96,.1); transform: translateY(-4px); }
.cert-img { aspect-ratio: 4/5; overflow: hidden; background: var(--light-blue); }
.cert-img img { width: 100%; height: 100%; object-fit: cover; }
.cert-body { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; }
.cert-body h6 { margin-bottom: .5rem; }
.cert-body p { color: var(--text-muted); font-size: .84rem; flex: 1; }

/* ---------- PROJECT CARD ---------- */
.project-card {
    background: #fff;
    border: 1px solid #e9eef3;
    border-radius: var(--radius);
    overflow: hidden;
    transition: .25s;
    color: inherit;
}
.project-card:hover { box-shadow: 0 15px 35px rgba(28,63,96,.1); transform: translateY(-4px); color: inherit; }
.project-img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--light-blue); }
.project-img img { width: 100%; height: 100%; object-fit: cover; }
.project-tag {
    position: absolute; top: 14px; left: 14px;
    background: var(--accent);
    color: #fff;
    font-size: .74rem;
    font-weight: 700;
    padding: .3rem .8rem;
    border-radius: 20px;
}
.project-body { padding: 1.2rem; }
.project-body h6 { margin-bottom: .4rem; color: var(--primary-dark); }
.project-body p { color: var(--text-muted); font-size: .86rem; margin-bottom: 0; }

/* ---------- FILTER PILLS (Projeler) ---------- */
.filter-pill {
    display: inline-block;
    padding: .5rem 1.2rem;
    border-radius: 30px;
    border: 1px solid #d8e0e8;
    color: #33475b;
    font-weight: 600;
    font-size: .88rem;
}
.filter-pill:hover { border-color: var(--primary); color: var(--primary); }
.filter-pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- FAQ ACCORDION ---------- */
.accordion-item { border: 1px solid #e9eef3; border-radius: 10px !important; overflow: hidden; margin-bottom: .8rem; }
.accordion-button {
    font-weight: 600;
    color: var(--primary-dark);
    background: #fff;
}
.accordion-button:not(.collapsed) { background: var(--light-blue); color: var(--primary); box-shadow: none; }
.accordion-button:focus { box-shadow: none; border-color: #e9eef3; }
.accordion-body { font-size: .93rem; line-height: 1.75; }

/* ---------- PAGINATION ---------- */
.pagination .page-link { color: var(--primary); border-radius: 8px; margin: 0 3px; border: 1px solid #d8e0e8; }
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); }

/* ---------- HERO VISUAL (SVG gauge illüstrasyonu) ---------- */
.hero-visual { position: relative; width: 100%; aspect-ratio: 1/1; max-width: 480px; margin: 0 auto; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .55; z-index: 0; }
.hero-glow-1 { width: 240px; height: 240px; background: var(--accent); top: -20px; right: -10px; }
.hero-glow-2 { width: 220px; height: 220px; background: #3a6a95; bottom: -20px; left: -10px; }
.hero-gauge { position: relative; z-index: 1; width: 100%; height: 100%; filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); animation: heroFloat 6s ease-in-out infinite; }
.hero-needle { animation: needleSweep 4s ease-in-out infinite; }
@keyframes needleSweep {
    0%   { transform: rotate(-18deg); }
    50%  { transform: rotate(14deg); }
    100% { transform: rotate(-18deg); }
}
@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}
.hero-float-card {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: .6rem;
    background: rgba(255,255,255,0.97);
    border-radius: 12px;
    padding: .6rem .9rem;
    box-shadow: 0 15px 35px rgba(0,0,0,.25);
    animation: cardFloat 5s ease-in-out infinite;
    white-space: nowrap;
}
.hero-float-card i { font-size: 1.3rem; color: var(--accent); }
.hero-float-card strong { display: block; font-size: .85rem; color: var(--primary-dark); line-height: 1.2; }
.hero-float-card span { display: block; font-size: .7rem; color: var(--text-muted); }
.card-1 { top: 4%; left: -8%; animation-delay: .2s; }
.card-2 { bottom: 12%; right: -10%; animation-delay: 1.1s; }
.card-3 { bottom: -4%; left: 6%; animation-delay: 2s; }
@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}
@media (max-width: 1200px) {
    .card-1 { left: 0; } .card-2 { right: 0; }
}

/* ---------- SCROLL REVEAL ---------- */
.reveal-init { opacity: 0; transform: translateY(26px); transition: opacity .65s cubic-bezier(.16,.84,.44,1), transform .65s cubic-bezier(.16,.84,.44,1); }
.reveal-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .reveal-init { opacity: 1; transform: none; transition: none; }
    .hero-gauge, .hero-needle, .hero-float-card { animation: none; }
}

/* ---------- PARTNER / GÜVEN LOGO ŞERİDİ ---------- */
.partners-strip { background: #fff; border-top: 1px solid #e9eef3; border-bottom: 1px solid #e9eef3; padding: 2.2rem 0; }
.partners-strip .eyebrow-center { text-align: center; display: block; margin-bottom: 1.4rem; }
.partner-logo { display: flex; align-items: center; justify-content: center; opacity: .6; transition: .25s; padding: 0 .5rem; }
.partner-logo:hover { opacity: 1; transform: translateY(-2px); }
.partner-logo img { max-height: 40px; width: auto; filter: grayscale(1); }
.partner-logo:hover img { filter: grayscale(0); }
.partner-wordmark {
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: .03em;
    color: var(--primary-dark);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* ---------- ÇEREZ / KVKK ONAY BANDI ---------- */
.cookie-banner {
    position: fixed;
    left: 16px; right: 16px; bottom: 16px;
    max-width: 720px;
    margin: 0 auto;
    background: var(--primary-dark);
    color: #dce6ef;
    border-radius: 14px;
    padding: 1.1rem 1.3rem;
    box-shadow: 0 20px 50px rgba(0,0,0,.35);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    z-index: 2000;
    transform: translateY(140%);
    opacity: 0;
    transition: transform .4s ease, opacity .4s ease;
}
.cookie-banner.show { transform: translateY(0); opacity: 1; }
.cookie-banner p { margin: 0; font-size: .87rem; flex: 1 1 320px; }
.cookie-banner a { color: var(--accent); text-decoration: underline; }
.cookie-banner .btn { flex-shrink: 0; }

/* ---------- DURUM ROZETLERİ (Müşteri Paneli) ---------- */
.badge-status {
    display: inline-block;
    padding: .3rem .7rem;
    border-radius: 30px;
    font-size: .76rem;
    font-weight: 700;
}
.status-taslak { background: #eceff3; color: #5b6572; }
.status-yeni { background: #dff1f7; color: #187799; }
.status-inceleniyor { background: #fdf1dc; color: #b3760c; }
.status-teklif_gonderildi { background: #e6e0fb; color: #5a3fc0; }
.status-onaylandi { background: #e1f4e8; color: #1c7c43; }
.status-tamamlandi { background: #e1f4e8; color: #1c7c43; }
.status-iptal { background: #fde3e3; color: #c0392b; }

/* ---------- İSİM BAŞ HARFİ AVATARI ---------- */
.avatar-initials {
    width: 54px; height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.1rem;
    flex-shrink: 0;
}
.avatar-initials-sm { width: 38px; height: 38px; font-size: .85rem; }

/* ---------- MÜŞTERİ YORUMLARI ---------- */
.testimonial-card {
    background: #fff;
    border: 1px solid #e9eef3;
    border-radius: 16px;
    padding: 1.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.testimonial-stars { color: #f5a623; font-size: .95rem; letter-spacing: 2px; }
.testimonial-comment { color: #4a5b6c; font-style: italic; margin: .9rem 0 1.25rem; flex-grow: 1; }
.testimonial-person { display: flex; align-items: center; gap: .8rem; }
.testimonial-person h6 { margin: 0; }
.testimonial-person span { font-size: .82rem; color: #8a97a3; }

/* ---------- SİTE İÇİ ARAMA ---------- */
.search-toggle-btn {
    background: transparent; border: none; color: var(--primary-dark);
    font-size: 1.15rem; padding: .3rem .5rem; cursor: pointer;
}
.search-result-group { margin-bottom: 2rem; }
.search-result-group h5 { border-bottom: 2px solid var(--light-blue); padding-bottom: .5rem; margin-bottom: 1rem; }
.search-result-item { padding: .9rem 0; border-bottom: 1px solid #eef2f6; }
.search-result-item:last-child { border-bottom: none; }
.search-result-item h6 a { color: var(--primary-dark); }
.search-result-item p { color: #6b7a86; font-size: .9rem; margin: .25rem 0 0; }

/* ---------- DİL DEĞİŞTİRİCİ ---------- */
.lang-switch { display: flex; gap: .25rem; }
.lang-switch a {
    padding: .25rem .55rem; border-radius: 6px; font-size: .78rem; font-weight: 700;
    color: #7a8a97; text-decoration: none; letter-spacing: .5px;
}
.lang-switch a.active { background: var(--accent); color: #fff; }

@media (max-width: 991px) {
    .hero-title { font-size: 1.9rem; }
    .section-padding { padding: 56px 0; }
}

/* ---------- KARANLIK MOD ---------- */
.theme-toggle-btn {
    background: transparent; border: none; color: var(--primary-dark);
    font-size: 1.15rem; padding: .3rem .5rem; cursor: pointer;
}

:root[data-theme="dark"] {
    --primary: #6fb3e0;
    --light-blue: #17293b;
    --text-muted: #9fadbd;
    --heading-color: #eef3f8;
    --text-strong: #cfdae5;
    --surface: #1b2836;
    --card-border: #2c3d4f;
    --body-bg: #101923;
    --body-text: #ccd7e2;
}

:root[data-theme="dark"] body { background: var(--body-bg); color: var(--body-text); }
:root[data-theme="dark"] h1, :root[data-theme="dark"] h2, :root[data-theme="dark"] h3,
:root[data-theme="dark"] h4, :root[data-theme="dark"] h5, :root[data-theme="dark"] h6 { color: var(--heading-color); }

/* Navbar / Marka */
:root[data-theme="dark"] .main-navbar.bg-white { background: var(--surface) !important; }
:root[data-theme="dark"] .brand-name { color: var(--heading-color); }
:root[data-theme="dark"] .nav-link { color: var(--text-strong) !important; }
:root[data-theme="dark"] .theme-toggle-btn,
:root[data-theme="dark"] .search-toggle-btn,
:root[data-theme="dark"] .compare-nav-link,
:root[data-theme="dark"] .push-subscribe-btn { color: var(--text-strong); }
:root[data-theme="dark"] #siteSearchBox { border-color: var(--card-border) !important; }
:root[data-theme="dark"] .push-subscribe-btn.push-subscribed { color: var(--accent, #f5a623); }

/* Favoriler / Karşılaştırma */
:root[data-theme="dark"] .fav-btn,
:root[data-theme="dark"] .compare-chk { background: rgba(27,40,54,.9); color: var(--text-strong); }
:root[data-theme="dark"] .fav-btn.active,
:root[data-theme="dark"] .fav-btn:hover { color: #ff6b6b; }
:root[data-theme="dark"] .compare-table thead th { background: var(--surface); }
:root[data-theme="dark"] .compare-table tbody th { background: #16212c; color: var(--text-strong); }
:root[data-theme="dark"] .compare-table th, :root[data-theme="dark"] .compare-table td { border-color: var(--card-border); }

/* Kartlar */
:root[data-theme="dark"] .service-card,
:root[data-theme="dark"] .product-card,
:root[data-theme="dark"] .testimonial-card,
:root[data-theme="dark"] .sidebar-card,
:root[data-theme="dark"] .contact-info-box,
:root[data-theme="dark"] .post-card,
:root[data-theme="dark"] .cert-card,
:root[data-theme="dark"] .project-card,
:root[data-theme="dark"] .partners-strip,
:root[data-theme="dark"] .accordion-item,
:root[data-theme="dark"] .accordion-button,
:root[data-theme="dark"] .dropdown-menu {
    background: var(--surface);
    border-color: var(--card-border);
}
:root[data-theme="dark"] .accordion-button { color: var(--heading-color); }
:root[data-theme="dark"] .accordion-button:focus { border-color: var(--card-border); }
:root[data-theme="dark"] .dropdown-item { color: var(--body-text); }

/* Metinler */
:root[data-theme="dark"] .post-content,
:root[data-theme="dark"] .testimonial-comment,
:root[data-theme="dark"] .testimonial-card p { color: var(--text-strong); }
:root[data-theme="dark"] .post-body h5 a,
:root[data-theme="dark"] .project-body h6,
:root[data-theme="dark"] .partner-wordmark,
:root[data-theme="dark"] .search-result-item h6 a { color: var(--heading-color); }
:root[data-theme="dark"] .search-result-item p { color: var(--text-muted); }
:root[data-theme="dark"] .search-result-item { border-color: var(--card-border) !important; }
:root[data-theme="dark"] .category-filter a,
:root[data-theme="dark"] .form-label,
:root[data-theme="dark"] .filter-pill { color: var(--text-strong); }
:root[data-theme="dark"] .lang-switch a { color: var(--text-muted); }

/* Formlar */
:root[data-theme="dark"] .form-control,
:root[data-theme="dark"] .form-select {
    background-color: var(--surface);
    border-color: var(--card-border);
    color: var(--body-text);
}
:root[data-theme="dark"] .form-control::placeholder { color: var(--text-muted); }
:root[data-theme="dark"] .form-control:focus,
:root[data-theme="dark"] .form-select:focus { background-color: var(--surface); color: var(--body-text); }
:root[data-theme="dark"] .filter-pill { border-color: var(--card-border); }

/* Butonlar (dış hatlı) */
:root[data-theme="dark"] .btn-outline-dark { color: var(--text-strong); border-color: var(--card-border); }
:root[data-theme="dark"] .btn-outline-dark:hover { background: var(--surface); color: var(--heading-color); }
:root[data-theme="dark"] .btn-outline-primary { color: var(--primary); border-color: var(--primary); }
:root[data-theme="dark"] .btn-outline-primary:hover { background: var(--primary); color: var(--body-bg); }
:root[data-theme="dark"] .btn-outline-secondary { color: var(--text-strong); border-color: var(--card-border); }
:root[data-theme="dark"] .btn-outline-secondary:hover { background: var(--surface); color: var(--heading-color); }

/* Sayfalama / Diğer */
:root[data-theme="dark"] .pagination .page-link { background: var(--surface); border-color: var(--card-border); color: var(--text-strong); }
:root[data-theme="dark"] .other-services li { border-color: var(--card-border); }
:root[data-theme="dark"] .stat-box { background: var(--light-blue); }

/* Bootstrap .text-muted, kartlar/alanlarda okunabilirlik için (varsayılan gri, koyu zeminde düşük kontrast) */
:root[data-theme="dark"] .text-muted { color: var(--text-muted) !important; }
:root[data-theme="dark"] hr { border-color: var(--card-border); }
:root[data-theme="dark"] .border,
:root[data-theme="dark"] .border-top,
:root[data-theme="dark"] .border-bottom { border-color: var(--card-border) !important; }
:root[data-theme="dark"] .table { color: var(--body-text); }

/* ============================================================
   MOBİL OPTİMİZASYON
   (Ziyaretçi Sitesi + Müşteri Paneli — bu dosyayı paylaşan tüm sayfalar)
   ============================================================ */

/* Herhangi bir öğe (taşan görsel, sabit genişlik vb.) sayfayı yatay
   kaydırılabilir hale getirmesin diye son bir güvenlik önlemi. */
html { overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; }

/* ---------- Mobil ana menü: ikon butonlarını (karşılaştır/bildirim/
   arama/tema) tek bir yatay sırada topla, alt alta dizilmesinler ---------- */
.nav-icon-group { padding: .4rem 0; }

@media (max-width: 991.98px) {
    #mainNav { max-height: calc(100vh - 70px); overflow-y: auto; }
    #mainNav .navbar-nav { padding-top: .3rem; }
    #mainNav .nav-item:not(.nav-icon-group):not(.ms-lg-2) {
        border-bottom: 1px solid #eef2f6;
    }
    #mainNav .nav-link { padding: .8rem .2rem !important; }
    #mainNav .dropdown-menu { border: none; box-shadow: none; padding-left: 1rem; background: var(--light-blue); border-radius: 8px; margin: .2rem 0 .5rem; }
    #mainNav .nav-icon-group { border-bottom: 1px solid #eef2f6; gap: 1.4rem !important; }
    #mainNav .btn-cta { display: block; text-align: center; margin: .8rem 0; }

    .hero-section { padding: 64px 0 44px; }
    .cta-section { padding: 44px 0; }
    .cta-card { padding: 1.7rem; }
}

@media (max-width: 767.98px) {
    .section-padding { padding: 44px 0; }
    .page-hero { padding: 40px 0; }
    .hero-section { padding: 52px 0 36px; }
    .hero-title { font-size: 1.7rem; line-height: 1.25; }
    .hero-subtitle { font-size: 1rem; }
    .section-heading { margin-bottom: 2rem; }
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }

    .hero-stats { margin-top: 1.5rem !important; }
    .hero-stats h3 { font-size: 1.3rem; }
    .hero-stats p { font-size: .74rem; }

    .badge-pill { font-size: .78rem; padding: .35rem .85rem; }

    .cta-card { padding: 1.5rem; }
    .cta-card i { font-size: 1.8rem; }

    .testimonial-card, .service-card, .sidebar-card, .contact-info-box, .cta-card { padding: 1.4rem; }

    .stat-box { padding: 1.1rem; }
    .stat-box h3 { font-size: 1.5rem; }

    .navbar-brand { gap: .4rem; }
    .brand-name { font-size: 1rem; }
    .brand-mark { width: 38px; height: 38px; font-size: 1rem; }
    .brand-logo-img { max-height: 38px; }

    /* Footer bülten formu: giriş ve buton alt alta, tam genişlik */
    .footer-newsletter-form { flex-direction: column; }
    /* flex-direction:column'da 220px'lik flex-basis yüksekliğe uygulanır; sıfırla */
    .footer-newsletter-form .form-control { flex: 0 0 auto; }
    .footer-newsletter-form .form-control,
    .footer-newsletter-form .btn { width: 100%; }

    /* Çerez bandı: buton her zaman tam genişlikte, dokunması kolay */
    .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; left: 12px; right: 12px; bottom: 12px; padding: 1rem; }
    /* flex-direction:column'da 320px'lik flex-basis yüksekliğe uygulanır; sıfırla */
    .cookie-banner p { flex: 1 1 auto; }
    .cookie-banner .btn { width: 100%; }

    /* Sayfa üstü kırıntı (breadcrumb) taşmasın */
    .page-hero .breadcrumb { font-size: .82rem; flex-wrap: wrap; }
}

@media (max-width: 575.98px) {
    .hero-title { font-size: 1.5rem; }
    .hero-stats h3 { font-size: 1.1rem; }
    .hero-stats p { font-size: .66rem; }
    .hero-stats .col-4 { padding-left: .3rem; padding-right: .3rem; }

    .filter-pill { padding: .4rem .9rem; font-size: .82rem; }

    .stat-box h3 { font-size: 1.3rem; }

    /* Ürün/proje/sertifika/blog kartı gövde iç boşluğu biraz daralt */
    .product-body, .cert-body, .project-body, .post-body { padding: 1rem; }
}

/* ---------- Dokunma alanları: küçük ikon butonları 40x40px'in
   altına düşmesin (parmakla dokunmayı kolaylaştırmak için) ---------- */
@media (max-width: 991.98px) {
    .search-toggle-btn, .theme-toggle-btn, .compare-nav-link,
    .push-subscribe-btn, .fav-btn, .social-btn {
        min-width: 40px; min-height: 40px;
        display: inline-flex; align-items: center; justify-content: center;
    }
    .filter-pill, .category-filter a { min-height: 40px; display: inline-flex; align-items: center; }
}

/* ---------- Müşteri Paneli: dar ekranlarda üst aksiyon barları ve
   kart başlıkları alt alta dizilsin, taşmasın ---------- */
@media (max-width: 575.98px) {
    .sidebar-card .d-flex.justify-content-between {
        flex-wrap: wrap;
        gap: .5rem;
    }
    .avatar-initials { width: 44px; height: 44px; font-size: .95rem; }
}
:root[data-theme="dark"] .alert-light { background: var(--surface); color: var(--body-text); border-color: var(--card-border); }
