/* ===== Modern Footer Styles – DU FIRST ===== */

/* Purple theme variables */
:root{
  --df-purple: #9B5BFF;
  --df-purple-soft: rgba(155,91,255,0.25);
  --df-purple-light: rgba(155,91,255,0.15);
  --df-purple-border: rgba(155,91,255,0.35);
  --df-purple-strong: rgba(155,91,255,0.50);
}

/* Base footer container */
.footer-modern {
  position: relative;
  background: #050814;
  color: #fff;
  padding: 80px 0 0;
  overflow: hidden;
}

.footer-modern__bg {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  z-index: 0;
}

.footer-modern__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-modern__container {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ================================
   SLIM CTA BAR (TOP OF FOOTER)
   ================================ */

.footer-cta-bar {
  padding-bottom: 24px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-cta-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 24px;
  border-radius: 999px;
  background: rgba(4, 14, 30, 0.95);
  border: 1px solid var(--df-purple-border);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  backdrop-filter: blur(10px);
}

.footer-cta-bar__text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.footer-cta-bar__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(155,91,255,0.16);
  color: rgba(255,255,255,0.9);
}

.footer-cta-bar__headline {
  font-size: 0.98rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}

.footer-cta-bar__action {
  flex-shrink: 0;
}

.footer-cta-bar__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(135deg, var(--df-purple), #7b40e9);
  color: #fff;
  box-shadow: 0 6px 20px rgba(155,91,255,0.5);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.footer-cta-bar__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(155,91,255,0.7);
}

.footer-cta-bar__icon {
  transition: transform 0.25s ease;
}

.footer-cta-bar__btn:hover .footer-cta-bar__icon {
  transform: translateX(3px);
}

/* ================================
   TOP ROW: BRAND + NEWSLETTER
   ================================ */

.footer-modern__top {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding-top: 20px;
}

/* Brand card (logo + text + Projekte-Button) */
.footer-modern__brand {
  flex: 1 1 0;
  padding: 26px 24px;
  border-radius: 18px;
  background: radial-gradient(circle at top left, rgba(155,91,255,0.18), transparent 55%),
              rgba(7,10,25,0.95);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 18px 40px rgba(0,0,0,0.7);
}

.footer-modern__logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.footer-modern__logo img {
  width: 56px;
  height: 56px;
  display: block;
}

.footer-modern__brand-name {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-modern__brand-text {
  font-size: 0.97rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  max-width: 360px;
  margin-bottom: 16px;
}

/* Projekte ansehen – purple pill button */
.footer-modern__brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--df-purple-border);
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  text-decoration: none;
  transition: all 0.25s ease;
  background: transparent;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03);
}

.footer-modern__brand-link::after {
  content: '→';
  font-size: 0.9rem;
  opacity: 0.75;
  transform: translateX(0);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.footer-modern__brand-link:hover {
  background: var(--df-purple);
  color: #fff;
  border-color: var(--df-purple);
  box-shadow: 0 10px 26px var(--df-purple-soft);
}

.footer-modern__brand-link:hover::after {
  opacity: 1;
  transform: translateX(3px);
}

/* Newsletter card */
.footer-modern__newsletter {
  flex: 1 1 0;
  background: linear-gradient(135deg, var(--df-purple-light), rgba(155,91,255,0.08));
  border: 1px solid var(--df-purple-border);
  border-radius: 18px;
  padding: 50px;
  margin-bottom: 60px;
  backdrop-filter: blur(10px);
  box-shadow: 0 22px 50px rgba(0,0,0,0.75);
}

.footer-modern__newsletter-content {
  text-align: center;
  margin-bottom: 30px;
}

.footer-modern__icon {
  display: inline-block;
  margin-bottom: 20px;
  animation: iconFloat 4s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.footer-modern__icon img {
  width: 100px;
  height: 100px;
  filter: drop-shadow(0 4px 20px rgba(155,91,255,0.35));
}

.footer-modern__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
}

.highlight {
  display: block;
  color: var(--df-purple);
}

.footer-modern__text {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.84);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* Newsletter form */
.footer-modern__form {
  display: flex;
  gap: 15px;
  max-width: 700px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-modern__input {
  flex: 1;
  min-width: 280px;
  padding: 16px 24px;
  border: 2px solid var(--df-purple-border);
  border-radius: 10px;
  background: rgba(7,7,18,0.4);
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s;
}

.footer-modern__input:focus {
  outline: none;
  border-color: var(--df-purple);
  background: rgba(7,7,18,0.6);
  box-shadow: 0 0 20px rgba(155,91,255,0.35);
}

.footer-modern__input::placeholder {
  color: rgba(255,255,255,0.55);
}

.footer-modern__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--df-purple), #8045e8);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 20px var(--df-purple-soft);
}

.footer-modern__btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 30px var(--df-purple-strong);
}

.footer-modern__btn svg {
  transition: transform 0.3s;
}

.footer-modern__btn:hover svg {
  transform: translateX(5px);
}

/* ================================
   GRID: LINKS / SOCIAL / KONTAKT / LOCATION
   ================================ */

.footer-modern__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 40px;
  padding: 60px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-modern__col {
  display: flex;
  flex-direction: column;
}

.footer-modern__heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--df-purple);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-modern__heading--sub {
  margin-top: 24px;
}

/* روی دسکتاپ: ستون Seiten بره سمت راست */
@media (min-width: 969px) {
  .footer-modern__grid nav.footer-modern__col {
    order: 2;
  }
}

/* Links */
.footer-modern__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-modern__links a,
.footer-modern__nav a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: all 0.3s;
  position: relative;
  width: fit-content;
}

/* underline برای لینک‌ها */
.footer-modern__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--df-purple);
  transition: width 0.3s;
}

.footer-modern__links a:hover {
  color: var(--df-purple);
}

.footer-modern__links a:hover::after {
  width: 100%;
}

/* Address */
.footer-modern__address {
  font-style: normal;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
}

/* Social icons */
.footer-modern__socials {
  display: flex;
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-modern__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(155,91,255,0.1);
  border: 2px solid rgba(155,91,255,0.3);
  border-radius: 50%;
  color: var(--df-purple);
  font-size: 1.3rem;
  transition: all 0.3s;
}

.footer-modern__socials a:hover {
  background: var(--df-purple);
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px var(--df-purple-strong);
}

/* Navigation list */
.footer-modern__nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* arrow effect for nav links */
.footer-modern__nav a::before {
  content: '→';
  position: absolute;
  left: -20px;
  opacity: 0;
  transition: all 0.3s;
  color: var(--df-purple);
}

.footer-modern__nav a:hover {
  color: var(--df-purple);
  padding-left: 20px;
}

.footer-modern__nav a:hover::before {
  opacity: 1;
  left: 0;
}

/* Bottom bar */
.footer-modern__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-modern__copyright {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  margin: 0;
}

.footer-modern__legal {
  display: flex;
  gap: 25px;
}

.footer-modern__legal a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.footer-modern__legal a:hover {
  color: var(--df-purple);
}

/* Responsive */
@media (max-width: 968px) {
  .footer-modern__container {
    padding: 0 30px;
  }

  .footer-modern__top {
    flex-direction: column;
  }

  .footer-modern__newsletter {
    padding: 40px 30px;
    margin-bottom: 40px;
  }

  .footer-modern__title {
    font-size: 2rem;
  }

  .footer-modern__form {
    flex-direction: column;
  }

  .footer-modern__input {
    min-width: 100%;
  }

  .footer-modern__btn {
    width: 100%;
    justify-content: center;
  }

  .footer-modern__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .footer-cta-bar__inner {
    border-radius: 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-cta-bar__headline {
    font-size: 0.95rem;
  }

  .footer-cta-bar__action {
    width: 100%;
  }

  .footer-cta-bar__btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .footer-modern {
    padding: 60px 0 0;
  }

  .footer-modern__container {
    padding: 0 20px;
  }

  .footer-modern__newsletter {
    padding: 30px 20px;
    margin-bottom: 40px;
  }

  .footer-modern__title {
    font-size: 1.6rem;
  }

  .footer-modern__text {
    font-size: 1rem;
  }

  .footer-modern__grid {
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 40px 0;
  }

  .footer-modern__bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-modern__legal {
    flex-direction: column;
    gap: 15px;
  }

  .footer-cta-bar__inner {
    padding: 14px 16px;
  }

  .footer-cta-bar__text {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-cta-bar__badge {
    font-size: 0.75rem;
  }

  .footer-cta-bar__headline {
    font-size: 0.9rem;
  }
}

/* A11y helper */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
