/* =========================================================
   Kalyon Holding - Footer
   Yerleşim/tasarım: gönderilen Kalyon Enerji ekran görüntüleri
   (akordeon menü, "Bize Ulaşın" kutusu, alt bar düzeni).
   Renkler: kalyon.css / kalyon-home.css içindeki GERÇEK Holding
   paleti (beyaz zemin, #761f32 bordo vurgu, Klavika/Open Sans).
   "khf-" öneki mevcut sitedeki numaralı class'larla çakışmayı önler.
   ========================================================= */

.khf-footer {
  --khf-bg: #ffffff;
  --khf-heading: #191919;
  --khf-text: #333333;
  --khf-text-dim: #7c7c7c;
  --khf-accent: #761f32;
  --khf-border: #e9ebf3;

  display: block !important;
  width: 100% !important;
  background-color: var(--khf-bg);
  color: var(--khf-text);
  padding: 72px 6vw 32px;
  border-top: 1px solid var(--khf-border);
  font-family: 'Open Sans', sans-serif;
}
.khf-footer * { box-sizing: border-box; }
#site-footer { display: block; width: 100%; }

/* ---------------- Kolonlar (masaüstü) ---------------- */

.khf-columns {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr)) minmax(260px, 1.6fr);
  gap: 24px;
  align-items: start;
}

.khf-col-head {
  all: unset;
  display: flex;
  color: var(--khf-heading);
  font-family: Klavika, sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
  cursor: default;
}
.khf-chevron { display: none; } /* masaüstünde chevron yok, sadece mobilde */

.khf-col-links { display: block; }

.khf-col a.khf-link {
  display: block;
  color: var(--khf-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 6px;
  transition: color .15s ease;
}
.khf-col a.khf-link:hover { color: var(--khf-accent); text-decoration: underline; }

/* "Bize Ulaşın" kutusu */
.khf-contact-box { padding-left: 24px; border-left: 1px solid var(--khf-border); }
.khf-contact-title {
  color: var(--khf-heading);
  font-family: Klavika, sans-serif;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 14px;
}
.khf-contact-desc {
  font-size: 14px;
  color: var(--khf-text-dim);
  line-height: 1.6;
  margin-bottom: 22px;
}
.khf-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  border: 1px solid var(--khf-accent);
  border-radius: 30px;
  color: var(--khf-accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background-color .15s ease, color .15s ease;
}
.khf-contact-btn:hover { background-color: var(--khf-accent); color: #fff; }
.khf-arrow { transition: transform .15s ease; }
.khf-contact-btn:hover .khf-arrow { transform: translateX(4px); }

/* ---------------- Alt bar ---------------- */

.khf-divider {
  height: 1px;
  background: var(--khf-border);
  margin: 56px 0 20px;
}

.khf-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.khf-copy { font-size: 12px; color: var(--khf-text-dim); }

.khf-bottom-right { display: flex; align-items: center; gap: 14px; }

.khf-social { display: flex; align-items: center; gap: 10px; }
.khf-social a {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--khf-border);
  color: var(--khf-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .15s ease, color .15s ease;
}
.khf-social a:hover { background: var(--khf-accent); color: #fff; }

.khf-top-link {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--khf-heading);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color .15s ease;
}
.khf-top-link:hover { background: var(--khf-accent); }

/* ---------------- 991px ve altı ---------------- */
@media screen and (max-width: 991px) {
  .khf-columns { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .khf-contact-box {
    grid-column: 1 / -1;
    border-left: none;
    border-top: 1px solid var(--khf-border);
    padding-left: 0;
    padding-top: 28px;
  }
}

/* ---------------- 767px ve altı: MOBİL AKORDEON ---------------- */
@media screen and (max-width: 767px) {
  .khf-footer { padding: 48px 6vw 28px; }

  .khf-columns { display: block; }

  .khf-col {
    border-bottom: 1px solid var(--khf-border);
  }
  .khf-col:first-child { border-top: 1px solid var(--khf-border); }

  .khf-col-head {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 18px 2px;
    margin-bottom: 0;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
  }

  /* Aşağı bakan chevron - kapalıyken */
  .khf-chevron {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--khf-heading);
    border-bottom: 2px solid var(--khf-heading);
    transform: rotate(45deg);
    transition: transform .2s ease;
    margin-left: 12px;
    flex-shrink: 0;
  }
  /* Açıkken yukarı döner */
  .khf-col.khf-open .khf-chevron { transform: rotate(225deg); border-color: var(--khf-accent); }
  .khf-col.khf-open .khf-col-head > span:first-child { color: var(--khf-accent); }

  .khf-col-links {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .khf-col.khf-open .khf-col-links { max-height: 600px; }

  .khf-col a.khf-link { padding: 3px 2px 14px 2px; margin-bottom: 0; }

  /* "Bize Ulaşın" mobilde ortalanmış, akordeon değil, her zaman açık */
  .khf-contact-box {
    grid-column: unset;
    border-left: none;
    border-top: none;
    padding: 32px 0 8px;
    text-align: center;
  }
  .khf-contact-title { font-size: 22px; }
  .khf-contact-btn { display: inline-flex; }

  .khf-divider { margin: 28px 0 20px; }

  .khf-bottom { flex-direction: column-reverse; gap: 20px; }
  .khf-bottom-right { flex-direction: row-reverse; width: 100%; justify-content: center; gap: 16px; }
  .khf-copy { text-align: center; }
}
