/* Scoped footer styles for ExpertCraneWitness.com. */
.site-footer.ecw-footer {
  margin: 0;
  padding: 0;
  border-top: 4px solid var(--red, #c1121f);
  background: #0b1220;
  color: #cbd3df;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.7;
}

.ecw-footer .ecw-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  padding: 60px 0 42px;
}

.ecw-footer .ecw-footer__grid > * {
  min-width: 0;
}

.ecw-footer .ecw-footer__brand {
  display: inline-block;
  margin: 0 0 22px;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 2.5vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.ecw-footer .ecw-footer__brand span {
  color: var(--red, #c1121f);
}

.site-footer.ecw-footer p {
  margin: 0 0 18px;
  color: #cbd3df;
  font-size: 15px;
  line-height: 1.8;
}

.ecw-footer .ecw-footer__identity p:last-child {
  margin-bottom: 0;
}

.ecw-footer .ecw-footer__identity strong {
  color: #ffffff;
  font-weight: 600;
}

.ecw-footer .ecw-footer__column h2 {
  margin: 3px 0 22px;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ecw-footer .ecw-footer__links {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ecw-footer .ecw-footer__links li {
  margin: 0;
  padding: 0;
  color: #cbd3df;
  font-size: 15px;
}

.ecw-footer .ecw-footer__links a,
.ecw-footer .ecw-footer__contact a {
  display: inline-block;
  padding: 5px 0;
  color: #cbd3df;
  text-decoration: none;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.ecw-footer .ecw-footer__contact {
  display: grid;
  justify-items: start;
  gap: 5px;
  margin: 0;
  color: #cbd3df;
  font-size: 15px;
  font-style: normal;
  line-height: 1.7;
}

.ecw-footer .ecw-footer__contact .ecw-footer__phone {
  color: #ffffff;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.ecw-footer .ecw-footer__inquiry {
  display: inline-block;
  margin-top: 17px;
  padding: 5px 0;
  color: var(--red, #c1121f);
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.ecw-footer .ecw-footer__inquiry span {
  margin-left: 5px;
}

.ecw-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ecw-footer a:focus-visible {
  outline: 2px solid var(--red, #c1121f);
  outline-offset: 5px;
  border-radius: 2px;
}

.ecw-footer .ecw-footer__bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 24px 0 28px;
  border-top: 1px solid #354052;
}

.site-footer.ecw-footer .ecw-footer__bottom p {
  margin: 0;
  color: #abb7c8;
  font-size: 12px;
  line-height: 1.8;
}

.ecw-footer .ecw-footer__copyright {
  flex: 1 1 40%;
}

.ecw-footer .ecw-footer__notice {
  flex: 1 1 60%;
  max-width: 640px;
  text-align: right;
}

@media (max-width: 980px) {
  .ecw-footer .ecw-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
    padding: 46px 0 34px;
  }

  .ecw-footer .ecw-footer__identity {
    grid-column: 1 / -1;
    max-width: 680px;
  }

  .ecw-footer .ecw-footer__bottom {
    flex-direction: column;
    gap: 12px;
  }

  .ecw-footer .ecw-footer__notice {
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 600px) {
  .ecw-footer .ecw-footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding: 36px 0 30px;
  }

  .ecw-footer .ecw-footer__column h2 {
    margin-bottom: 12px;
  }

  .ecw-footer .ecw-footer__links a,
  .ecw-footer .ecw-footer__contact a,
  .ecw-footer .ecw-footer__inquiry {
    min-height: 44px;
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .ecw-footer .ecw-footer__bottom {
    padding: 22px 0 26px;
  }
}
