/* Samyoj site footer — compact shared design */
.sy-footer {
  --sy-ink: #1a2e28;
  --sy-muted: #6b7a74;
  --sy-green: #03cf65;
  --sy-green-deep: #0a8f48;
  --sy-heading: #0f2f28;
  --sy-line: #e6ece9;
  --sy-icon-bg: #eaf8f0;
  --sy-social-bg: #f3f5f4;
  --sy-social-icon: #4a5a54;
  --sy-link-icon: 14px;
  background: #fff;
  color: var(--sy-ink);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  border-top: 1px solid var(--sy-line);
  width: 100%;
  display: block;
  word-break: normal;
  overflow-wrap: normal;
}

.sy-footer *,
.sy-footer *::before,
.sy-footer *::after {
  box-sizing: border-box;
}

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

.sy-footer-inner {
  width: 100%;
  max-width: var(--wr-max, 1530px);
  margin: 0 auto;
  padding: 32px clamp(20px, 3vw, 40px) 16px;
  box-sizing: border-box;
}

.sy-footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) repeat(2, minmax(140px, 0.8fr)) minmax(220px, 1.1fr);
  gap: 20px clamp(16px, 2.2vw, 36px);
  align-items: start;
  width: 100%;
}

.sy-footer-brand {
  padding-right: 4px;
  min-width: 0;
}

.sy-footer-logo {
  display: inline-block;
  line-height: 0;
  margin-bottom: 10px;
}

.sy-footer-logo img {
  display: block;
  width: min(160px, 100%);
  height: auto;
}

.sy-footer-desc {
  margin: 0 0 12px;
  max-width: 340px;
  color: var(--sy-muted);
  font-size: 13.5px;
  line-height: 1.5;
  font-weight: 500;
}

.sy-footer-partner {
  display: inline-block;
  margin-bottom: 10px;
  line-height: 0;
}

.sy-footer-partner img {
  display: block;
  width: 120px;
  max-width: 100%;
  height: auto;
}

.sy-footer-made {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 10px;
  color: var(--sy-muted);
  font-size: 13px;
  font-weight: 600;
}

.sy-footer-made svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

.sy-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sy-footer-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sy-social-bg);
  color: var(--sy-social-icon);
  display: grid;
  place-items: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sy-footer-social a:hover {
  background: var(--sy-icon-bg);
  color: var(--sy-green-deep);
  transform: translateY(-1px);
}

.sy-footer-social svg {
  width: 14px;
  height: 14px;
  display: block;
}

.sy-footer-col {
  position: relative;
  min-height: 1px;
  padding-left: 20px;
  min-width: 0;
}

.sy-footer-col::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 1px;
  background: var(--sy-line);
}

.sy-footer-col h4 {
  margin: 0 0 6px;
  color: var(--sy-heading);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.sy-footer-col h4::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin-top: 4px;
  border-radius: 2px;
  background: var(--sy-green);
}

.sy-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.sy-footer-links li {
  margin: 0;
  padding: 0;
}

.sy-footer-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  color: #2f3f39;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  padding: 0;
  min-height: 0;
  transition: color 0.18s ease;
  word-break: normal;
  overflow-wrap: break-word;
}

.sy-footer-links a:hover {
  color: var(--sy-green-deep);
}

.sy-footer-links svg {
  width: 12px;
  height: 12px;
  min-width: 12px;
  max-width: 12px;
  padding: 6px;
  box-sizing: content-box;
  border-radius: 50%;
  background: var(--sy-icon-bg);
  color: var(--sy-green);
  flex: 0 0 auto;
  display: block;
  align-self: center;
}

.sy-footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.sy-footer-contact li {
  margin: 0;
  padding: 0;
}

.sy-footer-contact li,
.sy-footer-contact a {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  color: #2f3f39;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  padding: 0;
  min-height: 0;
  word-break: normal;
  overflow-wrap: break-word;
}

.sy-footer-contact li:last-child {
  align-items: flex-start;
}

.sy-footer-contact a:hover {
  color: var(--sy-green-deep);
}

.sy-footer-contact-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  background: var(--sy-icon-bg);
  color: var(--sy-green);
  display: grid;
  place-items: center;
  flex: 0 0 24px;
}

.sy-footer-contact-icon svg {
  width: 12px;
  height: 12px;
  display: block;
}

.sy-footer-bottom {
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid var(--sy-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: nowrap;
  width: 100%;
}

.sy-footer-copy {
  margin: 0;
  color: #7a8a84;
  font-size: 12.5px;
  font-weight: 500;
  flex: 0 1 auto;
}

.sy-footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  justify-content: flex-end;
}

.sy-footer-legal a {
  color: #7a8a84;
  font-size: 12.5px;
  font-weight: 600;
  padding: 0 10px;
  transition: color 0.18s ease;
  white-space: nowrap;
}

.sy-footer-legal a:first-child {
  padding-left: 0;
}

.sy-footer-legal a:hover {
  color: var(--sy-green-deep);
}

.sy-footer-legal span {
  width: 1px;
  height: 11px;
  background: #cfd8d3;
  display: inline-block;
  flex: 0 0 1px;
}

@media (max-width: 1100px) {
  .sy-footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 20px 20px;
  }

  .sy-footer-brand {
    grid-column: 1 / -1;
    padding-right: 0;
  }

  .sy-footer-col {
    padding-left: 0;
  }

  .sy-footer-col::before {
    display: none;
  }
}

@media (max-width: 760px) {
  .sy-footer-inner {
    width: 100%;
    max-width: none;
    padding: 28px 20px 16px;
  }

  .sy-footer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .sy-footer-desc {
    max-width: none;
  }

  .sy-footer-bottom {
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 18px;
  }

  .sy-footer-legal {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .sy-footer-inner {
    padding: 24px 16px 14px;
  }

  .sy-footer-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sy-footer-logo {
    margin-bottom: 8px;
  }

  .sy-footer-logo img {
    width: min(140px, 100%);
  }

  .sy-footer-desc {
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.45;
  }

  .sy-footer-partner {
    margin-bottom: 8px;
  }

  .sy-footer-partner img {
    width: 110px;
  }

  .sy-footer-made {
    margin-bottom: 8px;
  }

  .sy-footer-col {
    padding-left: 0;
    width: 100%;
  }

  .sy-footer-col h4 {
    margin: 0 0 6px;
    font-size: 14px;
  }

  .sy-footer-col h4::after {
    margin-top: 4px;
  }

  .sy-footer-links {
    gap: 14px;
  }

  .sy-footer-links a {
    gap: 10px;
    min-height: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.35;
  }

  .sy-footer-links svg {
    width: 12px;
    height: 12px;
    min-width: 12px;
    max-width: 12px;
    padding: 6px;
    box-sizing: content-box;
    border-radius: 50%;
    background: var(--sy-icon-bg);
    color: var(--sy-green);
    flex: 0 0 auto;
  }

  .sy-footer-contact {
    gap: 14px;
  }

  .sy-footer-contact li,
  .sy-footer-contact a {
    gap: 12px;
    min-height: 0;
    padding: 0;
    font-size: 14px;
    align-items: center;
  }

  .sy-footer-contact li:last-child {
    align-items: flex-start;
  }

  .sy-footer-contact-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    flex: 0 0 24px;
  }

  .sy-footer-bottom {
    margin-top: 16px;
    padding-top: 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .sy-footer-legal {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    width: 100%;
  }

  .sy-footer-legal span {
    display: none;
  }

  .sy-footer-legal a {
    padding: 4px 0;
    white-space: normal;
  }

  .sy-footer-legal a:first-child {
    padding-left: 0;
  }

  .sy-footer-social {
    gap: 6px;
  }

  .sy-footer-social a {
    width: 34px;
    height: 34px;
  }
}
