* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: #fff;
  color: #111;
}

.footer {
  position: relative;

  width: 100%;
  min-height: 40px;
  padding: 46px 6.1% 58px;

  display: grid;
  grid-template-columns: 2.25fr 1fr 1.15fr 1fr 1.25fr;
  column-gap: 40px;

  /* Background photo — path is relative to this stylesheet. */
  background-color: #fff; /* fallback while the image loads */
  background-image: url("../assets/why/footer.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Soft white veil so the dark footer text and the logo stay
   legible over the photo at any crop. */

.footer::before {
  content: "";
  position: absolute;
  inset: 0;

  background: rgba(255, 255, 255, 0.82);

  pointer-events: none;
}

.footer::after {
  content: "2026 DigitUs. All rights reserved | HEDGE GROUP OF COMPANIES";
  position: absolute;
  right: 6.1%;
  bottom: 0;
  left: 6.1%;
  z-index: 1;
  padding: 12px 0 14px;
  border-top: 1px solid rgba(17, 17, 17, 0.14);
  color: #707070;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.footer > * {
  position: relative;
  z-index: 1;
}


/* =========================
   ABOUT / LOGO
========================= */

.footer-about {
  display: flex;
  flex-direction: column;
}

.logo {
  display: inline-flex;
  align-items: center;
  width: fit-content;

  color: #090909;
  text-decoration: none;

  font-size: 16px;
  font-weight: 700;
  letter-spacing: -1.7px;

  margin-bottom: 25px;
}

.logo-mark {
  width: 26px;
  height: 26px;
  margin-right: 3px;

  position: relative;
  overflow: hidden;
}


/* Create the colorful logo mark */

.logo-mark::before {
  content: "";
  position: absolute;

  width: 19px;
  height: 19px;

  top: 3px;
  left: 1px;

  border-radius: 5px 11px 5px 11px;

  background: linear-gradient(
    135deg,
    #c9e63b 0%,
    #80d72e 30%,
    #00a9df 65%,
    #1e72d1 100%
  );

  transform: rotate(45deg);
}

.logo-arrow {
  position: absolute;

  width: 13px;
  height: 13px;

  left: 5px;
  top: 7px;

  border-right: 5px solid white;
  border-top: 5px solid white;

  transform: rotate(45deg);
  z-index: 2;
}


.footer-about > p {
  max-width: 440px;

  color: #707070;
  font-size: 16px;
  line-height: 1.68;
  font-weight: 400;
  margin: 15px 0 0;
}


/* =========================
   SOCIAL ICONS
========================= */

.social-links {
  display: flex;
  gap: 10px;

  margin-top: auto;
}

.social-links a {
  width: 54px;
  height: 54px;

  border: 1px solid #d2d2d2;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #080808;
  text-decoration: none;

  font-size: 18px;

  transition: all 0.25s ease;
}

.social-links a:hover {
  background: #111;
  color: #fff;
  border-color: #111;
  transform: translateY(-2px);
}

.social-links a svg {
  width: 18px;
  height: 18px;
}


/* =========================
   COMMON COLUMNS
========================= */

.footer-column h3 {
  font-size: 16px;
  line-height: 0.5;
  font-weight: 600;

  margin: 11px 0 27px;

  color: #080808;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 14px;
}

.footer-column ul a {
  color: #6d6d6d;
  text-decoration: none;

  font-size: 16px;
  line-height: 1.5;

  transition: color 0.2s ease;
}

.footer-column ul a:hover {
  color: #111;
}

/* Wider gap specifically between the Services and Contact columns */
.footer-column.contact {
  margin-left: 24px;
}


/* =========================
   CONTACT
========================= */

.contact-item {
  margin-bottom: 26px;
}

.contact-item strong {
  display: block;

  font-size: 15px;
  font-weight: 500;

  margin-bottom: 12px;
}

.contact-item p,
.contact-item a {
  display: block;

  color: #707070;
  font-size: 14px;
  line-height: 1.85;

  text-decoration: none;
}

.contact-item a {
  width: fit-content;
}

.contact-item a:hover {
  color: #111;
}

.contact-item.phone {
  margin-top: 28px;
}

.contact-item.phone a {
  margin-bottom: 2px;
}


/* =========================
   NEWSLETTER
========================= */

.newsletter h3 {
  margin-bottom: 26px;
}

.newsletter > p {
  max-width: 300px;

  color: #707070;

  font-size: 14px;
  line-height: 1.85;

  margin-bottom: 12px;
}

.newsletter-form {
  width: 100%;
  max-width: 273px;
  height: 44px;

  margin-top: 3px;

  display: flex;
  align-items: center;

  background: #edf2fb;
  border: 1px solid #dde5f3;
  border-radius: 12px;

  overflow: hidden;
}

.newsletter-form input {
  flex: 1;

  min-width: 0;
  height: 100%;

  border: none;
  outline: none;

  background: transparent;

  padding: 0 20px;

  font-family: inherit;
  font-size: 14px;
  color: #333;
}

.newsletter-form input::placeholder {
  color: #777;
}

.newsletter-form button {
  width: 54px;
  height: 100%;

  border: none;
  border-left: 1px solid rgba(17, 17, 17, 0.08);
  background-color: #10151d;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 5 7 7-7 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 15px 15px;

  color: #ffffff;

  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  transition: transform 0.2s ease, background 0.2s ease;
}

.newsletter-form button:hover {
  transform: translateX(1px);
  background-color: #1a2230;
}

.newsletter-form button svg {
  display: none;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {
  .footer {
    grid-template-columns: 1.7fr 1fr 1.2fr 1.2fr;
    row-gap: 50px;
  }

  .newsletter {
    grid-column: 2 / 5;
  }

  .newsletter-form {
    max-width: 300px;
  }
}


@media (max-width: 800px) {
  .footer {
    padding: 45px 7% 80px;
    grid-template-columns: 1fr 1fr;
    gap: 45px 35px;
  }

  .footer-about {
    grid-column: 1 / -1;
  }

  .footer-about > p {
    max-width: 600px;
  }

  .social-links {
    margin-top: 30px;
  }

  .newsletter {
    grid-column: auto;
  }

  .footer-column.contact {
    margin-left: 0;
  }
}


@media (max-width: 550px) {
  .footer {
    display: block;
    padding: 40px 25px 78px;
  }

  .footer-column.contact {
    margin-left: 0;
  }

  .footer::after {
    right: 25px;
    left: 25px;
    font-size: 10px;
  }

  .footer-about,
  .footer-column {
    margin-bottom: 45px;
  }

  .footer-about > p {
    font-size: 14px;
    line-height: 1.8;
  }

  .footer-column h3 {
    font-size: 18px;
  }

  .footer-column ul a,
  .contact-item p,
  .contact-item a,
  .contact-item strong,
  .newsletter > p {
    font-size: 14px;
  }

  .newsletter-form {
    max-width: 100%;
  }

  .social-links a {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
}
