/* ==========================================================================
   KAYSERİ PREFABRİK - TEMA ÖZEL CSS STİLLERİ
   ========================================================================== */

/* Topbar */
.kp-topbar { background-color: #0a1c15; color: #94a3b8; font-size: 12.5px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); position: relative; z-index: 101; }
.kp-topbar-inner { display: flex; justify-content: space-between; align-items: center; }
.kp-slogan { display: flex; align-items: center; gap: 6px; color: #e2e8f0; font-weight: 500; }
.kp-topbar-right { display: flex; align-items: center; gap: 20px; }
.kp-topbar-link { display: flex; align-items: center; gap: 6px; color: #cbd5e1; transition: color 0.2s ease; }
.kp-topbar-link:hover { color: #1fa463; }
.kp-topbar-socials { display: flex; align-items: center; gap: 12px; border-left: 1px solid rgba(255, 255, 255, 0.15); padding-left: 16px; }
.kp-icon-sm { width: 16px; height: 16px; }
.kp-icon-xs { width: 14px; height: 14px; }

/* Navbar */
.kp-navbar { background: #ffffff; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04); position: sticky; top: 0; z-index: 100; }
.kp-navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.kp-logo-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.kp-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.kp-brand-main { font-size: 20px; font-weight: 800; color: #0f241c; letter-spacing: -0.02em; }
.kp-brand-sub { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; color: #1fa463; }

/* Menü Kapsayıcı ve Linkler */
.kp-menu-wrapper { display: flex; align-items: center; }
.kp-main-nav { display: flex; align-items: center; }
.kp-nav-links { display: flex; list-style: none; gap: 26px; align-items: center; margin: 0; padding: 0; }
.kp-nav-links li { position: relative; list-style: none; margin: 0; padding: 0; }
.kp-nav-links > li > a { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: #1e293b; text-transform: uppercase; text-decoration: none; padding: 28px 0; transition: color 0.2s ease; }
.kp-nav-links > li:hover > a,
.kp-nav-links > li.current-menu-item > a,
.kp-nav-links > li.current-menu-ancestor > a { color: #1fa463; }

/* Alt Menü Belirteç Oku (Dropdown Caret Arrow) */
.kp-nav-links li.menu-item-has-children > a::after,
.kp-nav-links li.page_item_has_children > a::after {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: 4px;
    margin-top: -3px;
    transition: transform 0.2s ease;
}
.kp-nav-links li.menu-item-has-children:hover > a::after {
    transform: rotate(225deg);
    margin-top: 3px;
}

/* ==========================================================================
   ALT AÇILIR MENÜ (SUB-MENU / DROPDOWN) STİLLERİ
   ========================================================================== */
.kp-nav-links .sub-menu,
.kp-nav-links ul.children {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    padding: 10px 0;
    margin: 0;
    list-style: none;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

/* Hover veya Focus Durumunda Açılma */
.kp-nav-links li:hover > .sub-menu,
.kp-nav-links li:focus-within > .sub-menu,
.kp-nav-links li.is-open > .sub-menu,
.kp-nav-links li:hover > ul.children {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Alt Menü Öğeleri */
.kp-nav-links .sub-menu li {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.kp-nav-links .sub-menu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    text-transform: none;
    text-decoration: none;
    transition: all 0.18s ease;
    white-space: nowrap;
    border-left: 3px solid transparent;
}

.kp-nav-links .sub-menu li:hover > a,
.kp-nav-links .sub-menu li.current-menu-item > a {
    background-color: #f0fdf4;
    color: #1fa463;
    border-left-color: #1fa463;
    padding-left: 22px;
}

/* 2. Seviye Alt Açılır Menü (Sub-Sub Menu) */
.kp-nav-links .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    transform: translateX(12px);
}

.kp-nav-links .sub-menu li:hover > .sub-menu {
    transform: translateX(0);
}

/* Mobil Menü Butonu */
.kp-mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 8px;
    color: #1e293b;
    cursor: pointer;
    border-radius: 8px;
}
.kp-mobile-toggle:hover { background: #f1f5f9; }
.kp-icon-menu, .kp-icon-close { width: 24px; height: 24px; }

/* Butonlar */
.kp-btn-primary { background: #1fa463; color: #ffffff; font-weight: 700; font-size: 13px; padding: 12px 24px; border-radius: 9999px; display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s ease; border: none; cursor: pointer; text-decoration: none; }
.kp-btn-primary:hover { background: #168a52; color: #ffffff; transform: translateY(-1px); }
.kp-btn-outline { background: rgba(255, 255, 255, 0.1); color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.3); font-weight: 700; font-size: 13px; padding: 12px 24px; border-radius: 9999px; display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s ease; text-decoration: none; }
.kp-btn-outline:hover { background: #ffffff; color: #0f241c; }

/* Hero */
.kp-hero-section { position: relative; min-height: 560px; display: flex; align-items: center; overflow: hidden; color: #ffffff; }
.kp-hero-bg-wrapper { position: absolute; inset: 0; z-index: 1; }
.kp-hero-bg-img { width: 100%; height: 100%; object-fit: cover; }
.kp-hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 28, 21, 0.94) 0%, rgba(10, 28, 21, 0.78) 50%, rgba(10, 28, 21, 0.35) 100%); }
.kp-hero-container { position: relative; z-index: 2; padding: 60px 20px 80px 20px; }
.kp-hero-content { max-width: 620px; }
.kp-hero-tagline { font-size: 13px; font-weight: 800; color: #22c55e; letter-spacing: 0.12em; margin-bottom: 12px; }
.kp-hero-heading { font-size: 46px; font-weight: 800; line-height: 1.15; margin-bottom: 18px; }
.kp-hero-desc { font-size: 15.5px; color: #cbd5e1; margin-bottom: 30px; line-height: 1.6; }
.kp-hero-btn-group { display: flex; align-items: center; gap: 16px; }
.kp-hero-badge-card { position: absolute; bottom: 50px; right: 20px; background: #ffffff; color: #0f241c; padding: 16px 26px; border-radius: 16px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25); display: flex; flex-direction: column; align-items: center; z-index: 3; }
.kp-badge-number-box { display: flex; align-items: center; gap: 6px; }
.kp-badge-num { font-size: 32px; font-weight: 800; color: #0f241c; }
.kp-badge-icon { color: #1fa463; width: 24px; height: 24px; }
.kp-badge-text { font-size: 12.5px; font-weight: 700; color: #64748b; }

/* Özellikler Barı */
.kp-features-bar-section { position: relative; z-index: 10; margin-top: -36px; margin-bottom: 60px; }
.kp-features-card-wrapper { background: #ffffff; border-radius: 16px; box-shadow: 0 10px 35px rgba(0, 0, 0, 0.06); padding: 20px 24px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; border: 1px solid #f1f5f9; }
.kp-feature-item { display: flex; align-items: flex-start; gap: 10px; }
.kp-feature-icon-box { width: 38px; height: 38px; border-radius: 50%; background: #e8f7ee; color: #1fa463; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.kp-feature-title { font-size: 13px; font-weight: 700; color: #0f241c; margin-bottom: 2px; }
.kp-feature-desc { font-size: 11.5px; color: #64748b; line-height: 1.4; }

/* Başlıklar */
.kp-section-header { text-align: center; margin-bottom: 40px; }
.kp-section-subtitle { font-size: 12px; font-weight: 800; color: #1fa463; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px; display: block; }
.kp-section-title { font-size: 28px; font-weight: 800; color: #0f241c; letter-spacing: -0.01em; margin: 0 0 12px 0; }
.kp-section-divider { width: 48px; height: 3px; background: #1fa463; margin: 0 auto; border-radius: 2px; }

/* Ürün Grupları */
.kp-products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 60px; }
.kp-product-card { background: #ffffff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04); border: 1px solid #eef2f6; transition: all 0.25s ease; }
.kp-product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08); }
.kp-product-image-box { height: 180px; overflow: hidden; position: relative; }
.kp-product-image-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.kp-product-card:hover .kp-product-image-box img { transform: scale(1.05); }
.kp-product-badge { position: absolute; top: 12px; right: 12px; background: #1fa463; color: #fff; font-size: 10.5px; font-weight: 700; padding: 4px 10px; border-radius: 9999px; }
.kp-product-content { padding: 18px; }
.kp-product-meta-tag { font-size: 11.5px; color: #64748b; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; margin-bottom: 6px; background: #f8fafc; padding: 2px 8px; border-radius: 4px; }
.kp-product-title { font-size: 16px; font-weight: 700; color: #0f241c; margin-bottom: 6px; }
.kp-product-desc { font-size: 12.5px; color: #64748b; margin-bottom: 14px; line-height: 1.5; }
.kp-product-link { font-size: 12px; font-weight: 700; color: #1fa463; display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }

/* Hakkımızda / Kurumsal */
.kp-about-section { padding: 70px 0; background: #f8fafc; }
.kp-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.kp-about-img-wrap { position: relative; border-radius: 20px; overflow: hidden; }
.kp-about-img-main { width: 100%; height: 420px; object-fit: cover; display: block; border-radius: 20px; }
.kp-about-exp-box { position: absolute; bottom: 20px; left: 20px; background: #0f241c; color: #ffffff; padding: 18px 24px; border-radius: 16px; display: flex; align-items: center; gap: 14px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.kp-about-exp-number { font-size: 32px; font-weight: 800; color: #22c55e; }
.kp-about-exp-label { font-size: 12px; font-weight: 600; line-height: 1.3; }
.kp-about-p { font-size: 15px; color: #475569; line-height: 1.7; margin-bottom: 20px; }
.kp-about-features-list { display: flex; flex-direction: column; gap: 12px; }
.kp-about-f-item { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: #334155; }
.kp-f-check-icon { width: 22px; height: 22px; border-radius: 50%; background: #e8f7ee; color: #1fa463; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 12px; }

/* Projelerimiz */
.kp-projects-section { padding: 70px 0; }
.kp-projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-bottom: 40px; }
.kp-project-card { background: #ffffff; border-radius: 16px; overflow: hidden; border: 1px solid #f1f5f9; box-shadow: 0 4px 20px rgba(0,0,0,0.04); transition: all 0.25s; }
.kp-project-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.08); }
.kp-project-img-box { height: 190px; position: relative; overflow: hidden; }
.kp-project-img-box img { width: 100%; height: 100%; object-fit: cover; }
.kp-project-category-badge { position: absolute; top: 12px; left: 12px; background: #0f241c; color: #fff; font-size: 10.5px; font-weight: 700; padding: 4px 10px; border-radius: 6px; }
.kp-project-days-badge { position: absolute; top: 12px; right: 12px; background: #1fa463; color: #fff; font-size: 10.5px; font-weight: 700; padding: 4px 10px; border-radius: 6px; }
.kp-project-body { padding: 18px; }
.kp-project-title { font-size: 16px; font-weight: 700; color: #0f241c; margin-bottom: 4px; }
.kp-project-location { font-size: 12px; color: #64748b; display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.kp-project-desc { font-size: 12.5px; color: #64748b; line-height: 1.5; }

/* İstatistikler */
.kp-stats-section { background: #0f241c; color: #ffffff; padding: 45px 0; margin-bottom: 70px; }
.kp-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.kp-stat-number { font-size: 38px; font-weight: 800; color: #22c55e; margin-bottom: 4px; }
.kp-stat-label { font-size: 13.5px; color: #cbd5e1; font-weight: 600; }

/* Müşteri Yorumları */
.kp-reviews-section { padding: 0 0 70px 0; }
.kp-reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.kp-review-card { background: #ffffff; border-radius: 16px; padding: 24px; border: 1px solid #f1f5f9; box-shadow: 0 4px 20px rgba(0,0,0,0.04); display: flex; flex-direction: column; justify-content: space-between; }
.kp-review-stars { display: flex; gap: 4px; color: #f59e0b; margin-bottom: 14px; }
.kp-star-filled { width: 16px; height: 16px; fill: #f59e0b; }
.kp-review-text { font-size: 13.5px; color: #475569; line-height: 1.6; margin-bottom: 20px; font-style: italic; }
.kp-review-author-wrap { display: flex; align-items: center; gap: 12px; border-top: 1px solid #f1f5f9; padding-top: 14px; }
.kp-review-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.kp-review-author-name { font-size: 14px; font-weight: 700; color: #0f241c; margin: 0; }
.kp-review-author-role { font-size: 11.5px; color: #64748b; }

/* Blog */
.kp-blog-section { padding: 0 0 70px 0; background: #f8fafc; }
.kp-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.kp-blog-card { background: #ffffff; border-radius: 16px; overflow: hidden; border: 1px solid #f1f5f9; box-shadow: 0 4px 20px rgba(0,0,0,0.04); }
.kp-blog-img-box { height: 180px; overflow: hidden; }
.kp-blog-img-box img { width: 100%; height: 100%; object-fit: cover; }
.kp-blog-body { padding: 18px; }
.kp-blog-date { font-size: 11.5px; color: #1fa463; font-weight: 700; display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.kp-blog-title { font-size: 15px; font-weight: 700; color: #0f241c; margin-bottom: 6px; line-height: 1.35; }
.kp-blog-title a { text-decoration: none; color: inherit; }
.kp-blog-title a:hover { color: #1fa463; }
.kp-blog-excerpt { font-size: 12.5px; color: #64748b; margin-bottom: 14px; line-height: 1.5; }
.kp-blog-readmore { font-size: 12px; font-weight: 700; color: #1fa463; display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }

/* CTA Banner */
.kp-cta-banner-section { margin-bottom: 70px; }
.kp-cta-banner-card { background: #133827; border-radius: 20px; padding: 36px; color: #ffffff; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.kp-cta-badge { font-size: 11.5px; font-weight: 800; color: #4ade80; }
.kp-cta-heading { font-size: 26px; font-weight: 800; margin: 6px 0; }
.kp-cta-text { font-size: 13.5px; color: #cbd5e1; }
.kp-btn-white-pill { background: #ffffff; color: #0f241c; font-weight: 700; font-size: 13.5px; padding: 14px 28px; border-radius: 9999px; display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s; text-decoration: none; }
.kp-btn-white-pill:hover { background: #e8f7ee; color: #1fa463; }

/* Footer */
.kp-footer { background: #0b1f16; color: #94a3b8; padding-top: 60px; }
.kp-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr; gap: 24px; padding-bottom: 40px; }
.kp-footer-title { font-size: 13px; font-weight: 800; color: #ffffff; margin-bottom: 14px; letter-spacing: 0.05em; }
.kp-footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; margin: 0; padding: 0; }
.kp-footer-links a { text-decoration: none; color: #94a3b8; transition: color 0.2s; }
.kp-footer-links a:hover { color: #ffffff; }
.kp-footer-desc { font-size: 12.5px; color: #94a3b8; line-height: 1.6; margin-top: 12px; }
.kp-footer-contact .kp-contact-item { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; margin-bottom: 10px; color: #cbd5e1; }
.kp-contact-icon { width: 16px; height: 16px; color: #1fa463; flex-shrink: 0; margin-top: 2px; }
.kp-footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 18px 0; font-size: 12px; }

/* Floating WhatsApp */
.kp-floating-whatsapp { position: fixed; right: 24px; bottom: 30px; z-index: 99; background: #25d366; color: #ffffff; border-radius: 9999px; padding: 10px 18px; box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4); text-decoration: none; transition: transform 0.2s; }
.kp-floating-whatsapp:hover { transform: scale(1.05); }
.kp-wa-inner { display: flex; align-items: center; gap: 8px; }

/* Responsive Düzen */
@media (max-width: 1080px) {
  .kp-nav-links { gap: 16px; }
  .kp-nav-links > li > a { font-size: 12px; }
}

@media (max-width: 960px) {
  .kp-topbar { display: none; }
  .kp-mobile-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .kp-menu-wrapper {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 2px solid #e2e8f0;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    padding: 16px 20px 24px 20px;
    max-height: 80vh;
    overflow-y: auto;
  }
  .kp-menu-wrapper.is-active { display: block; }
  .kp-nav-links { flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
  .kp-nav-links li { width: 100%; }
  .kp-nav-links > li > a { padding: 12px 0; border-bottom: 1px solid #f1f5f9; width: 100%; justify-content: space-between; }
  
  /* Mobilde Alt Menü */
  .kp-nav-links .sub-menu,
  .kp-nav-links ul.children {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid #1fa463;
    border-radius: 0;
    padding: 4px 0 8px 12px;
    margin: 4px 0 8px 0;
    background: #f8fafc;
    pointer-events: auto;
    min-width: 100%;
  }
  .kp-nav-links .sub-menu li a { padding: 8px 12px; font-size: 12px; }

  .kp-features-card-wrapper { grid-template-columns: 1fr; }
  .kp-products-grid { grid-template-columns: 1fr; }
  .kp-about-grid { grid-template-columns: 1fr; }
  .kp-stats-grid { grid-template-columns: 1fr 1fr; }
  .kp-reviews-grid { grid-template-columns: 1fr; }
  .kp-blog-grid { grid-template-columns: 1fr; }
  .kp-cta-banner-card { flex-direction: column; align-items: flex-start; }
  .kp-footer-grid { grid-template-columns: 1fr; }
}
