/* Site footer — Photoshop tasarım (index + hizmet detay) */
.footer ::selection {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.footer ::-moz-selection {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  height: 100vh;
  height: 100svh;
  --clip-footer-top: var(--clip-section-top, polygon(0% 2.5%, 2.5% 0%, 38% 0%, 41.5% 2%, 58.5% 2%, 62% 0%, 97.5% 0%, 100% 2.5%, 100% 100%, 0% 100%));
  --clip-footer-top-flat: polygon(0% 0%, 2.5% 0%, 38% 0%, 41.5% 0%, 58.5% 0%, 62% 0%, 97.5% 0%, 100% 0%, 100% 100%, 0% 100%);
  margin-top: calc(-1 * var(--section-notch-rise, 18px));
  padding-top: var(--section-notch-rise, 18px);
  color: rgba(255, 255, 255, 0.78);
  overflow: hidden;
  background: #050608;
  clip-path: var(--clip-footer-top);
  -webkit-clip-path: var(--clip-footer-top);
  transition:
    clip-path 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    -webkit-clip-path 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer.is-notch-hidden {
  clip-path: polygon(0% 0%, 2.5% 0%, 38% 0%, 41.5% 0%, 58.5% 0%, 62% 0%, 97.5% 0%, 100% 0%, 100% 100%, 0% 100%);
  -webkit-clip-path: polygon(0% 0%, 2.5% 0%, 38% 0%, 41.5% 0%, 58.5% 0%, 62% 0%, 97.5% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.is-footer-notch-companion {
  clip-path: none !important;
  -webkit-clip-path: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .footer {
    transition: none;
  }
}

html.is-low-power .footer {
  transition:
    clip-path 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    -webkit-clip-path 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.footer__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.footer__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 6, 8, 0.18) 0%, rgba(5, 6, 8, 0.08) 38%, rgba(5, 6, 8, 0.42) 100%),
    radial-gradient(ellipse 70% 50% at 78% 28%, rgba(255, 80, 40, 0.12), transparent 62%);
}

.footer__inner {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding-inline: clamp(1rem, 3vw, 1.5rem);
}

/* —— CTA üst bölüm —— */
.footer-cta {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  min-height: clamp(16rem, 38vh, 26rem);
  padding-block: clamp(2.5rem, 6vh, 4.5rem) clamp(1.5rem, 4vh, 2.5rem);
}

.footer-cta__content {
  max-width: min(34rem, 100%);
}

.footer-cta__brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: clamp(1rem, 2.5vh, 1.35rem);
  text-decoration: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.footer-cta__brand:hover {
  opacity: 0.88;
  transform: scale(1.02);
}

.footer-cta__logo {
  display: block;
  width: auto;
  height: clamp(46px, 5.8vw, 64px);
  filter: brightness(0) invert(1);
}

.footer-cta__lead {
  margin: 0 0 clamp(1.35rem, 3vh, 1.75rem);
  max-width: 32rem;
  font-size: clamp(0.95rem, 1.45vw, 1.08rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

/* —— Cam panel alt bölüm —— */
.footer-glass {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: 100%;
  margin-top: auto;
  min-height: clamp(18rem, 38vh, 28rem);
  padding: clamp(2.7rem, 6vw, 3.7rem) 0 clamp(2.3rem, 5vw, 2.9rem);
  border-radius: 0;
  background: rgba(14, 14, 14, 0.562);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  isolation: isolate;
  overflow: hidden;
}

.footer-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 220px 220px;
}

.footer-glass::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.06;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 28%, rgba(0, 0, 0, 0.08));
}

.footer-glass__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: inherit;
  justify-content: space-between;
}

.footer-glass__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(3.5rem, 8vw, 5rem);
  padding-bottom: clamp(2.5rem, 6vw, 3.3rem);
}

.footer-glass__intro {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.3rem);
}

.footer-glass__text {
  margin: 0;
  max-width: 26rem;
  font-size: clamp(0.84rem, 1.2vw, 0.92rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.58);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.footer-social__btn {
  width: 2.15rem;
  height: 2.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.42rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  text-decoration: none;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.footer-social__btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  transform: translateY(-2px);
}

.footer-glass__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.footer-col__title {
  margin: 0 0 0.85rem;
  font-family: var(--font, system-ui, sans-serif);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.52);
}

.footer-col__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-col__links a {
  display: inline-block;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.22s ease, transform 0.22s ease;
}

.footer-col__links a:hover {
  color: #fff;
  transform: translateX(3px);
}

.footer-col__services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem clamp(1rem, 2.5vw, 1.75rem);
}

.footer-col__services-grid .footer-col__links {
  min-width: 0;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  padding-top: clamp(2rem, 5vw, 2.5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-legal__copy {
  font-size: 0.76rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.42);
}

.footer-legal__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.35rem;
}

.footer-legal__nav a {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.42);
  text-decoration: none;
  transition: color 0.22s ease;
}

.footer-legal__nav a:hover {
  color: rgba(255, 255, 255, 0.78);
}

@media (min-width: 768px) {
  .footer-glass__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: start;
  }

  .footer-glass__nav {
    justify-self: end;
    width: min(100%, 32rem);
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr);
  }

  .footer-legal {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }
}

@media (min-width: 992px) {
  .footer__inner {
    padding-inline: 0;
  }

  .footer-cta__content {
    max-width: 36rem;
  }

  .footer-glass__inner {
    padding-inline: 0;
  }
}
