.ab-footer {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding-top: clamp(4.5rem, 9vw, 8rem);
  padding-bottom: 1rem;
  color: #e2e8f0;
  background: var(--brand-navy);
  font-family: var(--brand-font);
  isolation: isolate;
}

.ab-footer *,
.ab-footer *::before,
.ab-footer *::after {
  box-sizing: border-box;
}

/* Yıldız tozu dokusu */
.ab-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 28% 42%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1.5px 1.5px at 47% 12%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 63% 33%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 78% 8%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 88% 46%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 8% 62%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 36% 74%, rgba(255, 255, 255, 0.25), transparent);
  opacity: 0.7;
  pointer-events: none;
}

.ab-footer__glow {
  position: absolute;
  z-index: 1;
  bottom: -10%;
  left: 50%;
  width: 140%;
  height: 70%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 100%, rgba(244, 168, 29, 0.22) 0%, rgba(244, 168, 29, 0.08) 38%, transparent 68%);
  pointer-events: none;
}

.ab-footer__inner {
  position: relative;
  z-index: 2;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* CTA */
.ab-footer__cta {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
}

.ab-footer__title {
  margin: 0;
  color: #ffffff;
  font-family: var(--brand-font);
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.ab-footer__lead {
  max-width: 34rem;
  margin: 1.5rem auto 0;
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.7;
}

.ab-footer__form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: min(31rem, 100%);
  margin: 2.25rem auto 0;
  padding: 0.4rem 0.4rem 0.4rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 60px -30px rgba(244, 168, 29, 0.5);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.ab-footer__form:focus-within {
  border-color: rgba(244, 168, 29, 0.5);
  background: rgba(255, 255, 255, 0.09);
}

.ab-footer .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.ab-footer__form input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
  color: #ffffff;
  background: none;
  font-family: inherit;
  font-size: 0.95rem;
}

.ab-footer__form input[type="email"]::placeholder {
  color: rgba(226, 232, 240, 0.5);
}

.ab-footer__submit {
  flex-shrink: 0;
  height: 2.75rem;
  padding: 0 1.6rem;
  border: 0;
  border-radius: 999px;
  color: #1d1933;
  background: linear-gradient(135deg, #ffc247, #f4a81d);
  box-shadow: 0 10px 24px -8px rgba(244, 168, 29, 0.7);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.ab-footer__submit:hover {
  transform: scale(1.04);
  filter: brightness(1.08);
}

/* Bağlantı ızgarası */
.ab-footer__grid {
  display: grid;
  gap: 3rem 2.5rem;
  margin-top: clamp(4rem, 8vw, 6.5rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  grid-template-columns: 1fr;
}

.ab-footer__logo img {
  display: block;
  width: auto;
  height: 2.6rem;
}

.ab-footer__tagline {
  max-width: 20rem;
  margin: 1.25rem 0 0;
  color: rgba(226, 232, 240, 0.6);
  font-size: 0.9rem;
  line-height: 1.7;
}

.ab-footer__socials {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.ab-footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: rgba(226, 232, 240, 0.8);
  background: rgba(255, 255, 255, 0.04);
  font-size: 1.1rem;
  text-decoration: none;
  transition: transform 0.3s ease, color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.ab-footer__socials a:hover {
  transform: translateY(-3px);
  border-color: var(--brand-amber);
  color: var(--brand-navy);
  background: var(--brand-amber);
}

.ab-footer__col h6,
.ab-footer__toggle {
  margin: 0 0 1.25rem;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ab-footer__toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  text-align: left;
  cursor: default;
  pointer-events: none;
}

.ab-footer__toggle i {
  display: none;
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

.ab-footer__panel {
  display: block;
}

.ab-footer__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ab-footer__col li + li {
  margin-top: 0.7rem;
}

.ab-footer__col a {
  color: rgba(226, 232, 240, 0.68);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.25s ease;
}

.ab-footer__col a:hover {
  color: #ffffff;
}

.ab-footer__contact p {
  margin: 0 0 0.7rem;
  color: rgba(226, 232, 240, 0.68);
  font-size: 0.92rem;
}

/* Alt bar */
.ab-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: 1.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ab-footer__bottom p {
  margin: 0;
  color: rgba(226, 232, 240, 0.5);
  font-size: 0.85rem;
}

/* Arka plan: hero videosundaki ayı, tüm footer boyunca soluk */
.ab-footer__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ab-footer__bg video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  opacity: 0.22;
  filter: saturate(1.1) contrast(1.05);
}

.ab-footer__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(29, 25, 51, 0.92) 0%, rgba(29, 25, 51, 0.55) 45%, rgba(29, 25, 51, 0.9) 100%),
    radial-gradient(120% 80% at 50% 100%, rgba(244, 168, 29, 0.12), transparent 60%);
}

@media screen and (min-width: 640px) {
  .ab-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (min-width: 992px) {
  .ab-footer__inner {
    padding: 0 2rem;
  }

  .ab-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  }
}

@media (min-width: 768px) and (max-width: 1023px),
(max-width: 767px) {
  .ab-footer__col--accordion {
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .ab-footer__toggle {
    margin: 0;
    padding: 1rem 0;
    cursor: pointer;
    pointer-events: auto;
  }

  .ab-footer__toggle i {
    display: inline-flex;
  }

  .ab-footer__col--accordion.is-open .ab-footer__toggle i {
    transform: rotate(180deg);
  }

  .ab-footer__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
  }

  .ab-footer__col--accordion.is-open .ab-footer__panel {
    grid-template-rows: 1fr;
  }

  .ab-footer__panel > * {
    overflow: hidden;
  }

  .ab-footer__col--accordion.is-open .ab-footer__panel > * {
    padding-bottom: 1rem;
  }
}

/* Sabit WhatsApp */
.ab-whatsapp {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 90;
  display: inline-flex;
  width: 3.6rem;
  height: 3.6rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(140deg, #3ddc7f, #128c7e);
  font-family: var(--brand-font);
  line-height: 1;
  text-decoration: none;
  animation: ab-wa-glow 3s ease-in-out infinite;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.ab-whatsapp i {
  position: relative;
  z-index: 1;
  font-size: 1.7rem;
  line-height: 1;
}

/* Dikkat çeken dalga halkası */
.ab-whatsapp__ring {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(61, 220, 127, 0.7);
  border-radius: 50%;
  pointer-events: none;
  animation: ab-wa-ripple 2.4s ease-out infinite;
}

.ab-whatsapp:hover,
.ab-whatsapp:focus-visible {
  color: #ffffff;
  filter: brightness(1.06);
  transform: translateY(-3px) scale(1.04);
}

/* Üzerine gelince açılan bilgi balonu */
.ab-whatsapp__tip {
  position: absolute;
  right: calc(100% + 0.85rem);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0.95rem;
  border-radius: 12px;
  color: #ffffff;
  background: var(--brand-navy, #1d1933);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(0.5rem);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.ab-whatsapp__tip strong {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.ab-whatsapp__tip::after {
  position: absolute;
  top: 50%;
  left: 100%;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 6px solid var(--brand-navy, #1d1933);
  content: "";
  transform: translateY(-50%);
}

.ab-whatsapp:hover .ab-whatsapp__tip,
.ab-whatsapp:focus-visible .ab-whatsapp__tip {
  opacity: 1;
  transform: translateX(0);
}

@keyframes ab-wa-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
  }
  50% {
    box-shadow: 0 0 26px 6px rgba(37, 211, 102, 0.35);
  }
}

@keyframes ab-wa-ripple {
  0% {
    opacity: 0.8;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.75);
  }
}

@media screen and (max-width: 680px) {
  .ab-whatsapp {
    right: 1rem;
    bottom: 1rem;
    width: 3.25rem;
    height: 3.25rem;
  }

  .ab-whatsapp__tip {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ab-whatsapp,
  .ab-whatsapp__ring {
    animation: none;
  }

  .ab-footer__submit:hover,
  .ab-footer__socials a:hover,
  .ab-whatsapp:hover {
    transform: none;
  }
}
