/*
 * Footer — yalnız ana səhifə (index.html): "RƏY" (geri-zəng sorğu) kartlı
 * versiya. Digər bütün səhifələr css/footer.css-dəki CTA sətri + marka/link
 * sütunları dizaynını istifadə edir (bax CLAUDE.md "Ortaq komponent: Footer").
 */

.site-footer {
  background: #f5f5f5;
}

.site-footer__inner {
  width: 100%;
  margin: 0 auto;
  padding: 40px 80px; /* Figma "Frame 1537" */
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 40px;
  box-sizing: border-box;
}

.site-footer__row {
  display: flex;
  align-items: center;
  gap: 100px;
}

/* --- "Rəy" (geri-zəng sorğusu) forması --- */
.site-footer__feedback {
  flex: 0 0 452px;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 32px;
  background: #f2f8fd;
  border-radius: 15px;
}
.site-footer__feedback-body {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.site-footer__feedback-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.site-footer__feedback-eyebrow {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2386c8;
}

.site-footer__feedback-text {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 20px;
  line-height: 28px;
  color: #6a7282; /* Figma "Frame 1537" */
}

/* Yeni Figma: hər iki cümlə eyni rəngdədir */
.site-footer__feedback-text-accent {
  color: inherit;
}

.site-footer__feedback-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.site-footer__feedback-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.site-footer__feedback-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__feedback-field label {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  text-transform: uppercase;
  color: #4a5565;
}

.site-footer__feedback-field input {
  box-sizing: border-box;
  width: 100%;
  height: 42px;
  padding: 10px 20px;
  background: #ffffff;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
  color: #0f2942;
  outline: none;
  transition: border-color 0.2s ease;
}

/* Figma: aktiv (yazılan) sahə #8AC5EF çərçivəlidir */
.site-footer__feedback-field input:focus {
  border-color: #8ac5ef;
}

.site-footer__feedback-field input::placeholder {
  color: #99a1af;
}

.site-footer__feedback-submit {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 32px;
  background: #2386c8;
  color: #ffffff;
  border: none;
  border-radius: 18px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  cursor: pointer;
}

.site-footer__feedback-submit:hover {
  background: #1c6fa8;
}

/* --- Sağ tərəf: link sütunları + loqo, altında sosial + alt sətir --- */
.site-footer__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.site-footer__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer__columns {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 64px;
  flex-wrap: nowrap;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.site-footer__col-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2386c8;
  margin-bottom: 12px;
}

.site-footer__links,
.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.site-footer__links a,
.site-footer__contact li {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 16px;
  line-height: 125%;
  letter-spacing: 0.01em;
  color: #364153; /* Figma "Frame 1537" */
}

.site-footer__links a:hover {
  color: var(--color-nav-active);
}

.site-footer__logo {
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
}

.site-footer__logo img {
  width: 154px;
  height: 36px;
  object-fit: contain; /* admindən yüklənən loqo təhrif olunmasın */
  object-position: right center;
  display: block;
}

/* --- Sosial ikonlar --- */
.site-footer__socials {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-footer__social {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f6f6f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-heading);
  flex-shrink: 0;
}

.site-footer__social svg {
  width: 24px;
  height: 24px;
}

/* Sosial ikonların hover-i (Figma variantları: normalda 24px #05243C, hover-də 36px
   brend rəngində). Kəsim dəyərləri faizlədir ki, hər ikon ölçüsündə (24/20/18/16px) düz
   işləsin: ikon path-ləri 24-lük viewBox-da 0..23.04 sahəsini tutur. Instagram qradiyenti
   hər səhifənin footer SVG-sindəki <radialGradient id="ig-grad">-dir. */
.site-footer__social {
  color: #0f2942;
}

.site-footer__social svg {
  transform-origin: center;
  /* yavaş, sıçrayışsız ease-out; fon rəngi (ağ/mavi) də tədricən görünsün */
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.5s ease;
}

.site-footer__social path {
  transition: fill 0.5s ease;
}

.site-footer__social:hover svg {
  transform: scale(1.5);
}

/* Instagram: qradiyent kvadrat, ağ kontur/dairə/nöqtə (ağ fon path-in boşluqlarından görünür) */
.site-footer__social[aria-label="Instagram"]:hover svg {
  background: #fff;
  clip-path: inset(0 4% 4% 0 round 25%);
}
.site-footer__social[aria-label="Instagram"]:hover svg path {
  fill: url(#ig-grad);
}

/* Facebook: mavi dairə, ağ "f" */
.site-footer__social[aria-label="Facebook"]:hover svg {
  background: #fff;
  clip-path: circle(48% at 48% 48%);
}
.site-footer__social[aria-label="Facebook"]:hover svg path {
  fill: #0866ff;
}

/* YouTube: qırmızı düymə, ağ üçbucaq */
.site-footer__social[aria-label="YouTube"]:hover svg {
  background: #fff;
  clip-path: inset(16.4% 4% 16.4% 0 round 18%);
}
.site-footer__social[aria-label="YouTube"]:hover svg path {
  fill: #ff0302;
}

/* LinkedIn: mavi kvadrat, ağ "in" */
.site-footer__social[aria-label="LinkedIn"]:hover svg {
  background: #0a66c2;
  border-radius: 12%;
}
.site-footer__social[aria-label="LinkedIn"]:hover svg path {
  fill: #fff;
}

/* --- Alt sətir --- */
.site-footer__bottom {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 40px;
}

.site-footer__privacy,
.site-footer__bottom span {
  font-family: var(--font-heading);
  font-size: 14px;
  line-height: 140%;
  color: #0f2942;
}

.site-footer__privacy {
  text-decoration: none;
}

.site-footer__privacy:hover {
  color: var(--color-nav-active);
}

@media (max-width: 1100px) {
  .site-footer__columns {
    flex-wrap: wrap;
  }

  .site-footer__row {
    flex-direction: column;
    gap: 40px;
  }

  .site-footer__feedback {
    flex: 1 1 auto;
    width: 100%;
  }

  .site-footer__logo {
    margin-left: 0;
    order: -1;
    width: 100%;
  }
}

@media (max-width: 960px) {
  .site-footer__inner {
    padding: 40px 24px 32px;
  }

  .site-footer__columns {
    gap: 32px;
  }

  .site-footer__bottom {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/*
 * Figma mobil (390px) dizaynı. Sıra: RƏY kartı → [loqo | sosial ikonlar] →
 * [Fəaliyyətlər | Qalerya] → Bizimlə əlaqə → [Privacy | Copyright].
 * HTML-də loqo .site-footer__columns-un, sosial ikonlar isə .site-footer__meta-nın
 * içindədir — markup-a toxunmamaq üçün hər iki ara konteyner "display:contents"
 * ilə açılır və .site-footer__main grid-ə çevrilir.
 */
@media (max-width: 600px) {
  .site-footer {
    padding: 0;
  }

  .site-footer__inner {
    padding: 40px 20px;
    gap: 0;
  }

  .site-footer__row {
    gap: 64px;
  }

  /* --- RƏY kartı --- */
  .site-footer__feedback {
    padding: 20px;
    gap: 24px;
    border-radius: 24px;
  }

  .site-footer__feedback-text {
    font-size: 16px;
    line-height: 28px;
  }

  /* --- Loqo, sütunlar, sosial ikonlar, alt sətir --- */
  .site-footer__main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "logo socials"
      "col1 col2"
      "col3 col3"
      "bottom bottom";
    row-gap: 24px;
    column-gap: 0;
  }

  .site-footer__columns,
  .site-footer__meta {
    display: contents;
  }

  .site-footer__logo {
    grid-area: logo;
    align-self: center;
    width: auto;
    margin: 0 0 24px; /* logo sətri ilə sütunlar arası cəmi 48px */
  }

  .site-footer__logo img {
    width: auto;
    height: 24px;
  }

  .site-footer__socials {
    grid-area: socials;
    justify-self: end;
    gap: 8px;
    margin-bottom: 24px;
  }

  .site-footer__social {
    width: 40px;
    height: 40px;
  }

  .site-footer__social svg {
    width: 18px;
    height: 18px;
  }

  .site-footer__col:nth-child(1) {
    grid-area: col1;
  }

  .site-footer__col:nth-child(2) {
    grid-area: col2;
    justify-self: end;
    width: 160px;
  }

  .site-footer__col:nth-child(3) {
    grid-area: col3;
  }

  .site-footer__col-title {
    line-height: 18px;
    color: #2386c8;
  }

  .site-footer__links a,
  .site-footer__contact li {
    line-height: 20px;
    color: #364153;
  }

  .site-footer__bottom {
    grid-area: bottom;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 16px;
  }

  .site-footer__privacy,
  .site-footer__bottom span {
    line-height: 140%;
    color: #0f2942;
  }
}
