/*
Theme Name: Project IT
Theme URI: https://example.com/
Author: Project IT
Description: Classic WordPress theme for a local IT services company website.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 8.2
Text Domain: project-it
*/

.form-message {
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
  margin-top: 12px;
  padding: 12px 14px;
}

.form-message:empty {
  display: none;
}

.form-message[data-state="info"] {
  background: rgba(4, 27, 78, 0.08);
  color: #041b4e;
}

.form-message[data-state="success"] {
  background: rgba(20, 120, 70, 0.12);
  color: #17613d;
}

.form-message[data-state="error"] {
  background: rgba(176, 36, 36, 0.12);
  color: #9b1c1c;
}

.form-honeypot {
  height: 1px !important;
  left: -9999px !important;
  opacity: 0 !important;
  position: absolute !important;
  top: auto !important;
  width: 1px !important;
}

button[aria-busy="true"],
button:disabled {
  cursor: wait;
  opacity: 0.72;
}

/* Runtime footer contract for all migrated static pages. */
.footer {
  background: #fff;
  color: #1c1c1c;
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  padding: 60px 0;
}

.footer .container.footer__inner {
  display: grid;
  gap: 30px;
  margin: 0 auto;
  max-width: 1920px;
  padding-left: var(--container-padding, 30px);
  padding-right: var(--container-padding, 30px);
  width: 100%;
}

.footer .footer__top {
  align-items: start;
  border-bottom: 0;
  display: grid;
  gap: 60px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-bottom: 0;
}

.footer .footer__top > .footer__col {
  min-width: 0;
}

.footer .footer__brand {
  align-items: center;
}

.footer .footer__services {
  padding-top: 8px;
}

.footer .footer__contacts {
  display: grid;
  gap: 60px;
  grid-column: span 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  width: 100%;
}

.footer .footer__contact-card {
  align-items: flex-start;
  background: #ebedff;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  height: 209px;
  padding: 18px 20px;
  width: 100%;
}

.footer .footer__contact-label {
  color: #1c1c1c;
  font-size: 10px;
  line-height: 16px;
  margin: 0 0 8px;
  padding: 0;
}

.footer .footer__pill {
  background: transparent;
  color: #1c1c1c;
  display: block;
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 344px;
}

.footer .footer__icon {
  height: 51px;
  margin: 0 0 54px;
  position: static;
  width: 51px;
}

.footer .footer__icon .icon-btn__img {
  height: 51px;
  max-width: none;
  width: 51px;
}

.footer .footer__title {
  color: #111;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 14px;
}

.footer .footer__link {
  color: #111;
  display: block;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  margin-top: 12px;
}

.footer .footer__bottom {
  color: #041b4e;
  display: grid;
  font-size: 10px;
  gap: 10px;
  justify-content: start;
  margin-top: 24px;
  padding-top: 0;
}

.footer .footer__small {
  color: #041b4e;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.35;
}

.footer .footer__copyright {
  margin: 0;
}

@media (max-width: 1280px) {
  .footer .container.footer__inner {
    max-width: 1280px;
  }

  .footer .footer__top {
    gap: 40px;
    grid-template-columns: 1fr 1fr;
  }

  .footer .footer__contacts {
    gap: 12px;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 40px 0;
  }

  .footer .footer__top {
    align-items: stretch;
    gap: 20px;
    grid-template-areas:
      "brand services"
      "contacts contacts";
    grid-template-columns: 150px minmax(0, 1fr);
    justify-items: stretch;
  }

  .footer .footer__col--brand {
    grid-area: brand;
  }

  .footer .footer__services {
    grid-area: services;
  }

  .footer .footer__contacts {
    align-self: stretch;
    gap: clamp(10px, 3vw, 12px);
    grid-area: contacts;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: stretch;
    width: 100%;
  }

  .footer .footer__contact-card {
    height: auto;
    min-width: 0;
    padding: clamp(12px, 3.5vw, 18px);
  }

  .footer .footer__bottom a.footer__small {
    display: none;
  }

  .footer .footer__copyright-year {
    display: block;
  }

  .footer .footer__link {
    font-size: 12px;
    line-height: 1.2;
    overflow: visible;
    white-space: normal;
    word-break: break-word;
  }

  .footer .footer__icon {
    height: clamp(36px, 10vw, 44px);
    margin: 0 0 12px;
    width: clamp(36px, 10vw, 44px);
  }

  .footer .footer__icon .icon-btn__img {
    height: 100%;
    width: 100%;
  }

  .footer .footer__pill {
    font-size: clamp(10px, 3.2vw, 12px);
    line-height: 1.25;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .footer .container.footer__inner {
    padding-left: clamp(14px, 4vw, 30px);
    padding-right: clamp(14px, 4vw, 30px);
  }

  .footer .footer__top {
    grid-template-columns: minmax(96px, 150px) minmax(0, 1fr);
  }
}
