/* Footer rebuild (based on original structure) */
.tamyo-footer-element {
  border-top: 0;
}

.tamyo-footer-element .tamyo-footer-element__inner {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 56px;
  padding-bottom: 46px;
}

.tamyo-footer-element .tamyo-footer-title {
  margin: 0 0 18px;
  font-family: var(--tamyo-font-base);
  font-size: var(--tamyo-font-size-heading);
  line-height: var(--tamyo-line-height-heading);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tamyo-footer-element a {
  color: inherit;
  text-decoration: none;
}

.tamyo-footer-element a:hover,
.tamyo-footer-element a:focus {
  color: var(--tamyo-color-accent-link);
}

.tamyo-footer-element .tamyo-footer-logo {
  margin-top: 2px;
}

.tamyo-footer-element .tamyo-footer-logo img {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
}

.tamyo-footer-element .tamyo-footer-menu {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tamyo-footer-element .tamyo-footer-menu > li {
  width: 100%;
  margin: 0 0 8px;
  padding: 0;
  border-bottom: 1px dotted currentColor;
}

.tamyo-footer-element .tamyo-footer-menu > li > a {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-transform: none;
  font-size: 13px;
  padding-bottom: 4px;
}

.tamyo-footer-element .tamyo-footer-menu ul {
  margin: 6px 0 0;
  padding: 0 0 0 14px;
  list-style: none;
}

.tamyo-footer-element .tamyo-footer-menu ul li {
  margin: 0 0 5px;
  width: 100%;
}

.tamyo-footer-element .tamyo-footer-contact {
  margin: 0;
}

.tamyo-footer-element .tamyo-footer-contact,
.tamyo-footer-element .tamyo-footer-contact a {
  font-size: 16px;
  line-height: 1.85;
}

.tamyo-footer-element .tamyo-footer-contact .tamyo-contact-line {
  display: block;
  position: relative;
  padding-left: 18px;
}

.tamyo-footer-element .tamyo-footer-contact .tamyo-contact-line::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.46em;
  width: 11px;
  height: 11px;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  opacity: 0.92;
}

.tamyo-footer-element .tamyo-footer-contact .tamyo-contact-line--address::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5z'/%3E%3C/svg%3E");
}

.tamyo-footer-element .tamyo-footer-contact .tamyo-contact-line--phone::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 2h10a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm5 19a1.25 1.25 0 1 0 0-2.5A1.25 1.25 0 0 0 12 21zM7 5v12h10V5H7z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 2h10a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm5 19a1.25 1.25 0 1 0 0-2.5A1.25 1.25 0 0 0 12 21zM7 5v12h10V5H7z'/%3E%3C/svg%3E");
}

.tamyo-footer-element .tamyo-footer-contact .tamyo-contact-line--email::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 5h18a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2zm0 2v.42l9 5.4 9-5.4V7H3zm18 10V9.58l-8.48 5.09a1 1 0 0 1-1.04 0L3 9.58V17h18z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 5h18a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2zm0 2v.42l9 5.4 9-5.4V7H3zm18 10V9.58l-8.48 5.09a1 1 0 0 1-1.04 0L3 9.58V17h18z'/%3E%3C/svg%3E");
}

.tamyo-footer-element .tamyo-footer-contact strong {
  font-weight: 700;
}

.tamyo-footer-element .tamyo-footer-columns {
  margin: 0;
  gap: 36px;
}

.tamyo-footer-element .tamyo-footer-col {
  margin: 0;
}

@media (min-width: 1025px) {
  .tamyo-footer-element ul.wp-block-navigation__container.tamyo-footer-menu {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 8px;
  }

  .tamyo-footer-element ul.wp-block-navigation__container.tamyo-footer-menu > li {
    width: 100%;
    margin: 0;
  }
}

/* Legacy GP footer output hidden: replaced by editable footer element */
#footer-widgets,
.site-info {
  display: none;
}

.tamyo-footer-copyright-bar {
  padding: 16px 20px;
  text-align: left;
}

.tamyo-footer-copyright-bar p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.tamyo-footer-copyright-bar a {
  color: inherit;
  text-decoration: none;
}

.tamyo-footer-copyright-bar a:hover,
.tamyo-footer-copyright-bar a:focus {
  color: #e8aa00;
}

@media (max-width: 1024px) {
  .tamyo-footer-element .tamyo-footer-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .tamyo-footer-element .tamyo-footer-col--contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .tamyo-footer-element .tamyo-footer-element__inner {
    padding-top: 26px;
    padding-bottom: 20px;
  }

  .tamyo-footer-element .tamyo-footer-columns {
    display: block;
  }

  .tamyo-footer-element .tamyo-footer-col {
    margin-bottom: 10px;
  }

  .tamyo-footer-element .tamyo-footer-title {
    position: relative;
    margin-bottom: 0;
    padding: 12px 34px 12px 0;
    cursor: pointer;
  }

  .tamyo-footer-element .tamyo-footer-title::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    line-height: 1;
    color: var(--tamyo-color-accent-link);
  }

  .tamyo-footer-element .tamyo-footer-title.expanded::after {
    content: '-';
  }

  .tamyo-footer-element .tamyo-footer-menu > li {
    width: 100%;
    padding-right: 0;
  }

  .tamyo-footer-element .tamyo-footer-col:not(.tamyo-footer-col--logo) > :not(.tamyo-footer-title) {
    display: none;
  }

  .tamyo-footer-element .tamyo-footer-col:not(.tamyo-footer-col--logo).is-open > :not(.tamyo-footer-title) {
    display: block;
  }
}
