
.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 .container {
  width: min(1800px, calc(100% - 2rem));
  margin-inline: auto;
}

.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;
}

.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);
}

.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(1.125rem, 1.45vw, 1.125rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

.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(1.125rem, 1.2vw, 1.125rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.58);
}

.footer-brand-grid {
  width: min(100%, 26rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.footer-brand-grid__item:first-child {
  grid-column: 1 / -1;
}

.footer-brand-grid__item {
  min-width: 0;
  min-height: 4.5rem;
  padding: 0rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.045);
}

.footer-brand-grid__item img {
  width: 100%;
  height: 2.8rem;
  display: block;
  object-fit: contain;
  object-position: center;
}

.footer-brand-grid__item:first-child img {
  height: 5.8rem;
}

.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: 1.375rem;
  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;
  align-content: start;
}

.footer-col__links a {
  display: inline-block;
  font-size: 1.125rem;
  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: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-legal__copy {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  font-size: 1.125rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.42);
}

.footer-legal__agency {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  opacity: 0;
}

.footer-legal__agency img {
  display: block;
  height: 1.15rem;
  width: auto;
}

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

.footer-legal__nav a {
  font-size: 1.125rem;
  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;
  }
}

.nav-mega-panel__box,
.nav-mega-list-col,
.nav-mega-flip,
.footer-brand-grid__item,
.home-hero__badge,
.capacity-label,
.card-stack--home .img-card__surface,
.card-stack--home .img-card__surface--blank,
.cap-acc__panel,
.cap-acc__specs,
.cap-acc__meta-card,
.cap-acc__bar,
.cap-acc__badge,
.cap-acc__pill,
.home-impact__stat,
.home-reach__panel,
.home-reach__row,
.page-hero-stat,
.page-hero-float,
.bubble,
.bento-card,
.bento-card__meta,
.bento-card__icon,
.bento-card__aside,
.process-card,
.quality-item,
.quality-item__icon,
.quality-callout,
.sector-card__media,
.cylinder-spec,
.cylinder-spec i,
.why-card,
.why-card__avatar,
.why-card__tag,
.why-card__pill,
.calc-card,
.calc-form-card,
.calc-icon-box,
.calc-icon-box i,
.calc-chart,
.calc-aside,
.mini-list > div,
.calc-back,
.faq-item,
.faq-help-card,
.tab-shell,
.material-shell,
.material-card,
.banner-card,
.video-card,
.video-modal-box,
.rounded-panel,
.side-rail,
.hero-metric,
.hero-metrics-row .hero-metric,
.gradient-border,
.dot-outer,
.floating-spec,
.product-layers-container,
.product-menu-item,
.contact-location,
.contact-location__map-link,
.contact-channel,
.contact-map,
.contact-map__link,
.contact-form-panel,
.eng-content__intro,
.eng-content__card,
.eng-content__pledge,
.history-orbit__card,
.history-orbit__fallback-item,
.history-timeline__card,
.history-modal__panel,
.lab-gallery__item,
.lab-gallery__item img,
.lab-features__item,
.management-team__item,
.catalog-card,
.certificates__item,
.services-archive__item,
.products-archive__item,
.news-archive__item,
.news-card,
.news-detail__meta-wrap,
.news-detail__meta,
.subpage-banner__eyebrow,
.product-quote-fab,
.proof-card,
.quote-card,
#muhendislik .eng-process__center,
#muhendislik .eng-process__center::before,
#muhendislik .eng-process__center::after,
#muhendislik .eng-process__center-glass,
#muhendislik .eng-process__card-face {
  border: 0 !important;
}

.clip-card-shell::before,
.bento-card-shell::before,
.giris-feature-shell::before,
.process-card-shell::before,
.cylinder-spec-shell::before,
.cylinder-float.clip-card-shell::before,
.giris-float.clip-card-shell::before {
  display: none !important;
}

.clip-card-shell::after,
.bento-card-shell::after,
.giris-feature-shell::after,
.process-card-shell::after,
.cylinder-spec-shell::after,
.cylinder-float.clip-card-shell::after,
.giris-float.clip-card-shell::after {
  inset: 0 !important;
  box-shadow: none !important;
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"],
[role="button"],
.btn,
[class$="-btn"],
[class*="-btn "],
[class$="__btn"],
[class*="__btn "],
[class$="-button"],
[class*="-button "],
[class$="__button"],
[class*="__button "],
.lang-switcher a,
.social-link,
.process-carousel__controls {
  border: 0 !important;
}

.banner-cards-row .banner-card,
.banner-cards-row .banner-card img {
  cursor: default !important;
}

.side-rail {
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.side-rail.is-footer-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* WhatsApp floating chat */
.whatsapp-fab {
  --wa-green: #25d366;
  --wa-green-deep: #1ebe57;
  position: fixed;
  right: clamp(0.9rem, 2.4vw, 1.45rem);
  bottom: clamp(0.9rem, 2.4vw, 1.45rem);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: calc(100vw - 1.5rem);
  padding: 0.55rem 0.85rem 0.55rem 0.55rem;
  border-radius: 999px;
  background: var(--wa-green);
  color: #fff;
  text-decoration: none;
  box-shadow:
    0 10px 28px rgba(37, 211, 102, 0.38),
    0 2px 8px rgba(8, 28, 46, 0.12);
  transform: translate3d(0, 0, 0);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    background-color 0.2s ease,
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.whatsapp-fab:hover {
  background: var(--wa-green-deep);
  box-shadow:
    0 14px 34px rgba(37, 211, 102, 0.45),
    0 4px 12px rgba(8, 28, 46, 0.14);
  transform: translate3d(0, -2px, 0);
}

.whatsapp-fab:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.whatsapp-fab__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.whatsapp-fab__icon svg {
  display: block;
  width: 1.45rem;
  height: 1.45rem;
  fill: currentColor;
}

.whatsapp-fab__label {
  font-family: var(--font-display, inherit);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
  padding-right: 0.2rem;
}

.whatsapp-fab.is-footer-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body:has(.product-quote-fab) .whatsapp-fab {
  bottom: clamp(5.75rem, 14vw, 7.25rem);
}

@media (max-width: 640px) {
  .whatsapp-fab {
    padding: 0.5rem;
  }

  .whatsapp-fab__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

/* Mobile: unlock fixed 100vh footer so link columns below social are reachable */
@media (max-width: 900px) {
  .footer {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .footer-cta {
    min-height: 0;
    padding-block: clamp(2rem, 5vh, 3rem) clamp(1.25rem, 3vh, 2rem);
  }

  .footer-glass {
    overflow: visible;
    min-height: 0;
  }
}

/* DE footer: hyphenate long service labels on mobile so they do not overlap the next column */
.footer-de-hyphen,
.footer-de-br {
  display: none;
}
.footer-col--services .footer-col__links a {
  max-width: 100%;
  box-sizing: border-box;
}
@media (max-width: 900px) {
  html[lang="de"] .footer-col--services .footer-de-hyphen {
    display: inline;
  }
  html[lang="de"] .footer-col--services .footer-de-br {
    display: block;
  }
}
